webpackJsonp(["main"],{

/***/ "./src/$$_lazy_route_resource lazy recursive":
/***/ (function(module, exports) {

function webpackEmptyAsyncContext(req) {
	// Here Promise.resolve().then() is used instead of new Promise() to prevent
	// uncatched exception popping up in devtools
	return Promise.resolve().then(function() {
		throw new Error("Cannot find module '" + req + "'.");
	});
}
webpackEmptyAsyncContext.keys = function() { return []; };
webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
module.exports = webpackEmptyAsyncContext;
webpackEmptyAsyncContext.id = "./src/$$_lazy_route_resource lazy recursive";

/***/ }),

/***/ "./src/app/admin/collection/collection.component.css":
/***/ (function(module, exports) {

module.exports = ".pad-b-20px {\n    padding-bottom: 20px;\n}\n"

/***/ }),

/***/ "./src/app/admin/collection/collection.component.html":
/***/ (function(module, exports) {

module.exports = "<div>\n  <div class=\"pad-b-20px\">\n      <vitam-remove-items api=\"\" label=\"Purge de toutes les collections VITAM (Hors référentiels formats)\"\n                          name=\"collections\" [tenant]=\"tenant\"></vitam-remove-items>\n  </div>\n  <div class=\"pad-b-20px\">\n    <p-fieldset legend=\"Référentiels\" [toggleable]=\"true\">\n      <vitam-remove-items class=\"ui-g-12 ui-md-6 ui-lg-4\" [tenant]=\"tenant\" api=\"formats\"\n                          name=\"formats\" label=\"Purge du Référentiel des formats (impacte tous les tenants)\"></vitam-remove-items>\n      <vitam-remove-items class=\"ui-g-12 ui-md-6 ui-lg-4\" [tenant]=\"tenant\" api=\"masterdata/context\"\n                          name=\"contextes\" label=\"Purge des contextes (impacte tous les tenants)\"></vitam-remove-items>\n      <vitam-remove-items class=\"ui-g-12 ui-md-6 ui-lg-4\" [tenant]=\"tenant\" api=\"masterdata/ontologies\"\n                          name=\"ontologies\"\n                          label=\"Purge des ontologies externes (impacte tous les tenants)\"></vitam-remove-items>\n      <vitam-remove-items class=\"ui-g-12 ui-md-6 ui-lg-4\" [tenant]=\"tenant\" api=\"rules\"\n                          name=\"règles de gestion\" label=\"Purge du Référentiel des règles de gestion\"></vitam-remove-items>\n      <vitam-remove-items class=\"ui-g-12 ui-md-6 ui-lg-4\" [tenant]=\"tenant\" api=\"accessionregisters\"\n                          name=\"registres des fonds\" label=\"Purge du registre des fonds\"></vitam-remove-items>\n      <vitam-remove-items class=\"ui-g-12 ui-md-6 ui-lg-4\" [tenant]=\"tenant\" api=\"masterdata/profile\"\n                          name=\"profils\" label=\"Purge du Référentiel des profils d'archivage\"></vitam-remove-items>\n      <vitam-remove-items class=\"ui-g-12 ui-md-6 ui-lg-4\" [tenant]=\"tenant\" api=\"masterdata/archiveUnitProfile\"\n                          name=\"profils d'unités archivistique\" label=\"Purge du Référentiel des profils d'unités archivistique (AUP)\"></vitam-remove-items>\n      <vitam-remove-items class=\"ui-g-12 ui-md-6 ui-lg-4\" [tenant]=\"tenant\" api=\"masterdata/agencies\"\n                          name=\"services agents\" label=\"Purge du Référentiel des services agents\"></vitam-remove-items>\n      <vitam-remove-items class=\"ui-g-12 ui-md-6 ui-lg-4\" [tenant]=\"tenant\" api=\"masterdata/archiveUnitProfile\"\n                          name=\"documents type\" label=\"Purge du Référentiel des documents type\"></vitam-remove-items>\n      <vitam-remove-items class=\"ui-g-12 ui-md-6 ui-lg-4\" [tenant]=\"tenant\" api=\"masterdata/griffins\"\n                          name=\"griffons\" label=\"Purge des griffons (impacte tous les tenants)\"></vitam-remove-items>\n      <vitam-remove-items class=\"ui-g-12 ui-md-6 ui-lg-4\" [tenant]=\"tenant\" api=\"masterdata/scenarios\"\n                          name=\"scénarios de préservation\" label=\"Purge du Référentiel des scénarios de préservation\"></vitam-remove-items>\n    </p-fieldset>\n  </div>\n  <div class=\"pad-b-20px\">\n    <p-fieldset legend=\"Journaux\" [toggleable]=\"true\">\n      <vitam-remove-items class=\"ui-g-12 ui-md-6 ui-lg-4\" [tenant]=\"tenant\" api=\"logbook/operation\"\n                          name=\"journaux d'opération\" label=\"Purge des journaux d'opération\"></vitam-remove-items>\n      <vitam-remove-items class=\"ui-g-12 ui-md-6 ui-lg-4\" [tenant]=\"tenant\" api=\"logbook/lifecycle/unit\"\n                          name=\"cycles de vie (unité archivistique)\" label=\"Purge des journaux du cycle de vie (unité archivistique)\"></vitam-remove-items>\n      <vitam-remove-items class=\"ui-g-12 ui-md-6 ui-lg-4\" [tenant]=\"tenant\" api=\"logbook/lifecycle/objectgroup\"\n                          name=\"cycles de vie (groupe d'objet)\" label=\"Purge des journaux du cycle de vie (groupe d'objet)\"></vitam-remove-items>\n    </p-fieldset>\n  </div>\n  <div class=\"pad-b-20px\">\n    <p-fieldset legend=\"Objets\" [toggleable]=\"true\">\n      <vitam-remove-items class=\"ui-g-12 ui-md-6 ui-lg-6\" [tenant]=\"tenant\" api=\"metadata/unit\"\n                          name=\"unités archivistiques\" label=\"Purge des unités archivistiques\"></vitam-remove-items>\n      <vitam-remove-items class=\"ui-g-12 ui-md-6 ui-lg-6\" [tenant]=\"tenant\" api=\"metadata/objectgroup\"\n                          name=\"groupes d'objets\" label=\"Purge des groupes d'objets\"></vitam-remove-items>\n    </p-fieldset>\n  </div>\n  <div class=\"pad-b-20px\">\n    <p-fieldset legend=\"Contrats\" [toggleable]=\"true\">\n      <vitam-remove-items class=\"ui-g-12 ui-md-6 ui-lg-4\" [tenant]=\"tenant\" api=\"masterdata/accessContract\"\n                          name=\"contrats d'accès\" label=\"Purge des contrats d'accès\"></vitam-remove-items>\n      <vitam-remove-items class=\"ui-g-12 ui-md-6 ui-lg-4\" [tenant]=\"tenant\" api=\"masterdata/ingestContract\"\n                          name=\"contrats d'entrée\" label=\"Purge des contrats d'entrée\"></vitam-remove-items>\n      <vitam-remove-items class=\"ui-g-12 ui-md-6 ui-lg-4\" [tenant]=\"tenant\" api=\"masterdata/managementContract\"\n                          name=\"contrats de gestion\" label=\"Purge des contrats de gestion\"></vitam-remove-items>\n    </p-fieldset>\n  </div>\n</div>\n"

/***/ }),

/***/ "./src/app/admin/collection/collection.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CollectionComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_platform_browser__ = __webpack_require__("./node_modules/@angular/platform-browser/esm5/platform-browser.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__common_breadcrumb_service__ = __webpack_require__("./src/app/common/breadcrumb.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_page_page_component__ = __webpack_require__("./src/app/common/page/page-component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__common_tenant_service__ = __webpack_require__("./src/app/common/tenant.service.ts");
var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};





var breadcrumb = [
    { label: 'Administration', routerLink: '' },
    { label: 'Purge des collections', routerLink: 'admin/collection' }
];
var CollectionComponent = (function (_super) {
    __extends(CollectionComponent, _super);
    function CollectionComponent(titleService, breadcrumbService, tenantService) {
        var _this = _super.call(this, 'Administration des collections', breadcrumb, titleService, breadcrumbService) || this;
        _this.titleService = titleService;
        _this.breadcrumbService = breadcrumbService;
        _this.tenantService = tenantService;
        return _this;
    }
    CollectionComponent.prototype.pageOnInit = function () {
        var _this = this;
        return this.tenantService.getState().subscribe(function (value) {
            _this.tenant = value;
        });
    };
    CollectionComponent = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'vitam-collection',
            template: __webpack_require__("./src/app/admin/collection/collection.component.html"),
            styles: [__webpack_require__("./src/app/admin/collection/collection.component.css")]
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__angular_platform_browser__["Title"], __WEBPACK_IMPORTED_MODULE_2__common_breadcrumb_service__["a" /* BreadcrumbService */], __WEBPACK_IMPORTED_MODULE_4__common_tenant_service__["a" /* TenantService */]])
    ], CollectionComponent);
    return CollectionComponent;
}(__WEBPACK_IMPORTED_MODULE_3__common_page_page_component__["a" /* PageComponent */]));



/***/ }),

/***/ "./src/app/admin/collection/collection.service.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CollectionService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rxjs_add_operator_map__ = __webpack_require__("./node_modules/rxjs/_esm5/add/operator/map.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__common_resources_service__ = __webpack_require__("./src/app/common/resources.service.ts");
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};



var CollectionService = (function () {
    function CollectionService(resourceService) {
        this.resourceService = resourceService;
        this.deleteRoot = 'delete';
    }
    CollectionService.prototype.removeItemsInCollection = function (api) {
        return this.resourceService.delete(this.deleteRoot + "/" + api);
    };
    CollectionService = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Injectable"])(),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_2__common_resources_service__["a" /* ResourcesService */]])
    ], CollectionService);
    return CollectionService;
}());



/***/ }),

/***/ "./src/app/admin/collection/remove-items/remove-items.component.css":
/***/ (function(module, exports) {

module.exports = ".pad-b-10px {\n  padding-bottom: 10px;\n}\n"

/***/ }),

/***/ "./src/app/admin/collection/remove-items/remove-items.component.html":
/***/ (function(module, exports) {

module.exports = "<p-panel header=\"{{label}}\" *ngIf=\"label\">\n  <button pButton label=\"Purger\" icon=\"fa-trash\" (click)=\"removeItems()\"\n          [disabled]=\"!isTenantDefine()\"></button>\n</p-panel>\n<p-dialog header=\"Suppression des {{name}} ?\" [(visible)]=\"displayCheck\">\n  <p>Êtes-vous certain de vouloir vider la collection des {{name}} ?</p>\n  <p-footer>\n    <button pButton icon=\"fa-check\" (click)=\"doRemove()\" label=\"Oui\"></button>\n    <button pButton icon=\"fa-close\" (click)=\"displayCheck=false\" label=\"Non\"></button>\n  </p-footer>\n</p-dialog>\n\n<p-dialog header=\"Suppression des {{name}}.\" [(visible)]=\"displayResult\">\n  <p *ngIf=\"success\">La base des {{name}} a bien été purgée.</p>\n  <p *ngIf=\"!success\">Erreur lors de la purge de la base des {{name}}.</p>\n  <p-footer>\n    <button pButton icon=\"fa-close\" (click)=\"displayResult=false\" label=\"OK\"></button>\n  </p-footer>\n</p-dialog>\n\n"

/***/ }),

/***/ "./src/app/admin/collection/remove-items/remove-items.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return RemoveItemsComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__collection_service__ = __webpack_require__("./src/app/admin/collection/collection.service.ts");
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};


var RemoveItemsComponent = (function () {
    function RemoveItemsComponent(collectionService) {
        this.collectionService = collectionService;
        this.displayCheck = false;
        this.displayResult = false;
        this.success = false;
        this.isTenantDefine = function () {
            if (this.name !== 'formats' && this.name !== 'contextes' && this.name !== 'ontologies' && this.name !== 'griffons') {
                return this.tenant !== '';
            }
            else {
                return true;
            }
        };
    }
    RemoveItemsComponent.prototype.ngOnInit = function () {
    };
    RemoveItemsComponent.prototype.removeItems = function () {
        this.displayCheck = true;
    };
    RemoveItemsComponent.prototype.displayResults = function (success) {
        this.displayResult = true;
        this.success = success;
    };
    RemoveItemsComponent.prototype.doRemove = function () {
        var _this = this;
        this.displayCheck = false;
        this.collectionService.removeItemsInCollection(this.api)
            .subscribe(function () { return _this.displayResults(true); }, function (error) { return _this.displayResults(false); });
    };
    __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"])(),
        __metadata("design:type", String)
    ], RemoveItemsComponent.prototype, "label", void 0);
    __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"])(),
        __metadata("design:type", String)
    ], RemoveItemsComponent.prototype, "api", void 0);
    __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"])(),
        __metadata("design:type", String)
    ], RemoveItemsComponent.prototype, "name", void 0);
    __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"])(),
        __metadata("design:type", Object)
    ], RemoveItemsComponent.prototype, "tenant", void 0);
    RemoveItemsComponent = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'vitam-remove-items',
            template: __webpack_require__("./src/app/admin/collection/remove-items/remove-items.component.html"),
            styles: [__webpack_require__("./src/app/admin/collection/remove-items/remove-items.component.css")]
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__collection_service__["a" /* CollectionService */]])
    ], RemoveItemsComponent);
    return RemoveItemsComponent;
}());



/***/ }),

/***/ "./src/app/admin/configuration/configuration.component.css":
/***/ (function(module, exports) {

module.exports = ".offer-label {\n    text-align: center;\n    padding: 8px;\n    margin: 2px;\n    border: 2px solid #444;\n    width: auto;\n    height: 40px;\n    float: left;\n}\n  \n.offer-label.referent  {\n    background: #eaf8d8;\n}\n  \n.offer-label.async  {\n    background: #d8eaf8;\n}\n  \n.offer-label.disabled  {\n    border: 2px dashed #444;\n}"

/***/ }),

/***/ "./src/app/admin/configuration/configuration.component.html":
/***/ (function(module, exports) {

module.exports = "<div>\n    <div class=\"pad-b-20px\">\n\n        <div class=\"pad-b-20px\">\n            <p-panel header=\"Stratégies de stockage\">\n                <div class=\"ui-g\" *ngFor=\"let strategy of strategyList\">\n                    <p-panel header=\"{{strategy.label}}\" class=\"ui-g-12 ui-md-6 ui-lg-4\">\n                        <div class=\"ui-g\">\n                            <div *ngFor=\"let offer of strategy.value.offers\" [ngClass]=\"{'offer-label':true,'referent':offer.referent,'async':offer.async,'disabled':!offer.enabled}\">{{offer.id}}</div>\n                        </div>\n                    </p-panel>\n                </div>\n                <div class=\"ui-g\">\n                    <p-fieldset legend=\"Légende\" [toggleable]=\"true\" [collapsed]=\"true\">\n                        <div class=\"ui-g\">\n                            <table>\n                                <tr>\n                                    <td>Types de l'offre de stockage :</td>\n                                    <td>\n                                        <div class=\"offer-label\">Offre</div>\n                                    </td>\n                                    <td>\n                                        <div class=\"offer-label referent\">Offre référente</div>\n                                    </td>\n                                </tr>\n                                <tr>\n                                    <td>Status de l'offre de stockage :</td>\n                                    <td>\n                                        <div class=\"offer-label\">Offre active</div>\n                                    </td>\n                                    <td>\n                                        <div class=\"offer-label disabled\">Offre inactive</div>\n                                    </td>\n                                </tr>\n                            </table>\n                        </div>\n                    </p-fieldset>\n                </div>\n            </p-panel>\n\n        </div>\n    </div>"

/***/ }),

/***/ "./src/app/admin/configuration/configuration.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ConfigurationComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_platform_browser__ = __webpack_require__("./node_modules/@angular/platform-browser/esm5/platform-browser.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_common_http__ = __webpack_require__("./node_modules/@angular/common/esm5/http.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_breadcrumb_service__ = __webpack_require__("./src/app/common/breadcrumb.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__common_page_page_component__ = __webpack_require__("./src/app/common/page/page-component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__common_resources_service__ = __webpack_require__("./src/app/common/resources.service.ts");
var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};






var breadcrumb = [
    { label: 'Administration', routerLink: '' },
    { label: 'Configuration de la plateforme', routerLink: 'admin/configuration' }
];
var ConfigurationComponent = (function (_super) {
    __extends(ConfigurationComponent, _super);
    function ConfigurationComponent(titleService, breadcrumbService, resourcesService) {
        var _this = _super.call(this, 'Configuration de la plateforme', breadcrumb, titleService, breadcrumbService) || this;
        _this.titleService = titleService;
        _this.breadcrumbService = breadcrumbService;
        _this.resourcesService = resourcesService;
        return _this;
    }
    ConfigurationComponent.prototype.pageOnInit = function () {
        this.getStrategies();
        return null;
    };
    ConfigurationComponent.prototype.getStrategies = function () {
        var _this = this;
        return this.resourcesService.get("strategies", new __WEBPACK_IMPORTED_MODULE_2__angular_common_http__["c" /* HttpHeaders */]().set('X-Tenant-Id', "1")).subscribe(function (response) {
            _this.strategyList = response.map(function (strategy) {
                return { label: strategy.id, value: strategy };
            });
        });
    };
    ConfigurationComponent = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'vitam-configuration',
            template: __webpack_require__("./src/app/admin/configuration/configuration.component.html"),
            styles: [__webpack_require__("./src/app/admin/configuration/configuration.component.css")]
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__angular_platform_browser__["Title"], __WEBPACK_IMPORTED_MODULE_3__common_breadcrumb_service__["a" /* BreadcrumbService */], __WEBPACK_IMPORTED_MODULE_5__common_resources_service__["a" /* ResourcesService */]])
    ], ConfigurationComponent);
    return ConfigurationComponent;
}(__WEBPACK_IMPORTED_MODULE_4__common_page_page_component__["a" /* PageComponent */]));



/***/ }),

/***/ "./src/app/admin/ingest-cleanup/ingest-cleanup.component.css":
/***/ (function(module, exports) {

module.exports = ".eligibility {\n    text-align: left;\n}"

/***/ }),

/***/ "./src/app/admin/ingest-cleanup/ingest-cleanup.component.html":
/***/ (function(module, exports) {

module.exports = "<p-panel [header]=\"'Lancement d\\'un ingest cleanup'\">\n    <div class=\"ui-g\">\n\n        <div class=\"ui-g-12\">\n            <div class=\"ui-g-4\">Operation d'ingest corrompu:</div>\n            <div class=\"ui-g-4 ui-g-nopad\">\n                <input id=\"identifier\" class=\"fs-1-1em\" size=\"45\" pInputText [(ngModel)]=\"operationId\"\n                       placeholder=\"Identifiant d'opération\"/>\n            </div>\n        </div>\n        <div class=\"ui-g-12\">\n            <div class=\"ui-g-4\">Tenant:</div>\n            <div class=\"ui-g-4\">\n                {{tenant ? tenant : 'Veuillez choisir un tenant'}}\n            </div>\n        </div>\n\n        <div class=\"ui-g-12\">\n          <div class=\"ui-g-4\">Contrat: </div>\n          <div class=\"ui-g-4\">\n            <p-dropdown id=\"contract\" [options]=\"contractsList\" [(ngModel)]=\"selectedContract\"\n                        placeholder=\"Sélectionner un contrat\"></p-dropdown>\n          </div>\n        </div>\n\n        <p-fieldset legend=\"Conditions d'eligibilité des ingests à nettoyer\" [toggleable]=\"true\">\n            <div class=\"eligibility\">\n            Cette procédure permet de nettoyer les données suite à un ingest incomplet / corrompu.\n            Elle permet de purger toutes les unités archivistiques, groupes d'objets et objets binaires liés à l'ingest.\n            <br/>\n            <br/>\n            L'ingest à nettoyer doit satisfaire les conditions d'éligibilité suivantes :\n            <ul>\n            <li>L'ingest n'est plus en cours d'exécution (RUNNING ou PAUSE).</li>\n            <li>L'ingest s'est terminé avec une erreur (KO ou FATAL).</li>\n            <li>Aucune unité d'un autre ingest n'a été rattachée en dessous d'une des unités de l'ingest à nettoyer.</li>\n            <li>L'ingest à nettoyer n'a pas rajouté d'objets binaires à un group d'objets existant.</li>\n            <li>Aucun autre ingest n'a rajouté d'objets binaires à l'un ges groupes d'objets de l'ingest à nettoyer.</li>\n            <li>L'ingest à nettoyer n'a pas rattaché une unité à un group d'objets existant.</li>\n            <li>Aucun autre ingest n'a rattaché une autre unité à un groupe d'objets de l'ingest à nettoyer.</li>\n            </ul>\n                <input type=\"checkbox\" [(ngModel)]=\"isChecked\" (change)=\"checkValue(isChecked?'Yes':'No')\"> L'ingest respecte les conditions citées ?\n            </div>\n        </p-fieldset>\n\n        <div style=\"color:red; font-size: bold\" class=\"ui-g-12\" *ngIf=\"error\" (click)=\"error = false\">Un des champs est mal renseigné</div>\n\n        <div class=\"ui-g-12\">\n            <div class=\"ui-g-4\"></div>\n            <div class=\"ui-g-4\">\n                <button pButton type=\"button\" (click)=\"cleanIngest()\" label=\"Lancer le nettoyage\"></button>\n            </div>\n        </div>\n    </div>\n    <div class=\"clearfix\"></div>\n\n    <p-dialog header=\"Ingest Cleanup \" [(visible)]=\"ingestCleanupKo\" modal=\"modal\" [responsive]=\"true\">\n        <p>Erreur lors du lancement de l'operation </p>\n        <p-footer>\n            <button type=\"button\" pButton icon=\"fa-check\" (click)=\"ingestCleanupKo=false\" label=\"OK\"></button>\n        </p-footer>\n    </p-dialog>\n    <p-dialog header=\"Ingest Cleanup \" [(visible)]=\"ingestCleanupOk\" modal=\"modal\" [responsive]=\"true\">\n        <p>L'operation a bien été lancé </p>\n        <p-footer>\n            <button type=\"button\" pButton icon=\"fa-check\" (click)=\"ingestCleanupOk=false\" label=\"OK\"></button>\n        </p-footer>\n    </p-dialog>\n\n</p-panel>\n"

/***/ }),

