From 05585ca1753f8b51ba94dc05a7b8d783a51b9165 Mon Sep 17 00:00:00 2001
From: Damien Burel <damien.burel@maarch.org>
Date: Tue, 25 Apr 2017 16:07:09 +0200
Subject: [PATCH] [FEAT] [PROFILE V2] Set applicationName in breadcrumb

---
 apps/maarch_entreprise/initializeJsGlobalConfig.php    |  3 ++-
 .../js/angular/app/profile.component.js                |  9 ++++++---
 .../js/angular/app/profile.component.ts                | 10 +++++++---
 apps/maarch_entreprise/js/angular/main.bundle.min.js   |  2 +-
 4 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/apps/maarch_entreprise/initializeJsGlobalConfig.php b/apps/maarch_entreprise/initializeJsGlobalConfig.php
index e4f2346c220..f0d9d23e6ef 100755
--- a/apps/maarch_entreprise/initializeJsGlobalConfig.php
+++ b/apps/maarch_entreprise/initializeJsGlobalConfig.php
@@ -22,9 +22,10 @@
 $core_tools = new core_tools();
 $core_tools->test_user();
 
-$aJsGlobal = array();
+$aJsGlobal = [];
 $aJsGlobal['coreurl'] = $_SESSION['config']['coreurl'];
 $aJsGlobal['businessappurl'] = $_SESSION['config']['businessappurl'];
+$aJsGlobal['applicationName'] = $_SESSION['config']['applicationname'];
 
 echo json_encode($aJsGlobal);
 
