ng-inail-common 2.0.21 → 2.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/ng-inail-common.umd.js +244 -15
- package/bundles/ng-inail-common.umd.js.map +1 -1
- package/bundles/ng-inail-common.umd.min.js +2 -2
- package/bundles/ng-inail-common.umd.min.js.map +1 -1
- package/esm2015/lib/components/core/form/form-element.component.js +2 -1
- package/esm2015/lib/components/core/form/input-file/input-file.component.js +3 -1
- package/esm2015/lib/components/core/form/multi-select/multi-select.component.js +121 -0
- package/esm2015/lib/components/core/table/table/table.component.js +54 -8
- package/esm2015/lib/components/core/ux/feedback/feedback.component.js +5 -3
- package/esm2015/lib/components/core/ux/progress-bar/progress-bar.component.js +50 -0
- package/esm2015/lib/ng-inail-common.module.js +9 -3
- package/esm2015/public-api.js +3 -1
- package/fesm2015/ng-inail-common.js +231 -12
- package/fesm2015/ng-inail-common.js.map +1 -1
- package/lib/components/core/form/multi-select/multi-select.component.d.ts +40 -0
- package/lib/components/core/table/table/table.component.d.ts +13 -3
- package/lib/components/core/ux/feedback/feedback.component.d.ts +1 -0
- package/lib/components/core/ux/progress-bar/progress-bar.component.d.ts +12 -0
- package/ng-inail-common.metadata.json +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs/internal-compatibility"),require("@angular/forms"),require("@angular/common"),require("@angular/common/http"),require("@angular/platform-browser"),require("rxjs/operators"),require("@angular/router"),require("rxjs")):"function"==typeof define&&define.amd?define("ng-inail-common",["exports","@angular/core","rxjs/internal-compatibility","@angular/forms","@angular/common","@angular/common/http","@angular/platform-browser","rxjs/operators","@angular/router","rxjs"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["ng-inail-common"]={},e.ng.core,e.rxjs["internal-compatibility"],e.ng.forms,e.ng.common,e.ng.common.http,e.ng.platformBrowser,e.rxjs.operators,e.ng.router,e.rxjs)}(this,(function(e,t,n,i,a,o,r,s,l,c){"use strict";var p,u=function(e){return null==e||0==String(e).trim().length},d=function(e){return!u(e)},h=function(e){return"number"==typeof e},g=function(e){return"string"==typeof e},m=function(e){return v(e,"http")},f=function(e){return v(e,"/")},v=function(e,t){return null!=e&&String(e).startsWith(t)},b=function(e){return!(e&&e.length>0)},y=function(e){return!b(e)},C=function(e){return e?JSON.parse(JSON.stringify(e)):e},I=function(e){setTimeout((function(){window.scroll({top:e,left:0,behavior:"smooth"})}))},w=function(e){setTimeout((function(){var t=document.getElementById(e);t&&I(t.getBoundingClientRect().top+window.pageYOffset-50)}))},E=function(){I(130)},z=function(e,t){e&&(!0===t&&w(e.getAttribute("id")),setTimeout((function(){return e.focus()}),!0===t?500:0))},D=function(e,t,i){var a=e&&null!=e[t]&&n.isFunction(e[t])?e[t](i):void 0;return{data:a,call:function(e,t){return D(a,e,t)}}},k=function(){return"axxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},O=function(e){var t=!1;if(e){var n=window.getComputedStyle(e);t="none"==n.display||"visible"!=n.visibility||O(e.parentElement)}return t},x=function(e){return document.getElementsByTagName("html")[0].style["overflow-y"]=e?"scroll":"hidden"};(p=e.LogLevel||(e.LogLevel={})).LOG="log",p.TRACE="trace",p.DEBUG="debug",p.INFO="info",p.WARN="warn",p.ERROR="error";var
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs/internal-compatibility"),require("@angular/forms"),require("@angular/common"),require("@angular/common/http"),require("@angular/platform-browser"),require("rxjs/operators"),require("@angular/router"),require("rxjs")):"function"==typeof define&&define.amd?define("ng-inail-common",["exports","@angular/core","rxjs/internal-compatibility","@angular/forms","@angular/common","@angular/common/http","@angular/platform-browser","rxjs/operators","@angular/router","rxjs"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["ng-inail-common"]={},e.ng.core,e.rxjs["internal-compatibility"],e.ng.forms,e.ng.common,e.ng.common.http,e.ng.platformBrowser,e.rxjs.operators,e.ng.router,e.rxjs)}(this,(function(e,t,n,i,a,o,r,s,l,c){"use strict";var p,u=function(e){return null==e||0==String(e).trim().length},d=function(e){return!u(e)},h=function(e){return"number"==typeof e},g=function(e){return"string"==typeof e},m=function(e){return v(e,"http")},f=function(e){return v(e,"/")},v=function(e,t){return null!=e&&String(e).startsWith(t)},b=function(e){return!(e&&e.length>0)},y=function(e){return!b(e)},C=function(e){return e?JSON.parse(JSON.stringify(e)):e},I=function(e){setTimeout((function(){window.scroll({top:e,left:0,behavior:"smooth"})}))},w=function(e){setTimeout((function(){var t=document.getElementById(e);t&&I(t.getBoundingClientRect().top+window.pageYOffset-50)}))},E=function(){I(130)},z=function(e,t){e&&(!0===t&&w(e.getAttribute("id")),setTimeout((function(){return e.focus()}),!0===t?500:0))},D=function(e,t,i){var a=e&&null!=e[t]&&n.isFunction(e[t])?e[t](i):void 0;return{data:a,call:function(e,t){return D(a,e,t)}}},k=function(){return"axxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},O=function(e){var t=!1;if(e){var n=window.getComputedStyle(e);t="none"==n.display||"visible"!=n.visibility||O(e.parentElement)}return t},x=function(e){return document.getElementsByTagName("html")[0].style["overflow-y"]=e?"scroll":"hidden"};(p=e.LogLevel||(e.LogLevel={})).LOG="log",p.TRACE="trace",p.DEBUG="debug",p.INFO="info",p.WARN="warn",p.ERROR="error";var T=t.ChangeDetectionStrategy.OnPush,S=function(){function n(e){var n=this;this.baseComponentCdr=e,this.logOnConsole=!1,this.showState=!1,this.subcriptions=[],this.push=function(e){return n.subcriptions.push(e)},this.detach=function(){n.baseComponentCdr.detach()},this.detectChanges=function(){return n.baseComponentCdr.detectChanges()},this.getMessage=function(e){return n.logPrefix&&g(e.message)?n.logPrefix+" "+e.message:e.message},this.getNotBlankValue=function(e){return d(""+e)?e:void 0},this.log=new t.EventEmitter,window.asd||(window.asd=JSON.parse(atob("ewogICJhdXRvcmUiOiAiU2ltb25lIEFudG9uaW5pIiwKICAiZXRhIjogImRpcGVuZGUgZGFsbCdhbm5vIGNvcnJlbnRlIiwKICAiaG9iYnkiOiBbIlBlc2NhIiwgIlNub3dib2FyZCIsICJHYW1pbmciLCAiQ3Jvc3NmaXQiXSwKICAicHJlZmVyaXRpIjogewogICAgInBlc2NpIjogWyJDYXJwYSIsICJCbGFjayBCYXNzIl0sCiAgICAidmlkZW9naW9jaGkiOiBbIkZGVklJIiwgIkZGVklJUiIsICJEZWF0aCBTdHJhbmRpbmciLCAiU2VraXJvIiwgIlJlZCBEZWFkIFJlZGVtcHRpb24gMiIsICJUTE9VIiwgIlRMT1UyIl0sCiAgICAibGlicmkiOiBbCiAgICAgIHsiYXV0b3JlIjogIkdhYnJpZWwgR2FyY2lhIE1hcnF1ZXoiLCAidGl0b2xvIjogIkNlbnQnYW5uaSBkaSBzb2xpdHVkaW5lIn0sCiAgICAgIHsiYXV0b3JlIjogIkFsZXNzYW5kcm8gQmFyaWNjbyIsICJ0aXRvbG8iOiAiQ2FzdGVsbGkgZGkgcmFiYmlhIn0sCiAgICAgIHsiYXV0b3JlIjogIkFsZXNzYW5kcm8gQmFyaWNjbyIsICJ0aXRvbG8iOiAiU2V0YSJ9LAogICAgICB7ImF1dG9yZSI6ICJZYXN1bmFyaSBLYXdhYmF0YSIsICJ0aXRvbG8iOiAiTGEgY2FzYSBkZWxsZSBiZWxsZSBhZGRvcm1lbnRhdGUifQogICAgXQogIH0sCiAgImltcHJlc2VDZWxlYnJpIjogWyJTb3Bwb3J0byBtaWEgbWFkcmUgZGEgcXVhc2kgNDAgYW5uaSJdLAogICJwcm92b0Ftb3JlUGVyIjogWyJJbCBtaW8gY2FuZSIsICJJbCBtaW8gZ2F0dG8iLCAiSWwgdGlyYW1pc3UiXQp9")))}return n.prototype.ngOnChanges=function(e){this.emitDebug("ngOnChanges"),this.emitDebug(e)},n.prototype.ngOnInit=function(){var e=this;this.emitDebug("ngOnInit"),this.emitDebug("this"),this.emitDebug(this),this.detectChange&&this.push(this.detectChange.subscribe((function(){return e.baseComponentCdr.detectChanges()})))},n.prototype.ngOnDestroy=function(){this.emitDebug("ngOnDestroy"),this.subcriptions.forEach((function(e){return null==e?void 0:e.unsubscribe()}))},n.prototype.emitLog=function(t){this.emit({message:t,level:e.LogLevel.LOG})},n.prototype.emitTrace=function(t){this.emit({message:t,level:e.LogLevel.TRACE})},n.prototype.emitDebug=function(t){this.emit({message:t,level:e.LogLevel.DEBUG})},n.prototype.emitInfo=function(t){this.emit({message:t,level:e.LogLevel.INFO})},n.prototype.emitWarn=function(t){this.emit({message:t,level:e.LogLevel.WARN})},n.prototype.emitError=function(t){this.emit({message:t,level:e.LogLevel.ERROR})},n.prototype.emit=function(e){e&&(!0===this.logOnConsole?console[e.level].apply(this,[this.getMessage(e)]):this.log.emit(e))},n}();S.decorators=[{type:t.Component,args:[{selector:"inail-base",template:"",changeDetection:T,encapsulation:t.ViewEncapsulation.None}]}],S.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},S.propDecorators={log:[{type:t.Output}],logOnConsole:[{type:t.Input}],showState:[{type:t.Input}],detectChange:[{type:t.Input}]};
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
15
|
***************************************************************************** */
|
|
16
|
-
var V=function(e,t){return(V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function P(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}V(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function L(e,t,n,i){return new(n||(n=Promise))((function(a,o){function r(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))}function U(e,t){var n,i,a,o,r={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,i=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!(a=r.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){r=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(6===o[0]&&r.label<a[1]){r.label=a[1],a=o;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(o);break}a[2]&&r.ops.pop(),r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e],i=0}finally{n=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}Object.create;function A(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,a,o=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)r.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return r}Object.create;var R=function(e){function t(t){var n=e.call(this,t)||this;return n.uxElementCdr=t,n.id=k(),n}return P(t,e),t.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t)},t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this),null==this.id&&(this.id=k()),this.logPrefix=this.logPrefix+"["+this.id+"]"},t}(T);R.decorators=[{type:t.Component,args:[{selector:"inail-basic-ux-element",template:"",changeDetection:S,encapsulation:t.ViewEncapsulation.None}]}],R.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},R.propDecorators={id:[{type:t.Input}],class:[{type:t.Input}]};var N=function(e){function t(t){var n=e.call(this,t)||this;return n.responsiveElementCdr=t,n.xs=12,n.xsClass=function(){return null!=n.xs?"col-xs-"+n.xs+" ":""},n.smClass=function(){return null!=n.sm?"col-sm-"+n.sm+" ":""},n.mdClass=function(){return null!=n.md?"col-md-"+n.md+" ":""},n.lgClass=function(){return null!=n.lg?"col-lg-"+n.lg+" ":""},n.getResponsiveClass=function(){return(""+n.xsClass()+n.smClass()+n.mdClass()+n.lgClass()).trim()},n}return P(t,e),t.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t)},t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},t}(R);N.decorators=[{type:t.Component,args:[{selector:"inail-responsive-element",template:"",changeDetection:S,encapsulation:t.ViewEncapsulation.None}]}],N.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},N.propDecorators={lg:[{type:t.Input}],md:[{type:t.Input}],sm:[{type:t.Input}],xs:[{type:t.Input}]};var F=function(){function e(){}return e.prototype.ngOnInit=function(){},e}();F.decorators=[{type:t.Component,args:[{selector:"debug-pre",template:'<pre style="margin-top: 10px"><ng-content></ng-content></pre>\n',encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],F.ctorParameters=function(){return[]};var M=function(){function e(){}return e.prototype.ngOnInit=function(){},e}();M.decorators=[{type:t.Component,args:[{selector:"state-propertie",template:"<ng-container *ngIf=\"!(propertie==undefined && hideIfNull)\">{{label}}: {{propertie != undefined ? (propertie | json) : 'undefined'}}<br></ng-container>\n",encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],M.ctorParameters=function(){return[]},M.propDecorators={label:[{type:t.Input}],propertie:[{type:t.Input}],hideIfNull:[{type:t.Input}]};var B=function(){function e(){}return e.prototype.ngOnInit=function(){},e}();B.decorators=[{type:t.Component,args:[{selector:"inail-form-element-state-properties",template:'<ng-container *ngIf="formElement">\n <state-propertie [label]="\'hasError\'" [propertie]="formElement.hasError" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'error\'" [propertie]="formElement.error" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'hiddenLabel\'" [propertie]="formElement.hiddenLabel" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'title\'" [propertie]="formElement.title" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'name\'" [propertie]="formElement.name" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'labelTitle\'" [propertie]="formElement.labelTitle" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'labelClass\'" [propertie]="formElement.labelClass" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'inputClass\'" [propertie]="formElement.inputClass" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'required\'" [propertie]="formElement.required" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'requiredSimbol\'" [propertie]="formElement.requiredSimbol" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'requiredSimbolPosition\'" [propertie]="formElement.requiredSimbolPosition" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'disabled\'" [propertie]="formElement.disabled" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'readonly\'" [propertie]="formElement.readonly" [hideIfNull]="false"></state-propertie>\n\n <state-propertie [label]="\'xs\'" [propertie]="formElement.xs" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'sm\'" [propertie]="formElement.sm" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'md\'" [propertie]="formElement.md" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'lg\'" [propertie]="formElement.lg" [hideIfNull]="false"></state-propertie>\n\n <state-propertie [label]="\'class\'" [propertie]="formElement.class" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'popoverButtonIcon\'" [propertie]="formElement.popoverButtonIcon" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'popoverButtonTitle\'" [propertie]="formElement.popoverButtonTitle" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'popoverHeader\'" [propertie]="formElement.popoverHeader" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'popoverContent\'" [propertie]="formElement.popoverContent" [hideIfNull]="false"></state-propertie>\n</ng-container>\n',encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],B.ctorParameters=function(){return[]},B.propDecorators={formElement:[{type:t.Input}]};var H="/static",j="/static_intra",_="/assets/inail/static",q="/api",$=function(e){function t(t,n,i){var a=e.call(this,n)||this;return a.sanitizer=t,a.cdr=n,a.http=i,a.domainUrl="",a.cdnEndpoint="",a.assetsUrl=H,a.inizializzazioneTerminata=!1,a.logPrefix="[inail-footer]",a.detach(),a}return P(t,e),t.prototype.ngOnChanges=function(e){var t,n;this.emitDebug("ngOnChanges:"),this.emitDebug(e),(null===(t=null==e?void 0:e.url)||void 0===t?void 0:t.currentValue)&&!(null===(n=null==e?void 0:e.html)||void 0===n?void 0:n.currentValue)&&(e.url.firstChange&&this.emitDebug("Inizializzazione Footer"),this.recupera()),this.cdr.detectChanges()},t.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),u(this.domainUrl)&&(this.domainUrl=""),(u(this.cdnEndpoint)||m(this.assetsUrl))&&(this.cdnEndpoint=""),u(this.assetsUrl)&&(d(this.cdnEndpoint)?this.assetsUrl=_:this.assetsUrl=H),this.html?(this.innerHtml=this.sanitizer.bypassSecurityTrustHtml(this.html),this.inizializzazioneTerminata=!0,this.cdr.detectChanges()):this.url||(this.emitDebug("Inizializzazione Footer, Url footer non specificato"),this.url=this.domainUrl+"/cs/internet/footer.html",this.recupera()),this.detectChange&&this.push(this.detectChange.subscribe((function(){return t.cdr.detectChanges()})))},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t.prototype.recupera=function(){var e=this;this.emitDebug("Recupero Footer da: "+this.url),this.http.get(this.url,{responseType:"text"}).pipe(s.first(),s.finalize((function(){e.emitDebug("Footer inizializzato!"),e.inizializzazioneTerminata=!0,e.cdr.detectChanges()}))).subscribe((function(t){e.innerHtml=e.sanitizer.bypassSecurityTrustHtml(t),e.emitDebug("Footer recuperato!")}),(function(t){e.innerHtml=void 0,e.emitError("Errore nel recupero del Footer"),e.emitError(t),e.emitWarn("Visualizzazione Footer di default")}))},t}(T);$.decorators=[{type:t.Component,args:[{selector:"inail-footer",template:'<ng-container *ngIf="inizializzazioneTerminata">\n <div *ngIf="this.innerHtml"\n [innerHtml]="this.innerHtml">\n </div>\n <div *ngIf="!this.innerHtml">\n <footer>\n <nav id="navigazionealternativa" class="row">\n <h2 class="hidden">Navigazione alternativa</h2>\n <div class="row col-xs-12">\n <a href="https://www.inail.it/cs/internet/home.html" title="torna alla homepage INAIL">\n <img class="logo-inail img-responsive"\n src="{{cdnEndpoint}}{{assetsUrl}}/img/LogoInail_footer.svg"\n alt="INAIL - Istituto Nazionale per l\'Assicurazione contro gli Infortuni sul Lavoro">\n </a>\n </div>\n <div id="contatti-wrapper" class="row col-xs-12 col-md-6">\n <div id="contatti" class="col-xs-12 col-sm-6">\n <h3>Recapiti e Contatti</h3>\n <ul>\n <li>\n <p>INAIL sede centrale</p> P.le Pastore 6, 00144 Roma (RM)\n <li>\n <a href="{{domainUrl}}/cs/internet/supporto/contact-center.html" title="Contact center">Contact center</a>\n <br>(+39) 06.6001<br>Dal lunedì al venerdì dalle 9.00 alle 18.00\n </li>\n <li>\n <a href=\'https://www.inail.it/cs/internet/supporto/inail-risponde.html\' title="Inail risponde">\n Inail risponde\n </a>\n </li>\n <li>\n <a href=\'https://www.inail.it/cs/internet/supporto/agenda-appuntamenti.html\' title="Agenda appuntamenti">\n Agenda appuntamenti\n </a>\n </li>\n <li>\n <a href=\'https://www.inail.it/cs/internet/supporto/sedi.html\' title="Sedi">\n Sedi\n </a>\n </li>\n </ul>\n </div>\n <div id="menu-rapido" class="hidden-xs col-sm-6">\n <h3>Menu Rapido</h3>\n <ul>\n <li>\n <a href=\'https://www.inail.it/cs/internet/atti-e-documenti/moduli-e-modelli.html\' title="Moduli e modelli">\n Moduli e modelli\n </a>\n </li>\n <li>\n <a href=\'https://www.inail.it/cs/internet/attivita/assicurazione/verificare-la-regolarita-contributiva-durc-online.html\'\n title="Verificare la regolarità contributiva - Durc online">\n Verificare la regolarità contributiva - Durc online\n </a>\n </li>\n <li>\n <a href=\'https://www.inail.it/cs/internet/accedi-ai-servizi-online.html\' title="Accedi ai servizi online">\n Accedi ai servizi online\n </a>\n </li>\n <li><a href="https://profilazioneutenteinternet.inail.it/utilityredirect?contesto=FAQ" title="Faq">Faq</a></li>\n <li><a href="https://dati.inail.it/opendata/default/Qualidati/index.html" title="Open Data">Open Data</a></li>\n <li>\n <a href=\'https://www.inail.it/cs/internet/istituto/struttura-organizzativa/uffici-centrali/casellario-centrale-infortuni.html\' title="Casellario centrale infortuni">\n Casellario centrale infortuni\n </a>\n </li>\n <li><a href="https://www.superabile.it/cs/superabile/home" title="Superabile">Superabile</a></li>\n <li>\n <a href=\'https://www.inail.it/cs/internet/istituto/amministrazione-trasparente.html\' title="Amministrazione trasparente">\n Amministrazione trasparente\n </a>\n </li>\n <li>\n <a href=\'https://www.inail.it/cs/internet/istituto/amministrazione-trasparente/altri-contenuti/diritto-di-accesso.html\' title="Diritto di accesso">\n Diritto di accesso\n </a>\n </li>\n <li>\n <a href=\'https://www.inail.it/cs/internet/istituto/amministrazione-trasparente/altri-contenuti/altri-contenuti-dati-ulteriori/atti-di-notifica.html\'\n title="Atti di notifica">\n Atti di notifica\n </a>\n </li>\n <li>\n <a href=\'https://www.inail.it/cs/internet/istituto/provider-crediti-formativi-ecm.html\' title="Provider Inail Ecm">\n Provider Inail Ecm\n </a>\n </li>\n </ul>\n </div>\n </div>\n <div id="seguici-wrapper" class="row col-xs-12 col-md-6">\n <div id="linkservizio" class="hidden-xs col-sm-6">\n <h3>Link di servizio</h3>\n <ul>\n <li>\n <a href=\'https://www.inail.it/cs/internet/istituto/amministrazione-trasparente/altri-contenuti-dati-ulteriori/privacy.html\' title="Privacy">\n Privacy\n </a>\n </li>\n <li>\n <a href=\'https://www.inail.it/cs/internet/istituto/amministrazione-trasparente/altri-contenuti-accessibilita-e-catalogo-di-dati.html\'\n title="Accessibilità e catalogo di dati, metadati e banche dati">\n Accessibilità e catalogo di dati, metadati e banche dati\n </a>\n </li>\n <li>\n <a href=\'https://www.inail.it/cs/internet/istituto/amministrazione-trasparente/altri-contenuti-dati-ulteriori/social-media-policy-esterna.html\' title="Social media policy">\n Social media policy\n </a>\n </li>\n </ul>\n </div>\n <div id="seguici-su" class="col-xs-12 col-sm-6">\n <h3>Seguici su</h3>\n <div id="social-icons">\n <div>\n <a href="https://it-it.facebook.com/Inailgov/" target="_blank">\n <img src="{{cdnEndpoint}}{{assetsUrl}}/img/facebook_round.svg" alt="Icona Facebook" title="Icona Facebook">\n </a>\n <a href="https://twitter.com/inail_gov" target="_blank">\n <img src="{{cdnEndpoint}}{{assetsUrl}}/img/twitter_round.svg" alt="Icona Twitter" title="Icona Twitter">\n </a>\n <a href="https://www.youtube.com/user/UfficioStampaInail" target="_blank">\n <img src="{{cdnEndpoint}}{{assetsUrl}}/img/youtube_round.svg" alt="Icona YouTube" title="Icona YouTube">\n </a>\n </div>\n <div>\n <a href=\'{{domainUrl}}/cs/Satellite?c=Page&cid=2443085461091&d=Touch&pagename=commons%2Flayout%2FfeedRss&rssSubtype=news\'>\n <img src="{{cdnEndpoint}}{{assetsUrl}}/img/rss_round.svg" alt="icona RSS" title="Icona RSS">\n </a>\n <a href="https://www.linkedin.com/company/inail" target="_blank">\n <img src="{{cdnEndpoint}}{{assetsUrl}}/img/linkedin_round.svg" alt="Icona Linkedin" title="Icona Linkedin">\n </a>\n <a href="https://www.instagram.com/inail_gov/" target="_blank">\n <img src="{{cdnEndpoint}}{{assetsUrl}}/img/instagram_round.svg" alt="Icona Instagram" title="Icona Instagram">\n </a>\n </div>\n </div>\n </div>\n </div>\n <div id="spid" class="col-sm-offset-9 col-xs-12 col-lg-3 hidden-sm hidden-md">\n <div class="col-xs-12">\n <a href=\'https://www.inail.it/cs/internet/accedi-ai-servizi-online/accedi-con-spid.html\'>\n <img class=\'img-responsive\' src=\'https://www.inail.it/cs/internet/imgs/spid_footer.png\' alt="Accedi con SPID" title="Immagine SPID footer"/>\n </a>\n </div>\n </div>\n <div id="spid-tablet" class="col-xs-12 col-xs-offset-5 hidden-xs hidden-lg">\n <a href=\'https://www.inail.it/cs/internet/accedi-ai-servizi-online/accedi-con-spid.html\'>\n <img class=\'img-responsive\' src=\'https://www.inail.it/cs/internet/imgs/spid_footer.png\' alt="Accedi con SPID" title="Immagine SPID footer"/>\n </a>\n </div>\n </nav>\n <p class="hidden"><a href="#navinterna" title="torna alla navigazione interna alla pagina">Torna alla navigazione interna</a></p>\n </footer>\n <div id="subfooter">\n <div class="row col-xs-12">\n <hr>\n </div>\n <div id="sedeCentrale">\n <p class="copy">\n © 2018 INAIL <span> - </span>ISTITUTO NAZIONALE PER L\'ASSICURAZIONE CONTRO GLI INFORTUNI SUL LAVORO<span> - </span>P. IVA 00968951004\n </p>\n </div>\n <div id="menu-servizio" class="hidden-xs">\n <h2 class="hidden">Menu di servizio</h2>\n <ul id="menuservizio">\n <li class="">\n <a href=\'https://www.inail.it/cs/internet/responsabile-della-pubblicazione.html\' title="Responsabile della pubblicazione">\n Responsabile della pubblicazione\n </a>\n </li>\n <li class="">\n <a href=\'https://www.inail.it/cs/internet/avviso-all_utenza.html\' title="Avviso all’utenza">\n Avviso all’utenza\n </a>\n </li>\n <li class="">\n <a href=\'https://www.inail.it/cs/internet/accessibilita.html\' title="Accessibilità">\n Accessibilità\n </a>\n </li>\n <li class="">\n <a href=\'https://www.inail.it/cs/internet/monitoraggio-accessi.html\' title="Monitoraggio accessi">\n Monitoraggio accessi\n </a>\n </li>\n <li class="last">\n <a href=\'https://www.inail.it/cs/internet/mappa-del-sito.html\' title="Mappa del sito">\n Mappa del sito\n </a>\n </li>\n </ul>\n </div>\n <p class="hidden"><a href="#navinterna" title="torna alla navigazione interna alla pagina">Torna alla navigazione interna</a></p>\n <h2 class="hidden">Menu in lingua</h2>\n <ul id="menulingua">\n <li class="en"><a href=\'https://www.inail.it/cs/internet/multi/english.html\' title=""><span>Inglese</span></a></li>\n <li class="es"><a href=\'https://www.inail.it/cs/internet/multi/espanol.html\' title=""><span>Spagnolo</span></a></li>\n <li class="de"><a href=\'https://www.inail.it/cs/internet/multi/deutsch.html\' title=""><span>Tedesco</span></a></li>\n <li class="fr"><a href=\'https://www.inail.it/cs/internet/multi/francais.html\' title=""><span>Francese</span></a></li>\n </ul>\n <div id="internet-accesskey" style="display: none;">\n <ul>\n <li><a href=\'https://www.inail.it/cs/internet/home.html\' accesskey="h" title=\'Home \'>Home</a> (accesskey:h)</li>\n <li><a href=\'https://www.inail.it/cs/internet/istituto.html\' accesskey="i" title="Vai a Istituto">Vai a Istituto</a> (accesskey:i)</li>\n <li><a href=\'https://www.inail.it/cs/internet/attivita.html\' accesskey="a" title="Vai a Attività">Vai a Attività</a> (accesskey:a)</li>\n <li><a href=\'https://www.inail.it/cs/internet/atti-e-documenti.html\' accesskey="q" title="Vai a Atti e documenti">Vai a Atti e Documenti</a> (accesskey:q)</li>\n <li><a href=\'https://www.inail.it/cs/internet/comunicazione.html\' accesskey="n" title="Vai a Comunicazione">Vai a Comunicazione</a> (accesskey:n)</li>\n <li><a href=\'https://www.inail.it/cs/internet/servizi-per-te.html\' accesskey="t" title="Vai a Servizi Per Te">Vai a Servizi per Te</a> (accesskey:t)</li>\n <li><a href=\'https://www.inail.it/cs/internet/supporto_old.html\' accesskey="s" title="Vai a Supporto">Vai a Supporto</a> (accesskey:s)</li>\n </ul>\n </div>\n <p class="hidden"><a href="#navinterna" title="torna alla navigazione interna alla pagina">Torna alla navigazione interna</a></p>\n </div>\n <script type="text/javascript" src="//libs.de.coremetrics.com/eluminate.js"><\/script>\n <script type="text/javascript" src="{{cdnEndpoint}}{{assetsUrl}}/js/custom/analytics.js"><\/script>\n <script type="text/javascript" src="{{cdnEndpoint}}{{assetsUrl}}/js/feedRSS.js"><\/script>\n </div>\n</ng-container>\n<debug-pre *ngIf="showState">[inail-footer]<br>\n <state-propertie [label]="\'url\'" [propertie]="url"></state-propertie>\n <state-propertie [label]="\'domainUrl\'" [propertie]="domainUrl"></state-propertie>\n <state-propertie [label]="\'cdnEndpoint\'" [propertie]="cdnEndpoint"></state-propertie>\n <state-propertie [label]="\'assetsUrl\'" [propertie]="assetsUrl"></state-propertie>\n <state-propertie [label]="\'inizializzazioneTerminata\'" [propertie]="inizializzazioneTerminata"></state-propertie>\n</debug-pre>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],$.ctorParameters=function(){return[{type:r.DomSanitizer},{type:t.ChangeDetectorRef},{type:o.HttpClient}]},$.propDecorators={url:[{type:t.Input}],domainUrl:[{type:t.Input}],cdnEndpoint:[{type:t.Input}],assetsUrl:[{type:t.Input}],html:[{type:t.Input}]};var G=function(e){function t(t){var n=e.call(this,t)||this;return n.cdr=t,n.detach(),n}return P(t,e),t.prototype.ngOnInit=function(){},t}(T);G.decorators=[{type:t.Component,args:[{selector:"inail-navigazione-interna",template:'<h2 id="navinterna" class="hidden">Menu di navigazione interna alla pagina</h2>\n\n<ul class="hidden">\n <li>\n <a accesskey="1"\n href="#contenutoprincipale"\n title="vai al contenuto di questa pagina">\n Contenuto della pagina\n </a>\n (accesskey: 1)\n </li>\n <li>\n <a accesskey="r"\n href="#testoricerca"\n title="vai alla ricerca nel sito">\n Ricerca\n </a>\n (accesskey: r)\n </li>\n <li>\n <a accesskey="2"\n href="#navigazioneprincipale"\n title="vai al men&ugrave; di navigazione del portale">\n Navigazione del portale\n </a>\n (accesskey: 2)\n </li>\n <li>\n <a accesskey="3"\n href="#navigazioneutente"\n title="vai al men&ugrave; di navigazione per tipologia di utenza">\n Navigazione per tipologia di utenza\n </a>\n (accesskey: 3)\n </li>\n <li>\n <a accesskey="4"\n href="#correlati"\n title="vai agli argomenti correlati al contenuto di pagina">\n Argomenti correlati\n </a>\n (accesskey: 4)\n </li>\n <li>\n <a accesskey="5"\n href="#navigazionealternativa"\n title="vai alla navigazione di accesso alternativo ai contenuti di portale">\n Navigazione alternativa\n </a>\n (accesskey: 5)\n </li>\n <li>\n <a accesskey="6"\n href="#menuservizio"\n title="vai ai servizi e informazioni">Servizi e informazioni</a>\n (accesskey: 6)\n </li>\n <li>\n <a accesskey="7"\n href="#menusocial"\n title="INAIL nei Social Network">INAIL nei Social Network</a>\n (accesskey: 7)\n </li>\n <li>\n <a accesskey="l"\n href="#menulingua"\n title="Language version">Language version</a>\n (accesskey: l)\n </li>\n</ul>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],G.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]};var W=function(e){function t(t,n,i){var a=e.call(this,n)||this;return a.sanitizer=t,a.cdr=n,a.http=i,a.domainUrl="",a.inizializzazioneTerminata=!1,a.logPrefix="[inail-navigazione-principale]",a.detach(),a}return P(t,e),t.prototype.ngOnChanges=function(t){var n,i;e.prototype.ngOnChanges.call(this,t),(null===(n=null==t?void 0:t.url)||void 0===n?void 0:n.currentValue)&&!(null===(i=null==t?void 0:t.html)||void 0===i?void 0:i.currentValue)&&(t.url.firstChange&&this.emitDebug("Inizializzazione Navigazione principale"),this.recupera()),this.cdr.detectChanges()},t.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.logoutUrl||(this.logoutUrl=this.domainUrl+"/cs/LogoutUser?excludedCookies=SMSESSION"),this.html?(this.innerHtml=this.sanitizer.bypassSecurityTrustHtml(this.html),this.inizializzazioneTerminata=!0,this.cdr.detectChanges()):this.url||(this.emitDebug("Inizializzazione Navigazione principale, Url Navigazione principale non specificato"),this.url=this.domainUrl+"/cs/internet/header.html",this.recupera()),this.detectChange&&this.push(this.detectChange.subscribe((function(){return t.cdr.detectChanges()})))},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t.prototype.recupera=function(){var e=this;this.emitDebug("Recupero Navigazione principale da: "+this.url),this.http.get(this.url,{responseType:"text"}).pipe(s.first(),s.finalize((function(){e.emitDebug("Navigazione principale inizializzata!"),e.inizializzazioneTerminata=!0,e.cdr.detectChanges()}))).subscribe((function(t){t=t.replace("#logout",e.logoutUrl),e.innerHtml=e.sanitizer.bypassSecurityTrustHtml(t),e.emitDebug("Navigazione principale recuperata!")}),(function(t){e.innerHtml=void 0,e.emitError("Errore nel recupero della Navigazione principale"),e.emitError(t),e.emitWarn("Visualizzazione Navigazione principale di default")}))},t}(T);W.decorators=[{type:t.Component,args:[{selector:"inail-navigazione-principale",template:'<ng-container *ngIf="true">\n <div *ngIf="this.innerHtml"\n [innerHtml]="this.innerHtml">\n </div>\n <div *ngIf="!this.innerHtml">\n <nav class="navbar navbar-default">\n <div class="navbar-header">\n <p class="navbar-toggle collapsed" data-toggle="collapse" data-target="#menuprincipale">\n <span class="sr-only">Menu</span>\n </p>\n </div>\n <div class="navbar-collapse collapse" id="menuprincipale">\n <form method="get"\n enctype="application/x-www-form-urlencoded"\n action=\'https://www.inail.it/cs/internet/risultati_ricerca.html\' id="searchForm" name="searchForm">\n <div class="navbar-form navbar-left searchsite" role="search" id="formRicerca">\n <h2 class="hidden">Cerca nel sito</h2>\n <p class="form-group">\n <label class="hidden" for="textWrite">Parametro di ricerca</label>\n <input type="text" id="textWrite" name="textWrite" class="form-control" placeholder="Cerca nel portale" title="inserisci il parametro da cercare su tutto il sito">\n <input type="hidden" id="textToFind" name="textToFind" value="">\n <button type="submit" class="btn btn-default">Cerca</button>\n </p>\n <p class="hidden">\n <a href="#navinterna"\n title="torna alla navigazione interna alla pagina">Torna alla\n navigazione interna</a>\n </p>\n </div>\n </form>\n <script type="text/javascript">\n $("body").on("submit", "#searchForm", function () {\n var inputValue = $("#textWrite").val();\n $("#textWrite").attr(\'disabled\', \'disabled\');\n inputValue = inputValue.replace(/\\&/g, \'&\');\n inputValue = inputValue.replace(/\\"/g, \'"\');\n inputValue = inputValue.replace(/\\</g, \'<\');\n inputValue = inputValue.replace(/\\>/g, ">");\n inputValue = inputValue.replace(/\\\'/g, "\'");\n inputValue = inputValue.replace(/\\\\/g, "");\n $("#textToFind").val(inputValue);\n });\n $(window).ready(function () {\n $("#textWrite").autocomplete({\n source: function (request, response) {\n $.ajax({\n url: \'https://www.inail.it/rest-public-enterprisesearch-gw/SuggestionService\',\n dataType: "jsonp",\n jsonp: "callback",\n jsonpCallback: \'jsonpCallback\',\n contentType: "application/json",\n data: {\n textToFind: request.term,\n searchScope: \'internet\'\n },\n success: function (data) {\n response(data.slice(0, 10));\n },\n error: function () {\n response([]);\n }\n });\n },\n minLength: 1,\n select: function (event, ui) {\n $(event.target).val(ui.item.value);\n $("form[name=\'searchForm\']").submit();\n }\n });\n });\n <\/script>\n <h2 class="hidden">Menu di navigazione principale</h2>\n <ul id="navigazioneprincipale" role="menu" class="nav navbar-nav">\n <li class="dropdown">\n <a href="https://www.inail.it/cs/internet/istituto.html"\n class="dropdown-toggle" data-toggle="dropdown" role="button"\n aria-expanded="false"> Istituto <span\n class="sr-only">(selezionato)</span>\n </a>\n <div class="dropdown-menu">\n <div class="visible-sm-block visible-md-block visible-lg-block">\n <h3>Istituto</h3>\n <p>\n Presentazione dell\'Ente, della sua organizzazione amministrativa e territoriale, delle relazioni con altri enti e con organi e organismi internazionali.\n </p>\n <p>\n <button type="submit"\n class="btn btn-default"\n onclick="location.href=domainUrl+\'/cs/internet/istituto.html\';">vai alla sezione\n </button>\n </p>\n </div>\n <ul role="menu">\n <li class="visible-xs-block hidden-sm hidden-md hidden-lg"><a href="https://www.inail.it/cs/internet/istituto.html">Vai alla sezione</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/chi-siamo.html">Chi siamo</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/struttura-organizzativa.html">Struttura organizzativa</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/territorio.html">Territorio</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/amministrazione-trasparente.html">Amministrazione trasparente</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/patrimonio-immobiliare/edifici-di-interesse-storico-artistico-e-architettonico.html">Edifici di interesse storico\n artistico e architettonico</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/relazioni-internazionali.html">Relazioni internazionali</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/organismo-notificato-0100.html">Organismo notificato 0100</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/sistema-nazionale-per-la-prevenzione.html">Sistema nazionale per la prevenzione </a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/access-point-eessi.html">Access Point EESSI</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/focal-point-italia.html">Focal Point Italia</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/innovazione-digitale.html">Innovazione digitale</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/programma-operativo-nazionale-2014-2020.html">Programma operativo nazionale 2014-2020</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/contrasto-discriminazioni-e-benessere-lavorativo.html">Comitato unico di garanzia</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/provider-crediti-formativi-ecm.html">Provider Inail Ecm</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/fatturazione-elettronica.html">Fatturazione elettronica</a></li>\n </ul>\n </div>\n </li>\n <li class="dropdown"><a href="https://www.inail.it/cs/internet/attivita.html"\n class="dropdown-toggle" data-toggle="dropdown" role="button"\n aria-expanded="false"> Attività <span\n class="sr-only">(selezionato)</span>\n </a>\n <div class="dropdown-menu">\n <div class="visible-sm-block visible-md-block visible-lg-block">\n <h3>Attività</h3>\n <p>\n Principali aree di azione volte a ridurre il fenomeno infortunistico, assicurare dai rischi e garantire la tutela dei lavoratori.\n </p>\n <p>\n <button type="submit" class="btn btn-default" onclick="location.href=domainUrl+\'/cs/internet/attivita.html\';">vai alla sezione</button>\n </p>\n </div>\n <ul role="menu">\n <li class="visible-xs-block hidden-sm hidden-md hidden-lg"><a href="https://www.inail.it/cs/internet/attivita.html">Vai alla sezione</a></li>\n <li><a href="https://www.inail.it/cs/internet/attivita/prevenzione-e-sicurezza.html">Prevenzione e sicurezza</a></li>\n <li><a href="https://www.inail.it/cs/internet/attivita/assicurazione.html">Assicurazione</a></li>\n <li><a href="https://www.inail.it/cs/internet/attivita/formazione.html">Formazione</a></li>\n <li><a href="https://www.inail.it/cs/internet/attivita/prestazioni.html">Prestazioni</a></li>\n <li><a href="https://www.inail.it/cs/internet/attivita/ricerca-e-tecnologia.html">Ricerca e Tecnologia</a></li>\n <li><a href="https://www.inail.it/cs/internet/attivita/dati-e-statistiche.html">Dati e statistiche</a></li>\n </ul>\n </div>\n </li>\n <li class="dropdown"><a href="https://www.inail.it/cs/internet/atti-e-documenti.html"\n class="dropdown-toggle" data-toggle="dropdown" role="button"\n aria-expanded="false"> Atti e documenti <span\n class="sr-only">(selezionato)</span>\n </a>\n <div class="dropdown-menu">\n <div class="visible-sm-block visible-md-block visible-lg-block">\n <h3>Atti e documenti</h3>\n <p>\n Documentazione prodotta dagli Organi dell’Inail, protocolli d’intesa, convenzioni e accordi con enti e istituzioni, istruzioni operative e modulistica.\n </p>\n <p>\n <button type="submit" class="btn btn-default" onclick="location.href=domainUrl+\'/cs/internet/atti-e-documenti.html\';">vai alla sezione</button>\n </p>\n </div>\n <ul role="menu">\n <li class="visible-xs-block hidden-sm hidden-md hidden-lg"><a href="https://www.inail.it/cs/internet/atti-e-documenti.html">Vai alla sezione</a></li>\n <li><a href="https://www.inail.it/cs/internet/atti-e-documenti/note-e-provvedimenti.html">Note e provvedimenti</a></li>\n <li><a href="https://www.inail.it/cs/internet/atti-e-documenti/protocolli-e-accordi.html">Protocolli e accordi</a></li>\n <li><a href="https://www.inail.it/cs/internet/atti-e-documenti/istruzioni-operative.html">Istruzioni operative</a></li>\n <li><a href="https://www.inail.it/cs/internet/atti-e-documenti/moduli-e-modelli.html">Moduli e modelli</a></li>\n </ul>\n </div>\n </li>\n <li class="dropdown"><a href="https://www.inail.it/cs/internet/comunicazione.html"\n class="dropdown-toggle" data-toggle="dropdown" role="button"\n aria-expanded="false"> Comunicazione <span\n class="sr-only">(selezionato)</span>\n </a>\n <div class="dropdown-menu">\n <div class="visible-sm-block visible-md-block visible-lg-block">\n <h3>Comunicazione</h3>\n <p>\n Contenuti per i media, documenti e informazioni istituzionali utili ad approfondire attività, finalità e conoscenza dell’Istituto\n </p>\n <p>\n <button type="submit" class="btn btn-default" onclick="location.href=domainUrl+\'/cs/internet/comunicazione.html\';">vai alla sezione</button>\n </p>\n </div>\n <ul role="menu">\n <li class="visible-xs-block hidden-sm hidden-md hidden-lg"><a href="https://www.inail.it/cs/internet/comunicazione.html">Vai alla sezione</a></li>\n <li><a href="https://www.inail.it/cs/internet/comunicazione/avvisi-e-scadenze.html">Avvisi e scadenze</a></li>\n <li><a href="https://www.inail.it/cs/internet/comunicazione/news-ed-eventi.html">News ed eventi</a></li>\n <li><a href="https://www.inail.it/cs/internet/comunicazione/sala-stampa.html">Sala Stampa</a></li>\n <li><a href="https://www.inail.it/cs/internet/comunicazione/campagne.html">Campagne</a></li>\n <li><a href="https://www.inail.it/cs/internet/comunicazione/pubblicazioni.html">Pubblicazioni</a></li>\n <li><a href="https://www.inail.it/cs/internet/comunicazione/multimedia.html">Multimedia</a></li>\n <li><a href="https://www.inail.it/cs/internet/comunicazione/social.html">Social</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/progetti.html">Progetti</a></li>\n </ul>\n </div>\n </li>\n <li class="dropdown"><a href="https://www.inail.it/cs/internet/servizi-per-te.html"\n class="dropdown-toggle" data-toggle="dropdown" role="button"\n aria-expanded="false"> Servizi Per Te <span\n class="sr-only">(selezionato)</span>\n </a>\n <div class="dropdown-menu">\n <div class="visible-sm-block visible-md-block visible-lg-block">\n <h3>Servizi Per Te</h3>\n <p>\n Strumenti e servizi per lavoratori e aziende\n </p>\n <p>\n <button type="submit" class="btn btn-default" onclick="location.href=domainUrl+\'/cs/internet/servizi-per-te.html\';">vai alla sezione</button>\n </p>\n </div>\n <ul role="menu">\n <li class="visible-xs-block hidden-sm hidden-md hidden-lg"><a href="https://www.inail.it/cs/internet/servizi-per-te.html">Vai alla sezione</a></li>\n <li><a href="{{domainUrl}}/cs/Satellite?c=Page&cid=2443085360338&d=Touch&pagename=Internet%2FPage%2FpaginaFoglia%2Flayout">Lavoratore</a></li>\n <li><a href="{{domainUrl}}/cs/Satellite?c=Page&cid=2443085353815&d=Touch&pagename=Internet%2FPage%2FpaginaFoglia%2Flayout">Datore di Lavoro</a></li>\n <li><a href="{{domainUrl}}/cs/Satellite?c=Page&cid=2443085351856&d=Touch&pagename=Internet%2FPage%2FpaginaFoglia%2Flayout">Consulente</a></li>\n <li><a href="{{domainUrl}}/cs/Satellite?c=Page&cid=2443085360496&d=Touch&pagename=Internet%2FPage%2FpaginaFoglia%2Flayout">Patronati e Caf</a></li>\n <li><a href="https://www.inail.it/cs/internet/servizi-per-te/operatori-della-sanita.html">Operatori della sanità</a></li>\n <li><a href="{{domainUrl}}/cs/Satellite?c=Page&cid=2443085360534&d=Touch&pagename=Internet%2FPage%2FpaginaFoglia%2Flayout">Altri Utenti</a></li>\n </ul>\n </div>\n </li>\n <li class="dropdown"><a href="https://www.inail.it/cs/internet/supporto.html"\n class="dropdown-toggle" data-toggle="dropdown" role="button"\n aria-expanded="false"> Supporto <span\n class="sr-only">(selezionato)</span>\n </a>\n <div class="dropdown-menu">\n <div class="visible-sm-block visible-md-block visible-lg-block">\n <h3>Supporto</h3>\n <p>\n Strumenti e servizi per lavoratori e aziende\n </p>\n <p>\n <button type="submit" class="btn btn-default" onclick="location.href=domainUrl+\'/cs/internet/supporto.html\';">vai alla sezione</button>\n </p>\n </div>\n <ul role="menu">\n <li class="visible-xs-block hidden-sm hidden-md hidden-lg"><a href="https://www.inail.it/cs/internet/supporto.html">Vai alla sezione</a></li>\n <li><a href="https://www.inail.it/cs/internet/supporto/guide-e-manuali.html">Guide e manuali operativi</a></li>\n <li><a href="https://www.inail.it/cs/internet/supporto/faq-sn.html">Faq</a></li>\n <li><a href="https://www.inail.it/cs/internet/supporto/inail-risponde.html">Inail risponde</a></li>\n <li><a href="https://www.inail.it/cs/internet/supporto/agenda-appuntamenti.html">Agenda appuntamenti</a></li>\n <li><a href="https://www.inail.it/cs/internet/supporto/sedi.html">Sedi</a></li>\n </ul>\n </div>\n </li>\n </ul>\n </div>\n <ul role="menu" class="nav navbar-nav nav-exit navbar-right">\n <li>\n <a href="{{logoutUrl}}" title="Esci" id="logoutButton">ESCI</a>\n </li>\n </ul>\n </nav>\n </div>\n</ng-container>\n<debug-pre *ngIf="showState">[inail-navigazione-principale]<br>\n <state-propertie [label]="\'url\'" [propertie]="url"></state-propertie>\n <state-propertie [label]="\'domainUrl\'" [propertie]="domainUrl"></state-propertie>\n <state-propertie [label]="\'logoutUrl\'" [propertie]="logoutUrl"></state-propertie>\n <state-propertie [label]="\'logOnConsole\'" [propertie]="logOnConsole"></state-propertie>\n <state-propertie [label]="\'inizializzazioneTerminata\'" [propertie]="inizializzazioneTerminata"></state-propertie>\n</debug-pre>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],W.ctorParameters=function(){return[{type:r.DomSanitizer},{type:t.ChangeDetectorRef},{type:o.HttpClient}]},W.propDecorators={url:[{type:t.Input}],domainUrl:[{type:t.Input}],logoutUrl:[{type:t.Input}],html:[{type:t.Input}]};var J=function(e){function t(t,n,i){var a=e.call(this,n)||this;return a.sanitizer=t,a.cdr=n,a.http=i,a.MAX_SM=755,a.domainUrl="",a.inizializzazioneTerminata=!1,a.menuSecondarioElencoAperto=!1,a.logPrefix="[inail-menu-intranet]",a.detach(),a}return P(t,e),t.prototype.ngOnChanges=function(t){var n,i;e.prototype.ngOnChanges.call(this,t),(null===(n=null==t?void 0:t.url)||void 0===n?void 0:n.currentValue)&&!(null===(i=null==t?void 0:t.html)||void 0===i?void 0:i.currentValue)&&(t.url.firstChange&&this.emitDebug("Inizializzazione Menu intranet"),this.recupera()),this.cdr.detectChanges()},t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this),this.html?(this.innerHtml=this.sanitizer.bypassSecurityTrustHtml(this.html),this.inizializzazioneTerminata=!0,this.cdr.detectChanges()):this.url||(this.emitDebug("Inizializzazione Menu intranet, Url Menu intranet non specificato"),this.url=this.domainUrl+"/cs/internet/headersecondariointranet.html",this.recupera())},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t.prototype.apriOnClick=function(){this.menuSecondarioElencoAperto=!this.menuSecondarioElencoAperto,this.cdr.detectChanges()},t.prototype.recupera=function(){var e=this;this.emitDebug("Recupero menu intranet da: "+this.url),this.http.get(this.url,{responseType:"text"}).pipe(s.first(),s.finalize((function(){e.emitDebug("Menu intranet inizializzato!"),e.inizializzazioneTerminata=!0,e.cdr.detectChanges()}))).subscribe((function(t){e.innerHtml=e.sanitizer.bypassSecurityTrustHtml(t),e.emitDebug("Menu intranet recuperato!")}),(function(t){e.innerHtml=void 0,e.emitError("Errore nel recupero del Menu intranet"),e.emitError(t),e.emitWarn("Visualizzazione Menu intranet di default")}))},t}(T);J.decorators=[{type:t.Component,args:[{selector:"inail-menu-intranet",template:'<div class="inail-menu-intranet">\n <nav class="navbar col-xs-12 col-sm-7 col-md-6">\n <div class="navbar-header">\n <p class="navbar-toggle fa fa-2x fa-chevron-circle-down visible-xs pull-left"\n (keyup.enter)="apriOnClick()"\n (keyup.space)="apriOnClick()"\n (click)="apriOnClick()"\n tabindex="0">\n <span class="sr-only">Menu</span>\n </p>\n </div>\n <div id="menusecondarioelenco"\n class="navbar-collapse"\n [ngClass]="{\'collapsed\': !menuSecondarioElencoAperto}">\n <ul class="nav navbar-nav"\n *ngIf="this.innerHtml"\n [innerHtml]="this.innerHtml">\n </ul>\n <ul class="nav navbar-nav"\n *ngIf="!this.innerHtml">\n <li><a href="{{domainUrl}}/intracs/intranet/home.html">My Home</a></li>\n <li class="ESCMenuInternet"><a href="{{domainUrl}}/intracs/intranet/informazioni.html">Informazioni</a></li>\n <li><a href="{{domainUrl}}/intracs/intranet/strumenti.html">Strumenti</a></li>\n <li><a href="{{domainUrl}}/intracs/intranet/formazione.html">Formazione</a></li>\n </ul>\n </div>\n </nav>\n</div>\n<debug-pre *ngIf="showState">[inail-menu-intranet]<br>\n <state-propertie [label]="\'url\'" [propertie]="url"></state-propertie>\n <state-propertie [label]="\'domainUrl\'" [propertie]="domainUrl"></state-propertie>\n <state-propertie [label]="\'inizializzazioneTerminata\'" [propertie]="inizializzazioneTerminata"></state-propertie>\n</debug-pre>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,styles:["@media (max-width:991px){.inail-menu-intranet .navbar-toggle:focus{outline:1px dotted #fff}.inail-menu-intranet #menusecondarioelenco.collapsed{max-height:0;overflow:hidden;transition:max-height .4s ease-out}.inail-menu-intranet #menusecondarioelenco{overflow:hidden;transition:max-height .4s ease-out;max-height:500px}}"]}]}],J.ctorParameters=function(){return[{type:r.DomSanitizer},{type:t.ChangeDetectorRef},{type:o.HttpClient}]},J.propDecorators={url:[{type:t.Input}],domainUrl:[{type:t.Input}],html:[{type:t.Input}]};var Y=function(){this.domainUrl="",this.cdnEndpoint=""},Z=function(e){function n(n,i,a){var o=e.call(this,i)||this;return o.sanitizer=n,o.cdr=i,o.http=a,o.config={},o.checksession=new t.EventEmitter,o.datiDipendente=new t.EventEmitter,o.menuCercaUtenteAperto=!1,o.logPrefix="[inail-navigazione-utente]",o.detach(),o}return P(n,e),n.prototype.ngOnChanges=function(t){var n,i;e.prototype.ngOnChanges.call(this,t),(null===(n=null==t?void 0:t.config)||void 0===n?void 0:n.currentValue)&&!1===(null===(i=null==t?void 0:t.config)||void 0===i?void 0:i.isFirstChange())&&this.init(),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.init(),this.detectChange&&this.push(this.detectChange.subscribe((function(){return t.cdr.detectChanges()})))},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n.prototype.init=function(){return L(this,void 0,void 0,(function(){var e,t;return U(this,(function(n){switch(n.label){case 0:return null==this.config.assetsUrl&&(this.config.assetsUrl=this.config.intranet?j:H),!m(this.config.assetsUrl)&&f(this.config.assetsUrl)&&null!=this.config.cdnEndpoint&&(this.config.assetsUrl=this.config.cdnEndpoint+this.config.assetsUrl),this.config.apiGatewayUrl||(this.config.apiGatewayUrl=this.config.domainUrl+q),this.config.profiloUtenteUrl||(this.config.profiloUtenteUrl="/cs/intranet/home/consultazione/gestione-profilo.html"),this.infoDipendente?[3,3]:(this.infoDipendente={},this.config.recuperoAutomaticoDatiUtente?[4,this.recuperaDatiDipendente()]:[3,3]);case 1:return(e=n.sent())&&(this.datiDipendente.emit(e),this.infoDipendente.nome=e.nome,this.infoDipendente.cognome=e.cognome),t=this.infoDipendente,[4,this.recuperaFotoDipendente()];case 2:t.foto=n.sent(),n.label=3;case 3:return this._immagineProfilo=this.infoDipendente.foto?this.sanitizer.bypassSecurityTrustUrl("data:image/png;base64,"+this.infoDipendente.foto):this.urlFotoUtenteAnonimo,this.cdr.detectChanges(),[2]}}))}))},Object.defineProperty(n.prototype,"immagineProfilo",{get:function(){return this._immagineProfilo||this.urlFotoUtenteAnonimo},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"urlFotoUtenteAnonimo",{get:function(){var e;return this.config?(null===(e=this.config)||void 0===e?void 0:e.assetsUrl)+"/img/anonimo.jpg ":void 0},enumerable:!1,configurable:!0}),n.prototype.getMatricolaDipendente=function(){return L(this,void 0,void 0,(function(){var e;return U(this,(function(t){switch(t.label){case 0:return u(this.infoDipendente.matricola)?(e=this.infoDipendente,[4,this.recuperaMatricolaDipendente()]):[3,2];case 1:e.matricola=t.sent(),t.label=2;case 2:return[2,this.infoDipendente.matricola]}}))}))},n.prototype.recuperaMatricolaDipendente=function(){return L(this,void 0,void 0,(function(){var e,t,n,i;return U(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),t=this.config.apiGatewayUrl+"/checksession",this.emitDebug("Recupero matricola dipendente per Navigazione utente da "+t),[4,this.get(t).toPromise()];case 1:return n=a.sent(),this.checksession.emit(n),!0===(null==n?void 0:n.result)?e=n.User:403===(null==n?void 0:n["http-status"])?this.emitWarn("Utente non autenticato!"):this.emitError("Errore nel recupero della matricola dipendente"),[3,3];case 2:return i=a.sent(),this.emitError("Errore nel recupero della matricola dipendente"),this.emitError(i),[3,3];case 3:return[2,e]}}))}))},n.prototype.recuperaDatiDipendente=function(){return L(this,void 0,void 0,(function(){var e,t,n,i,a;return U(this,(function(o){switch(o.label){case 0:return[4,this.getMatricolaDipendente()];case 1:if(null==(e=o.sent()))return[3,5];n=this.config.apiGatewayUrl+"/au/dipendente/estrai-dati-dipendente?matricola="+e,o.label=2;case 2:return o.trys.push([2,4,,5]),this.emitDebug("Recupero dati dipendente per Navigazione utente da "+n),[4,this.get(n).toPromise()];case 3:return(i=o.sent())&&i.dipendente&&0!=i.dipendente.length&&i.dipendente[0]?t=i.dipendente[0]:this.emitError("Dipendente non trovato"),[3,5];case 4:return a=o.sent(),this.emitError("Errore nel recupero dei dati dipendente"),this.emitError(a),[3,5];case 5:return[2,t]}}))}))},n.prototype.recuperaFotoDipendente=function(){return L(this,void 0,void 0,(function(){var e,t,n,i,a;return U(this,(function(o){switch(o.label){case 0:return[4,this.getMatricolaDipendente()];case 1:if(null==(e=o.sent()))return[3,5];n=this.config.apiGatewayUrl+"/au/dipendente/estrai-foto-dipendente?matricola="+e,o.label=2;case 2:return o.trys.push([2,4,,5]),this.emitDebug("Recupero foto dipendente per Navigazione utente da "+n),[4,this.get(n).toPromise()];case 3:return(i=o.sent())&&i.fotoDipendente&&0!=i.fotoDipendente.length&&i.fotoDipendente[0]?t=i.fotoDipendente[0].foto:this.emitError("Foto dipendente non trovata"),[3,5];case 4:return a=o.sent(),this.emitError("Errore nel recupero della foto dipendente"),this.emitError(a),[3,5];case 5:return[2,t]}}))}))},n.prototype.get=function(e){var t=this,n=(new o.HttpHeaders).set("client_id",this.config.clientId);return this.http.get(e,{headers:n,withCredentials:!0}).pipe(s.first(),s.finalize((function(){t.cdr.detectChanges()})),s.tap((function(e){t.emitDebug("Risposta richiesta get:"),t.emitDebug(e)})))},n.prototype.onCercaUtenteSubmit=function(){var e=this.config.cercaPersonePageUrl||this.config.domainUrl+"/csintra/intranet/home/consultazione/cerca-persone-e-strutture/cerca-persone-fp.html";location.href=e+"?campo_unico_menu="+this.testoRicercaUtente+"&_authkey_=null&cerca=cercaHeader"},n.prototype.apriOnClick=function(){this.menuCercaUtenteAperto=!this.menuCercaUtenteAperto,this.cdr.detectChanges()},n}(T);Z.decorators=[{type:t.Component,args:[{selector:"inail-navigazione-utente",template:'<div class="inail-navigazione-utente">\n <div id="menusecondario"\n class="row">\n\n \x3c!-- Informazioni Utente loggato --\x3e\n \x3c!-- <inail-informazioni-utente></inail-informazioni-utente>--\x3e\n <nav class="navbar navbar-utente col-xs-12 col-sm-3 col-md-4">\n <div class="utente-loggato">\n <a href="{{this.config?.profiloUtenteUrl}}" title="Vai al profilo dell\'utente">\n <img class="visible-md visible-lg" alt="Immagine del profilo dell\'utente" [src]="this.immagineProfilo">\n <span class="lync available">utente online</span>\n <span class="utente-loggato-nome">{{this.infoDipendente?.nome}} {{this.infoDipendente?.cognome}}</span>\n \x3c!-- TODO: Inserire il ruolo vero --\x3e\n <span class="utente-loggato-ruolo hidden">dipendente</span>\n </a>\n </div>\n </nav>\n\n \x3c!-- Menu Intranet recuperato da WCS --\x3e\n <inail-menu-intranet *ngIf="this.config?.intranet === true"\n [url]="this.config?.menuIntranetUrl"\n [html]="config?.menuIntranetHtml"\n [domainUrl]="this.config?.domainUrl"\n [logOnConsole]="this.logOnConsole"\n (log)="emit($event)">\n </inail-menu-intranet>\n\n \x3c!-- Notifiche utente loggato --\x3e\n <nav *ngIf="config?.visualizzaMenuCercaUtente === true || config?.visualizzaNotificheUtente === true"\n class="navbar pull-right">\n <div class="notifiche-utente">\n <a *ngIf="config.visualizzaNotificheUtente === true"\n class="strumenti-profilo"\n title="Vai alla sezione Contatti"\n href="javascript:void(0)">\n <span class="fa fa-globe fa-2x">\n <span class="hidden">Contatti</span>\n </span>\n <span id="notifica-social" class="notifica-social hidden">0</span>\n </a>\n <a *ngIf="config?.visualizzaMenuCercaUtente === true"\n class="strumenti-profilo"\n title="Vai alla sezione Cerca Contatti"\n href="javascript:void(0)"\n (keyup.space)="apriOnClick()"\n (click)="apriOnClick()">\n <span class="fa-stack">\n <span class="fa fa-user fa-stack-2x"></span>\n <span class="fa-stack-lg">\n <span class="fa fa-circle fa-stack-1x"></span>\n <span class="fa fa-search fa-stack-lg"></span>\n </span>\n <span class="hidden">Cerca Contatti</span>\n </span>\n </a>\n </div>\n </nav>\n </div>\n\n \x3c!-- Menu cerca utente --\x3e\n <div *ngIf="config?.visualizzaMenuCercaUtente === true"\n #menucercautente\n class="row"\n [ngClass]="{\'collapsed\': !menuCercaUtenteAperto}"\n id="menucercautente"\n role="search"\n [attr.aria-expanded]="menuCercaUtenteAperto">\n <form (ngSubmit)="onCercaUtenteSubmit()"\n method="get"\n class="navbar-form col-xs-12 searchsite utente ng-pristine ng-valid">\n <h2 class="hidden">Cerca utente</h2>\n <p class="form-group">\n <label class="hidden" for="testoricercautente">Parametro di ricerca</label>\n <input id="testoricercautente"\n class="form-control"\n placeholder="Cerca utente"\n title="inserisci il parametro da cercare su tutto il sito"\n type="text"\n name="campo_unico_menu"\n [attr.tabindex]="menuCercaUtenteAperto ? \'0\' : \'-1\'"\n [(ngModel)]="testoRicercaUtente">\n <button type="submit"\n class="btn btn-default"\n [attr.tabindex]="menuCercaUtenteAperto ? \'0\' : \'-1\'">Cerca</button>\n </p>\n </form>\n </div>\n</div>\n\n\n<debug-pre *ngIf="showState">[inail-navigazione-utente]<br>\n <state-propertie [label]="\'testoRicercaUtente\'" [propertie]="testoRicercaUtente"></state-propertie>\n <state-propertie [label]="\'logOnConsole\'" [propertie]="logOnConsole"></state-propertie>\n <state-propertie [label]="\'urlFotoUtenteAnonimo\'" [propertie]="urlFotoUtenteAnonimo"></state-propertie>\n <state-propertie [label]="\'config\'" [propertie]="config"></state-propertie>\n <state-propertie [label]="\'infoDipendente\'" [propertie]="infoDipendente"></state-propertie>\n</debug-pre>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,styles:[".inail-navigazione-utente #menucercautente.collapsed{max-height:0;overflow:hidden;transition:max-height .2s ease}.inail-navigazione-utente #menucercautente{overflow:hidden;transition:max-height .2s ease;max-height:63px}@media (max-width:991px){.inail-navigazione-utente #menucercautente{max-height:143px}}"]}]}],Z.ctorParameters=function(){return[{type:r.DomSanitizer},{type:t.ChangeDetectorRef},{type:o.HttpClient}]},Z.propDecorators={config:[{type:t.Input}],infoDipendente:[{type:t.Input}],checksession:[{type:t.Output}],datiDipendente:[{type:t.Output}]};var X=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.checksession=new t.EventEmitter,i.datiDipendente=new t.EventEmitter,i.inizializzazioneCompletata=!1,i.logPrefix="[inail-header]",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(e){this.emitDebug("ngOnChanges"),this.emitDebug(e),this.cdr.detectChanges()},n.prototype.ngAfterViewInit=function(){this.logoInail.nativeElement.focus()},n.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.emitDebug("config"),this.emitDebug(this.config),this.config||(this.config={clientId:""}),u(this.config.domainUrl)&&(this.config.domainUrl=""),u(this.config.cdnEndpoint)&&(this.config.cdnEndpoint=""),u(this.config.assetsUrl)&&(d(this.config.cdnEndpoint)?this.config.assetsUrl=_:this.config.assetsUrl=this.config.intranet?j:H),!m(this.config.assetsUrl)&&f(this.config.assetsUrl)&&null!=this.config.cdnEndpoint&&(this.config.assetsUrl=this.config.cdnEndpoint+this.config.assetsUrl),this.configurazioniNavigazioneUtente={apiGatewayUrl:this.config.apiGatewayUrl,clientId:this.config.clientId,domainUrl:this.config.domainUrl,assetsUrl:this.config.assetsUrl,cdnEndpoint:this.config.cdnEndpoint,intranet:this.config.intranet,menuIntranetUrl:this.config.menuIntranetUrl,menuIntranetHtml:this.config.menuIntranetHtml,profiloUtenteUrl:this.config.profiloUtenteUrl,visualizzaNotificheUtente:this.config.visualizzaNotificheUtente,visualizzaMenuCercaUtente:this.config.visualizzaMenuCercaUtente,cercaPersonePageUrl:this.config.cercaPersonePageUrl,recuperoAutomaticoDatiUtente:this.config.recuperoAutomaticoDatiUtente},this.detectChange&&this.push(this.detectChange.subscribe((function(){return t.cdr.detectChanges()}))),this.inizializzazioneCompletata=!0,this.cdr.detectChanges()},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n}(T);X.decorators=[{type:t.Component,args:[{selector:'header[id="inail-header"]',template:'<h1>INAIL - Istituto Nazionale per l\'Assicurazione contro gli Infortuni sul Lavoro</h1>\n<a *ngIf="inizializzazioneCompletata"\n href="{{config?.domainUrl}}/cs/internet/home.html"\n id="logo-inail-header"\n #logoInail\n title="torna alla homepage INAIL">\n <img src="{{config?.assetsUrl}}/img/LogoInail.svg"\n alt="INAIL - Istituto Nazionale per l\'Assicurazione contro gli Infortuni sul Lavoro"\n class="img-responsive">\n</a>\n\n\x3c!-- Navigazione interna --\x3e\n<inail-navigazione-interna></inail-navigazione-interna>\n\n<hr class="hidden">\n\n\x3c!-- Menu di navigazione principale recuperato da WCS (Barra blu con pulsante esci) --\x3e\n<inail-navigazione-principale [url]="this.config?.navigazionePrincipaleUrl"\n [html]="this.config?.navigazionePrincipaleHtml"\n [domainUrl]="this.config?.domainUrl"\n [logoutUrl]="this.config?.logoutUrl"\n [logOnConsole]="this.logOnConsole"\n (log)="emit($event)">\n</inail-navigazione-principale>\n\n<p class="hidden">\n <a href="#navinterna"\n title="torna alla navigazione interna alla pagina">Torna alla navigazione interna</a>\n</p>\n\n\x3c!-- Menu di navigazione utente loggato (Barra verde) --\x3e\n<inail-navigazione-utente *ngIf="configurazioniNavigazioneUtente"\n [config]="configurazioniNavigazioneUtente"\n [infoDipendente]="this.infoDipendente"\n [logOnConsole]="this.logOnConsole"\n (checksession)="checksession.emit($event)"\n (datiDipendente)="datiDipendente.emit($event)"\n (log)="emit($event)">\n</inail-navigazione-utente>\n<debug-pre *ngIf="showState">[inail-header]<br>\n <state-propertie [label]="\'logOnConsole\'" [propertie]="logOnConsole"></state-propertie>\n <state-propertie [label]="\'infoDipendente\'" [propertie]="infoDipendente"></state-propertie>\n <state-propertie [label]="\'config\'" [propertie]="config"></state-propertie>\n <state-propertie [label]="\'configurazioniNavigazioneUtente\'" [propertie]="configurazioniNavigazioneUtente"></state-propertie>\n</debug-pre>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],X.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},X.propDecorators={config:[{type:t.Input}],infoDipendente:[{type:t.Input}],checksession:[{type:t.Output}],datiDipendente:[{type:t.Output}],logoInail:[{type:t.ViewChild,args:["logoInail"]}]};var Q=function(){},K=function(e){function t(t){var n=e.call(this,t)||this;return n.cdr=t,n.logPrefix="[inail-loader]",n.detach(),n}return P(t,e),t.prototype.ngOnChanges=function(e){this.cdr.detectChanges()},t.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.detectChange&&this.push(this.detectChange.subscribe((function(){return t.cdr.detectChanges()})))},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t}(T);K.decorators=[{type:t.Component,args:[{selector:"inail-loader",template:'<ng-container *ngIf="show">\n <div class="loader-overlay">\n <span class="fa fa-spinner fa-pulse fa-2x"></span>\n </div>\n</ng-container>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,styles:[".loader-hidden{visibility:hidden}.loader-overlay{position:fixed;background-color:rgba(0,46,95,.2);width:100%;height:100%;top:0;left:0;opacity:1;z-index:500000}.fa.fa-spinner{position:fixed;top:50%;left:50%}"]}]}],K.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},K.propDecorators={show:[{type:t.Input}]};var ee=function(e){function t(t){var n=e.call(this,t)||this;return n.cdr=t,n.detach(),n}return P(t,e),t.prototype.ngOnInit=function(){},t.prototype.open=function(){},t}(T);ee.decorators=[{type:t.Component,args:[{selector:"inail-trigger-slider-menu-button",template:'<button id="trigger-slider-menu"\n (click)="open()"\n class="pull-left"\n aria-label="Apre il menù laterale"\n aria-expanded="false"\n aria-controls="navigazionesecondaria">\n <span class="fa fa-2x fa-outdent"></span>\n</button>\n',encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],ee.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]};var te="stylesheet",ne="screen",ie="print",ae="text/css",oe="/assets/inail/static",re="/assets/inail/static-webkit",se=[{href:"/css/bootstrap.min.css",rel:te,type:ae,media:ne,assetUrl:oe},{href:"/css/foglia.css",rel:te,type:ae,media:ne,assetUrl:oe},{href:"/css/custom.css",rel:te,type:ae,media:ne,assetUrl:oe},{href:"/css/form.css",rel:te,type:ae,media:ne,assetUrl:oe},{href:"/css/font-awesome.min.css",rel:te,type:ae,media:ne,assetUrl:oe+"/font-awesome-4.3.0"},{href:"/js/datepicker/bootstrap-datepicker3.standalone.min.css",rel:te,type:ae,media:ne,assetUrl:oe},{href:"/css/home_sezione.css",rel:te,type:ae,media:ne,assetUrl:oe},{href:"/css/servizi.css",rel:te,type:ae,media:ne,assetUrl:oe},{href:"/css/intranet.css",rel:te,type:ae,media:ne,assetUrl:oe},{href:"/css/jquery-ui.css",rel:te,type:ae,media:ne,assetUrl:oe},{href:"/css/print.css",rel:te,type:ae,media:ie,assetUrl:oe},{href:"/css/print_intranet.css",rel:te,type:ae,media:ie,assetUrl:"/assets/inail/static_intra"},{href:"/css/custom-webkit.css",rel:te,type:ae,media:ne,assetUrl:re},{href:"/css/slick/slick.css",rel:te,type:ae,media:ne,assetUrl:re}],le=function(){},ce=function(e){var t;return e&&((t=C(e)).label=e.label,t.link=e.link,t.linkRegex=e.linkRegex,t.callback=e.callback,t.show=e.show,t.parent=ce(e.parent),t.subItems=pe(e.subItems)),t},pe=function(e){var t;return e&&(t=e.map((function(e){return ce(e)}))),t},ue=function(e){function i(i,a){var o=e.call(this,a)||this;return o.router=i,o.cdr=a,o.innerMenu=!1,o.disableLinkOverwriting=!1,o.collapsible=!1,o.collapseOther=!1,o.expandAutomatically=!0,o.select=new t.EventEmitter,o.currentItem=new t.EventEmitter,o.inizializzazioneCompletata=!1,o.mostraItem=new t.EventEmitter,o.menuHeight$=new c.BehaviorSubject(void 0),o.emitMenuHeight=function(){var e,t;if(o.isCollapsible()){var n=null===(t=null===(e=o.menu)||void 0===e?void 0:e.nativeElement)||void 0===t?void 0:t.scrollHeight,i=o.isCollapsed()?0:n;i>0?o.menuHeight$.next(i):(o.menuHeight$.next(n),setTimeout((function(){return o.menuHeight$.next(0)}),15)),setTimeout((function(){return o.menuHeight$.next(void 0)}),350)}},o.isCollapsible=function(){return o.innerMenu&&o.collapsible},o.isCollapsed=function(){return o.isCollapsible()&&o.collapsed},o.isItemCollapsible=function(e){return e.collapsible&&o.hasSubItems(e)},o.isItemCollapsed=function(e){return(null==e?void 0:e.collapsible)&&(null==e?void 0:e.collapsed)},o.hasSubItems=function(e){var t;return(null===(t=null==e?void 0:e.subItems)||void 0===t?void 0:t.length)>0},o.isActive=function(e){return o.activeItem?e.id==o.activeItem:o.isCurrentPageItem(e)},o.isCurrentPageItem=function(e){return o.isCurrentUrl(o.getItemLink(e))||o.isCurrentUrl(o.getItemLinkRegex(e))||null!=e.activeLinks&&e.activeLinks.some(o.isCurrentUrl)},o.showItem=function(e){return!0===e.show||null==e.show||n.isFunction(e.show)&&!0===e.show()||o.isAutoShowItem(e)},o.isAutoShowItem=function(e){return"auto"===e.show&&(o.isCurrentPageItem(e)||e.subItems&&e.subItems.some(o.isAutoShowItem))},o.getItemLink=function(e){return n.isFunction(e.link)?e.link():e.link},o.getItemLinkRegex=function(e){return n.isFunction(e.linkRegex)?e.linkRegex():e.linkRegex},o.getItemLabel=function(e){return n.isFunction(e.label)?e.label():e.label},o.isCurrentUrl=function(e){return null!=e&&null!=o.router.url.split("?")[0].match(new RegExp("^".concat(e).concat("$"),"i"))},o.impostaUrlEffettivo=function(e){!o.disableLinkOverwriting&&e&&o.isCurrentUrl(o.getItemLinkRegex(e))&&(e.link=o.router.url)},o.espandiMenu=function(){return o.setCollapsedMenu("show")},o.collassaMenu=function(){return o.setCollapsedMenu("hide")},o.espandiItem=function(e){return o.setCollapsed(e,"show")},o.collassaItem=function(e){return o.setCollapsed(e,"hide")},o.toggleItem=function(e){return o.setCollapsed(e,"toggle")},o.logPrefix="[inail-menu]",o}return P(i,e),i.prototype.ngOnChanges=function(t){var n,i,a,o,r,s,l=this;e.prototype.ngOnChanges.call(this,t),(null===(n=null==t?void 0:t.items)||void 0===n?void 0:n.currentValue)&&(this.innerMenu||(this.items=pe(null===(i=null==t?void 0:t.items)||void 0===i?void 0:i.currentValue),this.originalItems=pe(null===(a=null==t?void 0:t.items)||void 0===a?void 0:a.currentValue)),this.inizializzaItems(this.items),this.emitCurrentItem()),(null===(o=null==t?void 0:t.emitCurrent)||void 0===o?void 0:o.currentValue)&&this.push(t.emitCurrent.currentValue.subscribe((function(){return l.emitCurrentItem()}))),(null==t?void 0:t.collapsed)&&!(null==t?void 0:t.collapsed.isFirstChange())&&this.emitMenuHeight(),t.collapse&&t.collapse.currentValue&&this.push(t.collapse.currentValue.subscribe((function(e){null==e?l.collassaMenu():l.collassaItem(l.findItem(e,l.items))}))),(null===(r=null==t?void 0:t.show)||void 0===r?void 0:r.currentValue)&&this.push(t.show.currentValue.subscribe((function(e){null==e?l.espandiMenu():l.espandiPercorso(e)}))),(null===(s=null==t?void 0:t.toggle)||void 0===s?void 0:s.currentValue)&&this.push(t.toggle.currentValue.subscribe((function(e){return l.toggleItem(l.findItem(e,l.items))})))},i.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),!1===this.collapsible&&(this.collapsed=!1),null==this.collapsed&&(this.collapsed=!0===this.collapsible),this.inizializzazioneCompletata=!0,this.emitCurrentItem(),this.push(this.router.events.pipe(s.filter((function(e){return e instanceof l.NavigationEnd}))).subscribe((function(){t.impostaUrlEffettivi(t.items),t.emitCurrentItem()}))),this.reinit&&this.push(this.reinit.subscribe((function(e){t.emitDebug("Reinit!"),t.items=pe(e||t.originalItems),e&&(t.originalItems=pe(e)),t.inizializzaItems(t.items)})))},i.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},i.prototype.inizializzaItems=function(e){var t=this;(null==e?void 0:e.length)&&(e.forEach((function(e){null==e.id&&(e.id=k()),null==e.show&&(e.show=!0),null==e.collapsible&&(e.collapsible=t.collapsible),0==e.collapsible&&(e.collapsed=!1),null==e.collapsed&&(e.collapsed=null==t.collapsed?1==e.collapsible:t.collapsed)})),this.setParent(e,this.parent),this.impostaUrlEffettivi(e))},i.prototype.impostaUrlEffettivi=function(e){(null==e?void 0:e.length)&&e.forEach(this.impostaUrlEffettivo)},i.prototype.emitCurrentItem=function(){var e=this.findCurrentItem(this.items);null!=e&&(this.impostaUrlEffettivo(e),this.emitDebug("Emissione item menu url corrente:"),this.emitDebug(e),this.currentItem.emit(e))},i.prototype.findCurrentItem=function(e){var t=this,n=void 0;return(null==e?void 0:e.length)&&e.forEach((function(e){null==n&&null!=e&&t.isCurrentPageItem(e)&&(n=e)})),n},i.prototype.findItem=function(e,t){var n=this,i=void 0;return(null==t?void 0:t.length)&&t.forEach((function(t){null==i&&null!=t&&(i=t.id==e?t:n.findItem(e,t.subItems))})),i},i.prototype.espandiPercorso=function(e){var t=this;this.items&&this.items.forEach((function(n){var i=t.findItem(e,n.subItems);(null==n?void 0:n.id)!=e&&null==i||(t.espandiItem(n),t.collapseOther&&t.doCollapseOther(n),i&&setTimeout((function(){return t.mostraItem.emit(e)}),350))}))},i.prototype.setCollapsedMenu=function(e){var t=this;this.items&&this.items.forEach((function(n){return t.setCollapsed(n,e)}))},i.prototype.setCollapsed=function(e,t){if(e&&e.collapsible)switch(t){case"hide":e.collapsed=!0;break;case"show":e.collapsed=!1;break;default:case"toggle":e.collapsed=!e.collapsed}},i.prototype.setParent=function(e,t){var n=this;(null==e?void 0:e.length)&&t&&e.forEach((function(e){null!=e&&(e.parent=n.toLightItem(t),n.setParent(e.subItems,e))}))},i.prototype.toLightItem=function(e){return null!=e?{id:e.id,label:e.label,link:e.link,parent:this.toLightItem(e.parent)}:void 0},i.prototype.itemOnClick=function(e){e&&(e.callback&&n.isFunction(e.callback)&&e.callback(),e.collapsible&&(e.collapsed=!e.collapsed,!1===e.collapsed&&!0===this.collapseOther&&this.doCollapseOther(e))),this.select.emit(e)},i.prototype.doCollapseOther=function(e){e&&this.items.forEach((function(t){t&&t.id!=e.id&&(t.collapsed=!0)}))},i.prototype.currentItemHandler=function(e,t){e&&(this.currentItem.emit(e),!0!==this.expandAutomatically||this.innerMenu||this.espandiPercorso(e.id))},i.prototype.collapsedOnChange=function(){},i.prototype.itemOnArrowDown=function(){var e,t=this.focusableItems;null===(e=t.filter((function(e){return e>t.index(document.activeElement)})).first())||void 0===e||e.focus()},i.prototype.itemOnArrowUp=function(){var e,t=this.focusableItems;null===(e=t.filter((function(e){return e<t.index(document.activeElement)})).last())||void 0===e||e.focus()},Object.defineProperty(i.prototype,"focusableItems",{get:function(){return window.$("body").find('ul.inail-menu > li > a:not([tabindex="-1"])')},enumerable:!1,configurable:!0}),i}(R);ue.decorators=[{type:t.Component,args:[{selector:"inail-menu",template:'<ng-container *ngIf="inizializzazioneCompletata">\n\n <ul #menu\n id="{{id}}"\n [attr.role]="\'menu\'"\n class="inail-menu {{class}}"\n [ngStyle]="{\'height.px\': (menuHeight$ | async)}"\n [ngClass]="{\'livello_2\': innerMenu, \'collapsed\': isCollapsed()}">\n\n <debug-pre *ngIf="showState">[inail-menu-intranet]<br>\n <state-propertie [label]="\'id\'" [propertie]="id"></state-propertie>\n <state-propertie [label]="\'innerMenu\'" [propertie]="innerMenu"></state-propertie>\n <state-propertie [label]="\'collapsible\'" [propertie]="collapsible"></state-propertie>\n <state-propertie [label]="\'collapsed\'" [propertie]="collapsed"></state-propertie>\n <state-propertie [label]="\'collapseOther\'" [propertie]="collapseOther"></state-propertie>\n \x3c!-- {{elements | json}}--\x3e\n </debug-pre>\n\n <ng-container *ngFor="let item of items">\n\n <li *ngIf="showItem(item)"\n [attr.role]="item.link ? \'menuitem\' : undefined"\n [ngClass]="{selected: isActive(item)}"\n class="livello_1">\n <a *ngIf="item.link"\n [id]="item.id"\n [attr.tabindex]="isCollapsed() ? \'-1\' : \'0\'"\n [routerLink]="getItemLink(item)"\n [queryParams]="item.queryParams"\n [innerHTML]="getItemLabel(item)"\n [attr.aria-expanded]="isItemCollapsible(item) ? !item.collapsed : undefined"\n (click)="itemOnClick(item)"\n (keyup.arrowUp)="itemOnArrowUp()"\n (keyup.arrowDown)="itemOnArrowDown()"\n (keyup.space)="itemOnClick($event)">\n </a>\n <a *ngIf="!item.link"\n [id]="item.id"\n [attr.tabindex]="isCollapsed() ? \'-1\' : \'0\'"\n role="button"\n [innerHTML]="getItemLabel(item)"\n [attr.aria-expanded]="isItemCollapsible(item) ? !item.collapsed : undefined"\n (click)="itemOnClick(item)"\n (keyup.arrowUp)="itemOnArrowUp()"\n (keyup.arrowDown)="itemOnArrowDown()"\n (keyup.enter)="itemOnClick(item)"\n (keyup.space)="itemOnClick(item)">\n </a>\n <debug-pre *ngIf="showState">[menu-item]<br>\n <state-propertie [label]="\'id\'" [propertie]="item.id"></state-propertie>\n <state-propertie [label]="\'collapsible\'" [propertie]="item.collapsible"></state-propertie>\n <state-propertie [label]="\'collapsed\'" [propertie]="item.collapsed"></state-propertie>\n \x3c!-- {{element | json}}--\x3e\n </debug-pre>\n <inail-menu *ngIf="hasSubItems(item)"\n [id]="item.id+\'-items\'"\n [activeItem]="activeItem"\n [items]="item.subItems"\n [parent]="item"\n [innerMenu]="true"\n [emitCurrent]="emitCurrent"\n [collapsible]="item.collapsible"\n [collapsed]="item.collapsed"\n [collapseOther]="collapseOther"\n [collapse]="collapse"\n [toggle]="toggle"\n [show]="mostraItem"\n [showState]="showState"\n (select)="select.emit($event)"\n (currentItem)="currentItemHandler($event, item)">\n </inail-menu>\n </li>\n </ng-container>\n </ul>\n</ng-container>\n\n\n',encapsulation:t.ViewEncapsulation.None,styles:["ul.inail-menu{padding:0 10px!important;overflow:hidden;transition:height .3s ease-out}ul.inail-menu.collapsed{height:0}ul.inail-menu ul{padding:0!important}"]}]}],ue.ctorParameters=function(){return[{type:l.Router},{type:t.ChangeDetectorRef}]},ue.propDecorators={parent:[{type:t.Input}],innerMenu:[{type:t.Input}],activeItem:[{type:t.Input}],emitCurrent:[{type:t.Input}],collapse:[{type:t.Input}],show:[{type:t.Input}],showAll:[{type:t.Input}],toggle:[{type:t.Input}],items:[{type:t.Input}],reinit:[{type:t.Input}],collapsible:[{type:t.Input}],collapsed:[{type:t.Input}],collapseOther:[{type:t.Input}],expandAutomatically:[{type:t.Input}],select:[{type:t.Output}],currentItem:[{type:t.Output}],menu:[{type:t.ViewChild,args:["menu"]}]};var de,he="on-error-btn",ge=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.onclick=new t.EventEmitter,i.setFocusOnError=!1,i.logPrefix="[inail-button]",i}return P(n,e),n.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.visualizzaContent=u(this.label),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.logPrefix=this.logPrefix+"["+this.label+"]",this.focus&&this.push(this.focus.subscribe((function(e){return t.setFocus(e)}))),this.visualizzaContent=u(this.label),this.cdr.detectChanges()},n.prototype.ngAfterViewInit=function(){this.cdr.detectChanges()},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n.prototype.onClick=function(e){this.onclick.emit(e)},n.prototype.setFocus=function(e){this.emitDebug("Catch focus!"),z(this.buttonElement.nativeElement,e)},n}(R);ge.decorators=[{type:t.Component,args:[{selector:"inail-button",template:'<button #buttonElement\n [type]="submit ? \'submit\' : \'button\'"\n [id]="id"\n [attr.title]="getNotBlankValue(title)"\n [attr.name]="getNotBlankValue(name)"\n [disabled]="disabled"\n class="btn inail-button {{class}}"\n [ngClass]="{\'btn-success\': btnSuccess, \'btn-link\': btnLink, \'btn-primary\': !btnLink, \'on-error-btn\': setFocusOnError}"\n (click)="onClick($event)">\n <span *ngIf="angleLeft" class=\'fa left fa-angle-left\'></span>\n <span *ngIf="iconLeft" class=\'fa\' [ngClass]="iconLeft"></span>\n <span *ngIf="!visualizzaContent" class="{{labelClass}}" [innerHTML]="label"></span>\n <span #buttonContent *ngIf="visualizzaContent" class="{{labelClass}}">\n <ng-content></ng-content>\n </span>\n <span *ngIf="iconRight" class=\'fa\' [ngClass]="iconRight"></span>\n <span *ngIf="angleRight" class=\'fa fa-angle-right right\'></span>\n</button>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,styles:[".inail-button:focus{outline-color:#fff!important}.inail-button.btn-link:focus{outline-color:#106cdb!important}"]}]}],ge.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},ge.propDecorators={label:[{type:t.Input}],title:[{type:t.Input}],name:[{type:t.Input}],disabled:[{type:t.Input}],labelClass:[{type:t.Input}],btnSuccess:[{type:t.Input}],btnLink:[{type:t.Input}],submit:[{type:t.Input}],angleRight:[{type:t.Input}],angleLeft:[{type:t.Input}],iconLeft:[{type:t.Input}],iconRight:[{type:t.Input}],focus:[{type:t.Input}],onclick:[{type:t.Output}],setFocusOnError:[{type:t.Input}],buttonElement:[{type:t.ViewChild,args:["buttonElement"]}],buttonContent:[{type:t.ViewChild,args:["buttonContent"]}]},(de=e.SetFocusStrategy||(e.SetFocusStrategy={}))[de.OnGlobalFeedback=0]="OnGlobalFeedback",de[de.OnFirstPageError=1]="OnFirstPageError";var me=function(){this.setFocusStrategy=e.SetFocusStrategy.OnGlobalFeedback},fe=function(e){function i(n,i,a,o,r){var s=e.call(this,o)||this;return s.renderer=n,s.http=i,s._elementRef=a,s.cdr=o,s.router=r,s.checksession=new t.EventEmitter,s.datiDipendente=new t.EventEmitter,s.breadcrumbEsterno=!0,s.risorseEsterneCounter=0,s.scriptEsterniCounter=0,s.caricamentoRisorseEsterneTerminato=!1,s.caricamentoScriptEsterniTerminato=!1,s.inizializzazioneTerminata=!1,s.toggleNavSecondaria=new t.EventEmitter,s.itsReady=function(){return!0===s.inizializzazioneTerminata&&!0===s.caricamentoRisorseEsterneTerminato},s.logPrefix="[inail-layout]",s.detach(),s}return P(i,e),i.prototype.onClick=function(e){this.config.focusOnError&&Ie(e)&&(this.emitDebug("Error button clicked"),Oe(this.config.setFocusStrategy,this.config.scrollToError))},i.prototype.ngOnChanges=function(e){var t;this.emitDebug("changes"),this.emitDebug(e),(null===(t=null==e?void 0:e.infoDipendente)||void 0===t?void 0:t.currentValue)&&this.cdr.detectChanges()},i.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this),this.init()},i.prototype.init=function(){var e,t;return L(this,void 0,void 0,(function(){return U(this,(function(n){switch(n.label){case 0:return this.emitDebug("init..."),this.removeNgVersion(this._elementRef.nativeElement),this.config?(this.emitDebug("Configurazioni InailLayoutComponent"),this.emitDebug(this.config),this.config.cdnEndpoint||!0!==this.config.recuperoAutomaticoCdnEnpoint?[3,2]:[4,this.recuperaCdnEnpoint()]):[3,3];case 1:n.sent(),n.label=2;case 2:this.headerConfig={clientId:this.config.clientId,domainUrl:this.config.domainUrl,apiGatewayUrl:this.config.apiGatewayUrl,assetsUrl:this.config.assetsUrl,intranet:this.config.intranet,logoutUrl:this.config.logoutUrl,cdnEndpoint:this.config.cdnEndpoint,menuIntranetUrl:this.config.menuIntranetUrl,menuIntranetHtml:this.config.menuIntranetHtml,navigazionePrincipaleUrl:this.config.navigazionePrincipaleUrl,navigazionePrincipaleHtml:this.config.navigazionePrincipaleHtml,profiloUtenteUrl:this.config.profiloUtenteUrl,visualizzaNotificheUtente:this.config.visualizzaNotificheUtente,visualizzaMenuCercaUtente:this.config.visualizzaMenuCercaUtente,cercaPersonePageUrl:this.config.cercaPersonePageUrl,recuperoAutomaticoDatiUtente:this.config.recuperoAutomaticoDatiUtente},n.label=3;case 3:return!0===(null===(e=this.config)||void 0===e?void 0:e.caricamentoDinamicoRisorseEsterne)?this.loadRisorseEsterne(this.externalResources||se,"link"):this.caricamentoRisorseEsterneTerminato=!0,(null===(t=this.config)||void 0===t?void 0:t.scrollTopAtNavigationEnd)&&this.push(this.router.events.pipe(s.filter((function(e){return e instanceof l.NavigationEnd}))).subscribe((function(){return E()}))),this.emitDebug("...inizializzazione terminata!"),this.inizializzazioneTerminata=!0,this.cdr.detectChanges(),[2]}}))}))},i.prototype.removeNgVersion=function(e){e&&((null==e?void 0:e.hasAttribute("ng-version"))?this.renderer.removeAttribute(e,"ng-version"):this.removeNgVersion(e.parentElement))},i.prototype.ngAfterViewInit=function(){var e,t=this;this.breadcrumbEsterno=!!this.breadcrumbContainer&&this.breadcrumbContainer.nativeElement.childElementCount>0,(null===(e=this.menuList)||void 0===e?void 0:e.length)>0&&this.menuList.forEach((function(e){t.push(e.currentItem.subscribe((function(e){t.emitDebug("Voce menu corrente"),t.emitDebug(e),null!=e&&(t.paginaCorrente=t.toPaginaApplicativa(e),t.cdr.detectChanges())})))})),this.cdr.detectChanges()},i.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},i.prototype.toPaginaApplicativa=function(e){return null!=e?{title:this.getElementLabel(e),url:this.getElementLink(e),parent:this.toPaginaApplicativa(e.parent)}:void 0},i.prototype.getElementLink=function(e){return n.isFunction(e.link)?e.link():e.link},i.prototype.getElementLabel=function(e){return n.isFunction(e.label)?e.label():e.label},i.prototype.recuperaCdnEnpoint=function(){return L(this,void 0,void 0,(function(){var e,t,n;return U(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),e=(m(this.config.apiGatewayUrl)?"":this.config.domainUrl||"")+(this.config.apiGatewayUrl||q)+"/.well-known/inail-configuration",this.emitDebug("Recupero cdn endpoint da: "+e),[4,this.http.get(e,{withCredentials:!0}).toPromise()];case 1:return t=i.sent(),this.config.cdnEndpoint=t.cdn_endpoint,[3,3];case 2:return n=i.sent(),this.emitError("Errore nel recupero del cdnEnpoint da api gateway"),this.emitError(n),[3,3];case 3:return[2]}}))}))},i.prototype.loadRisorseEsterne=function(e,t){return L(this,void 0,void 0,(function(){var n,i=this;return U(this,(function(a){switch(this.emitDebug("Load risorse esterne"),this.emitDebug(e),e.forEach((function(e){return i.impostaPathRisorsa(e,t)})),n=[],e.forEach((function(e){return n.push({loaded:!1,resource:e})})),t){case"link":this.risorseEsterneCounter=0,this.risorseEsterneTot=e.length,this.caricaRisorseEsterne(n)}return[2]}))}))},i.prototype.impostaPathRisorsa=function(e,t){var n;switch(t){case"link":n="href";break;case"script":n="src"}e.assetUrl=m(e[n])?"":e.assetUrl||this.config.assetsUrl||(this.config.intranet?j:H),e.cdnEndpoint=m(e.assetUrl)?"":e.cdnEndpoint||this.config.cdnEndpoint||""},i.prototype.caricaRisorseEsterne=function(e,t){return void 0===t&&(t=0),L(this,void 0,void 0,(function(){var t=this;return U(this,(function(n){return e&&e.length>0&&e.forEach((function(e){t.emitDebug("Caricamento risorsa esterna:"),t.emitDebug(e),t.creaElementoRisorsaEsterna(e,"link").then((function(e){t.emitDebug("...caricamento risorsa esterna completato"),t.emitDebug(e)}),(function(e){t.emitError("Errore caricamento risorsa esterna!"),t.emitError(e)}))})),[2]}))}))},i.prototype.creaElementoRisorsaEsterna=function(e,t){return L(this,void 0,void 0,(function(){var n=this;return U(this,(function(i){return[2,new Promise((function(i,a){var o=e.resource.src||e.resource.href;if(e.loaded)i({resource:o,loaded:!0,status:"Already Loaded"});else{var r;switch(t){case"script":r=be(e.resource);break;case"link":r=ve(e.resource)}r.readyState?r.onreadystatechange=function(){"loaded"!==r.readyState&&"complete"!==r.readyState||(n.risorsaOnLoad(t),r.onreadystatechange=null,e.loaded=!0,i({resource:o,loaded:!0,status:"Loaded"}))}:r.onload=function(){n.risorsaOnLoad(t),e.loaded=!0,i({resource:o,loaded:!0,status:"Loaded"})},r.onerror=function(i){n.risorsaOnLoad(t),a({resource:e.resource,loaded:!1,status:"Loaded"})},document.head.appendChild(r)}}))]}))}))},i.prototype.risorsaOnLoad=function(e){switch(e){case"script":this.scriptEsterniCounter++,this.caricamentoScriptEsterniTerminato=this.scriptEsterniCounter===this.scriptEsterniTot;break;case"link":this.risorseEsterneCounter++,this.caricamentoRisorseEsterneTerminato=this.risorseEsterneCounter===this.risorseEsterneTot}this.caricamentoRisorseEsterneTerminato&&this.cdr.detectChanges()},i}(T);fe.decorators=[{type:t.Component,args:[{selector:"inail-layout",template:'<inail-loader [show]="showLoader"></inail-loader>\n<debug-pre *ngIf="showState">[inail-layout]<br>\n <state-propertie [label]="\'config\'" [propertie]="config"></state-propertie>\n <state-propertie [label]="\'infoDipendente\'" [propertie]="infoDipendente"></state-propertie>\n <state-propertie [label]="\'inizializzazioneTerminata\'" [propertie]="inizializzazioneTerminata"></state-propertie>\n <state-propertie [label]="\'caricamentoRisorseEsterneTerminato\'" [propertie]="caricamentoRisorseEsterneTerminato"></state-propertie>\n <state-propertie [label]="\'caricamentoScriptEsterniTerminato\'" [propertie]="caricamentoScriptEsterniTerminato"></state-propertie>\n <state-propertie [label]="\'itsReady\'" [propertie]="itsReady()"></state-propertie>\n <state-propertie [label]="\'breadcrumbEsterno\'" [propertie]="breadcrumbEsterno"></state-propertie>\n <state-propertie [label]="\'paginaCorrente\'" [propertie]="paginaCorrente"></state-propertie>\n</debug-pre>\n<div *ngIf="!itsReady()" class="please-wait">\n <div *ngIf="config?.appName" class="app-name">{{config.appName}}</div>\n <div>Caricamento in corso ...</div>\n</div>\n<ng-content *ngIf="!itsReady()"\n select="[please-wait]">\n</ng-content>\n<div class="container"\n [hidden]="!itsReady()"\n [ngClass]="{\'wide\' : config && config.containerWide}">\n\n <header id="inail-header"\n *ngIf="inizializzazioneTerminata"\n [config]="headerConfig"\n [showState]="false"\n [infoDipendente]="this.infoDipendente"\n [logOnConsole]="this.logOnConsole"\n (checksession)="checksession.emit($event)"\n (datiDipendente)="datiDipendente.emit($event)"\n (log)="emit($event)">\n </header>\n\n \x3c!-- Breadcrumb --\x3e\n <div class="row breadcrumbs internet-breadcrumb"\n aria-label="Breadcrumb"\n #breadcrumbContainer>\n <ng-container *ngIf="breadcrumbEsterno" breadcrumb>\n <ng-content select="[breadcrumb]"></ng-content>\n </ng-container>\n <inail-breadcrumb *ngIf="!breadcrumbEsterno"\n [logOnConsole]="this.logOnConsole"\n [currentPage]="paginaCorrente"\n (log)="emit($event)">\n </inail-breadcrumb>\n </div>\n\n <inail-trigger-slider-menu-button (click)="toggleNavSecondaria.emit()"></inail-trigger-slider-menu-button>\n\n <div class="row">\n\n <inail-navigazione-secondaria [toggle]="toggleNavSecondaria"\n [logOnConsole]="logOnConsole"\n (log)="emit($event)">\n\n <ng-container sidebar-superiore>\n <ng-content select="[sidebar-superiore]"></ng-content>\n </ng-container>\n\n <ng-container sidebar-inferiore>\n <ng-content select="[sidebar-inferiore]"></ng-content>\n </ng-container>\n\n </inail-navigazione-secondaria>\n\n <main *ngIf="inizializzazioneTerminata"\n id="contenutoprincipale" class="col-xs-12 col-sm-8 col-lg-9">\n\n <div class="row">\n <div class="content">\n\n <ng-content select="[main-content]"></ng-content>\n\n </div>\n </div>\n\n </main>\n\n </div>\n <inail-footer *ngIf="inizializzazioneTerminata"\n [url]="config?.footerUrl"\n [html]="config?.footerHtml"\n [domainUrl]="config?.domainUrl"\n [cdnEndpoint]="config?.cdnEndpoint"\n [assetsUrl]="config?.assetsUrl"\n [logOnConsole]="this.logOnConsole"\n (log)="emit($event)">\n </inail-footer>\n</div>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,styles:[".container.wide{max-width:100%!important}.please-wait div{text-align:center;font-size:14.4333px!important;line-height:1.42857143;font-family:sans-serif!important}div.please-wait div.app-name{margin-top:100px;color:#002e5f!important;font-size:24px!important}"]}]}],fe.ctorParameters=function(){return[{type:t.Renderer2},{type:o.HttpClient},{type:t.ElementRef},{type:t.ChangeDetectorRef},{type:l.Router}]},fe.propDecorators={showLoader:[{type:t.Input}],config:[{type:t.Input}],infoDipendente:[{type:t.Input}],externalResources:[{type:t.Input}],checksession:[{type:t.Output}],datiDipendente:[{type:t.Output}],breadcrumbContainer:[{type:t.ViewChild,args:["breadcrumbContainer"]}],menuList:[{type:t.ContentChildren,args:[ue]}],onClick:[{type:t.HostListener,args:["click",["$event.target"]]}]};var ve=function(e){var t=document.createElement("link"),n=e.cdnEndpoint+(d(e.cdnEndpoint)&&!f(e.assetUrl)?"/":"")+e.assetUrl+e.href;return ye(t,"rel",e.rel),ye(t,"type",e.type),ye(t,"href",n),ye(t,"media",e.media),ye(t,"hreflang",e.hreflang),t},be=function(e){var t=document.createElement("script"),n=e.cdnEndpoint+(d(e.cdnEndpoint)&&!f(e.assetUrl)?"/":"")+e.assetUrl+e.src;return ye(t,"src",n),ye(t,"type",e.type),ye(t,"charset",e.charset),!0===e.async&&(t.async=!0),!0===e.defer&&(t.defer=!0),t},ye=function(e,t,n){null!=e&&null!=n&&(e[t]=n)},Ce=ye,Ie=function(e){return e&&("BUTTON"==e.nodeName&&Ee(e)||Ie(e.parentElement))},we=Ie,Ee=function(e){return e&&e.classList&&e.classList.contains(he)},ze=Ee,De=function(e){return e?e.querySelectorAll("input:not([disabled]):not([readonly]):not([tabindex='-1']),select:not([disabled]):not([readonly]):not([tabindex='-1']),textarea:not([disabled]):not([readonly]):not([tabindex='-1']),.feedback-focusable")[0]:void 0},ke=De,Oe=function(t,n){if(document.querySelectorAll(".modal.fade.in").length)xe();else switch(t){default:case e.SetFocusStrategy.OnGlobalFeedback:Te(n);break;case e.SetFocusStrategy.OnFirstPageError:Se(n)}},xe=function(){setTimeout((function(){var e=De(document.querySelectorAll(".modal-body .has-error")[0]),t=De(document.querySelectorAll(".modal-body .feedback-box-error")[0]);e?e.focus():t&&t.focus()}),100)},Se=function(e){setTimeout((function(){var t=document.querySelectorAll(".has-error,.feedback-box-error:not(.global-feedback)")[0],n=De(t);n&&!O(n)?(!0===e&&w(n.id),setTimeout((function(){return n.focus()}),500)):Te(e)}),100)},Te=function(e){return Ve(".global-feedback.feedback-box-error",e)},Ve=function(e,t){setTimeout((function(){var n=document.querySelectorAll(e||".feedback-box")[0];if(n){t&&w(n.getAttribute("id"));var i=n.querySelector(".feedback-focusable");null!=i&&setTimeout((function(){return i.focus()}),500)}}),100)},Pe=function(e){function t(t,n){var i=e.call(this,t)||this;return i.cdr=t,i.renderer=n,i.visualizzaSidebarInferiore=!0,i.toggle=new c.Observable,i.logPrefix="[inail-navigazione-secondaria]",i}return P(t,e),t.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t)},t.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.push(this.toggle.subscribe((function(){t.renderer.addClass(t.navigazionesecondaria.nativeElement,"opened")}))),this.detectChange&&this.push(this.detectChange.subscribe((function(){return t.cdr.detectChanges()})))},t.prototype.close=function(){this.renderer.removeClass(this.navigazionesecondaria.nativeElement,"opened")},t.prototype.ngAfterViewInit=function(){var e=this;this.emitDebug("ngAfterViewInit"),this.emitDebug("sidebar inferiore:"),this.emitDebug(this.sidebarInferiore),setTimeout((function(){e.visualizzaSidebarInferiore=e.sidebarInferiore.nativeElement.childElementCount>0,e.detach()}))},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t}(T);Pe.decorators=[{type:t.Component,args:[{selector:"inail-navigazione-secondaria",template:'<nav id="navigazionesecondaria"\n #navigazionesecondaria\n class="col-xs-12 col-sm-4 col-lg-3 slider-menu filtro">\n <div class="box-menu-contestuale servizi-online-secondo-livello">\n <button id="close-slider-menu"\n (click)="close()"\n class="pull-right"\n aria-label="Chiude il menu laterale"\n aria-expanded="true"\n aria-controls="navigazionesecondaria">\n <span class="fa fa-close"></span>\n </button>\n <section id="sidebar-superiore">\n <ng-content select="[sidebar-superiore]"></ng-content>\n </section>\n <section id="sidebar-inferiore"\n #sidebarInferiore\n *ngIf="visualizzaSidebarInferiore">\n <ng-content select="[sidebar-inferiore]"></ng-content>\n </section>\n </div>\n</nav>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,styles:["@media (max-width:991.98px){#navigazionesecondaria{left:-400px;display:block;transition-property:left;transition-duration:.5s}#navigazionesecondaria.opened.slider-menu{left:0}}"]}]}],Pe.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.Renderer2}]},Pe.propDecorators={navigazionesecondaria:[{type:t.ViewChild,args:["navigazionesecondaria"]}],sidebarInferiore:[{type:t.ViewChild,args:["sidebarInferiore"]}],toggle:[{type:t.Input}]};var Le=function(e){function t(t,n){var i=e.call(this,n)||this;return i.router=t,i.cdr=n,i.logPrefix="[inail-breadcrumb]",i.detach(),i}return P(t,e),t.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),t.currentPage&&this.buildBreadCrumb(t.currentPage.currentValue),this.cdr.detectChanges()},t.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.detectChange&&this.push(this.detectChange.subscribe((function(){return t.cdr.detectChanges()})))},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t.prototype.buildBreadCrumb=function(e){if(null!=e){var t=this.getGenealogicalTree(e);t&&(this.steps=t.map((function(e){return{label:e.title,url:e.url}})))}},t.prototype.getParentsList=function(e){var t;return e&&(t=this.getGenealogicalTree(e.parent)),t},t.prototype.getGenealogicalTree=function(e){var t;return e?(t=this.getGenealogicalTree(e.parent)).push(e):t=[],t},t.prototype.onClick=function(e){this.router.navigateByUrl(e)},t}(R);Le.decorators=[{type:t.Component,args:[{selector:"inail-breadcrumb",template:'<nav aria-label="Breadcrumb" [id]="id" class="inail-breadcrumb {{class}}">\n <ul *ngIf="steps"\n class="breadcrumb visible-sm-block visible-md-block visible-lg-block">\n <li *ngFor="let step of steps; last as isLast">\n <ng-container *ngIf="!isLast">\n <a *ngIf="step.url" [routerLink]="step.url" [innerHTML]=" step.label"></a>\n <a *ngIf="!step.url" href="javascript:void(0)" [innerHTML]=" step.label"></a>\n </ng-container>\n <span aria-current="page" *ngIf="isLast" [innerHTML]=" step.label"></span> \n </li>\n </ul>\n</nav>\n<debug-pre *ngIf="showState">[inail-breadcrumb]<br>\n <state-propertie [label]="\'logOnConsole\'" [propertie]="logOnConsole"></state-propertie>\n <state-propertie [label]="\'paginaCorrente\'" [propertie]="currentPage"></state-propertie>\n <state-propertie [label]="\'steps\'" [propertie]="steps"></state-propertie>\n</debug-pre>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,styles:[".inail-breadcrumb ul.breadcrumb{padding-bottom:0}"]}]}],Le.ctorParameters=function(){return[{type:l.Router},{type:t.ChangeDetectorRef}]},Le.propDecorators={currentPage:[{type:t.Input}],steps:[{type:t.Input}]};var Ue=function(e){function n(n){var i=e.call(this,n)||this;return i.formElementCdr=n,i.required=!1,i.requiredSimbol="*",i.requiredSimbolPosition="left",i.disabled=!1,i.readonly=!1,i.hasError=!1,i.hasErrorChange=new t.EventEmitter,i.hiddenLabel=!1,i.errorChange=new t.EventEmitter,i.enterUp=new t.EventEmitter,i.popover=!1,i.getLabel=function(){return(i.required&&"left"===i.requiredSimbolPosition?i.requiredSimbol+" ":"")+i.label+(i.required&&"right"===i.requiredSimbolPosition?" "+i.requiredSimbol:"")},i.isThereError=function(){return i.hasError||d(i.error)},i.showError=function(){return i.isThereError()&&d(i.error)},i.getAriaDescribedBy=function(){return i.showError()||d(i.description)?i.id+"-description":void 0},i.showPopover=function(){return!0===i.popover},i}return P(n,e),n.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.title=this.getNotBlankValue(this.title),this.name=this.getNotBlankValue(this.name),this.labelTitle=this.getNotBlankValue(this.labelTitle),this.popoverButtonTitle=this.getNotBlankValue(this.popoverButtonTitle)},n.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this),this.logPrefix=this.logPrefix+"["+this.label+"]"},n.prototype.setDescError=function(e){this.error=e,this.formElementCdr.detectChanges()},n.prototype.setHasError=function(e){this.hasError=e,this.formElementCdr.detectChanges()},n.prototype.cleanError=function(){var e=this;setTimeout((function(){e.hasError&&(e.hasError=!1,e.hasErrorChange.emit(!1)),e.error&&(e.error=void 0,e.errorChange.emit(void 0))}))},n.prototype.registerOnChange=function(e){this.emitDebug("registerOnChange"),this.onChange=e},n.prototype.registerOnTouched=function(e){this.emitDebug("registerOnTouched"),this.onTouched=e},n.prototype.setDisabledState=function(e){this.emitDebug("setDisabledState: "+e),this.disabled=e,this.formElementCdr.detectChanges()},n.prototype.onBlur=function(){this.onTouched&&this.onTouched()},n}(N);Ue.decorators=[{type:t.Component,args:[{selector:"inail-form-element",template:"",changeDetection:S,encapsulation:t.ViewEncapsulation.None}]}],Ue.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},Ue.propDecorators={label:[{type:t.Input}],title:[{type:t.Input}],name:[{type:t.Input}],labelTitle:[{type:t.Input}],labelClass:[{type:t.Input}],inputClass:[{type:t.Input}],required:[{type:t.Input}],requiredSimbol:[{type:t.Input}],requiredSimbolPosition:[{type:t.Input}],disabled:[{type:t.Input}],readonly:[{type:t.Input}],hasError:[{type:t.Input}],hasErrorChange:[{type:t.Output}],hiddenLabel:[{type:t.Input}],error:[{type:t.Input}],description:[{type:t.Input}],errorChange:[{type:t.Output}],enterUp:[{type:t.Output}],focus:[{type:t.Input}],popover:[{type:t.Input}],popoverButtonIcon:[{type:t.Input}],popoverButtonTitle:[{type:t.Input}],popoverHeader:[{type:t.Input}],popoverContent:[{type:t.Input}]};var Ae=function(e){return d(e)&&new RegExp(/^[0-3][0-9][\/][0-1][0-9][\/][1-9][0-9]{3}$/).test(e)},Re=function(e){return d(e)&&new RegExp(/^[1-9][0-9]{3}-[0-1][0-9]-[0-3][0-9](T[0-9]{2}:[0-9]{2}(:[0-9]{2}(\.[0-9]{2})?)?(([+-][0-9]{2}:[0-9]{2})|(Z)))?$/).test(e)},Ne=function(e){return Ae(e)||Re(e)},Fe=function(e){return Be(e,"IT")},Me=function(e){return Be(e,"ISO8061")},Be=function(e,t){return He(je(e),t)},He=function(e,t){var n=void 0;if(e&&!_e(e))switch(t){default:case"IT":n=qe(e.getDate())+"/"+qe(e.getMonth()+1)+"/"+e.getFullYear();break;case"ISO8061":n=e.getFullYear()+"-"+qe(e.getMonth()+1)+"-"+qe(e.getDate())}return n},je=function(e){var t=null;if(e){if(Ae(e)){var n=e.split("/");e=n[1]+"/"+n[0]+"/"+n[2]}t=new Date(e)}return t},_e=function(e){return e&&"Invalid Date"===e.toString()},qe=function(e){return e<10?"0"+e:""+e},$e=function(e){function n(n,i){var a=e.call(this,n)||this;return a.cdr=n,a.datePipe=i,a.isDate=!1,a.valueChange=new t.EventEmitter,a.logPrefix="[inail-input-text]",a.detach(),a}return P(n,e),n.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.maxlength=this.getNotBlankValue(this.maxlength),this.placeholder=this.getNotBlankValue(this.placeholder),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.emitDebug("@ViewChild('formControl')"),this.emitDebug(this.formControlElement),this.focus&&this.push(this.focus.subscribe((function(e){t.emitDebug("Catch focus!"),z(t.formControlElement.nativeElement,e)})))},n.prototype.ngAfterViewInit=function(){},Object.defineProperty(n.prototype,"value",{get:function(){return this.isDate&&Ne(this.inputValue)?this.datePipe.transform(this.inputValue,"dd/MM/yyyy"):this.inputValue},set:function(e){this.emitDebug("@Input set value: "+this.inputValue+" -> "+e),this.setValue(e)},enumerable:!1,configurable:!0}),n.prototype.writeValue=function(e){this.emitDebug("writeValue: "+e),this.setValue(e)},n.prototype.setValue=function(e){this.emitDebug("setValue: "+e),this.inputValue!=e&&(this.emitDebug("update value: "+this.inputValue+" -> "+e),this.inputValue=e,this.cdr.detectChanges(),this.emitDebug("this.valueChange.emit("+e+")"),this.valueChange.emit(e),this.cleanError(),this.onChange&&this.onChange(e))},n.prototype.onPaste=function(e){!0===this.preventPasting&&e.preventDefault()},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n}(Ue);$e.decorators=[{type:t.Component,args:[{selector:"inail-input-text",template:'<div class="form-group {{getResponsiveClass()}} noPaddingLeft {{class}} inail-input-text"\n [ngClass]="{\'has-error\': isThereError()}">\n <label *ngIf="label"\n class="control-label {{labelClass}}"\n [ngClass]="{\'sr-only\': hiddenLabel}"\n [attr.title]="labelTitle"\n [for]="id"\n [innerHTML]="getLabel()"></label>\n <span *ngIf="showPopover()"\n [style.padding-left.px]="5">\n <inail-popover [iconClass]="popoverButtonIcon"\n [buttonTitle]="popoverButtonTitle"\n [header]="popoverHeader"\n [content]="popoverContent">\n </inail-popover>\n </span>\n <input #formControl\n type="text"\n [id]="id"\n class="form-control {{inputClass}}"\n [ngClass]="{\'disabled\': disabled}"\n [attr.name]="name"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.placeholder]="placeholder"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="isThereError() === true ? true : undefined"\n [attr.aria-describedBy]="getAriaDescribedBy()"\n (blur)="onBlur()"\n (paste)="onPaste($event)"\n (keyup.enter)="enterUp.emit()"\n [(ngModel)]="value">\n <div *ngIf="showError()" [id]="id+\'-description\'">\n <div class="msg msg-errore">\n <strong [innerHTML]="\'ERRORE: \'+this.error"></strong>\n </div>\n <div *ngIf="description" [innerHTML]="this.description"></div>\n </div>\n <div *ngIf="description && !showError()"\n [id]="id+\'-description\'"\n [innerHTML]="this.description">\n </div>\n <debug-pre *ngIf="showState">\n <state-propertie [label]="\'id\'" [propertie]="id"></state-propertie>\n <state-propertie [label]="\'label\'" [propertie]="label"></state-propertie>\n <state-propertie [label]="\'inputValue\'" [propertie]="inputValue"></state-propertie>\n <state-propertie [label]="\'maxlength\'" [propertie]="maxlength" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'isDate\'" [propertie]="isDate" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'placeholder\'" [propertie]="placeholder" [hideIfNull]="false"></state-propertie>\n <inail-form-element-state-properties [formElement]="this"></inail-form-element-state-properties>\n </debug-pre>\n</div>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return $e})),multi:!0}],styles:[""]}]}],$e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:a.DatePipe}]},$e.propDecorators={formControlElement:[{type:t.ViewChild,args:["formControl",{static:!0}]}],placeholder:[{type:t.Input}],maxlength:[{type:t.Input}],isDate:[{type:t.Input}],valueChange:[{type:t.Output}],preventPasting:[{type:t.Input}],value:[{type:t.Input}]};var Ge=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.selectedValue="",i.options=[],i.blankOption=!0,i.blankOptionText="- seleziona opzione -",i.blankOptionDisabled=!1,i.select=new t.EventEmitter,i.valueChange=new t.EventEmitter,i.logPrefix="[inail-select]",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(t){var n,i;if(e.prototype.ngOnChanges.call(this,t),((null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.currentValue)||(null===(i=null==t?void 0:t.sort)||void 0===i?void 0:i.currentValue))&&this.sort){var a="ASC"==this.sort.toUpperCase()?1:"DESC"==this.sort.toUpperCase()?-1:0;0!=a&&null!=this.options&&this.options.sort((function(e,t){return e.label<t.label?-a:e.label>t.label?a:0}))}this.cdr.detectChanges()},n.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.emitDebug("@ViewChild('formControl')"),this.emitDebug(this.formControlElement),this.focus&&this.push(this.focus.subscribe((function(e){t.emitDebug("Catch focus!"),z(t.formControlElement.nativeElement,e)})))},Object.defineProperty(n.prototype,"value",{get:function(){return this.selectedValue},set:function(e){this.emitDebug("@Input set value: "+this.selectedValue+" -> "+e),this.setValue(e)},enumerable:!1,configurable:!0}),n.prototype.writeValue=function(e){this.emitDebug("writeValue: "+e),this.setValue(e)},n.prototype.setValue=function(e){var t=this;this.emitDebug("setValue: "+e),this.selectedValue!=e&&setTimeout((function(){t.emitDebug("update value: "+t.selectedValue+" -> "+e),t.selectedValue=e||"",t.cdr.detectChanges(),t.emitDebug("this.valueChange.emit("+t.selectedValue+")"),t.valueChange.emit(t.selectedValue),t.select.emit(t.options.find((function(e){return(null==e?void 0:e.value)===t.selectedValue}))),t.cleanError(),t.onChange&&t.onChange(t.selectedValue)}))},n.prototype.ngAfterViewInit=function(){},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n}(Ue);Ge.decorators=[{type:t.Component,args:[{selector:"inail-select",template:'<div class="form-group {{getResponsiveClass()}} {{class}} noPaddingLeft inail-select"\n [ngClass]="{\'has-error\': isThereError()}">\n <label [attr.for]="id"\n [attr.title]="labelTitle"\n class="label-select noPaddingLeft {{labelClass}}">\n <span *ngIf="label"\n [ngClass]="{\'sr-only\': hiddenLabel}"\n [innerHTML]="getLabel()">\n </span>\n </label>\n <span *ngIf="showPopover()"\n [style.padding-left.px]="5">\n <inail-popover [iconClass]="popoverButtonIcon"\n [buttonTitle]="popoverButtonTitle"\n [header]="popoverHeader"\n [content]="popoverContent">\n </inail-popover>\n </span>\n <select #formControl\n class="form-control {{inputClass}}"\n [attr.id]="id"\n [attr.title]="title"\n [attr.name]="name"\n [disabled]="disabled"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="isThereError() === true ? true : undefined"\n [attr.aria-describedBy]="getAriaDescribedBy()"\n (blur)="onBlur()"\n (keyup.enter)="enterUp.emit()"\n [(ngModel)]=\'value\'>\n <option *ngIf="blankOption"\n value=""\n [disabled]="blankOptionDisabled"\n [innerHTML]="this.blankOptionText">\n </option>\n <ng-container *ngIf="options">\n <option *ngFor="let option of options"\n [ngValue]="option?.value"\n [disabled]="option?.disabled"\n [innerHTML]="option?.label">\n </option>\n </ng-container>\n </select>\n <div *ngIf="showError()" [id]="id+\'-description\'">\n <div class="msg msg-errore">\n <strong [innerHTML]="\'ERRORE: \'+this.error"></strong>\n </div>\n <div *ngIf="description" [innerHTML]="this.description"></div>\n </div>\n <div *ngIf="description && !showError()"\n [id]="id+\'-description\'"\n [innerHTML]="this.description">\n </div>\n <debug-pre *ngIf="showState">\n <state-propertie [label]="\'id\'" [propertie]="id"></state-propertie>\n <state-propertie [label]="\'label\'" [propertie]="label"></state-propertie>\n <state-propertie [label]="\'selectedValue\'" [propertie]="selectedValue"></state-propertie>\n <state-propertie [label]="\'blankOption\'" [propertie]="blankOption"></state-propertie>\n <state-propertie [label]="\'blankOptionText\'" [propertie]="blankOptionText"></state-propertie>\n <state-propertie [label]="\'sort\'" [propertie]="sort"></state-propertie>\n \x3c!-- TODO --\x3e\n <inail-form-element-state-properties [formElement]="this"></inail-form-element-state-properties>\n </debug-pre>\n</div>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return Ge})),multi:!0}],styles:[".panel .panel-body .inail-select.form-group select{min-width:auto!important}"]}]}],Ge.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},Ge.propDecorators={formControlElement:[{type:t.ViewChild,args:["formControl"]}],options:[{type:t.Input}],blankOption:[{type:t.Input}],blankOptionText:[{type:t.Input}],blankOptionDisabled:[{type:t.Input}],sort:[{type:t.Input}],select:[{type:t.Output}],valueChange:[{type:t.Output}],value:[{type:t.Input}]};var We=function(e){function t(t){var n=e.call(this,t)||this;return n.cdr=t,n.logPrefix="[inail-form-grey]",n.detach(),n}return P(t,e),t.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.cdr.detectChanges()},t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t}(R);We.decorators=[{type:t.Component,args:[{selector:"inail-form-grey",template:'<div [id]=\'id\'\n [ngClass]="class"\n class="form-grey content row">\n <h3 *ngIf="title" class="title-modulo" [innerHTML]="title"></h3>\n <div class="col-xs-12">\n <ng-content></ng-content>\n </div>\n</div>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],We.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},We.propDecorators={title:[{type:t.Input}]};var Je=function(e){function t(t){var n=e.call(this,t)||this;return n.cdr=t,n.autoCatchFocus=!0,n.logPrefix="[inail-page-title]",n.detach(),n}return P(t,e),t.prototype.ngOnChanges=function(t){var n;e.prototype.ngOnChanges.call(this,t),null==(null===(n=null==t?void 0:t.titolo)||void 0===n?void 0:n.currentValue)||t.titolo.isFirstChange()||this.setFocus(),this.cdr.detectChanges()},t.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.logPrefix="[inail-page-title]["+this.title+"]",this.cdr.detectChanges(),this.focus&&this.push(this.focus.subscribe((function(e){t.emitDebug("Catch focus!"),z(t.divTitolo.nativeElement,e),t.emitDebug("Focus impostato su elemento titolo: "),t.emitDebug(t.divTitolo.nativeElement)})))},t.prototype.ngAfterViewInit=function(){this.setFocus()},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t.prototype.setFocus=function(){var e=this;!this.autoCatchFocus||null!=document.activeElement&&"logo-inail-header"==document.activeElement.id||setTimeout((function(){e.divTitolo.nativeElement.focus(),e.emitDebug("Focus impostato su elemento titolo: "),e.emitDebug(e.divTitolo.nativeElement)}),500)},t}(R);Je.decorators=[{type:t.Component,args:[{selector:"inail-page-title",template:'<div tabindex="0"\n title="Titolo pagina"\n class="inail-page-title"\n [ngClass]="class"\n [id]="id"\n #divTitolo>\n <span *ngIf="spanTitle"\n class="span-title"\n [ngClass]="spanTitleClass"\n [innerHTML]="spanTitle"></span>\n <h2 *ngIf="title"\n [ngClass]="titleClass"\n [innerHTML]="title">\n </h2>\n <h2 class="{{class}}"\n *ngIf="!title">\n <ng-content></ng-content>\n </h2>\n</div>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],Je.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},Je.propDecorators={title:[{type:t.Input}],titleClass:[{type:t.Input}],spanTitle:[{type:t.Input}],spanTitleClass:[{type:t.Input}],autoCatchFocus:[{type:t.Input}],focus:[{type:t.Input}],divTitolo:[{type:t.ViewChild,args:["divTitolo"]}]};var Ye=function(e){function t(t){var n=e.call(this,t)||this;return n.cdr=t,n.errorType="ERROR",n.successType="SUCCESS",n.type="SUCCESS",n.showIcon=!0,n.autoCatchFocus=!1,n.scrollToFocus=!0,n.hasContent=function(){var e,t;return d(null===(t=null===(e=n.feedbackContent)||void 0===e?void 0:e.nativeElement)||void 0===t?void 0:t.textContent)},n.logPrefix="[inail-feedback]",n.detach(),n}return P(t,e),t.prototype.ngOnChanges=function(t){var n,i,a;e.prototype.ngOnChanges.call(this,t),(null===(n=null==t?void 0:t.details)||void 0===n?void 0:n.currentValue)&&(this.details=t.details.currentValue.filter((function(e){return null!=e}))),(null===(i=null==t?void 0:t.message)||void 0===i?void 0:i.currentValue)&&this.autoCatchFocus&&!(null===(a=null==t?void 0:t.message)||void 0===a?void 0:a.isFirstChange())&&this.setFocus(this.scrollToFocus),this.cdr.detectChanges(),this.cdr.detectChanges()},t.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.focus&&this.push(this.focus.subscribe((function(e){return t.setFocus(null!=e?e:t.scrollToFocus)})))},t.prototype.ngAfterViewInit=function(){this.autoCatchFocus&&this.setFocus(this.scrollToFocus),this.cdr.detectChanges(),this.cdr.detectChanges()},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t.prototype.setFocus=function(e){this.emitDebug("Catch focus!"),z(this.mainMessage.nativeElement,e)},t}(R);Ye.decorators=[{type:t.Component,args:[{selector:"inail-feedback",template:'<div [id]=\'id\'\n class="row feedback-box inail-feedback {{class}}"\n [ngClass]="{\'feedback-box-error\': type==errorType, \'global-feedback\': globalFeedback === true}">\n <div>\n <div class="feedback-header"\n [ngClass]="{\'feedback-header-error\': type==errorType}">\n <span>\n <span class="fa white-check"\n [ngClass]="{\'fa-times\': showIcon && type==errorType,\n \'fa-check\':showIcon && (type==successType || !type)}"></span>\n <span tabindex="0" [id]="id+\'-message\'" class="feedback-focusable" [innerHTML]="message" #mainMessage></span>\n </span>\n </div>\n <div [hidden]="!hasContent()"\n class="feedback-content"\n [ngClass]="contentClass"\n #feedbackContent>\n <p *ngIf="contentTitle">\n <strong>{{contentTitle}}</strong>\n </p>\n <ng-container *ngIf="detailsAsList || detailsAsOrderedList">\n <ol *ngIf="detailsAsOrderedList">\n <li *ngFor="let dettaglio of details" [innerHTML]="dettaglio"></li>\n </ol>\n <ul *ngIf="detailsAsList && !detailsAsOrderedList">\n <li *ngFor="let dettaglio of details" [innerHTML]="dettaglio"></li>\n </ul>\n </ng-container>\n <ng-container *ngIf="!(detailsAsList || detailsAsOrderedList)">\n <p *ngFor="let dettaglio of details" [innerHTML]="dettaglio"></p>\n </ng-container>\n <p><ng-content></ng-content></p>\n </div>\n </div>\n</div>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,styles:[".inail-feedback.feedback-box{margin-bottom:15px!important}.inail-feedback .feedback-content{padding-top:30px!important}.inail-feedback .feedback-content p{padding-top:0!important}.inail-feedback .feedback-header .feedback-focusable:focus{outline:1px dotted #fff!important}"]}]}],Ye.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},Ye.propDecorators={mainMessage:[{type:t.ViewChild,args:["mainMessage"]}],message:[{type:t.Input}],type:[{type:t.Input}],globalFeedback:[{type:t.Input}],showIcon:[{type:t.Input}],contentTitle:[{type:t.Input}],contentClass:[{type:t.Input}],details:[{type:t.Input}],detailsAsList:[{type:t.Input}],detailsAsOrderedList:[{type:t.Input}],focus:[{type:t.Input}],autoCatchFocus:[{type:t.Input}],scrollToFocus:[{type:t.Input}],feedbackContent:[{type:t.ViewChild,args:["feedbackContent"]}]};var Ze=function(e,t,n,i){this.message=t,this.type=e,n&&(this.details=[].concat(n),this.contentTitle=i)},Xe=function(e){function n(n,i){var a=e.call(this,n)||this;return a.cdr=n,a.renderer=i,a.ariaLabelOpened="Riduce l'accordion",a.ariaLabelClosed="Espande l'accordion",a.requiredSimbol="*",a.requiredSimbolPosition="left",a.ontoggle=new t.EventEmitter,a.getTitle=function(){return(a.required&&"left"===a.requiredSimbolPosition?a.requiredSimbol+" ":"")+a.title+(a.required&&"right"===a.requiredSimbolPosition?" "+a.requiredSimbol:"")},a.panelBodyHeight$=new c.BehaviorSubject(void 0),a.emitMenuHeight=function(){},a.logPrefix="[inail-accordion]",a.detach(),a}return P(n,e),n.prototype.ngOnChanges=function(t){var n=this;e.prototype.ngOnChanges.call(this,t),this.focus&&this.push(this.focus.subscribe((function(e){n.emitDebug("Catch focus! scroll: "+e),z(n.accordionTitle.nativeElement,e)}))),this.toggle&&this.push(this.toggle.subscribe((function(e){return n.onToggle(e)}))),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this),this.open=!this.collapsed},n.prototype.onToggle=function(e){this.emitDebug(this.id+" toggle: "+e),this.open=null!=e?e:!this.open,this.emitMenuHeight(),this.cdr.detectChanges(),this.ontoggle.emit(this.open)},Object.defineProperty(n.prototype,"ariaLabelText",{get:function(){return this.ariaLabel||(1==this.open?this.ariaLabelOpened:this.ariaLabelClosed)},enumerable:!1,configurable:!0}),n.prototype.ngAfterViewInit=function(){this.cdr.detectChanges()},n}(R);Xe.decorators=[{type:t.Component,args:[{selector:"inail-accordion",template:'<div class="inail-accordion row panel panel-default form-accordion noPadding"\n [id]="id"\n [ngClass]="class">\n <div class="row panel-heading heading-form-grey"\n role="heading"\n (click)="onToggle()"\n (keyup.enter)="onToggle()"\n (keyup.space)="onToggle()"\n (keydown.space)="false">\n <label #accordionTitle\n [id]="id+\'-title\'"\n class="search-title"\n tabindex="0"\n [ngClass]="{\'has-error\': hasError}"\n [innerHTML]="getTitle() | uppercase"></label>\n <span class="fa {{open ? \'fa-chevron-up\' : \'fa-chevron-down\'}}"\n tabindex="0"\n role="button"\n [attr.aria-label]="ariaLabelText"\n [attr.aria-controls]="id + \'-body\'"\n [attr.aria-expanded]="open"> </span>\n </div>\n <div [id]="id + \'-body\'"\n #panelBody\n class="row panel-body body-form-grey"\n [ngStyle]="{\'height.px\': (panelBodyHeight$ | async)}"\n [ngClass]="{\'closed\': !open}"\n role="region">\n <div class="col-md-12 col-lg-12">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n<debug-pre *ngIf="showState">[inail-accordion]<br>\n <state-propertie [label]="\'id\'" [propertie]="id"></state-propertie>\n <state-propertie [label]="\'titolo\'" [propertie]="title"></state-propertie>\n <state-propertie [label]="\'open\'" [propertie]="open"></state-propertie>\n</debug-pre>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,styles:[".inail-accordion .panel-heading{cursor:pointer}.inail-accordion .search-title.has-error{color:#c9291b!important;font-weight:700}.inail-accordion .panel-body{overflow:hidden;transition:height 3s ease-out}.inail-accordion .panel-body.closed{transition:height 3s ease-out;display:none}"]}]}],Xe.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.Renderer2}]},Xe.propDecorators={title:[{type:t.Input}],ariaLabel:[{type:t.Input}],ariaLabelOpened:[{type:t.Input}],ariaLabelClosed:[{type:t.Input}],collapsed:[{type:t.Input}],hasError:[{type:t.Input}],required:[{type:t.Input}],requiredSimbol:[{type:t.Input}],requiredSimbolPosition:[{type:t.Input}],toggle:[{type:t.Input}],focus:[{type:t.Input}],ontoggle:[{type:t.Output}],accordionTitle:[{type:t.ViewChild,args:["accordionTitle"]}],panelBody:[{type:t.ViewChild,args:["panelBody"]}]};var Qe=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.requiredSimbol="*",i.requiredSimbolPosition="left",i.activeChange=new t.EventEmitter,i.onChange=new t.EventEmitter,i.doDetechChange=function(){return i.cdr.detectChanges()},i.getTitle=function(){return(i.required&&"left"===i.requiredSimbolPosition?i.requiredSimbol+" ":"")+i.title+(i.required&&"right"===i.requiredSimbolPosition?" "+i.requiredSimbol:"")},i.logPrefix="[inail-tab-pane]",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),(null==t?void 0:t.active)&&this.activeChange.emit(t.active.currentValue),this.cdr.detectChanges(),this.onChange.emit()},n.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},n.prototype.ngAfterViewInit=function(){this.cdr.detectChanges()},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n}(R);Qe.decorators=[{type:t.Component,args:[{selector:"inail-tab-pane",template:'<div [hidden]="!active"\n [id]=\'id\'\n [ngClass]="class"\n class="tab-pane inail-tab-pane">\n <div class="form-group form-grey row">\n <div class="col-md-12 col-lg-12">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,styles:[".inail-tab-pane>div{margin-top:0!important}"]}]}],Qe.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},Qe.propDecorators={title:[{type:t.Input}],active:[{type:t.Input}],required:[{type:t.Input}],requiredSimbol:[{type:t.Input}],requiredSimbolPosition:[{type:t.Input}],activeChange:[{type:t.Output}]};var Ke=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.selected=new t.EventEmitter,i.isActive=function(e){return i.panes.some((function(t){return t.id==e&&t.active}))},i.getPaneTitle=function(e){return e.getTitle()},i.detectPanesChange=function(){var e;return null===(e=i.panes)||void 0===e?void 0:e.forEach((function(e){return null==e?void 0:e.doDetechChange()}))},i.logPrefix="[inail-tab-group]",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.selectTab&&this.push(this.selectTab.subscribe((function(e){return t.tabOnClick(e)})))},n.prototype.ngAfterViewInit=function(){var e=this;this.panes&&(this.panes.forEach((function(t){return e.push(t.onChange.subscribe((function(){return e.cdr.detectChanges()})))})),this.panes.some((function(e){return e.active}))||setTimeout((function(){var t=e.panes.toArray()[0];t.active=!0,t.doDetechChange(),e.cdr.detectChanges()})),this.cdr.detectChanges())},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n.prototype.tabOnClick=function(e){this.selected.emit(e),this.panes.forEach((function(t){var n=t.id==e;null!=t.active&&n==t.active||(t.active=n,t.doDetechChange(),t.activeChange.emit(t.active))})),this.cdr.detectChanges()},n}(R);Ke.decorators=[{type:t.Component,args:[{selector:"inail-tab-group",template:'<div [id]=\'id\'\n [ngClass]="class"\n class="tab-portale inail-tab-group">\n <ul class="nav nav-tabs default-tabs" role="tablist" *ngIf="panes">\n <li *ngFor="let pane of panes.toArray()"\n [ngClass]="{\'active\' : isActive(pane.id)}">\n <a href="javascript:void(0)"\n role="button"\n [attr.aria-controls]="pane.id"\n [attr.aria-label]="\'Visualizza il tab: \'+pane.title"\n (keyup.space)="tabOnClick(pane.id)"\n (click)="tabOnClick(pane.id)">\n <span class="labelTabTitle" [innerHTML]="getPaneTitle(pane)"></span>\n </a>\n </li>\n </ul>\n <div class="tab-content">\n <ng-content></ng-content>\n </div>\n</div>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,styles:[".inail-tab-group .nav.nav-tabs.default-tabs a:focus{outline:1px dotted #fff!important}"]}]}],Ke.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},Ke.propDecorators={panes:[{type:t.ContentChildren,args:[Qe]}],selectTab:[{type:t.Input}],selected:[{type:t.Output}]};var et=function(e){function t(t){var n=e.call(this,t)||this;return n.cdr=t,n.logPrefix="[inail-popover]",n.detach(),n}return P(t,e),t.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.cdr.detectChanges()},t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this),null==this.iconClass&&(this.iconClass="fa-question-circle"),this.cdr.detectChanges()},t.prototype.onClick=function(e){if(this.show=null!=e?e:!this.show,this.cdr.detectChanges(),this.show){var t=this.openButton.nativeElement.getBoundingClientRect().bottom,n=this.popover.nativeElement.getBoundingClientRect().bottom,i=this.popover.nativeElement.getBoundingClientRect().height/2;this.popoverLeft=this.openButton.nativeElement.getBoundingClientRect().left-this.popover.nativeElement.getBoundingClientRect().left+26,this.popoverTop=t-n+i-9}else this.popoverLeft=void 0,this.popoverTop=void 0;this.cdr.detectChanges()},t.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){return e.cdr.detectChanges()}))},t}(R);et.decorators=[{type:t.Component,args:[{selector:"inail-popover",template:'<em class="fa fa-lg"\n [id]="id+\'-button\'"\n [ngClass]="iconClass"\n role="button"\n #openButton\n tabindex="0"\n [attr.title]="buttonTitle"\n (focusout)="onClick(false)"\n (keyup.enter)="onClick()"\n (click)="onClick()"\n [attr.aria-describedby]="show ? id : undefined">\n</em>\n<div #popover\n *ngIf="show"\n class="popover fade in right inail-popover {{class}}"\n [ngStyle]="{\'left.px\': popoverLeft, \'top.px\': popoverTop}"\n role="tooltip"\n [id]="id">\n <div class="arrow" style="top: 50%; position: absolute"></div>\n <h3 *ngIf="header" class="popover-title" [innerHTML]="header"></h3>\n <div *ngIf="content" class="popover-content" [innerHTML]="content"></div>\n</div>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,styles:[".inail-popover{display:block;position:absolute}"]}]}],et.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},et.propDecorators={openButton:[{type:t.ViewChild,args:["openButton"]}],popover:[{type:t.ViewChild,args:["popover"]}],iconClass:[{type:t.Input}],buttonTitle:[{type:t.Input}],header:[{type:t.Input}],content:[{type:t.Input}]};var tt=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.valueChange=new t.EventEmitter,i.maxlength=300,i.rows=10,i.getCaratteriDisponibili=function(){return i.maxlength-(i.inputValue?i.inputValue.length:0)},i.isTextTooLong=function(){return i.inputValue&&i.inputValue.length>i.maxlength},i.isThereTextareaError=function(){return i.isThereError()||i.isTextTooLong()},i.showTextareaError=function(){return i.isThereTextareaError()&&d(i.getDescError())},i.getDescError=function(){return u(i.error)&&i.isTextTooLong()?"Il testo non può essere lungo di "+i.maxlength+" caratteri":i.error},i.logPrefix="[inail-textarea]",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.emitDebug("ngOnChanges:"),this.emitDebug(t),this.maxlength=this.getNotBlankValue(this.maxlength),this.placeholder=this.getNotBlankValue(this.placeholder),this.rows=this.getNotBlankValue(this.rows),this.cols=this.getNotBlankValue(this.cols),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.emitDebug("@ViewChild('formControl')"),this.emitDebug(this.formControlElement),this.focus&&this.push(this.focus.subscribe((function(e){t.emitDebug("Catch focus!"),z(t.formControlElement.nativeElement,e)})))},n.prototype.ngAfterViewInit=function(){},Object.defineProperty(n.prototype,"value",{get:function(){return this.inputValue},set:function(e){this.emitDebug("@Input set value: "+this.inputValue+" -> "+e),this.setValue(e)},enumerable:!1,configurable:!0}),n.prototype.writeValue=function(e){this.emitDebug("writeValue: "+e),this.setValue(e)},n.prototype.setValue=function(e){this.emitDebug("setValue: "+e),this.inputValue!=e&&(this.emitDebug("update value: "+this.inputValue+" -> "+e),this.inputValue=e,this.cdr.detectChanges(),this.emitDebug("this.valueChange.emit("+e+")"),this.valueChange.emit(e),this.cleanError(),this.onChange&&this.onChange(e))},n.prototype.onPaste=function(e){!0===this.preventPasting&&e.preventDefault()},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n}(Ue);tt.decorators=[{type:t.Component,args:[{selector:"inail-textarea",template:'<div class="form-group {{getResponsiveClass()}} inail-textarea noPaddingLeft {{class}}">\n <div class="col-md-12 noPadding"\n [ngClass]="{\'has-error\': isThereTextareaError()}">\n <label *ngIf="label"\n [ngClass]="{\'sr-only\': hiddenLabel}"\n class="control-label {{labelClass}}"\n [attr.title]="labelTitle"\n [for]="id"\n [innerHTML]="getLabel()">\n </label>\n <span *ngIf="showPopover()"\n [style.padding-left.px]="5">\n <inail-popover [iconClass]="popoverButtonIcon"\n [buttonTitle]="popoverButtonTitle"\n [header]="popoverHeader"\n [content]="popoverContent">\n </inail-popover>\n </span>\n <div *ngIf="!(disabled || readonly)" class="remainingChar pull-right"><strong>{{getCaratteriDisponibili()}}</strong> caratteri disponibili</div>\n <textarea #formControl\n [id]="id"\n class="form-control {{inputClass}}"\n [attr.name]="name"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [attr.rows]="rows"\n [attr.cols]="cols"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.placeholder]="placeholder"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="isThereTextareaError() === true ? true : undefined"\n [attr.aria-describedBy]="getAriaDescribedBy()"\n (paste)="onPaste($event)"\n (blur)="onBlur()"\n (keyup.enter)="enterUp.emit()"\n [(ngModel)]="value">\n </textarea>\n <div *ngIf="showTextareaError()" [id]="id+\'-description\'">\n <div class="msg msg-errore">\n <strong [innerHTML]="\'ERRORE: \'+getDescError()"></strong>\n </div>\n <div *ngIf="description" [innerHTML]="description"></div>\n </div>\n <div *ngIf="description && !showTextareaError()"\n [id]="id+\'-description\'"\n [innerHTML]="description">\n </div>\n </div>\n <debug-pre *ngIf="showState">\n <state-propertie [label]="\'id\'" [propertie]="id"></state-propertie>\n <state-propertie [label]="\'label\'" [propertie]="label"></state-propertie>\n <state-propertie [label]="\'inputValue\'" [propertie]="inputValue"></state-propertie>\n <state-propertie [label]="\'maxlength\'" [propertie]="maxlength" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'rows\'" [propertie]="rows" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'cols\'" [propertie]="cols" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'placeholder\'" [propertie]="placeholder" [hideIfNull]="false"></state-propertie>\n <inail-form-element-state-properties [formElement]="this"></inail-form-element-state-properties>\n </debug-pre>\n</div>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return tt})),multi:!0}],styles:[""]}]}],tt.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},tt.propDecorators={formControlElement:[{type:t.ViewChild,args:["formControl",{static:!0}]}],placeholder:[{type:t.Input}],valueChange:[{type:t.Output}],maxlength:[{type:t.Input}],rows:[{type:t.Input}],cols:[{type:t.Input}],preventPasting:[{type:t.Input}],value:[{type:t.Input}]};var nt=function(e){return Ae(e)||Re(e)||at(e)},it=nt,at=function(e){return e&&"number"==typeof e},ot=at,rt=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.valueChange=new t.EventEmitter,i.isValidInputValue=function(){return u(i.visibleData)||Ae(i.visibleData)},i.isThereDataError=function(){return i.isThereError()||!i.isValidInputValue()},i.showDataError=function(){return i.isThereDataError()&&d(i.getDescError())},i.getDescError=function(){return u(i.error)&&!i.isValidInputValue()?"La data inserita non è valida":i.error},i.isEnabledDate=function(e){var t=He(e,"ISO8061");return i.isDataAbilitata(t)&&!i.isDataDisabilitata(t)},i.isDataAbilitata=function(e){return null==i.enabledDates||!i.enabledDates.length||i.enabledDates.some((function(t){return null!=i.match(e,t)}))},i.isDataDisabilitata=function(e){return null!=i.disabledDates&&i.disabledDates.some((function(t){return null!=i.match(e,t)}))},i.match=function(e,t){return null!=e&&e.match(new RegExp("^".concat(t).concat("$"),"i"))},i.logPrefix="[inail-input-date]",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),t.value&&!t.value.firstChange&&(this.hasError=!1,this.error=void 0),(t.options&&!t.options.firstChange||t.enabledDates&&!t.enabledDates.firstChange||t.disabledDates&&!t.disabledDates.firstChange)&&this.datepickerReinit(),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.emitDebug("@ViewChild('formControl')"),this.emitDebug(this.formControlElement),this.options||(this.options={autoclose:!0,format:"dd/mm/yyyy",weekStart:1,todayBtn:"linked",language:"it",todayHighlight:!0,orientation:"auto top",enableOnReadonly:!1}),this.focus&&this.push(this.focus.subscribe((function(e){t.emitDebug("Catch focus!"),z(t.formControlElement.nativeElement,e)}))),this.reinit&&this.push(this.reinit.subscribe((function(){t.emitDebug("Reinit!"),t.datepickerReinit()}))),this.cdr.detectChanges()},n.prototype.ngAfterViewInit=function(){var e,t=this;this.emitDebug("ngAfterViewInit"),this.emitDebug("nativeElement"),this.emitDebug(null===(e=this.formControlElement)||void 0===e?void 0:e.nativeElement),this.datepickerInit(),this.visibleData&&Ne(this.visibleData)&&this.setDatepickerDate(this.visibleData),setTimeout((function(){window.$(t.formControlElement.nativeElement).on("change",(function(){t.emitDebug("onChange"),t.emitDebug("current visibleData: "+t.visibleData);var e=window.$(t.formControlElement.nativeElement)[0];t.emitDebug("nativeElement value: "+(null==e?void 0:e.value)),null!=e&&e.value!=t.visibleData&&(t.emitDebug("update value: "+t.visibleData+" -> "+e.value),t.value=e.value),t.cdr.detectChanges()}))})),this.cdr.detectChanges()},n.prototype.datepickerInit=function(){var e,t;((null===(e=this.disabledDates)||void 0===e?void 0:e.length)||(null===(t=this.enabledDates)||void 0===t?void 0:t.length))&&(this.options.beforeShowDay=this.isEnabledDate),window.$(this.formControlElement.nativeElement).datepicker(this.options)},n.prototype.datepickerDestroy=function(){window.$(this.formControlElement.nativeElement).datepicker("remove")},n.prototype.datepickerReinit=function(){this.datepickerDestroy(),this.datepickerInit()},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},Object.defineProperty(n.prototype,"value",{set:function(e){this.emitDebug("@Input set value: "+this.visibleData+" -> "+e),this.setValue(e)},enumerable:!1,configurable:!0}),n.prototype.writeValue=function(e){this.emitDebug("writeValue: "+e),this.setValue(e)},n.prototype.setValue=function(e){var t=this;this.emitDebug("setValue: "+e),this.emitDebug("current visibleData: "+this.visibleData),this.emitDebug("update visibleData: "+this.visibleData+" -> "+e);var n=nt(e);d(e)?this.visibleData=n?Fe(e):e:this.visibleData=void 0,this.cdr.detectChanges(),setTimeout((function(){var i=n?Me(t.visibleData):t.visibleData;t.emitDebug("this.valueChange.emit("+e+")"),t.valueChange.emit(i),n&&t.setDatepickerDate(t.visibleData)})),this.cleanError(),this.cdr.detectChanges(),this.onChange&&this.onChange(e),this.cdr.detectChanges()},n.prototype.onChangeHandler=function(e){this.value=e.target.value},n.prototype.setDatepickerDate=function(e){window.$(this.formControlElement.nativeElement).datepicker("setDate",e)},n}(Ue);rt.decorators=[{type:t.Component,args:[{selector:"inail-input-date",template:'<div class="date datePicker {{getResponsiveClass()}} noPaddingLeft {{class}}"\n [ngClass]="{\'has-error\': isThereDataError()}">\n <div class="form-group">\n <div class="input-relative">\n <label *ngIf="label"\n [ngClass]="{\'sr-only\': hiddenLabel}"\n class="control-label {{labelClass}}"\n title="{{labelTitle}}"\n for="{{id}}" [innerHTML]="getLabel()"></label>\n <span *ngIf="showPopover()"\n [style.padding-left.px]="5">\n <inail-popover [iconClass]="popoverButtonIcon"\n [buttonTitle]="popoverButtonTitle"\n [header]="popoverHeader"\n [content]="popoverContent">\n </inail-popover>\n </span>\n <input id="{{id}}"\n #formControl\n class="form-control"\n [ngClass]="inputClass"\n title="GG/MM/AAAA"\n placeholder="GG/MM/AAAA"\n type="text"\n (change)="onChangeHandler($event)"\n (paste)="onChangeHandler($event)"\n (keyup)="onChangeHandler($event)"\n [disabled]="this.disabled"\n [readonly]="this.readonly"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="isThereDataError() === true ? true : undefined"\n [attr.aria-describedBy]="getAriaDescribedBy()"\n (keyup.enter)="enterUp.emit()"\n [(ngModel)]="this.visibleData">\n <em class="fa fa-calendar"\n title="Calendario"\n (click)="formControl.focus()"></em>\n </div>\n <div *ngIf="showDataError()" [id]="id+\'-description\'">\n <div class="msg msg-errore">\n <strong [innerHTML]="\'ERRORE: \'+getDescError()"></strong>\n </div>\n <div *ngIf="description" [innerHTML]="description"></div>\n </div>\n <div *ngIf="description && !showDataError()"\n [id]="id+\'-description\'"\n [innerHTML]="this.description">\n </div>\n </div>\n</div>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return rt})),multi:!0}],styles:[""]}]}],rt.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},rt.propDecorators={formControlElement:[{type:t.ViewChild,args:["formControl",{static:!0}]}],valueChange:[{type:t.Output}],options:[{type:t.Input}],enabledDates:[{type:t.Input}],disabledDates:[{type:t.Input}],reinit:[{type:t.Input}],value:[{type:t.Input}]};var st=function(e){return e?JSON.parse(JSON.stringify(e)):e},lt=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.selectedValue="",i.select=new t.EventEmitter,i.valueChange=new t.EventEmitter,i.getName=function(){return i.name||i.id+"-name"},i.logPrefix="[inail-radio-select]",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(t){var n,i,a,o;if(e.prototype.ngOnChanges.call(this,t),(null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.currentValue)&&(this.options=st(null===(i=null==t?void 0:t.options)||void 0===i?void 0:i.currentValue),this.options.forEach((function(e){u(e.id)&&(e.id=k())}))),((null===(a=null==t?void 0:t.options)||void 0===a?void 0:a.currentValue)||(null===(o=null==t?void 0:t.sort)||void 0===o?void 0:o.currentValue))&&this.sort){var r="ASC"==this.sort.toUpperCase()?1:"DESC"==this.sort.toUpperCase()?-1:0;0!=r&&null!=this.options&&this.options.sort((function(e,t){return e.label<t.label?-r:e.label>t.label?r:0}))}this.cdr.detectChanges()},n.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.focus&&this.push(this.focus.subscribe((function(e){t.emitDebug("Catch focus!");var n=t.inputRadio.find((function(e){return e.nativeElement.checked}));z((null==n?void 0:n.nativeElement)||t.inputRadio.first.nativeElement,e)})))},Object.defineProperty(n.prototype,"value",{get:function(){return this.selectedValue},set:function(e){this.emitDebug("@Input set value: "+this.selectedValue+" -> "+e),this.setValue(e)},enumerable:!1,configurable:!0}),n.prototype.writeValue=function(e){this.emitDebug("writeValue: "+e),this.setValue(e)},n.prototype.setValue=function(e){var t=this;this.emitDebug("setValue: "+e),this.selectedValue!=e&&setTimeout((function(){t.emitDebug("update value: "+t.selectedValue+" -> "+e),t.selectedValue=e||"",t.cdr.detectChanges(),t.emitDebug("this.valueChange.emit("+t.selectedValue+")"),t.valueChange.emit(t.selectedValue),t.select.emit(t.options.find((function(e){return(null==e?void 0:e.value)===t.selectedValue}))),t.cleanError(),t.onChange&&t.onChange(t.selectedValue)}))},n.prototype.ngAfterViewInit=function(){this.emitDebug("@ViewChild('formControl')"),this.emitDebug(this.formControlElement),this.emitDebug("@ViewChildren('inputRadio')"),this.emitDebug(this.inputRadio)},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n}(Ue);lt.decorators=[{type:t.Component,args:[{selector:"inail-radio-select",template:'<div [id]=\'id\' class="{{getResponsiveClass()}} {{class}} noPadding inail-radio-select" #formControl>\n <fieldset class="form-group col-xs-12 noPaddingLeft" [id]="getName()"\n role="radiogroup"\n [attr.aria-required]="required === true ? true : undefined">\n <legend class="radio-legend {{labelClass}}"\n [ngStyle]="{\'display\': hiddenLabel ? \'none\': \'contents\'}"\n [innerHTML]="getLabel()">\n </legend>\n <span *ngIf="showPopover()"\n [style.padding-left.px]="5">\n <inail-popover [iconClass]="popoverButtonIcon"\n [buttonTitle]="popoverButtonTitle"\n [header]="popoverHeader"\n [content]="popoverContent">\n </inail-popover>\n </span>\n <br *ngIf="!hiddenLabel">\n <div class="radio {{inline === true ? \'inline\' : \'\'}}" *ngFor="let option of options">\n <label [for]="option?.id">\n <input [attr.id]="option?.id"\n #inputRadio\n type="radio"\n class="{{inputClass}} {{option?.class}}"\n [name]="getName()"\n [attr.title]="option?.title || title"\n [disabled]="disabled"\n [attr.aria-invalid]="isThereError() === true ? true : undefined"\n [attr.aria-describedBy]="getAriaDescribedBy()"\n [value]="option?.value"\n (blur)="onBlur()"\n (keyup.enter)="enterUp.emit()"\n [(ngModel)]="value">\n <span [innerHTML]="option?.label"\n [ngClass]="{\'sr-only\': hiddenLabel}">\n </span>\n </label>\n <span *ngIf="option?.popover === true"\n [style.padding-left.px]="5">\n <inail-popover [iconClass]="option?.popoverButtonIcon"\n [buttonTitle]="option?.popoverButtonTitle"\n [header]="option?.popoverHeader"\n [content]="option?.popoverContent">\n </inail-popover>\n </span>\n </div>\n <div *ngIf="showError()" [id]="id+\'-description\'">\n <div class="msg msg-errore">\n <strong [innerHTML]="\'ERRORE: \'+this.error"></strong>\n </div>\n <div *ngIf="description" [innerHTML]="this.description"></div>\n </div>\n <div *ngIf="description && !showError()"\n [id]="id+\'-description\'"\n [innerHTML]="this.description">\n </div>\n </fieldset>\n</div>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return lt})),multi:!0}],styles:[".inail-radio-select .radio.inline{display:inline-block;margin-right:20px}"]}]}],lt.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},lt.propDecorators={formControlElement:[{type:t.ViewChild,args:["formControl"]}],inputRadio:[{type:t.ViewChildren,args:["inputRadio"]}],options:[{type:t.Input}],name:[{type:t.Input}],sort:[{type:t.Input}],inline:[{type:t.Input}],select:[{type:t.Output}],valueChange:[{type:t.Output}],value:[{type:t.Input}]};var ct=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.checkedChange=new t.EventEmitter,i.checkboxClick=new t.EventEmitter,i.click=new t.EventEmitter,i.stateChange=new t.EventEmitter,i.state={name:void 0,value:void 0,checked:void 0,firstChange:!0},i.emitState=function(){i.state.name=i.name,i.state.value=i.value,i.state.checked=i.checked,i.stateChange.emit(i.state),i.state.firstChange=!1},i.logPrefix="[inail-checkbox]",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.checked=!!this.checked,this.cdr.detectChanges()},n.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.emitDebug("@ViewChild('formControl')"),this.emitDebug(this.formControlElement),this.focus&&this.push(this.focus.subscribe((function(e){t.emitDebug("Catch focus!"),z(t.formControlElement.nativeElement,e)})))},n.prototype.ngAfterViewInit=function(){},n.prototype.labelOnClick=function(e){e.stopPropagation(),this.click.emit(e)},n.prototype.cbOnEnter=function(){this.checked=!this.checked,this.enterUp.emit()},Object.defineProperty(n.prototype,"checked",{get:function(){return this.checkedValue},set:function(e){this.emitDebug("setValue: "+e),this.checkedValue!=e&&(this.emitDebug("update value: "+this.checkedValue+" -> "+e),this.checkedValue=e,this.cdr.detectChanges(),this.emitDebug("this.checkedChange.emit("+e+")"),this.checkedChange.emit(e),this.emitState(),this.cleanError(),this.onChange&&this.onChange(e))},enumerable:!1,configurable:!0}),n.prototype.writeValue=function(e){this.emitDebug("writeValue: "+e),this.checked=e},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n}(Ue);ct.decorators=[{type:t.Component,args:[{selector:"inail-checkbox",template:'<div class="form-group {{getResponsiveClass()}} noPaddingLeft {{class}}"\n (click)="$event.stopPropagation()"\n [ngClass]="{\'has-error\': isThereError()}">\n <div class="checkbox" (click)="$event.stopPropagation()">\n <label class="checkbox-inline {{labelClass}}"\n [attr.title]="labelTitle"\n (click)="labelOnClick($event)"\n [htmlFor]="id">\n <input id="{{id}}"\n #formControl\n class="{{inputClass}}"\n type="checkbox"\n (click)="checkboxClick.emit($event)"\n [disabled]="disabled"\n (keyup.enter)="cbOnEnter()"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="isThereError() === true ? true : undefined"\n [attr.aria-describedBy]="getAriaDescribedBy()"\n [(ngModel)]=\'checked\'\n [attr.value]="value"\n [attr.title]="title">\n <span *ngIf="label"\n (click)="$event.stopPropagation()"\n [ngClass]="{\'sr-only\': hiddenLabel}"\n [innerHTML]="getLabel()">\n </span>\n </label>\n <span *ngIf="showPopover()">\n <inail-popover [iconClass]="popoverButtonIcon"\n [buttonTitle]="popoverButtonTitle"\n [header]="popoverHeader"\n [content]="popoverContent">\n </inail-popover>\n </span>\n </div>\n <div *ngIf="showError()" [id]="id+\'-description\'">\n <div class="msg msg-errore">\n <strong [innerHTML]="\'ERRORE: \'+this.error"></strong>\n </div>\n <div *ngIf="description" [innerHTML]="this.description"></div>\n </div>\n <div *ngIf="description && !showError()"\n [id]="id+\'-description\'"\n [innerHTML]="this.description">\n </div>\n</div>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return ct})),multi:!0}],styles:[""]}]}],ct.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},ct.propDecorators={formControlElement:[{type:t.ViewChild,args:["formControl",{static:!0}]}],value:[{type:t.Input}],checkedChange:[{type:t.Output}],checkboxClick:[{type:t.Output}],click:[{type:t.Output}],stateChange:[{type:t.Output}],checked:[{type:t.Input}]};var pt='a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])',ut=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.closeButtonTitle="Chiudi modale",i.close=new t.EventEmitter,i.width="M",i.closeOnClick=function(){return i.showModal(!1)},i.setFocusOnLastPageActiveElement=function(){null!=i.pageActiveElement&&(window.$(i.pageActiveElement).length>0?i.pageActiveElement.focus():i.setFocusOnPreviusFocusableElement(i.previusFocusableElements.length-1))},i.logPrefix="[inail-modal]",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(t){var n,i=this;e.prototype.ngOnChanges.call(this,t),(null===(n=t.show)||void 0===n?void 0:n.currentValue)&&this.push(t.show.currentValue.subscribe((function(e){if(null==e&&(e=!0),!0===e){i.pageActiveElement=document.activeElement;var t=window.$("body").find(pt);i.previusFocusableElements=t.filter((function(e){return e<t.index(i.pageActiveElement)}))}i.showModal(e)}))),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this),this.cdr.detectChanges()},n.prototype.ngAfterViewInit=function(){},n.prototype.showModal=function(e){var t=this;window.$("#"+this.id).modal(e?"show":"hide"),e?(setTimeout((function(){return t.trapFocus()}),500),x(!1)):(this.close.emit(),x(!0),setTimeout((function(){return t.setFocusOnLastPageActiveElement()}),500))},n.prototype.trapFocus=function(){var e=window.$("#"+this.id),t=e.find(".modal-content").find(pt),n=t[0],i=t[t.length-1];n.focus(),e[0].addEventListener("keydown",(function(e){"Tab"!==e.key&&9!==e.keyCode||(e.shiftKey?document.activeElement===n&&(i.focus(),e.preventDefault()):document.activeElement===i&&(n.focus(),e.preventDefault()))}))},n.prototype.setFocusOnPreviusFocusableElement=function(e){e>=0&&(window.$(this.previusFocusableElements[e]).length>0?this.previusFocusableElements[e].focus():this.setFocusOnPreviusFocusableElement(e-1))},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n}(R);ut.decorators=[{type:t.Component,args:[{selector:"inail-modal",template:'<div class="modal fade inail-modal {{class}}"\n [id]="id"\n tabindex="-1"\n role="dialog"\n data-keyboard="false"\n data-backdrop="static"\n (keyup.escape)="this.showModal(false)"\n [attr.aria-labelledby]="id+\'-TITOLO\'">\n <div class="vertical-alignment-helper">\n <div class="modal-dialog vertical-align-center"\n [ngClass]="{\'medium\' : width==\'M\', \'wide\' : width==\'L\'}">\n <div class="modal-content">\n <div class="modal-header">\n <span class="modal-title"\n tabindex="0"\n id="{{id}}-TITOLO" [innerHTML]="title"></span>\n <button type="button"\n id="{{id}}_close_button"\n [title]="closeButtonTitle"\n (click)="closeOnClick()"\n (keyup.space)="closeOnClick()"\n (keyup.enter)="closeOnClick()"\n class="close"\n aria-label="Close">\n <span aria-hidden="true">×</span>\n </button>\n </div>\n <div class="modal-body">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n </div>\n</div>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,styles:[".inail-modal .modal-dialog.medium{width:900px}.inail-modal .modal-dialog.wide{width:1200px}.inail-modal .modal-dialog{max-width:100vw!important}.inail-modal .close:focus,.inail-modal .modal-title:focus{outline:1px dotted #fff!important}"]}]}],ut.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},ut.propDecorators={title:[{type:t.Input}],closeButtonTitle:[{type:t.Input}],close:[{type:t.Output}],show:[{type:t.Input}],width:[{type:t.Input}],setFocusOnError:[{type:t.Input}]};var dt=function(e){function t(t){var n=e.call(this,t)||this;return n._cdr=t,n.okOnClick=function(){return n.showModal(!1)},n.logPrefix="[inail-alert]",n.title="Messaggio informativo",n.width="S",n.closeButtonTitle="Chiudi messaggio informativo",n.detach(),n}return P(t,e),t.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this._cdr.detectChanges()},t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this),this._cdr.detectChanges()},t.prototype.ngAfterViewInit=function(){},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t}(ut);dt.decorators=[{type:t.Component,args:[{selector:"inail-alert",template:'<inail-modal [id]="id"\n [show]="show"\n [class]="class"\n [title]="title"\n [closeButtonTitle]="closeButtonTitle"\n [logOnConsole]="logOnConsole"\n [width]="this.width"\n (close)="close.emit($event)"\n (log)="log.emit($event)">\n <div class="row">\n <p *ngIf="message" [innerHTML]="message"></p>\n <p *ngIf="!message">\n <ng-content></ng-content>\n </p>\n </div>\n <div class="row alert-footer">\n <button type="button"\n (click)="okOnClick()"\n class="btn btn-primary pull-right">Ok\n </button>\n </div>\n</inail-modal>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,styles:[".alert-footer{padding-bottom:20px!important;padding-top:20px!important}.alert-footer button{margin-right:0!important}"]}]}],dt.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},dt.propDecorators={message:[{type:t.Input}]};var ht=function(e){function n(n){var i=e.call(this,n)||this;return i._cdr=n,i.confirmButtonLabel="Si",i.rejectButtonLabel="No",i.confirm=new t.EventEmitter,i.reject=new t.EventEmitter,i.cancel=new t.EventEmitter,i.logPrefix="[inail-confirm]",i.title="Conferma operazione",i.message="Confermare l'operazione richiesta?",i.width="S",i.closeButtonTitle="Chiudi modale di conferma",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this._cdr.detectChanges()},n.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this),this._cdr.detectChanges()},n.prototype.ngAfterViewInit=function(){},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n.prototype.confirmOnClick=function(){this.showModal(!1),this.confirm.emit()},n.prototype.rejectOnClick=function(){this.showModal(!1),this.reject.emit()},n.prototype.cancelOnClick=function(){this.showModal(!1),this.cancel.emit()},n}(ut);ht.decorators=[{type:t.Component,args:[{selector:"inail-confirm",template:'<inail-modal [id]="id"\n [show]="show"\n [class]="class"\n [title]="title"\n [closeButtonTitle]="closeButtonTitle"\n [logOnConsole]="logOnConsole"\n [width]="width"\n (close)="cancelOnClick()"\n (log)="log.emit($event)">\n <div class="row">\n <p *ngIf="message" [innerHTML]="message"></p>\n <p *ngIf="!message">\n <ng-content></ng-content>\n </p>\n </div>\n <div class="row confirm-footer">\n <inail-button [label]="rejectButtonLabel"\n (onclick)="rejectOnClick()">\n </inail-button>\n <inail-button [class]="\'pull-right\'"\n [setFocusOnError]="setFocusOnError"\n [label]="confirmButtonLabel"\n (onclick)="confirmOnClick()">\n </inail-button>\n </div>\n</inail-modal>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,styles:[".confirm-footer{padding-bottom:20px!important;padding-top:20px!important}.confirm-footer button{margin-right:0!important}"]}]}],ht.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},ht.propDecorators={message:[{type:t.Input}],confirmButtonLabel:[{type:t.Input}],rejectButtonLabel:[{type:t.Input}],confirm:[{type:t.Output}],reject:[{type:t.Output}],cancel:[{type:t.Output}]};var gt=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.listSize=0,i.pageSize=10,i.currentPage=1,i.select=new t.EventEmitter,i.logPrefix="[inail-table-page-selector]",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(t){var n;e.prototype.ngOnChanges.call(this,t),!this.externalPagination&&t.currentPage&&t.currentPage.firstChange&&null!=t.currentPage.currentValue&&(this.externalPagination=!0),(null==t?void 0:t.pageSize)&&null==(null==t?void 0:t.pageSize.currentValue)&&(this.pageSize=10),(null==t?void 0:t.listSize)&&null==(null==t?void 0:t.listSize.currentValue)&&(this.listSize=0),(null==t?void 0:t.currentPage)&&null==(null==t?void 0:t.currentPage.currentValue)&&(this.currentPage=1),t&&(t.pageSize||t.listSize)&&(this.calcolaNumeroPagine(),this.externalPagination||(this.currentPage=1)),null!=(null===(n=null==t?void 0:t.currentPage)||void 0===n?void 0:n.currentValue)&&(t.currentPage.currentValue>this.length?(this.currentPage=this.length,this.emitCurrentPage(this.currentPage)):t.currentPage.currentValue<1&&(this.currentPage=1,this.emitCurrentPage(this.currentPage))),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},n.prototype.calcolaNumeroPagine=function(){this.length=Math.floor(this.listSize/this.pageSize),this.listSize%this.pageSize>0&&this.length++,0!=this.length&&null!=this.length||(this.length=1)},Object.defineProperty(n.prototype,"pages",{get:function(){return new Array(this.length)},enumerable:!1,configurable:!0}),n.prototype.set=function(e){e>0&&e<=this.length&&(this.externalPagination||(this.currentPage=e),this.emitCurrentPage(e)),this.cdr.detectChanges()},n.prototype.prev=function(){this.set(this.currentPage-1)},n.prototype.next=function(){this.set(this.currentPage+1)},n.prototype.emitCurrentPage=function(e){this.select.emit(e)},n.prototype.ngAfterViewInit=function(){this.cdr.detectChanges()},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n}(R);gt.decorators=[{type:t.Component,args:[{selector:"inail-table-page-selector",template:'<ng-container *ngIf="listSize > pageSize">\n <div class="bottom paginate-component inail-table-page-selector">\n <div class="dataTables_paginate paging_simple_numbers">\n <ul class="pagination">\n\n <li class="paginate_button previous"\n [ngClass]="{\'disabled\': currentPage == 1}">\n <a href="javascript:void(0)" (click)="prev()"\n [attr.aria-label]="\'Visualizza la pagina precedente della tabella\'"\n [attr.aria-controls]="tableId != undefined ? tableId : undefined">\n <span class="sr-only">indietro</span>\n </a>\n </li>\n\n <ng-container *ngIf="pages.length <=10">\n <ng-container *ngFor="let p of pages; index as i">\n <li class="paginate_button"\n [ngClass]="{\'active\': currentPage == i+1}">\n <a href="javascript:void(0)"\n [attr.aria-label]="\'Visualizza la pagina \'+(i+1)+\' della tabella\'"\n [attr.aria-controls]="tableId != undefined ? tableId : undefined"\n (click)="set(i+1)">{{i + 1}}</a>\n </li>\n </ng-container>\n </ng-container>\n <ng-container *ngIf="pages.length > 10">\n\n <ng-container *ngIf="currentPage <= 4 ">\n\n <ng-container *ngFor="let p of [0, 1, 2, 3, 4]; index as i">\n <li class="paginate_button"\n [ngClass]="{\'active\': currentPage == i+1}">\n <a href="javascript:void(0)"\n [attr.aria-label]="\'Visualizza la pagina \'+(i+1)+\' della tabella\'"\n [attr.aria-controls]="tableId != undefined ? tableId : undefined"\n (click)="set(i+1)">{{i + 1}}</a>\n </li>\n </ng-container>\n\n </ng-container>\n\n <ng-container *ngIf="currentPage > 4">\n <li class="paginate_button">\n <a href="javascript:void(0)"\n [attr.aria-label]="\'Visualizza la pagina 1 della tabella\'"\n [attr.aria-controls]="tableId != undefined ? tableId : undefined"\n (click)="set(1)">1</a>\n </li>\n <li class="paginate_button disabled">\n <a href="javascript:void(0)">...</a>\n </li>\n </ng-container>\n\n <ng-container *ngIf="currentPage > 4 && currentPage < (pages.length - 3)">\n <li class="paginate_button">\n <a href="javascript:void(0)"\n [attr.aria-label]="\'Visualizza la pagina \'+(currentPage-1)+\' della tabella\'"\n [attr.aria-controls]="tableId != undefined ? tableId : undefined"\n (click)="set(currentPage-1)">{{currentPage - 1}}</a>\n </li>\n <li class="paginate_button active">\n <a href="javascript:void(0)"\n [attr.aria-label]="\'Visualizza la pagina \'+currentPage+\' della tabella\'"\n [attr.aria-controls]="tableId != undefined ? tableId : undefined"\n (click)="set(currentPage)">{{currentPage}}</a>\n </li>\n <li class="paginate_button">\n <a href="javascript:void(0)"\n [attr.aria-label]="\'Visualizza la pagina \'+(currentPage-1)+\' della tabella\'"\n [attr.aria-controls]="tableId != undefined ? tableId : undefined"\n (click)="set(currentPage+1)">{{currentPage + 1}}</a>\n </li>\n </ng-container>\n\n <ng-container *ngIf="currentPage < (pages.length - 3)">\n <li class="paginate_button disabled">\n <a href="javascript:void(0)">...</a>\n </li>\n <li class="paginate_button">\n <a href="javascript:void(0)"\n [attr.aria-label]="\'Visualizza la pagina \'+(pages.length)+\' della tabella\'"\n [attr.aria-controls]="tableId != undefined ? tableId : undefined"\n (click)="set(pages.length)">{{pages.length}}</a>\n </li>\n </ng-container>\n\n <ng-container *ngIf="currentPage >= (pages.length - 3)">\n <ng-container *ngFor="let p of [(pages.length - 4), (pages.length - 3), (pages.length - 2), (pages.length - 1), (pages.length)]">\n <li class="paginate_button"\n [ngClass]="{\'active\': currentPage == p}">\n <a href="javascript:void(0)"\n [attr.aria-label]="\'Visualizza la pagina \'+p+\' della tabella\'"\n [attr.aria-controls]="tableId != undefined ? tableId : undefined"\n (click)="set(p)">{{p}}</a>\n </li>\n </ng-container>\n\n </ng-container>\n </ng-container>\n\n <li class="paginate_button next"\n [ngClass]="{\'disabled\': currentPage == pages.length}">\n <a href="javascript:void(0)"\n [attr.aria-label]="\'Visualizza la pagina successiva della tabella\'"\n [attr.aria-controls]="tableId"\n (click)="next()">\n <span class="sr-only">avanti</span>\n </a>\n </li>\n </ul>\n </div>\n </div>\n</ng-container>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,styles:[".inail-table-page-selector .pagination>li>a{background-color:initial!important}"]}]}],gt.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},gt.propDecorators={tableId:[{type:t.Input}],listSize:[{type:t.Input}],pageSize:[{type:t.Input}],currentPage:[{type:t.Input}],select:[{type:t.Output}]};var mt=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.label="Elementi per pagina",i.options=[10,25,50,100],i.valueChange=new t.EventEmitter,i.logPrefix="[inail-table-page-length-selector]",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},n.prototype.ngAfterViewInit=function(){this.cdr.detectChanges()},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},Object.defineProperty(n.prototype,"value",{get:function(){return this.selectedValue},set:function(e){e!=this.selectedValue&&(this.selectedValue=e,this.valueChange.emit(this.selectedValue))},enumerable:!1,configurable:!0}),n}(R);mt.decorators=[{type:t.Component,args:[{selector:"inail-table-page-length-selector",template:'<div class="dataTables_length inail-table-page-length-selector">\n <label>\n <span [innerHTML]="label"></span> \n <select name="tabella_length"\n [(ngModel)]="this.value"\n [attr.aria-controls]="tableId"\n class="form-control input-sm">\n <option *ngFor="let n of options"\n value="{{n}}">\n {{n}}\n </option>\n \x3c!--<option value="10">10</option>\n <option value="25">25</option>\n <option value="50">50</option>\n <option value="100">100</option>--\x3e\n </select>\n </label>\n</div>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,styles:[".inail-table-page-length-selector select.form-control{display:inline-block}"]}]}],mt.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},mt.propDecorators={tableId:[{type:t.Input}],label:[{type:t.Input}],options:[{type:t.Input}],valueChange:[{type:t.Output}],value:[{type:t.Input}]};var ft=function(){},vt=function(e){function n(i,a){var o=e.call(this,i)||this;return o.cdr=i,o.ASC=n.ASC,o.DESC=n.DESC,o.UNSORTED=n.UNSORTED,o.click=new t.EventEmitter,o.logPrefix="[inail-th-label]",o.direction=n.UNSORTED,o.elementRef=a,o.detach(),o}return P(n,e),n.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t)},n.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},n.prototype.ngAfterViewInit=function(){this.cdr.detectChanges()},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n.prototype.getAriaSortValue=function(e){var t;switch(e){case n.ASC:t="ascending";break;case n.DESC:t="descending";break;case n.UNSORTED:t="none"}return t},n.prototype.onClick=function(e){e.stopPropagation(),this.emettiEventoOrdinamento(),this.cdr.detectChanges()},n.prototype.emettiEventoOrdinamento=function(){if(this.sortable&&this.property){this.direction=-1*this.direction,this.direction==n.UNSORTED&&(this.direction=n.ASC);var e={direction:this.direction,property:this.property};this.click.emit(e)}},n.prototype.setAsUnsorted=function(){this.direction=n.UNSORTED},n}(R);vt.ASC=1,vt.DESC=-1,vt.UNSORTED=0,vt.decorators=[{type:t.Component,args:[{selector:"inail-th-label",template:'<a *ngIf="sortable"\n href="javascript:void(0)"\n role="button"\n class="inail-th-label"\n [attr.aria-label]="label + \': attiva per ordinare la colonna in ordine \' + (direction == ASC ? \'decrescente\' : \'crescente\')"\n (click)="onClick($event)">\n <span class="sortable thLabel"\n [innerHTML]="label"\n [attr.title]="title">\n </span>\n</a>\n<span *ngIf="!sortable"\n (click)="onClick($event)"\n [innerHTML]="label"\n [attr.title]="title">\n</span>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,styles:[".inail-th-label .sortable{cursor:pointer}.inail-th-label .fa{padding:0 10px}a.inail-th-label{background:transparent;color:#000;text-decoration:none}"]}]}],vt.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef}]},vt.propDecorators={label:[{type:t.Input}],property:[{type:t.Input}],title:[{type:t.Input}],sortable:[{type:t.Input}],click:[{type:t.Output}]};var bt=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.hiddenLabel=!0,i.disabled=!1,i.initComplete=new c.ReplaySubject,i.onclick=new t.EventEmitter,i.onDestroy=new t.EventEmitter,i.checked=!1,i.logPrefix="[inail-tr-checkbox]",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this),null==this.label&&(this.label=this.value)},n.prototype.ngAfterViewInit=function(){this.initComplete.next()},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.onDestroy.emit()},n.prototype.clickHandler=function(){this.disabled||this.onclick.emit()},n.prototype.setChecked=function(e){this.checked=e,this.cdr.detectChanges()},n}(R);bt.decorators=[{type:t.Component,args:[{selector:"inail-tr-checkbox",template:'<inail-checkbox [label]="label"\n [id]="this.id"\n [class]="\'inail-tr-checkbox noPaddingRight\'"\n [hiddenLabel]="hiddenLabel"\n [disabled]="disabled"\n [title]="title"\n [checked]="checked"\n (click)="clickHandler()">\n</inail-checkbox>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,styles:[".inail-tr-checkbox,.inail-tr-checkbox .checkbox{margin:0!important}.inail-tr-checkbox .checkbox input{margin-top:2px}"]}]}],bt.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},bt.propDecorators={label:[{type:t.Input}],title:[{type:t.Input}],value:[{type:t.Input}],hiddenLabel:[{type:t.Input}],disabled:[{type:t.Input}],initComplete:[{type:t.Output}],onclick:[{type:t.Output}],onDestroy:[{type:t.Output}]};var yt="desc",Ct=function(){},It=function(e){function n(n,i){var a=e.call(this,n)||this;return a.cdr=n,a.renderer=i,a.externalPaginationSorting=!1,a.displayedDataChange=new t.EventEmitter,a.elementsPerPage=10,a.elementsPerPageOptions=[10,25,50,100],a.noDataFound=!1,a.noDataFoundText="Nessun elemento trovato",a.disablePagination=!1,a.pagination=new t.EventEmitter,a.tallRows=!1,a.captionHidden=!1,a.bgWhite=!0,a.detailsClick=new t.EventEmitter,a.checkedRowsChange=new t.EventEmitter,a.visualizzaBaseFooter=!0,a.trcbInitSubscriptions={},a.trcbClickSubscriptions={},a.trcbDestroySubscriptions={},a.righeSelezionate=[],a.righeSelezionabili=[],a.getPageSize=function(){return a.externalPaginationSorting?a.paginationState.pageSize:a.tableLength},a.getListSize=function(){return a.externalPaginationSorting?a.paginationState.fullListSize:a.dataSource.length},a.getCurrentPage=function(){return a.externalPaginationSorting&&a.paginationState?a.paginationState.pageNumber:a.currentPage},a.isChecked=function(e){return a.righeSelezionate.some((function(t){return t==e}))},a.isAllChecked=function(){return a.righeSelezionabili.length>0&&a.righeSelezionabili.every(a.isChecked)},a.isThCheckbox=function(e){return document.querySelectorAll("th #"+e.id).length>0},a.isSelezionabile=function(e){return a.righeSelezionabili.some((function(t){return t==e}))},a.logPrefix="[inail-table]",a.detach(),a}return P(n,e),n.prototype.ngOnChanges=function(t){var n,i,a,o,r,s,l=this;e.prototype.ngOnChanges.call(this,t),this.externalPaginationSorting||!0!==(null===(n=t.paginationState)||void 0===n?void 0:n.firstChange)||null==(null===(i=t.paginationState)||void 0===i?void 0:i.currentValue)||(this.externalPaginationSorting=!0),null==t.dataSource||t.dataSource.firstChange||this.externalPaginationSorting||(this.tablePageSelectorComponent&&(this.tablePageSelectorComponent.currentPage=1),this.emitSubset(1)),!this.externalPaginationSorting&&(null===(a=t.doPagination)||void 0===a?void 0:a.currentValue)&&this.push(t.doPagination.currentValue.subscribe((function(e){l.lengthOnChange(e.pageSize),setTimeout((function(){return l.doSorting(e.sortProperty,e.sortDirection)}),100),setTimeout((function(){return l.pageOnChange(e.pageNumber)}),200)}))),null==t.elementsPerPage||t.elementsPerPage.firstChange||this.externalPaginationSorting||this.lengthOnChange(this.elementsPerPage),!0===(null===(o=t.noDataFound)||void 0===o?void 0:o.currentValue)&&(this.numeroColonne=document.querySelectorAll("#"+this.id+" th").length),(null===(r=t.selectableRowValues)||void 0===r?void 0:r.currentValue)&&(this.righeSelezionabili=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(A(arguments[t]));return e}(null===(s=t.selectableRowValues)||void 0===s?void 0:s.currentValue)),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.tableLength=this.externalPaginationSorting?this.paginationState.pageSize:this.elementsPerPage,this.externalPaginationSorting||setTimeout((function(){t.emitSubset(t.currentPage||1)}))},n.prototype.ngAfterViewInit=function(){var e=this;this.inizializzaTabella(this.thLabelComponents),this.lookAtThLabel(this.thLabelComponents),setTimeout((function(){var t;return e.visualizzaBaseFooter=(null===(t=e.baseFooter)||void 0===t?void 0:t.nativeElement.childElementCount)>0})),this.cdr.detectChanges()},n.prototype.ngAfterViewChecked=function(){this.gestisciTrCheckbox()},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n.prototype.gestisciTrCheckbox=function(){var e,t=this;(null===(e=this.trCheckboxComponents)||void 0===e?void 0:e.length)>0&&(this.trCheckboxComponents.forEach((function(e){null==t.trcbInitSubscriptions[e.id]&&(t.trcbInitSubscriptions[e.id]=e.initComplete.subscribe((function(){null==t.selectableRowValues&&(t.righeSelezionabili=t.trCheckboxComponents.filter((function(e){return!t.isThCheckbox(e)})).map((function(e){return e.value})))}))),null==t.trcbClickSubscriptions[e.id]&&(t.trcbClickSubscriptions[e.id]=e.onclick.subscribe((function(){t.isThCheckbox(e)?t.checkAllOnClick():t.checkOnClick(e.value),t.checkedRowsChange.emit(t.righeSelezionate)}))),null==t.trcbDestroySubscriptions[e.id]&&(t.trcbDestroySubscriptions[e.id]=e.onDestroy.subscribe((function(){var n,i,a;null===(n=t.trcbInitSubscriptions[e.id])||void 0===n||n.unsubscribe(),null===(i=t.trcbClickSubscriptions[e.id])||void 0===i||i.unsubscribe(),null===(a=t.trcbDestroySubscriptions[e.id])||void 0===a||a.unsubscribe(),delete t.trcbInitSubscriptions[e.id],delete t.trcbClickSubscriptions[e.id],delete t.trcbDestroySubscriptions[e.id]})))})),this.trCheckboxComponents.forEach((function(e){e&&(t.isThCheckbox(e)?e.setChecked(t.isAllChecked()):e.setChecked(t.isChecked(e.value)))})))},n.prototype.checkOnClick=function(e){this.isChecked(e)?this.righeSelezionate=this.righeSelezionate.filter((function(t){return t!=e})):this.righeSelezionate.push(e)},n.prototype.checkAllOnClick=function(){var e=this;this.isAllChecked()?this.righeSelezionate=this.righeSelezionate.filter((function(t){return!e.isSelezionabile(t)})):this.righeSelezionate=this.righeSelezionate.concat(this.righeSelezionabili.filter((function(t){return!e.isChecked(t)})))},n.prototype.inizializzaTabella=function(e){var t=this;e&&e.forEach((function(e){t.modificaTh(e)}))},n.prototype.lookAtThLabel=function(e){var t=this;e&&(this.thLabelComponents=e,e.forEach((function(e){e&&t.push(e.click.subscribe((function(n){t.performSorting(n,e)})))})))},n.prototype.doSorting=function(e,t){var n={property:e,direction:"asc"==t?vt.ASC:t==yt?vt.DESC:void 0},i=this.thLabelComponents.find((function(t){return t.property==e}));this.performSorting(n,i)},n.prototype.performSorting=function(e,t){if(null!=t&&null!=e&&null!=e.property){var n={};n.sortProperty=e.property,n.sortDirection=e.direction==vt.ASC?"asc":e.direction==vt.DESC?yt:void 0,n.pageNumber=1,this.resetDirectionSorting(t,this.thLabelComponents),this.modificaTh(t),this.externalPaginationSorting?(n.fullListSize=this.paginationState.fullListSize,n.pageSize=this.paginationState.pageSize):(this.ordina(e),this.emitSubset(1)),this.pagination.emit(n)}},n.prototype.resetDirectionSorting=function(e,t){var n=this;t&&t.forEach((function(t){t&&t.property!=e.property&&(t.setAsUnsorted(),n.modificaTh(t))}))},n.prototype.modificaTh=function(e){if(e&&!0===e.sortable){var t=e.elementRef.nativeElement.parentNode;t&&(this.removeSortClass(t),this.renderer.addClass(t,this.getThSortClass(e.direction)),t.setAttribute("aria-sort",this.getAriaSortValue(e.direction)),e.direction==vt.UNSORTED&&t.removeAttribute("aria-sort"))}},n.prototype.removeSortClass=function(e){this.renderer.removeClass(e,"sorting_asc"),this.renderer.removeClass(e,"sorting_desc"),this.renderer.removeClass(e,"sorting")},n.prototype.getThSortClass=function(e){var t;switch(e){case vt.ASC:t="sorting_asc";break;case vt.DESC:t="sorting_desc";break;case vt.UNSORTED:t="sorting"}return t},n.prototype.getAriaSortValue=function(e){var t;switch(e){case vt.ASC:t="ascending";break;case vt.DESC:t="descending";break;case vt.UNSORTED:t="none"}return t},n.prototype.ordina=function(e){e&&this.dataSource&&e.property&&(e.direction=-1*e.direction,e.direction==vt.UNSORTED&&(e.direction=vt.ASC),this.dataSource.sort(this.propertyComparator(e.property,e.direction)),this.dataSource=[].concat(this.dataSource),this.cdr.detectChanges())},n.prototype.propertyComparator=function(e,t){var n=e?e.split("."):void 0;function i(e,t){if(e&&t)return t.length>1?i(e[t[0]],t.slice(1,t.length)):e[t[0]]}return function(e,a){return(i(e,n)>i(a,n)?vt.DESC:vt.ASC)*t}},n.prototype.lengthOnChange=function(e){if(null!=e&&(!this.paginationState||e!=this.paginationState.pageSize)){var t={};this.externalPaginationSorting?t=Object.assign({},this.paginationState):this.tableLength!=e&&(this.tableLength=e,t={},this.emitSubset(1)),t.pageSize=e,t.pageNumber=1,this.pagination.emit(t)}},n.prototype.pageOnChange=function(e){if(null!=e){var t=void 0;this.externalPaginationSorting?t=Object.assign({},this.paginationState):(t={},this.emitSubset(e)),t.pageNumber=e,this.pagination.emit(t)}this.cdr.detectChanges()},n.prototype.emitSubset=function(e){if(e&&!this.externalPaginationSorting&&null!=this.dataSource){var t=this.tableLength*(e-1),n=Number(t)+Number(this.tableLength),i=this.dataSource.slice(t,n);this.currentPage=e,this.displayedDataChange.emit(i)}},n.prototype.visualizzaPaginazione=function(){return!this.disablePagination&&(null!=this.dataSource||null!=this.externalPaginationSorting&&null!=this.paginationState)},n}(N);It.decorators=[{type:t.Component,args:[{selector:"inail-table",template:'<div class="tabella table-responsive inail-table {{getResponsiveClass()}} noPaddingLeft {{class}}">\n\n <h3 *ngIf="title"\n class="col-xs-9 table-title pull-left noPaddingLeft {{titleClass}}"\n [innerHTML]="title">\n </h3>\n\n <a *ngIf="detailsLink"\n href="javascript:void(0)"\n (click)="detailsClick.emit()"\n class="col-xs-3 col-sm-2 linkDettagli pull-right"\n [innerHTML]="detailsLink">\n </a>\n\n <div *ngIf="description"\n class="col-xs-12 caption marginBottom noPaddingLeft"\n [innerHTML]="description">\n </div>\n\n <inail-table-page-length-selector *ngIf="visualizzaPaginazione()"\n [value]="getPageSize()"\n [tableId]="id"\n [options]="elementsPerPageOptions"\n (valueChange)="lengthOnChange($event)"\n [logOnConsole]="logOnConsole"\n (log)="log.emit($event)">\n </inail-table-page-length-selector>\n\n <ng-container *ngIf="true">\n\n <table id="{{id}}"\n class="table display dataTable {{tableClass}}"\n [ngClass]="{\'tabella-base\': !tallRows, \'bg-white\': bgWhite, \'bg-transparent\': !bgWhite}">\n\n <caption *ngIf="caption"\n [ngClass]="{\'sr-only\': captionHidden}"\n [innerHTML]="caption">\n </caption>\n\n <ng-content select="thead"></ng-content>\n\n <ng-container *ngIf="!noDataFound">\n <ng-content select="tbody"></ng-content>\n </ng-container>\n\n <tbody *ngIf="noDataFound">\n <tr role="row">\n <td class="content-text"\n style="padding: 30px; text-align: center"\n [colSpan]="numeroColonne"\n [innerHTML]="noDataFoundText">\n </td>\n </tr>\n </tbody>\n </table>\n\n <div #baseFooter\n class="col-xs-12 baseFooter noPaddingLeft"\n *ngIf="visualizzaBaseFooter">\n <ng-content select="[baseFooter]"></ng-content>\n </div>\n\n </ng-container>\n\n <inail-table-page-selector *ngIf="visualizzaPaginazione() && !this.noDataFound"\n [listSize]="getListSize()"\n [pageSize]="getPageSize()"\n [currentPage]="getCurrentPage()"\n [tableId]="id"\n (select)="pageOnChange($event)"\n [logOnConsole]="logOnConsole"\n (log)="log.emit($event)">\n </inail-table-page-selector>\n\n</div>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,styles:[".inail-table a.linkDettagli{color:#106cdb;-webkit-text-decoration-line:none;text-decoration-line:none}.inail-table a.linkDettagli:hover{-webkit-text-decoration-line:underline;text-decoration-line:underline}.inail-table table.table.dataTable.bg-white>tbody>tr:not(:hover){background-color:#fff}.inail-table table.table.dataTable.bg-transparent>tbody>tr:not(:hover){background-color:initial}"]}]}],It.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.Renderer2}]},It.propDecorators={dataSource:[{type:t.Input}],displayedData:[{type:t.Input}],displayedDataChange:[{type:t.Output}],doPagination:[{type:t.Input}],elementsPerPage:[{type:t.Input}],paginationState:[{type:t.Input}],elementsPerPageOptions:[{type:t.Input}],noDataFound:[{type:t.Input}],noDataFoundText:[{type:t.Input}],disablePagination:[{type:t.Input}],pagination:[{type:t.Output}],tallRows:[{type:t.Input}],caption:[{type:t.Input}],captionHidden:[{type:t.Input}],bgWhite:[{type:t.Input}],description:[{type:t.Input}],tableClass:[{type:t.Input}],title:[{type:t.Input}],titleClass:[{type:t.Input}],detailsLink:[{type:t.Input}],selectableRowValues:[{type:t.Input}],detailsClick:[{type:t.Output}],checkedRowsChange:[{type:t.Output}],thLabelComponents:[{type:t.ContentChildren,args:[vt,{descendants:!0}]}],trCheckboxComponents:[{type:t.ContentChildren,args:[bt,{descendants:!0}]}],tablePageSelectorComponent:[{type:t.ViewChild,args:[gt]}],baseFooter:[{type:t.ViewChild,args:["baseFooter"]}]};var wt=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.chooseButtonText="Scegli il file",i.addButtonText="Aggiungi",i.chooseButton=!0,i.addButton=!0,i.fileChange=new t.EventEmitter,i.logPrefix="[inail-input-file]",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.placeholder=this.getNotBlankValue(this.placeholder),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.emitDebug("@ViewChild('formControl')"),this.emitDebug(this.inputText),this.focus&&this.push(this.focus.subscribe((function(e){t.emitDebug("Catch focus!"),z(t.inputText.nativeElement,e)})))},n.prototype.ngAfterViewInit=function(){},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n.prototype.promptUpload=function(){document.getElementById(this.id).click()},n.prototype.changeModel=function(e){this.fileModel=e.target.files&&e.target.files[0],this.addButton||this.fileChange.emit(this.fileModel),this.cdr.detectChanges()},n.prototype.reset=function(){this.fileModel=void 0,this.fileChange.emit(void 0),this.cdr.detectChanges()},n}(Ue);wt.decorators=[{type:t.Component,args:[{selector:"inail-input-file",template:'<div class="form-group {{getResponsiveClass()}} noPaddingLeft {{class}} uploadFile inail-input-file"\n [ngClass]="{\'has-error\': isThereError()}">\n <div class="col-xs-12 noPaddingLeft">\n <div class="col-xs-12 noPaddingLeft" *ngIf="label">\n <label [for]="id"\n class="{{labelClass}}"\n [ngClass]="{\'sr-only\': hiddenLabel}"\n [attr.title]="labelTitle"\n [innerHTML]="getLabel()">\n </label>\n <span *ngIf="showPopover()"\n [style.padding-left.px]="5">\n <inail-popover [iconClass]="popoverButtonIcon"\n [buttonTitle]="popoverButtonTitle"\n [header]="popoverHeader"\n [content]="popoverContent">\n </inail-popover>\n </span>\n </div>\n <div class="col-xs-4 upload-file-button-container noPaddingLeft">\n <label for="{{id}}-input"\n class="sr-only">\n File\n </label>\n <input #inputText\n id="{{id}}-input"\n class="col-xs-12 form-control {{inputClass}}"\n readonly\n type="text"\n [disabled]="disabled"\n [attr.name]="name"\n [attr.title]="title"\n [attr.placeholder]="placeholder"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="isThereError() === true ? true : undefined"\n [attr.aria-describedBy]="getAriaDescribedBy()"\n [value]="fileModel?.name"\n (click)="promptUpload()">\n <button class="innerx" (click)="reset()">\n <span class="reset"></span>\n </button>\n \x3c!-- <span [innerHTML]="description"></span>--\x3e\n </div>\n <div class="col-xs-8">\n <div class="fileUpload pull-left noMarginLeft"\n [hidden]="!chooseButton">\n <div tabindex="0"\n (keyup.enter)="inputTypeFile.click()"\n class="btn btn-primary btn-fake noMargin col-xs-12 upload-container"\n [ngClass]="{\'disabled\': disabled}">\n <span [innerHTML]="chooseButtonText"></span>\n <input id="{{id}}"\n #inputTypeFile\n tabindex="-1"\n [attr.accept]="accept"\n [disabled]="disabled"\n [readonly]="readonly"\n class="btn btn-primary upload"\n type="file"\n (change)="changeModel($event)">\n </div>\n </div>\n <div *ngIf="addButton" class="fileUpload pull-left padding">\n <div class="form-group">\n <button class="btn btn-primary add-file"\n [disabled]="!fileModel"\n (click)="fileChange.emit(fileModel)"\n [innerHTML]="addButtonText">\n </button>\n </div>\n </div>\n <div class="fileSubmit col-xs-4 noMarginLeft">\n <button class="btn btn-primary noMargin btn-inline col-xs-12">Carica il file</button>\n </div>\n </div>\n </div>\n <div *ngIf="showError()" [id]="id+\'-description\'">\n <div class="msg msg-errore">\n <strong [innerHTML]="\'ERRORE: \'+this.error"></strong>\n </div>\n <div *ngIf="description" [innerHTML]="this.description"></div>\n </div>\n <div *ngIf="description && !showError()"\n [id]="id+\'-description\'"\n [innerHTML]="this.description">\n </div>\n</div>\n',styles:[".inail-input-file .btn-fake input{position:absolute;opacity:0!important}"]}]}],wt.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},wt.propDecorators={placeholder:[{type:t.Input}],chooseButtonText:[{type:t.Input}],addButtonText:[{type:t.Input}],chooseButton:[{type:t.Input}],addButton:[{type:t.Input}],accept:[{type:t.Input}],fileChange:[{type:t.Output}],inputText:[{type:t.ViewChild,args:["inputText",{static:!0}]}]};var Et=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.hideArrows=!1,i.valueChange=new t.EventEmitter,i.logPrefix="[inail-input-number]",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),t.value&&(this.previousValue=t.value.previousValue,this.normalizzaValore(),t.value.firstChange||(this.hasError=!1,this.error=void 0)),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.emitDebug("@ViewChild('formControl')"),this.emitDebug(this.formControlElement),this.focus&&this.push(this.focus.subscribe((function(e){t.emitDebug("Catch focus!"),z(t.formControlElement.nativeElement,e)})))},n.prototype.ngAfterViewInit=function(){},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},Object.defineProperty(n.prototype,"value",{get:function(){return this.inputValue},set:function(e){this.emitDebug("@Input set value: "+this.inputValue+" -> "+e),this.setValue(e)},enumerable:!1,configurable:!0}),n.prototype.writeValue=function(e){this.emitDebug("writeValue: "+e),this.setValue(e)},n.prototype.setValue=function(e){this.emitDebug("setValue: "+e),this.inputValue!=e&&(this.emitDebug("update value: "+this.inputValue+" -> "+e),this.inputValue=e,this.cdr.detectChanges(),this.emitDebug("this.valueChange.emit("+e+")"),this.valueChange.emit(e),this.cleanError(),this.onChange&&this.onChange(e))},n.prototype.normalizzaValore=function(){var e=this;setTimeout((function(){e.disabled||(null!=e.min&&e.inputValue<e.min?e.value=null!=e.previousValue?e.previousValue:e.min:null!=e.max&&e.inputValue>e.max&&(e.value=null!=e.previousValue?e.previousValue:e.max)),e.cdr.detectChanges()}))},n.prototype.onKeyUp=function(){null==this.inputValue||this.checkDecimal()||(this.inputValue=this.previousValue,this.valueChange.emit(this.inputValue)),this.inputValue,this.cdr.detectChanges()},n.prototype.checkDecimal=function(){if(null!=this.numberOfDecimals){var e=String(this.inputValue).split(".");return this.numberOfDecimals>0&&(1==e.length||e[1].length<=this.numberOfDecimals)||0==this.numberOfDecimals&&1==e.length}return!0},n}(Ue);Et.decorators=[{type:t.Component,args:[{selector:"inail-input-number",template:'<div class="form-group {{getResponsiveClass()}} noPaddingLeft {{class}} inail-input-number"\n [ngClass]="{\'has-error\': isThereError(), \'no-arrows\': hideArrows}">\n <label *ngIf="label"\n class="control-label {{labelClass}}"\n [ngClass]="{\'sr-only\': hiddenLabel}"\n [attr.title]="labelTitle"\n [for]="id"\n [innerHTML]="getLabel()"></label>\n <span *ngIf="showPopover()"\n [style.padding-left.px]="5">\n <inail-popover [iconClass]="popoverButtonIcon"\n [buttonTitle]="popoverButtonTitle"\n [header]="popoverHeader"\n [content]="popoverContent">\n </inail-popover>\n </span>\n <input #formControl\n type="number"\n [id]="id"\n class="form-control {{inputClass}}"\n [ngClass]="{\'disabled\': disabled}"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.name]="name"\n [attr.title]="title"\n [attr.max]="max"\n [attr.min]="min"\n [attr.step]="step"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="isThereError() === true ? true : undefined"\n [attr.aria-describedBy]="getAriaDescribedBy()"\n (keyup)="onKeyUp()"\n (blur)="onBlur()"\n (keyup.enter)="enterUp.emit()"\n [value]="inputValue"\n [(ngModel)]=\'value\'>\n \x3c!--<input type="text"\n *ngIf="disabled"\n [id]="id"\n class="form-control disabled {{inputClass}}"\n [attr.name]="name"\n [attr.title]="title"\n [disabled]="disabled"\n [attr.aria-describedBy]="getAriaDescribedBy()"\n [ngModel]=\'value\'>--\x3e\n <div *ngIf="showError()" [id]="id+\'-description\'">\n <div class="msg msg-errore">\n <strong [innerHTML]="\'ERRORE: \'+this.error"></strong>\n </div>\n <div *ngIf="description" [innerHTML]="this.description"></div>\n </div>\n <div *ngIf="description && !showError()"\n [id]="id+\'-description\'"\n [innerHTML]="this.description">\n </div>\n</div>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return Et})),multi:!0}],styles:[".inail-input-number.no-arrows input::-webkit-inner-spin-button,.inail-input-number.no-arrows input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.inail-input-number.no-arrows input[type=number]{-moz-appearance:textfield}"]}]}],Et.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},Et.propDecorators={formControlElement:[{type:t.ViewChild,args:["formControl",{static:!0}]}],max:[{type:t.Input}],min:[{type:t.Input}],step:[{type:t.Input}],numberOfDecimals:[{type:t.Input}],hideArrows:[{type:t.Input}],valueChange:[{type:t.Output}],value:[{type:t.Input}]};var zt=function(e){function t(t){var n=e.call(this,t)||this;return n.cdr=t,n.hidden=!1,n.rendered=!0,n.logPrefix="[inail-container]",n.xs=void 0,n.detach(),n}return P(t,e),t.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.cdr.detectChanges()},t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},t.prototype.ngAfterViewInit=function(){},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t}(N);zt.decorators=[{type:t.Component,args:[{selector:"inail-container",template:'<div [id]="id"\n class="inail-container {{getResponsiveClass()}} {{class}}"\n [hidden]="hidden"\n *ngIf="rendered">\n <ng-content></ng-content>\n</div>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],zt.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},zt.propDecorators={hidden:[{type:t.Input}],rendered:[{type:t.Input}]};var Dt=function(e){function n(n,i){var a=e.call(this,n)||this;return a.cdr=n,a.re2=i,a.showNumber=!1,a.fullNavigation=!0,a.contentsHidden=!0,a.currentItem=0,a.currentItemChange=new t.EventEmitter,a.itemChange=new t.EventEmitter,a.prevButtonTitle="scorri selettore a destra",a.nextButtonTitle="scorri selettore a sinistra",a.inizializzazioneContenutiCompletata=!1,a.totalTranslate=0,a.getItemLabel=function(e,t){return e.label+(e.required?" *":"")+(d(a.separator)?" ":"")+(!t&&d(a.separator)?a.separator:"")},a.isActive=function(e){return a.fullNavigation||e<=a.currentItem},a.isContainerItem=function(e,t,n){return e.code?t.id==e.code:n==e.index},a.translate=function(e){a.totalTranslate+=e,a.re2.setStyle(a.slickTrack.nativeElement,"transform","translate("+a.totalTranslate+"px)")},a.logPrefix="[inail-selector]",a.detach(),a}return P(n,e),n.prototype.ngOnChanges=function(t){var n,i,a,o=this;e.prototype.ngOnChanges.call(this,t),(null===(n=null==t?void 0:t.switchToFirstError)||void 0===n?void 0:n.currentValue)&&this.push(t.switchToFirstError.currentValue.subscribe((function(){var e=o.items.find((function(e){return e.error}));e&&o.itemOnClick(e)}))),(null===(i=null==t?void 0:t.switchTo)||void 0===i?void 0:i.currentValue)&&this.push(t.switchTo.currentValue.subscribe((function(e){return o.itemOnClick(e)}))),t.items&&this.inizializzaItems(),t.contentsHidden&&(null===(a=this.contenuti)||void 0===a?void 0:a.length)&&this.inizializzaContenuti(this.contenuti),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this),null==this.currentItem&&this.setCurrentItem(0),this.inizializzaItems()},n.prototype.ngAfterViewInit=function(){this.emitDebug("Contenitori interni"),this.emitDebug(this.contenuti),this.inizializzaContenuti(this.contenuti),this.cdr.detectChanges()},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n.prototype.setCurrentItem=function(e){this.currentItem=e,this.currentItemChange.emit(this.currentItem)},n.prototype.inizializzaItems=function(){this.items&&this.items.forEach((function(e,t){e&&(e.index=t)}))},n.prototype.inizializzaContenuti=function(e){var t,n=this;if(this.contenuti=e,(null===(t=this.contenuti)||void 0===t?void 0:t.length)>0){var i=this.items.find((function(e){return e.index==n.currentItem}));this.showContent(i),setTimeout((function(){n.inizializzazioneContenutiCompletata=!0,n.cdr.detectChanges()}))}},n.prototype.showContent=function(e){var t=this;if(e){this.contenuti.forEach((function(e){return t.modificaVisibilita(e,!1)}));var n=this.contenuti.find((function(n,i){return t.isContainerItem(e,n,i)}));this.modificaVisibilita(n,!0)}},n.prototype.modificaVisibilita=function(e,t){e&&(this.contentsHidden?(e.rendered=!0,e.hidden=!t):(e.rendered=t,e.hidden=!1),e.detectChanges())},n.prototype.itemOnClick=function(e){var t,n;(n=h(e)?this.items.find((function(t){return t.index==e})):g(e)?this.items.find((function(t){return t.code==e})):e)&&((n.index<this.currentItem||n.index>this.currentItem)&&(this.setCurrentItem(n.index),this.itemChange.emit(n)),(null===(t=this.contenuti)||void 0===t?void 0:t.length)>0&&this.showContent(n)),this.cdr.detectChanges()},n.prototype.prevButtonOnClick=function(){this.translate(120),this.cdr.detectChanges()},n.prototype.nextButtonOnClick=function(){this.translate(-120),this.cdr.detectChanges()},n.prototype.getAriaLabelValue=function(e){return e.index==this.currentItem?"Step corrente":e.index<this.currentItem?"Step precedente":"Step successivo"},n}(R);Dt.decorators=[{type:t.Component,args:[{selector:"inail-selector",template:'<div [id]="id" class="row wizard courousel-varible-width slick-initialized slick-slider marginBottom inail-selector {{class}}">\n <button #prevButton\n [title]="prevButtonTitle"\n type="button"\n class="slick-prev fa fa-caret-left slick-arrow"\n style="display: block;"\n (click)="prevButtonOnClick()">\n </button>\n <div class="slick-list draggable">\n <div #slickTrack\n class="slick-track"\n style="opacity: 1; width: 45000px; transition: transform 300ms ease 0s">\n\n <div *ngFor="let item of items; last as isLast"\n #slickSlide\n class="slick-slide">\n <div>\n <div [attr.aria-label]="getAriaLabelValue(item)"\n class="item"\n [ngClass]="{\'active\': item.index==currentItem, \'prevActive\': isActive(item.index)}"\n style="width: 100%;\n display: inline-block;">\n\n <a *ngIf="isActive(item.index)"\n [ngClass]="{\'errorLabel\': item.error}"\n (click)="itemOnClick(item)"\n href="javascript:void(0)"\n [attr.title]="item.title ? item.title : item.label">\n <span>\n <span *ngIf="showNumber" class="step-number">{{item.index + 1}} </span>\n <span [innerHTML]="getItemLabel(item, isLast)"></span>\n </span>\n </a>\n <span *ngIf="!isActive(item.index)"\n [ngClass]="{\'errorLabel\': item.error}"\n title="{{item.title ? item.title : item.label}}">\n <span>\n <span *ngIf="showNumber" class="step-number">{{item.index + 1}} </span>\n <span [innerHTML]="getItemLabel(item, isLast)"></span>\n </span>\n </span>\n </div>\n </div>\n </div>\n </div>\n </div>\n <button #nextButton\n [title]="nextButtonTitle"\n type="button"\n class="slick-next fa fa-caret-right slick-arrow"\n style="display: block;"\n (click)="nextButtonOnClick()">\n </button>\n</div>\n<div [hidden]="!inizializzazioneContenutiCompletata">\n <ng-content></ng-content>\n</div>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,styles:[".inail-selector.wizard.courousel-varible-width{padding-left:22px;padding-right:22px}.inail-selector.wizard button.slick-arrow:focus{outline:1px dotted #000!important}.inail-selector.wizard .item>span{color:#767676!important;text-decoration:none;cursor:default}.inail-selector.wizard .item.active>span{color:#002e5f!important;font-weight:700;cursor:default!important;text-decoration:none!important;pointer-events:none}"]}]}],Dt.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.Renderer2}]},Dt.propDecorators={items:[{type:t.Input}],showNumber:[{type:t.Input}],separator:[{type:t.Input}],fullNavigation:[{type:t.Input}],contentsHidden:[{type:t.Input}],currentItem:[{type:t.Input}],currentItemChange:[{type:t.Output}],itemChange:[{type:t.Output}],switchToFirstError:[{type:t.Input}],switchTo:[{type:t.Input}],prevButtonTitle:[{type:t.Input}],nextButtonTitle:[{type:t.Input}],prevButton:[{type:t.ViewChild,args:["prevButton"]}],nextButton:[{type:t.ViewChild,args:["nextButton"]}],slickTrack:[{type:t.ViewChild,args:["slickTrack"]}],slickSlide:[{type:t.ViewChildren,args:["slickSlide"]}],contenuti:[{type:t.ContentChildren,args:[zt,{descendants:!0}]}]};var kt=function(e){function n(n,i){var a=e.call(this,n)||this;return a.cdr=n,a.re2=i,a.showNumber=!0,a.separator=">",a.contentsHidden=!0,a.currentStep=0,a.currentStepChange=new t.EventEmitter,a.stepChange=new t.EventEmitter,a.switchTo=new t.EventEmitter,a.prevButtonTitle="scorri wizard a destra",a.nextButtonTitle="scorri wizard a sinistra",a.logPrefix="[inail-wizard]",a.detach(),a}return P(n,e),n.prototype.ngOnChanges=function(t){var n,i,a,o=this;e.prototype.ngOnChanges.call(this,t),(null===(n=null==t?void 0:t.next)||void 0===n?void 0:n.currentValue)&&this.push(null===(i=null==t?void 0:t.next)||void 0===i?void 0:i.currentValue.subscribe((function(){var e;o.currentStep<o.steps.length-1&&(o.currentStep=o.currentStep+1,null===(e=o.switchTo)||void 0===e||e.emit(o.currentStep))}))),(null===(a=null==t?void 0:t.prev)||void 0===a?void 0:a.currentValue)&&this.push(t.prev.currentValue.subscribe((function(){var e;o.currentStep>0&&(o.currentStep=o.currentStep-1,null===(e=o.switchTo)||void 0===e||e.emit(o.currentStep))}))),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},n.prototype.ngAfterViewInit=function(){this.emitDebug("Contenitori interni"),this.emitDebug(this.contenuti),this.selectorComponent.inizializzaContenuti(this.contenuti),this.cdr.detectChanges()},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n.prototype.emitWizardLog=function(e){g(e.message)&&(e.message=e.message.replace("[inail-selector]",this.logPrefix)),this.log.emit(e)},n.prototype.currentStepChangeHandler=function(e){this.currentStep=e,this.currentStepChange.emit(e)},n.prototype.stepChangeHandler=function(e){this.stepChange.emit(e)},n}(R);kt.decorators=[{type:t.Component,args:[{selector:"inail-wizard",template:'<inail-selector #selectorComponent\n [items]="steps"\n [contentsHidden]="contentsHidden"\n [currentItem]="currentStep"\n (currentItemChange)="currentStepChangeHandler($event)"\n [fullNavigation]="false"\n [nextButtonTitle]="nextButtonTitle"\n [prevButtonTitle]="prevButtonTitle"\n [separator]="separator"\n [showNumber]="showNumber"\n [switchToFirstError]="switchToFirstError"\n [switchTo]="switchTo"\n (itemChange)="stepChangeHandler($event)"\n [id]="id"\n [class]="class"\n [detectChange]="detectChange"\n [logOnConsole]="logOnConsole"\n [showState]="showState"\n (log)="emitWizardLog($event)">\n <ng-content></ng-content>\n</inail-selector>\n',changeDetection:S,encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],kt.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.Renderer2}]},kt.propDecorators={steps:[{type:t.Input}],contentsHidden:[{type:t.Input}],currentStep:[{type:t.Input}],currentStepChange:[{type:t.Output}],stepChange:[{type:t.Output}],switchToFirstError:[{type:t.Input}],switchTo:[{type:t.Input}],prevButtonTitle:[{type:t.Input}],nextButtonTitle:[{type:t.Input}],next:[{type:t.Input}],prev:[{type:t.Input}],contenuti:[{type:t.ContentChildren,args:[zt,{descendants:!0}]}],selectorComponent:[{type:t.ViewChild,args:[Dt]}]};var Ot=function(){};Ot.decorators=[{type:t.NgModule,args:[{declarations:[T,R,N,Ue,$e,F,M,B,$,Ge,G,W,J,Z,X,K,ee,Pe,fe,Le,We,Je,Ye,ue,Xe,Ke,Qe,ge,et,tt,rt,lt,ct,ut,dt,ht,gt,mt,It,vt,wt,Et,Dt,kt,zt,bt],imports:[a.CommonModule,i.FormsModule,i.ReactiveFormsModule,o.HttpClientModule,l.RouterModule],exports:[$e,$,Ge,G,W,J,Z,X,K,ee,Pe,fe,Le,We,Je,Ye,ue,Xe,Ke,Qe,ge,et,tt,rt,lt,ct,ut,dt,ht,gt,mt,It,vt,wt,Et,Dt,kt,zt,bt],providers:[a.DatePipe]}]}],e.AccordionComponent=Xe,e.AlertComponent=dt,e.BaseComponent=T,e.BreadcrumbComponent=Le,e.ButtonComponent=ge,e.CHANGE_DETECTION_STRATEGY=S,e.CheckboxComponent=ct,e.ConfirmComponent=ht,e.ContainerComponent=zt,e.ERROR_BTN_CLASS=he,e.Feedback=Ze,e.FeedbackComponent=Ye,e.FooterComponent=$,e.FormGreyComponent=We,e.HeaderComponent=X,e.HeaderConfigurations=Q,e.InailLayoutComponent=fe,e.InailLayoutConfigurations=me,e.InailTablePageSelectorComponent=gt,e.InputDateComponent=rt,e.InputFileComponent=wt,e.InputNumberComponent=Et,e.InputTextComponent=$e,e.LoaderComponent=K,e.MenuComponent=ue,e.MenuIntranetComponent=J,e.MenuItem=le,e.ModalComponent=ut,e.NavigazioneInternaComponent=G,e.NavigazionePrincipaleComponent=W,e.NavigazioneSecondariaComponent=Pe,e.NavigazioneUtenteComponent=Z,e.NavigazioneUtenteConfigurations=Y,e.NgInailCommonModule=Ot,e.PageTitleComponent=Je,e.PaginationState=Ct,e.PopoverComponent=et,e.RadioSelectComponent=lt,e.ResponsiveElementComponent=N,e.SelectComponent=Ge,e.SelectorComponent=Dt,e.SortingInfo=ft,e.TabGroupComponent=Ke,e.TabPaneComponent=Qe,e.TableComponent=It,e.TablePageLengthSelectorComponent=mt,e.TextareaComponent=tt,e.ThLabelComponent=vt,e.TrCheckboxComponent=bt,e.WizardComponent=kt,e.addZero=qe,e.call=D,e.clone=C,e.dateToString=He,e.isAbsolute=m,e.isBlankOrNull=u,e.isDate=Ne,e.isHidden=O,e.isInISO8601Format=Re,e.isInItalianFormat=Ae,e.isInvalidDateObject=_e,e.isListEmptyOrNull=b,e.isListNotEmptyOrNull=y,e.isNotBlankOrNull=d,e.isNumber=h,e.isString=g,e.isValidDateObject=function(e){return e&&!!e.getFullYear()},e.isValidRadioValue=function(e,t){return y(e)&&e.findIndex((function(e){return e.value==t}))>=0},e.isValidSelectValue=function(e,t,n){return n&&(!t||0==t.length)||y(e)&&e.findIndex((function(e){return e.value==t}))>=0},e.reformatDate=Be,e.scrollTo=I,e.scrollToElement=w,e.scrollTop=E,e.setFocus=z,e.setFocusOnError=Oe,e.setFocusOnFeedback=function(e,t,n){setTimeout((function(){var n=document.querySelectorAll("#"+e)[0];if(n){t&&w(n.getAttribute("id"));var i=n.querySelector(".feedback-focusable");null!=i&&setTimeout((function(){return i.focus()}),500)}}),n||100)},e.setFocusOnFirstErrorFeedback=function(e){return Ve(".feedback-box-error",e)},e.setFocusOnFirstFeedback=Ve,e.setFocusOnFirstModalError=xe,e.setFocusOnFirstPageError=Se,e.setFocusOnGlobalErrorFeedback=Te,e.setFocusOnGlobalFeedback=function(e){return Ve(".global-feedback",e)},e.setPageScroll=x,e.startWith=v,e.startWithSlash=f,e.toDateObject=je,e.toISO8601Format=Me,e.toItalianFormat=Fe,e.uuidv4=k,e.ɵ0=it,e.ɵ1=ot,e.ɵ2=Ce,e.ɵ3=we,e.ɵ4=ze,e.ɵ5=ke,e.ɵa=R,e.ɵb=Ue,e.ɵc=F,e.ɵd=M,e.ɵe=B,e.ɵf=ee,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
16
|
+
var V=function(e,t){return(V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function P(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}V(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function L(e,t,n,i){return new(n||(n=Promise))((function(a,o){function r(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,s)}l((i=i.apply(e,t||[])).next())}))}function U(e,t){var n,i,a,o,r={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,i=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(!(a=r.trys,(a=a.length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){r=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(6===o[0]&&r.label<a[1]){r.label=a[1],a=o;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(o);break}a[2]&&r.ops.pop(),r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e],i=0}finally{n=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}Object.create;function A(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,a,o=n.call(e),r=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)r.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return r}Object.create;var R=function(e){function t(t){var n=e.call(this,t)||this;return n.uxElementCdr=t,n.id=k(),n}return P(t,e),t.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t)},t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this),null==this.id&&(this.id=k()),this.logPrefix=this.logPrefix+"["+this.id+"]"},t}(S);R.decorators=[{type:t.Component,args:[{selector:"inail-basic-ux-element",template:"",changeDetection:T,encapsulation:t.ViewEncapsulation.None}]}],R.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},R.propDecorators={id:[{type:t.Input}],class:[{type:t.Input}]};var F=function(e){function t(t){var n=e.call(this,t)||this;return n.responsiveElementCdr=t,n.xs=12,n.xsClass=function(){return null!=n.xs?"col-xs-"+n.xs+" ":""},n.smClass=function(){return null!=n.sm?"col-sm-"+n.sm+" ":""},n.mdClass=function(){return null!=n.md?"col-md-"+n.md+" ":""},n.lgClass=function(){return null!=n.lg?"col-lg-"+n.lg+" ":""},n.getResponsiveClass=function(){return(""+n.xsClass()+n.smClass()+n.mdClass()+n.lgClass()).trim()},n}return P(t,e),t.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t)},t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},t}(R);F.decorators=[{type:t.Component,args:[{selector:"inail-responsive-element",template:"",changeDetection:T,encapsulation:t.ViewEncapsulation.None}]}],F.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},F.propDecorators={lg:[{type:t.Input}],md:[{type:t.Input}],sm:[{type:t.Input}],xs:[{type:t.Input}]};var N=function(){function e(){}return e.prototype.ngOnInit=function(){},e}();N.decorators=[{type:t.Component,args:[{selector:"debug-pre",template:'<pre style="margin-top: 10px"><ng-content></ng-content></pre>\n',encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],N.ctorParameters=function(){return[]};var M=function(){function e(){}return e.prototype.ngOnInit=function(){},e}();M.decorators=[{type:t.Component,args:[{selector:"state-propertie",template:"<ng-container *ngIf=\"!(propertie==undefined && hideIfNull)\">{{label}}: {{propertie != undefined ? (propertie | json) : 'undefined'}}<br></ng-container>\n",encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],M.ctorParameters=function(){return[]},M.propDecorators={label:[{type:t.Input}],propertie:[{type:t.Input}],hideIfNull:[{type:t.Input}]};var B=function(){function e(){}return e.prototype.ngOnInit=function(){},e}();B.decorators=[{type:t.Component,args:[{selector:"inail-form-element-state-properties",template:'<ng-container *ngIf="formElement">\n <state-propertie [label]="\'hasError\'" [propertie]="formElement.hasError" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'error\'" [propertie]="formElement.error" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'hiddenLabel\'" [propertie]="formElement.hiddenLabel" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'title\'" [propertie]="formElement.title" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'name\'" [propertie]="formElement.name" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'labelTitle\'" [propertie]="formElement.labelTitle" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'labelClass\'" [propertie]="formElement.labelClass" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'inputClass\'" [propertie]="formElement.inputClass" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'required\'" [propertie]="formElement.required" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'requiredSimbol\'" [propertie]="formElement.requiredSimbol" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'requiredSimbolPosition\'" [propertie]="formElement.requiredSimbolPosition" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'disabled\'" [propertie]="formElement.disabled" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'readonly\'" [propertie]="formElement.readonly" [hideIfNull]="false"></state-propertie>\n\n <state-propertie [label]="\'xs\'" [propertie]="formElement.xs" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'sm\'" [propertie]="formElement.sm" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'md\'" [propertie]="formElement.md" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'lg\'" [propertie]="formElement.lg" [hideIfNull]="false"></state-propertie>\n\n <state-propertie [label]="\'class\'" [propertie]="formElement.class" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'popoverButtonIcon\'" [propertie]="formElement.popoverButtonIcon" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'popoverButtonTitle\'" [propertie]="formElement.popoverButtonTitle" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'popoverHeader\'" [propertie]="formElement.popoverHeader" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'popoverContent\'" [propertie]="formElement.popoverContent" [hideIfNull]="false"></state-propertie>\n</ng-container>\n',encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],B.ctorParameters=function(){return[]},B.propDecorators={formElement:[{type:t.Input}]};var H="/static",j="/static_intra",_="/assets/inail/static",q="/api",$=function(e){function t(t,n,i){var a=e.call(this,n)||this;return a.sanitizer=t,a.cdr=n,a.http=i,a.domainUrl="",a.cdnEndpoint="",a.assetsUrl=H,a.inizializzazioneTerminata=!1,a.logPrefix="[inail-footer]",a.detach(),a}return P(t,e),t.prototype.ngOnChanges=function(e){var t,n;this.emitDebug("ngOnChanges:"),this.emitDebug(e),(null===(t=null==e?void 0:e.url)||void 0===t?void 0:t.currentValue)&&!(null===(n=null==e?void 0:e.html)||void 0===n?void 0:n.currentValue)&&(e.url.firstChange&&this.emitDebug("Inizializzazione Footer"),this.recupera()),this.cdr.detectChanges()},t.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),u(this.domainUrl)&&(this.domainUrl=""),(u(this.cdnEndpoint)||m(this.assetsUrl))&&(this.cdnEndpoint=""),u(this.assetsUrl)&&(d(this.cdnEndpoint)?this.assetsUrl=_:this.assetsUrl=H),this.html?(this.innerHtml=this.sanitizer.bypassSecurityTrustHtml(this.html),this.inizializzazioneTerminata=!0,this.cdr.detectChanges()):this.url||(this.emitDebug("Inizializzazione Footer, Url footer non specificato"),this.url=this.domainUrl+"/cs/internet/footer.html",this.recupera()),this.detectChange&&this.push(this.detectChange.subscribe((function(){return t.cdr.detectChanges()})))},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t.prototype.recupera=function(){var e=this;this.emitDebug("Recupero Footer da: "+this.url),this.http.get(this.url,{responseType:"text"}).pipe(s.first(),s.finalize((function(){e.emitDebug("Footer inizializzato!"),e.inizializzazioneTerminata=!0,e.cdr.detectChanges()}))).subscribe((function(t){e.innerHtml=e.sanitizer.bypassSecurityTrustHtml(t),e.emitDebug("Footer recuperato!")}),(function(t){e.innerHtml=void 0,e.emitError("Errore nel recupero del Footer"),e.emitError(t),e.emitWarn("Visualizzazione Footer di default")}))},t}(S);$.decorators=[{type:t.Component,args:[{selector:"inail-footer",template:'<ng-container *ngIf="inizializzazioneTerminata">\n <div *ngIf="this.innerHtml"\n [innerHtml]="this.innerHtml">\n </div>\n <div *ngIf="!this.innerHtml">\n <footer>\n <nav id="navigazionealternativa" class="row">\n <h2 class="hidden">Navigazione alternativa</h2>\n <div class="row col-xs-12">\n <a href="https://www.inail.it/cs/internet/home.html" title="torna alla homepage INAIL">\n <img class="logo-inail img-responsive"\n src="{{cdnEndpoint}}{{assetsUrl}}/img/LogoInail_footer.svg"\n alt="INAIL - Istituto Nazionale per l\'Assicurazione contro gli Infortuni sul Lavoro">\n </a>\n </div>\n <div id="contatti-wrapper" class="row col-xs-12 col-md-6">\n <div id="contatti" class="col-xs-12 col-sm-6">\n <h3>Recapiti e Contatti</h3>\n <ul>\n <li>\n <p>INAIL sede centrale</p> P.le Pastore 6, 00144 Roma (RM)\n <li>\n <a href="{{domainUrl}}/cs/internet/supporto/contact-center.html" title="Contact center">Contact center</a>\n <br>(+39) 06.6001<br>Dal lunedì al venerdì dalle 9.00 alle 18.00\n </li>\n <li>\n <a href=\'https://www.inail.it/cs/internet/supporto/inail-risponde.html\' title="Inail risponde">\n Inail risponde\n </a>\n </li>\n <li>\n <a href=\'https://www.inail.it/cs/internet/supporto/agenda-appuntamenti.html\' title="Agenda appuntamenti">\n Agenda appuntamenti\n </a>\n </li>\n <li>\n <a href=\'https://www.inail.it/cs/internet/supporto/sedi.html\' title="Sedi">\n Sedi\n </a>\n </li>\n </ul>\n </div>\n <div id="menu-rapido" class="hidden-xs col-sm-6">\n <h3>Menu Rapido</h3>\n <ul>\n <li>\n <a href=\'https://www.inail.it/cs/internet/atti-e-documenti/moduli-e-modelli.html\' title="Moduli e modelli">\n Moduli e modelli\n </a>\n </li>\n <li>\n <a href=\'https://www.inail.it/cs/internet/attivita/assicurazione/verificare-la-regolarita-contributiva-durc-online.html\'\n title="Verificare la regolarità contributiva - Durc online">\n Verificare la regolarità contributiva - Durc online\n </a>\n </li>\n <li>\n <a href=\'https://www.inail.it/cs/internet/accedi-ai-servizi-online.html\' title="Accedi ai servizi online">\n Accedi ai servizi online\n </a>\n </li>\n <li><a href="https://profilazioneutenteinternet.inail.it/utilityredirect?contesto=FAQ" title="Faq">Faq</a></li>\n <li><a href="https://dati.inail.it/opendata/default/Qualidati/index.html" title="Open Data">Open Data</a></li>\n <li>\n <a href=\'https://www.inail.it/cs/internet/istituto/struttura-organizzativa/uffici-centrali/casellario-centrale-infortuni.html\' title="Casellario centrale infortuni">\n Casellario centrale infortuni\n </a>\n </li>\n <li><a href="https://www.superabile.it/cs/superabile/home" title="Superabile">Superabile</a></li>\n <li>\n <a href=\'https://www.inail.it/cs/internet/istituto/amministrazione-trasparente.html\' title="Amministrazione trasparente">\n Amministrazione trasparente\n </a>\n </li>\n <li>\n <a href=\'https://www.inail.it/cs/internet/istituto/amministrazione-trasparente/altri-contenuti/diritto-di-accesso.html\' title="Diritto di accesso">\n Diritto di accesso\n </a>\n </li>\n <li>\n <a href=\'https://www.inail.it/cs/internet/istituto/amministrazione-trasparente/altri-contenuti/altri-contenuti-dati-ulteriori/atti-di-notifica.html\'\n title="Atti di notifica">\n Atti di notifica\n </a>\n </li>\n <li>\n <a href=\'https://www.inail.it/cs/internet/istituto/provider-crediti-formativi-ecm.html\' title="Provider Inail Ecm">\n Provider Inail Ecm\n </a>\n </li>\n </ul>\n </div>\n </div>\n <div id="seguici-wrapper" class="row col-xs-12 col-md-6">\n <div id="linkservizio" class="hidden-xs col-sm-6">\n <h3>Link di servizio</h3>\n <ul>\n <li>\n <a href=\'https://www.inail.it/cs/internet/istituto/amministrazione-trasparente/altri-contenuti-dati-ulteriori/privacy.html\' title="Privacy">\n Privacy\n </a>\n </li>\n <li>\n <a href=\'https://www.inail.it/cs/internet/istituto/amministrazione-trasparente/altri-contenuti-accessibilita-e-catalogo-di-dati.html\'\n title="Accessibilità e catalogo di dati, metadati e banche dati">\n Accessibilità e catalogo di dati, metadati e banche dati\n </a>\n </li>\n <li>\n <a href=\'https://www.inail.it/cs/internet/istituto/amministrazione-trasparente/altri-contenuti-dati-ulteriori/social-media-policy-esterna.html\' title="Social media policy">\n Social media policy\n </a>\n </li>\n </ul>\n </div>\n <div id="seguici-su" class="col-xs-12 col-sm-6">\n <h3>Seguici su</h3>\n <div id="social-icons">\n <div>\n <a href="https://it-it.facebook.com/Inailgov/" target="_blank">\n <img src="{{cdnEndpoint}}{{assetsUrl}}/img/facebook_round.svg" alt="Icona Facebook" title="Icona Facebook">\n </a>\n <a href="https://twitter.com/inail_gov" target="_blank">\n <img src="{{cdnEndpoint}}{{assetsUrl}}/img/twitter_round.svg" alt="Icona Twitter" title="Icona Twitter">\n </a>\n <a href="https://www.youtube.com/user/UfficioStampaInail" target="_blank">\n <img src="{{cdnEndpoint}}{{assetsUrl}}/img/youtube_round.svg" alt="Icona YouTube" title="Icona YouTube">\n </a>\n </div>\n <div>\n <a href=\'{{domainUrl}}/cs/Satellite?c=Page&cid=2443085461091&d=Touch&pagename=commons%2Flayout%2FfeedRss&rssSubtype=news\'>\n <img src="{{cdnEndpoint}}{{assetsUrl}}/img/rss_round.svg" alt="icona RSS" title="Icona RSS">\n </a>\n <a href="https://www.linkedin.com/company/inail" target="_blank">\n <img src="{{cdnEndpoint}}{{assetsUrl}}/img/linkedin_round.svg" alt="Icona Linkedin" title="Icona Linkedin">\n </a>\n <a href="https://www.instagram.com/inail_gov/" target="_blank">\n <img src="{{cdnEndpoint}}{{assetsUrl}}/img/instagram_round.svg" alt="Icona Instagram" title="Icona Instagram">\n </a>\n </div>\n </div>\n </div>\n </div>\n <div id="spid" class="col-sm-offset-9 col-xs-12 col-lg-3 hidden-sm hidden-md">\n <div class="col-xs-12">\n <a href=\'https://www.inail.it/cs/internet/accedi-ai-servizi-online/accedi-con-spid.html\'>\n <img class=\'img-responsive\' src=\'https://www.inail.it/cs/internet/imgs/spid_footer.png\' alt="Accedi con SPID" title="Immagine SPID footer"/>\n </a>\n </div>\n </div>\n <div id="spid-tablet" class="col-xs-12 col-xs-offset-5 hidden-xs hidden-lg">\n <a href=\'https://www.inail.it/cs/internet/accedi-ai-servizi-online/accedi-con-spid.html\'>\n <img class=\'img-responsive\' src=\'https://www.inail.it/cs/internet/imgs/spid_footer.png\' alt="Accedi con SPID" title="Immagine SPID footer"/>\n </a>\n </div>\n </nav>\n <p class="hidden"><a href="#navinterna" title="torna alla navigazione interna alla pagina">Torna alla navigazione interna</a></p>\n </footer>\n <div id="subfooter">\n <div class="row col-xs-12">\n <hr>\n </div>\n <div id="sedeCentrale">\n <p class="copy">\n © 2018 INAIL <span> - </span>ISTITUTO NAZIONALE PER L\'ASSICURAZIONE CONTRO GLI INFORTUNI SUL LAVORO<span> - </span>P. IVA 00968951004\n </p>\n </div>\n <div id="menu-servizio" class="hidden-xs">\n <h2 class="hidden">Menu di servizio</h2>\n <ul id="menuservizio">\n <li class="">\n <a href=\'https://www.inail.it/cs/internet/responsabile-della-pubblicazione.html\' title="Responsabile della pubblicazione">\n Responsabile della pubblicazione\n </a>\n </li>\n <li class="">\n <a href=\'https://www.inail.it/cs/internet/avviso-all_utenza.html\' title="Avviso all’utenza">\n Avviso all’utenza\n </a>\n </li>\n <li class="">\n <a href=\'https://www.inail.it/cs/internet/accessibilita.html\' title="Accessibilità">\n Accessibilità\n </a>\n </li>\n <li class="">\n <a href=\'https://www.inail.it/cs/internet/monitoraggio-accessi.html\' title="Monitoraggio accessi">\n Monitoraggio accessi\n </a>\n </li>\n <li class="last">\n <a href=\'https://www.inail.it/cs/internet/mappa-del-sito.html\' title="Mappa del sito">\n Mappa del sito\n </a>\n </li>\n </ul>\n </div>\n <p class="hidden"><a href="#navinterna" title="torna alla navigazione interna alla pagina">Torna alla navigazione interna</a></p>\n <h2 class="hidden">Menu in lingua</h2>\n <ul id="menulingua">\n <li class="en"><a href=\'https://www.inail.it/cs/internet/multi/english.html\' title=""><span>Inglese</span></a></li>\n <li class="es"><a href=\'https://www.inail.it/cs/internet/multi/espanol.html\' title=""><span>Spagnolo</span></a></li>\n <li class="de"><a href=\'https://www.inail.it/cs/internet/multi/deutsch.html\' title=""><span>Tedesco</span></a></li>\n <li class="fr"><a href=\'https://www.inail.it/cs/internet/multi/francais.html\' title=""><span>Francese</span></a></li>\n </ul>\n <div id="internet-accesskey" style="display: none;">\n <ul>\n <li><a href=\'https://www.inail.it/cs/internet/home.html\' accesskey="h" title=\'Home \'>Home</a> (accesskey:h)</li>\n <li><a href=\'https://www.inail.it/cs/internet/istituto.html\' accesskey="i" title="Vai a Istituto">Vai a Istituto</a> (accesskey:i)</li>\n <li><a href=\'https://www.inail.it/cs/internet/attivita.html\' accesskey="a" title="Vai a Attività">Vai a Attività</a> (accesskey:a)</li>\n <li><a href=\'https://www.inail.it/cs/internet/atti-e-documenti.html\' accesskey="q" title="Vai a Atti e documenti">Vai a Atti e Documenti</a> (accesskey:q)</li>\n <li><a href=\'https://www.inail.it/cs/internet/comunicazione.html\' accesskey="n" title="Vai a Comunicazione">Vai a Comunicazione</a> (accesskey:n)</li>\n <li><a href=\'https://www.inail.it/cs/internet/servizi-per-te.html\' accesskey="t" title="Vai a Servizi Per Te">Vai a Servizi per Te</a> (accesskey:t)</li>\n <li><a href=\'https://www.inail.it/cs/internet/supporto_old.html\' accesskey="s" title="Vai a Supporto">Vai a Supporto</a> (accesskey:s)</li>\n </ul>\n </div>\n <p class="hidden"><a href="#navinterna" title="torna alla navigazione interna alla pagina">Torna alla navigazione interna</a></p>\n </div>\n <script type="text/javascript" src="//libs.de.coremetrics.com/eluminate.js"><\/script>\n <script type="text/javascript" src="{{cdnEndpoint}}{{assetsUrl}}/js/custom/analytics.js"><\/script>\n <script type="text/javascript" src="{{cdnEndpoint}}{{assetsUrl}}/js/feedRSS.js"><\/script>\n </div>\n</ng-container>\n<debug-pre *ngIf="showState">[inail-footer]<br>\n <state-propertie [label]="\'url\'" [propertie]="url"></state-propertie>\n <state-propertie [label]="\'domainUrl\'" [propertie]="domainUrl"></state-propertie>\n <state-propertie [label]="\'cdnEndpoint\'" [propertie]="cdnEndpoint"></state-propertie>\n <state-propertie [label]="\'assetsUrl\'" [propertie]="assetsUrl"></state-propertie>\n <state-propertie [label]="\'inizializzazioneTerminata\'" [propertie]="inizializzazioneTerminata"></state-propertie>\n</debug-pre>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],$.ctorParameters=function(){return[{type:r.DomSanitizer},{type:t.ChangeDetectorRef},{type:o.HttpClient}]},$.propDecorators={url:[{type:t.Input}],domainUrl:[{type:t.Input}],cdnEndpoint:[{type:t.Input}],assetsUrl:[{type:t.Input}],html:[{type:t.Input}]};var G=function(e){function t(t){var n=e.call(this,t)||this;return n.cdr=t,n.detach(),n}return P(t,e),t.prototype.ngOnInit=function(){},t}(S);G.decorators=[{type:t.Component,args:[{selector:"inail-navigazione-interna",template:'<h2 id="navinterna" class="hidden">Menu di navigazione interna alla pagina</h2>\n\n<ul class="hidden">\n <li>\n <a accesskey="1"\n href="#contenutoprincipale"\n title="vai al contenuto di questa pagina">\n Contenuto della pagina\n </a>\n (accesskey: 1)\n </li>\n <li>\n <a accesskey="r"\n href="#testoricerca"\n title="vai alla ricerca nel sito">\n Ricerca\n </a>\n (accesskey: r)\n </li>\n <li>\n <a accesskey="2"\n href="#navigazioneprincipale"\n title="vai al men&ugrave; di navigazione del portale">\n Navigazione del portale\n </a>\n (accesskey: 2)\n </li>\n <li>\n <a accesskey="3"\n href="#navigazioneutente"\n title="vai al men&ugrave; di navigazione per tipologia di utenza">\n Navigazione per tipologia di utenza\n </a>\n (accesskey: 3)\n </li>\n <li>\n <a accesskey="4"\n href="#correlati"\n title="vai agli argomenti correlati al contenuto di pagina">\n Argomenti correlati\n </a>\n (accesskey: 4)\n </li>\n <li>\n <a accesskey="5"\n href="#navigazionealternativa"\n title="vai alla navigazione di accesso alternativo ai contenuti di portale">\n Navigazione alternativa\n </a>\n (accesskey: 5)\n </li>\n <li>\n <a accesskey="6"\n href="#menuservizio"\n title="vai ai servizi e informazioni">Servizi e informazioni</a>\n (accesskey: 6)\n </li>\n <li>\n <a accesskey="7"\n href="#menusocial"\n title="INAIL nei Social Network">INAIL nei Social Network</a>\n (accesskey: 7)\n </li>\n <li>\n <a accesskey="l"\n href="#menulingua"\n title="Language version">Language version</a>\n (accesskey: l)\n </li>\n</ul>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],G.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]};var W=function(e){function t(t,n,i){var a=e.call(this,n)||this;return a.sanitizer=t,a.cdr=n,a.http=i,a.domainUrl="",a.inizializzazioneTerminata=!1,a.logPrefix="[inail-navigazione-principale]",a.detach(),a}return P(t,e),t.prototype.ngOnChanges=function(t){var n,i;e.prototype.ngOnChanges.call(this,t),(null===(n=null==t?void 0:t.url)||void 0===n?void 0:n.currentValue)&&!(null===(i=null==t?void 0:t.html)||void 0===i?void 0:i.currentValue)&&(t.url.firstChange&&this.emitDebug("Inizializzazione Navigazione principale"),this.recupera()),this.cdr.detectChanges()},t.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.logoutUrl||(this.logoutUrl=this.domainUrl+"/cs/LogoutUser?excludedCookies=SMSESSION"),this.html?(this.innerHtml=this.sanitizer.bypassSecurityTrustHtml(this.html),this.inizializzazioneTerminata=!0,this.cdr.detectChanges()):this.url||(this.emitDebug("Inizializzazione Navigazione principale, Url Navigazione principale non specificato"),this.url=this.domainUrl+"/cs/internet/header.html",this.recupera()),this.detectChange&&this.push(this.detectChange.subscribe((function(){return t.cdr.detectChanges()})))},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t.prototype.recupera=function(){var e=this;this.emitDebug("Recupero Navigazione principale da: "+this.url),this.http.get(this.url,{responseType:"text"}).pipe(s.first(),s.finalize((function(){e.emitDebug("Navigazione principale inizializzata!"),e.inizializzazioneTerminata=!0,e.cdr.detectChanges()}))).subscribe((function(t){t=t.replace("#logout",e.logoutUrl),e.innerHtml=e.sanitizer.bypassSecurityTrustHtml(t),e.emitDebug("Navigazione principale recuperata!")}),(function(t){e.innerHtml=void 0,e.emitError("Errore nel recupero della Navigazione principale"),e.emitError(t),e.emitWarn("Visualizzazione Navigazione principale di default")}))},t}(S);W.decorators=[{type:t.Component,args:[{selector:"inail-navigazione-principale",template:'<ng-container *ngIf="true">\n <div *ngIf="this.innerHtml"\n [innerHtml]="this.innerHtml">\n </div>\n <div *ngIf="!this.innerHtml">\n <nav class="navbar navbar-default">\n <div class="navbar-header">\n <p class="navbar-toggle collapsed" data-toggle="collapse" data-target="#menuprincipale">\n <span class="sr-only">Menu</span>\n </p>\n </div>\n <div class="navbar-collapse collapse" id="menuprincipale">\n <form method="get"\n enctype="application/x-www-form-urlencoded"\n action=\'https://www.inail.it/cs/internet/risultati_ricerca.html\' id="searchForm" name="searchForm">\n <div class="navbar-form navbar-left searchsite" role="search" id="formRicerca">\n <h2 class="hidden">Cerca nel sito</h2>\n <p class="form-group">\n <label class="hidden" for="textWrite">Parametro di ricerca</label>\n <input type="text" id="textWrite" name="textWrite" class="form-control" placeholder="Cerca nel portale" title="inserisci il parametro da cercare su tutto il sito">\n <input type="hidden" id="textToFind" name="textToFind" value="">\n <button type="submit" class="btn btn-default">Cerca</button>\n </p>\n <p class="hidden">\n <a href="#navinterna"\n title="torna alla navigazione interna alla pagina">Torna alla\n navigazione interna</a>\n </p>\n </div>\n </form>\n <script type="text/javascript">\n $("body").on("submit", "#searchForm", function () {\n var inputValue = $("#textWrite").val();\n $("#textWrite").attr(\'disabled\', \'disabled\');\n inputValue = inputValue.replace(/\\&/g, \'&\');\n inputValue = inputValue.replace(/\\"/g, \'"\');\n inputValue = inputValue.replace(/\\</g, \'<\');\n inputValue = inputValue.replace(/\\>/g, ">");\n inputValue = inputValue.replace(/\\\'/g, "\'");\n inputValue = inputValue.replace(/\\\\/g, "");\n $("#textToFind").val(inputValue);\n });\n $(window).ready(function () {\n $("#textWrite").autocomplete({\n source: function (request, response) {\n $.ajax({\n url: \'https://www.inail.it/rest-public-enterprisesearch-gw/SuggestionService\',\n dataType: "jsonp",\n jsonp: "callback",\n jsonpCallback: \'jsonpCallback\',\n contentType: "application/json",\n data: {\n textToFind: request.term,\n searchScope: \'internet\'\n },\n success: function (data) {\n response(data.slice(0, 10));\n },\n error: function () {\n response([]);\n }\n });\n },\n minLength: 1,\n select: function (event, ui) {\n $(event.target).val(ui.item.value);\n $("form[name=\'searchForm\']").submit();\n }\n });\n });\n <\/script>\n <h2 class="hidden">Menu di navigazione principale</h2>\n <ul id="navigazioneprincipale" role="menu" class="nav navbar-nav">\n <li class="dropdown">\n <a href="https://www.inail.it/cs/internet/istituto.html"\n class="dropdown-toggle" data-toggle="dropdown" role="button"\n aria-expanded="false"> Istituto <span\n class="sr-only">(selezionato)</span>\n </a>\n <div class="dropdown-menu">\n <div class="visible-sm-block visible-md-block visible-lg-block">\n <h3>Istituto</h3>\n <p>\n Presentazione dell\'Ente, della sua organizzazione amministrativa e territoriale, delle relazioni con altri enti e con organi e organismi internazionali.\n </p>\n <p>\n <button type="submit"\n class="btn btn-default"\n onclick="location.href=domainUrl+\'/cs/internet/istituto.html\';">vai alla sezione\n </button>\n </p>\n </div>\n <ul role="menu">\n <li class="visible-xs-block hidden-sm hidden-md hidden-lg"><a href="https://www.inail.it/cs/internet/istituto.html">Vai alla sezione</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/chi-siamo.html">Chi siamo</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/struttura-organizzativa.html">Struttura organizzativa</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/territorio.html">Territorio</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/amministrazione-trasparente.html">Amministrazione trasparente</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/patrimonio-immobiliare/edifici-di-interesse-storico-artistico-e-architettonico.html">Edifici di interesse storico\n artistico e architettonico</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/relazioni-internazionali.html">Relazioni internazionali</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/organismo-notificato-0100.html">Organismo notificato 0100</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/sistema-nazionale-per-la-prevenzione.html">Sistema nazionale per la prevenzione </a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/access-point-eessi.html">Access Point EESSI</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/focal-point-italia.html">Focal Point Italia</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/innovazione-digitale.html">Innovazione digitale</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/programma-operativo-nazionale-2014-2020.html">Programma operativo nazionale 2014-2020</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/contrasto-discriminazioni-e-benessere-lavorativo.html">Comitato unico di garanzia</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/provider-crediti-formativi-ecm.html">Provider Inail Ecm</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/fatturazione-elettronica.html">Fatturazione elettronica</a></li>\n </ul>\n </div>\n </li>\n <li class="dropdown"><a href="https://www.inail.it/cs/internet/attivita.html"\n class="dropdown-toggle" data-toggle="dropdown" role="button"\n aria-expanded="false"> Attività <span\n class="sr-only">(selezionato)</span>\n </a>\n <div class="dropdown-menu">\n <div class="visible-sm-block visible-md-block visible-lg-block">\n <h3>Attività</h3>\n <p>\n Principali aree di azione volte a ridurre il fenomeno infortunistico, assicurare dai rischi e garantire la tutela dei lavoratori.\n </p>\n <p>\n <button type="submit" class="btn btn-default" onclick="location.href=domainUrl+\'/cs/internet/attivita.html\';">vai alla sezione</button>\n </p>\n </div>\n <ul role="menu">\n <li class="visible-xs-block hidden-sm hidden-md hidden-lg"><a href="https://www.inail.it/cs/internet/attivita.html">Vai alla sezione</a></li>\n <li><a href="https://www.inail.it/cs/internet/attivita/prevenzione-e-sicurezza.html">Prevenzione e sicurezza</a></li>\n <li><a href="https://www.inail.it/cs/internet/attivita/assicurazione.html">Assicurazione</a></li>\n <li><a href="https://www.inail.it/cs/internet/attivita/formazione.html">Formazione</a></li>\n <li><a href="https://www.inail.it/cs/internet/attivita/prestazioni.html">Prestazioni</a></li>\n <li><a href="https://www.inail.it/cs/internet/attivita/ricerca-e-tecnologia.html">Ricerca e Tecnologia</a></li>\n <li><a href="https://www.inail.it/cs/internet/attivita/dati-e-statistiche.html">Dati e statistiche</a></li>\n </ul>\n </div>\n </li>\n <li class="dropdown"><a href="https://www.inail.it/cs/internet/atti-e-documenti.html"\n class="dropdown-toggle" data-toggle="dropdown" role="button"\n aria-expanded="false"> Atti e documenti <span\n class="sr-only">(selezionato)</span>\n </a>\n <div class="dropdown-menu">\n <div class="visible-sm-block visible-md-block visible-lg-block">\n <h3>Atti e documenti</h3>\n <p>\n Documentazione prodotta dagli Organi dell’Inail, protocolli d’intesa, convenzioni e accordi con enti e istituzioni, istruzioni operative e modulistica.\n </p>\n <p>\n <button type="submit" class="btn btn-default" onclick="location.href=domainUrl+\'/cs/internet/atti-e-documenti.html\';">vai alla sezione</button>\n </p>\n </div>\n <ul role="menu">\n <li class="visible-xs-block hidden-sm hidden-md hidden-lg"><a href="https://www.inail.it/cs/internet/atti-e-documenti.html">Vai alla sezione</a></li>\n <li><a href="https://www.inail.it/cs/internet/atti-e-documenti/note-e-provvedimenti.html">Note e provvedimenti</a></li>\n <li><a href="https://www.inail.it/cs/internet/atti-e-documenti/protocolli-e-accordi.html">Protocolli e accordi</a></li>\n <li><a href="https://www.inail.it/cs/internet/atti-e-documenti/istruzioni-operative.html">Istruzioni operative</a></li>\n <li><a href="https://www.inail.it/cs/internet/atti-e-documenti/moduli-e-modelli.html">Moduli e modelli</a></li>\n </ul>\n </div>\n </li>\n <li class="dropdown"><a href="https://www.inail.it/cs/internet/comunicazione.html"\n class="dropdown-toggle" data-toggle="dropdown" role="button"\n aria-expanded="false"> Comunicazione <span\n class="sr-only">(selezionato)</span>\n </a>\n <div class="dropdown-menu">\n <div class="visible-sm-block visible-md-block visible-lg-block">\n <h3>Comunicazione</h3>\n <p>\n Contenuti per i media, documenti e informazioni istituzionali utili ad approfondire attività, finalità e conoscenza dell’Istituto\n </p>\n <p>\n <button type="submit" class="btn btn-default" onclick="location.href=domainUrl+\'/cs/internet/comunicazione.html\';">vai alla sezione</button>\n </p>\n </div>\n <ul role="menu">\n <li class="visible-xs-block hidden-sm hidden-md hidden-lg"><a href="https://www.inail.it/cs/internet/comunicazione.html">Vai alla sezione</a></li>\n <li><a href="https://www.inail.it/cs/internet/comunicazione/avvisi-e-scadenze.html">Avvisi e scadenze</a></li>\n <li><a href="https://www.inail.it/cs/internet/comunicazione/news-ed-eventi.html">News ed eventi</a></li>\n <li><a href="https://www.inail.it/cs/internet/comunicazione/sala-stampa.html">Sala Stampa</a></li>\n <li><a href="https://www.inail.it/cs/internet/comunicazione/campagne.html">Campagne</a></li>\n <li><a href="https://www.inail.it/cs/internet/comunicazione/pubblicazioni.html">Pubblicazioni</a></li>\n <li><a href="https://www.inail.it/cs/internet/comunicazione/multimedia.html">Multimedia</a></li>\n <li><a href="https://www.inail.it/cs/internet/comunicazione/social.html">Social</a></li>\n <li><a href="https://www.inail.it/cs/internet/istituto/progetti.html">Progetti</a></li>\n </ul>\n </div>\n </li>\n <li class="dropdown"><a href="https://www.inail.it/cs/internet/servizi-per-te.html"\n class="dropdown-toggle" data-toggle="dropdown" role="button"\n aria-expanded="false"> Servizi Per Te <span\n class="sr-only">(selezionato)</span>\n </a>\n <div class="dropdown-menu">\n <div class="visible-sm-block visible-md-block visible-lg-block">\n <h3>Servizi Per Te</h3>\n <p>\n Strumenti e servizi per lavoratori e aziende\n </p>\n <p>\n <button type="submit" class="btn btn-default" onclick="location.href=domainUrl+\'/cs/internet/servizi-per-te.html\';">vai alla sezione</button>\n </p>\n </div>\n <ul role="menu">\n <li class="visible-xs-block hidden-sm hidden-md hidden-lg"><a href="https://www.inail.it/cs/internet/servizi-per-te.html">Vai alla sezione</a></li>\n <li><a href="{{domainUrl}}/cs/Satellite?c=Page&cid=2443085360338&d=Touch&pagename=Internet%2FPage%2FpaginaFoglia%2Flayout">Lavoratore</a></li>\n <li><a href="{{domainUrl}}/cs/Satellite?c=Page&cid=2443085353815&d=Touch&pagename=Internet%2FPage%2FpaginaFoglia%2Flayout">Datore di Lavoro</a></li>\n <li><a href="{{domainUrl}}/cs/Satellite?c=Page&cid=2443085351856&d=Touch&pagename=Internet%2FPage%2FpaginaFoglia%2Flayout">Consulente</a></li>\n <li><a href="{{domainUrl}}/cs/Satellite?c=Page&cid=2443085360496&d=Touch&pagename=Internet%2FPage%2FpaginaFoglia%2Flayout">Patronati e Caf</a></li>\n <li><a href="https://www.inail.it/cs/internet/servizi-per-te/operatori-della-sanita.html">Operatori della sanità</a></li>\n <li><a href="{{domainUrl}}/cs/Satellite?c=Page&cid=2443085360534&d=Touch&pagename=Internet%2FPage%2FpaginaFoglia%2Flayout">Altri Utenti</a></li>\n </ul>\n </div>\n </li>\n <li class="dropdown"><a href="https://www.inail.it/cs/internet/supporto.html"\n class="dropdown-toggle" data-toggle="dropdown" role="button"\n aria-expanded="false"> Supporto <span\n class="sr-only">(selezionato)</span>\n </a>\n <div class="dropdown-menu">\n <div class="visible-sm-block visible-md-block visible-lg-block">\n <h3>Supporto</h3>\n <p>\n Strumenti e servizi per lavoratori e aziende\n </p>\n <p>\n <button type="submit" class="btn btn-default" onclick="location.href=domainUrl+\'/cs/internet/supporto.html\';">vai alla sezione</button>\n </p>\n </div>\n <ul role="menu">\n <li class="visible-xs-block hidden-sm hidden-md hidden-lg"><a href="https://www.inail.it/cs/internet/supporto.html">Vai alla sezione</a></li>\n <li><a href="https://www.inail.it/cs/internet/supporto/guide-e-manuali.html">Guide e manuali operativi</a></li>\n <li><a href="https://www.inail.it/cs/internet/supporto/faq-sn.html">Faq</a></li>\n <li><a href="https://www.inail.it/cs/internet/supporto/inail-risponde.html">Inail risponde</a></li>\n <li><a href="https://www.inail.it/cs/internet/supporto/agenda-appuntamenti.html">Agenda appuntamenti</a></li>\n <li><a href="https://www.inail.it/cs/internet/supporto/sedi.html">Sedi</a></li>\n </ul>\n </div>\n </li>\n </ul>\n </div>\n <ul role="menu" class="nav navbar-nav nav-exit navbar-right">\n <li>\n <a href="{{logoutUrl}}" title="Esci" id="logoutButton">ESCI</a>\n </li>\n </ul>\n </nav>\n </div>\n</ng-container>\n<debug-pre *ngIf="showState">[inail-navigazione-principale]<br>\n <state-propertie [label]="\'url\'" [propertie]="url"></state-propertie>\n <state-propertie [label]="\'domainUrl\'" [propertie]="domainUrl"></state-propertie>\n <state-propertie [label]="\'logoutUrl\'" [propertie]="logoutUrl"></state-propertie>\n <state-propertie [label]="\'logOnConsole\'" [propertie]="logOnConsole"></state-propertie>\n <state-propertie [label]="\'inizializzazioneTerminata\'" [propertie]="inizializzazioneTerminata"></state-propertie>\n</debug-pre>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],W.ctorParameters=function(){return[{type:r.DomSanitizer},{type:t.ChangeDetectorRef},{type:o.HttpClient}]},W.propDecorators={url:[{type:t.Input}],domainUrl:[{type:t.Input}],logoutUrl:[{type:t.Input}],html:[{type:t.Input}]};var J=function(e){function t(t,n,i){var a=e.call(this,n)||this;return a.sanitizer=t,a.cdr=n,a.http=i,a.MAX_SM=755,a.domainUrl="",a.inizializzazioneTerminata=!1,a.menuSecondarioElencoAperto=!1,a.logPrefix="[inail-menu-intranet]",a.detach(),a}return P(t,e),t.prototype.ngOnChanges=function(t){var n,i;e.prototype.ngOnChanges.call(this,t),(null===(n=null==t?void 0:t.url)||void 0===n?void 0:n.currentValue)&&!(null===(i=null==t?void 0:t.html)||void 0===i?void 0:i.currentValue)&&(t.url.firstChange&&this.emitDebug("Inizializzazione Menu intranet"),this.recupera()),this.cdr.detectChanges()},t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this),this.html?(this.innerHtml=this.sanitizer.bypassSecurityTrustHtml(this.html),this.inizializzazioneTerminata=!0,this.cdr.detectChanges()):this.url||(this.emitDebug("Inizializzazione Menu intranet, Url Menu intranet non specificato"),this.url=this.domainUrl+"/cs/internet/headersecondariointranet.html",this.recupera())},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t.prototype.apriOnClick=function(){this.menuSecondarioElencoAperto=!this.menuSecondarioElencoAperto,this.cdr.detectChanges()},t.prototype.recupera=function(){var e=this;this.emitDebug("Recupero menu intranet da: "+this.url),this.http.get(this.url,{responseType:"text"}).pipe(s.first(),s.finalize((function(){e.emitDebug("Menu intranet inizializzato!"),e.inizializzazioneTerminata=!0,e.cdr.detectChanges()}))).subscribe((function(t){e.innerHtml=e.sanitizer.bypassSecurityTrustHtml(t),e.emitDebug("Menu intranet recuperato!")}),(function(t){e.innerHtml=void 0,e.emitError("Errore nel recupero del Menu intranet"),e.emitError(t),e.emitWarn("Visualizzazione Menu intranet di default")}))},t}(S);J.decorators=[{type:t.Component,args:[{selector:"inail-menu-intranet",template:'<div class="inail-menu-intranet">\n <nav class="navbar col-xs-12 col-sm-7 col-md-6">\n <div class="navbar-header">\n <p class="navbar-toggle fa fa-2x fa-chevron-circle-down visible-xs pull-left"\n (keyup.enter)="apriOnClick()"\n (keyup.space)="apriOnClick()"\n (click)="apriOnClick()"\n tabindex="0">\n <span class="sr-only">Menu</span>\n </p>\n </div>\n <div id="menusecondarioelenco"\n class="navbar-collapse"\n [ngClass]="{\'collapsed\': !menuSecondarioElencoAperto}">\n <ul class="nav navbar-nav"\n *ngIf="this.innerHtml"\n [innerHtml]="this.innerHtml">\n </ul>\n <ul class="nav navbar-nav"\n *ngIf="!this.innerHtml">\n <li><a href="{{domainUrl}}/intracs/intranet/home.html">My Home</a></li>\n <li class="ESCMenuInternet"><a href="{{domainUrl}}/intracs/intranet/informazioni.html">Informazioni</a></li>\n <li><a href="{{domainUrl}}/intracs/intranet/strumenti.html">Strumenti</a></li>\n <li><a href="{{domainUrl}}/intracs/intranet/formazione.html">Formazione</a></li>\n </ul>\n </div>\n </nav>\n</div>\n<debug-pre *ngIf="showState">[inail-menu-intranet]<br>\n <state-propertie [label]="\'url\'" [propertie]="url"></state-propertie>\n <state-propertie [label]="\'domainUrl\'" [propertie]="domainUrl"></state-propertie>\n <state-propertie [label]="\'inizializzazioneTerminata\'" [propertie]="inizializzazioneTerminata"></state-propertie>\n</debug-pre>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:["@media (max-width:991px){.inail-menu-intranet .navbar-toggle:focus{outline:1px dotted #fff}.inail-menu-intranet #menusecondarioelenco.collapsed{max-height:0;overflow:hidden;transition:max-height .4s ease-out}.inail-menu-intranet #menusecondarioelenco{overflow:hidden;transition:max-height .4s ease-out;max-height:500px}}"]}]}],J.ctorParameters=function(){return[{type:r.DomSanitizer},{type:t.ChangeDetectorRef},{type:o.HttpClient}]},J.propDecorators={url:[{type:t.Input}],domainUrl:[{type:t.Input}],html:[{type:t.Input}]};var Y=function(){this.domainUrl="",this.cdnEndpoint=""},Z=function(e){function n(n,i,a){var o=e.call(this,i)||this;return o.sanitizer=n,o.cdr=i,o.http=a,o.config={},o.checksession=new t.EventEmitter,o.datiDipendente=new t.EventEmitter,o.menuCercaUtenteAperto=!1,o.logPrefix="[inail-navigazione-utente]",o.detach(),o}return P(n,e),n.prototype.ngOnChanges=function(t){var n,i;e.prototype.ngOnChanges.call(this,t),(null===(n=null==t?void 0:t.config)||void 0===n?void 0:n.currentValue)&&!1===(null===(i=null==t?void 0:t.config)||void 0===i?void 0:i.isFirstChange())&&this.init(),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.init(),this.detectChange&&this.push(this.detectChange.subscribe((function(){return t.cdr.detectChanges()})))},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n.prototype.init=function(){return L(this,void 0,void 0,(function(){var e,t;return U(this,(function(n){switch(n.label){case 0:return null==this.config.assetsUrl&&(this.config.assetsUrl=this.config.intranet?j:H),!m(this.config.assetsUrl)&&f(this.config.assetsUrl)&&null!=this.config.cdnEndpoint&&(this.config.assetsUrl=this.config.cdnEndpoint+this.config.assetsUrl),this.config.apiGatewayUrl||(this.config.apiGatewayUrl=this.config.domainUrl+q),this.config.profiloUtenteUrl||(this.config.profiloUtenteUrl="/cs/intranet/home/consultazione/gestione-profilo.html"),this.infoDipendente?[3,3]:(this.infoDipendente={},this.config.recuperoAutomaticoDatiUtente?[4,this.recuperaDatiDipendente()]:[3,3]);case 1:return(e=n.sent())&&(this.datiDipendente.emit(e),this.infoDipendente.nome=e.nome,this.infoDipendente.cognome=e.cognome),t=this.infoDipendente,[4,this.recuperaFotoDipendente()];case 2:t.foto=n.sent(),n.label=3;case 3:return this._immagineProfilo=this.infoDipendente.foto?this.sanitizer.bypassSecurityTrustUrl("data:image/png;base64,"+this.infoDipendente.foto):this.urlFotoUtenteAnonimo,this.cdr.detectChanges(),[2]}}))}))},Object.defineProperty(n.prototype,"immagineProfilo",{get:function(){return this._immagineProfilo||this.urlFotoUtenteAnonimo},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"urlFotoUtenteAnonimo",{get:function(){var e;return this.config?(null===(e=this.config)||void 0===e?void 0:e.assetsUrl)+"/img/anonimo.jpg ":void 0},enumerable:!1,configurable:!0}),n.prototype.getMatricolaDipendente=function(){return L(this,void 0,void 0,(function(){var e;return U(this,(function(t){switch(t.label){case 0:return u(this.infoDipendente.matricola)?(e=this.infoDipendente,[4,this.recuperaMatricolaDipendente()]):[3,2];case 1:e.matricola=t.sent(),t.label=2;case 2:return[2,this.infoDipendente.matricola]}}))}))},n.prototype.recuperaMatricolaDipendente=function(){return L(this,void 0,void 0,(function(){var e,t,n,i;return U(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),t=this.config.apiGatewayUrl+"/checksession",this.emitDebug("Recupero matricola dipendente per Navigazione utente da "+t),[4,this.get(t).toPromise()];case 1:return n=a.sent(),this.checksession.emit(n),!0===(null==n?void 0:n.result)?e=n.User:403===(null==n?void 0:n["http-status"])?this.emitWarn("Utente non autenticato!"):this.emitError("Errore nel recupero della matricola dipendente"),[3,3];case 2:return i=a.sent(),this.emitError("Errore nel recupero della matricola dipendente"),this.emitError(i),[3,3];case 3:return[2,e]}}))}))},n.prototype.recuperaDatiDipendente=function(){return L(this,void 0,void 0,(function(){var e,t,n,i,a;return U(this,(function(o){switch(o.label){case 0:return[4,this.getMatricolaDipendente()];case 1:if(null==(e=o.sent()))return[3,5];n=this.config.apiGatewayUrl+"/au/dipendente/estrai-dati-dipendente?matricola="+e,o.label=2;case 2:return o.trys.push([2,4,,5]),this.emitDebug("Recupero dati dipendente per Navigazione utente da "+n),[4,this.get(n).toPromise()];case 3:return(i=o.sent())&&i.dipendente&&0!=i.dipendente.length&&i.dipendente[0]?t=i.dipendente[0]:this.emitError("Dipendente non trovato"),[3,5];case 4:return a=o.sent(),this.emitError("Errore nel recupero dei dati dipendente"),this.emitError(a),[3,5];case 5:return[2,t]}}))}))},n.prototype.recuperaFotoDipendente=function(){return L(this,void 0,void 0,(function(){var e,t,n,i,a;return U(this,(function(o){switch(o.label){case 0:return[4,this.getMatricolaDipendente()];case 1:if(null==(e=o.sent()))return[3,5];n=this.config.apiGatewayUrl+"/au/dipendente/estrai-foto-dipendente?matricola="+e,o.label=2;case 2:return o.trys.push([2,4,,5]),this.emitDebug("Recupero foto dipendente per Navigazione utente da "+n),[4,this.get(n).toPromise()];case 3:return(i=o.sent())&&i.fotoDipendente&&0!=i.fotoDipendente.length&&i.fotoDipendente[0]?t=i.fotoDipendente[0].foto:this.emitError("Foto dipendente non trovata"),[3,5];case 4:return a=o.sent(),this.emitError("Errore nel recupero della foto dipendente"),this.emitError(a),[3,5];case 5:return[2,t]}}))}))},n.prototype.get=function(e){var t=this,n=(new o.HttpHeaders).set("client_id",this.config.clientId);return this.http.get(e,{headers:n,withCredentials:!0}).pipe(s.first(),s.finalize((function(){t.cdr.detectChanges()})),s.tap((function(e){t.emitDebug("Risposta richiesta get:"),t.emitDebug(e)})))},n.prototype.onCercaUtenteSubmit=function(){var e=this.config.cercaPersonePageUrl||this.config.domainUrl+"/csintra/intranet/home/consultazione/cerca-persone-e-strutture/cerca-persone-fp.html";location.href=e+"?campo_unico_menu="+this.testoRicercaUtente+"&_authkey_=null&cerca=cercaHeader"},n.prototype.apriOnClick=function(){this.menuCercaUtenteAperto=!this.menuCercaUtenteAperto,this.cdr.detectChanges()},n}(S);Z.decorators=[{type:t.Component,args:[{selector:"inail-navigazione-utente",template:'<div class="inail-navigazione-utente">\n <div id="menusecondario"\n class="row">\n\n \x3c!-- Informazioni Utente loggato --\x3e\n \x3c!-- <inail-informazioni-utente></inail-informazioni-utente>--\x3e\n <nav class="navbar navbar-utente col-xs-12 col-sm-3 col-md-4">\n <div class="utente-loggato">\n <a href="{{this.config?.profiloUtenteUrl}}" title="Vai al profilo dell\'utente">\n <img class="visible-md visible-lg" alt="Immagine del profilo dell\'utente" [src]="this.immagineProfilo">\n <span class="lync available">utente online</span>\n <span class="utente-loggato-nome">{{this.infoDipendente?.nome}} {{this.infoDipendente?.cognome}}</span>\n \x3c!-- TODO: Inserire il ruolo vero --\x3e\n <span class="utente-loggato-ruolo hidden">dipendente</span>\n </a>\n </div>\n </nav>\n\n \x3c!-- Menu Intranet recuperato da WCS --\x3e\n <inail-menu-intranet *ngIf="this.config?.intranet === true"\n [url]="this.config?.menuIntranetUrl"\n [html]="config?.menuIntranetHtml"\n [domainUrl]="this.config?.domainUrl"\n [logOnConsole]="this.logOnConsole"\n (log)="emit($event)">\n </inail-menu-intranet>\n\n \x3c!-- Notifiche utente loggato --\x3e\n <nav *ngIf="config?.visualizzaMenuCercaUtente === true || config?.visualizzaNotificheUtente === true"\n class="navbar pull-right">\n <div class="notifiche-utente">\n <a *ngIf="config.visualizzaNotificheUtente === true"\n class="strumenti-profilo"\n title="Vai alla sezione Contatti"\n href="javascript:void(0)">\n <span class="fa fa-globe fa-2x">\n <span class="hidden">Contatti</span>\n </span>\n <span id="notifica-social" class="notifica-social hidden">0</span>\n </a>\n <a *ngIf="config?.visualizzaMenuCercaUtente === true"\n class="strumenti-profilo"\n title="Vai alla sezione Cerca Contatti"\n href="javascript:void(0)"\n (keyup.space)="apriOnClick()"\n (click)="apriOnClick()">\n <span class="fa-stack">\n <span class="fa fa-user fa-stack-2x"></span>\n <span class="fa-stack-lg">\n <span class="fa fa-circle fa-stack-1x"></span>\n <span class="fa fa-search fa-stack-lg"></span>\n </span>\n <span class="hidden">Cerca Contatti</span>\n </span>\n </a>\n </div>\n </nav>\n </div>\n\n \x3c!-- Menu cerca utente --\x3e\n <div *ngIf="config?.visualizzaMenuCercaUtente === true"\n #menucercautente\n class="row"\n [ngClass]="{\'collapsed\': !menuCercaUtenteAperto}"\n id="menucercautente"\n role="search"\n [attr.aria-expanded]="menuCercaUtenteAperto">\n <form (ngSubmit)="onCercaUtenteSubmit()"\n method="get"\n class="navbar-form col-xs-12 searchsite utente ng-pristine ng-valid">\n <h2 class="hidden">Cerca utente</h2>\n <p class="form-group">\n <label class="hidden" for="testoricercautente">Parametro di ricerca</label>\n <input id="testoricercautente"\n class="form-control"\n placeholder="Cerca utente"\n title="inserisci il parametro da cercare su tutto il sito"\n type="text"\n name="campo_unico_menu"\n [attr.tabindex]="menuCercaUtenteAperto ? \'0\' : \'-1\'"\n [(ngModel)]="testoRicercaUtente">\n <button type="submit"\n class="btn btn-default"\n [attr.tabindex]="menuCercaUtenteAperto ? \'0\' : \'-1\'">Cerca</button>\n </p>\n </form>\n </div>\n</div>\n\n\n<debug-pre *ngIf="showState">[inail-navigazione-utente]<br>\n <state-propertie [label]="\'testoRicercaUtente\'" [propertie]="testoRicercaUtente"></state-propertie>\n <state-propertie [label]="\'logOnConsole\'" [propertie]="logOnConsole"></state-propertie>\n <state-propertie [label]="\'urlFotoUtenteAnonimo\'" [propertie]="urlFotoUtenteAnonimo"></state-propertie>\n <state-propertie [label]="\'config\'" [propertie]="config"></state-propertie>\n <state-propertie [label]="\'infoDipendente\'" [propertie]="infoDipendente"></state-propertie>\n</debug-pre>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:[".inail-navigazione-utente #menucercautente.collapsed{max-height:0;overflow:hidden;transition:max-height .2s ease}.inail-navigazione-utente #menucercautente{overflow:hidden;transition:max-height .2s ease;max-height:63px}@media (max-width:991px){.inail-navigazione-utente #menucercautente{max-height:143px}}"]}]}],Z.ctorParameters=function(){return[{type:r.DomSanitizer},{type:t.ChangeDetectorRef},{type:o.HttpClient}]},Z.propDecorators={config:[{type:t.Input}],infoDipendente:[{type:t.Input}],checksession:[{type:t.Output}],datiDipendente:[{type:t.Output}]};var X=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.checksession=new t.EventEmitter,i.datiDipendente=new t.EventEmitter,i.inizializzazioneCompletata=!1,i.logPrefix="[inail-header]",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(e){this.emitDebug("ngOnChanges"),this.emitDebug(e),this.cdr.detectChanges()},n.prototype.ngAfterViewInit=function(){this.logoInail.nativeElement.focus()},n.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.emitDebug("config"),this.emitDebug(this.config),this.config||(this.config={clientId:""}),u(this.config.domainUrl)&&(this.config.domainUrl=""),u(this.config.cdnEndpoint)&&(this.config.cdnEndpoint=""),u(this.config.assetsUrl)&&(d(this.config.cdnEndpoint)?this.config.assetsUrl=_:this.config.assetsUrl=this.config.intranet?j:H),!m(this.config.assetsUrl)&&f(this.config.assetsUrl)&&null!=this.config.cdnEndpoint&&(this.config.assetsUrl=this.config.cdnEndpoint+this.config.assetsUrl),this.configurazioniNavigazioneUtente={apiGatewayUrl:this.config.apiGatewayUrl,clientId:this.config.clientId,domainUrl:this.config.domainUrl,assetsUrl:this.config.assetsUrl,cdnEndpoint:this.config.cdnEndpoint,intranet:this.config.intranet,menuIntranetUrl:this.config.menuIntranetUrl,menuIntranetHtml:this.config.menuIntranetHtml,profiloUtenteUrl:this.config.profiloUtenteUrl,visualizzaNotificheUtente:this.config.visualizzaNotificheUtente,visualizzaMenuCercaUtente:this.config.visualizzaMenuCercaUtente,cercaPersonePageUrl:this.config.cercaPersonePageUrl,recuperoAutomaticoDatiUtente:this.config.recuperoAutomaticoDatiUtente},this.detectChange&&this.push(this.detectChange.subscribe((function(){return t.cdr.detectChanges()}))),this.inizializzazioneCompletata=!0,this.cdr.detectChanges()},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n}(S);X.decorators=[{type:t.Component,args:[{selector:'header[id="inail-header"]',template:'<h1>INAIL - Istituto Nazionale per l\'Assicurazione contro gli Infortuni sul Lavoro</h1>\n<a *ngIf="inizializzazioneCompletata"\n href="{{config?.domainUrl}}/cs/internet/home.html"\n id="logo-inail-header"\n #logoInail\n title="torna alla homepage INAIL">\n <img src="{{config?.assetsUrl}}/img/LogoInail.svg"\n alt="INAIL - Istituto Nazionale per l\'Assicurazione contro gli Infortuni sul Lavoro"\n class="img-responsive">\n</a>\n\n\x3c!-- Navigazione interna --\x3e\n<inail-navigazione-interna></inail-navigazione-interna>\n\n<hr class="hidden">\n\n\x3c!-- Menu di navigazione principale recuperato da WCS (Barra blu con pulsante esci) --\x3e\n<inail-navigazione-principale [url]="this.config?.navigazionePrincipaleUrl"\n [html]="this.config?.navigazionePrincipaleHtml"\n [domainUrl]="this.config?.domainUrl"\n [logoutUrl]="this.config?.logoutUrl"\n [logOnConsole]="this.logOnConsole"\n (log)="emit($event)">\n</inail-navigazione-principale>\n\n<p class="hidden">\n <a href="#navinterna"\n title="torna alla navigazione interna alla pagina">Torna alla navigazione interna</a>\n</p>\n\n\x3c!-- Menu di navigazione utente loggato (Barra verde) --\x3e\n<inail-navigazione-utente *ngIf="configurazioniNavigazioneUtente"\n [config]="configurazioniNavigazioneUtente"\n [infoDipendente]="this.infoDipendente"\n [logOnConsole]="this.logOnConsole"\n (checksession)="checksession.emit($event)"\n (datiDipendente)="datiDipendente.emit($event)"\n (log)="emit($event)">\n</inail-navigazione-utente>\n<debug-pre *ngIf="showState">[inail-header]<br>\n <state-propertie [label]="\'logOnConsole\'" [propertie]="logOnConsole"></state-propertie>\n <state-propertie [label]="\'infoDipendente\'" [propertie]="infoDipendente"></state-propertie>\n <state-propertie [label]="\'config\'" [propertie]="config"></state-propertie>\n <state-propertie [label]="\'configurazioniNavigazioneUtente\'" [propertie]="configurazioniNavigazioneUtente"></state-propertie>\n</debug-pre>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],X.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},X.propDecorators={config:[{type:t.Input}],infoDipendente:[{type:t.Input}],checksession:[{type:t.Output}],datiDipendente:[{type:t.Output}],logoInail:[{type:t.ViewChild,args:["logoInail"]}]};var Q=function(){},K=function(e){function t(t){var n=e.call(this,t)||this;return n.cdr=t,n.logPrefix="[inail-loader]",n.detach(),n}return P(t,e),t.prototype.ngOnChanges=function(e){this.cdr.detectChanges()},t.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.detectChange&&this.push(this.detectChange.subscribe((function(){return t.cdr.detectChanges()})))},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t}(S);K.decorators=[{type:t.Component,args:[{selector:"inail-loader",template:'<ng-container *ngIf="show">\n <div class="loader-overlay">\n <span class="fa fa-spinner fa-pulse fa-2x"></span>\n </div>\n</ng-container>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:[".loader-hidden{visibility:hidden}.loader-overlay{position:fixed;background-color:rgba(0,46,95,.2);width:100%;height:100%;top:0;left:0;opacity:1;z-index:500000}.fa.fa-spinner{position:fixed;top:50%;left:50%}"]}]}],K.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},K.propDecorators={show:[{type:t.Input}]};var ee=function(e){function t(t){var n=e.call(this,t)||this;return n.cdr=t,n.detach(),n}return P(t,e),t.prototype.ngOnInit=function(){},t.prototype.open=function(){},t}(S);ee.decorators=[{type:t.Component,args:[{selector:"inail-trigger-slider-menu-button",template:'<button id="trigger-slider-menu"\n (click)="open()"\n class="pull-left"\n aria-label="Apre il menù laterale"\n aria-expanded="false"\n aria-controls="navigazionesecondaria">\n <span class="fa fa-2x fa-outdent"></span>\n</button>\n',encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],ee.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]};var te="stylesheet",ne="screen",ie="print",ae="text/css",oe="/assets/inail/static",re="/assets/inail/static-webkit",se=[{href:"/css/bootstrap.min.css",rel:te,type:ae,media:ne,assetUrl:oe},{href:"/css/foglia.css",rel:te,type:ae,media:ne,assetUrl:oe},{href:"/css/custom.css",rel:te,type:ae,media:ne,assetUrl:oe},{href:"/css/form.css",rel:te,type:ae,media:ne,assetUrl:oe},{href:"/css/font-awesome.min.css",rel:te,type:ae,media:ne,assetUrl:oe+"/font-awesome-4.3.0"},{href:"/js/datepicker/bootstrap-datepicker3.standalone.min.css",rel:te,type:ae,media:ne,assetUrl:oe},{href:"/css/home_sezione.css",rel:te,type:ae,media:ne,assetUrl:oe},{href:"/css/servizi.css",rel:te,type:ae,media:ne,assetUrl:oe},{href:"/css/intranet.css",rel:te,type:ae,media:ne,assetUrl:oe},{href:"/css/jquery-ui.css",rel:te,type:ae,media:ne,assetUrl:oe},{href:"/css/print.css",rel:te,type:ae,media:ie,assetUrl:oe},{href:"/css/print_intranet.css",rel:te,type:ae,media:ie,assetUrl:"/assets/inail/static_intra"},{href:"/css/custom-webkit.css",rel:te,type:ae,media:ne,assetUrl:re},{href:"/css/slick/slick.css",rel:te,type:ae,media:ne,assetUrl:re}],le=function(){},ce=function(e){var t;return e&&((t=C(e)).label=e.label,t.link=e.link,t.linkRegex=e.linkRegex,t.callback=e.callback,t.show=e.show,t.parent=ce(e.parent),t.subItems=pe(e.subItems)),t},pe=function(e){var t;return e&&(t=e.map((function(e){return ce(e)}))),t},ue=function(e){function i(i,a){var o=e.call(this,a)||this;return o.router=i,o.cdr=a,o.innerMenu=!1,o.disableLinkOverwriting=!1,o.collapsible=!1,o.collapseOther=!1,o.expandAutomatically=!0,o.select=new t.EventEmitter,o.currentItem=new t.EventEmitter,o.inizializzazioneCompletata=!1,o.mostraItem=new t.EventEmitter,o.menuHeight$=new c.BehaviorSubject(void 0),o.emitMenuHeight=function(){var e,t;if(o.isCollapsible()){var n=null===(t=null===(e=o.menu)||void 0===e?void 0:e.nativeElement)||void 0===t?void 0:t.scrollHeight,i=o.isCollapsed()?0:n;i>0?o.menuHeight$.next(i):(o.menuHeight$.next(n),setTimeout((function(){return o.menuHeight$.next(0)}),15)),setTimeout((function(){return o.menuHeight$.next(void 0)}),350)}},o.isCollapsible=function(){return o.innerMenu&&o.collapsible},o.isCollapsed=function(){return o.isCollapsible()&&o.collapsed},o.isItemCollapsible=function(e){return e.collapsible&&o.hasSubItems(e)},o.isItemCollapsed=function(e){return(null==e?void 0:e.collapsible)&&(null==e?void 0:e.collapsed)},o.hasSubItems=function(e){var t;return(null===(t=null==e?void 0:e.subItems)||void 0===t?void 0:t.length)>0},o.isActive=function(e){return o.activeItem?e.id==o.activeItem:o.isCurrentPageItem(e)},o.isCurrentPageItem=function(e){return o.isCurrentUrl(o.getItemLink(e))||o.isCurrentUrl(o.getItemLinkRegex(e))||null!=e.activeLinks&&e.activeLinks.some(o.isCurrentUrl)},o.showItem=function(e){return!0===e.show||null==e.show||n.isFunction(e.show)&&!0===e.show()||o.isAutoShowItem(e)},o.isAutoShowItem=function(e){return"auto"===e.show&&(o.isCurrentPageItem(e)||e.subItems&&e.subItems.some(o.isAutoShowItem))},o.getItemLink=function(e){return n.isFunction(e.link)?e.link():e.link},o.getItemLinkRegex=function(e){return n.isFunction(e.linkRegex)?e.linkRegex():e.linkRegex},o.getItemLabel=function(e){return n.isFunction(e.label)?e.label():e.label},o.isCurrentUrl=function(e){return null!=e&&null!=o.router.url.split("?")[0].match(new RegExp("^".concat(e).concat("$"),"i"))},o.impostaUrlEffettivo=function(e){!o.disableLinkOverwriting&&e&&o.isCurrentUrl(o.getItemLinkRegex(e))&&(e.link=o.router.url)},o.espandiMenu=function(){return o.setCollapsedMenu("show")},o.collassaMenu=function(){return o.setCollapsedMenu("hide")},o.espandiItem=function(e){return o.setCollapsed(e,"show")},o.collassaItem=function(e){return o.setCollapsed(e,"hide")},o.toggleItem=function(e){return o.setCollapsed(e,"toggle")},o.logPrefix="[inail-menu]",o}return P(i,e),i.prototype.ngOnChanges=function(t){var n,i,a,o,r,s,l=this;e.prototype.ngOnChanges.call(this,t),(null===(n=null==t?void 0:t.items)||void 0===n?void 0:n.currentValue)&&(this.innerMenu||(this.items=pe(null===(i=null==t?void 0:t.items)||void 0===i?void 0:i.currentValue),this.originalItems=pe(null===(a=null==t?void 0:t.items)||void 0===a?void 0:a.currentValue)),this.inizializzaItems(this.items),this.emitCurrentItem()),(null===(o=null==t?void 0:t.emitCurrent)||void 0===o?void 0:o.currentValue)&&this.push(t.emitCurrent.currentValue.subscribe((function(){return l.emitCurrentItem()}))),(null==t?void 0:t.collapsed)&&!(null==t?void 0:t.collapsed.isFirstChange())&&this.emitMenuHeight(),t.collapse&&t.collapse.currentValue&&this.push(t.collapse.currentValue.subscribe((function(e){null==e?l.collassaMenu():l.collassaItem(l.findItem(e,l.items))}))),(null===(r=null==t?void 0:t.show)||void 0===r?void 0:r.currentValue)&&this.push(t.show.currentValue.subscribe((function(e){null==e?l.espandiMenu():l.espandiPercorso(e)}))),(null===(s=null==t?void 0:t.toggle)||void 0===s?void 0:s.currentValue)&&this.push(t.toggle.currentValue.subscribe((function(e){return l.toggleItem(l.findItem(e,l.items))})))},i.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),!1===this.collapsible&&(this.collapsed=!1),null==this.collapsed&&(this.collapsed=!0===this.collapsible),this.inizializzazioneCompletata=!0,this.emitCurrentItem(),this.push(this.router.events.pipe(s.filter((function(e){return e instanceof l.NavigationEnd}))).subscribe((function(){t.impostaUrlEffettivi(t.items),t.emitCurrentItem()}))),this.reinit&&this.push(this.reinit.subscribe((function(e){t.emitDebug("Reinit!"),t.items=pe(e||t.originalItems),e&&(t.originalItems=pe(e)),t.inizializzaItems(t.items)})))},i.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},i.prototype.inizializzaItems=function(e){var t=this;(null==e?void 0:e.length)&&(e.forEach((function(e){null==e.id&&(e.id=k()),null==e.show&&(e.show=!0),null==e.collapsible&&(e.collapsible=t.collapsible),0==e.collapsible&&(e.collapsed=!1),null==e.collapsed&&(e.collapsed=null==t.collapsed?1==e.collapsible:t.collapsed)})),this.setParent(e,this.parent),this.impostaUrlEffettivi(e))},i.prototype.impostaUrlEffettivi=function(e){(null==e?void 0:e.length)&&e.forEach(this.impostaUrlEffettivo)},i.prototype.emitCurrentItem=function(){var e=this.findCurrentItem(this.items);null!=e&&(this.impostaUrlEffettivo(e),this.emitDebug("Emissione item menu url corrente:"),this.emitDebug(e),this.currentItem.emit(e))},i.prototype.findCurrentItem=function(e){var t=this,n=void 0;return(null==e?void 0:e.length)&&e.forEach((function(e){null==n&&null!=e&&t.isCurrentPageItem(e)&&(n=e)})),n},i.prototype.findItem=function(e,t){var n=this,i=void 0;return(null==t?void 0:t.length)&&t.forEach((function(t){null==i&&null!=t&&(i=t.id==e?t:n.findItem(e,t.subItems))})),i},i.prototype.espandiPercorso=function(e){var t=this;this.items&&this.items.forEach((function(n){var i=t.findItem(e,n.subItems);(null==n?void 0:n.id)!=e&&null==i||(t.espandiItem(n),t.collapseOther&&t.doCollapseOther(n),i&&setTimeout((function(){return t.mostraItem.emit(e)}),350))}))},i.prototype.setCollapsedMenu=function(e){var t=this;this.items&&this.items.forEach((function(n){return t.setCollapsed(n,e)}))},i.prototype.setCollapsed=function(e,t){if(e&&e.collapsible)switch(t){case"hide":e.collapsed=!0;break;case"show":e.collapsed=!1;break;default:case"toggle":e.collapsed=!e.collapsed}},i.prototype.setParent=function(e,t){var n=this;(null==e?void 0:e.length)&&t&&e.forEach((function(e){null!=e&&(e.parent=n.toLightItem(t),n.setParent(e.subItems,e))}))},i.prototype.toLightItem=function(e){return null!=e?{id:e.id,label:e.label,link:e.link,parent:this.toLightItem(e.parent)}:void 0},i.prototype.itemOnClick=function(e){e&&(e.callback&&n.isFunction(e.callback)&&e.callback(),e.collapsible&&(e.collapsed=!e.collapsed,!1===e.collapsed&&!0===this.collapseOther&&this.doCollapseOther(e))),this.select.emit(e)},i.prototype.doCollapseOther=function(e){e&&this.items.forEach((function(t){t&&t.id!=e.id&&(t.collapsed=!0)}))},i.prototype.currentItemHandler=function(e,t){e&&(this.currentItem.emit(e),!0!==this.expandAutomatically||this.innerMenu||this.espandiPercorso(e.id))},i.prototype.collapsedOnChange=function(){},i.prototype.itemOnArrowDown=function(){var e,t=this.focusableItems;null===(e=t.filter((function(e){return e>t.index(document.activeElement)})).first())||void 0===e||e.focus()},i.prototype.itemOnArrowUp=function(){var e,t=this.focusableItems;null===(e=t.filter((function(e){return e<t.index(document.activeElement)})).last())||void 0===e||e.focus()},Object.defineProperty(i.prototype,"focusableItems",{get:function(){return window.$("body").find('ul.inail-menu > li > a:not([tabindex="-1"])')},enumerable:!1,configurable:!0}),i}(R);ue.decorators=[{type:t.Component,args:[{selector:"inail-menu",template:'<ng-container *ngIf="inizializzazioneCompletata">\n\n <ul #menu\n id="{{id}}"\n [attr.role]="\'menu\'"\n class="inail-menu {{class}}"\n [ngStyle]="{\'height.px\': (menuHeight$ | async)}"\n [ngClass]="{\'livello_2\': innerMenu, \'collapsed\': isCollapsed()}">\n\n <debug-pre *ngIf="showState">[inail-menu-intranet]<br>\n <state-propertie [label]="\'id\'" [propertie]="id"></state-propertie>\n <state-propertie [label]="\'innerMenu\'" [propertie]="innerMenu"></state-propertie>\n <state-propertie [label]="\'collapsible\'" [propertie]="collapsible"></state-propertie>\n <state-propertie [label]="\'collapsed\'" [propertie]="collapsed"></state-propertie>\n <state-propertie [label]="\'collapseOther\'" [propertie]="collapseOther"></state-propertie>\n \x3c!-- {{elements | json}}--\x3e\n </debug-pre>\n\n <ng-container *ngFor="let item of items">\n\n <li *ngIf="showItem(item)"\n [attr.role]="item.link ? \'menuitem\' : undefined"\n [ngClass]="{selected: isActive(item)}"\n class="livello_1">\n <a *ngIf="item.link"\n [id]="item.id"\n [attr.tabindex]="isCollapsed() ? \'-1\' : \'0\'"\n [routerLink]="getItemLink(item)"\n [queryParams]="item.queryParams"\n [innerHTML]="getItemLabel(item)"\n [attr.aria-expanded]="isItemCollapsible(item) ? !item.collapsed : undefined"\n (click)="itemOnClick(item)"\n (keyup.arrowUp)="itemOnArrowUp()"\n (keyup.arrowDown)="itemOnArrowDown()"\n (keyup.space)="itemOnClick($event)">\n </a>\n <a *ngIf="!item.link"\n [id]="item.id"\n [attr.tabindex]="isCollapsed() ? \'-1\' : \'0\'"\n role="button"\n [innerHTML]="getItemLabel(item)"\n [attr.aria-expanded]="isItemCollapsible(item) ? !item.collapsed : undefined"\n (click)="itemOnClick(item)"\n (keyup.arrowUp)="itemOnArrowUp()"\n (keyup.arrowDown)="itemOnArrowDown()"\n (keyup.enter)="itemOnClick(item)"\n (keyup.space)="itemOnClick(item)">\n </a>\n <debug-pre *ngIf="showState">[menu-item]<br>\n <state-propertie [label]="\'id\'" [propertie]="item.id"></state-propertie>\n <state-propertie [label]="\'collapsible\'" [propertie]="item.collapsible"></state-propertie>\n <state-propertie [label]="\'collapsed\'" [propertie]="item.collapsed"></state-propertie>\n \x3c!-- {{element | json}}--\x3e\n </debug-pre>\n <inail-menu *ngIf="hasSubItems(item)"\n [id]="item.id+\'-items\'"\n [activeItem]="activeItem"\n [items]="item.subItems"\n [parent]="item"\n [innerMenu]="true"\n [emitCurrent]="emitCurrent"\n [collapsible]="item.collapsible"\n [collapsed]="item.collapsed"\n [collapseOther]="collapseOther"\n [collapse]="collapse"\n [toggle]="toggle"\n [show]="mostraItem"\n [showState]="showState"\n (select)="select.emit($event)"\n (currentItem)="currentItemHandler($event, item)">\n </inail-menu>\n </li>\n </ng-container>\n </ul>\n</ng-container>\n\n\n',encapsulation:t.ViewEncapsulation.None,styles:["ul.inail-menu{padding:0 10px!important;overflow:hidden;transition:height .3s ease-out}ul.inail-menu.collapsed{height:0}ul.inail-menu ul{padding:0!important}"]}]}],ue.ctorParameters=function(){return[{type:l.Router},{type:t.ChangeDetectorRef}]},ue.propDecorators={parent:[{type:t.Input}],innerMenu:[{type:t.Input}],activeItem:[{type:t.Input}],emitCurrent:[{type:t.Input}],collapse:[{type:t.Input}],show:[{type:t.Input}],showAll:[{type:t.Input}],toggle:[{type:t.Input}],items:[{type:t.Input}],reinit:[{type:t.Input}],collapsible:[{type:t.Input}],collapsed:[{type:t.Input}],collapseOther:[{type:t.Input}],expandAutomatically:[{type:t.Input}],select:[{type:t.Output}],currentItem:[{type:t.Output}],menu:[{type:t.ViewChild,args:["menu"]}]};var de,he="on-error-btn",ge=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.onclick=new t.EventEmitter,i.setFocusOnError=!1,i.logPrefix="[inail-button]",i}return P(n,e),n.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.visualizzaContent=u(this.label),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.logPrefix=this.logPrefix+"["+this.label+"]",this.focus&&this.push(this.focus.subscribe((function(e){return t.setFocus(e)}))),this.visualizzaContent=u(this.label),this.cdr.detectChanges()},n.prototype.ngAfterViewInit=function(){this.cdr.detectChanges()},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n.prototype.onClick=function(e){this.onclick.emit(e)},n.prototype.setFocus=function(e){this.emitDebug("Catch focus!"),z(this.buttonElement.nativeElement,e)},n}(R);ge.decorators=[{type:t.Component,args:[{selector:"inail-button",template:'<button #buttonElement\n [type]="submit ? \'submit\' : \'button\'"\n [id]="id"\n [attr.title]="getNotBlankValue(title)"\n [attr.name]="getNotBlankValue(name)"\n [disabled]="disabled"\n class="btn inail-button {{class}}"\n [ngClass]="{\'btn-success\': btnSuccess, \'btn-link\': btnLink, \'btn-primary\': !btnLink, \'on-error-btn\': setFocusOnError}"\n (click)="onClick($event)">\n <span *ngIf="angleLeft" class=\'fa left fa-angle-left\'></span>\n <span *ngIf="iconLeft" class=\'fa\' [ngClass]="iconLeft"></span>\n <span *ngIf="!visualizzaContent" class="{{labelClass}}" [innerHTML]="label"></span>\n <span #buttonContent *ngIf="visualizzaContent" class="{{labelClass}}">\n <ng-content></ng-content>\n </span>\n <span *ngIf="iconRight" class=\'fa\' [ngClass]="iconRight"></span>\n <span *ngIf="angleRight" class=\'fa fa-angle-right right\'></span>\n</button>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:[".inail-button:focus{outline-color:#fff!important}.inail-button.btn-link:focus{outline-color:#106cdb!important}"]}]}],ge.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},ge.propDecorators={label:[{type:t.Input}],title:[{type:t.Input}],name:[{type:t.Input}],disabled:[{type:t.Input}],labelClass:[{type:t.Input}],btnSuccess:[{type:t.Input}],btnLink:[{type:t.Input}],submit:[{type:t.Input}],angleRight:[{type:t.Input}],angleLeft:[{type:t.Input}],iconLeft:[{type:t.Input}],iconRight:[{type:t.Input}],focus:[{type:t.Input}],onclick:[{type:t.Output}],setFocusOnError:[{type:t.Input}],buttonElement:[{type:t.ViewChild,args:["buttonElement"]}],buttonContent:[{type:t.ViewChild,args:["buttonContent"]}]},(de=e.SetFocusStrategy||(e.SetFocusStrategy={}))[de.OnGlobalFeedback=0]="OnGlobalFeedback",de[de.OnFirstPageError=1]="OnFirstPageError";var me=function(){this.setFocusStrategy=e.SetFocusStrategy.OnGlobalFeedback},fe=function(e){function i(n,i,a,o,r){var s=e.call(this,o)||this;return s.renderer=n,s.http=i,s._elementRef=a,s.cdr=o,s.router=r,s.checksession=new t.EventEmitter,s.datiDipendente=new t.EventEmitter,s.breadcrumbEsterno=!0,s.risorseEsterneCounter=0,s.scriptEsterniCounter=0,s.caricamentoRisorseEsterneTerminato=!1,s.caricamentoScriptEsterniTerminato=!1,s.inizializzazioneTerminata=!1,s.toggleNavSecondaria=new t.EventEmitter,s.itsReady=function(){return!0===s.inizializzazioneTerminata&&!0===s.caricamentoRisorseEsterneTerminato},s.logPrefix="[inail-layout]",s.detach(),s}return P(i,e),i.prototype.onClick=function(e){this.config.focusOnError&&Ie(e)&&(this.emitDebug("Error button clicked"),Oe(this.config.setFocusStrategy,this.config.scrollToError))},i.prototype.ngOnChanges=function(e){var t;this.emitDebug("changes"),this.emitDebug(e),(null===(t=null==e?void 0:e.infoDipendente)||void 0===t?void 0:t.currentValue)&&this.cdr.detectChanges()},i.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this),this.init()},i.prototype.init=function(){var e,t;return L(this,void 0,void 0,(function(){return U(this,(function(n){switch(n.label){case 0:return this.emitDebug("init..."),this.removeNgVersion(this._elementRef.nativeElement),this.config?(this.emitDebug("Configurazioni InailLayoutComponent"),this.emitDebug(this.config),this.config.cdnEndpoint||!0!==this.config.recuperoAutomaticoCdnEnpoint?[3,2]:[4,this.recuperaCdnEnpoint()]):[3,3];case 1:n.sent(),n.label=2;case 2:this.headerConfig={clientId:this.config.clientId,domainUrl:this.config.domainUrl,apiGatewayUrl:this.config.apiGatewayUrl,assetsUrl:this.config.assetsUrl,intranet:this.config.intranet,logoutUrl:this.config.logoutUrl,cdnEndpoint:this.config.cdnEndpoint,menuIntranetUrl:this.config.menuIntranetUrl,menuIntranetHtml:this.config.menuIntranetHtml,navigazionePrincipaleUrl:this.config.navigazionePrincipaleUrl,navigazionePrincipaleHtml:this.config.navigazionePrincipaleHtml,profiloUtenteUrl:this.config.profiloUtenteUrl,visualizzaNotificheUtente:this.config.visualizzaNotificheUtente,visualizzaMenuCercaUtente:this.config.visualizzaMenuCercaUtente,cercaPersonePageUrl:this.config.cercaPersonePageUrl,recuperoAutomaticoDatiUtente:this.config.recuperoAutomaticoDatiUtente},n.label=3;case 3:return!0===(null===(e=this.config)||void 0===e?void 0:e.caricamentoDinamicoRisorseEsterne)?this.loadRisorseEsterne(this.externalResources||se,"link"):this.caricamentoRisorseEsterneTerminato=!0,(null===(t=this.config)||void 0===t?void 0:t.scrollTopAtNavigationEnd)&&this.push(this.router.events.pipe(s.filter((function(e){return e instanceof l.NavigationEnd}))).subscribe((function(){return E()}))),this.emitDebug("...inizializzazione terminata!"),this.inizializzazioneTerminata=!0,this.cdr.detectChanges(),[2]}}))}))},i.prototype.removeNgVersion=function(e){e&&((null==e?void 0:e.hasAttribute("ng-version"))?this.renderer.removeAttribute(e,"ng-version"):this.removeNgVersion(e.parentElement))},i.prototype.ngAfterViewInit=function(){var e,t=this;this.breadcrumbEsterno=!!this.breadcrumbContainer&&this.breadcrumbContainer.nativeElement.childElementCount>0,(null===(e=this.menuList)||void 0===e?void 0:e.length)>0&&this.menuList.forEach((function(e){t.push(e.currentItem.subscribe((function(e){t.emitDebug("Voce menu corrente"),t.emitDebug(e),null!=e&&(t.paginaCorrente=t.toPaginaApplicativa(e),t.cdr.detectChanges())})))})),this.cdr.detectChanges()},i.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},i.prototype.toPaginaApplicativa=function(e){return null!=e?{title:this.getElementLabel(e),url:this.getElementLink(e),parent:this.toPaginaApplicativa(e.parent)}:void 0},i.prototype.getElementLink=function(e){return n.isFunction(e.link)?e.link():e.link},i.prototype.getElementLabel=function(e){return n.isFunction(e.label)?e.label():e.label},i.prototype.recuperaCdnEnpoint=function(){return L(this,void 0,void 0,(function(){var e,t,n;return U(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),e=(m(this.config.apiGatewayUrl)?"":this.config.domainUrl||"")+(this.config.apiGatewayUrl||q)+"/.well-known/inail-configuration",this.emitDebug("Recupero cdn endpoint da: "+e),[4,this.http.get(e,{withCredentials:!0}).toPromise()];case 1:return t=i.sent(),this.config.cdnEndpoint=t.cdn_endpoint,[3,3];case 2:return n=i.sent(),this.emitError("Errore nel recupero del cdnEnpoint da api gateway"),this.emitError(n),[3,3];case 3:return[2]}}))}))},i.prototype.loadRisorseEsterne=function(e,t){return L(this,void 0,void 0,(function(){var n,i=this;return U(this,(function(a){switch(this.emitDebug("Load risorse esterne"),this.emitDebug(e),e.forEach((function(e){return i.impostaPathRisorsa(e,t)})),n=[],e.forEach((function(e){return n.push({loaded:!1,resource:e})})),t){case"link":this.risorseEsterneCounter=0,this.risorseEsterneTot=e.length,this.caricaRisorseEsterne(n)}return[2]}))}))},i.prototype.impostaPathRisorsa=function(e,t){var n;switch(t){case"link":n="href";break;case"script":n="src"}e.assetUrl=m(e[n])?"":e.assetUrl||this.config.assetsUrl||(this.config.intranet?j:H),e.cdnEndpoint=m(e.assetUrl)?"":e.cdnEndpoint||this.config.cdnEndpoint||""},i.prototype.caricaRisorseEsterne=function(e,t){return void 0===t&&(t=0),L(this,void 0,void 0,(function(){var t=this;return U(this,(function(n){return e&&e.length>0&&e.forEach((function(e){t.emitDebug("Caricamento risorsa esterna:"),t.emitDebug(e),t.creaElementoRisorsaEsterna(e,"link").then((function(e){t.emitDebug("...caricamento risorsa esterna completato"),t.emitDebug(e)}),(function(e){t.emitError("Errore caricamento risorsa esterna!"),t.emitError(e)}))})),[2]}))}))},i.prototype.creaElementoRisorsaEsterna=function(e,t){return L(this,void 0,void 0,(function(){var n=this;return U(this,(function(i){return[2,new Promise((function(i,a){var o=e.resource.src||e.resource.href;if(e.loaded)i({resource:o,loaded:!0,status:"Already Loaded"});else{var r;switch(t){case"script":r=be(e.resource);break;case"link":r=ve(e.resource)}r.readyState?r.onreadystatechange=function(){"loaded"!==r.readyState&&"complete"!==r.readyState||(n.risorsaOnLoad(t),r.onreadystatechange=null,e.loaded=!0,i({resource:o,loaded:!0,status:"Loaded"}))}:r.onload=function(){n.risorsaOnLoad(t),e.loaded=!0,i({resource:o,loaded:!0,status:"Loaded"})},r.onerror=function(i){n.risorsaOnLoad(t),a({resource:e.resource,loaded:!1,status:"Loaded"})},document.head.appendChild(r)}}))]}))}))},i.prototype.risorsaOnLoad=function(e){switch(e){case"script":this.scriptEsterniCounter++,this.caricamentoScriptEsterniTerminato=this.scriptEsterniCounter===this.scriptEsterniTot;break;case"link":this.risorseEsterneCounter++,this.caricamentoRisorseEsterneTerminato=this.risorseEsterneCounter===this.risorseEsterneTot}this.caricamentoRisorseEsterneTerminato&&this.cdr.detectChanges()},i}(S);fe.decorators=[{type:t.Component,args:[{selector:"inail-layout",template:'<inail-loader [show]="showLoader"></inail-loader>\n<debug-pre *ngIf="showState">[inail-layout]<br>\n <state-propertie [label]="\'config\'" [propertie]="config"></state-propertie>\n <state-propertie [label]="\'infoDipendente\'" [propertie]="infoDipendente"></state-propertie>\n <state-propertie [label]="\'inizializzazioneTerminata\'" [propertie]="inizializzazioneTerminata"></state-propertie>\n <state-propertie [label]="\'caricamentoRisorseEsterneTerminato\'" [propertie]="caricamentoRisorseEsterneTerminato"></state-propertie>\n <state-propertie [label]="\'caricamentoScriptEsterniTerminato\'" [propertie]="caricamentoScriptEsterniTerminato"></state-propertie>\n <state-propertie [label]="\'itsReady\'" [propertie]="itsReady()"></state-propertie>\n <state-propertie [label]="\'breadcrumbEsterno\'" [propertie]="breadcrumbEsterno"></state-propertie>\n <state-propertie [label]="\'paginaCorrente\'" [propertie]="paginaCorrente"></state-propertie>\n</debug-pre>\n<div *ngIf="!itsReady()" class="please-wait">\n <div *ngIf="config?.appName" class="app-name">{{config.appName}}</div>\n <div>Caricamento in corso ...</div>\n</div>\n<ng-content *ngIf="!itsReady()"\n select="[please-wait]">\n</ng-content>\n<div class="container"\n [hidden]="!itsReady()"\n [ngClass]="{\'wide\' : config && config.containerWide}">\n\n <header id="inail-header"\n *ngIf="inizializzazioneTerminata"\n [config]="headerConfig"\n [showState]="false"\n [infoDipendente]="this.infoDipendente"\n [logOnConsole]="this.logOnConsole"\n (checksession)="checksession.emit($event)"\n (datiDipendente)="datiDipendente.emit($event)"\n (log)="emit($event)">\n </header>\n\n \x3c!-- Breadcrumb --\x3e\n <div class="row breadcrumbs internet-breadcrumb"\n aria-label="Breadcrumb"\n #breadcrumbContainer>\n <ng-container *ngIf="breadcrumbEsterno" breadcrumb>\n <ng-content select="[breadcrumb]"></ng-content>\n </ng-container>\n <inail-breadcrumb *ngIf="!breadcrumbEsterno"\n [logOnConsole]="this.logOnConsole"\n [currentPage]="paginaCorrente"\n (log)="emit($event)">\n </inail-breadcrumb>\n </div>\n\n <inail-trigger-slider-menu-button (click)="toggleNavSecondaria.emit()"></inail-trigger-slider-menu-button>\n\n <div class="row">\n\n <inail-navigazione-secondaria [toggle]="toggleNavSecondaria"\n [logOnConsole]="logOnConsole"\n (log)="emit($event)">\n\n <ng-container sidebar-superiore>\n <ng-content select="[sidebar-superiore]"></ng-content>\n </ng-container>\n\n <ng-container sidebar-inferiore>\n <ng-content select="[sidebar-inferiore]"></ng-content>\n </ng-container>\n\n </inail-navigazione-secondaria>\n\n <main *ngIf="inizializzazioneTerminata"\n id="contenutoprincipale" class="col-xs-12 col-sm-8 col-lg-9">\n\n <div class="row">\n <div class="content">\n\n <ng-content select="[main-content]"></ng-content>\n\n </div>\n </div>\n\n </main>\n\n </div>\n <inail-footer *ngIf="inizializzazioneTerminata"\n [url]="config?.footerUrl"\n [html]="config?.footerHtml"\n [domainUrl]="config?.domainUrl"\n [cdnEndpoint]="config?.cdnEndpoint"\n [assetsUrl]="config?.assetsUrl"\n [logOnConsole]="this.logOnConsole"\n (log)="emit($event)">\n </inail-footer>\n</div>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:[".container.wide{max-width:100%!important}.please-wait div{text-align:center;font-size:14.4333px!important;line-height:1.42857143;font-family:sans-serif!important}div.please-wait div.app-name{margin-top:100px;color:#002e5f!important;font-size:24px!important}"]}]}],fe.ctorParameters=function(){return[{type:t.Renderer2},{type:o.HttpClient},{type:t.ElementRef},{type:t.ChangeDetectorRef},{type:l.Router}]},fe.propDecorators={showLoader:[{type:t.Input}],config:[{type:t.Input}],infoDipendente:[{type:t.Input}],externalResources:[{type:t.Input}],checksession:[{type:t.Output}],datiDipendente:[{type:t.Output}],breadcrumbContainer:[{type:t.ViewChild,args:["breadcrumbContainer"]}],menuList:[{type:t.ContentChildren,args:[ue]}],onClick:[{type:t.HostListener,args:["click",["$event.target"]]}]};var ve=function(e){var t=document.createElement("link"),n=e.cdnEndpoint+(d(e.cdnEndpoint)&&!f(e.assetUrl)?"/":"")+e.assetUrl+e.href;return ye(t,"rel",e.rel),ye(t,"type",e.type),ye(t,"href",n),ye(t,"media",e.media),ye(t,"hreflang",e.hreflang),t},be=function(e){var t=document.createElement("script"),n=e.cdnEndpoint+(d(e.cdnEndpoint)&&!f(e.assetUrl)?"/":"")+e.assetUrl+e.src;return ye(t,"src",n),ye(t,"type",e.type),ye(t,"charset",e.charset),!0===e.async&&(t.async=!0),!0===e.defer&&(t.defer=!0),t},ye=function(e,t,n){null!=e&&null!=n&&(e[t]=n)},Ce=ye,Ie=function(e){return e&&("BUTTON"==e.nodeName&&Ee(e)||Ie(e.parentElement))},we=Ie,Ee=function(e){return e&&e.classList&&e.classList.contains(he)},ze=Ee,De=function(e){return e?e.querySelectorAll("input:not([disabled]):not([readonly]):not([tabindex='-1']),select:not([disabled]):not([readonly]):not([tabindex='-1']),textarea:not([disabled]):not([readonly]):not([tabindex='-1']),.feedback-focusable")[0]:void 0},ke=De,Oe=function(t,n){if(document.querySelectorAll(".modal.fade.in").length)xe();else switch(t){default:case e.SetFocusStrategy.OnGlobalFeedback:Se(n);break;case e.SetFocusStrategy.OnFirstPageError:Te(n)}},xe=function(){setTimeout((function(){var e=De(document.querySelectorAll(".modal-body .has-error")[0]),t=De(document.querySelectorAll(".modal-body .feedback-box-error")[0]);e?e.focus():t&&t.focus()}),100)},Te=function(e){setTimeout((function(){var t=document.querySelectorAll(".has-error,.feedback-box-error:not(.global-feedback)")[0],n=De(t);n&&!O(n)?(!0===e&&w(n.id),setTimeout((function(){return n.focus()}),500)):Se(e)}),100)},Se=function(e){return Ve(".global-feedback.feedback-box-error",e)},Ve=function(e,t){setTimeout((function(){var n=document.querySelectorAll(e||".feedback-box")[0];if(n){t&&w(n.getAttribute("id"));var i=n.querySelector(".feedback-focusable");null!=i&&setTimeout((function(){return i.focus()}),500)}}),100)},Pe=function(e){function t(t,n){var i=e.call(this,t)||this;return i.cdr=t,i.renderer=n,i.visualizzaSidebarInferiore=!0,i.toggle=new c.Observable,i.logPrefix="[inail-navigazione-secondaria]",i}return P(t,e),t.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t)},t.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.push(this.toggle.subscribe((function(){t.renderer.addClass(t.navigazionesecondaria.nativeElement,"opened")}))),this.detectChange&&this.push(this.detectChange.subscribe((function(){return t.cdr.detectChanges()})))},t.prototype.close=function(){this.renderer.removeClass(this.navigazionesecondaria.nativeElement,"opened")},t.prototype.ngAfterViewInit=function(){var e=this;this.emitDebug("ngAfterViewInit"),this.emitDebug("sidebar inferiore:"),this.emitDebug(this.sidebarInferiore),setTimeout((function(){e.visualizzaSidebarInferiore=e.sidebarInferiore.nativeElement.childElementCount>0,e.detach()}))},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t}(S);Pe.decorators=[{type:t.Component,args:[{selector:"inail-navigazione-secondaria",template:'<nav id="navigazionesecondaria"\n #navigazionesecondaria\n class="col-xs-12 col-sm-4 col-lg-3 slider-menu filtro">\n <div class="box-menu-contestuale servizi-online-secondo-livello">\n <button id="close-slider-menu"\n (click)="close()"\n class="pull-right"\n aria-label="Chiude il menu laterale"\n aria-expanded="true"\n aria-controls="navigazionesecondaria">\n <span class="fa fa-close"></span>\n </button>\n <section id="sidebar-superiore">\n <ng-content select="[sidebar-superiore]"></ng-content>\n </section>\n <section id="sidebar-inferiore"\n #sidebarInferiore\n *ngIf="visualizzaSidebarInferiore">\n <ng-content select="[sidebar-inferiore]"></ng-content>\n </section>\n </div>\n</nav>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:["@media (max-width:991.98px){#navigazionesecondaria{left:-400px;display:block;transition-property:left;transition-duration:.5s}#navigazionesecondaria.opened.slider-menu{left:0}}"]}]}],Pe.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.Renderer2}]},Pe.propDecorators={navigazionesecondaria:[{type:t.ViewChild,args:["navigazionesecondaria"]}],sidebarInferiore:[{type:t.ViewChild,args:["sidebarInferiore"]}],toggle:[{type:t.Input}]};var Le=function(e){function t(t,n){var i=e.call(this,n)||this;return i.router=t,i.cdr=n,i.logPrefix="[inail-breadcrumb]",i.detach(),i}return P(t,e),t.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),t.currentPage&&this.buildBreadCrumb(t.currentPage.currentValue),this.cdr.detectChanges()},t.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.detectChange&&this.push(this.detectChange.subscribe((function(){return t.cdr.detectChanges()})))},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t.prototype.buildBreadCrumb=function(e){if(null!=e){var t=this.getGenealogicalTree(e);t&&(this.steps=t.map((function(e){return{label:e.title,url:e.url}})))}},t.prototype.getParentsList=function(e){var t;return e&&(t=this.getGenealogicalTree(e.parent)),t},t.prototype.getGenealogicalTree=function(e){var t;return e?(t=this.getGenealogicalTree(e.parent)).push(e):t=[],t},t.prototype.onClick=function(e){this.router.navigateByUrl(e)},t}(R);Le.decorators=[{type:t.Component,args:[{selector:"inail-breadcrumb",template:'<nav aria-label="Breadcrumb" [id]="id" class="inail-breadcrumb {{class}}">\n <ul *ngIf="steps"\n class="breadcrumb visible-sm-block visible-md-block visible-lg-block">\n <li *ngFor="let step of steps; last as isLast">\n <ng-container *ngIf="!isLast">\n <a *ngIf="step.url" [routerLink]="step.url" [innerHTML]=" step.label"></a>\n <a *ngIf="!step.url" href="javascript:void(0)" [innerHTML]=" step.label"></a>\n </ng-container>\n <span aria-current="page" *ngIf="isLast" [innerHTML]=" step.label"></span> \n </li>\n </ul>\n</nav>\n<debug-pre *ngIf="showState">[inail-breadcrumb]<br>\n <state-propertie [label]="\'logOnConsole\'" [propertie]="logOnConsole"></state-propertie>\n <state-propertie [label]="\'paginaCorrente\'" [propertie]="currentPage"></state-propertie>\n <state-propertie [label]="\'steps\'" [propertie]="steps"></state-propertie>\n</debug-pre>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:[".inail-breadcrumb ul.breadcrumb{padding-bottom:0}"]}]}],Le.ctorParameters=function(){return[{type:l.Router},{type:t.ChangeDetectorRef}]},Le.propDecorators={currentPage:[{type:t.Input}],steps:[{type:t.Input}]};var Ue=function(e){function n(n){var i=e.call(this,n)||this;return i.formElementCdr=n,i.required=!1,i.requiredSimbol="*",i.requiredSimbolPosition="left",i.disabled=!1,i.readonly=!1,i.hasError=!1,i.hasErrorChange=new t.EventEmitter,i.hiddenLabel=!1,i.errorChange=new t.EventEmitter,i.enterUp=new t.EventEmitter,i.popover=!1,i.getLabel=function(){return(i.required&&"left"===i.requiredSimbolPosition?i.requiredSimbol+" ":"")+i.label+(i.required&&"right"===i.requiredSimbolPosition?" "+i.requiredSimbol:"")},i.isThereError=function(){return i.hasError||d(i.error)},i.showError=function(){return i.isThereError()&&d(i.error)},i.getAriaDescribedBy=function(){return i.showError()||d(i.description)?i.id+"-description":void 0},i.showPopover=function(){return!0===i.popover},i}return P(n,e),n.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.title=this.getNotBlankValue(this.title),this.name=this.getNotBlankValue(this.name),this.labelTitle=this.getNotBlankValue(this.labelTitle),this.popoverButtonTitle=this.getNotBlankValue(this.popoverButtonTitle)},n.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this),this.logPrefix=this.logPrefix+"["+this.label+"]"},n.prototype.setDescError=function(e){this.error=e,this.formElementCdr.detectChanges()},n.prototype.setHasError=function(e){this.hasError=e,this.formElementCdr.detectChanges()},n.prototype.cleanError=function(){var e=this;setTimeout((function(){e.hasError&&(e.hasError=!1,e.hasErrorChange.emit(!1)),e.error&&(e.error=void 0,e.errorChange.emit(void 0)),e.formElementCdr.detectChanges()}))},n.prototype.registerOnChange=function(e){this.emitDebug("registerOnChange"),this.onChange=e},n.prototype.registerOnTouched=function(e){this.emitDebug("registerOnTouched"),this.onTouched=e},n.prototype.setDisabledState=function(e){this.emitDebug("setDisabledState: "+e),this.disabled=e,this.formElementCdr.detectChanges()},n.prototype.onBlur=function(){this.onTouched&&this.onTouched()},n}(F);Ue.decorators=[{type:t.Component,args:[{selector:"inail-form-element",template:"",changeDetection:T,encapsulation:t.ViewEncapsulation.None}]}],Ue.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},Ue.propDecorators={label:[{type:t.Input}],title:[{type:t.Input}],name:[{type:t.Input}],labelTitle:[{type:t.Input}],labelClass:[{type:t.Input}],inputClass:[{type:t.Input}],required:[{type:t.Input}],requiredSimbol:[{type:t.Input}],requiredSimbolPosition:[{type:t.Input}],disabled:[{type:t.Input}],readonly:[{type:t.Input}],hasError:[{type:t.Input}],hasErrorChange:[{type:t.Output}],hiddenLabel:[{type:t.Input}],error:[{type:t.Input}],description:[{type:t.Input}],errorChange:[{type:t.Output}],enterUp:[{type:t.Output}],focus:[{type:t.Input}],popover:[{type:t.Input}],popoverButtonIcon:[{type:t.Input}],popoverButtonTitle:[{type:t.Input}],popoverHeader:[{type:t.Input}],popoverContent:[{type:t.Input}]};var Ae=function(e){return d(e)&&new RegExp(/^[0-3][0-9][\/][0-1][0-9][\/][1-9][0-9]{3}$/).test(e)},Re=function(e){return d(e)&&new RegExp(/^[1-9][0-9]{3}-[0-1][0-9]-[0-3][0-9](T[0-9]{2}:[0-9]{2}(:[0-9]{2}(\.[0-9]{2})?)?(([+-][0-9]{2}:[0-9]{2})|(Z)))?$/).test(e)},Fe=function(e){return Ae(e)||Re(e)},Ne=function(e){return Be(e,"IT")},Me=function(e){return Be(e,"ISO8061")},Be=function(e,t){return He(je(e),t)},He=function(e,t){var n=void 0;if(e&&!_e(e))switch(t){default:case"IT":n=qe(e.getDate())+"/"+qe(e.getMonth()+1)+"/"+e.getFullYear();break;case"ISO8061":n=e.getFullYear()+"-"+qe(e.getMonth()+1)+"-"+qe(e.getDate())}return n},je=function(e){var t=null;if(e){if(Ae(e)){var n=e.split("/");e=n[1]+"/"+n[0]+"/"+n[2]}t=new Date(e)}return t},_e=function(e){return e&&"Invalid Date"===e.toString()},qe=function(e){return e<10?"0"+e:""+e},$e=function(e){function n(n,i){var a=e.call(this,n)||this;return a.cdr=n,a.datePipe=i,a.isDate=!1,a.valueChange=new t.EventEmitter,a.logPrefix="[inail-input-text]",a.detach(),a}return P(n,e),n.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.maxlength=this.getNotBlankValue(this.maxlength),this.placeholder=this.getNotBlankValue(this.placeholder),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.emitDebug("@ViewChild('formControl')"),this.emitDebug(this.formControlElement),this.focus&&this.push(this.focus.subscribe((function(e){t.emitDebug("Catch focus!"),z(t.formControlElement.nativeElement,e)})))},n.prototype.ngAfterViewInit=function(){},Object.defineProperty(n.prototype,"value",{get:function(){return this.isDate&&Fe(this.inputValue)?this.datePipe.transform(this.inputValue,"dd/MM/yyyy"):this.inputValue},set:function(e){this.emitDebug("@Input set value: "+this.inputValue+" -> "+e),this.setValue(e)},enumerable:!1,configurable:!0}),n.prototype.writeValue=function(e){this.emitDebug("writeValue: "+e),this.setValue(e)},n.prototype.setValue=function(e){this.emitDebug("setValue: "+e),this.inputValue!=e&&(this.emitDebug("update value: "+this.inputValue+" -> "+e),this.inputValue=e,this.cdr.detectChanges(),this.emitDebug("this.valueChange.emit("+e+")"),this.valueChange.emit(e),this.cleanError(),this.onChange&&this.onChange(e))},n.prototype.onPaste=function(e){!0===this.preventPasting&&e.preventDefault()},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n}(Ue);$e.decorators=[{type:t.Component,args:[{selector:"inail-input-text",template:'<div class="form-group {{getResponsiveClass()}} noPaddingLeft {{class}} inail-input-text"\n [ngClass]="{\'has-error\': isThereError()}">\n <label *ngIf="label"\n class="control-label {{labelClass}}"\n [ngClass]="{\'sr-only\': hiddenLabel}"\n [attr.title]="labelTitle"\n [for]="id"\n [innerHTML]="getLabel()"></label>\n <span *ngIf="showPopover()"\n [style.padding-left.px]="5">\n <inail-popover [iconClass]="popoverButtonIcon"\n [buttonTitle]="popoverButtonTitle"\n [header]="popoverHeader"\n [content]="popoverContent">\n </inail-popover>\n </span>\n <input #formControl\n type="text"\n [id]="id"\n class="form-control {{inputClass}}"\n [ngClass]="{\'disabled\': disabled}"\n [attr.name]="name"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.placeholder]="placeholder"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="isThereError() === true ? true : undefined"\n [attr.aria-describedBy]="getAriaDescribedBy()"\n (blur)="onBlur()"\n (paste)="onPaste($event)"\n (keyup.enter)="enterUp.emit()"\n [(ngModel)]="value">\n <div *ngIf="showError()" [id]="id+\'-description\'">\n <div class="msg msg-errore">\n <strong [innerHTML]="\'ERRORE: \'+this.error"></strong>\n </div>\n <div *ngIf="description" [innerHTML]="this.description"></div>\n </div>\n <div *ngIf="description && !showError()"\n [id]="id+\'-description\'"\n [innerHTML]="this.description">\n </div>\n <debug-pre *ngIf="showState">\n <state-propertie [label]="\'id\'" [propertie]="id"></state-propertie>\n <state-propertie [label]="\'label\'" [propertie]="label"></state-propertie>\n <state-propertie [label]="\'inputValue\'" [propertie]="inputValue"></state-propertie>\n <state-propertie [label]="\'maxlength\'" [propertie]="maxlength" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'isDate\'" [propertie]="isDate" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'placeholder\'" [propertie]="placeholder" [hideIfNull]="false"></state-propertie>\n <inail-form-element-state-properties [formElement]="this"></inail-form-element-state-properties>\n </debug-pre>\n</div>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return $e})),multi:!0}],styles:[""]}]}],$e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:a.DatePipe}]},$e.propDecorators={formControlElement:[{type:t.ViewChild,args:["formControl",{static:!0}]}],placeholder:[{type:t.Input}],maxlength:[{type:t.Input}],isDate:[{type:t.Input}],valueChange:[{type:t.Output}],preventPasting:[{type:t.Input}],value:[{type:t.Input}]};var Ge=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.selectedValue="",i.options=[],i.blankOption=!0,i.blankOptionText="- seleziona opzione -",i.blankOptionDisabled=!1,i.select=new t.EventEmitter,i.valueChange=new t.EventEmitter,i.logPrefix="[inail-select]",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(t){var n,i;if(e.prototype.ngOnChanges.call(this,t),((null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.currentValue)||(null===(i=null==t?void 0:t.sort)||void 0===i?void 0:i.currentValue))&&this.sort){var a="ASC"==this.sort.toUpperCase()?1:"DESC"==this.sort.toUpperCase()?-1:0;0!=a&&null!=this.options&&this.options.sort((function(e,t){return e.label<t.label?-a:e.label>t.label?a:0}))}this.cdr.detectChanges()},n.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.emitDebug("@ViewChild('formControl')"),this.emitDebug(this.formControlElement),this.focus&&this.push(this.focus.subscribe((function(e){t.emitDebug("Catch focus!"),z(t.formControlElement.nativeElement,e)})))},Object.defineProperty(n.prototype,"value",{get:function(){return this.selectedValue},set:function(e){this.emitDebug("@Input set value: "+this.selectedValue+" -> "+e),this.setValue(e)},enumerable:!1,configurable:!0}),n.prototype.writeValue=function(e){this.emitDebug("writeValue: "+e),this.setValue(e)},n.prototype.setValue=function(e){var t=this;this.emitDebug("setValue: "+e),this.selectedValue!=e&&setTimeout((function(){t.emitDebug("update value: "+t.selectedValue+" -> "+e),t.selectedValue=e||"",t.cdr.detectChanges(),t.emitDebug("this.valueChange.emit("+t.selectedValue+")"),t.valueChange.emit(t.selectedValue),t.select.emit(t.options.find((function(e){return(null==e?void 0:e.value)===t.selectedValue}))),t.cleanError(),t.onChange&&t.onChange(t.selectedValue)}))},n.prototype.ngAfterViewInit=function(){},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n}(Ue);Ge.decorators=[{type:t.Component,args:[{selector:"inail-select",template:'<div class="form-group {{getResponsiveClass()}} {{class}} noPaddingLeft inail-select"\n [ngClass]="{\'has-error\': isThereError()}">\n <label [attr.for]="id"\n [attr.title]="labelTitle"\n class="label-select noPaddingLeft {{labelClass}}">\n <span *ngIf="label"\n [ngClass]="{\'sr-only\': hiddenLabel}"\n [innerHTML]="getLabel()">\n </span>\n </label>\n <span *ngIf="showPopover()"\n [style.padding-left.px]="5">\n <inail-popover [iconClass]="popoverButtonIcon"\n [buttonTitle]="popoverButtonTitle"\n [header]="popoverHeader"\n [content]="popoverContent">\n </inail-popover>\n </span>\n <select #formControl\n class="form-control {{inputClass}}"\n [attr.id]="id"\n [attr.title]="title"\n [attr.name]="name"\n [disabled]="disabled"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="isThereError() === true ? true : undefined"\n [attr.aria-describedBy]="getAriaDescribedBy()"\n (blur)="onBlur()"\n (keyup.enter)="enterUp.emit()"\n [(ngModel)]=\'value\'>\n <option *ngIf="blankOption"\n value=""\n [disabled]="blankOptionDisabled"\n [innerHTML]="this.blankOptionText">\n </option>\n <ng-container *ngIf="options">\n <option *ngFor="let option of options"\n [ngValue]="option?.value"\n [disabled]="option?.disabled"\n [innerHTML]="option?.label">\n </option>\n </ng-container>\n </select>\n <div *ngIf="showError()" [id]="id+\'-description\'">\n <div class="msg msg-errore">\n <strong [innerHTML]="\'ERRORE: \'+this.error"></strong>\n </div>\n <div *ngIf="description" [innerHTML]="this.description"></div>\n </div>\n <div *ngIf="description && !showError()"\n [id]="id+\'-description\'"\n [innerHTML]="this.description">\n </div>\n <debug-pre *ngIf="showState">\n <state-propertie [label]="\'id\'" [propertie]="id"></state-propertie>\n <state-propertie [label]="\'label\'" [propertie]="label"></state-propertie>\n <state-propertie [label]="\'selectedValue\'" [propertie]="selectedValue"></state-propertie>\n <state-propertie [label]="\'blankOption\'" [propertie]="blankOption"></state-propertie>\n <state-propertie [label]="\'blankOptionText\'" [propertie]="blankOptionText"></state-propertie>\n <state-propertie [label]="\'sort\'" [propertie]="sort"></state-propertie>\n \x3c!-- TODO --\x3e\n <inail-form-element-state-properties [formElement]="this"></inail-form-element-state-properties>\n </debug-pre>\n</div>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return Ge})),multi:!0}],styles:[".panel .panel-body .inail-select.form-group select{min-width:auto!important}"]}]}],Ge.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},Ge.propDecorators={formControlElement:[{type:t.ViewChild,args:["formControl"]}],options:[{type:t.Input}],blankOption:[{type:t.Input}],blankOptionText:[{type:t.Input}],blankOptionDisabled:[{type:t.Input}],sort:[{type:t.Input}],select:[{type:t.Output}],valueChange:[{type:t.Output}],value:[{type:t.Input}]};var We=function(e){function t(t){var n=e.call(this,t)||this;return n.cdr=t,n.logPrefix="[inail-form-grey]",n.detach(),n}return P(t,e),t.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.cdr.detectChanges()},t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t}(R);We.decorators=[{type:t.Component,args:[{selector:"inail-form-grey",template:'<div [id]=\'id\'\n [ngClass]="class"\n class="form-grey content row">\n <h3 *ngIf="title" class="title-modulo" [innerHTML]="title"></h3>\n <div class="col-xs-12">\n <ng-content></ng-content>\n </div>\n</div>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],We.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},We.propDecorators={title:[{type:t.Input}]};var Je=function(e){function t(t){var n=e.call(this,t)||this;return n.cdr=t,n.autoCatchFocus=!0,n.logPrefix="[inail-page-title]",n.detach(),n}return P(t,e),t.prototype.ngOnChanges=function(t){var n;e.prototype.ngOnChanges.call(this,t),null==(null===(n=null==t?void 0:t.titolo)||void 0===n?void 0:n.currentValue)||t.titolo.isFirstChange()||this.setFocus(),this.cdr.detectChanges()},t.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.logPrefix="[inail-page-title]["+this.title+"]",this.cdr.detectChanges(),this.focus&&this.push(this.focus.subscribe((function(e){t.emitDebug("Catch focus!"),z(t.divTitolo.nativeElement,e),t.emitDebug("Focus impostato su elemento titolo: "),t.emitDebug(t.divTitolo.nativeElement)})))},t.prototype.ngAfterViewInit=function(){this.setFocus()},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t.prototype.setFocus=function(){var e=this;!this.autoCatchFocus||null!=document.activeElement&&"logo-inail-header"==document.activeElement.id||setTimeout((function(){e.divTitolo.nativeElement.focus(),e.emitDebug("Focus impostato su elemento titolo: "),e.emitDebug(e.divTitolo.nativeElement)}),500)},t}(R);Je.decorators=[{type:t.Component,args:[{selector:"inail-page-title",template:'<div tabindex="0"\n title="Titolo pagina"\n class="inail-page-title"\n [ngClass]="class"\n [id]="id"\n #divTitolo>\n <span *ngIf="spanTitle"\n class="span-title"\n [ngClass]="spanTitleClass"\n [innerHTML]="spanTitle"></span>\n <h2 *ngIf="title"\n [ngClass]="titleClass"\n [innerHTML]="title">\n </h2>\n <h2 class="{{class}}"\n *ngIf="!title">\n <ng-content></ng-content>\n </h2>\n</div>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],Je.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},Je.propDecorators={title:[{type:t.Input}],titleClass:[{type:t.Input}],spanTitle:[{type:t.Input}],spanTitleClass:[{type:t.Input}],autoCatchFocus:[{type:t.Input}],focus:[{type:t.Input}],divTitolo:[{type:t.ViewChild,args:["divTitolo"]}]};var Ye=function(e){function t(t){var n=e.call(this,t)||this;return n.cdr=t,n.errorType="ERROR",n.successType="SUCCESS",n.type="SUCCESS",n.showIcon=!0,n.autoCatchFocus=!1,n.scrollToFocus=!0,n.labelFeedback=!1,n.hasContent=function(){var e,t;return d(null===(t=null===(e=n.feedbackContent)||void 0===e?void 0:e.nativeElement)||void 0===t?void 0:t.textContent)},n.logPrefix="[inail-feedback]",n.detach(),n}return P(t,e),t.prototype.ngOnChanges=function(t){var n,i,a;e.prototype.ngOnChanges.call(this,t),(null===(n=null==t?void 0:t.details)||void 0===n?void 0:n.currentValue)&&(this.details=t.details.currentValue.filter((function(e){return null!=e}))),(null===(i=null==t?void 0:t.message)||void 0===i?void 0:i.currentValue)&&this.autoCatchFocus&&!(null===(a=null==t?void 0:t.message)||void 0===a?void 0:a.isFirstChange())&&this.setFocus(this.scrollToFocus),this.cdr.detectChanges(),this.cdr.detectChanges()},t.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.focus&&this.push(this.focus.subscribe((function(e){return t.setFocus(null!=e?e:t.scrollToFocus)})))},t.prototype.ngAfterViewInit=function(){this.autoCatchFocus&&this.setFocus(this.scrollToFocus),this.cdr.detectChanges(),this.cdr.detectChanges()},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t.prototype.setFocus=function(e){this.emitDebug("Catch focus!"),z(this.mainMessage.nativeElement,e)},t}(R);Ye.decorators=[{type:t.Component,args:[{selector:"inail-feedback",template:'<div *ngIf="!labelFeedback"\n [id]=\'id\'\n class="row feedback-box inail-feedback {{class}}"\n [ngClass]="{\'feedback-box-error\': type==errorType, \'global-feedback\': globalFeedback === true}">\n <div>\n <div class="feedback-header"\n [ngClass]="{\'feedback-header-error\': type==errorType}">\n <span>\n <span class="fa white-check"\n [ngClass]="{\'fa-times\': showIcon && type==errorType,\n \'fa-check\':showIcon && (type==successType || !type)}"></span>\n <span tabindex="0" [id]="id+\'-message\'" class="feedback-focusable" [innerHTML]="message" #mainMessage></span>\n </span>\n </div>\n <div [hidden]="!hasContent()"\n class="feedback-content"\n [ngClass]="contentClass"\n #feedbackContent>\n <p *ngIf="contentTitle">\n <strong>{{contentTitle}}</strong>\n </p>\n <ng-container *ngIf="detailsAsList || detailsAsOrderedList">\n <ol *ngIf="detailsAsOrderedList">\n <li *ngFor="let dettaglio of details" [innerHTML]="dettaglio"></li>\n </ol>\n <ul *ngIf="detailsAsList && !detailsAsOrderedList">\n <li *ngFor="let dettaglio of details" [innerHTML]="dettaglio"></li>\n </ul>\n </ng-container>\n <ng-container *ngIf="!(detailsAsList || detailsAsOrderedList)">\n <p *ngFor="let dettaglio of details" [innerHTML]="dettaglio"></p>\n </ng-container>\n <p><ng-content></ng-content></p>\n </div>\n </div>\n</div>\n<span *ngIf="labelFeedback"\n [id]=\'id\'\n class="inail-feedback col-xs-12 form-group {{class}}"\n [ngClass]="{\'feedback-box-error\': type==errorType, \'global-feedback\': globalFeedback === true}">\n <span *ngIf="showIcon"\n class="green-check fa fa-check-circle"\n [ngClass]="{\'green-check fa-check-circle\': type==successType || !type, \'red-check fa-times-circle\': type==errorType}"></span>\n <strong tabindex="0"\n [id]="id+\'-message\'"\n class="labelFeedback feedback-focusable"\n [innerHTML]="message" #mainMessage>\n </strong>\n</span>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:[".inail-feedback.feedback-box{margin-bottom:15px!important}.inail-feedback .feedback-content{padding-top:30px!important}.inail-feedback .feedback-content p{padding-top:0!important}.inail-feedback .feedback-header .feedback-focusable:focus{outline:1px dotted #fff!important}.inail-feedback .fa.fa-times-circle{color:#c9291b;margin-right:5px}"]}]}],Ye.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},Ye.propDecorators={mainMessage:[{type:t.ViewChild,args:["mainMessage"]}],message:[{type:t.Input}],type:[{type:t.Input}],globalFeedback:[{type:t.Input}],showIcon:[{type:t.Input}],contentTitle:[{type:t.Input}],contentClass:[{type:t.Input}],details:[{type:t.Input}],detailsAsList:[{type:t.Input}],detailsAsOrderedList:[{type:t.Input}],focus:[{type:t.Input}],autoCatchFocus:[{type:t.Input}],scrollToFocus:[{type:t.Input}],labelFeedback:[{type:t.Input}],feedbackContent:[{type:t.ViewChild,args:["feedbackContent"]}]};var Ze=function(e,t,n,i){this.message=t,this.type=e,n&&(this.details=[].concat(n),this.contentTitle=i)},Xe=function(e){function n(n,i){var a=e.call(this,n)||this;return a.cdr=n,a.renderer=i,a.ariaLabelOpened="Riduce l'accordion",a.ariaLabelClosed="Espande l'accordion",a.requiredSimbol="*",a.requiredSimbolPosition="left",a.ontoggle=new t.EventEmitter,a.getTitle=function(){return(a.required&&"left"===a.requiredSimbolPosition?a.requiredSimbol+" ":"")+a.title+(a.required&&"right"===a.requiredSimbolPosition?" "+a.requiredSimbol:"")},a.panelBodyHeight$=new c.BehaviorSubject(void 0),a.emitMenuHeight=function(){},a.logPrefix="[inail-accordion]",a.detach(),a}return P(n,e),n.prototype.ngOnChanges=function(t){var n=this;e.prototype.ngOnChanges.call(this,t),this.focus&&this.push(this.focus.subscribe((function(e){n.emitDebug("Catch focus! scroll: "+e),z(n.accordionTitle.nativeElement,e)}))),this.toggle&&this.push(this.toggle.subscribe((function(e){return n.onToggle(e)}))),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this),this.open=!this.collapsed},n.prototype.onToggle=function(e){this.emitDebug(this.id+" toggle: "+e),this.open=null!=e?e:!this.open,this.emitMenuHeight(),this.cdr.detectChanges(),this.ontoggle.emit(this.open)},Object.defineProperty(n.prototype,"ariaLabelText",{get:function(){return this.ariaLabel||(1==this.open?this.ariaLabelOpened:this.ariaLabelClosed)},enumerable:!1,configurable:!0}),n.prototype.ngAfterViewInit=function(){this.cdr.detectChanges()},n}(R);Xe.decorators=[{type:t.Component,args:[{selector:"inail-accordion",template:'<div class="inail-accordion row panel panel-default form-accordion noPadding"\n [id]="id"\n [ngClass]="class">\n <div class="row panel-heading heading-form-grey"\n role="heading"\n (click)="onToggle()"\n (keyup.enter)="onToggle()"\n (keyup.space)="onToggle()"\n (keydown.space)="false">\n <label #accordionTitle\n [id]="id+\'-title\'"\n class="search-title"\n tabindex="0"\n [ngClass]="{\'has-error\': hasError}"\n [innerHTML]="getTitle() | uppercase"></label>\n <span class="fa {{open ? \'fa-chevron-up\' : \'fa-chevron-down\'}}"\n tabindex="0"\n role="button"\n [attr.aria-label]="ariaLabelText"\n [attr.aria-controls]="id + \'-body\'"\n [attr.aria-expanded]="open"> </span>\n </div>\n <div [id]="id + \'-body\'"\n #panelBody\n class="row panel-body body-form-grey"\n [ngStyle]="{\'height.px\': (panelBodyHeight$ | async)}"\n [ngClass]="{\'closed\': !open}"\n role="region">\n <div class="col-md-12 col-lg-12">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n<debug-pre *ngIf="showState">[inail-accordion]<br>\n <state-propertie [label]="\'id\'" [propertie]="id"></state-propertie>\n <state-propertie [label]="\'titolo\'" [propertie]="title"></state-propertie>\n <state-propertie [label]="\'open\'" [propertie]="open"></state-propertie>\n</debug-pre>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:[".inail-accordion .panel-heading{cursor:pointer}.inail-accordion .search-title.has-error{color:#c9291b!important;font-weight:700}.inail-accordion .panel-body{overflow:hidden;transition:height 3s ease-out}.inail-accordion .panel-body.closed{transition:height 3s ease-out;display:none}"]}]}],Xe.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.Renderer2}]},Xe.propDecorators={title:[{type:t.Input}],ariaLabel:[{type:t.Input}],ariaLabelOpened:[{type:t.Input}],ariaLabelClosed:[{type:t.Input}],collapsed:[{type:t.Input}],hasError:[{type:t.Input}],required:[{type:t.Input}],requiredSimbol:[{type:t.Input}],requiredSimbolPosition:[{type:t.Input}],toggle:[{type:t.Input}],focus:[{type:t.Input}],ontoggle:[{type:t.Output}],accordionTitle:[{type:t.ViewChild,args:["accordionTitle"]}],panelBody:[{type:t.ViewChild,args:["panelBody"]}]};var Qe=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.requiredSimbol="*",i.requiredSimbolPosition="left",i.activeChange=new t.EventEmitter,i.onChange=new t.EventEmitter,i.doDetechChange=function(){return i.cdr.detectChanges()},i.getTitle=function(){return(i.required&&"left"===i.requiredSimbolPosition?i.requiredSimbol+" ":"")+i.title+(i.required&&"right"===i.requiredSimbolPosition?" "+i.requiredSimbol:"")},i.logPrefix="[inail-tab-pane]",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),(null==t?void 0:t.active)&&this.activeChange.emit(t.active.currentValue),this.cdr.detectChanges(),this.onChange.emit()},n.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},n.prototype.ngAfterViewInit=function(){this.cdr.detectChanges()},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n}(R);Qe.decorators=[{type:t.Component,args:[{selector:"inail-tab-pane",template:'<div [hidden]="!active"\n [id]=\'id\'\n [ngClass]="class"\n class="tab-pane inail-tab-pane">\n <div class="form-group form-grey row">\n <div class="col-md-12 col-lg-12">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:[".inail-tab-pane>div{margin-top:0!important}"]}]}],Qe.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},Qe.propDecorators={title:[{type:t.Input}],active:[{type:t.Input}],required:[{type:t.Input}],requiredSimbol:[{type:t.Input}],requiredSimbolPosition:[{type:t.Input}],activeChange:[{type:t.Output}]};var Ke=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.selected=new t.EventEmitter,i.isActive=function(e){return i.panes.some((function(t){return t.id==e&&t.active}))},i.getPaneTitle=function(e){return e.getTitle()},i.detectPanesChange=function(){var e;return null===(e=i.panes)||void 0===e?void 0:e.forEach((function(e){return null==e?void 0:e.doDetechChange()}))},i.logPrefix="[inail-tab-group]",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.selectTab&&this.push(this.selectTab.subscribe((function(e){return t.tabOnClick(e)})))},n.prototype.ngAfterViewInit=function(){var e=this;this.panes&&(this.panes.forEach((function(t){return e.push(t.onChange.subscribe((function(){return e.cdr.detectChanges()})))})),this.panes.some((function(e){return e.active}))||setTimeout((function(){var t=e.panes.toArray()[0];t.active=!0,t.doDetechChange(),e.cdr.detectChanges()})),this.cdr.detectChanges())},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n.prototype.tabOnClick=function(e){this.selected.emit(e),this.panes.forEach((function(t){var n=t.id==e;null!=t.active&&n==t.active||(t.active=n,t.doDetechChange(),t.activeChange.emit(t.active))})),this.cdr.detectChanges()},n}(R);Ke.decorators=[{type:t.Component,args:[{selector:"inail-tab-group",template:'<div [id]=\'id\'\n [ngClass]="class"\n class="tab-portale inail-tab-group">\n <ul class="nav nav-tabs default-tabs" role="tablist" *ngIf="panes">\n <li *ngFor="let pane of panes.toArray()"\n [ngClass]="{\'active\' : isActive(pane.id)}">\n <a href="javascript:void(0)"\n role="button"\n [attr.aria-controls]="pane.id"\n [attr.aria-label]="\'Visualizza il tab: \'+pane.title"\n (keyup.space)="tabOnClick(pane.id)"\n (click)="tabOnClick(pane.id)">\n <span class="labelTabTitle" [innerHTML]="getPaneTitle(pane)"></span>\n </a>\n </li>\n </ul>\n <div class="tab-content">\n <ng-content></ng-content>\n </div>\n</div>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:[".inail-tab-group .nav.nav-tabs.default-tabs a:focus{outline:1px dotted #fff!important}"]}]}],Ke.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},Ke.propDecorators={panes:[{type:t.ContentChildren,args:[Qe]}],selectTab:[{type:t.Input}],selected:[{type:t.Output}]};var et=function(e){function t(t){var n=e.call(this,t)||this;return n.cdr=t,n.logPrefix="[inail-popover]",n.detach(),n}return P(t,e),t.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.cdr.detectChanges()},t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this),null==this.iconClass&&(this.iconClass="fa-question-circle"),this.cdr.detectChanges()},t.prototype.onClick=function(e){if(this.show=null!=e?e:!this.show,this.cdr.detectChanges(),this.show){var t=this.openButton.nativeElement.getBoundingClientRect().bottom,n=this.popover.nativeElement.getBoundingClientRect().bottom,i=this.popover.nativeElement.getBoundingClientRect().height/2;this.popoverLeft=this.openButton.nativeElement.getBoundingClientRect().left-this.popover.nativeElement.getBoundingClientRect().left+26,this.popoverTop=t-n+i-9}else this.popoverLeft=void 0,this.popoverTop=void 0;this.cdr.detectChanges()},t.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){return e.cdr.detectChanges()}))},t}(R);et.decorators=[{type:t.Component,args:[{selector:"inail-popover",template:'<em class="fa fa-lg"\n [id]="id+\'-button\'"\n [ngClass]="iconClass"\n role="button"\n #openButton\n tabindex="0"\n [attr.title]="buttonTitle"\n (focusout)="onClick(false)"\n (keyup.enter)="onClick()"\n (click)="onClick()"\n [attr.aria-describedby]="show ? id : undefined">\n</em>\n<div #popover\n *ngIf="show"\n class="popover fade in right inail-popover {{class}}"\n [ngStyle]="{\'left.px\': popoverLeft, \'top.px\': popoverTop}"\n role="tooltip"\n [id]="id">\n <div class="arrow" style="top: 50%; position: absolute"></div>\n <h3 *ngIf="header" class="popover-title" [innerHTML]="header"></h3>\n <div *ngIf="content" class="popover-content" [innerHTML]="content"></div>\n</div>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:[".inail-popover{display:block;position:absolute}"]}]}],et.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},et.propDecorators={openButton:[{type:t.ViewChild,args:["openButton"]}],popover:[{type:t.ViewChild,args:["popover"]}],iconClass:[{type:t.Input}],buttonTitle:[{type:t.Input}],header:[{type:t.Input}],content:[{type:t.Input}]};var tt=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.valueChange=new t.EventEmitter,i.maxlength=300,i.rows=10,i.getCaratteriDisponibili=function(){return i.maxlength-(i.inputValue?i.inputValue.length:0)},i.isTextTooLong=function(){return i.inputValue&&i.inputValue.length>i.maxlength},i.isThereTextareaError=function(){return i.isThereError()||i.isTextTooLong()},i.showTextareaError=function(){return i.isThereTextareaError()&&d(i.getDescError())},i.getDescError=function(){return u(i.error)&&i.isTextTooLong()?"Il testo non può essere lungo di "+i.maxlength+" caratteri":i.error},i.logPrefix="[inail-textarea]",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.emitDebug("ngOnChanges:"),this.emitDebug(t),this.maxlength=this.getNotBlankValue(this.maxlength),this.placeholder=this.getNotBlankValue(this.placeholder),this.rows=this.getNotBlankValue(this.rows),this.cols=this.getNotBlankValue(this.cols),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.emitDebug("@ViewChild('formControl')"),this.emitDebug(this.formControlElement),this.focus&&this.push(this.focus.subscribe((function(e){t.emitDebug("Catch focus!"),z(t.formControlElement.nativeElement,e)})))},n.prototype.ngAfterViewInit=function(){},Object.defineProperty(n.prototype,"value",{get:function(){return this.inputValue},set:function(e){this.emitDebug("@Input set value: "+this.inputValue+" -> "+e),this.setValue(e)},enumerable:!1,configurable:!0}),n.prototype.writeValue=function(e){this.emitDebug("writeValue: "+e),this.setValue(e)},n.prototype.setValue=function(e){this.emitDebug("setValue: "+e),this.inputValue!=e&&(this.emitDebug("update value: "+this.inputValue+" -> "+e),this.inputValue=e,this.cdr.detectChanges(),this.emitDebug("this.valueChange.emit("+e+")"),this.valueChange.emit(e),this.cleanError(),this.onChange&&this.onChange(e))},n.prototype.onPaste=function(e){!0===this.preventPasting&&e.preventDefault()},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n}(Ue);tt.decorators=[{type:t.Component,args:[{selector:"inail-textarea",template:'<div class="form-group {{getResponsiveClass()}} inail-textarea noPaddingLeft {{class}}">\n <div class="col-md-12 noPadding"\n [ngClass]="{\'has-error\': isThereTextareaError()}">\n <label *ngIf="label"\n [ngClass]="{\'sr-only\': hiddenLabel}"\n class="control-label {{labelClass}}"\n [attr.title]="labelTitle"\n [for]="id"\n [innerHTML]="getLabel()">\n </label>\n <span *ngIf="showPopover()"\n [style.padding-left.px]="5">\n <inail-popover [iconClass]="popoverButtonIcon"\n [buttonTitle]="popoverButtonTitle"\n [header]="popoverHeader"\n [content]="popoverContent">\n </inail-popover>\n </span>\n <div *ngIf="!(disabled || readonly)" class="remainingChar pull-right"><strong>{{getCaratteriDisponibili()}}</strong> caratteri disponibili</div>\n <textarea #formControl\n [id]="id"\n class="form-control {{inputClass}}"\n [attr.name]="name"\n [attr.title]="title"\n [attr.maxlength]="maxlength"\n [attr.rows]="rows"\n [attr.cols]="cols"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.placeholder]="placeholder"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="isThereTextareaError() === true ? true : undefined"\n [attr.aria-describedBy]="getAriaDescribedBy()"\n (paste)="onPaste($event)"\n (blur)="onBlur()"\n (keyup.enter)="enterUp.emit()"\n [(ngModel)]="value">\n </textarea>\n <div *ngIf="showTextareaError()" [id]="id+\'-description\'">\n <div class="msg msg-errore">\n <strong [innerHTML]="\'ERRORE: \'+getDescError()"></strong>\n </div>\n <div *ngIf="description" [innerHTML]="description"></div>\n </div>\n <div *ngIf="description && !showTextareaError()"\n [id]="id+\'-description\'"\n [innerHTML]="description">\n </div>\n </div>\n <debug-pre *ngIf="showState">\n <state-propertie [label]="\'id\'" [propertie]="id"></state-propertie>\n <state-propertie [label]="\'label\'" [propertie]="label"></state-propertie>\n <state-propertie [label]="\'inputValue\'" [propertie]="inputValue"></state-propertie>\n <state-propertie [label]="\'maxlength\'" [propertie]="maxlength" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'rows\'" [propertie]="rows" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'cols\'" [propertie]="cols" [hideIfNull]="false"></state-propertie>\n <state-propertie [label]="\'placeholder\'" [propertie]="placeholder" [hideIfNull]="false"></state-propertie>\n <inail-form-element-state-properties [formElement]="this"></inail-form-element-state-properties>\n </debug-pre>\n</div>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return tt})),multi:!0}],styles:[""]}]}],tt.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},tt.propDecorators={formControlElement:[{type:t.ViewChild,args:["formControl",{static:!0}]}],placeholder:[{type:t.Input}],valueChange:[{type:t.Output}],maxlength:[{type:t.Input}],rows:[{type:t.Input}],cols:[{type:t.Input}],preventPasting:[{type:t.Input}],value:[{type:t.Input}]};var nt=function(e){return Ae(e)||Re(e)||at(e)},it=nt,at=function(e){return e&&"number"==typeof e},ot=at,rt=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.valueChange=new t.EventEmitter,i.isValidInputValue=function(){return u(i.visibleData)||Ae(i.visibleData)},i.isThereDataError=function(){return i.isThereError()||!i.isValidInputValue()},i.showDataError=function(){return i.isThereDataError()&&d(i.getDescError())},i.getDescError=function(){return u(i.error)&&!i.isValidInputValue()?"La data inserita non è valida":i.error},i.isEnabledDate=function(e){var t=He(e,"ISO8061");return i.isDataAbilitata(t)&&!i.isDataDisabilitata(t)},i.isDataAbilitata=function(e){return null==i.enabledDates||!i.enabledDates.length||i.enabledDates.some((function(t){return null!=i.match(e,t)}))},i.isDataDisabilitata=function(e){return null!=i.disabledDates&&i.disabledDates.some((function(t){return null!=i.match(e,t)}))},i.match=function(e,t){return null!=e&&e.match(new RegExp("^".concat(t).concat("$"),"i"))},i.logPrefix="[inail-input-date]",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),t.value&&!t.value.firstChange&&(this.hasError=!1,this.error=void 0),(t.options&&!t.options.firstChange||t.enabledDates&&!t.enabledDates.firstChange||t.disabledDates&&!t.disabledDates.firstChange)&&this.datepickerReinit(),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.emitDebug("@ViewChild('formControl')"),this.emitDebug(this.formControlElement),this.options||(this.options={autoclose:!0,format:"dd/mm/yyyy",weekStart:1,todayBtn:"linked",language:"it",todayHighlight:!0,orientation:"auto top",enableOnReadonly:!1}),this.focus&&this.push(this.focus.subscribe((function(e){t.emitDebug("Catch focus!"),z(t.formControlElement.nativeElement,e)}))),this.reinit&&this.push(this.reinit.subscribe((function(){t.emitDebug("Reinit!"),t.datepickerReinit()}))),this.cdr.detectChanges()},n.prototype.ngAfterViewInit=function(){var e,t=this;this.emitDebug("ngAfterViewInit"),this.emitDebug("nativeElement"),this.emitDebug(null===(e=this.formControlElement)||void 0===e?void 0:e.nativeElement),this.datepickerInit(),this.visibleData&&Fe(this.visibleData)&&this.setDatepickerDate(this.visibleData),setTimeout((function(){window.$(t.formControlElement.nativeElement).on("change",(function(){t.emitDebug("onChange"),t.emitDebug("current visibleData: "+t.visibleData);var e=window.$(t.formControlElement.nativeElement)[0];t.emitDebug("nativeElement value: "+(null==e?void 0:e.value)),null!=e&&e.value!=t.visibleData&&(t.emitDebug("update value: "+t.visibleData+" -> "+e.value),t.value=e.value),t.cdr.detectChanges()}))})),this.cdr.detectChanges()},n.prototype.datepickerInit=function(){var e,t;((null===(e=this.disabledDates)||void 0===e?void 0:e.length)||(null===(t=this.enabledDates)||void 0===t?void 0:t.length))&&(this.options.beforeShowDay=this.isEnabledDate),window.$(this.formControlElement.nativeElement).datepicker(this.options)},n.prototype.datepickerDestroy=function(){window.$(this.formControlElement.nativeElement).datepicker("remove")},n.prototype.datepickerReinit=function(){this.datepickerDestroy(),this.datepickerInit()},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},Object.defineProperty(n.prototype,"value",{set:function(e){this.emitDebug("@Input set value: "+this.visibleData+" -> "+e),this.setValue(e)},enumerable:!1,configurable:!0}),n.prototype.writeValue=function(e){this.emitDebug("writeValue: "+e),this.setValue(e)},n.prototype.setValue=function(e){var t=this;this.emitDebug("setValue: "+e),this.emitDebug("current visibleData: "+this.visibleData),this.emitDebug("update visibleData: "+this.visibleData+" -> "+e);var n=nt(e);d(e)?this.visibleData=n?Ne(e):e:this.visibleData=void 0,this.cdr.detectChanges(),setTimeout((function(){var i=n?Me(t.visibleData):t.visibleData;t.emitDebug("this.valueChange.emit("+e+")"),t.valueChange.emit(i),n&&t.setDatepickerDate(t.visibleData)})),this.cleanError(),this.cdr.detectChanges(),this.onChange&&this.onChange(e),this.cdr.detectChanges()},n.prototype.onChangeHandler=function(e){this.value=e.target.value},n.prototype.setDatepickerDate=function(e){window.$(this.formControlElement.nativeElement).datepicker("setDate",e)},n}(Ue);rt.decorators=[{type:t.Component,args:[{selector:"inail-input-date",template:'<div class="date datePicker {{getResponsiveClass()}} noPaddingLeft {{class}}"\n [ngClass]="{\'has-error\': isThereDataError()}">\n <div class="form-group">\n <div class="input-relative">\n <label *ngIf="label"\n [ngClass]="{\'sr-only\': hiddenLabel}"\n class="control-label {{labelClass}}"\n title="{{labelTitle}}"\n for="{{id}}" [innerHTML]="getLabel()"></label>\n <span *ngIf="showPopover()"\n [style.padding-left.px]="5">\n <inail-popover [iconClass]="popoverButtonIcon"\n [buttonTitle]="popoverButtonTitle"\n [header]="popoverHeader"\n [content]="popoverContent">\n </inail-popover>\n </span>\n <input id="{{id}}"\n #formControl\n class="form-control"\n [ngClass]="inputClass"\n title="GG/MM/AAAA"\n placeholder="GG/MM/AAAA"\n type="text"\n (change)="onChangeHandler($event)"\n (paste)="onChangeHandler($event)"\n (keyup)="onChangeHandler($event)"\n [disabled]="this.disabled"\n [readonly]="this.readonly"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="isThereDataError() === true ? true : undefined"\n [attr.aria-describedBy]="getAriaDescribedBy()"\n (keyup.enter)="enterUp.emit()"\n [(ngModel)]="this.visibleData">\n <em class="fa fa-calendar"\n title="Calendario"\n (click)="formControl.focus()"></em>\n </div>\n <div *ngIf="showDataError()" [id]="id+\'-description\'">\n <div class="msg msg-errore">\n <strong [innerHTML]="\'ERRORE: \'+getDescError()"></strong>\n </div>\n <div *ngIf="description" [innerHTML]="description"></div>\n </div>\n <div *ngIf="description && !showDataError()"\n [id]="id+\'-description\'"\n [innerHTML]="this.description">\n </div>\n </div>\n</div>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return rt})),multi:!0}],styles:[""]}]}],rt.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},rt.propDecorators={formControlElement:[{type:t.ViewChild,args:["formControl",{static:!0}]}],valueChange:[{type:t.Output}],options:[{type:t.Input}],enabledDates:[{type:t.Input}],disabledDates:[{type:t.Input}],reinit:[{type:t.Input}],value:[{type:t.Input}]};var st=function(e){return e?JSON.parse(JSON.stringify(e)):e},lt=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.selectedValue="",i.select=new t.EventEmitter,i.valueChange=new t.EventEmitter,i.getName=function(){return i.name||i.id+"-name"},i.logPrefix="[inail-radio-select]",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(t){var n,i,a,o;if(e.prototype.ngOnChanges.call(this,t),(null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.currentValue)&&(this.options=st(null===(i=null==t?void 0:t.options)||void 0===i?void 0:i.currentValue),this.options.forEach((function(e){u(e.id)&&(e.id=k())}))),((null===(a=null==t?void 0:t.options)||void 0===a?void 0:a.currentValue)||(null===(o=null==t?void 0:t.sort)||void 0===o?void 0:o.currentValue))&&this.sort){var r="ASC"==this.sort.toUpperCase()?1:"DESC"==this.sort.toUpperCase()?-1:0;0!=r&&null!=this.options&&this.options.sort((function(e,t){return e.label<t.label?-r:e.label>t.label?r:0}))}this.cdr.detectChanges()},n.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.focus&&this.push(this.focus.subscribe((function(e){t.emitDebug("Catch focus!");var n=t.inputRadio.find((function(e){return e.nativeElement.checked}));z((null==n?void 0:n.nativeElement)||t.inputRadio.first.nativeElement,e)})))},Object.defineProperty(n.prototype,"value",{get:function(){return this.selectedValue},set:function(e){this.emitDebug("@Input set value: "+this.selectedValue+" -> "+e),this.setValue(e)},enumerable:!1,configurable:!0}),n.prototype.writeValue=function(e){this.emitDebug("writeValue: "+e),this.setValue(e)},n.prototype.setValue=function(e){var t=this;this.emitDebug("setValue: "+e),this.selectedValue!=e&&setTimeout((function(){t.emitDebug("update value: "+t.selectedValue+" -> "+e),t.selectedValue=e||"",t.cdr.detectChanges(),t.emitDebug("this.valueChange.emit("+t.selectedValue+")"),t.valueChange.emit(t.selectedValue),t.select.emit(t.options.find((function(e){return(null==e?void 0:e.value)===t.selectedValue}))),t.cleanError(),t.onChange&&t.onChange(t.selectedValue)}))},n.prototype.ngAfterViewInit=function(){this.emitDebug("@ViewChild('formControl')"),this.emitDebug(this.formControlElement),this.emitDebug("@ViewChildren('inputRadio')"),this.emitDebug(this.inputRadio)},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n}(Ue);lt.decorators=[{type:t.Component,args:[{selector:"inail-radio-select",template:'<div [id]=\'id\' class="{{getResponsiveClass()}} {{class}} noPadding inail-radio-select" #formControl>\n <fieldset class="form-group col-xs-12 noPaddingLeft" [id]="getName()"\n role="radiogroup"\n [attr.aria-required]="required === true ? true : undefined">\n <legend class="radio-legend {{labelClass}}"\n [ngStyle]="{\'display\': hiddenLabel ? \'none\': \'contents\'}"\n [innerHTML]="getLabel()">\n </legend>\n <span *ngIf="showPopover()"\n [style.padding-left.px]="5">\n <inail-popover [iconClass]="popoverButtonIcon"\n [buttonTitle]="popoverButtonTitle"\n [header]="popoverHeader"\n [content]="popoverContent">\n </inail-popover>\n </span>\n <br *ngIf="!hiddenLabel">\n <div class="radio {{inline === true ? \'inline\' : \'\'}}" *ngFor="let option of options">\n <label [for]="option?.id">\n <input [attr.id]="option?.id"\n #inputRadio\n type="radio"\n class="{{inputClass}} {{option?.class}}"\n [name]="getName()"\n [attr.title]="option?.title || title"\n [disabled]="disabled"\n [attr.aria-invalid]="isThereError() === true ? true : undefined"\n [attr.aria-describedBy]="getAriaDescribedBy()"\n [value]="option?.value"\n (blur)="onBlur()"\n (keyup.enter)="enterUp.emit()"\n [(ngModel)]="value">\n <span [innerHTML]="option?.label"\n [ngClass]="{\'sr-only\': hiddenLabel}">\n </span>\n </label>\n <span *ngIf="option?.popover === true"\n [style.padding-left.px]="5">\n <inail-popover [iconClass]="option?.popoverButtonIcon"\n [buttonTitle]="option?.popoverButtonTitle"\n [header]="option?.popoverHeader"\n [content]="option?.popoverContent">\n </inail-popover>\n </span>\n </div>\n <div *ngIf="showError()" [id]="id+\'-description\'">\n <div class="msg msg-errore">\n <strong [innerHTML]="\'ERRORE: \'+this.error"></strong>\n </div>\n <div *ngIf="description" [innerHTML]="this.description"></div>\n </div>\n <div *ngIf="description && !showError()"\n [id]="id+\'-description\'"\n [innerHTML]="this.description">\n </div>\n </fieldset>\n</div>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return lt})),multi:!0}],styles:[".inail-radio-select .radio.inline{display:inline-block;margin-right:20px}"]}]}],lt.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},lt.propDecorators={formControlElement:[{type:t.ViewChild,args:["formControl"]}],inputRadio:[{type:t.ViewChildren,args:["inputRadio"]}],options:[{type:t.Input}],name:[{type:t.Input}],sort:[{type:t.Input}],inline:[{type:t.Input}],select:[{type:t.Output}],valueChange:[{type:t.Output}],value:[{type:t.Input}]};var ct=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.checkedChange=new t.EventEmitter,i.checkboxClick=new t.EventEmitter,i.click=new t.EventEmitter,i.stateChange=new t.EventEmitter,i.state={name:void 0,value:void 0,checked:void 0,firstChange:!0},i.emitState=function(){i.state.name=i.name,i.state.value=i.value,i.state.checked=i.checked,i.stateChange.emit(i.state),i.state.firstChange=!1},i.logPrefix="[inail-checkbox]",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.checked=!!this.checked,this.cdr.detectChanges()},n.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.emitDebug("@ViewChild('formControl')"),this.emitDebug(this.formControlElement),this.focus&&this.push(this.focus.subscribe((function(e){t.emitDebug("Catch focus!"),z(t.formControlElement.nativeElement,e)})))},n.prototype.ngAfterViewInit=function(){},n.prototype.labelOnClick=function(e){e.stopPropagation(),this.click.emit(e)},n.prototype.cbOnEnter=function(){this.checked=!this.checked,this.enterUp.emit()},Object.defineProperty(n.prototype,"checked",{get:function(){return this.checkedValue},set:function(e){this.emitDebug("setValue: "+e),this.checkedValue!=e&&(this.emitDebug("update value: "+this.checkedValue+" -> "+e),this.checkedValue=e,this.cdr.detectChanges(),this.emitDebug("this.checkedChange.emit("+e+")"),this.checkedChange.emit(e),this.emitState(),this.cleanError(),this.onChange&&this.onChange(e))},enumerable:!1,configurable:!0}),n.prototype.writeValue=function(e){this.emitDebug("writeValue: "+e),this.checked=e},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n}(Ue);ct.decorators=[{type:t.Component,args:[{selector:"inail-checkbox",template:'<div class="form-group {{getResponsiveClass()}} noPaddingLeft {{class}}"\n (click)="$event.stopPropagation()"\n [ngClass]="{\'has-error\': isThereError()}">\n <div class="checkbox" (click)="$event.stopPropagation()">\n <label class="checkbox-inline {{labelClass}}"\n [attr.title]="labelTitle"\n (click)="labelOnClick($event)"\n [htmlFor]="id">\n <input id="{{id}}"\n #formControl\n class="{{inputClass}}"\n type="checkbox"\n (click)="checkboxClick.emit($event)"\n [disabled]="disabled"\n (keyup.enter)="cbOnEnter()"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="isThereError() === true ? true : undefined"\n [attr.aria-describedBy]="getAriaDescribedBy()"\n [(ngModel)]=\'checked\'\n [attr.value]="value"\n [attr.title]="title">\n <span *ngIf="label"\n (click)="$event.stopPropagation()"\n [ngClass]="{\'sr-only\': hiddenLabel}"\n [innerHTML]="getLabel()">\n </span>\n </label>\n <span *ngIf="showPopover()">\n <inail-popover [iconClass]="popoverButtonIcon"\n [buttonTitle]="popoverButtonTitle"\n [header]="popoverHeader"\n [content]="popoverContent">\n </inail-popover>\n </span>\n </div>\n <div *ngIf="showError()" [id]="id+\'-description\'">\n <div class="msg msg-errore">\n <strong [innerHTML]="\'ERRORE: \'+this.error"></strong>\n </div>\n <div *ngIf="description" [innerHTML]="this.description"></div>\n </div>\n <div *ngIf="description && !showError()"\n [id]="id+\'-description\'"\n [innerHTML]="this.description">\n </div>\n</div>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return ct})),multi:!0}],styles:[""]}]}],ct.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},ct.propDecorators={formControlElement:[{type:t.ViewChild,args:["formControl",{static:!0}]}],value:[{type:t.Input}],checkedChange:[{type:t.Output}],checkboxClick:[{type:t.Output}],click:[{type:t.Output}],stateChange:[{type:t.Output}],checked:[{type:t.Input}]};var pt='a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])',ut=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.closeButtonTitle="Chiudi modale",i.close=new t.EventEmitter,i.width="M",i.closeOnClick=function(){return i.showModal(!1)},i.setFocusOnLastPageActiveElement=function(){null!=i.pageActiveElement&&(window.$(i.pageActiveElement).length>0?i.pageActiveElement.focus():i.setFocusOnPreviusFocusableElement(i.previusFocusableElements.length-1))},i.logPrefix="[inail-modal]",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(t){var n,i=this;e.prototype.ngOnChanges.call(this,t),(null===(n=t.show)||void 0===n?void 0:n.currentValue)&&this.push(t.show.currentValue.subscribe((function(e){if(null==e&&(e=!0),!0===e){i.pageActiveElement=document.activeElement;var t=window.$("body").find(pt);i.previusFocusableElements=t.filter((function(e){return e<t.index(i.pageActiveElement)}))}i.showModal(e)}))),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this),this.cdr.detectChanges()},n.prototype.ngAfterViewInit=function(){},n.prototype.showModal=function(e){var t=this;window.$("#"+this.id).modal(e?"show":"hide"),e?(setTimeout((function(){return t.trapFocus()}),500),x(!1)):(this.close.emit(),x(!0),setTimeout((function(){return t.setFocusOnLastPageActiveElement()}),500))},n.prototype.trapFocus=function(){var e=window.$("#"+this.id),t=e.find(".modal-content").find(pt),n=t[0],i=t[t.length-1];n.focus(),e[0].addEventListener("keydown",(function(e){"Tab"!==e.key&&9!==e.keyCode||(e.shiftKey?document.activeElement===n&&(i.focus(),e.preventDefault()):document.activeElement===i&&(n.focus(),e.preventDefault()))}))},n.prototype.setFocusOnPreviusFocusableElement=function(e){e>=0&&(window.$(this.previusFocusableElements[e]).length>0?this.previusFocusableElements[e].focus():this.setFocusOnPreviusFocusableElement(e-1))},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n}(R);ut.decorators=[{type:t.Component,args:[{selector:"inail-modal",template:'<div class="modal fade inail-modal {{class}}"\n [id]="id"\n tabindex="-1"\n role="dialog"\n data-keyboard="false"\n data-backdrop="static"\n (keyup.escape)="this.showModal(false)"\n [attr.aria-labelledby]="id+\'-TITOLO\'">\n <div class="vertical-alignment-helper">\n <div class="modal-dialog vertical-align-center"\n [ngClass]="{\'medium\' : width==\'M\', \'wide\' : width==\'L\'}">\n <div class="modal-content">\n <div class="modal-header">\n <span class="modal-title"\n tabindex="0"\n id="{{id}}-TITOLO" [innerHTML]="title"></span>\n <button type="button"\n id="{{id}}_close_button"\n [title]="closeButtonTitle"\n (click)="closeOnClick()"\n (keyup.space)="closeOnClick()"\n (keyup.enter)="closeOnClick()"\n class="close"\n aria-label="Close">\n <span aria-hidden="true">×</span>\n </button>\n </div>\n <div class="modal-body">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n </div>\n</div>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:[".inail-modal .modal-dialog.medium{width:900px}.inail-modal .modal-dialog.wide{width:1200px}.inail-modal .modal-dialog{max-width:100vw!important}.inail-modal .close:focus,.inail-modal .modal-title:focus{outline:1px dotted #fff!important}"]}]}],ut.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},ut.propDecorators={title:[{type:t.Input}],closeButtonTitle:[{type:t.Input}],close:[{type:t.Output}],show:[{type:t.Input}],width:[{type:t.Input}],setFocusOnError:[{type:t.Input}]};var dt=function(e){function t(t){var n=e.call(this,t)||this;return n._cdr=t,n.okOnClick=function(){return n.showModal(!1)},n.logPrefix="[inail-alert]",n.title="Messaggio informativo",n.width="S",n.closeButtonTitle="Chiudi messaggio informativo",n.detach(),n}return P(t,e),t.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this._cdr.detectChanges()},t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this),this._cdr.detectChanges()},t.prototype.ngAfterViewInit=function(){},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t}(ut);dt.decorators=[{type:t.Component,args:[{selector:"inail-alert",template:'<inail-modal [id]="id"\n [show]="show"\n [class]="class"\n [title]="title"\n [closeButtonTitle]="closeButtonTitle"\n [logOnConsole]="logOnConsole"\n [width]="this.width"\n (close)="close.emit($event)"\n (log)="log.emit($event)">\n <div class="row">\n <p *ngIf="message" [innerHTML]="message"></p>\n <p *ngIf="!message">\n <ng-content></ng-content>\n </p>\n </div>\n <div class="row alert-footer">\n <button type="button"\n (click)="okOnClick()"\n class="btn btn-primary pull-right">Ok\n </button>\n </div>\n</inail-modal>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:[".alert-footer{padding-bottom:20px!important;padding-top:20px!important}.alert-footer button{margin-right:0!important}"]}]}],dt.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},dt.propDecorators={message:[{type:t.Input}]};var ht=function(e){function n(n){var i=e.call(this,n)||this;return i._cdr=n,i.confirmButtonLabel="Si",i.rejectButtonLabel="No",i.confirm=new t.EventEmitter,i.reject=new t.EventEmitter,i.cancel=new t.EventEmitter,i.logPrefix="[inail-confirm]",i.title="Conferma operazione",i.message="Confermare l'operazione richiesta?",i.width="S",i.closeButtonTitle="Chiudi modale di conferma",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this._cdr.detectChanges()},n.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this),this._cdr.detectChanges()},n.prototype.ngAfterViewInit=function(){},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n.prototype.confirmOnClick=function(){this.showModal(!1),this.confirm.emit()},n.prototype.rejectOnClick=function(){this.showModal(!1),this.reject.emit()},n.prototype.cancelOnClick=function(){this.showModal(!1),this.cancel.emit()},n}(ut);ht.decorators=[{type:t.Component,args:[{selector:"inail-confirm",template:'<inail-modal [id]="id"\n [show]="show"\n [class]="class"\n [title]="title"\n [closeButtonTitle]="closeButtonTitle"\n [logOnConsole]="logOnConsole"\n [width]="width"\n (close)="cancelOnClick()"\n (log)="log.emit($event)">\n <div class="row">\n <p *ngIf="message" [innerHTML]="message"></p>\n <p *ngIf="!message">\n <ng-content></ng-content>\n </p>\n </div>\n <div class="row confirm-footer">\n <inail-button [label]="rejectButtonLabel"\n (onclick)="rejectOnClick()">\n </inail-button>\n <inail-button [class]="\'pull-right\'"\n [setFocusOnError]="setFocusOnError"\n [label]="confirmButtonLabel"\n (onclick)="confirmOnClick()">\n </inail-button>\n </div>\n</inail-modal>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:[".confirm-footer{padding-bottom:20px!important;padding-top:20px!important}.confirm-footer button{margin-right:0!important}"]}]}],ht.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},ht.propDecorators={message:[{type:t.Input}],confirmButtonLabel:[{type:t.Input}],rejectButtonLabel:[{type:t.Input}],confirm:[{type:t.Output}],reject:[{type:t.Output}],cancel:[{type:t.Output}]};var gt=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.listSize=0,i.pageSize=10,i.currentPage=1,i.select=new t.EventEmitter,i.logPrefix="[inail-table-page-selector]",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(t){var n;e.prototype.ngOnChanges.call(this,t),!this.externalPagination&&t.currentPage&&t.currentPage.firstChange&&null!=t.currentPage.currentValue&&(this.externalPagination=!0),(null==t?void 0:t.pageSize)&&null==(null==t?void 0:t.pageSize.currentValue)&&(this.pageSize=10),(null==t?void 0:t.listSize)&&null==(null==t?void 0:t.listSize.currentValue)&&(this.listSize=0),(null==t?void 0:t.currentPage)&&null==(null==t?void 0:t.currentPage.currentValue)&&(this.currentPage=1),t&&(t.pageSize||t.listSize)&&(this.calcolaNumeroPagine(),this.externalPagination||(this.currentPage=1)),null!=(null===(n=null==t?void 0:t.currentPage)||void 0===n?void 0:n.currentValue)&&(t.currentPage.currentValue>this.length?(this.currentPage=this.length,this.emitCurrentPage(this.currentPage)):t.currentPage.currentValue<1&&(this.currentPage=1,this.emitCurrentPage(this.currentPage))),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},n.prototype.calcolaNumeroPagine=function(){this.length=Math.floor(this.listSize/this.pageSize),this.listSize%this.pageSize>0&&this.length++,0!=this.length&&null!=this.length||(this.length=1)},Object.defineProperty(n.prototype,"pages",{get:function(){return new Array(this.length)},enumerable:!1,configurable:!0}),n.prototype.set=function(e){e>0&&e<=this.length&&(this.externalPagination||(this.currentPage=e),this.emitCurrentPage(e)),this.cdr.detectChanges()},n.prototype.prev=function(){this.set(this.currentPage-1)},n.prototype.next=function(){this.set(this.currentPage+1)},n.prototype.emitCurrentPage=function(e){this.select.emit(e)},n.prototype.ngAfterViewInit=function(){this.cdr.detectChanges()},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n}(R);gt.decorators=[{type:t.Component,args:[{selector:"inail-table-page-selector",template:'<ng-container *ngIf="listSize > pageSize">\n <div class="bottom paginate-component inail-table-page-selector">\n <div class="dataTables_paginate paging_simple_numbers">\n <ul class="pagination">\n\n <li class="paginate_button previous"\n [ngClass]="{\'disabled\': currentPage == 1}">\n <a href="javascript:void(0)" (click)="prev()"\n [attr.aria-label]="\'Visualizza la pagina precedente della tabella\'"\n [attr.aria-controls]="tableId != undefined ? tableId : undefined">\n <span class="sr-only">indietro</span>\n </a>\n </li>\n\n <ng-container *ngIf="pages.length <=10">\n <ng-container *ngFor="let p of pages; index as i">\n <li class="paginate_button"\n [ngClass]="{\'active\': currentPage == i+1}">\n <a href="javascript:void(0)"\n [attr.aria-label]="\'Visualizza la pagina \'+(i+1)+\' della tabella\'"\n [attr.aria-controls]="tableId != undefined ? tableId : undefined"\n (click)="set(i+1)">{{i + 1}}</a>\n </li>\n </ng-container>\n </ng-container>\n <ng-container *ngIf="pages.length > 10">\n\n <ng-container *ngIf="currentPage <= 4 ">\n\n <ng-container *ngFor="let p of [0, 1, 2, 3, 4]; index as i">\n <li class="paginate_button"\n [ngClass]="{\'active\': currentPage == i+1}">\n <a href="javascript:void(0)"\n [attr.aria-label]="\'Visualizza la pagina \'+(i+1)+\' della tabella\'"\n [attr.aria-controls]="tableId != undefined ? tableId : undefined"\n (click)="set(i+1)">{{i + 1}}</a>\n </li>\n </ng-container>\n\n </ng-container>\n\n <ng-container *ngIf="currentPage > 4">\n <li class="paginate_button">\n <a href="javascript:void(0)"\n [attr.aria-label]="\'Visualizza la pagina 1 della tabella\'"\n [attr.aria-controls]="tableId != undefined ? tableId : undefined"\n (click)="set(1)">1</a>\n </li>\n <li class="paginate_button disabled">\n <a href="javascript:void(0)">...</a>\n </li>\n </ng-container>\n\n <ng-container *ngIf="currentPage > 4 && currentPage < (pages.length - 3)">\n <li class="paginate_button">\n <a href="javascript:void(0)"\n [attr.aria-label]="\'Visualizza la pagina \'+(currentPage-1)+\' della tabella\'"\n [attr.aria-controls]="tableId != undefined ? tableId : undefined"\n (click)="set(currentPage-1)">{{currentPage - 1}}</a>\n </li>\n <li class="paginate_button active">\n <a href="javascript:void(0)"\n [attr.aria-label]="\'Visualizza la pagina \'+currentPage+\' della tabella\'"\n [attr.aria-controls]="tableId != undefined ? tableId : undefined"\n (click)="set(currentPage)">{{currentPage}}</a>\n </li>\n <li class="paginate_button">\n <a href="javascript:void(0)"\n [attr.aria-label]="\'Visualizza la pagina \'+(currentPage-1)+\' della tabella\'"\n [attr.aria-controls]="tableId != undefined ? tableId : undefined"\n (click)="set(currentPage+1)">{{currentPage + 1}}</a>\n </li>\n </ng-container>\n\n <ng-container *ngIf="currentPage < (pages.length - 3)">\n <li class="paginate_button disabled">\n <a href="javascript:void(0)">...</a>\n </li>\n <li class="paginate_button">\n <a href="javascript:void(0)"\n [attr.aria-label]="\'Visualizza la pagina \'+(pages.length)+\' della tabella\'"\n [attr.aria-controls]="tableId != undefined ? tableId : undefined"\n (click)="set(pages.length)">{{pages.length}}</a>\n </li>\n </ng-container>\n\n <ng-container *ngIf="currentPage >= (pages.length - 3)">\n <ng-container *ngFor="let p of [(pages.length - 4), (pages.length - 3), (pages.length - 2), (pages.length - 1), (pages.length)]">\n <li class="paginate_button"\n [ngClass]="{\'active\': currentPage == p}">\n <a href="javascript:void(0)"\n [attr.aria-label]="\'Visualizza la pagina \'+p+\' della tabella\'"\n [attr.aria-controls]="tableId != undefined ? tableId : undefined"\n (click)="set(p)">{{p}}</a>\n </li>\n </ng-container>\n\n </ng-container>\n </ng-container>\n\n <li class="paginate_button next"\n [ngClass]="{\'disabled\': currentPage == pages.length}">\n <a href="javascript:void(0)"\n [attr.aria-label]="\'Visualizza la pagina successiva della tabella\'"\n [attr.aria-controls]="tableId"\n (click)="next()">\n <span class="sr-only">avanti</span>\n </a>\n </li>\n </ul>\n </div>\n </div>\n</ng-container>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:[".inail-table-page-selector .pagination>li>a{background-color:initial!important}"]}]}],gt.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},gt.propDecorators={tableId:[{type:t.Input}],listSize:[{type:t.Input}],pageSize:[{type:t.Input}],currentPage:[{type:t.Input}],select:[{type:t.Output}]};var mt=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.label="Elementi per pagina",i.options=[10,25,50,100],i.valueChange=new t.EventEmitter,i.logPrefix="[inail-table-page-length-selector]",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},n.prototype.ngAfterViewInit=function(){this.cdr.detectChanges()},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},Object.defineProperty(n.prototype,"value",{get:function(){return this.selectedValue},set:function(e){e!=this.selectedValue&&(this.selectedValue=e,this.valueChange.emit(this.selectedValue))},enumerable:!1,configurable:!0}),n}(R);mt.decorators=[{type:t.Component,args:[{selector:"inail-table-page-length-selector",template:'<div class="dataTables_length inail-table-page-length-selector">\n <label>\n <span [innerHTML]="label"></span> \n <select name="tabella_length"\n [(ngModel)]="this.value"\n [attr.aria-controls]="tableId"\n class="form-control input-sm">\n <option *ngFor="let n of options"\n value="{{n}}">\n {{n}}\n </option>\n \x3c!--<option value="10">10</option>\n <option value="25">25</option>\n <option value="50">50</option>\n <option value="100">100</option>--\x3e\n </select>\n </label>\n</div>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:[".inail-table-page-length-selector select.form-control{display:inline-block}"]}]}],mt.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},mt.propDecorators={tableId:[{type:t.Input}],label:[{type:t.Input}],options:[{type:t.Input}],valueChange:[{type:t.Output}],value:[{type:t.Input}]};var ft=function(){},vt=function(e){function n(i,a){var o=e.call(this,i)||this;return o.cdr=i,o.ASC=n.ASC,o.DESC=n.DESC,o.UNSORTED=n.UNSORTED,o.click=new t.EventEmitter,o.logPrefix="[inail-th-label]",o.direction=n.UNSORTED,o.elementRef=a,o.detach(),o}return P(n,e),n.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t)},n.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},n.prototype.ngAfterViewInit=function(){this.cdr.detectChanges()},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n.prototype.getAriaSortValue=function(e){var t;switch(e){case n.ASC:t="ascending";break;case n.DESC:t="descending";break;case n.UNSORTED:t="none"}return t},n.prototype.onClick=function(e){e.stopPropagation(),this.emettiEventoOrdinamento(),this.cdr.detectChanges()},n.prototype.emettiEventoOrdinamento=function(){if(this.sortable&&this.property){this.direction=-1*this.direction,this.direction==n.UNSORTED&&(this.direction=n.ASC);var e={direction:this.direction,property:this.property};this.click.emit(e)}},n.prototype.setAsUnsorted=function(){this.direction=n.UNSORTED},n}(R);vt.ASC=1,vt.DESC=-1,vt.UNSORTED=0,vt.decorators=[{type:t.Component,args:[{selector:"inail-th-label",template:'<a *ngIf="sortable"\n href="javascript:void(0)"\n role="button"\n class="inail-th-label"\n [attr.aria-label]="label + \': attiva per ordinare la colonna in ordine \' + (direction == ASC ? \'decrescente\' : \'crescente\')"\n (click)="onClick($event)">\n <span class="sortable thLabel"\n [innerHTML]="label"\n [attr.title]="title">\n </span>\n</a>\n<span *ngIf="!sortable"\n (click)="onClick($event)"\n [innerHTML]="label"\n [attr.title]="title">\n</span>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:[".inail-th-label .sortable{cursor:pointer}.inail-th-label .fa{padding:0 10px}a.inail-th-label{background:transparent;color:#000;text-decoration:none}"]}]}],vt.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef}]},vt.propDecorators={label:[{type:t.Input}],property:[{type:t.Input}],title:[{type:t.Input}],sortable:[{type:t.Input}],click:[{type:t.Output}]};var bt=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.hiddenLabel=!0,i.disabled=!1,i.initComplete=new c.ReplaySubject,i.onclick=new t.EventEmitter,i.onDestroy=new t.EventEmitter,i.checked=!1,i.logPrefix="[inail-tr-checkbox]",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this),null==this.label&&(this.label=this.value)},n.prototype.ngAfterViewInit=function(){this.initComplete.next()},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this),this.onDestroy.emit()},n.prototype.clickHandler=function(){this.disabled||this.onclick.emit()},n.prototype.setChecked=function(e){this.checked=e,this.cdr.detectChanges()},n}(R);bt.decorators=[{type:t.Component,args:[{selector:"inail-tr-checkbox",template:'<inail-checkbox [label]="label"\n [id]="this.id"\n [class]="\'inail-tr-checkbox noPaddingRight\'"\n [hiddenLabel]="hiddenLabel"\n [disabled]="disabled"\n [title]="title"\n [checked]="checked"\n (click)="clickHandler()">\n</inail-checkbox>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:[".inail-tr-checkbox,.inail-tr-checkbox .checkbox{margin:0!important}.inail-tr-checkbox .checkbox input{margin-top:2px}"]}]}],bt.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},bt.propDecorators={label:[{type:t.Input}],title:[{type:t.Input}],value:[{type:t.Input}],hiddenLabel:[{type:t.Input}],disabled:[{type:t.Input}],initComplete:[{type:t.Output}],onclick:[{type:t.Output}],onDestroy:[{type:t.Output}]};var yt="desc",Ct=function(e){function n(n,i){var a=e.call(this,n)||this;return a.cdr=n,a.renderer=i,a.externalPaginationSorting=!1,a.displayedDataChange=new t.EventEmitter,a.elementsPerPage=10,a.elementsPerPageOptions=[10,25,50,100],a.noDataFound=!1,a.noDataFoundText="Nessun elemento trovato",a.disablePagination=!1,a.pagination=new t.EventEmitter,a.tallRows=!1,a.captionHidden=!1,a.bgWhite=!0,a.detailsClick=new t.EventEmitter,a.checkedRowsChange=new t.EventEmitter,a.visualizzaBaseFooter=!0,a.trcbInitSubscriptions={},a.trcbClickSubscriptions={},a.trcbDestroySubscriptions={},a.righeSelezionate=[],a.righeSelezionabili=[],a.getPageSize=function(){return a.externalPaginationSorting?a.paginationState.pageSize:a.tableLength},a.getListSize=function(){return a.externalPaginationSorting?a.paginationState.fullListSize:a.dataSource.length},a.getCurrentPage=function(){return a.externalPaginationSorting&&a.paginationState?a.paginationState.pageNumber:a.currentPage},a.isChecked=function(e){return a.righeSelezionate.some((function(t){return t==e}))},a.isAllChecked=function(){return a.righeSelezionabili.length>0&&a.righeSelezionabili.every(a.isChecked)},a.isThCheckbox=function(e){return document.querySelectorAll("th #"+e.id).length>0},a.isSelezionabile=function(e){return a.righeSelezionabili.some((function(t){return t==e}))},a.logPrefix="[inail-table]",a.detach(),a}return P(n,e),n.prototype.ngOnChanges=function(t){var n,i,a,o,r,s,l,c,p,u,d=this;e.prototype.ngOnChanges.call(this,t),this.externalPaginationSorting||!0!==(null===(n=t.paginationState)||void 0===n?void 0:n.firstChange)||null==(null===(i=t.paginationState)||void 0===i?void 0:i.currentValue)||(this.externalPaginationSorting=!0),(null===(o=null===(a=t.paginationState)||void 0===a?void 0:a.currentValue)||void 0===o?void 0:o.sortProperty)&&this.attivaThLabelOrdinamentoSpecificato(),(null===(s=null===(r=t.initialSort)||void 0===r?void 0:r.currentValue)||void 0===s?void 0:s.sortProperty)&&this.attivaThLabelOrdinamentoSpecificato(),null==t.dataSource||t.dataSource.firstChange||this.externalPaginationSorting||(this.tablePageSelectorComponent&&(this.tablePageSelectorComponent.currentPage=1),this.emitSubset(1)),!this.externalPaginationSorting&&(null===(l=t.doPagination)||void 0===l?void 0:l.currentValue)&&this.push(t.doPagination.currentValue.subscribe((function(e){d.lengthOnChange(e.pageSize),setTimeout((function(){return d.doSorting(e.sortProperty,e.sortDirection)}),100),setTimeout((function(){return d.pageOnChange(e.pageNumber)}),200)}))),null==t.elementsPerPage||t.elementsPerPage.firstChange||this.externalPaginationSorting||this.lengthOnChange(this.elementsPerPage),!0===(null===(c=t.noDataFound)||void 0===c?void 0:c.currentValue)&&(this.numeroColonne=document.querySelectorAll("#"+this.id+" th").length),(null===(p=t.selectableRowValues)||void 0===p?void 0:p.currentValue)&&(this.righeSelezionabili=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(A(arguments[t]));return e}(null===(u=t.selectableRowValues)||void 0===u?void 0:u.currentValue)),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.tableLength=this.externalPaginationSorting?this.paginationState.pageSize:this.elementsPerPage,this.externalPaginationSorting||setTimeout((function(){t.emitSubset(t.currentPage||1)}))},n.prototype.ngAfterViewInit=function(){var e=this;this.inizializzaTabella(this.thLabelComponents),this.lookAtThLabel(this.thLabelComponents),this.attivaThLabelOrdinamentoSpecificato(),setTimeout((function(){var t;return e.visualizzaBaseFooter=(null===(t=e.baseFooter)||void 0===t?void 0:t.nativeElement.childElementCount)>0})),this.cdr.detectChanges()},n.prototype.ngAfterViewChecked=function(){this.gestisciTrCheckbox()},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n.prototype.gestisciTrCheckbox=function(){var e,t=this;(null===(e=this.trCheckboxComponents)||void 0===e?void 0:e.length)>0&&(this.trCheckboxComponents.forEach((function(e){null==t.trcbInitSubscriptions[e.id]&&(t.trcbInitSubscriptions[e.id]=e.initComplete.subscribe((function(){null==t.selectableRowValues&&(t.righeSelezionabili=t.trCheckboxComponents.filter((function(e){return!t.isThCheckbox(e)})).map((function(e){return e.value})))}))),null==t.trcbClickSubscriptions[e.id]&&(t.trcbClickSubscriptions[e.id]=e.onclick.subscribe((function(){t.isThCheckbox(e)?t.checkAllOnClick():t.checkOnClick(e.value),t.checkedRowsChange.emit(t.righeSelezionate)}))),null==t.trcbDestroySubscriptions[e.id]&&(t.trcbDestroySubscriptions[e.id]=e.onDestroy.subscribe((function(){var n,i,a;null===(n=t.trcbInitSubscriptions[e.id])||void 0===n||n.unsubscribe(),null===(i=t.trcbClickSubscriptions[e.id])||void 0===i||i.unsubscribe(),null===(a=t.trcbDestroySubscriptions[e.id])||void 0===a||a.unsubscribe(),delete t.trcbInitSubscriptions[e.id],delete t.trcbClickSubscriptions[e.id],delete t.trcbDestroySubscriptions[e.id]})))})),this.trCheckboxComponents.forEach((function(e){e&&(t.isThCheckbox(e)?e.setChecked(t.isAllChecked()):e.setChecked(t.isChecked(e.value)))})))},n.prototype.checkOnClick=function(e){this.isChecked(e)?this.righeSelezionate=this.righeSelezionate.filter((function(t){return t!=e})):this.righeSelezionate.push(e)},n.prototype.checkAllOnClick=function(){var e=this;this.isAllChecked()?this.righeSelezionate=this.righeSelezionate.filter((function(t){return!e.isSelezionabile(t)})):this.righeSelezionate=this.righeSelezionate.concat(this.righeSelezionabili.filter((function(t){return!e.isChecked(t)})))},n.prototype.inizializzaTabella=function(e){var t=this;e&&e.forEach((function(e){t.modificaTh(e)}))},n.prototype.lookAtThLabel=function(e){var t=this;e&&(this.thLabelComponents=e,e.forEach((function(e){e&&t.push(e.click.subscribe((function(n){t.performSorting(n,e)})))})))},n.prototype.doSorting=function(e,t){var n={property:e,direction:"asc"==t?vt.ASC:t==yt?vt.DESC:void 0},i=this.thLabelComponents.find((function(t){return t.property==e}));this.performSorting(n,i)},n.prototype.performSorting=function(e,t){if(null!=t&&null!=e&&null!=e.property){var n={};n.sortProperty=e.property,n.sortDirection=e.direction==vt.ASC?"asc":e.direction==vt.DESC?yt:void 0,n.pageNumber=1,this.resetDirectionSorting(t,this.thLabelComponents),this.modificaTh(t),this.externalPaginationSorting?(n.fullListSize=this.paginationState.fullListSize,n.pageSize=this.paginationState.pageSize):(this.ordina(e),this.emitSubset(1)),this.pagination.emit(n)}},n.prototype.resetDirectionSorting=function(e,t){var n=this;t&&t.forEach((function(t){t&&t.property!=e.property&&(t.setAsUnsorted(),n.modificaTh(t))}))},n.prototype.modificaTh=function(e){if(e&&!0===e.sortable){var t=e.elementRef.nativeElement.parentNode;t&&(this.removeSortClass(t),this.renderer.addClass(t,this.getThSortClass(e.direction)),t.setAttribute("aria-sort",this.getAriaSortValue(e.direction)),e.direction==vt.UNSORTED&&t.removeAttribute("aria-sort"))}},n.prototype.removeSortClass=function(e){this.renderer.removeClass(e,"sorting_asc"),this.renderer.removeClass(e,"sorting_desc"),this.renderer.removeClass(e,"sorting")},n.prototype.getThSortClass=function(e){var t;switch(e){case vt.ASC:t="sorting_asc";break;case vt.DESC:t="sorting_desc";break;case vt.UNSORTED:t="sorting"}return t},n.prototype.getAriaSortValue=function(e){var t;switch(e){case vt.ASC:t="ascending";break;case vt.DESC:t="descending";break;case vt.UNSORTED:t="none"}return t},n.prototype.ordina=function(e){e&&this.dataSource&&e.property&&(e.direction=-1*e.direction,e.direction==vt.UNSORTED&&(e.direction=vt.ASC),this.dataSource.sort(this.propertyComparator(e.property,e.direction)),this.dataSource=[].concat(this.dataSource),this.cdr.detectChanges())},n.prototype.propertyComparator=function(e,t){var n=e?e.split("."):void 0;function i(e,t){if(e&&t)return t.length>1?i(e[t[0]],t.slice(1,t.length)):e[t[0]]}return function(e,a){return(i(e,n)>i(a,n)?vt.DESC:vt.ASC)*t}},n.prototype.lengthOnChange=function(e){if(null!=e&&(!this.paginationState||e!=this.paginationState.pageSize)){var t={};this.externalPaginationSorting?t=Object.assign({},this.paginationState):this.tableLength!=e&&(this.tableLength=e,t={},this.emitSubset(1)),t.pageSize=e,t.pageNumber=1,this.pagination.emit(t)}},n.prototype.pageOnChange=function(e){if(null!=e){var t=void 0;this.externalPaginationSorting?t=Object.assign({},this.paginationState):(t={},this.emitSubset(e)),t.pageNumber=e,this.pagination.emit(t)}this.cdr.detectChanges()},n.prototype.emitSubset=function(e){if(e&&!this.externalPaginationSorting&&null!=this.dataSource){var t=this.tableLength*(e-1),n=Number(t)+Number(this.tableLength),i=this.dataSource.slice(t,n);this.currentPage=e,this.displayedDataChange.emit(i)}},n.prototype.visualizzaPaginazione=function(){return!this.disablePagination&&(null!=this.dataSource||null!=this.externalPaginationSorting&&null!=this.paginationState)},n.prototype.attivaThLabelOrdinamentoSpecificato=function(){var e=this;if(this.thLabelComponents)if(this.externalPaginationSorting&&this.paginationState){var t=this.thLabelComponents.find((function(t){return t.property==e.paginationState.sortProperty}));this.setSortDirection(t,this.paginationState.sortDirection)}else this.initialSort&&this.thLabelComponents.forEach((function(t){t.property==e.initialSort.sortProperty?e.setSortDirection(t,e.initialSort.sortDirection):e.setSortDirection(t,void 0)}))},n.prototype.setSortDirection=function(e,t){if(e){switch(t){case"asc":e.direction=vt.ASC;break;case"desc":e.direction=vt.DESC;break;default:e.direction=vt.UNSORTED}this.modificaTh(e)}},n}(F);Ct.decorators=[{type:t.Component,args:[{selector:"inail-table",template:'<div class="tabella table-responsive inail-table {{getResponsiveClass()}} noPaddingLeft {{class}}">\n\n <h3 *ngIf="title"\n class="col-xs-9 table-title pull-left noPaddingLeft {{titleClass}}"\n [innerHTML]="title">\n </h3>\n\n <a *ngIf="detailsLink"\n href="javascript:void(0)"\n (click)="detailsClick.emit()"\n class="col-xs-3 col-sm-2 linkDettagli pull-right"\n [innerHTML]="detailsLink">\n </a>\n\n <div *ngIf="description"\n class="col-xs-12 caption marginBottom noPaddingLeft"\n [innerHTML]="description">\n </div>\n\n <inail-table-page-length-selector *ngIf="visualizzaPaginazione()"\n [value]="getPageSize()"\n [tableId]="id"\n [options]="elementsPerPageOptions"\n (valueChange)="lengthOnChange($event)"\n [logOnConsole]="logOnConsole"\n (log)="log.emit($event)">\n </inail-table-page-length-selector>\n\n <ng-container *ngIf="true">\n\n <table id="{{id}}"\n class="table display dataTable {{tableClass}}"\n [ngClass]="{\'tabella-base\': !tallRows, \'bg-white\': bgWhite, \'bg-transparent\': !bgWhite}">\n\n <caption *ngIf="caption"\n [ngClass]="{\'sr-only\': captionHidden}"\n [innerHTML]="caption">\n </caption>\n\n <ng-content select="thead"></ng-content>\n\n <ng-container *ngIf="!noDataFound">\n <ng-content select="tbody"></ng-content>\n </ng-container>\n\n <tbody *ngIf="noDataFound">\n <tr role="row">\n <td class="content-text"\n style="padding: 30px; text-align: center"\n [colSpan]="numeroColonne"\n [innerHTML]="noDataFoundText">\n </td>\n </tr>\n </tbody>\n </table>\n\n <div #baseFooter\n class="col-xs-12 baseFooter noPaddingLeft"\n *ngIf="visualizzaBaseFooter">\n <ng-content select="[baseFooter]"></ng-content>\n </div>\n\n </ng-container>\n\n <inail-table-page-selector *ngIf="visualizzaPaginazione() && !this.noDataFound"\n [listSize]="getListSize()"\n [pageSize]="getPageSize()"\n [currentPage]="getCurrentPage()"\n [tableId]="id"\n (select)="pageOnChange($event)"\n [logOnConsole]="logOnConsole"\n (log)="log.emit($event)">\n </inail-table-page-selector>\n\n</div>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:[".inail-table a.linkDettagli{color:#106cdb;-webkit-text-decoration-line:none;text-decoration-line:none}.inail-table a.linkDettagli:hover{-webkit-text-decoration-line:underline;text-decoration-line:underline}.inail-table table.table.dataTable.bg-white>tbody>tr:not(:hover){background-color:#fff}.inail-table table.table.dataTable.bg-transparent>tbody>tr:not(:hover){background-color:initial}"]}]}],Ct.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.Renderer2}]},Ct.propDecorators={dataSource:[{type:t.Input}],displayedData:[{type:t.Input}],displayedDataChange:[{type:t.Output}],doPagination:[{type:t.Input}],elementsPerPage:[{type:t.Input}],initialSort:[{type:t.Input}],paginationState:[{type:t.Input}],elementsPerPageOptions:[{type:t.Input}],noDataFound:[{type:t.Input}],noDataFoundText:[{type:t.Input}],disablePagination:[{type:t.Input}],pagination:[{type:t.Output}],tallRows:[{type:t.Input}],caption:[{type:t.Input}],captionHidden:[{type:t.Input}],bgWhite:[{type:t.Input}],description:[{type:t.Input}],tableClass:[{type:t.Input}],title:[{type:t.Input}],titleClass:[{type:t.Input}],detailsLink:[{type:t.Input}],selectableRowValues:[{type:t.Input}],detailsClick:[{type:t.Output}],checkedRowsChange:[{type:t.Output}],thLabelComponents:[{type:t.ContentChildren,args:[vt,{descendants:!0}]}],trCheckboxComponents:[{type:t.ContentChildren,args:[bt,{descendants:!0}]}],tablePageSelectorComponent:[{type:t.ViewChild,args:[gt]}],baseFooter:[{type:t.ViewChild,args:["baseFooter"]}]};var It=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.chooseButtonText="Scegli il file",i.addButtonText="Aggiungi",i.chooseButton=!0,i.addButton=!0,i.fileChange=new t.EventEmitter,i.logPrefix="[inail-input-file]",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.placeholder=this.getNotBlankValue(this.placeholder),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.emitDebug("@ViewChild('formControl')"),this.emitDebug(this.inputText),this.focus&&this.push(this.focus.subscribe((function(e){t.emitDebug("Catch focus!"),z(t.inputText.nativeElement,e)})))},n.prototype.ngAfterViewInit=function(){},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n.prototype.promptUpload=function(){document.getElementById(this.id).click()},n.prototype.changeModel=function(e){this.fileModel=e.target.files&&e.target.files[0],this.addButton||this.fileChange.emit(this.fileModel),this.cleanError(),this.cdr.detectChanges()},n.prototype.reset=function(){this.fileModel=void 0,this.fileChange.emit(void 0),this.cleanError(),this.cdr.detectChanges()},n}(Ue);It.decorators=[{type:t.Component,args:[{selector:"inail-input-file",template:'<div class="form-group {{getResponsiveClass()}} noPaddingLeft {{class}} uploadFile inail-input-file"\n [ngClass]="{\'has-error\': isThereError()}">\n <div class="col-xs-12 noPaddingLeft">\n <div class="col-xs-12 noPaddingLeft" *ngIf="label">\n <label [for]="id"\n class="{{labelClass}}"\n [ngClass]="{\'sr-only\': hiddenLabel}"\n [attr.title]="labelTitle"\n [innerHTML]="getLabel()">\n </label>\n <span *ngIf="showPopover()"\n [style.padding-left.px]="5">\n <inail-popover [iconClass]="popoverButtonIcon"\n [buttonTitle]="popoverButtonTitle"\n [header]="popoverHeader"\n [content]="popoverContent">\n </inail-popover>\n </span>\n </div>\n <div class="col-xs-4 upload-file-button-container noPaddingLeft">\n <label for="{{id}}-input"\n class="sr-only">\n File\n </label>\n <input #inputText\n id="{{id}}-input"\n class="col-xs-12 form-control {{inputClass}}"\n readonly\n type="text"\n [disabled]="disabled"\n [attr.name]="name"\n [attr.title]="title"\n [attr.placeholder]="placeholder"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="isThereError() === true ? true : undefined"\n [attr.aria-describedBy]="getAriaDescribedBy()"\n [value]="fileModel?.name"\n (click)="promptUpload()">\n <button class="innerx" (click)="reset()">\n <span class="reset"></span>\n </button>\n \x3c!-- <span [innerHTML]="description"></span>--\x3e\n </div>\n <div class="col-xs-8">\n <div class="fileUpload pull-left noMarginLeft"\n [hidden]="!chooseButton">\n <div tabindex="0"\n (keyup.enter)="inputTypeFile.click()"\n class="btn btn-primary btn-fake noMargin col-xs-12 upload-container"\n [ngClass]="{\'disabled\': disabled}">\n <span [innerHTML]="chooseButtonText"></span>\n <input id="{{id}}"\n #inputTypeFile\n tabindex="-1"\n [attr.accept]="accept"\n [disabled]="disabled"\n [readonly]="readonly"\n class="btn btn-primary upload"\n type="file"\n (change)="changeModel($event)">\n </div>\n </div>\n <div *ngIf="addButton" class="fileUpload pull-left padding">\n <div class="form-group">\n <button class="btn btn-primary add-file"\n [disabled]="!fileModel"\n (click)="fileChange.emit(fileModel)"\n [innerHTML]="addButtonText">\n </button>\n </div>\n </div>\n <div class="fileSubmit col-xs-4 noMarginLeft">\n <button class="btn btn-primary noMargin btn-inline col-xs-12">Carica il file</button>\n </div>\n </div>\n </div>\n <div *ngIf="showError()" [id]="id+\'-description\'">\n <div class="msg msg-errore">\n <strong [innerHTML]="\'ERRORE: \'+this.error"></strong>\n </div>\n <div *ngIf="description" [innerHTML]="this.description"></div>\n </div>\n <div *ngIf="description && !showError()"\n [id]="id+\'-description\'"\n [innerHTML]="this.description">\n </div>\n</div>\n',styles:[".inail-input-file .btn-fake input{position:absolute;opacity:0!important}"]}]}],It.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},It.propDecorators={placeholder:[{type:t.Input}],chooseButtonText:[{type:t.Input}],addButtonText:[{type:t.Input}],chooseButton:[{type:t.Input}],addButton:[{type:t.Input}],accept:[{type:t.Input}],fileChange:[{type:t.Output}],inputText:[{type:t.ViewChild,args:["inputText",{static:!0}]}]};var wt=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.hideArrows=!1,i.valueChange=new t.EventEmitter,i.logPrefix="[inail-input-number]",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),t.value&&(this.previousValue=t.value.previousValue,this.normalizzaValore(),t.value.firstChange||(this.hasError=!1,this.error=void 0)),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.emitDebug("@ViewChild('formControl')"),this.emitDebug(this.formControlElement),this.focus&&this.push(this.focus.subscribe((function(e){t.emitDebug("Catch focus!"),z(t.formControlElement.nativeElement,e)})))},n.prototype.ngAfterViewInit=function(){},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},Object.defineProperty(n.prototype,"value",{get:function(){return this.inputValue},set:function(e){this.emitDebug("@Input set value: "+this.inputValue+" -> "+e),this.setValue(e)},enumerable:!1,configurable:!0}),n.prototype.writeValue=function(e){this.emitDebug("writeValue: "+e),this.setValue(e)},n.prototype.setValue=function(e){this.emitDebug("setValue: "+e),this.inputValue!=e&&(this.emitDebug("update value: "+this.inputValue+" -> "+e),this.inputValue=e,this.cdr.detectChanges(),this.emitDebug("this.valueChange.emit("+e+")"),this.valueChange.emit(e),this.cleanError(),this.onChange&&this.onChange(e))},n.prototype.normalizzaValore=function(){var e=this;setTimeout((function(){e.disabled||(null!=e.min&&e.inputValue<e.min?e.value=null!=e.previousValue?e.previousValue:e.min:null!=e.max&&e.inputValue>e.max&&(e.value=null!=e.previousValue?e.previousValue:e.max)),e.cdr.detectChanges()}))},n.prototype.onKeyUp=function(){null==this.inputValue||this.checkDecimal()||(this.inputValue=this.previousValue,this.valueChange.emit(this.inputValue)),this.inputValue,this.cdr.detectChanges()},n.prototype.checkDecimal=function(){if(null!=this.numberOfDecimals){var e=String(this.inputValue).split(".");return this.numberOfDecimals>0&&(1==e.length||e[1].length<=this.numberOfDecimals)||0==this.numberOfDecimals&&1==e.length}return!0},n}(Ue);wt.decorators=[{type:t.Component,args:[{selector:"inail-input-number",template:'<div class="form-group {{getResponsiveClass()}} noPaddingLeft {{class}} inail-input-number"\n [ngClass]="{\'has-error\': isThereError(), \'no-arrows\': hideArrows}">\n <label *ngIf="label"\n class="control-label {{labelClass}}"\n [ngClass]="{\'sr-only\': hiddenLabel}"\n [attr.title]="labelTitle"\n [for]="id"\n [innerHTML]="getLabel()"></label>\n <span *ngIf="showPopover()"\n [style.padding-left.px]="5">\n <inail-popover [iconClass]="popoverButtonIcon"\n [buttonTitle]="popoverButtonTitle"\n [header]="popoverHeader"\n [content]="popoverContent">\n </inail-popover>\n </span>\n <input #formControl\n type="number"\n [id]="id"\n class="form-control {{inputClass}}"\n [ngClass]="{\'disabled\': disabled}"\n [disabled]="disabled"\n [readonly]="readonly"\n [attr.name]="name"\n [attr.title]="title"\n [attr.max]="max"\n [attr.min]="min"\n [attr.step]="step"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="isThereError() === true ? true : undefined"\n [attr.aria-describedBy]="getAriaDescribedBy()"\n (keyup)="onKeyUp()"\n (blur)="onBlur()"\n (keyup.enter)="enterUp.emit()"\n [value]="inputValue"\n [(ngModel)]=\'value\'>\n \x3c!--<input type="text"\n *ngIf="disabled"\n [id]="id"\n class="form-control disabled {{inputClass}}"\n [attr.name]="name"\n [attr.title]="title"\n [disabled]="disabled"\n [attr.aria-describedBy]="getAriaDescribedBy()"\n [ngModel]=\'value\'>--\x3e\n <div *ngIf="showError()" [id]="id+\'-description\'">\n <div class="msg msg-errore">\n <strong [innerHTML]="\'ERRORE: \'+this.error"></strong>\n </div>\n <div *ngIf="description" [innerHTML]="this.description"></div>\n </div>\n <div *ngIf="description && !showError()"\n [id]="id+\'-description\'"\n [innerHTML]="this.description">\n </div>\n</div>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,providers:[{provide:i.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return wt})),multi:!0}],styles:[".inail-input-number.no-arrows input::-webkit-inner-spin-button,.inail-input-number.no-arrows input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.inail-input-number.no-arrows input[type=number]{-moz-appearance:textfield}"]}]}],wt.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},wt.propDecorators={formControlElement:[{type:t.ViewChild,args:["formControl",{static:!0}]}],max:[{type:t.Input}],min:[{type:t.Input}],step:[{type:t.Input}],numberOfDecimals:[{type:t.Input}],hideArrows:[{type:t.Input}],valueChange:[{type:t.Output}],value:[{type:t.Input}]};var Et=function(e){function t(t){var n=e.call(this,t)||this;return n.cdr=t,n.hidden=!1,n.rendered=!0,n.logPrefix="[inail-container]",n.xs=void 0,n.detach(),n}return P(t,e),t.prototype.ngOnChanges=function(t){e.prototype.ngOnChanges.call(this,t),this.cdr.detectChanges()},t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},t.prototype.ngAfterViewInit=function(){},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t}(F);Et.decorators=[{type:t.Component,args:[{selector:"inail-container",template:'<div [id]="id"\n class="inail-container {{getResponsiveClass()}} {{class}}"\n [hidden]="hidden"\n *ngIf="rendered">\n <ng-content></ng-content>\n</div>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],Et.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},Et.propDecorators={hidden:[{type:t.Input}],rendered:[{type:t.Input}]};var zt=function(e){function n(n,i){var a=e.call(this,n)||this;return a.cdr=n,a.re2=i,a.showNumber=!1,a.fullNavigation=!0,a.contentsHidden=!0,a.currentItem=0,a.currentItemChange=new t.EventEmitter,a.itemChange=new t.EventEmitter,a.prevButtonTitle="scorri selettore a destra",a.nextButtonTitle="scorri selettore a sinistra",a.inizializzazioneContenutiCompletata=!1,a.totalTranslate=0,a.getItemLabel=function(e,t){return e.label+(e.required?" *":"")+(d(a.separator)?" ":"")+(!t&&d(a.separator)?a.separator:"")},a.isActive=function(e){return a.fullNavigation||e<=a.currentItem},a.isContainerItem=function(e,t,n){return e.code?t.id==e.code:n==e.index},a.translate=function(e){a.totalTranslate+=e,a.re2.setStyle(a.slickTrack.nativeElement,"transform","translate("+a.totalTranslate+"px)")},a.logPrefix="[inail-selector]",a.detach(),a}return P(n,e),n.prototype.ngOnChanges=function(t){var n,i,a,o=this;e.prototype.ngOnChanges.call(this,t),(null===(n=null==t?void 0:t.switchToFirstError)||void 0===n?void 0:n.currentValue)&&this.push(t.switchToFirstError.currentValue.subscribe((function(){var e=o.items.find((function(e){return e.error}));e&&o.itemOnClick(e)}))),(null===(i=null==t?void 0:t.switchTo)||void 0===i?void 0:i.currentValue)&&this.push(t.switchTo.currentValue.subscribe((function(e){return o.itemOnClick(e)}))),t.items&&this.inizializzaItems(),t.contentsHidden&&(null===(a=this.contenuti)||void 0===a?void 0:a.length)&&this.inizializzaContenuti(this.contenuti),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this),null==this.currentItem&&this.setCurrentItem(0),this.inizializzaItems()},n.prototype.ngAfterViewInit=function(){this.emitDebug("Contenitori interni"),this.emitDebug(this.contenuti),this.inizializzaContenuti(this.contenuti),this.cdr.detectChanges()},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n.prototype.setCurrentItem=function(e){this.currentItem=e,this.currentItemChange.emit(this.currentItem)},n.prototype.inizializzaItems=function(){this.items&&this.items.forEach((function(e,t){e&&(e.index=t)}))},n.prototype.inizializzaContenuti=function(e){var t,n=this;if(this.contenuti=e,(null===(t=this.contenuti)||void 0===t?void 0:t.length)>0){var i=this.items.find((function(e){return e.index==n.currentItem}));this.showContent(i),setTimeout((function(){n.inizializzazioneContenutiCompletata=!0,n.cdr.detectChanges()}))}},n.prototype.showContent=function(e){var t=this;if(e){this.contenuti.forEach((function(e){return t.modificaVisibilita(e,!1)}));var n=this.contenuti.find((function(n,i){return t.isContainerItem(e,n,i)}));this.modificaVisibilita(n,!0)}},n.prototype.modificaVisibilita=function(e,t){e&&(this.contentsHidden?(e.rendered=!0,e.hidden=!t):(e.rendered=t,e.hidden=!1),e.detectChanges())},n.prototype.itemOnClick=function(e){var t,n;(n=h(e)?this.items.find((function(t){return t.index==e})):g(e)?this.items.find((function(t){return t.code==e})):e)&&((n.index<this.currentItem||n.index>this.currentItem)&&(this.setCurrentItem(n.index),this.itemChange.emit(n)),(null===(t=this.contenuti)||void 0===t?void 0:t.length)>0&&this.showContent(n)),this.cdr.detectChanges()},n.prototype.prevButtonOnClick=function(){this.translate(120),this.cdr.detectChanges()},n.prototype.nextButtonOnClick=function(){this.translate(-120),this.cdr.detectChanges()},n.prototype.getAriaLabelValue=function(e){return e.index==this.currentItem?"Step corrente":e.index<this.currentItem?"Step precedente":"Step successivo"},n}(R);zt.decorators=[{type:t.Component,args:[{selector:"inail-selector",template:'<div [id]="id" class="row wizard courousel-varible-width slick-initialized slick-slider marginBottom inail-selector {{class}}">\n <button #prevButton\n [title]="prevButtonTitle"\n type="button"\n class="slick-prev fa fa-caret-left slick-arrow"\n style="display: block;"\n (click)="prevButtonOnClick()">\n </button>\n <div class="slick-list draggable">\n <div #slickTrack\n class="slick-track"\n style="opacity: 1; width: 45000px; transition: transform 300ms ease 0s">\n\n <div *ngFor="let item of items; last as isLast"\n #slickSlide\n class="slick-slide">\n <div>\n <div [attr.aria-label]="getAriaLabelValue(item)"\n class="item"\n [ngClass]="{\'active\': item.index==currentItem, \'prevActive\': isActive(item.index)}"\n style="width: 100%;\n display: inline-block;">\n\n <a *ngIf="isActive(item.index)"\n [ngClass]="{\'errorLabel\': item.error}"\n (click)="itemOnClick(item)"\n href="javascript:void(0)"\n [attr.title]="item.title ? item.title : item.label">\n <span>\n <span *ngIf="showNumber" class="step-number">{{item.index + 1}} </span>\n <span [innerHTML]="getItemLabel(item, isLast)"></span>\n </span>\n </a>\n <span *ngIf="!isActive(item.index)"\n [ngClass]="{\'errorLabel\': item.error}"\n title="{{item.title ? item.title : item.label}}">\n <span>\n <span *ngIf="showNumber" class="step-number">{{item.index + 1}} </span>\n <span [innerHTML]="getItemLabel(item, isLast)"></span>\n </span>\n </span>\n </div>\n </div>\n </div>\n </div>\n </div>\n <button #nextButton\n [title]="nextButtonTitle"\n type="button"\n class="slick-next fa fa-caret-right slick-arrow"\n style="display: block;"\n (click)="nextButtonOnClick()">\n </button>\n</div>\n<div [hidden]="!inizializzazioneContenutiCompletata">\n <ng-content></ng-content>\n</div>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:[".inail-selector.wizard.courousel-varible-width{padding-left:22px;padding-right:22px}.inail-selector.wizard button.slick-arrow:focus{outline:1px dotted #000!important}.inail-selector.wizard .item>span{color:#767676!important;text-decoration:none;cursor:default}.inail-selector.wizard .item.active>span{color:#002e5f!important;font-weight:700;cursor:default!important;text-decoration:none!important;pointer-events:none}"]}]}],zt.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.Renderer2}]},zt.propDecorators={items:[{type:t.Input}],showNumber:[{type:t.Input}],separator:[{type:t.Input}],fullNavigation:[{type:t.Input}],contentsHidden:[{type:t.Input}],currentItem:[{type:t.Input}],currentItemChange:[{type:t.Output}],itemChange:[{type:t.Output}],switchToFirstError:[{type:t.Input}],switchTo:[{type:t.Input}],prevButtonTitle:[{type:t.Input}],nextButtonTitle:[{type:t.Input}],prevButton:[{type:t.ViewChild,args:["prevButton"]}],nextButton:[{type:t.ViewChild,args:["nextButton"]}],slickTrack:[{type:t.ViewChild,args:["slickTrack"]}],slickSlide:[{type:t.ViewChildren,args:["slickSlide"]}],contenuti:[{type:t.ContentChildren,args:[Et,{descendants:!0}]}]};var Dt=function(e){function n(n,i){var a=e.call(this,n)||this;return a.cdr=n,a.re2=i,a.showNumber=!0,a.separator=">",a.contentsHidden=!0,a.currentStep=0,a.currentStepChange=new t.EventEmitter,a.stepChange=new t.EventEmitter,a.switchTo=new t.EventEmitter,a.prevButtonTitle="scorri wizard a destra",a.nextButtonTitle="scorri wizard a sinistra",a.logPrefix="[inail-wizard]",a.detach(),a}return P(n,e),n.prototype.ngOnChanges=function(t){var n,i,a,o=this;e.prototype.ngOnChanges.call(this,t),(null===(n=null==t?void 0:t.next)||void 0===n?void 0:n.currentValue)&&this.push(null===(i=null==t?void 0:t.next)||void 0===i?void 0:i.currentValue.subscribe((function(){var e;o.currentStep<o.steps.length-1&&(o.currentStep=o.currentStep+1,null===(e=o.switchTo)||void 0===e||e.emit(o.currentStep))}))),(null===(a=null==t?void 0:t.prev)||void 0===a?void 0:a.currentValue)&&this.push(t.prev.currentValue.subscribe((function(){var e;o.currentStep>0&&(o.currentStep=o.currentStep-1,null===(e=o.switchTo)||void 0===e||e.emit(o.currentStep))}))),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},n.prototype.ngAfterViewInit=function(){this.emitDebug("Contenitori interni"),this.emitDebug(this.contenuti),this.selectorComponent.inizializzaContenuti(this.contenuti),this.cdr.detectChanges()},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n.prototype.emitWizardLog=function(e){g(e.message)&&(e.message=e.message.replace("[inail-selector]",this.logPrefix)),this.log.emit(e)},n.prototype.currentStepChangeHandler=function(e){this.currentStep=e,this.currentStepChange.emit(e)},n.prototype.stepChangeHandler=function(e){this.stepChange.emit(e)},n}(R);Dt.decorators=[{type:t.Component,args:[{selector:"inail-wizard",template:'<inail-selector #selectorComponent\n [items]="steps"\n [contentsHidden]="contentsHidden"\n [currentItem]="currentStep"\n (currentItemChange)="currentStepChangeHandler($event)"\n [fullNavigation]="false"\n [nextButtonTitle]="nextButtonTitle"\n [prevButtonTitle]="prevButtonTitle"\n [separator]="separator"\n [showNumber]="showNumber"\n [switchToFirstError]="switchToFirstError"\n [switchTo]="switchTo"\n (itemChange)="stepChangeHandler($event)"\n [id]="id"\n [class]="class"\n [detectChange]="detectChange"\n [logOnConsole]="logOnConsole"\n [showState]="showState"\n (log)="emitWizardLog($event)">\n <ng-content></ng-content>\n</inail-selector>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],Dt.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.Renderer2}]},Dt.propDecorators={steps:[{type:t.Input}],contentsHidden:[{type:t.Input}],currentStep:[{type:t.Input}],currentStepChange:[{type:t.Output}],stepChange:[{type:t.Output}],switchToFirstError:[{type:t.Input}],switchTo:[{type:t.Input}],prevButtonTitle:[{type:t.Input}],nextButtonTitle:[{type:t.Input}],next:[{type:t.Input}],prev:[{type:t.Input}],contenuti:[{type:t.ContentChildren,args:[Et,{descendants:!0}]}],selectorComponent:[{type:t.ViewChild,args:[zt]}]};var kt=function(e){function t(t){var n=e.call(this,t)||this;return n.cdr=t,n.valuenow=0,n.logPrefix="[inail-progress-bar]",n.detach(),n}return P(t,e),t.prototype.ngOnChanges=function(t){var n;e.prototype.ngOnChanges.call(this,t),(null===(n=null==t?void 0:t.valuenow)||void 0===n?void 0:n.currentValue)&&(this.valuenow<0?this.valuenow=0:this.valuenow>100&&(this.valuenow=100)),this.cdr.detectChanges()},t.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},t.prototype.ngAfterViewInit=function(){},t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t}(F);kt.decorators=[{type:t.Component,args:[{selector:"inail-progress-bar",template:'<div [id]="id"\n class="inail-progress-bar {{getResponsiveClass()}} noPaddingLeft noPaddingRight {{class}}">\n <span *ngIf="label" [innerHTML]="label"></span>\n <span class="progress">\n <span role="progressbar"\n aria-valuemin="0"\n aria-valuemax="100"\n title="Stato avanzamento: {{valuenow}}%"\n class="progress-bar"\n [ngClass]="{\'progress-bar-25\': valuenow <= 25, \'progress-bar-50\': valuenow > 25 && valuenow <= 50, \'progress-bar-75\': valuenow > 50 && valuenow <= 75, \'progress-bar-100\': valuenow == 100}"\n [attr.aria-valuenow]="valuenow"\n [style.width.%]="valuenow">\n </span>\n </span>\n</div>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:[""]}]}],kt.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},kt.propDecorators={label:[{type:t.Input}],valuenow:[{type:t.Input}]};var Ot=function(e){function n(n){var i=e.call(this,n)||this;return i.cdr=n,i.options=[],i.values=[],i.valuesChange=new t.EventEmitter,i.placeholder="- seleziona opzioni -",i.toggle=function(){return window.$(i.formControlElement.nativeElement).dropdown("toggle")},i.isExpanded=function(){return"true"===i.formControlElement.nativeElement.getAttribute("aria-expanded")},i.hasFormControlFocus=function(){return i.formControlElement.nativeElement.matches(":focus")},i.hasDropdownMenuFocus=function(){return i.dropdownMenu.nativeElement.matches(":focus-within")},i.isChecked=function(e){return i.values.some((function(t){return t===e}))},i.getInputTextValue=function(){return i.options.filter((function(e){return i.isChecked(e.value)})).map((function(e){return e.label})).join(", ")},i.pushValue=function(e){return i.values=i.options.filter((function(t){return t.value===e||i.isChecked(t.value)})).map((function(e){return e.value}))},i.isFocusOut=function(){return 0==window.$(i.multiSelect.nativeElement).find(document.activeElement).length},i.logPrefix="[inail-multi-select]",i.detach(),i}return P(n,e),n.prototype.ngOnChanges=function(t){var n,i,a;if(e.prototype.ngOnChanges.call(this,t),((null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.currentValue)||(null===(i=null==t?void 0:t.sort)||void 0===i?void 0:i.currentValue))&&this.sort){var o="ASC"==this.sort.toUpperCase()?1:"DESC"==this.sort.toUpperCase()?-1:0;0!=o&&null!=this.options&&this.options.sort((function(e,t){return e.label<t.label?-o:e.label>t.label?o:0}))}(null===(a=null==t?void 0:t.options)||void 0===a?void 0:a.currentValue)&&(this.inputTextValue=this.getInputTextValue()),this.cdr.detectChanges()},n.prototype.ngOnInit=function(){var t=this;e.prototype.ngOnInit.call(this),this.emitDebug("@ViewChild('formControl')"),this.emitDebug(this.formControlElement),this.focus&&this.push(this.focus.subscribe((function(e){t.emitDebug("Catch focus!"),z(t.formControlElement.nativeElement,e)})))},n.prototype.ngAfterViewInit=function(){},n.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},n.prototype.onKeypress=function(e){e.preventDefault()},n.prototype.onFocusIn=function(){var e=this;setTimeout((function(){e.showDropdownMenu()}),250)},n.prototype.onFocusOut=function(){var e=this;setTimeout((function(){e.isFocusOut()&&e.closeDropdownMenu()}),150)},n.prototype.showDropdownMenu=function(){var e=this;setTimeout((function(){e.isExpanded()||e.toggle()}))},n.prototype.closeDropdownMenu=function(){var e=this;setTimeout((function(){e.isExpanded()&&e.toggle()}))},n.prototype.onCheck=function(e){e.firstChange||(e.checked&&!this.isChecked(e.value)?(this.pushValue(e.value),this.cleanError()):!e.checked&&this.isChecked(e.value)&&(this.values=this.values.filter((function(t){return t!=e.value})),this.cleanError()),this.valuesChange.emit(this.values),this.inputTextValue=this.getInputTextValue(),this.cdr.detectChanges())},n}(Ue);Ot.decorators=[{type:t.Component,args:[{selector:"inail-multi-select",template:'<div #multiSelect\n class="form-group {{getResponsiveClass()}} noPaddingLeft {{class}} inail-multi-select"\n [ngClass]="{\'has-error\': isThereError()}">\n <label *ngIf="label"\n class="control-label {{labelClass}}"\n [ngClass]="{\'sr-only\': hiddenLabel}"\n [attr.title]="labelTitle"\n [for]="id"\n [innerHTML]="getLabel()"></label>\n <span *ngIf="showPopover()"\n [style.padding-left.px]="5">\n <inail-popover [iconClass]="popoverButtonIcon"\n [buttonTitle]="popoverButtonTitle"\n [header]="popoverHeader"\n [content]="popoverContent">\n </inail-popover>\n </span>\n <div class="form-control-wrapper"\n [ngClass]="{\'no-label\' : hiddenLabel || !label}">\n <input #formControl\n type="text"\n [id]="id"\n class="form-control dropdown-toggle {{inputClass}}"\n data-toggle="dropdown"\n aria-haspopup="true"\n aria-expanded="false"\n [ngClass]="{\'disabled\': disabled}"\n [attr.name]="name"\n [attr.title]="title"\n [disabled]="disabled"\n [readonly]="true"\n [attr.placeholder]="placeholder"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="isThereError() === true ? true : undefined"\n [attr.aria-describedBy]="getAriaDescribedBy()"\n (blur)="onBlur()"\n (focusin)="onFocusIn()"\n (focusout)="onFocusOut()"\n (keypress)="onKeypress($event)"\n (keyup.enter)="enterUp.emit()"\n [ngModel]="inputTextValue">\n <div #dropdownMenu\n class="dropdown-menu"\n (focusout)="onFocusOut()"\n [attr.aria-labelledby]="id">\n <ng-container *ngFor="let opt of options">\n <div *ngIf="opt.beforeDivider" class="divider"></div>\n <div class="row" [attr.tabIndex]="opt.disabled ? 0 : undefined">\n <inail-checkbox [label]="opt.label"\n [value]="opt.value"\n [title]="opt.title"\n [checked]="isChecked(opt.value)"\n [disabled]="opt.disabled"\n (stateChange)="onCheck($event)">\n </inail-checkbox>\n </div>\n <div *ngIf="opt.afterDivider" class="divider"></div>\n </ng-container>\n </div>\n </div>\n <div *ngIf="showError()" [id]="id+\'-description\'">\n <div class="msg msg-errore">\n <strong [innerHTML]="\'ERRORE: \'+this.error"></strong>\n </div>\n <div *ngIf="description" [innerHTML]="this.description"></div>\n </div>\n <div *ngIf="description && !showError()"\n [id]="id+\'-description\'"\n [innerHTML]="this.description">\n </div>\n</div>\n',changeDetection:T,encapsulation:t.ViewEncapsulation.None,styles:['.inail-multi-select .form-control-wrapper:after{font-family:FontAwesome;content:"\\f078";right:31px;position:absolute;top:35px;font-size:10px;color:#0083f5}.inail-multi-select .form-control-wrapper.no-label:after{top:11px}.inail-multi-select .form-control[readonly]:not([disabled]){background-color:#fff}.inail-multi-select .form-control:not([disabled]){cursor:pointer}.inail-multi-select .dropdown-menu .form-group{margin:0!important;padding-left:20px!important}.inail-multi-select .dropdown-menu .form-group:hover{background-color:#eaedf2}.inail-multi-select .dropdown-menu .form-group .checkbox{margin:0!important}.inail-multi-select .dropdown-menu .form-group .checkbox label{margin-top:5px!important;margin-bottom:5px!important;display:block!important}']}]}],Ot.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},Ot.propDecorators={multiSelect:[{type:t.ViewChild,args:["multiSelect",{static:!0}]}],formControlElement:[{type:t.ViewChild,args:["formControl",{static:!0}]}],dropdownMenu:[{type:t.ViewChild,args:["dropdownMenu",{static:!0}]}],options:[{type:t.Input}],values:[{type:t.Input}],valuesChange:[{type:t.Output}],placeholder:[{type:t.Input}],sort:[{type:t.Input}]};var xt=function(){};xt.decorators=[{type:t.NgModule,args:[{declarations:[S,R,F,Ue,$e,N,M,B,$,Ge,G,W,J,Z,X,K,ee,Pe,fe,Le,We,Je,Ye,ue,Xe,Ke,Qe,ge,et,tt,rt,lt,ct,ut,dt,ht,gt,mt,Ct,vt,It,wt,zt,Dt,Et,bt,kt,Ot],imports:[a.CommonModule,i.FormsModule,i.ReactiveFormsModule,o.HttpClientModule,l.RouterModule],exports:[$e,$,Ge,G,W,J,Z,X,K,ee,Pe,fe,Le,We,Je,Ye,ue,Xe,Ke,Qe,ge,et,tt,rt,lt,ct,ut,dt,ht,gt,mt,Ct,vt,It,wt,zt,Dt,Et,bt,kt,Ot],providers:[a.DatePipe]}]}],e.AccordionComponent=Xe,e.AlertComponent=dt,e.BaseComponent=S,e.BreadcrumbComponent=Le,e.ButtonComponent=ge,e.CHANGE_DETECTION_STRATEGY=T,e.CheckboxComponent=ct,e.ConfirmComponent=ht,e.ContainerComponent=Et,e.ERROR_BTN_CLASS=he,e.Feedback=Ze,e.FeedbackComponent=Ye,e.FooterComponent=$,e.FormGreyComponent=We,e.HeaderComponent=X,e.HeaderConfigurations=Q,e.InailLayoutComponent=fe,e.InailLayoutConfigurations=me,e.InailTablePageSelectorComponent=gt,e.InputDateComponent=rt,e.InputFileComponent=It,e.InputNumberComponent=wt,e.InputTextComponent=$e,e.LoaderComponent=K,e.MenuComponent=ue,e.MenuIntranetComponent=J,e.MenuItem=le,e.ModalComponent=ut,e.MultiSelectComponent=Ot,e.NavigazioneInternaComponent=G,e.NavigazionePrincipaleComponent=W,e.NavigazioneSecondariaComponent=Pe,e.NavigazioneUtenteComponent=Z,e.NavigazioneUtenteConfigurations=Y,e.NgInailCommonModule=xt,e.PageTitleComponent=Je,e.PopoverComponent=et,e.ProgressBarComponent=kt,e.RadioSelectComponent=lt,e.ResponsiveElementComponent=F,e.SelectComponent=Ge,e.SelectorComponent=zt,e.SortingInfo=ft,e.TabGroupComponent=Ke,e.TabPaneComponent=Qe,e.TableComponent=Ct,e.TablePageLengthSelectorComponent=mt,e.TextareaComponent=tt,e.ThLabelComponent=vt,e.TrCheckboxComponent=bt,e.WizardComponent=Dt,e.addZero=qe,e.call=D,e.clone=C,e.dateToString=He,e.isAbsolute=m,e.isBlankOrNull=u,e.isDate=Fe,e.isHidden=O,e.isInISO8601Format=Re,e.isInItalianFormat=Ae,e.isInvalidDateObject=_e,e.isListEmptyOrNull=b,e.isListNotEmptyOrNull=y,e.isNotBlankOrNull=d,e.isNumber=h,e.isString=g,e.isValidDateObject=function(e){return e&&!!e.getFullYear()},e.isValidRadioValue=function(e,t){return y(e)&&e.findIndex((function(e){return e.value==t}))>=0},e.isValidSelectValue=function(e,t,n){return n&&(!t||0==t.length)||y(e)&&e.findIndex((function(e){return e.value==t}))>=0},e.reformatDate=Be,e.scrollTo=I,e.scrollToElement=w,e.scrollTop=E,e.setFocus=z,e.setFocusOnError=Oe,e.setFocusOnFeedback=function(e,t,n){setTimeout((function(){var n=document.querySelectorAll("#"+e)[0];if(n){t&&w(n.getAttribute("id"));var i=n.querySelector(".feedback-focusable");null!=i&&setTimeout((function(){return i.focus()}),500)}}),n||100)},e.setFocusOnFirstErrorFeedback=function(e){return Ve(".feedback-box-error",e)},e.setFocusOnFirstFeedback=Ve,e.setFocusOnFirstModalError=xe,e.setFocusOnFirstPageError=Te,e.setFocusOnGlobalErrorFeedback=Se,e.setFocusOnGlobalFeedback=function(e){return Ve(".global-feedback",e)},e.setPageScroll=x,e.startWith=v,e.startWithSlash=f,e.toDateObject=je,e.toISO8601Format=Me,e.toItalianFormat=Ne,e.uuidv4=k,e.ɵ0=it,e.ɵ1=ot,e.ɵ2=Ce,e.ɵ3=we,e.ɵ4=ze,e.ɵ5=ke,e.ɵa=R,e.ɵb=Ue,e.ɵc=N,e.ɵd=M,e.ɵe=B,e.ɵf=ee,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
17
17
|
//# sourceMappingURL=ng-inail-common.umd.min.js.map
|