/***/ "./src/app/admin/ingest-cleanup/ingest-cleanup.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return IngestCleanupComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__common_resources_service__ = __webpack_require__("./src/app/common/resources.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ingest_cleanup_service__ = __webpack_require__("./src/app/admin/ingest-cleanup/ingest-cleanup.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_tenant_service__ = __webpack_require__("./src/app/common/tenant.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__tests_query_dsl_query_dsl_service__ = __webpack_require__("./src/app/tests/query-dsl/query-dsl.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__common_page_page_component__ = __webpack_require__("./src/app/common/page/page-component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__common_breadcrumb_service__ = __webpack_require__("./src/app/common/breadcrumb.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__angular_platform_browser__ = __webpack_require__("./node_modules/@angular/platform-browser/esm5/platform-browser.js");
var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};








var FileData = (function () {
    function FileData(file, category, offerId) {
        this.file = file;
        this.category = category;
    }
    return FileData;
}());
var breadcrumb = [
    { label: 'Administration', routerLink: '' },
    { label: 'Ingest cleanup', routerLink: 'admin/testingest-cleanup' }
];
var IngestCleanupComponent = (function (_super) {
    __extends(IngestCleanupComponent, _super);
    function IngestCleanupComponent(titleService, breadcrumbService, queryDslService, resourcesService, ingestCleanupService, tenantService) {
        var _this = _super.call(this, 'Lancement de nettoyage d\'ingest corrompu', breadcrumb, titleService, breadcrumbService) || this;
        _this.titleService = titleService;
        _this.breadcrumbService = breadcrumbService;
        _this.queryDslService = queryDslService;
        _this.resourcesService = resourcesService;
        _this.ingestCleanupService = ingestCleanupService;
        _this.tenantService = tenantService;
        _this.error = false;
        _this.ingestCleanupKo = false;
        _this.ingestCleanupOk = false;
        return _this;
    }
    IngestCleanupComponent.prototype.pageOnInit = function () {
        var _this = this;
        return this.tenantService.getState().subscribe(function (value) {
            _this.tenant = value;
            if (_this.tenant) {
                _this.getContracts();
            }
        });
    };
    IngestCleanupComponent.prototype.getContracts = function () {
        var _this = this;
        return this.queryDslService.getContracts().subscribe(function (response) {
            _this.contractsList = response.map(function (contract) {
                return { label: contract.Name, value: contract };
            });
        }, function (error) {
            _this.ingestCleanupKo = true;
        });
    };
    IngestCleanupComponent.prototype.checkValue = function (event) {
        if (event == "Yes") {
            this.isChecked = "Yes";
        }
        else {
            this.isChecked = "No";
        }
    };
    IngestCleanupComponent.prototype.cleanIngest = function () {
        var _this = this;
        if (!this.operationId || !this.tenant || !this.selectedContract || this.isChecked !== "Yes") {
            this.error = true;
            return;
        }
        this.ingestCleanupService.launch(this.operationId, this.selectedContract.Identifier).subscribe(function (response) {
            _this.ingestCleanupOk = true;
        }, function (error) {
            _this.ingestCleanupKo = true;
        });
    };
    IngestCleanupComponent = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'ingest-cleanup',
            template: __webpack_require__("./src/app/admin/ingest-cleanup/ingest-cleanup.component.html"),
            styles: [__webpack_require__("./src/app/admin/ingest-cleanup/ingest-cleanup.component.css")]
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_7__angular_platform_browser__["Title"], __WEBPACK_IMPORTED_MODULE_6__common_breadcrumb_service__["a" /* BreadcrumbService */], __WEBPACK_IMPORTED_MODULE_4__tests_query_dsl_query_dsl_service__["a" /* QueryDslService */],
            __WEBPACK_IMPORTED_MODULE_1__common_resources_service__["a" /* ResourcesService */], __WEBPACK_IMPORTED_MODULE_2__ingest_cleanup_service__["a" /* IngestCleanupService */], __WEBPACK_IMPORTED_MODULE_3__common_tenant_service__["a" /* TenantService */]])
    ], IngestCleanupComponent);
    return IngestCleanupComponent;
}(__WEBPACK_IMPORTED_MODULE_5__common_page_page_component__["a" /* PageComponent */]));



/***/ }),

/***/ "./src/app/admin/ingest-cleanup/ingest-cleanup.service.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return IngestCleanupService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__common_resources_service__ = __webpack_require__("./src/app/common/resources.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_common_http__ = __webpack_require__("./node_modules/@angular/common/esm5/http.js");
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};



var IngestCleanupService = (function () {
    function IngestCleanupService(resourcesService) {
        this.resourcesService = resourcesService;
        this.LAUNCH = 'ingestcleanup';
    }
    IngestCleanupService.prototype.launch = function (operationId, contractId) {
        var headers = new __WEBPACK_IMPORTED_MODULE_2__angular_common_http__["c" /* HttpHeaders */]().set('X-Tenant-Id', this.resourcesService.getTenant());
        if (contractId) {
            headers = headers.set('X-Access-Contract-Id', contractId);
        }
        return this.resourcesService.post(this.LAUNCH + "/" + operationId, headers, null);
    };
    IngestCleanupService = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Injectable"])(),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__common_resources_service__["a" /* ResourcesService */]])
    ], IngestCleanupService);
    return IngestCleanupService;
}());



/***/ }),

/***/ "./src/app/admin/link-au/link-au.component.css":
/***/ (function(module, exports) {

module.exports = ""

/***/ }),

/***/ "./src/app/admin/link-au/link-au.component.html":
/***/ (function(module, exports) {

module.exports = "<p-panel [header]=\"'Ajout et suppression d\\'un parent'\">\n  <div class=\"ui-g\">\n    <div class=\"ui-g-12\">\n      <div class=\"ui-g-4\">\n        <span class=\"ui-g-12\">Identifiant de l'unité archivistique parent</span>\n      </div>\n      <div class=\"ui-g-5\">\n        <input pInputText class=\"ui-g-12\" [(ngModel)]=\"request.parentId\">\n      </div>\n    </div>\n    <div class=\"ui-g-12\">\n      <div class=\"ui-g-4\">\n        <span class=\"ui-g-12\">Identifiant de l'unité archivistique enfant</span>\n      </div>\n      <div class=\"ui-g-5\">\n        <input pInputText class=\"ui-g-12\" [(ngModel)]=\"request.childId\">\n      </div>\n    </div>\n\n    <div class=\"ui-g-12\">\n      <div class=\"ui-g-4\">\n        <span class=\"ui-g-12\">Opération</span>\n      </div>\n      <div class=\"ui-g-4\">\n        <div class=\"ui-g-12\" style=\"padding: 0.25em\">\n          <p-dropdown [options]=\"linkOptions\" [(ngModel)]=\"request.action\" placeholder=\"Sélectionner une action\"></p-dropdown>\n        </div>\n      </div>\n    </div>\n\n    <div class=\"ui-g-12\">\n      <div class=\"ui-g-4\">Tenant: </div>\n      <div class=\"ui-g-4\">\n        {{tenant ? tenant : 'Veuillez choisir un tenant'}}\n      </div>\n    </div>\n\n    <div class=\"ui-g-12\">\n      <div class=\"ui-g-4\">Contrat: </div>\n      <div class=\"ui-g-4\">\n        <p-dropdown id=\"contract\" [options]=\"contractsList\" [(ngModel)]=\"selectedContract\"\n                    placeholder=\"Sélectionner un contrat\"></p-dropdown>\n      </div>\n    </div>\n\n    <div class=\"ui-g-12\">\n      <div class=\"ui-g-offset-4 ui-g-4\">\n        <button pButton type=\"button\" [disabled]=\"!tenant\" label=\"Effectuer l'opération\" (click)=\"launchOperation()\"></button>\n      </div>\n    </div>\n  </div>\n</p-panel>\n\n<p-dialog header=\"Erreur de saisie\" [(visible)]=\"displayFormError\" modal=\"modal\" [responsive]=\"true\">\n  <p>Tous les champs du formulaire sont obligatoires, veuillez vérifier les informations saisies</p>\n  <p-footer>\n    <button type=\"button\" pButton icon=\"fa-check\" (click)=\"displayFormError=false\" label=\"OK\"></button>\n  </p-footer>\n</p-dialog>\n\n<p-dialog header=\"Opération en cours\" [(visible)]=\"displaySuccess\" modal=\"modal\" [responsive]=\"true\">\n  <p>Succès du lancement de l'opération de rattachement/détachement.</p>\n  <p>L'opération peut être suivie dans le journal des opérations</p>\n  <p-footer>\n    <button type=\"button\" pButton icon=\"fa-check\" (click)=\"displaySuccess=false\" label=\"OK\"></button>\n  </p-footer>\n</p-dialog>\n\n<p-dialog header=\"Erreur\" [(visible)]=\"displayError\" modal=\"modal\" [responsive]=\"true\">\n  <p>Erreur lors de l'opération de rattachement/détachement de l'unité archivistique</p>\n  <p-footer>\n    <button type=\"button\" pButton icon=\"fa-check\" (click)=\"displayError=false\" label=\"OK\"></button>\n  </p-footer>\n</p-dialog>\n"

/***/ }),

/***/ "./src/app/admin/link-au/link-au.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LinkAuComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__common_page_page_component__ = __webpack_require__("./src/app/common/page/page-component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__common_tenant_service__ = __webpack_require__("./src/app/common/tenant.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_platform_browser__ = __webpack_require__("./node_modules/@angular/platform-browser/esm5/platform-browser.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__common_breadcrumb_service__ = __webpack_require__("./src/app/common/breadcrumb.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__link_au_service__ = __webpack_require__("./src/app/admin/link-au/link-au.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__tests_query_dsl_query_dsl_service__ = __webpack_require__("./src/app/tests/query-dsl/query-dsl.service.ts");
var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};







var breadcrumb = [
    { label: 'Administration', routerLink: '' },
    { label: 'Ajout et suppression d\'un parent', routerLink: 'admin/link-au' }
];
var LinkAuComponent = (function (_super) {
    __extends(LinkAuComponent, _super);
    function LinkAuComponent(titleService, breadcrumbService, queryDslService, linkAuService, tenantService) {
        var _this = _super.call(this, 'Ajout et suppression d\'un parent', breadcrumb, titleService, breadcrumbService) || this;
        _this.titleService = titleService;
        _this.breadcrumbService = breadcrumbService;
        _this.queryDslService = queryDslService;
        _this.linkAuService = linkAuService;
        _this.tenantService = tenantService;
        _this.displayFormError = false;
        _this.displaySuccess = false;
        _this.displayError = false;
        _this.linkOptions = [
            {
                label: 'Ajouter un lien', value: 'ADD'
            }, {
                label: 'Supprimer un lien', value: 'DELETE'
            }
        ];
        _this.request = {
            parentId: null,
            childId: null,
            action: null
        };
        return _this;
    }
    LinkAuComponent.prototype.pageOnInit = function () {
        var _this = this;
        return this.tenantService.getState().subscribe(function (value) {
            _this.tenant = value;
            if (_this.tenant) {
                _this.getContracts();
            }
        });
    };
    LinkAuComponent.prototype.getContracts = function () {
        var _this = this;
        return this.queryDslService.getContracts().subscribe(function (response) {
            _this.contractsList = response.map(function (contract) {
                return { label: contract.Name, value: contract };
            });
        });
    };
    LinkAuComponent.prototype.launchOperation = function () {
        var _this = this;
        if (!this.request.parentId || !this.request.childId || !this.request.action || !this.selectedContract) {
            this.displayFormError = true;
            return;
        }
        this.linkAuService.updateLinks(this.request, this.selectedContract.Identifier).subscribe(function () {
            _this.displaySuccess = true;
        }, function () {
            _this.displayError = true;
        });
    };
    LinkAuComponent = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'vitam-link-au',
            template: __webpack_require__("./src/app/admin/link-au/link-au.component.html"),
            styles: [__webpack_require__("./src/app/admin/link-au/link-au.component.css")]
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_3__angular_platform_browser__["Title"], __WEBPACK_IMPORTED_MODULE_4__common_breadcrumb_service__["a" /* BreadcrumbService */], __WEBPACK_IMPORTED_MODULE_6__tests_query_dsl_query_dsl_service__["a" /* QueryDslService */],
            __WEBPACK_IMPORTED_MODULE_5__link_au_service__["a" /* LinkAuService */], __WEBPACK_IMPORTED_MODULE_2__common_tenant_service__["a" /* TenantService */]])
    ], LinkAuComponent);
    return LinkAuComponent;
}(__WEBPACK_IMPORTED_MODULE_1__common_page_page_component__["a" /* PageComponent */]));



/***/ }),

/***/ "./src/app/admin/link-au/link-au.service.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LinkAuService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common_http__ = __webpack_require__("./node_modules/@angular/common/esm5/http.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__common_resources_service__ = __webpack_require__("./src/app/common/resources.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_util__ = __webpack_require__("./node_modules/util/util.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_util___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_util__);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};




var LinkAuService = (function () {
    function LinkAuService(resourcesService) {
        this.resourcesService = resourcesService;
        this.UPDATE_LINK_API = 'updateLinks';
    }
    LinkAuService.prototype.updateLinks = function (request, contractId) {
        var headers = new __WEBPACK_IMPORTED_MODULE_1__angular_common_http__["c" /* HttpHeaders */]({ 'Content-Type': 'application/json' });
        if (!Object(__WEBPACK_IMPORTED_MODULE_3_util__["isNullOrUndefined"])(contractId)) {
            headers = headers.set('X-Access-Contract-Id', contractId);
        }
        return this.resourcesService.post("" + this.UPDATE_LINK_API, headers, request);
    };
    LinkAuService = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Injectable"])(),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_2__common_resources_service__["a" /* ResourcesService */]])
    ], LinkAuService);
    return LinkAuService;
}());



/***/ }),

/***/ "./src/app/admin/load-storage/load-storage.component.css":
/***/ (function(module, exports) {

module.exports = ".uploadSIPBackground {\n    background-color: #eaedf2;\n    min-height: 310px;\n    border: dashed;\n    border-color:#D5D5D5;\n}\n\n.uploadSIPText {\n    word-wrap: break-word;\n    font-size: 120%;\n    text-align: center;\n}\n\n.uploadFileInput {\n    opacity: 0;\n    width: 100%;\n    top: -30px;\n    position: relative;\n    cursor: pointer;\n}\n"

/***/ }),

/***/ "./src/app/admin/load-storage/load-storage.component.html":
/***/ (function(module, exports) {

module.exports = "<p-panel [header]=\"'Recherche et Modification d\\'un fichier'\">\n  <div class=\"ui-g\">\n\n    <div class=\"ui-g-12\">\n      <div class=\"ui-g-4\">Titre: </div>\n      <div class=\"ui-g-4 ui-g-nopad\">\n        <input id=\"identifier\" class=\"fs-1-1em\" size=\"45\" pInputText [(ngModel)]=\"fileName\" placeholder=\"Nom du Fichier / id export\"/>\n      </div>\n    </div>\n    <div class=\"ui-g-12\">\n      <div class=\"ui-g-4\">Sur quelle Stratégie: </div>\n      <div class=\"ui-g-4\">\n        <p-dropdown [options]=\"strategyList\" [(ngModel)]=\"selectedStrategy\"\n                    [style.width]=\"'100%'\" placeholder=\"Sélectionner une stratégie\" (onChange)=\"selectStrategy()\">\n        </p-dropdown>\n      </div>\n    </div>\n    <div class=\"ui-g-12\">\n      <div class=\"ui-g-4\">Sur quel Offre: </div>\n      <div class=\"ui-g-4\">\n        <p-dropdown id=\"offerId\" [options]=\"offerList\" [(ngModel)]=\"offerId\"\n                    [style.width]=\"'100%'\" placeholder=\"Sélectionner une offre\">\n        </p-dropdown>\n      </div>\n    </div>\n    <div class=\"ui-g-12\">\n      <div class=\"ui-g-4\">Catégorie: </div>\n      <div class=\"ui-g-4\">\n        <p-dropdown id=\"category\" [options]=\"categoryOptions\" [(ngModel)]=\"category\"\n                    [style.width]=\"'100%'\" placeholder=\"Sélectionner une catégorie\">\n        </p-dropdown>\n      </div>\n    </div>\n    <div class=\"ui-g-12\">\n      <div class=\"ui-g-4\">Tenant: </div>\n      <div class=\"ui-g-4\">\n        {{tenant ? tenant : 'Veuillez choisir un tenant'}}\n      </div>\n    </div>\n\n    <div class=\"ui-g-12\" *ngIf=\"error\" (click)=\"error = false\">Un des champs est mal renseigné</div>\n\n    <div class=\"ui-g-12\">\n      <div class=\"ui-g-4\"></div>\n      <div class=\"ui-g-4\">\n        <button pButton type=\"button\" (click)=\"getObject()\" label=\"Récupérer le fichier\"></button>\n        <button pButton type=\"button\" (click)=\"deleteObject()\" label=\"Suprimer le  fichier\"></button>\n        <button pButton type=\"button\" (click)=\"exportObject()\" label=\"Exporter le fichier\"></button>\n        <button pButton type=\"button\" (click)=\"checkExportStatus()\" label=\"Vérifier état export\"></button>\n      </div>\n    </div>\n  </div>\n  <div class=\"clearfix\"></div>\n</p-panel>\n\n<p-panel [header]=\"'Modifier le fichier'\">\n  <span *ngIf=\"dataState === 'OK' && savedData\">Modification du fichier: {{savedData.category}} - {{savedData.file}} (Tenant: {{tenant}})</span>\n  <span *ngIf=\"!savedData\">Aucun emplacement cible choisi, merci de remplir le formulaire ci-dessus et récupérer le fichier original</span>\n  <span *ngIf=\"dataState === 'RUNNING'\">Récupération du fichier en cours...</span>\n  <div class=\"ui-g\">\n    <div class=\"ui-g-12 uploadSIPBackground\">\n      <div class=\"uploadSIPText\">\n        <div style=\"display: inline-block; color:#0099FF; text-align: center\">\n          sélectionner un fichier <input #file (change)=\"onChange(file.files) \" type=\"file\" class=\"uploadFileInput\"/>\n        </div>\n        <p style=\"margin-top: 0\">ou</p>\n        <file-drop headertext=\"Glisser un fichier ici\" (onFileDrop)=\"onFileDrop($event)\">\n        </file-drop>\n        <p *ngIf=\"fileUpload\">Nom du fichier: {{fileUpload.name}}</p>\n        <p *ngIf=\"!fileUpload\" class=\"uploadFileMessage\">Aucun fichier choisi</p>\n      </div>\n      <button pButton type=\"button\" (click)=\"uploadFile()\" label=\"Importer\" [disabled]=\"!fileUpload\"></button>\n    </div>\n  </div>\n\n  <div class=\"clearfix\"></div>\n</p-panel>\n\n<p-dialog header=\"Erreur de recherche\" [(visible)]=\"displayGetError\" modal=\"modal\" [responsive]=\"true\">\n  <p *ngIf=\"readOrderRequestError\">Erreur: {{readOrderRequestError.code}}, avec le message: {{readOrderRequestError.message}}, et la description: {{readOrderRequestError.description}}</p>\n  <p-footer>\n    <button type=\"button\" pButton icon=\"fa-check\" (click)=\"displayGetError=false\" label=\"OK\"></button>\n  </p-footer>\n</p-dialog>\n<p-dialog header=\"Demande d'export acceptée\" [(visible)]=\"displayAsyncGetMessage\" modal=\"modal\" [responsive]=\"true\">\n  <p *ngIf=\"readOrderRequest\">Read Request Id: {{readOrderRequest._id}}, IsCompleted: {{readOrderRequest.isCompleted}}, isExpired: {{readOrderRequest.isExpired}}</p>\n  <p-footer>\n    <button type=\"button\" pButton icon=\"fa-check\" (click)=\"displayAsyncGetMessage=false\" label=\"OK\"></button>\n  </p-footer>\n</p-dialog>\n<p-dialog header=\"Etat export terminé\" [(visible)]=\"displayExportStatusOK\" modal=\"modal\" [responsive]=\"true\">\n  <p>Etat de votre export est : </p>\n  <p *ngIf=\"readOrderRequest\">Read Request Id: {{readOrderRequest._id}}, IsCompleted: {{readOrderRequest.isCompleted}}, isExpired: {{readOrderRequest.isExpired}}</p>\n  <p-footer>\n    <button type=\"button\" pButton icon=\"fa-check\" (click)=\"displayExportStatusOK=false\" label=\"OK\"></button>\n  </p-footer>\n</p-dialog>\n<p-dialog header=\"Etat export en cours\" [(visible)]=\"displayExportStatusInprogressOrKo\" modal=\"modal\" [responsive]=\"true\">\n  <p>Votre export n'a pas été trouvé. Soit il est en cours soit l'identifiant saisi est erroné</p>\n  <p *ngIf=\"readOrderRequestError\">Erreur: {{readOrderRequestError.code}}, avec le message: {{readOrderRequestError.message}}, et la description: {{readOrderRequestError.description}}</p>\n  <p-footer>\n    <button type=\"button\" pButton icon=\"fa-check\" (click)=\"displayExportStatusInprogressOrKo=false\" label=\"OK\"></button>\n  </p-footer>\n</p-dialog>\n<p-dialog header=\"Erreur de supression \" [(visible)]=\"displayDeleteError\" modal=\"modal\" [responsive]=\"true\">\n  <p>Erreur lors de la supression  du fichier, veuillez vérifier les informations saisies</p>\n  <p-footer>\n    <button type=\"button\" pButton icon=\"fa-check\" (click)=\"displayGetError=false\" label=\"OK\"></button>\n  </p-footer>\n</p-dialog>\n\n<p-dialog header=\"Supression \" [(visible)]=\"displayMessageDelete\" modal=\"modal\" [responsive]=\"true\">\n  <p>Le fichier à bien été suprimé !</p>\n  <p-footer>\n    <button type=\"button\" pButton icon=\"fa-check\" (click)=\"displayMessageDelete=false\" label=\"OK\"></button>\n  </p-footer>\n</p-dialog>\n\n<p-dialog header=\"Données invalides\" [(visible)]=\"displayErrorInitImport\" modal=\"modal\" [responsive]=\"true\">\n  <p>Une recherche en succès doit avoir été effectuée pour définir l'emplacement du fichier importé</p>\n  <p-footer>\n    <button type=\"button\" pButton icon=\"fa-check\" (click)=\"displayErrorInitImport=false\" label=\"OK\"></button>\n  </p-footer>\n</p-dialog>\n\n<p-dialog header=\"Erreur de mise à jour\" [(visible)]=\"displayErrorImport\" modal=\"modal\" [responsive]=\"true\">\n  <p>Une erreur est survenue lors de la récupération de la mise à jour du fichier</p>\n  <p-footer>\n    <button type=\"button\" pButton icon=\"fa-check\" (click)=\"displayErrorImport=false\" label=\"OK\"></button>\n  </p-footer>\n</p-dialog>\n\n<p-dialog header=\"Succès de mise à jour\" [(visible)]=\"displaySuccessImport\" modal=\"modal\" [responsive]=\"true\">\n  <p>Le fichier à bien été mis à jour</p>\n  <p-footer>\n    <button type=\"button\" pButton icon=\"fa-check\" (click)=\"displaySuccessImport=false\" label=\"OK\"></button>\n  </p-footer>\n</p-dialog>\n"

/***/ }),