diff --git a/apps/maarch_entreprise/js/angular/app/profile.component.js b/apps/maarch_entreprise/js/angular/app/profile.component.js
index 988f3042908..ab5798f4d7c 100644
--- a/apps/maarch_entreprise/js/angular/app/profile.component.js
+++ b/apps/maarch_entreprise/js/angular/app/profile.component.js
@@ -54,9 +54,6 @@ var ProfileComponent = (function () {
         if ($j('#content h1')[0] && $j('#content h1')[0] != $j('my-app h1')[0]) {
             $j('#content h1')[0].remove();
         }
-        if ($j('#ariane')[0]) {
-            $j('#ariane')[0].innerHTML = "<a href='index.php?reinit=true'>MAARCH Trunk</a> > Profil";
-        }
         if (Prototype.BrowserFeatures.ElementExtensions) {
             //FIX PROTOTYPE CONFLICT
             var pluginsToDisable = ['collapse', 'dropdown', 'modal', 'tooltip', 'popover', 'tab'];
@@ -86,6 +83,11 @@ var ProfileComponent = (function () {
             theme_styles: "Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1"
         });
     };
+    ProfileComponent.prototype.updateBreadcrumb = function (applicationName) {
+        if ($j('#ariane')[0]) {
+            $j('#ariane')[0].innerHTML = "<a href='index.php?reinit=true'>" + applicationName + "</a> > Profil";
+        }
+    };
     ProfileComponent.prototype.ngOnInit = function () {
         var _this = this;
         this.prepareProfile();
@@ -94,6 +96,7 @@ var ProfileComponent = (function () {
             .map(function (res) { return res.json(); })
             .subscribe(function (data) {
             _this.coreUrl = data.coreurl;
+            _this.updateBreadcrumb(data.applicationName);
             _this.http.get(_this.coreUrl + 'rest/user/profile')
                 .map(function (res) { return res.json(); })
                 .subscribe(function (data) {
diff --git a/apps/maarch_entreprise/js/angular/app/profile.component.ts b/apps/maarch_entreprise/js/angular/app/profile.component.ts
index 2025e46b113..c910cdf4f42 100644
--- a/apps/maarch_entreprise/js/angular/app/profile.component.ts
+++ b/apps/maarch_entreprise/js/angular/app/profile.component.ts
@@ -60,9 +60,6 @@ export class ProfileComponent implements OnInit {
         if ($j('#content h1')[0] && $j('#content h1')[0] != $j('my-app h1')[0]) {
             $j('#content h1')[0].remove();
         }
-        if ($j('#ariane')[0]) {
-            $j('#ariane')[0].innerHTML = "<a href='index.php?reinit=true'>MAARCH Trunk</a> > Profil";
-        }
 
         if (Prototype.BrowserFeatures.ElementExtensions) {
             //FIX PROTOTYPE CONFLICT
@@ -97,6 +94,12 @@ export class ProfileComponent implements OnInit {
 
     }
 
+    updateBreadcrumb(applicationName: string) {
+        if ($j('#ariane')[0]) {
+            $j('#ariane')[0].innerHTML = "<a href='index.php?reinit=true'>" + applicationName + "</a> > Profil";
+        }
+    }
+
     ngOnInit(): void {
         this.prepareProfile();
 
@@ -106,6 +109,7 @@ export class ProfileComponent implements OnInit {
             .map(res => res.json())
             .subscribe((data) => {
                 this.coreUrl = data.coreurl;
+                this.updateBreadcrumb(data.applicationName);
                 this.http.get(this.coreUrl + 'rest/user/profile')
                     .map(res => res.json())
                     .subscribe((data) => {
diff --git a/apps/maarch_entreprise/js/angular/main.bundle.min.js b/apps/maarch_entreprise/js/angular/main.bundle.min.js
index 1f9088b6acb..46b9383a817 100644
--- a/apps/maarch_entreprise/js/angular/main.bundle.min.js
+++ b/apps/maarch_entreprise/js/angular/main.bundle.min.js
@@ -1,4 +1,4 @@
-!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.main=t()}}(function(){var t;return function e(t,r,n){function o(s,a){if(!r[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(i)return i(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[s]={exports:{}};t[s][0].call(l.exports,function(e){var r=t[s][1][e];return o(r?r:e)},l,l.exports,e,t,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s<n.length;s++)o(n[s]);return o}({1:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(r,"__esModule",{value:!0});var o=t("@angular/core"),i=function(){function t(){}return t}();i=n([o.Component({selector:"my-app",template:"<router-outlet></router-outlet>"})],i),r.AppComponent=i},{"@angular/core":8}],2:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(r,"__esModule",{value:!0});var o=t("@angular/core"),i=t("@angular/platform-browser"),s=t("@angular/router"),a=t("@angular/http"),u=t("@angular/forms"),c=t("./app.component"),l=t("./profile.component"),p=t("./signature-book.component"),h=function(){function t(){}return t}();h=n([o.NgModule({imports:[i.BrowserModule,u.FormsModule,s.RouterModule.forRoot([{path:"profile",component:l.ProfileComponent},{path:":basketId/signatureBook/:resId",component:p.SignatureBookComponent},{path:"**",redirectTo:"",pathMatch:"full"}],{useHash:!0}),a.HttpModule],declarations:[c.AppComponent,l.ProfileComponent,p.SignatureBookComponent,p.SafeUrlPipe],bootstrap:[c.AppComponent]})],h),r.AppModule=h},{"./app.component":1,"./profile.component":3,"./signature-book.component":4,"@angular/core":8,"@angular/forms":9,"@angular/http":10,"@angular/platform-browser":12,"@angular/router":13}],3:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0};Object.defineProperty(r,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http");t("rxjs/add/operator/map");var a=function(){function t(t,e){var r=this;this.http=t,this.zone=e,this.user={},this.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},this.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},this.mailSignatureModel={selected:0,htmlBody:"",title:""},this.showPassword=!1,this.selectedSignature=-1,this.selectedSignatureLabel="",this.resultInfo="",this.loading=!1,window.angularProfileComponent={componentAfterUpload:function(t){return r.processAfterUpload(t)}}}return t.prototype.prepareProfile=function(){if($j("#inner_content").remove(),$j("#menunav").hide(),$j("#divList").remove(),$j("#magicContactsTable").remove(),$j("#container").width("99%"),$j("#content h1")[0]&&$j("#content h1")[0]!=$j("my-app h1")[0]&&$j("#content h1")[0].remove(),$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>MAARCH Trunk</a> > Profil"),Prototype.BrowserFeatures.ElementExtensions){var t=["collapse","dropdown","modal","tooltip","popover","tab"];disablePrototypeJS("show",t),disablePrototypeJS("hide",t)}tinymce.baseURL="tools/tiny_mce",tinymce.suffix=".min",tinymce.init({selector:"textarea#emailSignature",statusbar:!1,language:"fr_FR",height:"200",plugins:["textcolor bdesk_photo"],menubar:!1,toolbar:"undo | bold italic underline | alignleft aligncenter alignright | bdesk_photo | forecolor",theme_buttons1_add:"fontselect,fontsizeselect",theme_buttons2_add_before:"cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",theme_buttons2_add:"separator,insertdate,inserttime,preview,separator,forecolor,backcolor",theme_buttons3_add_before:"tablecontrols,separator",theme_buttons3_add:"separator,print,separator,ltr,rtl,separator,fullscreen,separator,insertlayer,moveforward,movebackward,absolut",theme_toolbar_align:"left",theme_advanced_toolbar_location:"top",theme_styles:"Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1"})},t.prototype.ngOnInit=function(){var t=this;this.prepareProfile(),this.loading=!0,this.http.get("index.php?display=true&page=initializeJsGlobalConfig").map(function(t){return t.json()}).subscribe(function(e){t.coreUrl=e.coreurl,t.http.get(t.coreUrl+"rest/user/profile").map(function(t){return t.json()}).subscribe(function(e){t.user=e,t.loading=!1})})},t.prototype.processAfterUpload=function(t){var e=this;this.zone.run(function(){return e.resfreshUpload(t)})},t.prototype.resfreshUpload=function(t){this.signatureModel.size<=2e6?(this.signatureModel.base64=t.replace(/^data:.*?;base64,/,""),this.signatureModel.base64ForJs=t):(this.signatureModel.name="",this.signatureModel.size=0,this.signatureModel.type="",this.signatureModel.base64="",this.signatureModel.base64ForJs="",this.resultInfo="Taille maximum de fichier dépassée (2 MB)",$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))},t.prototype.displayPassword=function(){this.showPassword=!this.showPassword},t.prototype.clickOnUploader=function(t){$j("#"+t).click()},t.prototype.exitProfile=function(){location.hash="",location.reload()},t.prototype.uploadSignatureTrigger=function(t){if(t.target.files&&t.target.files[0]){var e=new FileReader;this.signatureModel.name=t.target.files[0].name,this.signatureModel.size=t.target.files[0].size,this.signatureModel.type=t.target.files[0].type,""==this.signatureModel.label&&(this.signatureModel.label=this.signatureModel.name),e.readAsDataURL(t.target.files[0]),e.onload=function(t){window.angularProfileComponent.componentAfterUpload(t.target.result)}}},t.prototype.displaySignatureEditionForm=function(t){this.selectedSignature=t,this.selectedSignatureLabel=this.user.signatures[t].signature_label},t.prototype.changeEmailSignature=function(){var t=$j("#emailSignaturesSelect").prop("selectedIndex");this.mailSignatureModel.selected=t,t>0?(tinymce.get("emailSignature").setContent(this.user.emailSignatures[t-1].html_body),this.mailSignatureModel.title=this.user.emailSignatures[t-1].title):(tinymce.get("emailSignature").setContent(""),this.mailSignatureModel.title="")},t.prototype.updatePassword=function(){var t=this;this.http.put(this.coreUrl+"rest/currentUser/password",this.passwordModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.showPassword=!1,t.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.submitEmailSignature=function(){var t=this;this.mailSignatureModel.htmlBody=tinymce.get("emailSignature").getContent(),this.http.post(this.coreUrl+"rest/currentUser/emailSignature",this.mailSignatureModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.emailSignatures=e.emailSignatures,t.mailSignatureModel={selected:0,htmlBody:"",title:""},tinymce.get("emailSignature").setContent(""),t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.updateEmailSignature=function(){var t=this;this.mailSignatureModel.htmlBody=tinymce.get("emailSignature").getContent();var e=this.user.emailSignatures[this.mailSignatureModel.selected-1].id;this.http.put(this.coreUrl+"rest/currentUser/emailSignature/"+e,this.mailSignatureModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.emailSignatures[t.mailSignatureModel.selected-1].title=e.emailSignature.title,t.user.emailSignatures[t.mailSignatureModel.selected-1].html_body=e.emailSignature.html_body,t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.deleteEmailSignature=function(){var t=this,e=confirm("Voulez-vous vraiment supprimer la signature de mail ?");if(e){var r=this.user.emailSignatures[this.mailSignatureModel.selected-1].id;this.http["delete"](this.coreUrl+"rest/currentUser/emailSignature/"+r).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.emailSignatures=e.emailSignatures,t.mailSignatureModel={selected:0,htmlBody:"",title:""},tinymce.get("emailSignature").setContent(""),t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})}},t.prototype.submitSignature=function(){var t=this;this.http.post(this.coreUrl+"rest/currentUser/signature",this.signatureModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.signatures=e.signatures,t.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.updateSignature=function(){var t=this,e=this.user.signatures[this.selectedSignature].id;this.http.put(this.coreUrl+"rest/currentUser/signature/"+e,{label:this.selectedSignatureLabel}).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.signatures[t.selectedSignature].signature_label=e.signature.signature_label,t.selectedSignature=-1,t.selectedSignatureLabel="",t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.deleteSignature=function(t){var e=this,r=confirm("Voulez-vous vraiment supprimer la signature ?");r&&this.http["delete"](this.coreUrl+"rest/currentUser/signature/"+t).map(function(t){return t.json()}).subscribe(function(t){t.errors?(e.resultInfo=t.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(e.user.signatures=t.signatures,e.resultInfo=t.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.onSubmit=function(){var t=this;this.http.put(this.coreUrl+"rest/user/profile",this.user).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))},function(t){alert(t.statusText)})},t.prototype.absenceModal=function(){createModal(this.user.absence,"modal_redirect","auto","950px"),autocomplete(15,"index.php?display=true&module=basket&page=autocomplete_users_list")},t}();a=n([i.Component({templateUrl:"js/angular/app/Views/profile.html",styleUrls:["css/bootstrap.min.css","js/angular/app/Css/profile.css"]}),o("design:paramtypes",[s.Http,i.NgZone])],a),r.ProfileComponent=a},{"@angular/core":8,"@angular/http":10,"rxjs/add/operator/map":24}],4:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0};Object.defineProperty(r,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http"),a=t("@angular/platform-browser"),u=t("@angular/router");t("rxjs/add/operator/map");var c=function(){function t(t){this.sanitizer=t}return t.prototype.transform=function(t){return this.sanitizer.bypassSecurityTrustResourceUrl(t)},t}();c=n([i.Pipe({name:"safeUrl"}),o("design:paramtypes",[a.DomSanitizer])],c),r.SafeUrlPipe=c;var l=function(){function t(t,e,r,n){var o=this;this.http=t,this.route=e,this.router=r,this.zone=n,this.signatureBook={currentAction:{},consigne:"",documents:[],attachments:[],resList:[]},this.rightSelectedThumbnail=0,this.leftSelectedThumbnail=0,this.rightViewerLink="",this.leftViewerLink="",this.headerTab=1,this.showTopRightPanel=!1,this.showTopLeftPanel=!1,this.showResLeftPanel=!0,this.showLeftPanel=!0,this.showRightPanel=!0,this.showAttachmentPanel=!1,this.showSignaturesPanel=!1,this.loading=!1,this.loadingSign=!1,this.leftContentWidth="44%",this.rightContentWidth="44%",this.notesViewerLink="",this.visaViewerLink="",this.histViewerLink="",this.linksViewerLink="",this.attachmentsViewerLink="",window.angularSignatureBookComponent={componentAfterAttach:function(t){return o.processAfterAttach(t)},componentAfterAction:function(){return o.processAfterAction()},componentAfterNotes:function(){return o.processAfterNotes()}}}return t.prototype.prepareSignatureBook=function(){$j("#inner_content").remove(),$j("#header").remove(),$j("#viewBasketsTitle").remove(),$j("#homePageWelcomeTitle").remove(),$j("#footer").remove(),$j("#container").width("99%")},t.prototype.ngOnInit=function(){var t=this;this.prepareSignatureBook(),this.loading=!0,this.route.params.subscribe(function(e){t.resId=+e.resId,t.basketId=e.basketId,lockDocument(t.resId),setInterval(function(){lockDocument(t.resId)},5e4),t.http.get("index.php?display=true&page=initializeJsGlobalConfig").map(function(t){return t.json()}).subscribe(function(e){t.coreUrl=e.coreurl,t.http.get(t.coreUrl+"rest/"+t.basketId+"/signatureBook/"+t.resId).map(function(t){return t.json()}).subscribe(function(e){return e.error?(location.hash="",void(location.search="")):(t.signatureBook=e,t.headerTab=1,t.leftSelectedThumbnail=0,t.rightSelectedThumbnail=0,t.leftViewerLink="",t.rightViewerLink="",t.showLeftPanel=!0,t.showRightPanel=!0,t.showResLeftPanel=!0,t.showTopLeftPanel=!1,t.showTopRightPanel=!1,t.showAttachmentPanel=!1,t.notesViewerLink="index.php?display=true&module=notes&page=notes&identifier="+t.resId+"&origin=document&coll_id=letterbox_coll&load&size=full",t.visaViewerLink="index.php?display=true&page=show_visa_tab&module=visa&resId="+t.resId+"&collId=letterbox_coll&visaStep=true",t.histViewerLink="index.php?display=true&page=show_history_tab&resId="+t.resId+"&collId=letterbox_coll",t.linksViewerLink="index.php?display=true&page=show_links_tab&id="+t.resId,t.attachmentsViewerLink="index.php?display=true&module=attachments&page=frame_list_attachments&resId="+t.resId+"&noModification=true&template_selected=documents_list_attachments_simple&load&attach_type_exclude=converted_pdf,print_folder",t.leftContentWidth="44%",t.rightContentWidth="44%",t.signatureBook.documents[0]&&(t.leftViewerLink=t.signatureBook.documents[0].viewerLink,"outgoing"==t.signatureBook.documents[0].category_id&&(t.headerTab=3)),t.signatureBook.attachments[0]&&(t.rightViewerLink=t.signatureBook.attachments[0].viewerLink),t.displayPanel("RESLEFT"),t.loading=!1,void setTimeout(function(){$j("#resListContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j("#rightPanelContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j(".pjSign").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j("#resListContent").scrollTop(0),$j("#resListContent").scrollTop($j(".resListContentFrameSelected").offset().top-42),$j("#obsVersion").tooltipster({interactive:!0})},0))})})})},t.prototype.ngOnDestroy=function(){delete window.angularSignatureBookComponent},t.prototype.processAfterAttach=function(t){var e=this;this.zone.run(function(){return e.refreshAttachments(t)})},t.prototype.processAfterNotes=function(){var t=this;this.zone.run(function(){return t.refreshNotes()})},t.prototype.processAfterAction=function(){for(var t=this,e=-1,r=this.signatureBook.resList.length,n=0;r>n;n++)this.signatureBook.resList[n].res_id==this.resId&&(this.signatureBook.resList[n+1]?e=this.signatureBook.resList[n+1].res_id:n>0&&(e=this.signatureBook.resList[n-1].res_id));e>=0?($j("#send").removeAttr("disabled"),$j("#send").css("opacity","1"),this.zone.run(function(){return t.changeLocation(e,"action")})):this.zone.run(function(){return t.backToBasket()})},t.prototype.changeSignatureBookLeftContent=function(t){this.headerTab=t,this.showTopLeftPanel=!1},t.prototype.changeRightViewer=function(t){this.showAttachmentPanel=!1,this.rightViewerLink=this.signatureBook.attachments[t].viewerLink,this.rightSelectedThumbnail=t},t.prototype.changeLeftViewer=function(t){this.leftViewerLink=this.signatureBook.documents[t].viewerLink,this.leftSelectedThumbnail=t},t.prototype.displayPanel=function(t){"TOPRIGHT"==t?this.showTopRightPanel=!this.showTopRightPanel:"TOPLEFT"==t?this.showTopLeftPanel=!this.showTopLeftPanel:"LEFT"==t?(this.showLeftPanel=!this.showLeftPanel,this.showResLeftPanel=!1,this.showLeftPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#hideLeftContent").css("background","#CEE9F1")):(this.rightContentWidth="96%",$j("#hideLeftContent").css("background","none"))):"RESLEFT"==t?(this.showResLeftPanel=!this.showResLeftPanel,this.showResLeftPanel?(this.rightContentWidth="44%",this.leftContentWidth="44%"):(this.rightContentWidth="48%",this.leftContentWidth="48%")):"MIDDLE"==t&&(this.showRightPanel=!this.showRightPanel,this.showResLeftPanel=!1,this.showRightPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#contentLeft").css("border-right","solid 1px")):(this.leftContentWidth="96%",$j("#contentLeft").css("border-right","none")))},t.prototype.displayAttachmentPanel=function(){this.showAttachmentPanel=!this.showAttachmentPanel,this.rightSelectedThumbnail=0,this.signatureBook.attachments[0]&&(this.rightViewerLink=this.signatureBook.attachments[0].viewerLink)},t.prototype.refreshAttachments=function(t){var e=this;"rightContent"==t?this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/incomingMailAttachments").map(function(t){return t.json()}).subscribe(function(t){e.signatureBook.documents=t}):this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/attachments").map(function(t){return t.json()}).subscribe(function(r){var n=0;if("add"==t){var o=!1;r.forEach(function(t,r){o||e.signatureBook.attachments[r]&&t.res_id==e.signatureBook.attachments[r].res_id||(n=r,o=!0)})}else if("edit"==t){var i=e.signatureBook.attachments[e.rightSelectedThumbnail].res_id;r.forEach(function(t,e){t.res_id==i&&(n=e)})}e.signatureBook.attachments=r,"add"==t||"edit"==t?e.changeRightViewer(n):"del"==t&&e.changeRightViewer(0)})},t.prototype.addAttachmentIframe=function(){showAttachmentsForm("index.php?display=true&module=attachments&page=attachments_content&docId="+this.resId)},t.prototype.editAttachmentIframe=function(t){if(t.canModify&&"SIGN"!=t.status){var e;0==t.res_id?e=t.res_id_version:0==t.res_id_version&&(e=t.res_id),modifyAttachmentsForm("index.php?display=true&module=attachments&page=attachments_content&id="+e+"&relation="+t.relation+"&docId="+this.resId,"98%","auto")}},t.prototype.delAttachment=function(t){var e=this;if(t.canDelete){var r=confirm("Voulez-vous vraiment supprimer la pièce jointe ?");if(r){var n;0==t.res_id?n=t.res_id_version:0==t.res_id_version&&(n=t.res_id),this.http.get("index.php?display=true&module=attachments&page=del_attachment&id="+n+"&relation="+t.relation+"&rest=true").subscribe(function(){e.refreshAttachments("del")})}}},t.prototype.refreshNotes=function(){var t=this;this.http.get(this.coreUrl+"rest/res/"+this.resId+"/notes/count").map(function(t){return t.json()}).subscribe(function(e){t.signatureBook.nbNotes=e})},t.prototype.signFile=function(t,e){var r=this;if(!this.loadingSign&&this.signatureBook.canSign){this.loadingSign=!0;var n="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&resIdMaster="+this.resId+"&signatureId="+e.id;0==t.res_id?n+="outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?"&isVersion&isOutgoing&id="+t.res_id_version:"&isVersion&id="+t.res_id_version:0==t.res_id_version&&(n+="outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?"&isOutgoing&id="+t.res_id:"&id="+t.res_id),this.http.get(n,e).map(function(t){return t.json()}).subscribe(function(t){if(0==t.status){r.rightViewerLink="index.php?display=true&module=attachments&page=view_attachment&res_id_master="+r.resId+"&id="+t.new_id+"&isVersion=false",r.signatureBook.attachments[r.rightSelectedThumbnail].viewerLink=r.rightViewerLink,r.signatureBook.attachments[r.rightSelectedThumbnail].status="SIGN",r.signatureBook.attachments[r.rightSelectedThumbnail].idToDl=t.new_id;var e=!0;r.signatureBook.attachments.forEach(function(t){t.sign&&"SIGN"!=t.status&&(e=!1)}),r.signatureBook.resList[r.signatureBook.resListIndex].allSigned=e}else alert(t.error);r.showSignaturesPanel=!1,r.loadingSign=!1})}},t.prototype.unsignFile=function(t){var e,r,n,o=this;0==t.res_id?(r=t.res_id_version,e="res_version_attachments",n="true"):0==t.res_id_version&&(r=t.res_id,e="res_attachments",n="false"),this.http.put(this.coreUrl+"rest/"+e+"/"+r+"/unsign",{},{}).map(function(t){return t.json()}).subscribe(function(e){"OK"==e.status?(o.rightViewerLink="index.php?display=true&module=attachments&page=view_attachment&res_id_master="+o.resId+"&id="+t.viewerNoSignId+"&isVersion="+n,o.signatureBook.attachments[o.rightSelectedThumbnail].viewerLink=o.rightViewerLink,o.signatureBook.attachments[o.rightSelectedThumbnail].status="A_TRA",o.signatureBook.attachments[o.rightSelectedThumbnail].idToDl=r,o.signatureBook.resList[o.signatureBook.resListIndex].allSigned=!1):alert(e.error)})},t.prototype.backToBasket=function(){unlockDocument(this.resId),location.hash="",location.reload()},t.prototype.backToDetails=function(){unlockDocument(this.resId),location.hash="",location.search="?page=details&dir=indexing_searching&id="+this.resId},t.prototype.changeLocation=function(t,e){var r=this;this.http.get(this.coreUrl+"rest/res/"+t+"/lock").map(function(t){return t.json()}).subscribe(function(n){if(n.lock)"view"==e?alert("Courrier verouillé par "+n.lockBy):"action"==e&&(alert("Courrier suivant verouillé par "+n.lockBy),r.backToBasket());else{var o="/"+r.basketId+"/signatureBook/"+t;r.router.navigate([o])}})},t.prototype.validForm=function(){""!=$j("#signatureBookActions option:selected")[0].value?(unlockDocument(this.resId),valid_action_form("empty","index.php?display=true&page=manage_action&module=core",this.signatureBook.currentAction.id,this.resId,"res_letterbox","null","letterbox_coll","page",!1,[$j("#signatureBookActions option:selected")[0].value])):alert("Aucune action choisie")},t}();l=n([i.Component({templateUrl:"js/angular/app/Views/signatureBook.html"}),o("design:paramtypes",[s.Http,u.ActivatedRoute,u.Router,i.NgZone])],l),r.SignatureBookComponent=l},{"@angular/core":8,"@angular/http":10,"@angular/platform-browser":12,"@angular/router":13,"rxjs/add/operator/map":24}],5:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("@angular/platform-browser-dynamic"),o=t("@angular/core"),i=t("./app/app.module");o.enableProdMode(),n.platformBrowserDynamic().bootstrapModule(i.AppModule)},{"./app/app.module":2,"@angular/core":8,"@angular/platform-browser-dynamic":11}],6:[function(e,r,n){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/core"],i):i((o.ng=o.ng||{},o.ng.common=o.ng.common||{}),o.ng.core)}(this,function(t,e){"use strict";function r(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}function n(t){return t.replace(/\/index.html$/,"")}function o(t,e,r){var n="="+t;if(e.indexOf(n)>-1)return n;if(n=r.getPluralCategory(t),e.indexOf(n)>-1)return n;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}function i(t,e){"string"==typeof e&&(e=parseInt(e,10));var r=e,n=r.toString().replace(/^[^.]*\.?/,""),o=Math.floor(Math.abs(r)),i=n.length,s=parseInt(n,10),a=parseInt(r.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0,u=t.split("-")[0].toLowerCase();switch(u){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===r?H.One:H.Other;case"agq":case"bas":case"cu":case"dav":case"dje":case"dua":case"dyo":case"ebu":case"ewo":case"guz":case"kam":case"khq":case"ki":case"kln":case"kok":case"ksf":case"lrc":case"lu":case"luo":case"luy":case"mer":case"mfe":case"mgh":case"mua":case"mzn":case"nmg":case"nus":case"qu":case"rn":case"rw":case"sbp":case"twq":case"vai":case"yav":case"yue":case"zgh":case"ak":case"ln":case"mg":case"pa":case"ti":return r===Math.floor(r)&&r>=0&&1>=r?H.One:H.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===o||1===r?H.One:H.Other;case"ar":return 0===r?H.Zero:1===r?H.One:2===r?H.Two:r%100===Math.floor(r%100)&&r%100>=3&&10>=r%100?H.Few:r%100===Math.floor(r%100)&&r%100>=11&&99>=r%100?H.Many:H.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===o&&0===i?H.One:H.Other;case"be":return r%10===1&&r%100!==11?H.One:r%10===Math.floor(r%10)&&r%10>=2&&4>=r%10&&!(r%100>=12&&14>=r%100)?H.Few:r%10===0||r%10===Math.floor(r%10)&&r%10>=5&&9>=r%10||r%100===Math.floor(r%100)&&r%100>=11&&14>=r%100?H.Many:H.Other;case"br":return r%10===1&&r%100!==11&&r%100!==71&&r%100!==91?H.One:r%10===2&&r%100!==12&&r%100!==72&&r%100!==92?H.Two:r%10===Math.floor(r%10)&&(r%10>=3&&4>=r%10||r%10===9)&&!(r%100>=10&&19>=r%100||r%100>=70&&79>=r%100||r%100>=90&&99>=r%100)?H.Few:0!==r&&r%1e6===0?H.Many:H.Other;case"bs":case"hr":case"sr":return 0===i&&o%10===1&&o%100!==11||s%10===1&&s%100!==11?H.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&4>=o%10&&!(o%100>=12&&14>=o%100)||s%10===Math.floor(s%10)&&s%10>=2&&4>=s%10&&!(s%100>=12&&14>=s%100)?H.Few:H.Other;case"cs":case"sk":return 1===o&&0===i?H.One:o===Math.floor(o)&&o>=2&&4>=o&&0===i?H.Few:0!==i?H.Many:H.Other;case"cy":return 0===r?H.Zero:1===r?H.One:2===r?H.Two:3===r?H.Few:6===r?H.Many:H.Other;case"da":return 1===r||0!==a&&(0===o||1===o)?H.One:H.Other;case"dsb":case"hsb":return 0===i&&o%100===1||s%100===1?H.One:0===i&&o%100===2||s%100===2?H.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&4>=o%100||s%100===Math.floor(s%100)&&s%100>=3&&4>=s%100?H.Few:H.Other;case"ff":case"fr":case"hy":case"kab":return 0===o||1===o?H.One:H.Other;case"fil":return 0===i&&(1===o||2===o||3===o)||0===i&&o%10!==4&&o%10!==6&&o%10!==9||0!==i&&s%10!==4&&s%10!==6&&s%10!==9?H.One:H.Other;case"ga":return 1===r?H.One:2===r?H.Two:r===Math.floor(r)&&r>=3&&6>=r?H.Few:r===Math.floor(r)&&r>=7&&10>=r?H.Many:H.Other;case"gd":return 1===r||11===r?H.One:2===r||12===r?H.Two:r===Math.floor(r)&&(r>=3&&10>=r||r>=13&&19>=r)?H.Few:H.Other;case"gv":return 0===i&&o%10===1?H.One:0===i&&o%10===2?H.Two:0!==i||o%100!==0&&o%100!==20&&o%100!==40&&o%100!==60&&o%100!==80?0!==i?H.Many:H.Other:H.Few;case"he":return 1===o&&0===i?H.One:2===o&&0===i?H.Two:0!==i||r>=0&&10>=r||r%10!==0?H.Other:H.Many;case"is":return 0===a&&o%10===1&&o%100!==11||0!==a?H.One:H.Other;case"ksh":return 0===r?H.Zero:1===r?H.One:H.Other;case"kw":case"naq":case"se":case"smn":return 1===r?H.One:2===r?H.Two:H.Other;case"lag":return 0===r?H.Zero:0!==o&&1!==o||0===r?H.Other:H.One;case"lt":return r%10!==1||r%100>=11&&19>=r%100?r%10===Math.floor(r%10)&&r%10>=2&&9>=r%10&&!(r%100>=11&&19>=r%100)?H.Few:0!==s?H.Many:H.Other:H.One;case"lv":case"prg":return r%10===0||r%100===Math.floor(r%100)&&r%100>=11&&19>=r%100||2===i&&s%100===Math.floor(s%100)&&s%100>=11&&19>=s%100?H.Zero:r%10===1&&r%100!==11||2===i&&s%10===1&&s%100!==11||2!==i&&s%10===1?H.One:H.Other;case"mk":return 0===i&&o%10===1||s%10===1?H.One:H.Other;case"mt":return 1===r?H.One:0===r||r%100===Math.floor(r%100)&&r%100>=2&&10>=r%100?H.Few:r%100===Math.floor(r%100)&&r%100>=11&&19>=r%100?H.Many:H.Other;case"pl":return 1===o&&0===i?H.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&4>=o%10&&!(o%100>=12&&14>=o%100)?H.Few:0===i&&1!==o&&o%10===Math.floor(o%10)&&o%10>=0&&1>=o%10||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&9>=o%10||0===i&&o%100===Math.floor(o%100)&&o%100>=12&&14>=o%100?H.Many:H.Other;case"pt":return r===Math.floor(r)&&r>=0&&2>=r&&2!==r?H.One:H.Other;case"ro":return 1===o&&0===i?H.One:0!==i||0===r||1!==r&&r%100===Math.floor(r%100)&&r%100>=1&&19>=r%100?H.Few:H.Other;case"ru":case"uk":return 0===i&&o%10===1&&o%100!==11?H.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&4>=o%10&&!(o%100>=12&&14>=o%100)?H.Few:0===i&&o%10===0||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&9>=o%10||0===i&&o%100===Math.floor(o%100)&&o%100>=11&&14>=o%100?H.Many:H.Other;
+!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.main=t()}}(function(){var t;return function e(t,r,n){function o(s,a){if(!r[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(i)return i(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[s]={exports:{}};t[s][0].call(l.exports,function(e){var r=t[s][1][e];return o(r?r:e)},l,l.exports,e,t,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s<n.length;s++)o(n[s]);return o}({1:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(r,"__esModule",{value:!0});var o=t("@angular/core"),i=function(){function t(){}return t}();i=n([o.Component({selector:"my-app",template:"<router-outlet></router-outlet>"})],i),r.AppComponent=i},{"@angular/core":8}],2:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(r,"__esModule",{value:!0});var o=t("@angular/core"),i=t("@angular/platform-browser"),s=t("@angular/router"),a=t("@angular/http"),u=t("@angular/forms"),c=t("./app.component"),l=t("./profile.component"),p=t("./signature-book.component"),h=function(){function t(){}return t}();h=n([o.NgModule({imports:[i.BrowserModule,u.FormsModule,s.RouterModule.forRoot([{path:"profile",component:l.ProfileComponent},{path:":basketId/signatureBook/:resId",component:p.SignatureBookComponent},{path:"**",redirectTo:"",pathMatch:"full"}],{useHash:!0}),a.HttpModule],declarations:[c.AppComponent,l.ProfileComponent,p.SignatureBookComponent,p.SafeUrlPipe],bootstrap:[c.AppComponent]})],h),r.AppModule=h},{"./app.component":1,"./profile.component":3,"./signature-book.component":4,"@angular/core":8,"@angular/forms":9,"@angular/http":10,"@angular/platform-browser":12,"@angular/router":13}],3:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0};Object.defineProperty(r,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http");t("rxjs/add/operator/map");var a=function(){function t(t,e){var r=this;this.http=t,this.zone=e,this.user={},this.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},this.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},this.mailSignatureModel={selected:0,htmlBody:"",title:""},this.showPassword=!1,this.selectedSignature=-1,this.selectedSignatureLabel="",this.resultInfo="",this.loading=!1,window.angularProfileComponent={componentAfterUpload:function(t){return r.processAfterUpload(t)}}}return t.prototype.prepareProfile=function(){if($j("#inner_content").remove(),$j("#menunav").hide(),$j("#divList").remove(),$j("#magicContactsTable").remove(),$j("#container").width("99%"),$j("#content h1")[0]&&$j("#content h1")[0]!=$j("my-app h1")[0]&&$j("#content h1")[0].remove(),Prototype.BrowserFeatures.ElementExtensions){var t=["collapse","dropdown","modal","tooltip","popover","tab"];disablePrototypeJS("show",t),disablePrototypeJS("hide",t)}tinymce.baseURL="tools/tiny_mce",tinymce.suffix=".min",tinymce.init({selector:"textarea#emailSignature",statusbar:!1,language:"fr_FR",height:"200",plugins:["textcolor bdesk_photo"],menubar:!1,toolbar:"undo | bold italic underline | alignleft aligncenter alignright | bdesk_photo | forecolor",theme_buttons1_add:"fontselect,fontsizeselect",theme_buttons2_add_before:"cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",theme_buttons2_add:"separator,insertdate,inserttime,preview,separator,forecolor,backcolor",theme_buttons3_add_before:"tablecontrols,separator",theme_buttons3_add:"separator,print,separator,ltr,rtl,separator,fullscreen,separator,insertlayer,moveforward,movebackward,absolut",theme_toolbar_align:"left",theme_advanced_toolbar_location:"top",theme_styles:"Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1"})},t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > Profil")},t.prototype.ngOnInit=function(){var t=this;this.prepareProfile(),this.loading=!0,this.http.get("index.php?display=true&page=initializeJsGlobalConfig").map(function(t){return t.json()}).subscribe(function(e){t.coreUrl=e.coreurl,t.updateBreadcrumb(e.applicationName),t.http.get(t.coreUrl+"rest/user/profile").map(function(t){return t.json()}).subscribe(function(e){t.user=e,t.loading=!1})})},t.prototype.processAfterUpload=function(t){var e=this;this.zone.run(function(){return e.resfreshUpload(t)})},t.prototype.resfreshUpload=function(t){this.signatureModel.size<=2e6?(this.signatureModel.base64=t.replace(/^data:.*?;base64,/,""),this.signatureModel.base64ForJs=t):(this.signatureModel.name="",this.signatureModel.size=0,this.signatureModel.type="",this.signatureModel.base64="",this.signatureModel.base64ForJs="",this.resultInfo="Taille maximum de fichier dépassée (2 MB)",$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))},t.prototype.displayPassword=function(){this.showPassword=!this.showPassword},t.prototype.clickOnUploader=function(t){$j("#"+t).click()},t.prototype.exitProfile=function(){location.hash="",location.reload()},t.prototype.uploadSignatureTrigger=function(t){if(t.target.files&&t.target.files[0]){var e=new FileReader;this.signatureModel.name=t.target.files[0].name,this.signatureModel.size=t.target.files[0].size,this.signatureModel.type=t.target.files[0].type,""==this.signatureModel.label&&(this.signatureModel.label=this.signatureModel.name),e.readAsDataURL(t.target.files[0]),e.onload=function(t){window.angularProfileComponent.componentAfterUpload(t.target.result)}}},t.prototype.displaySignatureEditionForm=function(t){this.selectedSignature=t,this.selectedSignatureLabel=this.user.signatures[t].signature_label},t.prototype.changeEmailSignature=function(){var t=$j("#emailSignaturesSelect").prop("selectedIndex");this.mailSignatureModel.selected=t,t>0?(tinymce.get("emailSignature").setContent(this.user.emailSignatures[t-1].html_body),this.mailSignatureModel.title=this.user.emailSignatures[t-1].title):(tinymce.get("emailSignature").setContent(""),this.mailSignatureModel.title="")},t.prototype.updatePassword=function(){var t=this;this.http.put(this.coreUrl+"rest/currentUser/password",this.passwordModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.showPassword=!1,t.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.submitEmailSignature=function(){var t=this;this.mailSignatureModel.htmlBody=tinymce.get("emailSignature").getContent(),this.http.post(this.coreUrl+"rest/currentUser/emailSignature",this.mailSignatureModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.emailSignatures=e.emailSignatures,t.mailSignatureModel={selected:0,htmlBody:"",title:""},tinymce.get("emailSignature").setContent(""),t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.updateEmailSignature=function(){var t=this;this.mailSignatureModel.htmlBody=tinymce.get("emailSignature").getContent();var e=this.user.emailSignatures[this.mailSignatureModel.selected-1].id;this.http.put(this.coreUrl+"rest/currentUser/emailSignature/"+e,this.mailSignatureModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.emailSignatures[t.mailSignatureModel.selected-1].title=e.emailSignature.title,t.user.emailSignatures[t.mailSignatureModel.selected-1].html_body=e.emailSignature.html_body,t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.deleteEmailSignature=function(){var t=this,e=confirm("Voulez-vous vraiment supprimer la signature de mail ?");if(e){var r=this.user.emailSignatures[this.mailSignatureModel.selected-1].id;this.http["delete"](this.coreUrl+"rest/currentUser/emailSignature/"+r).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.emailSignatures=e.emailSignatures,t.mailSignatureModel={selected:0,htmlBody:"",title:""},tinymce.get("emailSignature").setContent(""),t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})}},t.prototype.submitSignature=function(){var t=this;this.http.post(this.coreUrl+"rest/currentUser/signature",this.signatureModel).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.signatures=e.signatures,t.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.updateSignature=function(){var t=this,e=this.user.signatures[this.selectedSignature].id;this.http.put(this.coreUrl+"rest/currentUser/signature/"+e,{label:this.selectedSignatureLabel}).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.user.signatures[t.selectedSignature].signature_label=e.signature.signature_label,t.selectedSignature=-1,t.selectedSignatureLabel="",t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.deleteSignature=function(t){var e=this,r=confirm("Voulez-vous vraiment supprimer la signature ?");r&&this.http["delete"](this.coreUrl+"rest/currentUser/signature/"+t).map(function(t){return t.json()}).subscribe(function(t){t.errors?(e.resultInfo=t.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(e.user.signatures=t.signatures,e.resultInfo=t.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))})},t.prototype.onSubmit=function(){var t=this;this.http.put(this.coreUrl+"rest/user/profile",this.user).map(function(t){return t.json()}).subscribe(function(e){e.errors?(t.resultInfo=e.errors,$j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.resultInfo=e.success,$j("#resultInfo").removeClass().addClass("alert alert-success alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)}))},function(t){alert(t.statusText)})},t.prototype.absenceModal=function(){createModal(this.user.absence,"modal_redirect","auto","950px"),autocomplete(15,"index.php?display=true&module=basket&page=autocomplete_users_list")},t}();a=n([i.Component({templateUrl:"js/angular/app/Views/profile.html",styleUrls:["css/bootstrap.min.css","js/angular/app/Css/profile.css"]}),o("design:paramtypes",[s.Http,i.NgZone])],a),r.ProfileComponent=a},{"@angular/core":8,"@angular/http":10,"rxjs/add/operator/map":24}],4:[function(t,e,r){"use strict";var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=3>i?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(3>i?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s},o=this&&this.__metadata||function(t,e){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(t,e):void 0};Object.defineProperty(r,"__esModule",{value:!0});var i=t("@angular/core"),s=t("@angular/http"),a=t("@angular/platform-browser"),u=t("@angular/router");t("rxjs/add/operator/map");var c=function(){function t(t){this.sanitizer=t}return t.prototype.transform=function(t){return this.sanitizer.bypassSecurityTrustResourceUrl(t)},t}();c=n([i.Pipe({name:"safeUrl"}),o("design:paramtypes",[a.DomSanitizer])],c),r.SafeUrlPipe=c;var l=function(){function t(t,e,r,n){var o=this;this.http=t,this.route=e,this.router=r,this.zone=n,this.signatureBook={currentAction:{},consigne:"",documents:[],attachments:[],resList:[]},this.rightSelectedThumbnail=0,this.leftSelectedThumbnail=0,this.rightViewerLink="",this.leftViewerLink="",this.headerTab=1,this.showTopRightPanel=!1,this.showTopLeftPanel=!1,this.showResLeftPanel=!0,this.showLeftPanel=!0,this.showRightPanel=!0,this.showAttachmentPanel=!1,this.showSignaturesPanel=!1,this.loading=!1,this.loadingSign=!1,this.leftContentWidth="44%",this.rightContentWidth="44%",this.notesViewerLink="",this.visaViewerLink="",this.histViewerLink="",this.linksViewerLink="",this.attachmentsViewerLink="",window.angularSignatureBookComponent={componentAfterAttach:function(t){return o.processAfterAttach(t)},componentAfterAction:function(){return o.processAfterAction()},componentAfterNotes:function(){return o.processAfterNotes()}}}return t.prototype.prepareSignatureBook=function(){$j("#inner_content").remove(),$j("#header").remove(),$j("#viewBasketsTitle").remove(),$j("#homePageWelcomeTitle").remove(),$j("#footer").remove(),$j("#container").width("99%")},t.prototype.ngOnInit=function(){var t=this;this.prepareSignatureBook(),this.loading=!0,this.route.params.subscribe(function(e){t.resId=+e.resId,t.basketId=e.basketId,lockDocument(t.resId),setInterval(function(){lockDocument(t.resId)},5e4),t.http.get("index.php?display=true&page=initializeJsGlobalConfig").map(function(t){return t.json()}).subscribe(function(e){t.coreUrl=e.coreurl,t.http.get(t.coreUrl+"rest/"+t.basketId+"/signatureBook/"+t.resId).map(function(t){return t.json()}).subscribe(function(e){return e.error?(location.hash="",void(location.search="")):(t.signatureBook=e,t.headerTab=1,t.leftSelectedThumbnail=0,t.rightSelectedThumbnail=0,t.leftViewerLink="",t.rightViewerLink="",t.showLeftPanel=!0,t.showRightPanel=!0,t.showResLeftPanel=!0,t.showTopLeftPanel=!1,t.showTopRightPanel=!1,t.showAttachmentPanel=!1,t.notesViewerLink="index.php?display=true&module=notes&page=notes&identifier="+t.resId+"&origin=document&coll_id=letterbox_coll&load&size=full",t.visaViewerLink="index.php?display=true&page=show_visa_tab&module=visa&resId="+t.resId+"&collId=letterbox_coll&visaStep=true",t.histViewerLink="index.php?display=true&page=show_history_tab&resId="+t.resId+"&collId=letterbox_coll",t.linksViewerLink="index.php?display=true&page=show_links_tab&id="+t.resId,t.attachmentsViewerLink="index.php?display=true&module=attachments&page=frame_list_attachments&resId="+t.resId+"&noModification=true&template_selected=documents_list_attachments_simple&load&attach_type_exclude=converted_pdf,print_folder",t.leftContentWidth="44%",t.rightContentWidth="44%",t.signatureBook.documents[0]&&(t.leftViewerLink=t.signatureBook.documents[0].viewerLink,"outgoing"==t.signatureBook.documents[0].category_id&&(t.headerTab=3)),t.signatureBook.attachments[0]&&(t.rightViewerLink=t.signatureBook.attachments[0].viewerLink),t.displayPanel("RESLEFT"),t.loading=!1,void setTimeout(function(){$j("#resListContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j("#rightPanelContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j(".pjSign").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j("#resListContent").scrollTop(0),$j("#resListContent").scrollTop($j(".resListContentFrameSelected").offset().top-42),$j("#obsVersion").tooltipster({interactive:!0})},0))})})})},t.prototype.ngOnDestroy=function(){delete window.angularSignatureBookComponent},t.prototype.processAfterAttach=function(t){var e=this;this.zone.run(function(){return e.refreshAttachments(t)})},t.prototype.processAfterNotes=function(){var t=this;this.zone.run(function(){return t.refreshNotes()})},t.prototype.processAfterAction=function(){for(var t=this,e=-1,r=this.signatureBook.resList.length,n=0;r>n;n++)this.signatureBook.resList[n].res_id==this.resId&&(this.signatureBook.resList[n+1]?e=this.signatureBook.resList[n+1].res_id:n>0&&(e=this.signatureBook.resList[n-1].res_id));e>=0?($j("#send").removeAttr("disabled"),$j("#send").css("opacity","1"),this.zone.run(function(){return t.changeLocation(e,"action")})):this.zone.run(function(){return t.backToBasket()})},t.prototype.changeSignatureBookLeftContent=function(t){this.headerTab=t,this.showTopLeftPanel=!1},t.prototype.changeRightViewer=function(t){this.showAttachmentPanel=!1,this.rightViewerLink=this.signatureBook.attachments[t].viewerLink,this.rightSelectedThumbnail=t},t.prototype.changeLeftViewer=function(t){this.leftViewerLink=this.signatureBook.documents[t].viewerLink,this.leftSelectedThumbnail=t},t.prototype.displayPanel=function(t){"TOPRIGHT"==t?this.showTopRightPanel=!this.showTopRightPanel:"TOPLEFT"==t?this.showTopLeftPanel=!this.showTopLeftPanel:"LEFT"==t?(this.showLeftPanel=!this.showLeftPanel,this.showResLeftPanel=!1,this.showLeftPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#hideLeftContent").css("background","#CEE9F1")):(this.rightContentWidth="96%",$j("#hideLeftContent").css("background","none"))):"RESLEFT"==t?(this.showResLeftPanel=!this.showResLeftPanel,this.showResLeftPanel?(this.rightContentWidth="44%",this.leftContentWidth="44%"):(this.rightContentWidth="48%",this.leftContentWidth="48%")):"MIDDLE"==t&&(this.showRightPanel=!this.showRightPanel,this.showResLeftPanel=!1,this.showRightPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#contentLeft").css("border-right","solid 1px")):(this.leftContentWidth="96%",$j("#contentLeft").css("border-right","none")))},t.prototype.displayAttachmentPanel=function(){this.showAttachmentPanel=!this.showAttachmentPanel,this.rightSelectedThumbnail=0,this.signatureBook.attachments[0]&&(this.rightViewerLink=this.signatureBook.attachments[0].viewerLink)},t.prototype.refreshAttachments=function(t){var e=this;"rightContent"==t?this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/incomingMailAttachments").map(function(t){return t.json()}).subscribe(function(t){e.signatureBook.documents=t}):this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/attachments").map(function(t){return t.json()}).subscribe(function(r){var n=0;if("add"==t){var o=!1;r.forEach(function(t,r){o||e.signatureBook.attachments[r]&&t.res_id==e.signatureBook.attachments[r].res_id||(n=r,o=!0)})}else if("edit"==t){var i=e.signatureBook.attachments[e.rightSelectedThumbnail].res_id;r.forEach(function(t,e){t.res_id==i&&(n=e)})}e.signatureBook.attachments=r,"add"==t||"edit"==t?e.changeRightViewer(n):"del"==t&&e.changeRightViewer(0)})},t.prototype.addAttachmentIframe=function(){showAttachmentsForm("index.php?display=true&module=attachments&page=attachments_content&docId="+this.resId)},t.prototype.editAttachmentIframe=function(t){if(t.canModify&&"SIGN"!=t.status){var e;0==t.res_id?e=t.res_id_version:0==t.res_id_version&&(e=t.res_id),modifyAttachmentsForm("index.php?display=true&module=attachments&page=attachments_content&id="+e+"&relation="+t.relation+"&docId="+this.resId,"98%","auto")}},t.prototype.delAttachment=function(t){var e=this;if(t.canDelete){var r=confirm("Voulez-vous vraiment supprimer la pièce jointe ?");if(r){var n;0==t.res_id?n=t.res_id_version:0==t.res_id_version&&(n=t.res_id),this.http.get("index.php?display=true&module=attachments&page=del_attachment&id="+n+"&relation="+t.relation+"&rest=true").subscribe(function(){e.refreshAttachments("del")})}}},t.prototype.refreshNotes=function(){var t=this;this.http.get(this.coreUrl+"rest/res/"+this.resId+"/notes/count").map(function(t){return t.json()}).subscribe(function(e){t.signatureBook.nbNotes=e})},t.prototype.signFile=function(t,e){var r=this;if(!this.loadingSign&&this.signatureBook.canSign){this.loadingSign=!0;var n="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&resIdMaster="+this.resId+"&signatureId="+e.id;0==t.res_id?n+="outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?"&isVersion&isOutgoing&id="+t.res_id_version:"&isVersion&id="+t.res_id_version:0==t.res_id_version&&(n+="outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?"&isOutgoing&id="+t.res_id:"&id="+t.res_id),this.http.get(n,e).map(function(t){return t.json()}).subscribe(function(t){if(0==t.status){r.rightViewerLink="index.php?display=true&module=attachments&page=view_attachment&res_id_master="+r.resId+"&id="+t.new_id+"&isVersion=false",r.signatureBook.attachments[r.rightSelectedThumbnail].viewerLink=r.rightViewerLink,r.signatureBook.attachments[r.rightSelectedThumbnail].status="SIGN",r.signatureBook.attachments[r.rightSelectedThumbnail].idToDl=t.new_id;var e=!0;r.signatureBook.attachments.forEach(function(t){t.sign&&"SIGN"!=t.status&&(e=!1)}),r.signatureBook.resList[r.signatureBook.resListIndex].allSigned=e}else alert(t.error);r.showSignaturesPanel=!1,r.loadingSign=!1})}},t.prototype.unsignFile=function(t){var e,r,n,o=this;0==t.res_id?(r=t.res_id_version,e="res_version_attachments",n="true"):0==t.res_id_version&&(r=t.res_id,e="res_attachments",n="false"),this.http.put(this.coreUrl+"rest/"+e+"/"+r+"/unsign",{},{}).map(function(t){return t.json()}).subscribe(function(e){"OK"==e.status?(o.rightViewerLink="index.php?display=true&module=attachments&page=view_attachment&res_id_master="+o.resId+"&id="+t.viewerNoSignId+"&isVersion="+n,o.signatureBook.attachments[o.rightSelectedThumbnail].viewerLink=o.rightViewerLink,o.signatureBook.attachments[o.rightSelectedThumbnail].status="A_TRA",o.signatureBook.attachments[o.rightSelectedThumbnail].idToDl=r,o.signatureBook.resList[o.signatureBook.resListIndex].allSigned=!1):alert(e.error)})},t.prototype.backToBasket=function(){unlockDocument(this.resId),location.hash="",location.reload()},t.prototype.backToDetails=function(){unlockDocument(this.resId),location.hash="",location.search="?page=details&dir=indexing_searching&id="+this.resId},t.prototype.changeLocation=function(t,e){var r=this;this.http.get(this.coreUrl+"rest/res/"+t+"/lock").map(function(t){return t.json()}).subscribe(function(n){if(n.lock)"view"==e?alert("Courrier verouillé par "+n.lockBy):"action"==e&&(alert("Courrier suivant verouillé par "+n.lockBy),r.backToBasket());else{var o="/"+r.basketId+"/signatureBook/"+t;r.router.navigate([o])}})},t.prototype.validForm=function(){""!=$j("#signatureBookActions option:selected")[0].value?(unlockDocument(this.resId),valid_action_form("empty","index.php?display=true&page=manage_action&module=core",this.signatureBook.currentAction.id,this.resId,"res_letterbox","null","letterbox_coll","page",!1,[$j("#signatureBookActions option:selected")[0].value])):alert("Aucune action choisie")},t}();l=n([i.Component({templateUrl:"js/angular/app/Views/signatureBook.html"}),o("design:paramtypes",[s.Http,u.ActivatedRoute,u.Router,i.NgZone])],l),r.SignatureBookComponent=l},{"@angular/core":8,"@angular/http":10,"@angular/platform-browser":12,"@angular/router":13,"rxjs/add/operator/map":24}],5:[function(t,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=t("@angular/platform-browser-dynamic"),o=t("@angular/core"),i=t("./app/app.module");o.enableProdMode(),n.platformBrowserDynamic().bootstrapModule(i.AppModule)},{"./app/app.module":2,"@angular/core":8,"@angular/platform-browser-dynamic":11}],6:[function(e,r,n){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/core"],i):i((o.ng=o.ng||{},o.ng.common=o.ng.common||{}),o.ng.core)}(this,function(t,e){"use strict";function r(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}function n(t){return t.replace(/\/index.html$/,"")}function o(t,e,r){var n="="+t;if(e.indexOf(n)>-1)return n;if(n=r.getPluralCategory(t),e.indexOf(n)>-1)return n;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}function i(t,e){"string"==typeof e&&(e=parseInt(e,10));var r=e,n=r.toString().replace(/^[^.]*\.?/,""),o=Math.floor(Math.abs(r)),i=n.length,s=parseInt(n,10),a=parseInt(r.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0,u=t.split("-")[0].toLowerCase();switch(u){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===r?H.One:H.Other;case"agq":case"bas":case"cu":case"dav":case"dje":case"dua":case"dyo":case"ebu":case"ewo":case"guz":case"kam":case"khq":case"ki":case"kln":case"kok":case"ksf":case"lrc":case"lu":case"luo":case"luy":case"mer":case"mfe":case"mgh":case"mua":case"mzn":case"nmg":case"nus":case"qu":case"rn":case"rw":case"sbp":case"twq":case"vai":case"yav":case"yue":case"zgh":case"ak":case"ln":case"mg":case"pa":case"ti":return r===Math.floor(r)&&r>=0&&1>=r?H.One:H.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===o||1===r?H.One:H.Other;case"ar":return 0===r?H.Zero:1===r?H.One:2===r?H.Two:r%100===Math.floor(r%100)&&r%100>=3&&10>=r%100?H.Few:r%100===Math.floor(r%100)&&r%100>=11&&99>=r%100?H.Many:H.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===o&&0===i?H.One:H.Other;case"be":return r%10===1&&r%100!==11?H.One:r%10===Math.floor(r%10)&&r%10>=2&&4>=r%10&&!(r%100>=12&&14>=r%100)?H.Few:r%10===0||r%10===Math.floor(r%10)&&r%10>=5&&9>=r%10||r%100===Math.floor(r%100)&&r%100>=11&&14>=r%100?H.Many:H.Other;case"br":return r%10===1&&r%100!==11&&r%100!==71&&r%100!==91?H.One:r%10===2&&r%100!==12&&r%100!==72&&r%100!==92?H.Two:r%10===Math.floor(r%10)&&(r%10>=3&&4>=r%10||r%10===9)&&!(r%100>=10&&19>=r%100||r%100>=70&&79>=r%100||r%100>=90&&99>=r%100)?H.Few:0!==r&&r%1e6===0?H.Many:H.Other;case"bs":case"hr":case"sr":return 0===i&&o%10===1&&o%100!==11||s%10===1&&s%100!==11?H.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&4>=o%10&&!(o%100>=12&&14>=o%100)||s%10===Math.floor(s%10)&&s%10>=2&&4>=s%10&&!(s%100>=12&&14>=s%100)?H.Few:H.Other;case"cs":case"sk":return 1===o&&0===i?H.One:o===Math.floor(o)&&o>=2&&4>=o&&0===i?H.Few:0!==i?H.Many:H.Other;case"cy":return 0===r?H.Zero:1===r?H.One:2===r?H.Two:3===r?H.Few:6===r?H.Many:H.Other;case"da":return 1===r||0!==a&&(0===o||1===o)?H.One:H.Other;case"dsb":case"hsb":return 0===i&&o%100===1||s%100===1?H.One:0===i&&o%100===2||s%100===2?H.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&4>=o%100||s%100===Math.floor(s%100)&&s%100>=3&&4>=s%100?H.Few:H.Other;case"ff":case"fr":case"hy":case"kab":return 0===o||1===o?H.One:H.Other;case"fil":return 0===i&&(1===o||2===o||3===o)||0===i&&o%10!==4&&o%10!==6&&o%10!==9||0!==i&&s%10!==4&&s%10!==6&&s%10!==9?H.One:H.Other;case"ga":return 1===r?H.One:2===r?H.Two:r===Math.floor(r)&&r>=3&&6>=r?H.Few:r===Math.floor(r)&&r>=7&&10>=r?H.Many:H.Other;case"gd":return 1===r||11===r?H.One:2===r||12===r?H.Two:r===Math.floor(r)&&(r>=3&&10>=r||r>=13&&19>=r)?H.Few:H.Other;case"gv":return 0===i&&o%10===1?H.One:0===i&&o%10===2?H.Two:0!==i||o%100!==0&&o%100!==20&&o%100!==40&&o%100!==60&&o%100!==80?0!==i?H.Many:H.Other:H.Few;case"he":return 1===o&&0===i?H.One:2===o&&0===i?H.Two:0!==i||r>=0&&10>=r||r%10!==0?H.Other:H.Many;case"is":return 0===a&&o%10===1&&o%100!==11||0!==a?H.One:H.Other;case"ksh":return 0===r?H.Zero:1===r?H.One:H.Other;case"kw":case"naq":case"se":case"smn":return 1===r?H.One:2===r?H.Two:H.Other;case"lag":return 0===r?H.Zero:0!==o&&1!==o||0===r?H.Other:H.One;case"lt":return r%10!==1||r%100>=11&&19>=r%100?r%10===Math.floor(r%10)&&r%10>=2&&9>=r%10&&!(r%100>=11&&19>=r%100)?H.Few:0!==s?H.Many:H.Other:H.One;case"lv":case"prg":return r%10===0||r%100===Math.floor(r%100)&&r%100>=11&&19>=r%100||2===i&&s%100===Math.floor(s%100)&&s%100>=11&&19>=s%100?H.Zero:r%10===1&&r%100!==11||2===i&&s%10===1&&s%100!==11||2!==i&&s%10===1?H.One:H.Other;case"mk":return 0===i&&o%10===1||s%10===1?H.One:H.Other;case"mt":return 1===r?H.One:0===r||r%100===Math.floor(r%100)&&r%100>=2&&10>=r%100?H.Few:r%100===Math.floor(r%100)&&r%100>=11&&19>=r%100?H.Many:H.Other;case"pl":return 1===o&&0===i?H.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&4>=o%10&&!(o%100>=12&&14>=o%100)?H.Few:0===i&&1!==o&&o%10===Math.floor(o%10)&&o%10>=0&&1>=o%10||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&9>=o%10||0===i&&o%100===Math.floor(o%100)&&o%100>=12&&14>=o%100?H.Many:H.Other;case"pt":return r===Math.floor(r)&&r>=0&&2>=r&&2!==r?H.One:H.Other;case"ro":return 1===o&&0===i?H.One:0!==i||0===r||1!==r&&r%100===Math.floor(r%100)&&r%100>=1&&19>=r%100?H.Few:H.Other;case"ru":case"uk":return 0===i&&o%10===1&&o%100!==11?H.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&4>=o%10&&!(o%100>=12&&14>=o%100)?H.Few:0===i&&o%10===0||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&9>=o%10||0===i&&o%100===Math.floor(o%100)&&o%100>=11&&14>=o%100?H.Many:H.Other;
 
 case"shi":return 0===o||1===r?H.One:r===Math.floor(r)&&r>=2&&10>=r?H.Few:H.Other;case"si":return 0===r||1===r||0===o&&1===s?H.One:H.Other;case"sl":return 0===i&&o%100===1?H.One:0===i&&o%100===2?H.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&4>=o%100||0!==i?H.Few:H.Other;case"tzm":return r===Math.floor(r)&&r>=0&&1>=r||r===Math.floor(r)&&r>=11&&99>=r?H.One:H.Other;default:return H.Other}}function s(t){return t.name||typeof t}function a(t,r){return Error("InvalidPipeArgument: '"+r+"' for pipe '"+e.ɵstringify(t)+"'")}function u(t){return t?t[0].toUpperCase()+t.substr(1).toLowerCase():t}function c(t){return function(e,r){var n=t(e,r);return 1==n.length?"0"+n:n}}function l(t){return function(e,r){return t(e,r).split(" ")[1]}}function p(t){return function(e,r){return t(e,r).split(" ")[0]}}function h(t,e,r){return new Intl.DateTimeFormat(e,r).format(t).replace(/[\u200e\u200f]/g,"")}function f(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,r){var n=h(t,r,e);return n?n.substring(3):""}}function d(t,e){return t.hour12=e,t}function m(t,e){var r={};return r[t]=2===e?"2-digit":"numeric",r}function y(t,e){var r={};return r[t]=4>e?e>1?"short":"narrow":"long",r}function v(t){return Object.assign.apply(Object,[{}].concat(t))}function g(t){return function(e,r){return h(e,r,t)}}function _(t,e,r){var n=vt[t];if(n)return n(e,r);var o=t,i=_t.get(o);if(!i){i=[];var s=void 0;for(yt.exec(t);t;)s=yt.exec(t),s?(i=i.concat(s.slice(1)),t=i.pop()):(i.push(t),t=null);_t.set(o,i)}return i.reduce(function(t,n){var o=gt[n];return t+(o?o(e,r):b(n))},"")}function b(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function w(t,e,r,n,o,i,s){if(void 0===i&&(i=null),void 0===s&&(s=!1),null==r)return null;if(r="string"==typeof r&&E(r)?+r:r,"number"!=typeof r)throw a(t,r);var u,c,l;if(n!==dt.Currency&&(u=1,c=0,l=3),o){var p=o.match(wt);if(null===p)throw new Error(o+" is not a valid digit info for number pipes");null!=p[1]&&(u=C(p[1])),null!=p[3]&&(c=C(p[3])),null!=p[5]&&(l=C(p[5]))}return mt.format(r,e,n,{minimumIntegerDigits:u,minimumFractionDigits:c,maximumFractionDigits:l,currency:i,currencyAsSymbol:s})}function C(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function E(t){return!isNaN(t-parseFloat(t))}function S(t){return null==t||""===t}function x(t){return t instanceof Date&&!isNaN(t.valueOf())}function T(t){var e=new Date(0),r=0,n=0,o=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(r=P(t[9]+t[10]),n=P(t[9]+t[11])),o.call(e,P(t[1]),P(t[2])-1,P(t[3]));var s=P(t[4]||"0")-r,a=P(t[5]||"0")-n,u=P(t[6]||"0"),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return i.call(e,s,a,u,c),e}function P(t){return parseInt(t,10)}function A(t){return t===Nt}function O(t){return t===Dt}function M(t){return t===jt}function R(t){return t===Lt}var k=void 0||function(t,e){function r(){this.constructor=t}for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},I=function(){function t(){}return t.prototype.getBaseHrefFromDOM=function(){},t.prototype.onPopState=function(){},t.prototype.onHashChange=function(){},Object.defineProperty(t.prototype,"pathname",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"search",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.replaceState=function(){},t.prototype.pushState=function(){},t.prototype.forward=function(){},t.prototype.back=function(){},t}(),N=new e.InjectionToken("Location Initialized"),D=function(){function t(){}return t.prototype.path=function(){},t.prototype.prepareExternalUrl=function(){},t.prototype.pushState=function(){},t.prototype.replaceState=function(){},t.prototype.forward=function(){},t.prototype.back=function(){},t.prototype.onPopState=function(){},t.prototype.getBaseHref=function(){},t}(),j=new e.InjectionToken("appBaseHref"),L=function(){function t(r){var o=this;this._subject=new e.EventEmitter,this._platformStrategy=r;var i=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(n(i)),this._platformStrategy.onPopState(function(t){o._subject.emit({url:o.path(!0),pop:!0,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,r){return void 0===r&&(r=""),this.path()==this.normalize(e+t.normalizeQueryParams(r))},t.prototype.normalize=function(e){return t.stripTrailingSlash(r(this._baseHref,n(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e){void 0===e&&(e=""),this._platformStrategy.pushState(null,"",t,e)},t.prototype.replaceState=function(t,e){void 0===e&&(e=""),this._platformStrategy.replaceState(null,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,r){return void 0===e&&(e=null),void 0===r&&(r=null),this._subject.subscribe({next:t,error:e,complete:r})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var r=0;return t.endsWith("/")&&r++,e.startsWith("/")&&r++,2==r?t+e.substring(1):1==r?t+e:t+"/"+e},t.stripTrailingSlash=function(t){return t.replace(/\/$/,"")},t}();L.decorators=[{type:e.Injectable}],L.ctorParameters=function(){return[{type:D}]};var V=function(t){function e(e,r){var n=t.call(this)||this;return n._platformLocation=e,n._baseHref="",null!=r&&(n._baseHref=r),n}return k(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=L.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,r,n){var o=this.prepareExternalUrl(r+L.normalizeQueryParams(n));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,r,n){var o=this.prepareExternalUrl(r+L.normalizeQueryParams(n));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(D);V.decorators=[{type:e.Injectable}],V.ctorParameters=function(){return[{type:I},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[j]}]}]};var F=function(t){function e(e,r){var n=t.call(this)||this;if(n._platformLocation=e,null==r&&(r=n._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return n._baseHref=r,n}return k(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return L.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+L.normalizeQueryParams(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?""+e+r:e},e.prototype.pushState=function(t,e,r,n){var o=this.prepareExternalUrl(r+L.normalizeQueryParams(n));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,r,n){var o=this.prepareExternalUrl(r+L.normalizeQueryParams(n));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(D);F.decorators=[{type:e.Injectable}],F.ctorParameters=function(){return[{type:I},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[j]}]}]};var U=function(){function t(){}return t.prototype.getPluralCategory=function(){},t}(),B=function(t){function e(e){var r=t.call(this)||this;return r.locale=e,r}return k(e,t),e.prototype.getPluralCategory=function(t){var e=i(this.locale,t);switch(e){case H.Zero:return"zero";case H.One:return"one";case H.Two:return"two";case H.Few:return"few";case H.Many:return"many";default:return"other"}},e}(U);B.decorators=[{type:e.Injectable}],B.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var H={};H.Zero=0,H.One=1,H.Two=2,H.Few=3,H.Many=4,H.Other=5,H[H.Zero]="Zero",H[H.One]="One",H[H.Two]="Two",H[H.Few]="Few",H[H.Many]="Many",H[H.Other]="Other";var q=function(){function t(t,e,r,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=r,this._renderer=n,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._applyInitialClasses(!0),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(e.ɵisListLikeIterable(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._cleanupClasses=function(t){this._applyClasses(t,!0),this._applyInitialClasses(!1)},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var r=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+e.ɵstringify(t.item));r._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return r._toggleClass(t.item,!1)})},t.prototype._applyInitialClasses=function(t){var e=this;this._initialClasses.forEach(function(r){return e._toggleClass(r,!t)})},t.prototype._applyClasses=function(t,e){var r=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return r._toggleClass(t,!e)}):Object.keys(t).forEach(function(n){null!=t[n]&&r._toggleClass(n,!e)}))},t.prototype._toggleClass=function(t,e){var r=this;t=t.trim(),t&&t.split(/\s+/g).forEach(function(t){r._renderer.setElementClass(r._ngEl.nativeElement,t,!!e)})},t}();q.decorators=[{type:e.Directive,args:[{selector:"[ngClass]"}]}],q.ctorParameters=function(){return[{type:e.IterableDiffers},{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},q.propDecorators={klass:[{type:e.Input,args:["class"]}],ngClass:[{type:e.Input}]};var z=function(){function t(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return t.prototype.ngOnChanges=function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var r=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=r.get(e.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var o=this._moduleRef?this._moduleRef.componentFactoryResolver:r.get(e.ComponentFactoryResolver),i=o.resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,r,this.ngComponentOutletContent)}},t.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},t}();z.decorators=[{type:e.Directive,args:[{selector:"[ngComponentOutlet]"}]}],z.ctorParameters=function(){return[{type:e.ViewContainerRef}]},z.propDecorators={ngComponentOutlet:[{type:e.Input}],ngComponentOutletInjector:[{type:e.Input}],ngComponentOutletContent:[{type:e.Input}],ngComponentOutletNgModuleFactory:[{type:e.Input}]};var G=function(){function t(t,e,r,n){this.$implicit=t,this.ngForOf=e,this.index=r,this.count=n}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2===0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),W=function(){function t(t,e,r){this._viewContainer=t,this._template=e,this._differs=r,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){e.isDevMode()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+s(e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,r=[];t.forEachOperation(function(t,n,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new G(null,e.ngForOf,null,null),o),s=new $(t,i);r.push(s)}else if(null==o)e._viewContainer.remove(n);else{var i=e._viewContainer.get(n);e._viewContainer.move(i,o);var s=new $(t,i);r.push(s)}});for(var n=0;n<r.length;n++)this._perViewChange(r[n].view,r[n].record);for(var n=0,o=this._viewContainer.length;o>n;n++){var i=this._viewContainer.get(n);i.context.index=n,i.context.count=o}t.forEachIdentityChange(function(t){var r=e._viewContainer.get(t.currentIndex);r.context.$implicit=t.item})},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t}();W.decorators=[{type:e.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],W.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:e.IterableDiffers}]},W.propDecorators={ngForOf:[{type:e.Input}],ngForTrackBy:[{type:e.Input}],ngForTemplate:[{type:e.Input}]};var $=function(){function t(t,e){this.record=t,this.view=e}return t}(),K=W,Q=function(){function t(t,e){this._viewContainer=t,this._context=new X,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfThen",{set:function(t){this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfElse",{set:function(t){this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),t.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},t}();Q.decorators=[{type:e.Directive,args:[{selector:"[ngIf]"}]}],Q.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef}]},Q.propDecorators={ngIf:[{type:e.Input}],ngIfThen:[{type:e.Input}],ngIfElse:[{type:e.Input}]};var X=function(){function t(){this.$implicit=null,this.ngIf=null}return t}(),Z=function(){function t(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}return t.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},t.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},t.prototype.enforceState=function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()},t}(),Y=function(){function t(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(t.prototype,"ngSwitch",{set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),t.prototype._addCase=function(){return this._caseCount++},t.prototype._addDefault=function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)},t.prototype._matchCase=function(t){var e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e},t.prototype._updateDefaultCases=function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e<this._defaultViews.length;e++){var r=this._defaultViews[e];r.enforceState(t)}}},t}();Y.decorators=[{type:e.Directive,args:[{selector:"[ngSwitch]"}]}],Y.ctorParameters=function(){return[]},Y.propDecorators={ngSwitch:[{type:e.Input}]};var J=function(){function t(t,e,r){this.ngSwitch=r,r._addCase(),this._view=new Z(t,e)}return t.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},t}();J.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchCase]"}]}],J.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:Y,decorators:[{type:e.Host}]}]},J.propDecorators={ngSwitchCase:[{type:e.Input}]};var tt=function(){function t(t,e,r){r._addDefault(new Z(t,e))}return t}();tt.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchDefault]"}]}],tt.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:Y,decorators:[{type:e.Host}]}]};var et=function(){function t(t){this._localization=t,this._caseViews={}}return Object.defineProperty(t.prototype,"ngPlural",{set:function(t){this._switchValue=t,this._updateView()},enumerable:!0,configurable:!0}),t.prototype.addCase=function(t,e){this._caseViews[t]=e},t.prototype._updateView=function(){this._clearViews();var t=Object.keys(this._caseViews),e=o(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])},t.prototype._clearViews=function(){this._activeView&&this._activeView.destroy()},t.prototype._activateView=function(t){t&&(this._activeView=t,this._activeView.create())},t}();et.decorators=[{type:e.Directive,args:[{selector:"[ngPlural]"}]}],et.ctorParameters=function(){return[{type:U}]},et.propDecorators={ngPlural:[{type:e.Input}]};var rt=function(){function t(t,e,r,n){this.value=t;var o=!isNaN(Number(t));n.addCase(o?"="+t:t,new Z(r,e))}return t}();rt.decorators=[{type:e.Directive,args:[{selector:"[ngPluralCase]"}]}],rt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Attribute,args:["ngPluralCase"]}]},{type:e.TemplateRef},{type:e.ViewContainerRef},{type:et,decorators:[{type:e.Host}]}]};var nt=function(){function t(t,e,r){this._differs=t,this._ngEl=e,this._renderer=r}return Object.defineProperty(t.prototype,"ngStyle",{set:function(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this;t.forEachRemovedItem(function(t){return e._setStyle(t.key,null)}),t.forEachAddedItem(function(t){return e._setStyle(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._setStyle(t.key,t.currentValue)})},t.prototype._setStyle=function(t,e){var r=t.split("."),n=r[0],o=r[1];e=null!=e&&o?""+e+o:e,this._renderer.setElementStyle(this._ngEl.nativeElement,n,e)},t}();nt.decorators=[{type:e.Directive,args:[{selector:"[ngStyle]"}]}],nt.ctorParameters=function(){return[{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},nt.propDecorators={ngStyle:[{type:e.Input}]};var ot=function(){function t(t){this._viewContainerRef=t}return Object.defineProperty(t.prototype,"ngOutletContext",{set:function(t){this.ngTemplateOutletContext=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(){this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))},t}();ot.decorators=[{type:e.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],ot.ctorParameters=function(){return[{type:e.ViewContainerRef}]},ot.propDecorators={ngTemplateOutletContext:[{type:e.Input}],ngTemplateOutlet:[{type:e.Input}],ngOutletContext:[{type:e.Input}]};var it=[q,z,W,Q,ot,nt,Y,J,tt,et,rt],st=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.subscribe({next:e,error:function(t){throw t}})},t.prototype.dispose=function(t){t.unsubscribe()},t.prototype.onDestroy=function(t){t.unsubscribe()},t}(),at=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.then(e,function(t){throw t})},t.prototype.dispose=function(){},t.prototype.onDestroy=function(){},t}(),ut=new at,ct=new st,lt=function(){function t(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return t.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},t.prototype.transform=function(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,e.WrappedValue.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)},t.prototype._subscribe=function(t){var e=this;this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,function(r){return e._updateLatestValue(t,r)})},t.prototype._selectStrategy=function(r){if(e.ɵisPromise(r))return ut;if(e.ɵisObservable(r))return ct;throw a(t,r)},t.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},t.prototype._updateLatestValue=function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())},t}();lt.decorators=[{type:e.Pipe,args:[{name:"async",pure:!1}]}],lt.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]};var pt=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.toLowerCase()},t}();pt.decorators=[{type:e.Pipe,args:[{name:"lowercase"}]}],pt.ctorParameters=function(){return[]};var ht=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.split(/\b/g).map(function(t){return u(t)}).join("")},t}();ht.decorators=[{type:e.Pipe,args:[{name:"titlecase"}]}],ht.ctorParameters=function(){return[]};var ft=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.toUpperCase()},t}();ft.decorators=[{type:e.Pipe,args:[{name:"uppercase"}]}],ft.ctorParameters=function(){return[]};var dt={};dt.Decimal=0,dt.Percent=1,dt.Currency=2,dt[dt.Decimal]="Decimal",dt[dt.Percent]="Percent",dt[dt.Currency]="Currency";var mt=function(){function t(){}return t.format=function(t,e,r,n){var o=void 0===n?{}:n,i=o.minimumIntegerDigits,s=o.minimumFractionDigits,a=o.maximumFractionDigits,u=o.currency,c=o.currencyAsSymbol,l=void 0===c?!1:c,p={minimumIntegerDigits:i,minimumFractionDigits:s,maximumFractionDigits:a,style:dt[r].toLowerCase()};return r==dt.Currency&&(p.currency=u,p.currencyDisplay=l?"symbol":"code"),new Intl.NumberFormat(e,p).format(t)},t}(),yt=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,vt={yMMMdjms:g(v([m("year",1),y("month",3),m("day",1),m("hour",1),m("minute",1),m("second",1)])),yMdjm:g(v([m("year",1),m("month",1),m("day",1),m("hour",1),m("minute",1)])),yMMMMEEEEd:g(v([m("year",1),y("month",4),y("weekday",4),m("day",1)])),yMMMMd:g(v([m("year",1),y("month",4),m("day",1)])),yMMMd:g(v([m("year",1),y("month",3),m("day",1)])),yMd:g(v([m("year",1),m("month",1),m("day",1)])),jms:g(v([m("hour",1),m("second",1),m("minute",1)])),jm:g(v([m("hour",1),m("minute",1)]))},gt={yyyy:g(m("year",4)),yy:g(m("year",2)),y:g(m("year",1)),MMMM:g(y("month",4)),MMM:g(y("month",3)),MM:g(m("month",2)),M:g(m("month",1)),LLLL:g(y("month",4)),L:g(y("month",1)),dd:g(m("day",2)),d:g(m("day",1)),HH:c(p(g(d(m("hour",2),!1)))),H:p(g(d(m("hour",1),!1))),hh:c(p(g(d(m("hour",2),!0)))),h:p(g(d(m("hour",1),!0))),jj:g(m("hour",2)),j:g(m("hour",1)),mm:c(g(m("minute",2))),m:g(m("minute",1)),ss:c(g(m("second",2))),s:g(m("second",1)),sss:g(m("second",3)),EEEE:g(y("weekday",4)),EEE:g(y("weekday",3)),EE:g(y("weekday",2)),E:g(y("weekday",1)),a:l(g(d(m("hour",1),!0))),Z:f("short"),z:f("long"),ww:g({}),w:g({}),G:g(y("era",1)),GG:g(y("era",2)),GGG:g(y("era",3)),GGGG:g(y("era",4))},_t=new Map,bt=function(){function t(){}return t.format=function(t,e,r){return _(r,t,e)},t}(),wt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Ct=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r){return void 0===r&&(r=null),w(t,this._locale,e,dt.Decimal,r)},t}();Ct.decorators=[{type:e.Pipe,args:[{name:"number"}]}],Ct.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var Et=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r){return void 0===r&&(r=null),w(t,this._locale,e,dt.Percent,r)},t}();Et.decorators=[{type:e.Pipe,args:[{name:"percent"}]}],Et.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var St=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r,n,o){return void 0===r&&(r="USD"),void 0===n&&(n=!1),void 0===o&&(o=null),w(t,this._locale,e,dt.Currency,o,r,n)},t}();St.decorators=[{type:e.Pipe,args:[{name:"currency"}]}],St.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var xt=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Tt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,r){void 0===r&&(r="mediumDate");var n;if(S(e)||e!==e)return null;if("string"==typeof e&&(e=e.trim()),x(e))n=e;else if(E(e))n=new Date(parseFloat(e));else if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var o=e.split("-").map(function(t){return parseInt(t,10)}),i=o[0],s=o[1],u=o[2];n=new Date(i,s-1,u)}else n=new Date(e);if(!x(n)){var c=void 0;if("string"!=typeof e||!(c=e.match(xt)))throw a(t,e);n=T(c)}return bt.format(n,this._locale,t._ALIASES[r]||r)},t}();Tt._ALIASES={medium:"yMMMdjms","short":"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},Tt.decorators=[{type:e.Pipe,args:[{name:"date",pure:!0}]}],Tt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var Pt=/#/g,At=function(){function t(t){this._localization=t}return t.prototype.transform=function(e,r){if(null==e)return"";if("object"!=typeof r||null===r)throw a(t,r);var n=o(e,Object.keys(r),this._localization);return r[n].replace(Pt,e.toString())},t}();At.decorators=[{type:e.Pipe,args:[{name:"i18nPlural",pure:!0}]}],At.ctorParameters=function(){return[{type:U}]};var Ot=function(){function t(){}return t.prototype.transform=function(e,r){if(null==e)return"";if("object"!=typeof r||"string"!=typeof e)throw a(t,r);return r.hasOwnProperty(e)?r[e]:r.hasOwnProperty("other")?r.other:""},t}();Ot.decorators=[{type:e.Pipe,args:[{name:"i18nSelect",pure:!0}]}],Ot.ctorParameters=function(){return[]};var Mt=function(){function t(){}return t.prototype.transform=function(t){return JSON.stringify(t,null,2)},t}();Mt.decorators=[{type:e.Pipe,args:[{name:"json",pure:!1}]}],Mt.ctorParameters=function(){return[]};var Rt=function(){function t(){}return t.prototype.transform=function(e,r,n){if(null==e)return e;if(!this.supports(e))throw a(t,e);return e.slice(r,n)},t.prototype.supports=function(t){return"string"==typeof t||Array.isArray(t)},t}();Rt.decorators=[{type:e.Pipe,args:[{name:"slice",pure:!1}]}],Rt.ctorParameters=function(){return[]};var kt=[lt,ft,pt,Mt,Rt,Ct,Et,ht,St,Tt,At,Ot],It=function(){function t(){}return t}();It.decorators=[{type:e.NgModule,args:[{declarations:[it,kt],exports:[it,kt],providers:[{provide:U,useClass:B}]}]}],It.ctorParameters=function(){return[]};var Nt="browser",Dt="server",jt="browserWorkerApp",Lt="browserWorkerUi",Vt=new e.Version("4.0.1");t.NgLocaleLocalization=B,t.NgLocalization=U,t.CommonModule=It,t.NgClass=q,t.NgFor=K,t.NgForOf=W,t.NgForOfContext=G,t.NgIf=Q,t.NgIfContext=X,t.NgPlural=et,t.NgPluralCase=rt,t.NgStyle=nt,t.NgSwitch=Y,t.NgSwitchCase=J,t.NgSwitchDefault=tt,t.NgTemplateOutlet=ot,t.NgComponentOutlet=z,t.AsyncPipe=lt,t.DatePipe=Tt,t.I18nPluralPipe=At,t.I18nSelectPipe=Ot,t.JsonPipe=Mt,t.LowerCasePipe=pt,t.CurrencyPipe=St,t.DecimalPipe=Ct,t.PercentPipe=Et,t.SlicePipe=Rt,t.UpperCasePipe=ft,t.TitleCasePipe=ht,t.ɵPLATFORM_BROWSER_ID=Nt,t.ɵPLATFORM_SERVER_ID=Dt,t.ɵPLATFORM_WORKER_APP_ID=jt,t.ɵPLATFORM_WORKER_UI_ID=Lt,t.isPlatformBrowser=A,t.isPlatformServer=O,t.isPlatformWorkerApp=M,t.isPlatformWorkerUi=R,t.VERSION=Vt,t.PlatformLocation=I,t.LOCATION_INITIALIZED=N,t.LocationStrategy=D,t.APP_BASE_HREF=j,t.HashLocationStrategy=V,t.PathLocationStrategy=F,t.Location=L,t.ɵa=it,t.ɵb=kt,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":8}],7:[function(e,r,n){!function(o,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/core")):"function"==typeof t&&t.amd?t(["exports","@angular/core"],i):i((o.ng=o.ng||{},o.ng.compiler=o.ng.compiler||{}),o.ng.core)}(this,function(t,e){"use strict";function r(t,e,r){void 0===r&&(r=null);var n=[],o=t.visit?function(e){return t.visit(e,r)||e.visit(t,r)}:function(e){return e.visit(t,r)};return e.forEach(function(t){var e=o(t);e&&n.push(e)}),n}function n(t){if(":"!=t[0])return[null,t];var e=t.indexOf(":",1);if(-1==e)throw new Error('Unsupported format "'+t+'" expecting ":namespace:name"');return[t.slice(1,e),t.slice(e+1)]}function o(t){return null===t?null:n(t)[0]}function i(t,e){return t?":"+t+":"+e:e}function s(t){return ho[t.toLowerCase()]||fo}function a(t){return t.replace(wo,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}function u(t,e){return l(t,":",e)}function c(t,e){return l(t,".",e)}function l(t,e,r){var n=t.indexOf(e);return-1==n?r:[t.slice(0,n).trim(),t.slice(n+1).trim()];
 
-- 
GitLab