/***/ "./src/app/admin/load-storage/load-storage.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LoadStorageComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common_http__ = __webpack_require__("./node_modules/@angular/common/esm5/http.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__common_resources_service__ = __webpack_require__("./src/app/common/resources.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__load_storage_service__ = __webpack_require__("./src/app/admin/load-storage/load-storage.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__common_tenant_service__ = __webpack_require__("./src/app/common/tenant.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__common_page_page_component__ = __webpack_require__("./src/app/common/page/page-component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__common_breadcrumb_service__ = __webpack_require__("./src/app/common/breadcrumb.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__angular_platform_browser__ = __webpack_require__("./node_modules/@angular/platform-browser/esm5/platform-browser.js");
var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};








var FileData = (function () {
    function FileData(file, category, strategyId, offerId) {
        this.file = file;
        this.category = category;
    }
    return FileData;
}());
var breadcrumb = [
    { label: 'Administration', routerLink: '' },
    { label: 'Recherche et modification d\'un fichier', routerLink: 'admin/load-storage' }
];
var LoadStorageComponent = (function (_super) {
    __extends(LoadStorageComponent, _super);
    function LoadStorageComponent(titleService, breadcrumbService, resourcesService, loadStorageService, tenantService) {
        var _this = _super.call(this, 'Recherche et modification d\'un fichier', breadcrumb, titleService, breadcrumbService) || this;
        _this.titleService = titleService;
        _this.breadcrumbService = breadcrumbService;
        _this.resourcesService = resourcesService;
        _this.loadStorageService = loadStorageService;
        _this.tenantService = tenantService;
        _this.error = false;
        _this.tenant = _this.resourcesService.getTenant();
        _this.dataState = 'KO';
        _this.displayErrorInitImport = false;
        _this.displayGetError = false;
        _this.displayAsyncGetMessage = false;
        _this.displayExportStatusOK = false;
        _this.displayExportStatusInprogressOrKo = false;
        _this.displayDeleteError = false;
        _this.displayMessageDelete = false;
        _this.displayErrorImport = false;
        _this.displaySuccessImport = false;
        _this.selectedStrategy = {};
        _this.categoryOptions = [
            { label: 'Unités Archivistiques', value: 'UNIT' },
            { label: 'Objet binaires', value: 'OBJECT' },
            { label: 'Groupes d\'objets techniques', value: 'OBJECTGROUP' }
        ];
        return _this;
    }
    LoadStorageComponent.prototype.pageOnInit = function () {
        var _this = this;
        return this.tenantService.getState().subscribe(function (value) {
            _this.tenant = value;
            if (_this.tenant) {
                _this.getStrategies();
            }
            _this.dataState = 'KO';
            delete _this.savedData;
        });
    };
    LoadStorageComponent.prototype.getStrategies = function () {
        var _this = this;
        return this.resourcesService.get("strategies", new __WEBPACK_IMPORTED_MODULE_1__angular_common_http__["c" /* HttpHeaders */]().set('X-Tenant-Id', this.tenant)).subscribe(function (response) {
            _this.strategyList = response.map(function (strategy) {
                return { label: strategy.id, value: strategy };
            });
        });
    };
    LoadStorageComponent.prototype.selectStrategy = function () {
        this.strategyId = this.selectedStrategy.id;
        this.offerList = this.selectedStrategy.offers.map(function (offer) {
            return { label: offer.id, value: offer.id };
        });
    };
    LoadStorageComponent.prototype.getObject = function () {
        var _this = this;
        if (!this.fileName || !this.category || !this.tenant || !this.strategyId || !this.offerId) {
            this.error = true;
            return;
        }
        this.dataState = 'RUNNING';
        this.savedData = new FileData(this.fileName, this.category, this.strategyId, this.offerId);
        this.loadStorageService.download(this.fileName, this.category, this.strategyId, this.offerId).subscribe(function (response) {
            var a = document.createElement('a');
            document.body.appendChild(a);
            a.href = URL.createObjectURL(response.body);
            a.download = _this.fileName;
            a.click();
            _this.dataState = 'OK';
        }, function () {
            delete _this.savedData;
            _this.dataState = 'KO';
            _this.displayGetError = true;
        });
    };
    LoadStorageComponent.prototype.exportObject = function () {
        var _this = this;
        if (!this.fileName || !this.category || !this.tenant || !this.strategyId || !this.offerId) {
            this.error = true;
            return;
        }
        this.dataState = 'RUNNING';
        this.savedData = new FileData(this.fileName, this.category, this.strategyId, this.offerId);
        this.loadStorageService.createReadOrderRequest(this.fileName, this.category, this.strategyId, this.offerId).subscribe(function (response) {
            _this.readOrderRequest = response.$results[0];
            _this.displayAsyncGetMessage = true;
            _this.dataState = 'OK';
        }, function (error) {
            delete _this.savedData;
            _this.readOrderRequestError = error.error;
            _this.dataState = 'KO';
            _this.displayGetError = true;
        });
    };
    LoadStorageComponent.prototype.checkExportStatus = function () {
        var _this = this;
        if (!this.fileName || !this.tenant || !this.strategyId) {
            this.error = true;
            return;
        }
        this.dataState = 'RUNNING';
        this.loadStorageService.getReadOrderRequest(this.fileName, this.strategyId, this.offerId).subscribe(function (response) {
            _this.readOrderRequest = response.$results[0];
            _this.displayExportStatusOK = true;
            _this.dataState = 'OK';
        }, function (error) {
            delete _this.savedData;
            _this.readOrderRequestError = error.error;
            _this.dataState = 'KO';
            _this.displayExportStatusInprogressOrKo = true;
        });
    };
    LoadStorageComponent.prototype.deleteObject = function () {
        var _this = this;
        if (!this.fileName || !this.category || !this.tenant || !this.strategyId || !this.offerId) {
            this.error = true;
            return;
        }
        this.loadStorageService.delete(this.fileName, this.category, this.strategyId, this.offerId).subscribe(function (response) {
            _this.displayMessageDelete = true;
        }, function () {
            delete _this.savedData;
            _this.displayDeleteError = true;
        });
    };
    LoadStorageComponent.prototype.onFileDrop = function (event) {
        var _this = this;
        for (var _i = 0, _a = event.files; _i < _a.length; _i++) {
            var droppedFile = _a[_i];
            if (droppedFile.fileEntry.isFile) {
                var fileEntry = droppedFile.fileEntry;
                fileEntry.file(function (file) {
                    _this.fileUpload = file;
                });
            }
        }
    };
    LoadStorageComponent.prototype.onChange = function (files) {
        this.fileUpload = files[0];
    };
    LoadStorageComponent.prototype.uploadFile = function () {
        var _this = this;
        this.loadStorageService.uploadFile(this.fileUpload, this.fileName, this.fileUpload.size, this.category, this.strategyId, this.offerId).subscribe(function (response) {
            delete _this.fileUpload;
            _this.displaySuccessImport = true;
        }, function () {
            delete _this.fileUpload;
            _this.displayErrorImport = true;
        });
    };
    LoadStorageComponent = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'vitam-load-storage',
            template: __webpack_require__("./src/app/admin/load-storage/load-storage.component.html"),
            styles: [__webpack_require__("./src/app/admin/load-storage/load-storage.component.css")]
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_7__angular_platform_browser__["Title"], __WEBPACK_IMPORTED_MODULE_6__common_breadcrumb_service__["a" /* BreadcrumbService */], __WEBPACK_IMPORTED_MODULE_2__common_resources_service__["a" /* ResourcesService */],
            __WEBPACK_IMPORTED_MODULE_3__load_storage_service__["a" /* LoadStorageService */], __WEBPACK_IMPORTED_MODULE_4__common_tenant_service__["a" /* TenantService */]])
    ], LoadStorageComponent);
    return LoadStorageComponent;
}(__WEBPACK_IMPORTED_MODULE_5__common_page_page_component__["a" /* PageComponent */]));



/***/ }),

/***/ "./src/app/admin/load-storage/load-storage.service.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LoadStorageService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__common_resources_service__ = __webpack_require__("./src/app/common/resources.service.ts");
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};


var LoadStorageService = (function () {
    function LoadStorageService(resourcesService) {
        this.resourcesService = resourcesService;
        this.DOWNLOAD_API = 'download';
        this.READ_ORDER_API = 'readorder';
        this.UPLOAD_API = 'replaceObject';
        this.DELETE_API = 'deleteObject';
    }
    LoadStorageService.prototype.download = function (fileName, category, strategyId, offerId) {
        return this.resourcesService.get(this.DOWNLOAD_API + "/" + strategyId + "/" + offerId + "/" + category + "/" + fileName, null, 'blob');
    };
    LoadStorageService.prototype.createReadOrderRequest = function (fileName, category, strategyId, offerId) {
        return this.resourcesService.post(this.READ_ORDER_API + "/" + strategyId + "/" + offerId + "/" + category + "/" + fileName, null, 'json');
    };
    LoadStorageService.prototype.getReadOrderRequest = function (readOrderId, strategyId, offerId) {
        return this.resourcesService.get(this.READ_ORDER_API + "/" + strategyId + "/" + offerId + "/" + readOrderId, null, 'json');
    };
    LoadStorageService.prototype.uploadFile = function (newFile, fileName, size, category, strategyId, offerId) {
        return this.resourcesService.post(this.UPLOAD_API + "/" + category + "/" + strategyId + "/" + offerId + "/" + fileName + "/" + size, null, newFile);
    };
    LoadStorageService.prototype.delete = function (fileName, category, strategyId, offerId) {
        return this.resourcesService.delete(this.DELETE_API + "/" + category + "/" + strategyId + "/" + offerId + "/" + fileName, null);
    };
    LoadStorageService = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Injectable"])(),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__common_resources_service__["a" /* ResourcesService */]])
    ], LoadStorageService);
    return LoadStorageService;
}());



/***/ }),

/***/ "./src/app/admin/test-audit-correction/test-audit-correction.component.css":
/***/ (function(module, exports) {

module.exports = ".uploadSIPBackground {\n    background-color: #eaedf2;\n    min-height: 310px;\n    border: dashed;\n    border-color:#D5D5D5;\n}\n\n.uploadSIPText {\n    word-wrap: break-word;\n    font-size: 120%;\n    text-align: center;\n}\n\n.uploadFileInput {\n    opacity: 0;\n    width: 100%;\n    top: -30px;\n    position: relative;\n    cursor: pointer;\n}\n"

/***/ }),

/***/ "./src/app/admin/test-audit-correction/test-audit-correction.component.html":
/***/ (function(module, exports) {

module.exports = "<p-panel [header]=\"'Recherche et Modification d\\'un fichier'\">\n    <div class=\"ui-g\">\n\n        <div class=\"ui-g-12\">\n            <div class=\"ui-g-4\">Operation ID:</div>\n            <div class=\"ui-g-4 ui-g-nopad\">\n                <input id=\"identifier\" class=\"fs-1-1em\" size=\"45\" pInputText [(ngModel)]=\"operationId\"\n                       placeholder=\"Identifiant d'opération\"/>\n            </div>\n        </div>\n        <div class=\"ui-g-12\">\n            <div class=\"ui-g-4\">Tenant:</div>\n            <div class=\"ui-g-4\">\n                {{tenant ? tenant : 'Veuillez choisir un tenant'}}\n            </div>\n        </div>\n\n        <div class=\"ui-g-12\">\n          <div class=\"ui-g-4\">Contrat: </div>\n          <div class=\"ui-g-4\">\n            <p-dropdown id=\"contract\" [options]=\"contractsList\" [(ngModel)]=\"selectedContract\"\n                        placeholder=\"Sélectionner un contrat\"></p-dropdown>\n          </div>\n        </div>\n\n        <div class=\"ui-g-12\" *ngIf=\"error\" (click)=\"error = false\">Un des champs est mal renseigné</div>\n\n        <div class=\"ui-g-12\">\n            <div class=\"ui-g-4\"></div>\n            <div class=\"ui-g-4\">\n                <button pButton type=\"button\" (click)=\"getObject()\" label=\"Lancer la correction\"></button>\n            </div>\n        </div>\n    </div>\n    <div class=\"clearfix\"></div>\n\n    <p-dialog header=\"Audit correctif \" [(visible)]=\"auditKo\" modal=\"modal\" [responsive]=\"true\">\n        <p>Erreur lors ddu lancement de l'operation </p>\n        <p-footer>\n            <button type=\"button\" pButton icon=\"fa-check\" (click)=\"auditKo=false\" label=\"OK\"></button>\n        </p-footer>\n    </p-dialog>\n    <p-dialog header=\"Audit correctif \" [(visible)]=\"auditOk\" modal=\"modal\" [responsive]=\"true\">\n        <p>L'operation a bien été lancé </p>\n        <p-footer>\n            <button type=\"button\" pButton icon=\"fa-check\" (click)=\"auditOk=false\" label=\"OK\"></button>\n        </p-footer>\n    </p-dialog>\n\n</p-panel>\n"

/***/ }),

/***/ "./src/app/admin/test-audit-correction/test-audit-correction.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TestAuditCorrectionComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__common_resources_service__ = __webpack_require__("./src/app/common/resources.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__test_audit_correction_service__ = __webpack_require__("./src/app/admin/test-audit-correction/test-audit-correction.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_tenant_service__ = __webpack_require__("./src/app/common/tenant.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__tests_query_dsl_query_dsl_service__ = __webpack_require__("./src/app/tests/query-dsl/query-dsl.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__common_page_page_component__ = __webpack_require__("./src/app/common/page/page-component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__common_breadcrumb_service__ = __webpack_require__("./src/app/common/breadcrumb.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__angular_platform_browser__ = __webpack_require__("./node_modules/@angular/platform-browser/esm5/platform-browser.js");
var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};








var FileData = (function () {
    function FileData(file, category, offerId) {
        this.file = file;
        this.category = category;
    }
    return FileData;
}());
var breadcrumb = [
    { label: 'Administration', routerLink: '' },
    { label: 'Correction d\'audit', routerLink: 'admin/test-audit-correction' }
];
var TestAuditCorrectionComponent = (function (_super) {
    __extends(TestAuditCorrectionComponent, _super);
    function TestAuditCorrectionComponent(titleService, breadcrumbService, queryDslService, resourcesService, testAuditCorrectionService, tenantService) {
        var _this = _super.call(this, 'Lancement audit correctifs', breadcrumb, titleService, breadcrumbService) || this;
        _this.titleService = titleService;
        _this.breadcrumbService = breadcrumbService;
        _this.queryDslService = queryDslService;
        _this.resourcesService = resourcesService;
        _this.testAuditCorrectionService = testAuditCorrectionService;
        _this.tenantService = tenantService;
        _this.error = false;
        _this.auditKo = false;
        _this.auditOk = false;
        return _this;
    }
    TestAuditCorrectionComponent.prototype.pageOnInit = function () {
        var _this = this;
        return this.tenantService.getState().subscribe(function (value) {
            _this.tenant = value;
            if (_this.tenant) {
                _this.getContracts();
            }
        });
    };
    TestAuditCorrectionComponent.prototype.getContracts = function () {
        var _this = this;
        return this.queryDslService.getContracts().subscribe(function (response) {
            _this.contractsList = response.map(function (contract) {
                return { label: contract.Name, value: contract };
            });
        }, function (error) {
            _this.auditKo = true;
        });
    };
    TestAuditCorrectionComponent.prototype.getObject = function () {
        var _this = this;
        if (!this.operationId || !this.tenant || !this.selectedContract) {
            this.error = true;
            return;
        }
        this.testAuditCorrectionService.launch(this.operationId, this.selectedContract.Identifier).subscribe(function (response) {
            _this.auditOk = true;
        }, function (error) {
            _this.auditKo = true;
        });
    };
    TestAuditCorrectionComponent = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'vitam-test-audit-correction',
            template: __webpack_require__("./src/app/admin/test-audit-correction/test-audit-correction.component.html"),
            styles: [__webpack_require__("./src/app/admin/test-audit-correction/test-audit-correction.component.css")]
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_7__angular_platform_browser__["Title"], __WEBPACK_IMPORTED_MODULE_6__common_breadcrumb_service__["a" /* BreadcrumbService */], __WEBPACK_IMPORTED_MODULE_4__tests_query_dsl_query_dsl_service__["a" /* QueryDslService */],
            __WEBPACK_IMPORTED_MODULE_1__common_resources_service__["a" /* ResourcesService */], __WEBPACK_IMPORTED_MODULE_2__test_audit_correction_service__["a" /* TestAuditCorrectionService */], __WEBPACK_IMPORTED_MODULE_3__common_tenant_service__["a" /* TenantService */]])
    ], TestAuditCorrectionComponent);
    return TestAuditCorrectionComponent;
}(__WEBPACK_IMPORTED_MODULE_5__common_page_page_component__["a" /* PageComponent */]));



/***/ }),

/***/ "./src/app/admin/test-audit-correction/test-audit-correction.service.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TestAuditCorrectionService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__common_resources_service__ = __webpack_require__("./src/app/common/resources.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_common_http__ = __webpack_require__("./node_modules/@angular/common/esm5/http.js");
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};



var TestAuditCorrectionService = (function () {
    function TestAuditCorrectionService(resourcesService) {
        this.resourcesService = resourcesService;
        this.LAUNCH = 'launchAudit';
    }
    TestAuditCorrectionService.prototype.launch = function (operationId, contractId) {
        var headers = new __WEBPACK_IMPORTED_MODULE_2__angular_common_http__["c" /* HttpHeaders */]().set('X-Tenant-Id', this.resourcesService.getTenant());
        if (contractId) {
            headers = headers.set('X-Access-Contract-Id', contractId);
        }
        return this.resourcesService.post(this.LAUNCH + "/" + operationId, headers, null);
    };
    TestAuditCorrectionService = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Injectable"])(),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__common_resources_service__["a" /* ResourcesService */]])
    ], TestAuditCorrectionService);
    return TestAuditCorrectionService;
}());



/***/ }),

/***/ "./src/app/app.component.css":
/***/ (function(module, exports) {

module.exports = ".innerBody {\n  max-width: 1200px;\n  margin: 0 auto;\n}\n"

/***/ }),

/***/ "./src/app/app.component.html":
/***/ (function(module, exports) {

module.exports = "<div style=\"text-align:center\">\n  <vitam-menu></vitam-menu>\n  <vitam-breadcrumb></vitam-breadcrumb>\n  <div class=\"innerBody\">\n  <router-outlet></router-outlet>\n  </div>\n  <vitam-egg></vitam-egg>\n</div>\n"

/***/ }),

/***/ "./src/app/app.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_angular2_cookie_core__ = __webpack_require__("./node_modules/angular2-cookie/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_angular2_cookie_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_angular2_cookie_core__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__("./node_modules/@angular/router/esm5/router.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_filter__ = __webpack_require__("./node_modules/rxjs/_esm5/add/operator/filter.js");
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};




var AppComponent = (function () {
    function AppComponent(router, cookies) {
        var _this = this;
        this.router = router;
        this.cookies = cookies;
        this.title = 'vitam';
        router.events
            .filter(function (event) { return event instanceof __WEBPACK_IMPORTED_MODULE_2__angular_router__["NavigationEnd"]; })
            .subscribe(function (event) {
            if (localStorage.getItem("REC-loggedIn") !== 'true') {
                _this.router.navigate(["login"]);
            }
        });
    }
    AppComponent = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'vitam-root',
            template: __webpack_require__("./src/app/app.component.html"),
            styles: [__webpack_require__("./src/app/app.component.css")],
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_2__angular_router__["Router"], __WEBPACK_IMPORTED_MODULE_1_angular2_cookie_core__["CookieService"]])
    ], AppComponent);
    return AppComponent;
}());



/***/ }),

/***/ "./src/app/app.module.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppModule; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__("./node_modules/@angular/platform-browser/esm5/platform-browser.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_platform_browser_animations__ = __webpack_require__("./node_modules/@angular/platform-browser/esm5/animations.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_forms__ = __webpack_require__("./node_modules/@angular/forms/esm5/forms.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_angular2_cookie_core__ = __webpack_require__("./node_modules/angular2-cookie/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_angular2_cookie_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_angular2_cookie_core__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_primeng_primeng__ = __webpack_require__("./node_modules/primeng/primeng.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_primeng_primeng___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_primeng_primeng__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__angular_router__ = __webpack_require__("./node_modules/@angular/router/esm5/router.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_ng2_vis__ = __webpack_require__("./node_modules/ng2-vis/ng2-vis.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_ng2_vis___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_ng2_vis__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_ngx_file_drop__ = __webpack_require__("./node_modules/ngx-file-drop/ngx-file-drop.es5.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__app_component__ = __webpack_require__("./src/app/app.component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__common_menu_menu_component__ = __webpack_require__("./src/app/common/menu/menu.component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__common_breadcrumb_breadcrumb_component__ = __webpack_require__("./src/app/common/breadcrumb/breadcrumb.component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__common_results_results_component__ = __webpack_require__("./src/app/common/results/results.component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__common_egg_egg_component__ = __webpack_require__("./src/app/common/egg/egg.component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__common_egg_egg_service__ = __webpack_require__("./src/app/common/egg/egg.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__tests_functional_tests_functional_tests_component__ = __webpack_require__("./src/app/tests/functional-tests/functional-tests.component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__tests_functional_tests_detail_functional_tests_detail_component__ = __webpack_require__("./src/app/tests/functional-tests/detail/functional-tests-detail.component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__tests_perf_perf_component__ = __webpack_require__("./src/app/tests/perf/perf.component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__tests_query_dsl_query_dsl_component__ = __webpack_require__("./src/app/tests/query-dsl/query-dsl.component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__admin_collection_collection_component__ = __webpack_require__("./src/app/admin/collection/collection.component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__traceability_logbook_logbook_component__ = __webpack_require__("./src/app/traceability/logbook/logbook.component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__admin_collection_remove_items_remove_items_component__ = __webpack_require__("./src/app/admin/collection/remove-items/remove-items.component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__admin_collection_collection_service__ = __webpack_require__("./src/app/admin/collection/collection.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__common_resources_service__ = __webpack_require__("./src/app/common/resources.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_24__common_generic_table_generic_table_component__ = __webpack_require__("./src/app/common/generic-table/generic-table.component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_25__common_breadcrumb_service__ = __webpack_require__("./src/app/common/breadcrumb.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_26__tests_query_dsl_query_dsl_service__ = __webpack_require__("./src/app/tests/query-dsl/query-dsl.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_27__tests_functional_tests_functional_tests_service__ = __webpack_require__("./src/app/tests/functional-tests/functional-tests.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_28__traceability_logbook_logbook_service__ = __webpack_require__("./src/app/traceability/logbook/logbook.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_29__tests_perf_perf_service__ = __webpack_require__("./src/app/tests/perf/perf.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_30__authentication_authentication_component__ = __webpack_require__("./src/app/authentication/authentication.component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_31__authentication_authentication_service__ = __webpack_require__("./src/app/authentication/authentication.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_32__common_tenant_service__ = __webpack_require__("./src/app/common/tenant.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_33__tests_dag_visualization_dag_visualization_component__ = __webpack_require__("./src/app/tests/dag-visualization/dag-visualization.component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_34__angular_common_http__ = __webpack_require__("./node_modules/@angular/common/esm5/http.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_35__admin_load_storage_load_storage_component__ = __webpack_require__("./src/app/admin/load-storage/load-storage.component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_36__admin_load_storage_load_storage_service__ = __webpack_require__("./src/app/admin/load-storage/load-storage.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_37__admin_link_au_link_au_component__ = __webpack_require__("./src/app/admin/link-au/link-au.component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_38__admin_link_au_link_au_service__ = __webpack_require__("./src/app/admin/link-au/link-au.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_39__admin_test_audit_correction_test_audit_correction_component__ = __webpack_require__("./src/app/admin/test-audit-correction/test-audit-correction.component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_40__admin_test_audit_correction_test_audit_correction_service__ = __webpack_require__("./src/app/admin/test-audit-correction/test-audit-correction.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_41__tests_functional_tests_feature_functional_tests_feature_component__ = __webpack_require__("./src/app/tests/functional-tests-feature/functional-tests-feature.component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_42__tests_functional_tests_feature_service__ = __webpack_require__("./src/app/tests/functional-tests-feature.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_43__admin_configuration_configuration_component__ = __webpack_require__("./src/app/admin/configuration/configuration.component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_44__admin_ingest_cleanup_ingest_cleanup_component__ = __webpack_require__("./src/app/admin/ingest-cleanup/ingest-cleanup.component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_45__admin_ingest_cleanup_ingest_cleanup_service__ = __webpack_require__("./src/app/admin/ingest-cleanup/ingest-cleanup.service.ts");
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};















































var appRoutes = [
    {
        path: 'admin/collection', component: __WEBPACK_IMPORTED_MODULE_19__admin_collection_collection_component__["a" /* CollectionComponent */]
    },
    {
        path: 'admin/load-storage', component: __WEBPACK_IMPORTED_MODULE_35__admin_load_storage_load_storage_component__["a" /* LoadStorageComponent */]
    },
    {
        path: 'admin/test-audit-correction', component: __WEBPACK_IMPORTED_MODULE_39__admin_test_audit_correction_test_audit_correction_component__["a" /* TestAuditCorrectionComponent */]
    },
    {
        path: 'admin/ingest-cleanup', component: __WEBPACK_IMPORTED_MODULE_44__admin_ingest_cleanup_ingest_cleanup_component__["a" /* IngestCleanupComponent */]
    },
    {
        path: 'admin/link-au', component: __WEBPACK_IMPORTED_MODULE_37__admin_link_au_link_au_component__["a" /* LinkAuComponent */]
    },
    {
        path: 'admin/configuration', component: __WEBPACK_IMPORTED_MODULE_43__admin_configuration_configuration_component__["a" /* ConfigurationComponent */]
    },
    {
        path: 'login', component: __WEBPACK_IMPORTED_MODULE_30__authentication_authentication_component__["a" /* AuthenticationComponent */]
    },
    {
        path: 'tests/functional-tests', component: __WEBPACK_IMPORTED_MODULE_15__tests_functional_tests_functional_tests_component__["a" /* FunctionalTestsComponent */]
    },
    {
        path: 'tests/functional-tests/:fileName', component: __WEBPACK_IMPORTED_MODULE_16__tests_functional_tests_detail_functional_tests_detail_component__["a" /* FunctionalTestsDetailComponent */]
    },
    {
        path: 'tests/queryDSL', component: __WEBPACK_IMPORTED_MODULE_18__tests_query_dsl_query_dsl_component__["a" /* QueryDSLComponent */]
    },
    {
        path: 'tests/testFeature', component: __WEBPACK_IMPORTED_MODULE_41__tests_functional_tests_feature_functional_tests_feature_component__["a" /* FunctionalTestsFeatureComponent */]
    },
    {
        path: 'tests/perf', component: __WEBPACK_IMPORTED_MODULE_17__tests_perf_perf_component__["a" /* PerfComponent */]
    },
    {
        path: 'traceability/logbook', component: __WEBPACK_IMPORTED_MODULE_20__traceability_logbook_logbook_component__["a" /* LogbookComponent */]
    },
    {
        path: 'tests/dag-visualization', component: __WEBPACK_IMPORTED_MODULE_33__tests_dag_visualization_dag_visualization_component__["a" /* DagVisualizationComponent */]
    },
    {
        path: '**', redirectTo: 'login', pathMatch: 'full'
    }
];
var AppModule = (function () {
    function AppModule() {
    }
    AppModule = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["NgModule"])({
            declarations: [
                __WEBPACK_IMPORTED_MODULE_9__app_component__["a" /* AppComponent */],
                __WEBPACK_IMPORTED_MODULE_10__common_menu_menu_component__["a" /* MenuComponent */],
                __WEBPACK_IMPORTED_MODULE_11__common_breadcrumb_breadcrumb_component__["a" /* BreadcrumbComponent */],
                __WEBPACK_IMPORTED_MODULE_12__common_results_results_component__["a" /* ResultsComponent */],
                __WEBPACK_IMPORTED_MODULE_13__common_egg_egg_component__["a" /* EggComponent */],
                __WEBPACK_IMPORTED_MODULE_15__tests_functional_tests_functional_tests_component__["a" /* FunctionalTestsComponent */],
                __WEBPACK_IMPORTED_MODULE_16__tests_functional_tests_detail_functional_tests_detail_component__["a" /* FunctionalTestsDetailComponent */],
                __WEBPACK_IMPORTED_MODULE_17__tests_perf_perf_component__["a" /* PerfComponent */],
                __WEBPACK_IMPORTED_MODULE_18__tests_query_dsl_query_dsl_component__["a" /* QueryDSLComponent */],
                __WEBPACK_IMPORTED_MODULE_19__admin_collection_collection_component__["a" /* CollectionComponent */],
                __WEBPACK_IMPORTED_MODULE_20__traceability_logbook_logbook_component__["a" /* LogbookComponent */],
                __WEBPACK_IMPORTED_MODULE_21__admin_collection_remove_items_remove_items_component__["a" /* RemoveItemsComponent */],
                __WEBPACK_IMPORTED_MODULE_24__common_generic_table_generic_table_component__["a" /* GenericTableComponent */],
                __WEBPACK_IMPORTED_MODULE_30__authentication_authentication_component__["a" /* AuthenticationComponent */],
                __WEBPACK_IMPORTED_MODULE_33__tests_dag_visualization_dag_visualization_component__["a" /* DagVisualizationComponent */],
                __WEBPACK_IMPORTED_MODULE_7_ng2_vis__["VisNetworkDirective"],
                __WEBPACK_IMPORTED_MODULE_35__admin_load_storage_load_storage_component__["a" /* LoadStorageComponent */],
                __WEBPACK_IMPORTED_MODULE_37__admin_link_au_link_au_component__["a" /* LinkAuComponent */],
                __WEBPACK_IMPORTED_MODULE_39__admin_test_audit_correction_test_audit_correction_component__["a" /* TestAuditCorrectionComponent */],
                __WEBPACK_IMPORTED_MODULE_41__tests_functional_tests_feature_functional_tests_feature_component__["a" /* FunctionalTestsFeatureComponent */],
                __WEBPACK_IMPORTED_MODULE_43__admin_configuration_configuration_component__["a" /* ConfigurationComponent */],
                __WEBPACK_IMPORTED_MODULE_44__admin_ingest_cleanup_ingest_cleanup_component__["a" /* IngestCleanupComponent */]
            ],
            imports: [
                __WEBPACK_IMPORTED_MODULE_6__angular_router__["RouterModule"].forRoot(appRoutes, { useHash: true }),
                __WEBPACK_IMPORTED_MODULE_34__angular_common_http__["b" /* HttpClientModule */],
                __WEBPACK_IMPORTED_MODULE_5_primeng_primeng__["MenubarModule"],
                __WEBPACK_IMPORTED_MODULE_5_primeng_primeng__["ButtonModule"],
                __WEBPACK_IMPORTED_MODULE_5_primeng_primeng__["PanelModule"],
                __WEBPACK_IMPORTED_MODULE_2__angular_platform_browser_animations__["a" /* BrowserAnimationsModule */],
                __WEBPACK_IMPORTED_MODULE_5_primeng_primeng__["FieldsetModule"],
                __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__["BrowserModule"],
                __WEBPACK_IMPORTED_MODULE_5_primeng_primeng__["DialogModule"],
                __WEBPACK_IMPORTED_MODULE_3__angular_forms__["FormsModule"],
                __WEBPACK_IMPORTED_MODULE_5_primeng_primeng__["MessagesModule"],
                __WEBPACK_IMPORTED_MODULE_5_primeng_primeng__["DataTableModule"],
                __WEBPACK_IMPORTED_MODULE_5_primeng_primeng__["SharedModule"],
                __WEBPACK_IMPORTED_MODULE_5_primeng_primeng__["BreadcrumbModule"],
                __WEBPACK_IMPORTED_MODULE_5_primeng_primeng__["DropdownModule"],
                __WEBPACK_IMPORTED_MODULE_5_primeng_primeng__["ChipsModule"],
                __WEBPACK_IMPORTED_MODULE_5_primeng_primeng__["GrowlModule"],
                __WEBPACK_IMPORTED_MODULE_5_primeng_primeng__["PasswordModule"],
                __WEBPACK_IMPORTED_MODULE_5_primeng_primeng__["InputTextModule"],
                __WEBPACK_IMPORTED_MODULE_5_primeng_primeng__["ProgressBarModule"],
                __WEBPACK_IMPORTED_MODULE_8_ngx_file_drop__["a" /* FileDropModule */]
            ],
            providers: [
                __WEBPACK_IMPORTED_MODULE_22__admin_collection_collection_service__["a" /* CollectionService */],
                __WEBPACK_IMPORTED_MODULE_23__common_resources_service__["a" /* ResourcesService */],
                __WEBPACK_IMPORTED_MODULE_4_angular2_cookie_core__["CookieService"],
                __WEBPACK_IMPORTED_MODULE_25__common_breadcrumb_service__["a" /* BreadcrumbService */],
                __WEBPACK_IMPORTED_MODULE_26__tests_query_dsl_query_dsl_service__["a" /* QueryDslService */],
                __WEBPACK_IMPORTED_MODULE_27__tests_functional_tests_functional_tests_service__["a" /* FunctionalTestsService */],
                __WEBPACK_IMPORTED_MODULE_28__traceability_logbook_logbook_service__["a" /* LogbookService */],
                __WEBPACK_IMPORTED_MODULE_29__tests_perf_perf_service__["a" /* PerfService */],
                __WEBPACK_IMPORTED_MODULE_31__authentication_authentication_service__["a" /* AuthenticationService */],
                __WEBPACK_IMPORTED_MODULE_32__common_tenant_service__["a" /* TenantService */],
                __WEBPACK_IMPORTED_MODULE_14__common_egg_egg_service__["a" /* EggService */],
                __WEBPACK_IMPORTED_MODULE_7_ng2_vis__["VisNetworkService"],
                __WEBPACK_IMPORTED_MODULE_36__admin_load_storage_load_storage_service__["a" /* LoadStorageService */],
                __WEBPACK_IMPORTED_MODULE_38__admin_link_au_link_au_service__["a" /* LinkAuService */],
                __WEBPACK_IMPORTED_MODULE_40__admin_test_audit_correction_test_audit_correction_service__["a" /* TestAuditCorrectionService */],
                __WEBPACK_IMPORTED_MODULE_42__tests_functional_tests_feature_service__["a" /* FunctionalTestsFeatureService */],
                __WEBPACK_IMPORTED_MODULE_45__admin_ingest_cleanup_ingest_cleanup_service__["a" /* IngestCleanupService */]
            ],
            bootstrap: [__WEBPACK_IMPORTED_MODULE_9__app_component__["a" /* AppComponent */]]
        })
    ], AppModule);
    return AppModule;
}());



/***/ }),

/***/ "./src/app/authentication/authentication.component.css":
/***/ (function(module, exports) {

module.exports = ".centerform {\n    text-align:center;\n    -ms-flex-line-pack:center;\n        align-content:center;\n}"

/***/ }),

/***/ "./src/app/authentication/authentication.component.html":
/***/ (function(module, exports) {

module.exports = "<p-panel [header]=\"'Authentification'\">\n  <p *ngIf=\"needCertificate\">\n    Vous devez choisir votre certificat pour utiliser ihm-recette\n  </p>\n  <form *ngIf=\"showLoginForm\" class=\"ui-g ui-fluid \" (submit)=\"logIn()\">\n    <div class=\"ui-g-12 ui-md-12 logout-error-message\">\n      <span *ngIf=\"showLoginErrorMessage\">Merci de vérifier votre identifiant et votre mot de passe</span>\n    </div>\n\n    <div class=\"ui-g-offset-2 ui-g-4 ui-md-4 \">\n      <label for=\"username\">Identifiant</label><br/>\n      <input id=\"username\" type=\"text\" pInputText [(ngModel)]=\"username\" name=\"username\">\n    </div>\n    <div class=\"ui-g-4 ui-md-4 \">\n      <label for=\"password\">Mot de passe</label><br/>\n      <input id=\"password\" pInputText type=\"password\" [(ngModel)]=\"password\" name=\"password\"/>\n    </div>\n\n    <div class=\"ui-g-12 ui-md-5\"></div>\n    <div class=\"ui-g-12 ui-md-2\">\n      <button pButton type=\"submit\" label=\"Connexion\"></button>\n    </div>\n  </form>\n</p-panel>\n"

/***/ }),

/***/ "./src/app/authentication/authentication.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AuthenticationComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__authentication_service__ = __webpack_require__("./src/app/authentication/authentication.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__("./node_modules/@angular/router/esm5/router.js");
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};



var AuthenticationComponent = (function () {
    function AuthenticationComponent(authenticationService, router) {
        this.authenticationService = authenticationService;
        this.router = router;
        this.needCertificate = false;
        this.showLoginForm = false;
        this.showLoginErrorMessage = false;
    }
    AuthenticationComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.authenticationService.getSecureMode().subscribe(function (data) {
            _this.authenticationService.verifyAuthentication().subscribe(function () {
                _this.router.navigate(["admin/collection"]);
                _this.authenticationService.loggedIn();
            }, function (error) {
                if (data.body.indexOf('x509') > -1) {
                    _this.needCertificate = true;
                }
                else {
                    _this.showLoginForm = true;
                }
                _this.authenticationService.loggedOut();
            });
        }, function (error) {
            _this.needCertificate = true;
        });
    };
    AuthenticationComponent.prototype.logIn = function () {
        var _this = this;
        this.authenticationService.logIn(this.username, this.password).subscribe(function (user) {
            _this.authenticationService.loggedIn(user);
            _this.router.navigate(["admin/collection"]);
        }, function () {
            _this.showLoginErrorMessage = true;
        });
    };
    AuthenticationComponent = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'vitam-authentication',
            template: __webpack_require__("./src/app/authentication/authentication.component.html"),
            styles: [__webpack_require__("./src/app/authentication/authentication.component.css")]
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__authentication_service__["a" /* AuthenticationService */], __WEBPACK_IMPORTED_MODULE_2__angular_router__["Router"]])
    ], AuthenticationComponent);
    return AuthenticationComponent;
}());



/***/ }),

/***/ "./src/app/authentication/authentication.service.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export UserInformation */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AuthenticationService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_angular2_cookie_core__ = __webpack_require__("./node_modules/angular2-cookie/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_angular2_cookie_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_angular2_cookie_core__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_add_operator_map__ = __webpack_require__("./node_modules/rxjs/_esm5/add/operator/map.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_resources_service__ = __webpack_require__("./src/app/common/resources.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rxjs_BehaviorSubject__ = __webpack_require__("./node_modules/rxjs/_esm5/BehaviorSubject.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__common_tenant_service__ = __webpack_require__("./src/app/common/tenant.service.ts");
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};






var LOGGED_IN = 'REC-loggedIn';
var XSRF_TOKEN = 'REC-XSRF-TOKEN';
var UserInformation = (function () {
    function UserInformation() {
    }
    return UserInformation;
}());

var AuthenticationService = (function () {
    function AuthenticationService(resourceService, cookies, tenantService, resourcesService) {
        this.resourceService = resourceService;
        this.cookies = cookies;
        this.tenantService = tenantService;
        this.resourcesService = resourcesService;
        var loggedIn = localStorage.getItem(LOGGED_IN) === 'true';
        this.loginState = new __WEBPACK_IMPORTED_MODULE_4_rxjs_BehaviorSubject__["a" /* BehaviorSubject */](loggedIn);
    }
    AuthenticationService.prototype.getSecureMode = function () {
        return this.resourceService.get('securemode', undefined, 'text');
    };
    AuthenticationService.prototype.verifyAuthentication = function () {
        return this.resourceService.getTenants();
    };
    AuthenticationService.prototype.loggedIn = function (user) {
        localStorage.setItem(LOGGED_IN, 'true');
        if (user !== null && user.tokenCSRF !== null) {
            localStorage.setItem(XSRF_TOKEN, user.tokenCSRF);
        }
        this.loginState.next(true);
    };
    AuthenticationService.prototype.logIn = function (id, password) {
        this.resourceService.setTenant("");
        this.tenantService.changeState(this.resourcesService.getTenant());
        return this.resourceService.post('login', null, {
            "token": { "principal": id, "credentials": password }
        });
    };
    AuthenticationService.prototype.loggedOut = function () {
        this.resourceService.setTenant("");
        this.tenantService.changeState(this.resourcesService.getTenant());
        localStorage.setItem(LOGGED_IN, 'false');
        localStorage.removeItem(XSRF_TOKEN);
        this.loginState.next(false);
    };
    AuthenticationService.prototype.logOut = function () {
        return this.resourceService.post('logout', null, {});
    };
    AuthenticationService.prototype.getState = function () {
        return this.loginState;
    };
    AuthenticationService = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Injectable"])(),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_3__common_resources_service__["a" /* ResourcesService */], __WEBPACK_IMPORTED_MODULE_1_angular2_cookie_core__["CookieService"],
            __WEBPACK_IMPORTED_MODULE_5__common_tenant_service__["a" /* TenantService */], __WEBPACK_IMPORTED_MODULE_3__common_resources_service__["a" /* ResourcesService */]])
    ], AuthenticationService);
    return AuthenticationService;
}());



/***/ }),

/***/ "./src/app/common/breadcrumb.service.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* unused harmony export BreadcrumbElement */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return BreadcrumbService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rxjs_BehaviorSubject__ = __webpack_require__("./node_modules/rxjs/_esm5/BehaviorSubject.js");
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};


var BreadcrumbElement = (function () {
    function BreadcrumbElement() {
    }
    return BreadcrumbElement;
}());

var BreadcrumbService = (function () {
    function BreadcrumbService() {
        this.breadCrumbState = new __WEBPACK_IMPORTED_MODULE_1_rxjs_BehaviorSubject__["a" /* BehaviorSubject */]([]);
    }
    BreadcrumbService.prototype.changeState = function (myChange) {
        this.breadCrumbState.next(myChange);
    };
    BreadcrumbService.prototype.getState = function () {
        return this.breadCrumbState.asObservable();
    };
    BreadcrumbService = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Injectable"])(),
        __metadata("design:paramtypes", [])
    ], BreadcrumbService);
    return BreadcrumbService;
}());



/***/ }),

/***/ "./src/app/common/breadcrumb/breadcrumb.component.css":
/***/ (function(module, exports) {

module.exports = ".breadcrumb {\n  padding-bottom: 20px;\n}\n"

/***/ }),

/***/ "./src/app/common/breadcrumb/breadcrumb.component.html":
/***/ (function(module, exports) {

module.exports = "<div class=\"breadcrumb\">\n  <p-breadcrumb [model]=\"items\" *ngIf=\"isAuthenticated\"></p-breadcrumb>\n</div>\n"

/***/ }),

/***/ "./src/app/common/breadcrumb/breadcrumb.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return BreadcrumbComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__breadcrumb_service__ = __webpack_require__("./src/app/common/breadcrumb.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__authentication_authentication_service__ = __webpack_require__("./src/app/authentication/authentication.service.ts");
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};



var BreadcrumbComponent = (function () {
    function BreadcrumbComponent(breadcrumbService, authenticationService) {
        var _this = this;
        this.breadcrumbService = breadcrumbService;
        this.authenticationService = authenticationService;
        this.items = [];
        this.items = [];
        this.breadcrumbService.getState().subscribe(function (breadcrumb) {
            _this.items = breadcrumb;
        });
    }
    BreadcrumbComponent.prototype.ngOnInit = function () {
        var _this = this;
        this.authenticationService.getState().subscribe(function (value) {
            if (value) {
                _this.isAuthenticated = true;
            }
            else {
                _this.isAuthenticated = false;
            }
        });
    };
    BreadcrumbComponent = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'vitam-breadcrumb',
            template: __webpack_require__("./src/app/common/breadcrumb/breadcrumb.component.html"),
            styles: [__webpack_require__("./src/app/common/breadcrumb/breadcrumb.component.css")]
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__breadcrumb_service__["a" /* BreadcrumbService */], __WEBPACK_IMPORTED_MODULE_2__authentication_authentication_service__["a" /* AuthenticationService */]])
    ], BreadcrumbComponent);
    return BreadcrumbComponent;
}());



/***/ }),

/***/ "./src/app/common/contract.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Contract; });
var Contract = (function () {
    function Contract() {
    }
    return Contract;
}());



/***/ }),

/***/ "./src/app/common/egg/egg.component.css":
/***/ (function(module, exports) {

module.exports = ".no-decoration {\n    text-decoration: none;\n}\n\n.vitam-egg-block {\n    background: -webkit-gradient(linear, right top, left top, from(#AC95C6), to(#8f3F8F));\n    background: linear-gradient(to left, #AC95C6, #8f3F8F);\n    position: absolute; \n    top: 0; \n    left: 0;\n    width: 100%;\n    height: 100%;\n}\n\n/* DA Unicorn */\n\n.unicorn {\n    position: absolute;\n    left: 50%;\n    top: 50%;\n    margin-left: -250px;\n    margin-top: -30px;\n  }\n\n.tail > div,\n  .body > div,\n  .leg > div,\n  .leg2 > div,\n  .leg3 > div,\n  .unihorn {\n    width: 0;\n    height: 0;\n    position: absolute;\n    -webkit-transform-origin: 50% 50%;\n            transform-origin: 50% 50%;\n  }\n\n.tail .pone {\n    border-left: 30px solid transparent;\n    border-right: 40px solid transparent;\n    border-bottom: 30px solid #AC95C6;\n    -webkit-transform: rotate(6deg);\n            transform: rotate(6deg);\n  }\n\n.tail .ptwo {\n    border-left: 40px solid transparent;\n    border-right: 30px solid transparent;\n    border-bottom: 30px solid #863E8b;\n    -webkit-transform: rotate(-39deg);\n            transform: rotate(-39deg);\n    top: 26px;\n    left: -30px;\n  }\n\n.tail .pthree {\n    border-top: 30px solid transparent;\n    border-bottom: 30px solid transparent;\n    border-right: 30px solid #AC95C6;\n    -webkit-transform: rotate(5deg);\n            transform: rotate(5deg);\n    top: 45px;\n    left: -12px;\n  }\n\n.tail .pfour {\n    top: 72px;\n    left: 17px;\n    border-bottom: 35px solid #863E8B;\n    border-right: 35px solid transparent;\n    -webkit-transform: rotate(5deg);\n            transform: rotate(5deg);\n  }\n\n.body .pone {\n    border-top: 10px solid transparent;\n    border-left: 221px solid #863E8B;\n    border-bottom: 60px solid transparent;\n    -webkit-transform: rotate(40deg);\n            transform: rotate(40deg);\n    top: 65px;\n    left: 45px;\n  }\n\n.body .ptwo {\n    border-bottom: 70px solid #AC95C6;\n    border-left: 90px solid transparent;\n    border-right: 130px solid transparent;\n    -webkit-transform: rotate(43deg);\n            transform: rotate(43deg);\n    top: 15px;\n    left: 87px;\n  }\n\n.body .pthree {\n    border-bottom: 100px solid #863E8B;\n    border-left: 20px solid transparent;\n    border-right: 130px solid transparent;\n    -webkit-transform: rotate(71deg);\n            transform: rotate(71deg);\n    top: 15px;\n    left: 200px;\n  }\n\n.body .pfour {\n    border-bottom: 100px solid #AC95C6;\n    border-left: 30px solid transparent;\n    border-right: 130px solid transparent;\n    -webkit-transform: rotate(109deg);\n            transform: rotate(109deg);\n    top: 38px;\n    left: 246px;\n  }\n\n.body .pfive {\n    border-bottom: 60px solid #863E8B;\n    border-right: 105px solid transparent;\n    left: 310px;\n    top: -27px;\n    -webkit-transform: rotate(34deg);\n            transform: rotate(34deg);\n  }\n\n.body .psix {\n    border-top: 85px solid #AC95C6;\n    border-left: 85px solid transparent;\n    left: 319px;\n    top: -40px;\n    -webkit-transform: rotate(19deg);\n            transform: rotate(19deg);\n  }\n\n.body .pseven {\n    border-bottom: 110px solid #863E8B;\n    border-left: 85px solid transparent;\n    left: 350px;\n    top: -144px;\n    -webkit-transform: rotate(19deg);\n            transform: rotate(19deg);\n  }\n\n.body .peight {\n    border-bottom: 90px solid #AC95C6;\n    border-right: 120px solid transparent;\n    left: 425px;\n    top: -92px;\n    -webkit-transform: rotate(18deg);\n            transform: rotate(18deg);\n  }\n\n.body .eye {\n    background-color: #0063AF;\n    top: -70px;\n    left: 445px;\n    height: 10px;\n    width: 10px;\n    border-radius: 50%;\n    z-index: 1;\n  }\n\n.nose {\n    border-bottom: 40px solid #863E8B;\n    border-right: 40px solid transparent;\n    -webkit-transform: rotate(-28deg);\n            transform: rotate(-28deg);\n    left: 480px;\n    top: -15px;\n  }\n\n.extreme-left {\n    border-top: 115px solid transparent;\n    border-right: 30px solid #AC95C6;\n    border-bottom: 110px solid transparent;\n    -webkit-transform: rotate(-65deg);\n            transform: rotate(-65deg);\n    left: 130px;\n    top: 4px;\n  }\n\n.leg .pone {\n    border-top: 120px solid transparent;\n    border-right: 60px solid #863E8B;\n    border-bottom: 0px solid transparent;\n    -webkit-transform: rotate(-50deg);\n            transform: rotate(-50deg);\n    top: 55px;\n    left: 45px;\n  }\n\n.leg .ptwo {\n    border-top: 20px solid transparent;\n    border-right: 30px solid #AC95C6;\n    border-bottom: 20px solid transparent;\n    top: 145px;\n    -webkit-transform: rotate(-24deg);\n            transform: rotate(-24deg);\n    left: 66px;\n  }\n\n.leg .pthree {\n    border-top: 15px solid transparent;\n    border-right: 33px solid #863E8B;\n    border-bottom: 20px solid transparent;\n    top: 164px;\n    -webkit-transform: rotate(34deg);\n            transform: rotate(34deg);\n    left: 63px;\n  }\n\n.leg .pfour {\n    border-left: 0 solid transparent;\n    border-right: 20px solid transparent;\n    border-bottom: 100px solid #AC95C6;\n    -webkit-transform: rotate(-15deg);\n            transform: rotate(-15deg);\n    top: 165px;\n    left: 80px;\n  }\n\n.leg .pfive {\n    border-bottom: 30px solid #863E8B;\n    border-right: 30px solid transparent;\n    top: 235px;\n    -webkit-transform: rotate(-15deg);\n            transform: rotate(-15deg);\n    left: 89px;\n  }\n\n.extreme-right {\n    left: 246px;\n    top: 100px;\n    border-top: 30px solid #863E8B;\n    border-left: 80px solid transparent;\n    border-right: 85px solid transparent;\n    -webkit-transform: rotate(-33deg);\n            transform: rotate(-33deg);\n  }\n\n.leg2 .pone {\n    border-top: 50px solid #AC95C6;\n    border-right: 85px solid transparent;\n    left: 339px;\n    top: 84px;\n    -webkit-transform: rotate(-53deg);\n            transform: rotate(-53deg);\n  }\n\n.leg2 .ptwo {\n    border-bottom: 20px solid #863E8B;\n    border-left: 42px solid transparent;\n    border-right: 30px solid transparent;\n    -webkit-transform: rotate(62deg);\n            transform: rotate(62deg);\n    left: 328px;\n    top: 146px;\n  }\n\n.leg2 .pthree {\n    border-left: 0 solid transparent;\n    border-right: 20px solid transparent;\n    border-bottom: 100px solid #AC95C6;\n    -webkit-transform: rotate(-15deg);\n            transform: rotate(-15deg);\n    top: 154px;\n    left: 368px;\n  }\n\n.leg2 .pfour {\n    border-bottom: 30px solid #863E8B;\n    border-right: 30px solid transparent;\n    top: 230px;\n    -webkit-transform: rotate(-15deg);\n            transform: rotate(-15deg);\n    left: 378px;\n  }\n\n.leg3 .pone {\n    border-top: 50px solid transparent;\n    border-left: 60px solid #8F3F8F;\n    border-bottom: 30px solid transparent;\n    left: 382px;\n    top: 60px;\n    -webkit-transform: rotate(6deg);\n            transform: rotate(6deg);\n  }\n\n.leg3 .ptwo {\n    border-left: 0px solid transparent;\n    border-right: 30px solid transparent;\n    border-top: 50px solid #863E8B;\n    left: 419px;\n    top: 116px;\n    -webkit-transform: rotate(-18deg);\n            transform: rotate(-18deg);\n  }\n\n.leg3 .pthree {\n    border-bottom: 30px solid #AC95C6;\n    border-left: 13px solid transparent;\n    left: 411px;\n    top: 143px;\n    -webkit-transform: rotate(-17deg);\n            transform: rotate(-17deg);\n  }\n\n.leg3 .pfour {\n    border-bottom: 30px solid #863E8B;\n    border-right: 30px solid transparent;\n    top: 173px;\n    -webkit-transform: rotate(76deg);\n            transform: rotate(76deg);\n    left: 403px;\n  }\n\n.unihorn {\n    top: -130px;\n    left: 446px;\n    border-top: 10px solid transparent;\n    border-left: 120px solid #9E0B0F;\n    border-bottom: 10px solid transparent;\n    -webkit-transform: rotate(-36deg);\n            transform: rotate(-36deg);\n  }\n  "

/***/ }),

/***/ "./src/app/common/egg/egg.component.html":
/***/ (function(module, exports) {

module.exports = "<div *ngIf=\"this.eggService.getState()\" (click)=\"this.eggService.changeState(false)\" class=\"vitam-egg-block\">\n    <div class='unicorn'>\n        <div class='tail'>\n            <div class='pone'></div>\n            <div class='ptwo'></div>\n            <div class='pthree'></div>\n            <div class='pfour'></div>\n        </div>\n        <div class='body'>\n            <div class='pone'></div>\n            <div class='ptwo'></div>\n            <div class='pthree'></div>\n            <div class='pfour'></div>\n            <div class='pfive'></div>\n            <div class='psix'></div>\n            <div class='pseven'></div>\n            <div class='peight'></div>\n            <div class='eye'></div>\n            <div class='nose'></div>\n            <div class='extreme-left'></div>\n            <div class='extreme-right'></div>\n        </div>\n        <div class='leg'>\n            <div class='pone'></div>\n            <div class='ptwo'></div>\n            <div class='pthree'></div>\n            <div class='pfour'></div>\n            <div class='pfive'></div>\n        </div>\n        <div class='leg2'>\n            <div class='pone'></div>\n            <div class='ptwo'></div>\n            <div class='pthree'></div>\n            <div class='pfour'></div>\n        </div>\n        <div class='leg3'>\n            <div class='pone'></div>\n            <div class='ptwo'></div>\n            <div class='pthree'></div>\n            <div class='pfour'></div>\n        </div>\n        <div class='unihorn'></div>\n    </div>\n</div>"

/***/ }),

/***/ "./src/app/common/egg/egg.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return EggComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__egg_service__ = __webpack_require__("./src/app/common/egg/egg.service.ts");
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};


var EggComponent = (function () {
    function EggComponent(eggService) {
        this.eggService = eggService;
    }
    EggComponent = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'vitam-egg',
            template: __webpack_require__("./src/app/common/egg/egg.component.html"),
            styles: [__webpack_require__("./src/app/common/egg/egg.component.css")]
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__egg_service__["a" /* EggService */]])
    ], EggComponent);
    return EggComponent;
}());



/***/ }),

/***/ "./src/app/common/egg/egg.service.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return EggService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};

var EggService = (function () {
    function EggService() {
        this.vitamEgg = false;
    }
    EggService.prototype.changeState = function (myChange) {
        this.vitamEgg = myChange;
    };
    EggService.prototype.getState = function () {
        return this.vitamEgg;
    };
    EggService = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Injectable"])(),
        __metadata("design:paramtypes", [])
    ], EggService);
    return EggService;
}());



/***/ }),

/***/ "./src/app/common/generic-table/generic-table.component.css":
/***/ (function(module, exports) {

module.exports = ""

/***/ }),

/***/ "./src/app/common/generic-table/generic-table.component.html":
/***/ (function(module, exports) {

module.exports = "<p-dataTable [value]=\"items\" (onRowClick)=\"navigateTo($event.data)\" [rowStyleClass]=\"getClass\" [sortField]=\"filter\" [selectionMode]=\"selectionMode\">\n  <p-column *ngFor=\"let col of cols\" [field]=\"col.field\" [header]=\"col.label\" [style]=\"{'overflow-x':'auto'}\"></p-column>\n  <p-column *ngFor=\"let colIcon of colsWithIcon\" [header]=\"colIcon.label\">\n    <ng-template let-item=\"rowData\" pTemplate=\"body\">\n      <i [ngClass]=\"colIcon.icon\" (click)=\"actionOnIcon(item)\" class=\"clickableDiv\"></i>\n    </ng-template>\n  </p-column>\n</p-dataTable >\n"

/***/ }),

/***/ "./src/app/common/generic-table/generic-table.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GenericTableComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_router__ = __webpack_require__("./node_modules/@angular/router/esm5/router.js");
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};


/**
 * Component used to display a data-dable with VITAM style and rules.
 * This component MUST be call with:
 * - items: Data to be displayed (Array of object)
 * - cols: Column names and label [{field: 'fieldName in items', label: 'Name to be displayed in header'}]
 *
 * This component CAN be call with:
 * - route: routerLink to use when user click on a row. This route is completed with item.value
 * - colsWithIcon: add these columns at the end of the table with clickable icons
 * - actionOnIcon: function called when clickable icons are clicked
 * - service: service to be used for actionOnIcon
 * - getClass: specific css class for rows of the table
 * - filter: specific orderBy filter for rows of the table
 * - selectionMode: See primeNg datatable selectionMode param. Can be null, 'single' or 'multiple'
 */
var GenericTableComponent = (function () {
    function GenericTableComponent(router) {
        this.router = router;
        this.items = [];
        this.route = null;
        this.actionOnIcon = function () { };
        this.filter = 'filter';
        this.selectionMode = null;
    }
    GenericTableComponent.prototype.ngOnInit = function () {
    };
    GenericTableComponent.prototype.navigateTo = function (item) {
        if (!!this.route) {
            this.router.navigate([this.route, item.value]);
        }
    };
    __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"])(),
        __metadata("design:type", Array)
    ], GenericTableComponent.prototype, "items", void 0);
    __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"])(),
        __metadata("design:type", Array)
    ], GenericTableComponent.prototype, "cols", void 0);
    __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"])(),
        __metadata("design:type", String)
    ], GenericTableComponent.prototype, "route", void 0);
    __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"])(),
        __metadata("design:type", Array)
    ], GenericTableComponent.prototype, "colsWithIcon", void 0);
    __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"])(),
        __metadata("design:type", Object)
    ], GenericTableComponent.prototype, "actionOnIcon", void 0);
    __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"])(),
        __metadata("design:type", Object)
    ], GenericTableComponent.prototype, "service", void 0);
    __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"])(),
        __metadata("design:type", Object)
    ], GenericTableComponent.prototype, "getClass", void 0);
    __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"])(),
        __metadata("design:type", Object)
    ], GenericTableComponent.prototype, "filter", void 0);
    __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Input"])(),
        __metadata("design:type", String)
    ], GenericTableComponent.prototype, "selectionMode", void 0);
    GenericTableComponent = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'vitam-generic-table',
            template: __webpack_require__("./src/app/common/generic-table/generic-table.component.html"),
            styles: [__webpack_require__("./src/app/common/generic-table/generic-table.component.css")]
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__angular_router__["Router"]])
    ], GenericTableComponent);
    return GenericTableComponent;
}());



/***/ }),

/***/ "./src/app/common/menu/menu.component.css":
/***/ (function(module, exports) {

module.exports = ".float {\n  float: left;\n}\n\n.fixed {\n  position: absolute;\n  left: 10px;\n  top: 2px\n}\n\n.title2 {\n  position: relative;\n  top: -15px;\n  font-size: 45px;\n  font-family: Verdana,sans-serif;\n}\n\n.logo {\n  max-height: 90px;\n}\n\na {\n  text-decoration: none;\n}\n\n.tenant-text {\n  float: left;\n  padding: 0 10px 10px 0;\n}\n\n.menu-vitam {\n  padding-top: 25px;\n}\n\n.relative {\n  position: relative;\n}\n\n.subMenu {\n  position: absolute;\n  z-index: 1015;\n  width: 240px;\n  top: 35px;\n  left: 25%;\n  display: block;\n}\n\n.subItem {\n  padding: 5px 0;\n  text-align: left;\n}\n\n.subContent {\n  position: absolute;\n  z-index: 1030;\n  left: 240px;\n  top: -10px;\n  display: block;\n}\n\n.menuIcons i {\n  color: red;\n\n}"

/***/ }),

/***/ "./src/app/common/menu/menu.component.html":
/***/ (function(module, exports) {

module.exports = "<div class=\"ui-g ui-menubar ui-widget ui-widget-content ui-corner-all menuIcons\">\n  <!-- Handle Logo -->\n  <div class=\"ui-g-2 ui-sm-12 ui-g-nopad\">\n    <a routerLink=\"/admin/collection\" class=\"logo\">\n      <!-- FIXME may be missed in dev build -->\n      <img src=\"assets/images/logo_vitam.png\"\n           class=\"logo\" alt=\"Vitam\" title=\"Vitam\"/>\n    </a>\n  </div>\n\n  <!-- Handle Menu Content -->\n  <div class=\"ui-g-7 ui-sm-12 ui-menubar-root-list menu-vitam ui-g-nopad\">\n    <div *ngFor=\"let item of items\" class=\"ui-sm-12 relative\" [ngClass]=\"'ui-g-' + item.size\">\n      <div (click)=\"clickInside($event, [item])\" class=\"ui-g-12 ui-menuitem clickableDiv\">\n        <i *ngIf=\"item.icon\" class=\"fa\" [ngClass]=\"item.icon\"></i>\n        <span>{{item.label}}</span><br/>\n        <i *ngIf=\"item.items && item.items.length > 0\" class=\"fa fa-fw fa-caret-down\"></i>\n      </div>\n      <div class=\"ui-g-12 ui-submenu-list ui-widget-content ui-shadow subMenu\" *ngIf=\"item.displayed\">\n        <div *ngFor=\"let subItem of item.items\" class=\"clickableDiv subItem\"\n             (click)=\"clickInside($event, [item, subItem])\">\n          <span>{{subItem.label}}</span>\n          <i *ngIf=\"subItem.items && subItem.items.length > 0\" class=\"fa fa-fw fa-caret-right\"></i>\n          <div class=\"ui-submenu-list ui-widget-content ui-shadow subContent\" *ngIf=\"subItem.displayed\">\n            <div *ngFor=\"let subSubItem of subItem.items\" class=\"ui-menuitem clickableDiv subItem\"\n                 (click)=\"clickInside($event, [item, subItem, subSubItem])\">\n              {{subSubItem.label}}\n            </div>\n          </div>\n        </div>\n      </div>\n    </div>\n  </div>\n\n  <!-- Info & Actions -->\n  <div class=\"ui-g-3 ui-sm-12\">\n    <div class=\"ui-g-8 ui-sm-12 ui-g-nopad\" *ngIf=\"isAuthenticated\">\n      <div class=\"ui-g-12\">\n        Tenant: <b>{{tenantChosen ? tenantChosen : '-'}}</b>\n      </div>\n      <div class=\"ui-g-12\">\n        Sélection:\n        <select [(ngModel)]=\"tenantId\" #ctrl=\"ngModel\" style=\"display: inline; margin: 0 0 0 10px\">\n          <option *ngFor='let tenant of tenants' value=\"{{tenant}}\">{{tenant}}</option>\n        </select>\n        <button pButton type=\"button\" (click)=\"setCurrentTenant(tenantId)\" label=\"Acceder\"></button>\n      </div>\n    </div>\n    <div class=\"ui-g-4 ui-sm-12 menu-vitam\" *ngIf=\"isAuthenticated\">\n      <div>\n        <i class=\"fa fa-power-off clickableDiv\" (click)=\"logOut()\">\n          <a>Déconnexion</a>\n        </i>\n      </div>\n    </div>\n  </div>\n</div>\n"

/***/ }),

/***/ "./src/app/common/menu/menu.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MenuComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__resources_service__ = __webpack_require__("./src/app/common/resources.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__authentication_authentication_service__ = __webpack_require__("./src/app/authentication/authentication.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_router__ = __webpack_require__("./node_modules/@angular/router/esm5/router.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__tenant_service__ = __webpack_require__("./src/app/common/tenant.service.ts");
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};





var MenuComponent = (function () {
    function MenuComponent(resourcesService, authenticationService, tenantService, router) {
        this.resourcesService = resourcesService;
        this.authenticationService = authenticationService;
        this.tenantService = tenantService;
        this.router = router;
        this.msgs = [];
        this.tenantId = '';
        this.items = [];
    }
    MenuComponent.prototype.ngOnDestroy = function () {
        this.tenantSubscription.unsubscribe();
    };
    MenuComponent.prototype.ngOnInit = function () {
        var _this = this;
        var tenant = this.resourcesService.getTenant();
        if (tenant) {
            this.tenantChosen = tenant;
        }
        this.tenantSubscription = this.tenantService.getState().subscribe(function (value) {
            _this.tenantId = value;
            _this.tenantChosen = value;
        });
        this.authenticationService.getState().subscribe(function (value) {
            if (value) {
                _this.items = [
                    {
                        id: 'admin',
                        label: 'Admin',
                        items: [
                            { label: 'Administration des collections', routerLink: ['admin/collection'] },
                            { label: 'Recherche et Modification d\'un fichier', routerLink: ['admin/load-storage'] },
                            { label: 'Ajout et suppression d\'un parent', routerLink: ['admin/link-au'] },
                            { label: 'Test audit correctif', routerLink: ['admin/test-audit-correction'] },
                            { label: 'Configuration de la plateforme', routerLink: ['admin/configuration'] },
                            { label: 'Nettoyage d\'un ingest corrompu', routerLink: ['admin/ingest-cleanup'] }
                        ],
                        size: 2
                    },
                    {
                        id: 'test',
                        label: 'Tests',
                        items: [
                            { label: 'Tests de performance', routerLink: ['tests/perf'] },
                            { label: 'Tests fonctionnels', routerLink: ['tests/functional-tests'] },
                            { label: 'Tests requêtes DSL', routerLink: ['tests/queryDSL'] },
                            { label: 'Visualisation du Graphe', routerLink: ['tests/dag-visualization'] },
                            { label: 'Test feature ', routerLink: ['tests/testFeature'] }
                        ],
                        size: 2
                    },
                    {
                        id: 'traceability',
                        label: 'Sécurisation',
                        items: [
                            { label: 'Sécurisation des journaux', routerLink: ['traceability/logbook'] }
                        ],
                        size: 2
                    }
                ];
                _this.isAuthenticated = true;
                _this.resourcesService.getTenants().subscribe(function (tenants) {
                    _this.tenants = tenants;
                }, function (error) {
                });
            }
            else {
                _this.items = [];
                _this.isAuthenticated = false;
                _this.router.navigate(["login"]);
            }
        });
    };
    MenuComponent.prototype.setCurrentTenant = function () {
        if (!this.tenantId || this.tenantId === '-') {
            return;
        }
        this.tenantChosen = this.tenantId;
        this.resourcesService.setTenant(this.tenantId);
        this.tenantService.changeState(this.tenantId);
        this.msgs = [];
        this.msgs.push({ severity: 'info', summary: 'Modification du tenant', detail: "Nouveau tenant : " + this.tenantId });
    };
    MenuComponent.prototype.logOut = function () {
        this.authenticationService.logOut().subscribe();
        this.authenticationService.loggedOut();
    };
    MenuComponent.prototype.clickInside = function (event, items) {
        var lastItem = items[items.length - 1];
        // Handle navigation to other page (All menu should be hiden)
        if (lastItem.routerLink) {
            this.router.navigate(lastItem.routerLink);
            this.hideAll(this.items);
            return;
        }
        // Handle subMenu open
        event.data = {
            ids: items.map(function (item) { return item.id; })
        };
        for (var _i = 0, items_1 = items; _i < items_1.length; _i++) {
            var item = items_1[_i];
            item.displayed = true;
        }
    };
    MenuComponent.prototype.hideAll = function (items) {
        if (!items) {
            return;
        }
        for (var _i = 0, items_2 = items; _i < items_2.length; _i++) {
            var item = items_2[_i];
            item.displayed = false;
            this.hideAll(item.items);
        }
    };
    MenuComponent.prototype.hideRecursively = function (items, ids) {
        if (ids.length === 0 || !items) {
            return;
        }
        for (var _i = 0, items_3 = items; _i < items_3.length; _i++) {
            var item = items_3[_i];
            if (item.id !== ids[0]) {
                item.displayed = false;
                this.hideAll(item.items);
            }
            else {
                this.hideRecursively(item.items, ids.slice(1));
            }
        }
    };
    MenuComponent.prototype.clickedOutside = function (event) {
        // This function is called on each click and will hide all submenu that the mouse is out of
        if (!event.data || !event.data.ids || event.data.ids.length === 0) {
            this.hideAll(this.items);
        }
        else {
            this.hideRecursively(this.items, event.data.ids);
        }
    };
    __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["HostListener"])('document:click', ['$event']),
        __metadata("design:type", Function),
        __metadata("design:paramtypes", [Object]),
        __metadata("design:returntype", void 0)
    ], MenuComponent.prototype, "clickedOutside", null);
    MenuComponent = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'vitam-menu',
            template: __webpack_require__("./src/app/common/menu/menu.component.html"),
            styles: [__webpack_require__("./src/app/common/menu/menu.component.css")]
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__resources_service__["a" /* ResourcesService */], __WEBPACK_IMPORTED_MODULE_2__authentication_authentication_service__["a" /* AuthenticationService */],
            __WEBPACK_IMPORTED_MODULE_4__tenant_service__["a" /* TenantService */], __WEBPACK_IMPORTED_MODULE_3__angular_router__["Router"]])
    ], MenuComponent);
    return MenuComponent;
}());



/***/ }),

/***/ "./src/app/common/page/page-component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return PageComponent; });
/**
 * This component is an abstract class for all page component of the application.
 * When calling this component with good title breadcrumb and services, this class initialize all that.
 * Constructor call MUST have public services in herited component.
 * pageOnInit() MUST be implemented, COULD have a non empty core with component initialization and COULD return a Subscription
 *  The returned Subscription will be unsubscribed on destroy
 * setBreadcrumb() COULD be call in pageOnInit() or any other code in order to update dynamicaly the breadcrumb informations
 *
 */
var PageComponent = (function () {
    function PageComponent(title, breadcrumb, titleService, breadcrumbService) {
        this.title = title;
        this.breadcrumb = breadcrumb;
        this.titleService = titleService;
        this.breadcrumbService = breadcrumbService;
    }
    PageComponent.prototype.ngOnDestroy = function () {
        if (this.subscriptionToDestroy) {
            this.subscriptionToDestroy.unsubscribe();
        }
    };
    PageComponent.prototype.ngOnInit = function () {
        this.titleService.setTitle("Recette - " + this.title);
        this.breadcrumbService.changeState(this.breadcrumb);
        this.subscriptionToDestroy = this.pageOnInit();
    };
    PageComponent.prototype.setBreadcrumb = function (breadcrumb) {
        this.breadcrumb = breadcrumb;
        this.breadcrumbService.changeState(this.breadcrumb);
    };
    return PageComponent;
}());



/***/ }),

/***/ "./src/app/common/resources.service.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ResourcesService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_angular2_cookie_core__ = __webpack_require__("./node_modules/angular2-cookie/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_angular2_cookie_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_angular2_cookie_core__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_common_http__ = __webpack_require__("./node_modules/@angular/common/esm5/http.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_router__ = __webpack_require__("./node_modules/@angular/router/esm5/router.js");
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};




var TENANT_COOKIE = 'REC-tenant';
var BASE_URL = '/ihm-recette/v1/api/';
var TENANTS = 'tenants';
var XSRF_TOKEN = 'REC-XSRF-TOKEN';
var ResourcesService = (function () {
    function ResourcesService(cookies, http, router) {
        this.cookies = cookies;
        this.http = http;
        this.router = router;
    }
    ResourcesService.prototype.get = function (url, header, responsetype) {
        var options = {};
        header = this.setDefaultHeader(header);
        options.headers = header;
        if (responsetype && responsetype !== 'json') {
            options.responseType = responsetype;
            options.observe = 'response';
        }
        else {
            options.responseType = 'json';
        }
        return this.http.get("" + BASE_URL + url, options);
    };
    ResourcesService.prototype.head = function (url, header, responsetype) {
        var options = {};
        header = this.setDefaultHeader(header);
        options.headers = header;
        if (responsetype && responsetype !== 'json') {
            options.responseType = responsetype;
            options.observe = 'response';
        }
        else {
            options.responseType = 'json';
        }
        return this.http.head("" + BASE_URL + url, options);
    };
    ResourcesService.prototype.post = function (url, header, body, responsetype) {
        var options = {};
        header = this.setDefaultHeader(header);
        options.headers = header;
        options.responseType = responsetype || 'json';
        return this.http.post("" + BASE_URL + url, body, options);
    };
    ResourcesService.prototype.delete = function (url, header) {
        var options = {};
        header = this.setDefaultHeader(header);
        options.headers = header;
        return this.http.delete("" + BASE_URL + url, options);
    };
    ResourcesService.prototype.getTenants = function () {
        return this.get(TENANTS);
    };
    ResourcesService.prototype.setTenant = function (tenantId) {
        localStorage.setItem(TENANT_COOKIE, tenantId);
    };
    ResourcesService.prototype.getTenant = function () {
        return localStorage.getItem(TENANT_COOKIE);
    };
    ResourcesService.prototype.setDefaultHeader = function (header) {
        if (!header) {
            header = new __WEBPACK_IMPORTED_MODULE_2__angular_common_http__["c" /* HttpHeaders */]();
        }
        if (this.getTenant()) {
            header = header.set('X-Tenant-Id', this.getTenant());
        }
        if (localStorage.getItem(XSRF_TOKEN)) {
            header = header.set('X-CSRF-TOKEN', localStorage.getItem(XSRF_TOKEN));
        }
        return header;
    };
    ResourcesService = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Injectable"])(),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_angular2_cookie_core__["CookieService"], __WEBPACK_IMPORTED_MODULE_2__angular_common_http__["a" /* HttpClient */], __WEBPACK_IMPORTED_MODULE_3__angular_router__["Router"]])
    ], ResourcesService);
    return ResourcesService;
}());



/***/ }),

/***/ "./src/app/common/results/results.component.css":
/***/ (function(module, exports) {

module.exports = ""

/***/ }),

/***/ "./src/app/common/results/results.component.html":
/***/ (function(module, exports) {

module.exports = "<p>\n  results works!\n</p>\n"

/***/ }),

/***/ "./src/app/common/results/results.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ResultsComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};

var ResultsComponent = (function () {
    function ResultsComponent() {
    }
    ResultsComponent.prototype.ngOnInit = function () {
    };
    ResultsComponent = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'vitam-results',
            template: __webpack_require__("./src/app/common/results/results.component.html"),
            styles: [__webpack_require__("./src/app/common/results/results.component.css")]
        }),
        __metadata("design:paramtypes", [])
    ], ResultsComponent);
    return ResultsComponent;
}());



/***/ }),

/***/ "./src/app/common/tenant.service.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return TenantService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rxjs_BehaviorSubject__ = __webpack_require__("./node_modules/rxjs/_esm5/BehaviorSubject.js");
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};


var TenantService = (function () {
    function TenantService() {
        this.tenantState = new __WEBPACK_IMPORTED_MODULE_1_rxjs_BehaviorSubject__["a" /* BehaviorSubject */]('');
    }
    TenantService.prototype.changeState = function (myChange) {
        this.tenantState.next(myChange);
    };
    TenantService.prototype.getState = function () {
        return this.tenantState.asObservable();
    };
    TenantService = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Injectable"])(),
        __metadata("design:paramtypes", [])
    ], TenantService);
    return TenantService;
}());



/***/ }),

/***/ "./src/app/tests/dag-visualization/dag-visualization.component.css":
/***/ (function(module, exports) {

module.exports = ".visualization {\n    border-color: black;\n    border-width: 1px;\n    border-style: dashed;\n    height: 600px;\n}\n\n.errorMessage {\n    color: white;\n    background-color: #d9534f;\n}\n\n/*Text areas*/\n\n.textarea-dsl {\n    width:90%;\n    resize: vertical;\n    font-size: 1em;\n}\n\n.textarea-dsl-error {\n    width:90%;\n    resize: vertical;\n    font-size: 1em;\n    border-color: red;\n}"

/***/ }),

/***/ "./src/app/tests/dag-visualization/dag-visualization.component.html":
/***/ (function(module, exports) {

module.exports = "<div class=\"ui-g-12 errorMessage\">\n  <span><a class=\"no-decoration\" (click)=\"toggleEgg()\">!!!!</a> EXPERIMENTAL <a class=\"no-decoration\" (click)=\"toggleEgg()\">!!!!</a></span>\n</div>\n\n<div class=\"ui-g-12\">\n  <div class=\"ui-g-1\"></div>\n  <div class=\"ui-g-3\">\n    <label for=\"contract\">Contrat</label>\n    <p-dropdown id=\"contract\" [options]=\"contractsList\" [(ngModel)]=\"selectedContract\" [style]=\"{'width':'100%'}\" [scrollHeight]=\"300\"\n      placeholder=\"Sélectionner un contrat\"></p-dropdown>\n  </div>\n  <div class=\"ui-g-4\">\n    <label>Identifiants des opérations</label>\n    <p-chips size=\"35\" [(ngModel)]=\"operationIds\"></p-chips>\n  </div>\n  <div class=\"ui-g-3\">\n    <button pButton type=\"button\" label=\"Envoyer la requête\" (click)=\"sendRequest()\" [disabled]=\"!tenant\"></button>\n  </div>\n</div>\n\n<!-- use for error handling -->\n<div class=\"ui-g-12\" *ngIf=\"showError\">\n  <div class=\"ui-g-2\"></div>\n  <div class=\"ui-g-8\">\n    <textarea class=\"textarea-dsl-error\" id=\"reponse\" rows=\"10\" pInputTextarea [(ngModel)]=\"requestResponse\"></textarea>\n  </div>\n  <div class=\"ui-g-2\"></div>\n</div>\n\n<div class=\"ui-g-12\" *ngIf=\"showGraph\">\n  <div class=\"network-canvas ui-g-6 visualization\" [visNetwork]=\"visNetwork\" [visNetworkData]=\"visNetworkData\" [visNetworkOptions]=\"visNetworkOptions\"\n    (initialized)=\"networkInitialized()\"></div>\n  <div class=\"ui-g-6\">\n    <label for=\"detail\">Détail de l'Archive Unit</label>\n    <textarea class=\"textarea-dsl\" id=\"detail\" rows=\"25\" pInputTextarea [(ngModel)]=\"detail\"></textarea>\n  </div>\n</div>\n"

/***/ }),

/***/ "./src/app/tests/dag-visualization/dag-visualization.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DagVisualizationComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_platform_browser__ = __webpack_require__("./node_modules/@angular/platform-browser/esm5/platform-browser.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__common_breadcrumb_service__ = __webpack_require__("./src/app/common/breadcrumb.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_page_page_component__ = __webpack_require__("./src/app/common/page/page-component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__common_tenant_service__ = __webpack_require__("./src/app/common/tenant.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__common_egg_egg_service__ = __webpack_require__("./src/app/common/egg/egg.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__query_dsl_query_dsl_service__ = __webpack_require__("./src/app/tests/query-dsl/query-dsl.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_ng2_vis__ = __webpack_require__("./node_modules/ng2-vis/ng2-vis.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_ng2_vis___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_ng2_vis__);
var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};








var breadcrumb = [
    { label: 'Tests', routerLink: '' },
    { label: 'Visualisation du Graphe', routerLink: 'tests/dag-visualization' }
];
var VitamNetworkData = (function () {
    function VitamNetworkData() {
    }
    return VitamNetworkData;
}());
var DagVisualizationComponent = (function (_super) {
    __extends(DagVisualizationComponent, _super);
    function DagVisualizationComponent(breadcrumbService, queryDslService, visNetworkService, titleService, tenantService, eggService) {
        var _this = _super.call(this, 'Visualisation du Graphe', breadcrumb, titleService, breadcrumbService) || this;
        _this.breadcrumbService = breadcrumbService;
        _this.queryDslService = queryDslService;
        _this.visNetworkService = visNetworkService;
        _this.titleService = titleService;
        _this.tenantService = tenantService;
        _this.eggService = eggService;
        _this.showError = false;
        _this.showGraph = false;
        _this.visNetwork = 'networkId1';
        return _this;
    }
    DagVisualizationComponent.prototype.sendRequest = function () {
        var _this = this;
        var selectedCollection = 'UNIT';
        var selectedMethod = 'GET';
        var selectedAction = 'GET';
        var contractIdentifier = !this.selectedContract ? null : this.selectedContract.Identifier;
        var jsonRequest = {
            $roots: [],
            $query: [{ $in: {} }],
            $projection: {}
        };
        if (contractIdentifier != null) {
            jsonRequest.$query[0].$in['#operations'] = this.operationIds;
        }
        // manage errors
        this.queryDslService.executeRequest(jsonRequest, contractIdentifier, selectedCollection, selectedMethod, selectedAction, null).subscribe(function (response) {
            _this.requestResponse = JSON.stringify(response, null, 2);
            if (response.httpCode >= 400) {
                _this.showError = true;
                _this.showGraph = false;
            }
            else {
                _this.showError = false;
                _this.showGraph = true;
                _this.displayDag(response.$results);
            }
        }, function (error) {
            _this.showError = true;
            _this.showGraph = false;
            try {
                _this.requestResponse = JSON.stringify(JSON.parse(error._body), null, 2);
            }
            catch (e) {
                _this.requestResponse = error._body;
            }
        });
    };
    DagVisualizationComponent.prototype.sendRequestGot = function (parentUnitId) {
        var selectedCollection = 'OBJECTGROUP';
        var selectedMethod = 'GET';
        var selectedAction = 'GET';
        var contractIdentifier = !this.selectedContract ? null : this.selectedContract.Identifier;
        var jsonRequest = { $projection: {} };
        this.queryDslService.executeRequest(jsonRequest, contractIdentifier, selectedCollection, selectedMethod, selectedAction, parentUnitId).subscribe(function (response) {
            return JSON.stringify(response, null, 2);
        }, function (error) {
            try {
                return JSON.stringify(JSON.parse(error._body), null, 2);
            }
            catch (e) {
                return error._body;
            }
        });
    };
    DagVisualizationComponent.prototype.getContracts = function () {
        var _this = this;
        return this.queryDslService.getContracts().subscribe(function (response) {
            _this.contractsList = response.map(function (contract) {
                return { label: contract.Name, value: contract };
            });
        });
    };
    DagVisualizationComponent.prototype.pageOnInit = function () {
        var _this = this;
        return this.tenantService.getState().subscribe(function (tenant) {
            _this.tenant = tenant;
            if (_this.tenant) {
                _this.getContracts();
            }
        });
    };
    // FIXME: Useless method
    DagVisualizationComponent.prototype.networkInitialized = function () {
        // now we can use the service to register on events
        this.visNetworkService.on(this.visNetwork, 'click');
    };
    DagVisualizationComponent.prototype.displayDag = function (units) {
        var _this = this;
        this.detail = '';
        // create network datas
        var nbUnits = !units ? 0 : units.length;
        var unitNodes = [];
        var unitEdges = [];
        var gotNodes = [];
        var gotEdges = [];
        var _loop_1 = function (i) {
            unitNodes.push({
                // data
                id: units[i]['#id'],
                label: units[i]['Title'],
                // options
                widthConstraint: { maximum: 200 },
                heightConstraint: { maximum: 200 },
                group: units[i]['#max']
            });
            if (units[i]['#unitups'] !== undefined) {
                var nbUps = units[i]['#unitups'].length;
                for (var e = 0; e < nbUps; e++) {
                    unitEdges.push({ from: units[i]['#id'], to: units[i]['#unitups'][e], arrows: 'to' });
                }
            }
            if (units[i]['#object'] !== undefined) {
                var gotId_1 = units[i]['#object'];
                if (gotNodes.find(function (e) { return e.id === gotId_1; }) === undefined) {
                    gotNodes.push({
                        id: gotId_1,
                        label: "ObjectGroup: " + gotId_1,
                        // options
                        widthConstraint: { maximum: 200 },
                        heightConstraint: { maximum: 200 }
                    });
                }
                gotEdges.push({ from: gotId_1, to: units[i]['#id'], arrows: 'to ', dashes: true });
            }
        };
        for (var i = 0; i < nbUnits; i++) {
            _loop_1(i);
        }
        // create an array with nodes
        var nodes = new __WEBPACK_IMPORTED_MODULE_7_ng2_vis__["VisNodes"](gotNodes.concat(unitNodes));
        // create an array with edges
        var edges = new __WEBPACK_IMPORTED_MODULE_7_ng2_vis__["VisEdges"](unitEdges.concat(gotEdges));
        this.visNetworkData = {
            nodes: nodes,
            edges: edges,
        };
        // create network options
        this.visNetworkOptions = {
            layout: {
                hierarchical: {
                    direction: 'DU',
                    sortMethod: 'directed'
                }
            },
            interaction: { hover: true },
            nodes: {
                shape: 'box'
            }
        };
        // network events
        this.visNetworkService.on(this.visNetwork, 'click');
        this.visNetworkService.click.subscribe(function (eventData) {
            if (eventData[0] === _this.visNetwork) {
                _this.detail = '';
                for (var i = 0; i < units.length; i++) {
                    if (units[i]['#id'] === eventData[1].nodes[0]) {
                        _this.detail = JSON.stringify(units[i], null, 2);
                    }
                    else if (units[i]['#object'] === eventData[1].nodes[0]) {
                        var selectedCollection = 'OBJECTGROUP';
                        var selectedMethod = 'GET';
                        var selectedAction = 'GET';
                        var contractIdentifier = !_this.selectedContract ? null : _this.selectedContract.Identifier;
                        var jsonRequest = { $projection: {} };
                        _this.queryDslService.executeRequest(jsonRequest, contractIdentifier, selectedCollection, selectedMethod, selectedAction, units[i]['#id']).subscribe(function (response) {
                            _this.detail = JSON.stringify(response["$results"], null, 2);
                        }, function (error) {
                            try {
                                _this.detail = JSON.stringify(JSON.parse(error._body), null, 2);
                            }
                            catch (e) {
                                _this.detail = error._body;
                            }
                        });
                    }
                }
            }
        });
    };
    DagVisualizationComponent.prototype.toggleEgg = function () {
        this.eggService.changeState(!this.eggService.getState());
    };
    DagVisualizationComponent = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'vitam-dag-visualization',
            template: __webpack_require__("./src/app/tests/dag-visualization/dag-visualization.component.html"),
            styles: [__webpack_require__("./src/app/tests/dag-visualization/dag-visualization.component.css")]
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_2__common_breadcrumb_service__["a" /* BreadcrumbService */], __WEBPACK_IMPORTED_MODULE_6__query_dsl_query_dsl_service__["a" /* QueryDslService */],
            __WEBPACK_IMPORTED_MODULE_7_ng2_vis__["VisNetworkService"],
            __WEBPACK_IMPORTED_MODULE_1__angular_platform_browser__["Title"], __WEBPACK_IMPORTED_MODULE_4__common_tenant_service__["a" /* TenantService */],
            __WEBPACK_IMPORTED_MODULE_5__common_egg_egg_service__["a" /* EggService */]])
    ], DagVisualizationComponent);
    return DagVisualizationComponent;
}(__WEBPACK_IMPORTED_MODULE_3__common_page_page_component__["a" /* PageComponent */]));



/***/ }),

/***/ "./src/app/tests/functional-tests-feature.service.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return FunctionalTestsFeatureService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__common_resources_service__ = __webpack_require__("./src/app/common/resources.service.ts");
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};


var FunctionalTestsFeatureService = (function () {
    function FunctionalTestsFeatureService(resourceService) {
        this.resourceService = resourceService;
        this.FEATURE_TNR = 'applicative-test/testFeature';
        this.SYNC_WITH_BRANCH = 'applicative-test/syncTnrPiecesWithBranch';
        this.GET_BRANCHES = 'applicative-test/gitBranches';
    }
    FunctionalTestsFeatureService.prototype.launchFeature = function (text) {
        return this.resourceService.post("" + this.FEATURE_TNR, null, text);
    };
    FunctionalTestsFeatureService.prototype.syncWithBranch = function (branch) {
        return this.resourceService.post("" + this.SYNC_WITH_BRANCH, null, branch);
    };
    FunctionalTestsFeatureService.prototype.getAllBranches = function () {
        return this.resourceService.get("" + this.GET_BRANCHES);
    };
    FunctionalTestsFeatureService = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Injectable"])(),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__common_resources_service__["a" /* ResourcesService */]])
    ], FunctionalTestsFeatureService);
    return FunctionalTestsFeatureService;
}());



/***/ }),

/***/ "./src/app/tests/functional-tests-feature/functional-tests-feature.component.css":
/***/ (function(module, exports) {

module.exports = "/*\n\nOriginal highlight.js style (c) Ivan Sagalaev <maniac@softwaremaniacs.org>\n\n*/\n\n.errorMessage {\n    color: white;\n    background-color: #d9534f;\n}\n\n.hljs {\n    display: block;\n    overflow-x: auto;\n    padding: 0.5em;\n    background: #F0F0F0;\n}\n\n/* Base color: saturation 0; */\n\n.hljs,\n.hljs-subst {\n    color: #444;\n}\n\n.hljs-comment {\n    color: #888888;\n}\n\n.hljs-keyword,\n.hljs-attribute,\n.hljs-selector-tag,\n.hljs-meta-keyword,\n.hljs-doctag,\n.hljs-name {\n    font-weight: bold;\n}\n\n/* User color: hue: 0 */\n\n.hljs-type,\n.hljs-string,\n.hljs-number,\n.hljs-selector-id,\n.hljs-selector-class,\n.hljs-quote,\n.hljs-template-tag,\n.hljs-deletion {\n    color: #880000;\n}\n\n.hljs-title,\n.hljs-section {\n    color: #880000;\n    font-weight: bold;\n}\n\n.hljs-regexp,\n.hljs-symbol,\n.hljs-variable,\n.hljs-template-variable,\n.hljs-link,\n.hljs-selector-attr,\n.hljs-selector-pseudo {\n    color: #BC6060;\n}\n\n/* Language color: hue: 90; */\n\n.hljs-literal {\n    color: #78A960;\n}\n\n.hljs-built_in,\n.hljs-bullet,\n.hljs-code,\n.hljs-addition {\n    color: #397300;\n}\n\n/* Meta color: hue: 200 */\n\n.hljs-meta {\n    color: #1f7199;\n}\n\n.hljs-meta-string {\n    color: #4d99bf;\n}\n\n/* Misc effects */\n\n.hljs-emphasis {\n    font-style: italic;\n}\n\n.hljs-strong {\n    font-weight: bold;\n}\n"

/***/ }),

/***/ "./src/app/tests/functional-tests-feature/functional-tests-feature.component.html":
/***/ (function(module, exports) {

module.exports = "\n<label for=\"query\">Exécution manuelle de TNR  </label>\n\n<div class=\"ui-g-12\">\n    <button pButton type=\"button\" label='Mise à jour référentiel' (click)=\"syncWithBranch()\">\n    </button>\n    <select [(ngModel)]=\"branch\" #ctrl=\"ngModel\" style=\"display: inline; margin: 0 0 0 10px\">\n        <option *ngFor='let branchName of branches' value=\"{{branchName}}\">{{branchName}}</option>\n    </select>\n</div>\n<div class=\"ui-g-12\">\n<textarea class=\"textarea-dsl ui-g-12\" id=\"query\" rows=\"25\" cols=\"12\" pInputTextarea [(ngModel)]=\"featureText\"></textarea>\n</div>\n\n<div class=\"ui-g-12\">\n    <div>\n        <button pButton type=\"button\" label=\"Lancer le TNR\" (click)=\"sendRequest()\"></button>\n    </div>\n    <div [ngClass]=\"validRequest ? validRequest.css : ''\">\n        {{validRequest ? \"JSON \" + validRequest.valid : \"\"}}\n    </div>\n</div>\n<div class=\"ui-g-12\">\n    <button pButton type=\"button\" label=\"Effacer\" (click)=\"requestResponse = undefined\"></button>\n</div>\n<div class=\"ui-g-12\">\n    <textarea class=\"textarea-dsl ui-g-12\" id=\"response\" rows=\"25\" cols=\"12\" pInputTextarea [(ngModel)]=\"requestResponse\"></textarea>\n</div>\n\n<p-dialog header=\"Mise à jour du référentiel git\"  [(visible)]=\"updateOk\" modal=\"modal\" [responsive]=\"true\">\n    <p>Le réferentiel  à été  mis à jour </p>\n    <p-footer>\n        <button type=\"button\" pButton icon=\"fa-check\" (click)=\"updateOk=false\" label=\"OK\"></button>\n    </p-footer>\n</p-dialog>\n\n<p-dialog header=\"Mise à jour du référentiel git\"  [(visible)]=\"updateKo\" modal=\"modal\" [responsive]=\"true\">\n    <p>Une erreur s'est produite lors de la mise à jour du référentiel git </p>\n    <p-footer>\n        <button type=\"button\" pButton icon=\"fa-check\" (click)=\"updateKo=false\" label=\"OK\"></button>\n    </p-footer>\n</p-dialog>\n\n"

/***/ }),

/***/ "./src/app/tests/functional-tests-feature/functional-tests-feature.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return FunctionalTestsFeatureComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_platform_browser__ = __webpack_require__("./node_modules/@angular/platform-browser/esm5/platform-browser.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__common_breadcrumb_service__ = __webpack_require__("./src/app/common/breadcrumb.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_page_page_component__ = __webpack_require__("./src/app/common/page/page-component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__functional_tests_feature_service__ = __webpack_require__("./src/app/tests/functional-tests-feature.service.ts");
var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};





var breadcrumb = [
    { label: 'Tests', routerLink: '' },
    { label: 'Test tnr', routerLink: 'tests/testFeature' }
];
var FunctionalTestsFeatureComponent = (function (_super) {
    __extends(FunctionalTestsFeatureComponent, _super);
    function FunctionalTestsFeatureComponent(breadcrumbService, service, titleService) {
        var _this = _super.call(this, 'Test tnr', breadcrumb, titleService, breadcrumbService) || this;
        _this.breadcrumbService = breadcrumbService;
        _this.service = service;
        _this.titleService = titleService;
        return _this;
    }
    FunctionalTestsFeatureComponent.prototype.sendRequest = function () {
        var _this = this;
        this.requestResponse = '';
        this.service.launchFeature(this.featureText).subscribe(function (response) {
            _this.requestResponse = JSON.stringify(response, null, 2);
        }, function (error) {
            _this.requestResponse = JSON.stringify(error, null, 2);
        });
    };
    ;
    FunctionalTestsFeatureComponent.prototype.syncWithBranch = function () {
        var _this = this;
        this.service.syncWithBranch(this.branch).subscribe(function () { return _this.updateOk = true; }, function () { return _this.updateKo = true; });
    };
    ;
    FunctionalTestsFeatureComponent.prototype.pageOnInit = function () {
        var _this = this;
        this.service.getAllBranches().subscribe(function (data) {
            _this.branches = data;
        });
        return null;
    };
    ;
    FunctionalTestsFeatureComponent = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'vitam-functional-tests-feature',
            template: __webpack_require__("./src/app/tests/functional-tests-feature/functional-tests-feature.component.html"),
            styles: [__webpack_require__("./src/app/tests/functional-tests-feature/functional-tests-feature.component.css")],
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_2__common_breadcrumb_service__["a" /* BreadcrumbService */], __WEBPACK_IMPORTED_MODULE_4__functional_tests_feature_service__["a" /* FunctionalTestsFeatureService */], __WEBPACK_IMPORTED_MODULE_1__angular_platform_browser__["Title"]])
    ], FunctionalTestsFeatureComponent);
    return FunctionalTestsFeatureComponent;
}(__WEBPACK_IMPORTED_MODULE_3__common_page_page_component__["a" /* PageComponent */]));



/***/ }),

/***/ "./src/app/tests/functional-tests/detail/functional-tests-detail.component.css":
/***/ (function(module, exports) {

module.exports = ".text-green {\n  color: green;\n}\n.text-red {\n  color: red;\n}\n.mar-b--20px {\n  margin-bottom: -20px;\n}\n"

/***/ }),

/***/ "./src/app/tests/functional-tests/detail/functional-tests-detail.component.html":
/***/ (function(module, exports) {

module.exports = "<p-fieldset legend=\"Résultats des derniers tests\">\n  <p-panel *ngIf=\"resultDetail\" header=\"Résumé\">\n    <div class=\"mar-b--20px\">\n      <table class=\"ui-g-12\">\n        <tr>\n          <td class=\"ui-g-4\">Nombre de Tests</td>\n          <td class=\"ui-g-4\">Succès</td>\n          <td class=\"ui-g-4\">Echecs</td>\n        </tr>\n        <tr>\n          <td class=\"ui-g-4\"><b>{{resultDetail.Reports.length}}</b></td>\n          <td class=\"ui-g-4 text-green\"><b>{{resultDetail.NumberOfTestOK}}</b></td>\n          <td class=\"ui-g-4 text-red\"><b>{{resultDetail.NumberOfTestKO}}</b></td>\n        </tr>\n      </table>\n      <hr>\n       <table class=\"ui-g-12\">\n        <tr>\n          <td class=\"ui-g-3\">Catégorie</td>\n          <td class=\"ui-g-3\">Succès</td>\n          <td class=\"ui-g-3\">Echecs</td>\n          <td class=\"ui-g-3\">Total</td>\n        </tr>\n        <tr *ngFor=\"let tag of resultDetail.Tags\">\n          <td class=\"ui-g-3\"><b>{{tag.TagName}}</b></td>\n          <td class=\"ui-g-3 text-green\"><b>{{tag.Ok}}</b></td>\n          <td class=\"ui-g-3 text-red\"><b>{{tag.Ko}}</b></td>\n          <td class=\"ui-g-3\"><b>{{tag.Ok + tag.Ko}}</b></td>\n        </tr>\n      </table>\n\n      <div class=\"clearfix\">&nbsp;</div>\n    </div>\n\n  </p-panel>\n\n  <p-panel *ngIf=\"resultDetail\" header=\"Détails\">\n    <vitam-generic-table [items]=\"resultDetail.Reports\" [cols]=\"cols\" [getClass]=\"getClass\" [filter]=\"'Ok'\">\n    </vitam-generic-table >\n  </p-panel>\n\n</p-fieldset>\n"

/***/ }),

/***/ "./src/app/tests/functional-tests/detail/functional-tests-detail.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return FunctionalTestsDetailComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rxjs_add_operator_switchMap__ = __webpack_require__("./node_modules/rxjs/_esm5/add/operator/switchMap.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_platform_browser__ = __webpack_require__("./node_modules/@angular/platform-browser/esm5/platform-browser.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_router__ = __webpack_require__("./node_modules/@angular/router/esm5/router.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__common_breadcrumb_service__ = __webpack_require__("./src/app/common/breadcrumb.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__common_page_page_component__ = __webpack_require__("./src/app/common/page/page-component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__functional_tests_service__ = __webpack_require__("./src/app/tests/functional-tests/functional-tests.service.ts");
var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};







var DefaultBreadcrumb = [];
var FunctionalTestsDetailComponent = (function (_super) {
    __extends(FunctionalTestsDetailComponent, _super);
    function FunctionalTestsDetailComponent(route, titleService, breadcrumbService, service) {
        var _this = _super.call(this, 'Détail des tests fonctionels', DefaultBreadcrumb, titleService, breadcrumbService) || this;
        _this.route = route;
        _this.titleService = titleService;
        _this.breadcrumbService = breadcrumbService;
        _this.service = service;
        _this.cols = [
            { field: 'Feature', label: 'Fonctionnalité' },
            { field: 'OperationId', label: 'Identifiant de l\'opération' },
            { field: 'Description', label: 'Description' },
            { field: 'Errors', label: 'Erreurs' }
        ];
        _this.breadcrumb = [];
        return _this;
    }
    FunctionalTestsDetailComponent.prototype.pageOnInit = function () {
        var _this = this;
        return this.route.paramMap
            .switchMap(function (params) {
            _this.fileName = params.get('fileName');
            _this.breadcrumb = [
                { label: 'Tests', routerLink: '' },
                { label: 'Fonctionnels', routerLink: 'tests/functional-tests' },
                { label: 'Détails de ' + _this.fileName, routerLink: 'tests/functional-tests/' + _this.fileName }
            ];
            _this.setBreadcrumb(_this.breadcrumb);
            return _this.service.getResultDetail(_this.fileName);
        })
            .subscribe(function (data) {
            _this.resultDetail = data;
            if (_this.resultDetail && _this.resultDetail.Tags)
                _this.resultDetail.Tags = _this.orderTagsList(_this.resultDetail.Tags);
        });
    };
    FunctionalTestsDetailComponent.prototype.getClass = function (data) {
        if (data.Ok == true) {
            return 'greenRows';
        }
        else {
            return 'redRows';
        }
    };
    FunctionalTestsDetailComponent.prototype.orderTagsList = function (tags) {
        return tags.sort(function (a, b) {
            if (a.Ok + a.Ko > b.Ok + b.Ko) {
                return -1;
            }
            else if (a.Ok + a.Ko < b.Ok + b.Ko) {
                return 1;
            }
            else {
                return 0;
            }
        });
    };
    FunctionalTestsDetailComponent = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["Component"])({
            selector: 'vitam-functional-tests-detail',
            template: __webpack_require__("./src/app/tests/functional-tests/detail/functional-tests-detail.component.html"),
            styles: [__webpack_require__("./src/app/tests/functional-tests/detail/functional-tests-detail.component.css")]
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_3__angular_router__["ActivatedRoute"], __WEBPACK_IMPORTED_MODULE_2__angular_platform_browser__["Title"], __WEBPACK_IMPORTED_MODULE_4__common_breadcrumb_service__["a" /* BreadcrumbService */],
            __WEBPACK_IMPORTED_MODULE_6__functional_tests_service__["a" /* FunctionalTestsService */]])
    ], FunctionalTestsDetailComponent);
    return FunctionalTestsDetailComponent;
}(__WEBPACK_IMPORTED_MODULE_5__common_page_page_component__["a" /* PageComponent */]));



/***/ }),

/***/ "./src/app/tests/functional-tests/detail/report.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Report; });
var Report = (function () {
    function Report() {
    }
    return Report;
}());



/***/ }),

/***/ "./src/app/tests/functional-tests/functional-tests.component.css":
/***/ (function(module, exports) {

module.exports = ""

/***/ }),

/***/ "./src/app/tests/functional-tests/functional-tests.component.html":
/***/ (function(module, exports) {

module.exports = "<p-panel header=\"Tests fonctionnels\">\n  <div class=\"inline-block\">\n    <button pButton type=\"button\" icon=\"fa-download\" iconPos=\"left\" label='Lancer les tests' (click)=\"launchTests()\">\n    </button>\n    <button pButton type=\"button\" label='Mise à jour référentiel' (click)=\"getResults()\">\n    </button>\n    <div *ngIf=\"pending\"><span>Tests fonctionnels en cours ...</span></div>\n    <div *ngIf=\"error\"><span>Les tests fonctionnels sont déjà en cours ou une erreur s'est produite</span></div>\n  </div>\n</p-panel>\n\n<p-panel header=\"Résultats des derniers tests\">\n  <vitam-generic-table [items]=\"results\" [cols]=\"cols\" [route]=\"'/tests/functional-tests'\" [getClass]=\"getClass\" selectionMode=\"single\">\n  </vitam-generic-table >\n</p-panel>\n"

/***/ }),

/***/ "./src/app/tests/functional-tests/functional-tests.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return FunctionalTestsComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_platform_browser__ = __webpack_require__("./node_modules/@angular/platform-browser/esm5/platform-browser.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__common_breadcrumb_service__ = __webpack_require__("./src/app/common/breadcrumb.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_page_page_component__ = __webpack_require__("./src/app/common/page/page-component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__functional_tests_service__ = __webpack_require__("./src/app/tests/functional-tests/functional-tests.service.ts");
var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};





var breadcrumb = [
    { label: 'Tests', routerLink: '' },
    { label: 'Fonctionnels', routerLink: 'tests/functional-tests' }
];
var FunctionalTestsComponent = (function (_super) {
    __extends(FunctionalTestsComponent, _super);
    function FunctionalTestsComponent(service, titleService, breadcrumbService) {
        var _this = _super.call(this, 'Tests fonctionnels', breadcrumb, titleService, breadcrumbService) || this;
        _this.service = service;
        _this.titleService = titleService;
        _this.breadcrumbService = breadcrumbService;
        _this.cols = [
            { field: 'value', label: 'Rapport' },
            { field: 'details', label: 'Détails' }
        ];
        return _this;
    }
    FunctionalTestsComponent.prototype.pageOnInit = function () {
        this.getResults();
        return null;
    };
    FunctionalTestsComponent.prototype.getResults = function () {
        var _this = this;
        this.service.getResults()
            .subscribe(function (data) {
            var tmpResults = [];
            data.forEach(function (value) {
                tmpResults.push({ value: value, details: 'Accès au détail' });
            });
            _this.results = tmpResults;
        });
    };
    FunctionalTestsComponent.prototype.launchTests = function () {
        var _this = this;
        this.pending = true;
        this.service.launchTests().subscribe(function (response) {
            if (response.status != 202) {
                _this.pending = false;
                _this.error = true;
            }
        });
    };
    FunctionalTestsComponent.prototype.getClass = function () {
        return 'clickableDiv';
    };
    FunctionalTestsComponent = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'vitam-functional-tests',
            template: __webpack_require__("./src/app/tests/functional-tests/functional-tests.component.html"),
            styles: [__webpack_require__("./src/app/tests/functional-tests/functional-tests.component.css")]
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_4__functional_tests_service__["a" /* FunctionalTestsService */], __WEBPACK_IMPORTED_MODULE_1__angular_platform_browser__["Title"], __WEBPACK_IMPORTED_MODULE_2__common_breadcrumb_service__["a" /* BreadcrumbService */]])
    ], FunctionalTestsComponent);
    return FunctionalTestsComponent;
}(__WEBPACK_IMPORTED_MODULE_3__common_page_page_component__["a" /* PageComponent */]));



/***/ }),

/***/ "./src/app/tests/functional-tests/functional-tests.service.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return FunctionalTestsService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rxjs_add_operator_map__ = __webpack_require__("./node_modules/rxjs/_esm5/add/operator/map.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_class_transformer__ = __webpack_require__("./node_modules/class-transformer/index.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_class_transformer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_class_transformer__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__detail_report__ = __webpack_require__("./src/app/tests/functional-tests/detail/report.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__common_resources_service__ = __webpack_require__("./src/app/common/resources.service.ts");
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};





var FunctionalTestsService = (function () {
    function FunctionalTestsService(client) {
        this.client = client;
        this.TNR_API = 'applicative-test';
    }
    FunctionalTestsService.prototype.getResults = function () {
        return this.client.get(this.TNR_API);
    };
    FunctionalTestsService.prototype.getResultDetail = function (fileName) {
        return this.client.get(this.TNR_API + '/' + fileName)
            .map(function (json) { return Object(__WEBPACK_IMPORTED_MODULE_2_class_transformer__["plainToClass"])(__WEBPACK_IMPORTED_MODULE_3__detail_report__["a" /* Report */], json); });
    };
    FunctionalTestsService.prototype.launchTests = function () {
        return this.client.post(this.TNR_API, null);
    };
    FunctionalTestsService = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Injectable"])(),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_4__common_resources_service__["a" /* ResourcesService */]])
    ], FunctionalTestsService);
    return FunctionalTestsService;
}());



/***/ }),

/***/ "./src/app/tests/perf/perf.component.css":
/***/ (function(module, exports) {

module.exports = ".pad-b-10 {\n  padding-bottom: 10px;\n}\n\n.pad-b-20 {\n  padding-bottom: 20px;\n}\n"

/***/ }),

/***/ "./src/app/tests/perf/perf.component.html":
/***/ (function(module, exports) {

module.exports = "<div class=\"ui-g-12\">\n  <h2>TEST DE PERFORMANCES </h2>\n\n  <div class=\"ui-g-12 pad-b-10\">Liste des SIP :\n    <p-dropdown [options]=\"sipList\" [(ngModel)]=\"selectedSIP\" [style]=\"{'width':'30%'}\"\n                placeholder=\"Sélectionner un SIP\"></p-dropdown>\n  </div>\n  <div class=\"ui-g-3\"></div>\n  <div class=\"ui-g-3 pad-b-10\"> Nombre de Thread :\n    <input [(ngModel)]=\"parallelIngest\" type=\"number\" min=\"1\" max=\"100\" style=\"width:40px\">\n  </div>\n  <div class=\"ui-g-3 pad-b-20\"> Nombre d'ingest:\n    <input pInputText [(ngModel)]=\"numberOfIngest\" type=\"number\" min=\"1\" max=\"100\" style=\"width:40px\">\n  </div>\n  <div class=\"ui-g-12\">\n    <button  type=\"button\" label='Lancer les tests' pButton (click)=\"uploadSelectedSip()\">\n    </button>\n  </div>\n  <br/>\n</div>\n<div class=\"ui-g-12\">\n  <div class=\"col-md-12\">\n  <h2>Résultats</h2>\n\n    <vitam-generic-table [items]=\"reportsList\" [cols]=\"cols\" [actionOnIcon]=\"downloadReport\" [colsWithIcon]=\"colsWithIcon\" [service]=\"service\">\n    </vitam-generic-table>\n  </div>\n</div>\n"

/***/ }),

/***/ "./src/app/tests/perf/perf.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return PerfComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_platform_browser__ = __webpack_require__("./node_modules/@angular/platform-browser/esm5/platform-browser.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__common_breadcrumb_service__ = __webpack_require__("./src/app/common/breadcrumb.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_page_page_component__ = __webpack_require__("./src/app/common/page/page-component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__perf_service__ = __webpack_require__("./src/app/tests/perf/perf.service.ts");
var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};





var breadcrumb = [
    { label: 'Tests', routerLink: '' },
    { label: 'Performance', routerLink: 'tests/perf' }
];
var PerfComponent = (function (_super) {
    __extends(PerfComponent, _super);
    function PerfComponent(titleService, breadcrumbService, service) {
        var _this = _super.call(this, 'Tests de performance', breadcrumb, titleService, breadcrumbService) || this;
        _this.titleService = titleService;
        _this.breadcrumbService = breadcrumbService;
        _this.service = service;
        _this.cols = [
            { field: 'value', label: 'Nom' }
        ];
        _this.colsWithIcon = [
            { icon: 'fa fa-download', label: 'Télecharger' }
        ];
        return _this;
    }
    PerfComponent.prototype.pageOnInit = function () {
        var _this = this;
        this.service.generateIngestStatReport().subscribe(function (data) {
            var tmpResults = [];
            data.forEach(function (value) {
                tmpResults.push({ value: value });
            });
            _this.reportsList = tmpResults;
        });
        this.service.getAvailableSipForUpload().subscribe(function (data) {
            _this.sipList = data.map(function (fileName) {
                return { label: fileName, value: fileName };
            });
        });
        this.parallelIngest = 1;
        this.numberOfIngest = 1;
        return null;
    };
    PerfComponent.prototype.uploadSelectedSip = function () {
        var data = {
            "fileName": this.selectedSIP,
            "parallelIngest": this.parallelIngest,
            "numberOfIngest": this.numberOfIngest,
        };
        this.service.uploadSelected(data).subscribe(function (response) {
            if (response.status != 202) {
                console.log('Test performance error');
            }
        });
    };
    PerfComponent.prototype.downloadReport = function (report) {
        this.service.downloadURL(report.value);
    };
    PerfComponent = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'vitam-perf',
            template: __webpack_require__("./src/app/tests/perf/perf.component.html"),
            styles: [__webpack_require__("./src/app/tests/perf/perf.component.css")]
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__angular_platform_browser__["Title"], __WEBPACK_IMPORTED_MODULE_2__common_breadcrumb_service__["a" /* BreadcrumbService */],
            __WEBPACK_IMPORTED_MODULE_4__perf_service__["a" /* PerfService */]])
    ], PerfComponent);
    return PerfComponent;
}(__WEBPACK_IMPORTED_MODULE_3__common_page_page_component__["a" /* PageComponent */]));



/***/ }),

/***/ "./src/app/tests/perf/perf.service.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return PerfService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rxjs_add_operator_map__ = __webpack_require__("./node_modules/rxjs/_esm5/add/operator/map.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_add_operator_toPromise__ = __webpack_require__("./node_modules/rxjs/_esm5/add/operator/toPromise.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_add_operator_toPromise___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs_add_operator_toPromise__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_resources_service__ = __webpack_require__("./src/app/common/resources.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_common_http__ = __webpack_require__("./node_modules/@angular/common/esm5/http.js");
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};





var PerfService = (function () {
    function PerfService(client) {
        this.client = client;
        this.GENERATE_STAT_URL = 'performances/reports';
        this.SIP_TO_UPLOAD_URL = 'performances/sips';
        this.SIP_TO_UPLOAD = 'performances';
        this.REPORT = 'performances/reports/';
    }
    //Get Available SIP on server for upload
    PerfService.prototype.getAvailableSipForUpload = function () {
        return this.client.get(this.SIP_TO_UPLOAD_URL);
    };
    // upload selected
    PerfService.prototype.uploadSelected = function (data) {
        return this.client.post(this.SIP_TO_UPLOAD, undefined, data);
    };
    // Generate INGEST statistics report
    PerfService.prototype.generateIngestStatReport = function () {
        return this.client.get(this.GENERATE_STAT_URL);
    };
    PerfService.prototype.downloadURL = function (fileName) {
        var header = new __WEBPACK_IMPORTED_MODULE_4__angular_common_http__["c" /* HttpHeaders */]().set('Accept', 'text/plain');
        this.client.get(this.REPORT + fileName, header, 'blob').subscribe(function (response) {
            var a = document.createElement('a');
            document.body.appendChild(a);
            a.href = URL.createObjectURL(response.body);
            a.download = fileName;
            a.click();
        });
    };
    PerfService = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Injectable"])(),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_3__common_resources_service__["a" /* ResourcesService */]])
    ], PerfService);
    return PerfService;
}());



/***/ }),

/***/ "./src/app/tests/query-dsl/query-dsl.component.css":
/***/ (function(module, exports) {

module.exports = "/*Alignment*/\n.align-left {\n  text-align: left;\n}\n.align-right {\n  text-align: right;\n}\n/*Margins*/\n.margin-top-5 {\n  margin-top: 5px;\n}\n.margin-left-5-percent {\n  margin-left: 5%;\n}\n/*Font size*/\n.fs-1-1em {\n  font-size: 1.1em;\n}\n/*Font color*/\n.font-color-green {\n  color: #4CAF50;\n}\n.font-color-red {\n  color: #cd0a0a;\n}\n/*Text areas*/\n.textarea-dsl {\n  width:90%;\n  resize: vertical;\n  font-size: 1em;\n}"

/***/ }),

/***/ "./src/app/tests/query-dsl/query-dsl.component.html":
/***/ (function(module, exports) {

module.exports = "<div class=\"ui-g-12\">\n  <div class=\"ui-g-1\"></div>\n  <div class=\"ui-g-1\">\n    <label class=\"\" for=\"tenant\">Tenant</label>\n    <div id=\"tenant\" class=\"fs-1-1em\">{{tenant ? tenant : \"-\"}}</div>\n  </div>\n  <div class=\"ui-g-4\">\n    <label for=\"identifier\">Identifiant</label>\n    <input id=\"identifier\" class=\"fs-1-1em\" size=\"35\" pInputText [(ngModel)]=\"objectId\"\n           placeholder=\"Facultatif\"/>\n  </div>\n</div>\n\n<div class=\"ui-g-12\">\n  <div class=\"ui-g-1\"></div>\n  <div class=\"ui-g-3\">\n    <label for=\"contract\">Contrat</label>\n    <p-dropdown id=\"contract\" [options]=\"contractsList\" [(ngModel)]=\"selectedContract\"\n                [style]=\"{'width':'100%'}\" [scrollHeight]=\"300\"\n                placeholder=\"Sélectionner un contrat\"></p-dropdown>\n  </div>\n  <div class=\"ui-g-3\">\n    <label for=\"collection\">Collection</label>\n    <p-dropdown id=\"collection\"[options]=\"collections\" [(ngModel)]=\"selectedCollection\"\n                [style]=\"{'width':'100%'}\" [scrollHeight]=\"300\" (onChange)=\"updateMethods()\"\n                placeholder=\"Sélectionner une collection\"></p-dropdown>\n  </div>\n  <div class=\"ui-g-3\">\n    <label for=\"action\">Action</label>\n    <p-dropdown id=\"action\" [options]=\"methods\" [(ngModel)]=\"selectedMethod\"\n                [style]=\"{'width':'100%'}\" [scrollHeight]=\"300\"\n                placeholder=\"Sélectionner une action\"></p-dropdown>\n  </div>\n</div>\n\n\n<div class=\"ui-g-12\">\n  <div class=\"ui-g-6\">\n    <label for=\"requete\">Requête DSL (format JSON)</label>\n    <textarea class=\"textarea-dsl\" id=\"requete\" rows=\"25\" pInputTextarea [(ngModel)]=\"jsonRequest\"></textarea>\n  </div>\n\n  <div class=\"ui-g-6\">\n    <label for=\"reponse\">Réponse</label>\n    <textarea class=\"textarea-dsl\" id=\"reponse\" rows=\"25\" pInputTextarea [(ngModel)]=\"requestResponse\"></textarea>\n  </div>\n</div>\n\n<div class=\"ui-g-12\">\n  <div class=\"ui-g-6\">\n    <div class=\"ui-g-1\"></div>\n    <div class=\"ui-g-7\">\n      <button pButton type=\"button\" label=\"Valider JSON\" (click)=\"checkJson()\"></button>\n      <button pButton type=\"button\" label=\"Envoyer la requête\" (click)=\"sendRequest()\" [disabled]=\"!tenant\"></button>\n    </div>\n    <div class=\"ui-g-3 margin-top-5\" [ngClass]=\"validRequest ? validRequest.css : ''\">\n      {{validRequest ? \"JSON \" + validRequest.valid : \"\"}}\n    </div>\n  </div>\n  <div class=\"ui-g-6\">\n    <button pButton type=\"button\" label=\"Effacer\" (click)=\"requestResponse = undefined\"></button>\n  </div>\n</div>\n"

/***/ }),

/***/ "./src/app/tests/query-dsl/query-dsl.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return QueryDSLComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_platform_browser__ = __webpack_require__("./node_modules/@angular/platform-browser/esm5/platform-browser.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__query_dsl_service__ = __webpack_require__("./src/app/tests/query-dsl/query-dsl.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_breadcrumb_service__ = __webpack_require__("./src/app/common/breadcrumb.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__common_page_page_component__ = __webpack_require__("./src/app/common/page/page-component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__common_tenant_service__ = __webpack_require__("./src/app/common/tenant.service.ts");
var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};






var defaultMethod = [
    { label: 'Rechercher', value: 'GET' },
];
var defaultAndUpdateMethods = [
    { label: 'Rechercher', value: 'GET' },
    { label: 'Mettre à jour', value: 'PUT' }
];
var operationsMethods = [
    { label: 'Rechercher', value: 'GET' },
    { label: 'Action - SUIVANT', value: 'NEXT' },
    { label: 'Action - PAUSE', value: 'PAUSE' },
    { label: 'Action - REPRENDRE', value: 'RESUME' },
    { label: 'Action - STOP', value: 'STOP' },
];
var defaultCollections = [
    { label: 'Unit', value: 'UNIT' },
    { label: 'Groupe d\'objets', value: 'OBJECTGROUP' },
    { label: 'Journal CV unit', value: 'UNITLIFECYCLES' },
    { label: 'Journal CV GOT', value: 'OBJECTGROUPLIFECYCLES' },
    { label: 'Journal des opérations', value: 'LOGBOOK' },
    { label: 'Registre des fonds', value: 'ACCESSION_REGISTERS' },
    { label: 'Profil', value: 'PROFILE' },
    { label: 'Contrat d\'accès', value: 'ACCESS_CONTRACTS' },
    { label: 'Contrat d\'entrée', value: 'INGEST_CONTRACTS' },
    { label: 'Contrat de gestion', value: 'MANAGEMENT_CONTRACTS' },
    { label: 'Contexte', value: 'CONTEXTS' },
    { label: 'Règle de gestion', value: 'RULES' },
    { label: 'Format', value: 'FORMATS' },
    { label: 'Services agents', value: 'AGENCIES' },
    { label: 'Opération', value: 'OPERATIONS' },
    { label: 'Workflow', value: 'WORKFLOWS' },
];
var breadcrumb = [
    { label: 'Tests', routerLink: '' },
    { label: 'Requêtes DSL', routerLink: 'tests/queryDSL' }
];
var QueryDSLComponent = (function (_super) {
    __extends(QueryDSLComponent, _super);
    function QueryDSLComponent(breadcrumbService, queryDslService, titleService, tenantService) {
        var _this = _super.call(this, 'Tests des requêtes DSL', breadcrumb, titleService, breadcrumbService) || this;
        _this.breadcrumbService = breadcrumbService;
        _this.queryDslService = queryDslService;
        _this.titleService = titleService;
        _this.tenantService = tenantService;
        _this.collections = defaultCollections;
        _this.methods = defaultMethod;
        return _this;
    }
    QueryDSLComponent.prototype.pageOnInit = function () {
        var _this = this;
        return this.tenantService.getState().subscribe(function (tenant) {
            _this.tenant = tenant;
            if (_this.tenant) {
                _this.getContracts();
            }
        });
    };
    QueryDSLComponent.prototype.getContracts = function () {
        var _this = this;
        return this.queryDslService.getContracts().subscribe(function (response) {
            _this.contractsList = response.map(function (contract) {
                return { label: contract.Name, value: contract };
            });
        });
    };
    QueryDSLComponent.prototype.checkJson = function () {
        if (this.queryDslService.checkJson(this.jsonRequest)) {
            this.jsonRequest = JSON.stringify(JSON.parse(this.jsonRequest), null, 2);
            this.validRequest = { valid: 'valide', css: 'font-color-green' };
        }
        else {
            this.validRequest = { valid: 'non valide', css: 'font-color-red' };
        }
    };
    QueryDSLComponent.prototype.sendRequest = function () {
        var _this = this;
        this.checkJson();
        if (this.selectedCollection === 'OPERATIONS' && this.selectedMethod !== 'GET') {
            this.selectedAction = this.selectedMethod;
            if (this.selectedAction === 'STOP') {
                this.selectedMethod = 'DELETE';
            }
            else {
                this.selectedMethod = 'PUT';
            }
        }
        this.queryDslService.executeRequest(this.jsonRequest, this.selectedContract.Identifier, this.selectedCollection, this.selectedMethod, this.selectedAction, this.objectId).subscribe(function (response) { return _this.requestResponse = JSON.stringify(response, null, 2); }, function (error) {
            try {
                if (error._body) {
                    _this.requestResponse = JSON.stringify(JSON.parse(error._body), null, 2);
                }
                else if (error.error) {
                    _this.requestResponse = JSON.stringify(error.error, null, 2);
                }
            }
            catch (e) {
                if (error._body) {
                    _this.requestResponse = error._body;
                }
                else {
                    _this.requestResponse = error.error;
                }
            }
        });
    };
    QueryDSLComponent.prototype.updateMethods = function () {
        switch (this.selectedCollection.toUpperCase()) {
            case 'UNIT':
            case 'ACCESS_CONTRACTS':
            case 'INGEST_CONTRACTS':
            case 'MANAGEMENT_CONTRACTS':
            case 'CONTEXTS':
            case 'PROFILE':
                this.methods = defaultAndUpdateMethods;
                break;
            case 'OPERATIONS':
                this.methods = operationsMethods;
                break;
            default:
                this.methods = defaultMethod;
        }
    };
    QueryDSLComponent = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'vitam-query-dsl',
            template: __webpack_require__("./src/app/tests/query-dsl/query-dsl.component.html"),
            styles: [__webpack_require__("./src/app/tests/query-dsl/query-dsl.component.css")]
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_3__common_breadcrumb_service__["a" /* BreadcrumbService */], __WEBPACK_IMPORTED_MODULE_2__query_dsl_service__["a" /* QueryDslService */],
            __WEBPACK_IMPORTED_MODULE_1__angular_platform_browser__["Title"], __WEBPACK_IMPORTED_MODULE_5__common_tenant_service__["a" /* TenantService */]])
    ], QueryDSLComponent);
    return QueryDSLComponent;
}(__WEBPACK_IMPORTED_MODULE_4__common_page_page_component__["a" /* PageComponent */]));



/***/ }),

/***/ "./src/app/tests/query-dsl/query-dsl.service.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return QueryDslService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common_http__ = __webpack_require__("./node_modules/@angular/common/esm5/http.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_add_operator_map__ = __webpack_require__("./node_modules/rxjs/_esm5/add/operator/map.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_do__ = __webpack_require__("./node_modules/rxjs/_esm5/add/operator/do.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_class_transformer__ = __webpack_require__("./node_modules/class-transformer/index.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_class_transformer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_class_transformer__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__common_contract__ = __webpack_require__("./src/app/common/contract.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__common_resources_service__ = __webpack_require__("./src/app/common/resources.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_util__ = __webpack_require__("./node_modules/util/util.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_util___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_util__);
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};








var QueryDslService = (function () {
    function QueryDslService(resourceService) {
        this.resourceService = resourceService;
        this.accessContracts = 'accesscontracts';
        this.dslQueryTestUrl = 'dslQueryTest';
    }
    QueryDslService.prototype.getContracts = function () {
        var headers = new __WEBPACK_IMPORTED_MODULE_1__angular_common_http__["c" /* HttpHeaders */]({ 'Content-Type': 'application/json' });
        return this.resourceService.post("" + this.accessContracts, headers, '{"ContractID": "all", "ContractName": "all", "orderby": {"field": "Name", "sortType": "ASC"}}')
            .map(function (json) { return Object(__WEBPACK_IMPORTED_MODULE_4_class_transformer__["plainToClass"])(__WEBPACK_IMPORTED_MODULE_5__common_contract__["a" /* Contract */], json.$results); });
    };
    QueryDslService.prototype.checkJson = function (jsonQuery) {
        try {
            JSON.parse(jsonQuery);
            return true;
        }
        catch (e) {
            return false;
        }
    };
    QueryDslService.prototype.getRequestHeader = function (contractId, requestedCollection, requestMethod, xAction, objectId) {
        var headers = new __WEBPACK_IMPORTED_MODULE_1__angular_common_http__["c" /* HttpHeaders */]({ 'Content-Type': 'application/json' });
        if (!Object(__WEBPACK_IMPORTED_MODULE_7_util__["isNullOrUndefined"])(contractId)) {
            headers = headers.set('X-Access-Contract-Id', contractId);
        }
        if (!Object(__WEBPACK_IMPORTED_MODULE_7_util__["isNullOrUndefined"])(requestedCollection)) {
            headers = headers.set('X-Requested-Collection', requestedCollection);
        }
        if (!Object(__WEBPACK_IMPORTED_MODULE_7_util__["isNullOrUndefined"])(requestMethod)) {
            headers = headers.set('X-Http-Method-Override', requestMethod);
        }
        if (!Object(__WEBPACK_IMPORTED_MODULE_7_util__["isNullOrUndefined"])(objectId)) {
            headers = headers.set('X-Object-Id', objectId);
        }
        if (!Object(__WEBPACK_IMPORTED_MODULE_7_util__["isNullOrUndefined"])(xAction)) {
            headers = headers.set('X-Action', xAction);
        }
        return headers;
    };
    QueryDslService.prototype.executeRequest = function (query, contractId, requestedCollection, requestMethod, xAction, objectId) {
        return this.resourceService.post("" + this.dslQueryTestUrl, this.getRequestHeader(contractId, requestedCollection, requestMethod, xAction, objectId), query);
    };
    QueryDslService = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Injectable"])(),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_6__common_resources_service__["a" /* ResourcesService */]])
    ], QueryDslService);
    return QueryDslService;
}());



/***/ }),

/***/ "./src/app/traceability/logbook/logbook.component.css":
/***/ (function(module, exports) {

module.exports = ""

/***/ }),

/***/ "./src/app/traceability/logbook/logbook.component.html":
/***/ (function(module, exports) {

module.exports = "<button pButton type=\"button\" iconPos=\"left\" label='Générer le journal des opérations' (click)=\"launchTraceability()\">\n</button>\n\n<button pButton type=\"button\" iconPos=\"left\" label='Générer le journal des cycles de vie des unités archivistiques' (click)=\"launchTraceabilityUnitLfc()\">\n</button>\n\n<button pButton type=\"button\" iconPos=\"left\" label=\"Générer le journal des cycles de vie des groupes d'objets\" (click)=\"launchTraceabilityObjectGroupLfc()\">\n</button>\n\n<button pButton type=\"button\" iconPos=\"left\" label='Générer le journal des offres de stockage' (click)=\"launchTraceabilityStorage()\">\n</button>\n\n<p-growl [(value)]=\"messages\" life=\"2000\"></p-growl>\n<h2>{{message}}</h2>\n"

/***/ }),

/***/ "./src/app/traceability/logbook/logbook.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LogbookComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_platform_browser__ = __webpack_require__("./node_modules/@angular/platform-browser/esm5/platform-browser.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__common_breadcrumb_service__ = __webpack_require__("./src/app/common/breadcrumb.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__common_page_page_component__ = __webpack_require__("./src/app/common/page/page-component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__logbook_service__ = __webpack_require__("./src/app/traceability/logbook/logbook.service.ts");
var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};





var breadcrumb = [
    { label: 'Sécurisation', routerLink: '' },
    { label: 'Journaux des opérations', routerLink: 'traceability/logbook' }
];
var LogbookComponent = (function (_super) {
    __extends(LogbookComponent, _super);
    function LogbookComponent(titleService, breadcrumbService, logbookService) {
        var _this = _super.call(this, 'Sécurisation des opérations', breadcrumb, titleService, breadcrumbService) || this;
        _this.titleService = titleService;
        _this.breadcrumbService = breadcrumbService;
        _this.logbookService = logbookService;
        _this.messages = [];
        return _this;
    }
    LogbookComponent.prototype.pageOnInit = function () {
        return null;
    };
    LogbookComponent.prototype.launchTraceability = function () {
        var _this = this;
        this.logbookService.launchTraceability()
            .subscribe(function () {
            _this.messages = [];
            _this.messages.push({ severity: 'info', summary: 'Sécurisation', detail: 'Succès de l\'opération de sécurisation des journaux' });
        }, function () {
            _this.messages = [];
            _this.messages.push({ severity: 'error', summary: 'Sécurisation', detail: "Echec de l'op\u00E9ration de s\u00E9curisation des journaux" });
        });
    };
    LogbookComponent.prototype.launchTraceabilityUnitLfc = function () {
        var _this = this;
        this.logbookService.launchTraceabilityUnitLfc()
            .subscribe(function () {
            _this.messages = [];
            _this.messages.push({ severity: 'info', summary: 'Sécurisation', detail: 'Succès de l\'opération de sécurisation des cycles de vie des unités archivistiques' });
        }, function () {
            _this.messages = [];
            _this.messages.push({ severity: 'error', summary: 'Sécurisation', detail: "Echec de l'op\u00E9ration de s\u00E9curisation des cycles de vie des unit\u00E9s archivistiques" });
        });
    };
    LogbookComponent.prototype.launchTraceabilityObjectGroupLfc = function () {
        var _this = this;
        this.logbookService.launchTraceabilityObjectGroupLfc()
            .subscribe(function () {
            _this.messages = [];
            _this.messages.push({ severity: 'info', summary: 'Sécurisation', detail: 'Succès de l\'opération de sécurisation des cycles de vie des groupes d\'objets' });
        }, function () {
            _this.messages = [];
            _this.messages.push({ severity: 'error', summary: 'Sécurisation', detail: "Echec de l'op\u00E9ration de s\u00E9curisation des cycles de vie des groupes d'objets" });
        });
    };
    LogbookComponent.prototype.launchTraceabilityStorage = function () {
        var _this = this;
        this.logbookService.launchTraceabilityStorage()
            .subscribe(function () {
            _this.messages = [];
            _this.messages.push({ severity: 'info', summary: 'Sécurisation', detail: "Succ\u00E8s de l'op\u00E9ration de s\u00E9curisation des offres" });
        }, function () {
            _this.messages = [];
            _this.messages.push({ severity: 'error', summary: 'Sécurisation', detail: "Echec de l'op\u00E9ration de s\u00E9curisation des offres" });
        });
    };
    LogbookComponent = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Component"])({
            selector: 'vitam-logbook',
            template: __webpack_require__("./src/app/traceability/logbook/logbook.component.html"),
            styles: [__webpack_require__("./src/app/traceability/logbook/logbook.component.css")]
        }),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__angular_platform_browser__["Title"], __WEBPACK_IMPORTED_MODULE_2__common_breadcrumb_service__["a" /* BreadcrumbService */],
            __WEBPACK_IMPORTED_MODULE_4__logbook_service__["a" /* LogbookService */]])
    ], LogbookComponent);
    return LogbookComponent;
}(__WEBPACK_IMPORTED_MODULE_3__common_page_page_component__["a" /* PageComponent */]));



/***/ }),

/***/ "./src/app/traceability/logbook/logbook.service.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LogbookService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__common_resources_service__ = __webpack_require__("./src/app/common/resources.service.ts");
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};


var LogbookService = (function () {
    function LogbookService(client) {
        this.client = client;
        this.TRACABILITY_OPERATION_API = 'operations/traceability';
        this.TRACABILITY_UNIT_LFC_API = 'lifecycles/units/traceability';
        this.TRACABILITY_OBJECTGROUP_LFC_API = 'lifecycles/objectgroups/traceability';
        this.TRACABILITY_STORAGE_API = 'storages/traceability';
    }
    LogbookService.prototype.launchTraceability = function () {
        return this.client.post(this.TRACABILITY_OPERATION_API, null);
    };
    LogbookService.prototype.launchTraceabilityUnitLfc = function () {
        return this.client.post(this.TRACABILITY_UNIT_LFC_API, null);
    };
    LogbookService.prototype.launchTraceabilityObjectGroupLfc = function () {
        return this.client.post(this.TRACABILITY_OBJECTGROUP_LFC_API, null);
    };
    LogbookService.prototype.launchTraceabilityStorage = function () {
        return this.client.post(this.TRACABILITY_STORAGE_API, null);
    };
    LogbookService = __decorate([
        Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Injectable"])(),
        __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__common_resources_service__["a" /* ResourcesService */]])
    ], LogbookService);
    return LogbookService;
}());



/***/ }),

/***/ "./src/environments/environment.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return environment; });
var environment = {
    production: true
};


/***/ }),

/***/ "./src/main.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_platform_browser_dynamic__ = __webpack_require__("./node_modules/@angular/platform-browser-dynamic/esm5/platform-browser-dynamic.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__app_app_module__ = __webpack_require__("./src/app/app.module.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__environments_environment__ = __webpack_require__("./src/environments/environment.ts");




if (__WEBPACK_IMPORTED_MODULE_3__environments_environment__["a" /* environment */].production) {
    Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["enableProdMode"])();
}
Object(__WEBPACK_IMPORTED_MODULE_1__angular_platform_browser_dynamic__["a" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_2__app_app_module__["a" /* AppModule */]);


/***/ }),

/***/ 0:
/***/ (function(module, exports, __webpack_require__) {

module.exports = __webpack_require__("./src/main.ts");


/***/ })

},[0]);
//# sourceMappingURL=main.bundle.js.map