ng-inail-common 1.0.428 → 1.0.430
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 +4 -4
- package/bundles/ng-inail-common.umd.js.map +1 -1
- package/bundles/ng-inail-common.umd.min.js +1 -1
- package/bundles/ng-inail-common.umd.min.js.map +1 -1
- package/esm2015/lib/components/ux/accordion/accordion.component.js +3 -3
- package/esm2015/lib/components/ux/radio-select/radio-select.component.js +2 -2
- package/esm2015/lib/components/ux/select/select.component.js +2 -2
- package/esm5/lib/components/ux/accordion/accordion.component.js +3 -3
- package/esm5/lib/components/ux/radio-select/radio-select.component.js +2 -2
- package/esm5/lib/components/ux/select/select.component.js +2 -2
- package/fesm2015/ng-inail-common.js +4 -4
- package/fesm2015/ng-inail-common.js.map +1 -1
- package/fesm5/ng-inail-common.js +4 -4
- package/fesm5/ng-inail-common.js.map +1 -1
- package/ng-inail-common.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/common"),require("moment"),require("@angular/forms"),require("@ng-bootstrap/ng-bootstrap"),require("rxjs/internal-compatibility"),require("rxjs/operators"),require("@angular/platform-browser"),require("@angular/common/http"),require("@angular/router"),require("uuid"),require("@angular/core")):"function"==typeof define&&define.amd?define("ng-inail-common",["exports","@angular/common","moment","@angular/forms","@ng-bootstrap/ng-bootstrap","rxjs/internal-compatibility","rxjs/operators","@angular/platform-browser","@angular/common/http","@angular/router","uuid","@angular/core"],t):t(e["ng-inail-common"]={},e.ng.common,e.moment_,e.ng.forms,e.ngBootstrap,e.rxjs["internal-compatibility"],e.rxjs.operators,e.ng.platformBrowser,e.ng.common.http,e.ng.router,e.uuid,e.ng.core)}(this,function(e,t,n,i,r,a,o,s,l,c,p,u){"use strict";var d=function(){function e(){}return e.decorators=[{type:u.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[]},e.ngInjectableDef=u.defineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e}(),h=function(){function e(){}return e.prototype.ngOnInit=function(){},e.decorators=[{type:u.Component,args:[{selector:"inail-ng-inail-common",template:"\n <p>\n ng-inail-common works!\n </p>\n ",encapsulation:u.ViewEncapsulation.None}]}],e.ctorParameters=function(){return[]},e}(),g=function(e,t){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function m(e,t){function n(){this.constructor=e}g(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var f=function(){return(f=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function b(t,o,s,l){return new(s||(s=Promise))(function(e,n){function i(e){try{r(l.next(e))}catch(t){n(t)}}function a(e){try{r(l["throw"](e))}catch(t){n(t)}}function r(t){t.done?e(t.value):new s(function(e){e(t.value)}).then(i,a)}r((l=l.apply(t,o||[])).next())})}function v(i,a){var r,o,s,e,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return e={next:t(0),"throw":t(1),"return":t(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function n(e){if(r)throw new TypeError("Generator is already executing.");for(;l;)try{if(r=1,o&&(s=2&e[0]?o["return"]:e[0]?o["throw"]||((s=o["return"])&&s.call(o),0):o.next)&&!(s=s.call(o,e[1])).done)return s;switch(o=0,s&&(e=[2&e[0],s.value]),e[0]){case 0:case 1:s=e;break;case 4:return l.label++,{value:e[1],done:!1};case 5:l.label++,o=e[1],e=[0];continue;case 7:e=l.ops.pop(),l.trys.pop();continue;default:if(!(s=0<(s=l.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){l=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){l.label=e[1];break}if(6===e[0]&&l.label<s[1]){l.label=s[1],s=e;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(e);break}s[2]&&l.ops.pop(),l.trys.pop();continue}e=a.call(i,l)}catch(t){e=[6,t],o=0}finally{r=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([t,e])}}}function y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,a,r=n.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(a)throw a.error}}return o}function w(e){return!(e&&0<String(e).trim().length)}function E(e){return!w(e)}function I(e){return!function(e){return!(e&&0<e.length)}(e)}function C(e){return e!=undefined&&e.startsWith!=undefined&&e.startsWith("http")}function k(e){return document.getElementsByTagName("html")[0].style["overflow-y"]=e?"scroll":"hidden"}function z(e){return e?e.find("input:focusable,select:focusable,textarea:focusable,.ck-editor__editable,.feedback-focusable"):undefined}function x(){setTimeout(function(){0==$(".ui-effects-wrapper").length&&jQuery(".slider-menu").toggle("slide","direction: left",500)})}var D={LOG:"log",DEBUG:"debug",INFO:"info",WARN:"warn",ERROR:"error"},T=function(){function e(){this.log=new u.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.emitLog=function(e){this.emit({message:e,level:D.LOG})},e.prototype.emitInfo=function(e){this.emit({message:e,level:D.INFO})},e.prototype.emitDebug=function(e){this.emit({message:e,level:D.DEBUG})},e.prototype.emitWarn=function(e){this.emit({message:e,level:D.WARN})},e.prototype.emitError=function(e){this.emit({message:e,level:D.ERROR})},e.prototype.emit=function(e){e&&(!0===this.logOnConsole?console[e.level].apply(this,[e.message]):this.log.emit(e))},e.decorators=[{type:u.Component,args:[{selector:"inail-base",template:"<p>\n base works!\n</p>\n",encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e.propDecorators={log:[{type:u.Output}],logOnConsole:[{type:u.Input}]},e}(),O=function Et(){},S=function(t){function e(){var e=t.call(this)||this;return e.id=p.v4(),e}return m(e,t),e.decorators=[{type:u.Component,args:[{selector:"inail-basic-ux-element",template:"<p>\n basic-ux-element works!\n</p>\n",encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e.propDecorators={id:[{type:u.Input}],"class":[{type:u.Input}]},e}(T),P=function(t){function e(){var e=t.call(this)||this;return e.toggle=new u.EventEmitter,e}return m(e,t),e.prototype.ngOnInit=function(){this.mostra=!this.collapsed},e.prototype.onToggle=function(){this.mostra=!this.mostra,this.toggle.emit(this.mostra)},e.prototype.getTitolo=function(){return this.titolo?this.required?this.titolo.concat(" *"):this.titolo:""},Object.defineProperty(e.prototype,"toggleTitleText",{get:function(){return 1==this.mostra?this.toggleTitleOpened||this.toggleTitle||"Riduce l'accordion":this.toggleTitleClosed||this.toggleTitle||"Espande l'accordion"},enumerable:!0,configurable:!0}),e.decorators=[{type:u.Component,args:[{selector:"inail-accordion",template:'<div class="inail-accordion-view-encapsulation row panel panel-default form-accordion noPadding {{class}}">\n <div class="row panel-heading heading-form-grey"\n (click)="onToggle()"\n (keyup.space)="onToggle()"\n (keydown.space)="false"\n role="heading">\n <h3 class="title-modulo"\n [ngClass]="{\'has-error\': hasError}"\n [innerHTML]="getTitolo()"></h3>\n <a href="javascript:void(0)"\n role="button"\n class="accordion-toggle-command"\n [attr.aria-label]="toggleTitleText"\n [attr.aria-controls]="id"\n [attr.aria-expanded]="mostra">\n <span class="fa {{mostra ? \'fa-chevron-up\' : \'fa-chevron-down\'}}"> </span>\n </a>\n </div>\n <div [attr.id]=\'id || undefined\'\n [hidden]="!mostra"\n class="row panel-body body-form-grey"\n role="region">\n <div class="col-md-12 col-lg-12">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[".accordion{transition:height .5s ease-in-out;overflow:hidden}.inail-accordion-view-encapsulation .ac_hidden{height:0;padding:0}.inail-accordion-view-encapsulation .panel-heading{cursor:pointer}.inail-accordion-view-encapsulation .title-modulo.has-error{color:#c9291b!important}.inail-accordion-view-encapsulation .accordion-toggle-command{margin:12px 15px 8px;position:absolute;top:0;right:10px;width:15px;height:15px}.inail-accordion-view-encapsulation .accordion-toggle-command span{right:0!important}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={titolo:[{type:u.Input}],toggleTitle:[{type:u.Input}],toggleTitleOpened:[{type:u.Input}],toggleTitleClosed:[{type:u.Input}],collapsed:[{type:u.Input}],hasError:[{type:u.Input}],required:[{type:u.Input}],toggle:[{type:u.Output}]},e}(S),V=function(e,t,n){var i=e&&e[t]!=undefined&&a.isFunction(e[t])?e[t](n):undefined;return{data:i,call:function(e,t){return V(i,e,t)}}},L=function(e){function t(){return e.call(this)||this}return m(t,e),t.decorators=[{type:u.Component,args:[{selector:"inail-responsive-element",template:"<p>\n responsive-element works!\n</p>\n",encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],t.ctorParameters=function(){return[]},t.propDecorators={lg:[{type:u.Input}],md:[{type:u.Input}],sm:[{type:u.Input}],xs:[{type:u.Input}]},t}(S),A=function(t){function e(){var e=t.call(this)||this;return e.enterUp=new u.EventEmitter,e.popover=!1,e.cleanErrorOnChange=!0,e.showPopover=function(){return!0===e.popover},e.hasFocus=function(){return document.activeElement&&document.activeElement.id==e.id},e}return m(e,t),e.prototype.cleanError=function(){var e=this;setTimeout(function(){e.hasError&&(e.hasError=!1),e.descError&&(e.descError=undefined)})},e.decorators=[{type:u.Component,args:[{selector:"inail-form-element",template:"<p>\n form-element works!\n</p>\n",encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e.propDecorators={label:[{type:u.Input}],title:[{type:u.Input}],name:[{type:u.Input}],labelTitle:[{type:u.Input}],labelClass:[{type:u.Input}],inputClass:[{type:u.Input}],required:[{type:u.Input}],requiredSimbol:[{type:u.Input}],disabled:[{type:u.Input}],readonly:[{type:u.Input}],hasError:[{type:u.Input}],hiddenLabel:[{type:u.Input}],descError:[{type:u.Input}],enterUp:[{type:u.Output}],errorPrefix:[{type:u.Input}],popover:[{type:u.Input}],popoverButtonIcon:[{type:u.Input}],popoverButtonTitle:[{type:u.Input}],popoverTitle:[{type:u.Input}],popoverContent:[{type:u.Input}],cleanErrorOnChange:[{type:u.Input}]},e}(L),U=function(t){function e(){var e=t.call(this)||this;return e.checkedChange=new u.EventEmitter,e.clickCheckBox=new u.EventEmitter,e.click=new u.EventEmitter,e}return m(e,t),e.prototype.ngOnChanges=function(e){e.checked&&!e.checked.firstChange&&(this.hasError=!1,this.descError=undefined)},e.prototype.ngOnInit=function(){w(this.title)&&(this.title=this.label)},Object.defineProperty(e.prototype,"checked",{get:function(){return this.checkedValue},set:function(e){this.checkedValue=e,this.checkedChange.emit(this.checkedValue)},enumerable:!0,configurable:!0}),e.prototype.checkError=function(){return this.hasError||E(this.descError)},e.prototype.checkDescError=function(){var e=this.getDescError();return this.checkError()&&E(e)},e.prototype.getDescError=function(){return this.descError},e.prototype.cbOnEnter=function(){this.checked=!this.checked,this.enterUp.emit()},e.prototype.onClick=function(e){e.stopPropagation(),this.click.emit(e)},e.decorators=[{type:u.Component,args:[{selector:"inail-checkbox",template:'<div class="form-group col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} noPaddingLeft {{class}}"\n (click)="$event.stopPropagation()"\n [ngClass]="{\'has-error\': checkError()}">\n <div class="checkbox" (click)="$event.stopPropagation()">\n <label class="checkbox-inline {{labelClass}}"\n title="{{labelTitle}}"\n (click)="onClick($event)"\n [htmlFor]="id">\n <input id="{{id}}"\n class="{{inputClass}}"\n type="checkbox"\n (click)="clickCheckBox.emit()"\n [disabled]="disabled"\n (keyup.enter)="cbOnEnter()"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="checkError() === true ? true : undefined"\n [attr.aria-describedBy]="checkDescError() ? id+\'-description-error\' : undefined"\n [(ngModel)]=\'checked\'\n title="{{title}}">\n <span *ngIf="label"\n (click)="$event.stopPropagation()"\n [hidden]="hiddenLabel"\n [innerHTML]="label.concat(required ? \' \'+(requiredSimbol || \'*\') : \'\')"></span>\n </label>\n </div>\n <ng-container *ngIf="checkDescError()">\n <span [id]="id+\'-description-error\'"\n (click)="$event.stopPropagation()"\n class="msg msg-errore">\n <strong (click)="$event.stopPropagation()"\n [innerHTML]="(errorPrefix===false ? \'\' : \'ERRORE: \')+getDescError()"></strong>\n </span>\n </ng-container>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e.propDecorators={checkedChange:[{type:u.Output}],clickCheckBox:[{type:u.Output}],click:[{type:u.Output}],checked:[{type:u.Input}]},e}(A),F="modal-confirm",M=function(t){function e(){var e=t.call(this)||this;return e.modalConfirmClass=F,e.confirm=new u.EventEmitter,e.decline=new u.EventEmitter,e.close=new u.EventEmitter,e.visualizzaContent=!0,e}return m(e,t),e.prototype.ngOnChanges=function(e){},e.prototype.ngOnInit=function(){w(this.titolo)&&(this.titolo="Conferma operazione"),w(this.testo)&&(this.testo="Si richiede la conferma dell'operazione"),w(this.confirmButtonLabel)&&(this.confirmButtonLabel="Si"),w(this.declineButtonLabel)&&(this.declineButtonLabel="No"),this.show==undefined&&(this.show=new u.EventEmitter)},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout(function(){e.visualizzaContent=0<e.modalContent.nativeElement.firstChild.childNodes.length})},e.prototype.confirmOnClick=function(){this.closeModal(),this.confirm.emit()},e.prototype.declineOnClick=function(){this.closeModal(),this.decline.emit()},e.prototype.cancelOnClick=function(){this.close.emit()},e.prototype.closeModal=function(){this.show.emit(!1)},e.decorators=[{type:u.Component,args:[{selector:"inail-confirm",template:'<inail-modal [id]="id"\n [show]="show"\n [class]="class"\n [titolo]="titolo"\n [logOnConsole]="logOnConsole"\n [width]="\'M\'"\n (close)="close.emit($event)"\n (log)="log.emit($event)">\n\n <div *ngIf="!visualizzaContent" class="row">\n <p [innerHTML]="testo"></p>\n </div>\n <div #modalContent *ngIf="visualizzaContent" class="row">\n <p>\n <ng-content></ng-content>\n </p>\n </div>\n <div class="row confirm-footer">\n <button type="button"\n (click)="declineOnClick()"\n class="btn btn-primary" [innerHTML]="declineButtonLabel"></button>\n <inail-button [class]="\'pull-right\'"\n [submit]="isValidationConfirm"\n [label]="confirmButtonLabel"\n (click)="confirmOnClick()">\n </inail-button>\n </div>\n\n</inail-modal>\n\n\n\x3c!--<div class="modal fade {{class}} {{modalConfirmClass}}"\n [attr.id]=\'id || undefined\'\n tabindex="-1"\n role="dialog"\n data-keyboard="false" data-backdrop="static"\n [attr.aria-labelledby]="id+\'-TITOLO\'">\n <div class="vertical-alignment-helper">\n <div class="modal-dialog vertical-align-center">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button"\n id="{{id}}_close_button"\n (click)="cancelOnClick()"\n class="close"\n data-dismiss="modal"\n aria-label="Close">\n <span aria-hidden="true">×</span>\n </button>\n <div class="modal-title"\n id="{{id}}-TITOLO" [innerHTML]="titolo"></div>\n </div>\n <div class="modal-body">\n <div *ngIf="!visualizzaContent" class="row">\n <p [innerHTML]="testo"></p>\n </div>\n <div #modalContent *ngIf="visualizzaContent" class="row">\n <p>\n <ng-content></ng-content>\n </p>\n </div>\n </div>\n <div class="modal-footer">\n <button type="button"\n (click)="declineOnClick()"\n class="btn btn-primary" [innerHTML]="declineButtonLabel"></button>\n <inail-button [class]="\'pull-right\'"\n [submit]="isValidationConfirm"\n [label]="confirmButtonLabel"\n (click)="confirmOnClick()">\n </inail-button>\n </div>\n </div>\n </div>\n </div>\n</div>--\x3e\n',encapsulation:u.ViewEncapsulation.None,styles:[".confirm-footer{padding-bottom:20px!important;padding-top:35px!important}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={titolo:[{type:u.Input}],testo:[{type:u.Input}],confirmButtonLabel:[{type:u.Input}],declineButtonLabel:[{type:u.Input}],show:[{type:u.Input}],confirm:[{type:u.Output}],decline:[{type:u.Output}],close:[{type:u.Output}],isValidationConfirm:[{type:u.Input}],modalContent:[{type:u.ViewChild,args:["modalContent"]}]},e}(S),R=n,N=function(){function r(){}return r.isDate=function(e){var t=r.toDateObject(e);return r.isValidDateObject(t)},r.isPastDate=function(e){var t=r.toDateObject(e);if(r.isValidDateObject(t))return r.isPastDateObject(t);throw new Error("La stringa in input non rappresenta una data")},r.isFutureDate=function(e){var t=r.toDateObject(e);if(r.isValidDateObject(t))return r.isFutureDateObject(t);throw new Error("La stringa in input non rappresenta una data")},r.isPastDateObject=function(e){return r.compareDateObject(e,new Date)<0},r.isFutureDateObject=function(e){return 0<r.compareDateObject(e,new Date)},r.compareDateObject=function(e,t){var n=null;if(r.isValidDateObject(e)&&r.isValidDateObject(e)){var i=r.toShortString(e),a=r.toShortString(t);n=R(i,r.MOMENT_SHORT_DATE_FORMAT)<R(a,r.MOMENT_SHORT_DATE_FORMAT)?-1:R(i,r.MOMENT_SHORT_DATE_FORMAT)>R(a,r.MOMENT_SHORT_DATE_FORMAT)?1:0}return n},r.isValidDateObject=function(e){return e&&!!e.getFullYear()},r.toDateObject=function(e){var t=null;if(e){if(r.isInItalianFormat(e)){var n=e.split("/");e=n[1].concat("/").concat(n[0]).concat("/").concat(n[2])}t=new Date(e)}return t},r.isInItalianFormat=function(e){return E(e)&&new RegExp(/^[0-3][0-9][\/][0-1][0-9][\/][1-9][0-9]{3}$/).test(e)},r.isInRFC3339Format=function(e){return E(e)&&new RegExp(/^[1-9][0-9]{3}-[0-9]{2}-[0-9]{2}/).test(e)},r.isInISO8601Format=function(e){return E(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)},r.isValidDate=function(e){return r.isInItalianFormat(e)?R(e,r.MOMENT_SHORT_DATE_FORMAT).isValid():R(e).isValid()},r.toItalianFormat=function(e){return r.isInItalianFormat(e)?e:r.toShortString(new Date(e))},r.toShortString=function(e){return r.toString(e,r.FORMATO_DATA)},r.toString=function(e,t){var n=null;return r.isValidDateObject(e)&&(n=R(e).format(t.toUpperCase())),n},r.reformat=function(e,t){var n=this.toDateObject(e);return this.toString(n,t)},r.MOMENT_SHORT_DATE_FORMAT="DD/MM/YYYY",r.FORMATO_DATA="dd/MM/yyyy",r}(),H={it:{weekdays:["Lu","Ma","Me","Gi","Ve","Sa","Do"],months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"]}},j=function(){function e(){this.language="it"}return e.decorators=[{type:u.Injectable}],e}(),_=function(n){function e(e){var t=n.call(this)||this;return t._i18n=e,t}return m(e,n),e.prototype.getWeekdayShortName=function(e){return H[this._i18n.language].weekdays[e-1]},e.prototype.getMonthShortName=function(e){return H[this._i18n.language].months[e-1]},e.prototype.getMonthFullName=function(e){return this.getMonthShortName(e)},e.prototype.getDayAriaLabel=function(e){return e.day+"-"+e.month+"-"+e.year},e.decorators=[{type:u.Injectable}],e.ctorParameters=function(){return[{type:j}]},e}(r.NgbDatepickerI18n),B=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype.fromModel=function(e){return W.toNgbDateStruct(e)},t.prototype.toModel=function(e){return this._italianFormat&&"IT"==this._italianFormat?W.toItalianFormatString(e):W.toRFC3339FormatString(e)},Object.defineProperty(t.prototype,"italianFormat",{set:function(e){this._italianFormat=e},enumerable:!0,configurable:!0}),t.decorators=[{type:u.Injectable}],t}(r.NgbDateAdapter),q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype.format=function(e){return W.toItalianFormatString(e)},t.prototype.parse=function(e){return W.toNgbDateStruct(e)},t.decorators=[{type:u.Injectable}],t}(r.NgbDateParserFormatter),G=function(a){function e(e,t,n){var i=a.call(this)||this;return i.ngbDateParserFormatter=t,i.ngbDateAdapter=n,i.options={autoclose:!0,format:"dd/mm/yyyy",weekStart:1,todayBtn:"linked",language:"it",todayHighlight:!0,orientation:"auto top",enableOnReadonly:!1},i.dataChange=new u.EventEmitter,i}return m(e,a),e.prototype.ngOnChanges=function(e){e.data&&!e.data.firstChange&&(this.hasError=!1,this.descError=undefined)},e.prototype.ngOnInit=function(){var e=this;this.modelFormat||(this.modelFormat="RFC3339"),this.ngbDateAdapter.italianFormat=this.modelFormat,this.dataValue=W.reformat(this.dataValue,this.modelFormat),setTimeout(function(){e.dataChange.emit(e.dataValue)})},e.prototype.ngAfterViewInit=function(){if(window.$(this.input.nativeElement).datepicker(this.options),this.dataValue&&N.isDate(this.dataValue)){var e=this.ngbDateParserFormatter.format(this.ngbDateAdapter.fromModel(this.dataValue));window.$(this.input.nativeElement).datepicker("setDate",e)}},Object.defineProperty(e.prototype,"data",{get:function(){return this.dataValue},set:function(e){this.dataValue=e,this.dataChange.emit(this.dataValue)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isValid",{get:function(){var e=W.reformat(this.dataValue,"IT");return w(this.dataValue)||N.isInItalianFormat(e)},enumerable:!0,configurable:!0}),e.prototype.checkDescError=function(){var e=this.getDescError();return this.checkError()&&E(e)},e.prototype.checkError=function(){return!this.isValid||this.hasError||E(this.descError)},e.prototype.getDescError=function(){return w(this.descError)&&!this.isValid?"La data inserita non è valida":this.descError},e.prototype.onChange=function(e){var t=this;setTimeout(function(){t.data=N.isDate(e.target.value)?t.ngbDateAdapter.toModel(t.ngbDateParserFormatter.parse(e.target.value)):e.target.value},200)},e.decorators=[{type:u.Component,args:[{selector:"inail-date-picker",template:'\x3c!-- Template solo con DatePicker JS --\x3e\n\x3c!--<div class="date datePicker col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} noPaddingLeft {{class}}"\n [ngClass]="{\'has-error\': this.checkError()}">\n <div class="form-group">\n <div class="input-relative">\n <label *ngIf="label"\n class="control-label {{labelClass}}"\n title="{{labelTitle}}"\n for="{{id}}" [innerHTML]="label.concat(required ? \' \'+(requiredSimbol || \'*\') : \'\')"></label>\n <input id="{{id}}"\n #input\n class="form-control {{inputClass}}"\n title="GG/MM/AAAA"\n placeholder="GG/MM/AAAA"\n type="text"\n (paste)="onChange($event)"\n (keyup)="onChange($event)"\n (change)="onChange($event)"\n (blur)="onChange($event)"\n [disabled]="this.disabled"\n (keyup.enter)="enterUp.emit()"\n [(ngModel)]="this.data">\n <em class="fa fa-calendar"\n title="Calendario"\n (click)="input.focus()"></em>\n </div>\n <ng-container *ngIf="this.checkDescError()">\n <span class="msg msg-errore">\n <strong [innerHTML]="\'ERRORE: \'+this.getDescError()"></strong>\n </span>\n </ng-container>\n </div>\n</div>--\x3e\n\n\x3c!-- Template con ngbDatepicker e DatePicker JS --\x3e\n<div class="date datePicker col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} noPaddingLeft {{class}}"\n [ngClass]="{\'has-error\': this.checkError()}">\n <div class="form-group">\n <div class="input-relative">\n <label *ngIf="label"\n [hidden]="hiddenLabel"\n class="control-label {{labelClass}}"\n title="{{labelTitle}}"\n for="{{id}}" [innerHTML]="label.concat(required ? \' \'+(requiredSimbol || \'*\') : \'\')"></label>\n <input id="{{id}}"\n ngbDatepicker\n #input\n class="form-control {{inputClass}}"\n title="GG/MM/AAAA"\n placeholder="GG/MM/AAAA"\n type="text"\n (paste)="onChange($event)"\n (keyup)="onChange($event)"\n (change)="onChange($event)"\n (blur)="onChange($event)"\n [disabled]="this.disabled"\n (keyup.enter)="enterUp.emit()"\n [attr.aria-invalid]="checkError() === true ? true : undefined"\n [attr.aria-describedBy]="checkDescError() ? id+\'-description-error\' : undefined"\n [(ngModel)]="this.data">\n <em class="fa fa-calendar"\n title="Calendario"\n (click)="input.focus()"></em>\n </div>\n <ng-container *ngIf="this.checkDescError()">\n <span [id]="id+\'-description-error\'" class="msg msg-errore">\n <strong [innerHTML]="(errorPrefix===false ? \'\' : \'ERRORE: \')+this.getDescError()"></strong>\n </span>\n </ng-container>\n </div>\n</div>\n\n\x3c!-- Template solo con ngbDatepicker --\x3e\n\x3c!--<div class="date datePicker col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} noPaddingLeft {{class}}"\n [ngClass]="{\'has-error\': this.checkError()}">\n <div class="form-group">\n <div class="input-relative">\n <label *ngIf="label"\n class="control-label {{labelClass}}"\n title="{{labelTitle}}"\n for="{{id}}" [innerHTML]="label.concat(required ? \' \'+(requiredSimbol || \'*\') : \'\')"></label>\n <input ngbDatepicker\n id="{{id}}"\n class="form-control {{inputClass}}"\n title="GG/MM/AAAA"\n placeholder="GG/MM/AAAA"\n type="text"\n name="dp"\n (keyup.enter)="enterUp.emit()"\n [disabled]="this.disabled"\n [(ngModel)]="this.data"\n #d="ngbDatepicker">\n <em class="fa fa-calendar" title="Calendario" (click)="d.toggle()"></em>\n </div>\n <ng-container *ngIf="this.checkDescError()">\n <span class="msg msg-errore">\n <strong [innerHTML]="\'ERRORE: \'+this.getDescError()"></strong>\n </span>\n </ng-container>\n </div>\n</div>--\x3e\n\n\n',encapsulation:u.ViewEncapsulation.None,providers:[j,{provide:r.NgbDateAdapter,useClass:B},{provide:r.NgbDatepickerI18n,useClass:_},{provide:r.NgbDateParserFormatter,useClass:q}],styles:[""]}]}],e.ctorParameters=function(){return[{type:r.NgbDatepickerConfig},{type:r.NgbDateParserFormatter},{type:r.NgbDateAdapter}]},e.propDecorators={input:[{type:u.ViewChild,args:["input"]}],dataChange:[{type:u.Output}],modelFormat:[{type:u.Input}],data:[{type:u.Input}]},e}(A),W=function(){function a(){}return a.toNgbDateStruct=function(e){var t=null;if(e){var n=N.toDateObject(e.trim?e.trim():e);t={year:n.getFullYear(),month:n.getMonth()+1,day:n.getDate()}}return t},a.reformat=function(e,t){var n=null,i=a.toNgbDateStruct(e);return i&&(n=t&&"IT"==t?a.toItalianFormatString(i):a.toRFC3339FormatString(i)),n},a.toItalianFormatString=function(e){var t=null;return e&&(t=a.pad(e.day)+"/"+a.pad(e.month)+"/"+e.year),t},a.toRFC3339FormatString=function(e){var t=null;return e&&(t=a.pad(e.year)+"-"+a.pad(e.month)+"-"+a.pad(e.day)),t},a.pad=function(e){return e?(e<10?"0":"")+e:""},a}(),Y=function(t){function e(){var e=t.call(this)||this;return e.errorType="ERROR",e.successType="SUCCESS",e.enableIcon=!0,e}return m(e,t),e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){e.details&&e.details.currentValue&&(this.details=e.details.currentValue.filter(function(e){return e!=undefined}))},e.decorators=[{type:u.Component,args:[{selector:"inail-feedback",template:'<div [attr.id]=\'id || undefined\'\n class="row feedback-box feedback-box-view-encapsulation {{class}}"\n [ngClass]="{\'feedback-box-error\': type==errorType, \'global-feedback\': gobalFeedback === 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\': enableIcon && type==errorType,\n \'fa-check\':enableIcon && (type==successType || !type)}"></span>\n <span tabindex="0" class="feedback-focusable" [innerHTML]="message"></span>\n </span>\n </div>\n <div *ngIf="details && details.length > 0"\n class="feedback-content">\n <p *ngIf="contentTitle">\n <strong>{{contentTitle}}</strong>\n </p>\n <ng-container *ngIf="detailsAsList">\n <ol *ngIf="orderedList">\n <li *ngFor="let dettaglio of details" [innerHTML]="dettaglio"></li>\n </ol>\n <ul *ngIf="!orderedList">\n <li *ngFor="let dettaglio of details" [innerHTML]="dettaglio"></li>\n </ul>\n </ng-container>\n <ng-container *ngIf="!detailsAsList">\n <p *ngFor="let dettaglio of details" [innerHTML]="dettaglio"></p>\n </ng-container>\n </div>\n </div>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[".feedback-box-view-encapsulation.feedback-box{margin-bottom:15px!important}.feedback-box-view-encapsulation .feedback-content{padding-top:30px!important}.feedback-box-view-encapsulation .feedback-content p{padding-top:0!important}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={message:[{type:u.Input}],type:[{type:u.Input}],gobalFeedback:[{type:u.Input}],enableIcon:[{type:u.Input}],contentTitle:[{type:u.Input}],details:[{type:u.Input}],detailsAsList:[{type:u.Input}],orderedList:[{type:u.Input}]},e}(S),K=function It(e,t,n,i){this.message=t,this.type=e,n&&(this.details=[].concat(n),this.contentTitle=i)},Q=function(t){function e(){var e=t.call(this)||this;return e.valueChange=new u.EventEmitter,e}return m(e,t),e.prototype.ngOnChanges=function(e){e.value&&!e.value.firstChange&&(this.hasError=!1,this.descError=undefined)},e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"value",{get:function(){return this.isDate&&this.valueValue?N.toItalianFormat(this.valueValue):this.valueValue},set:function(e){this.valueValue=e,this.valueChange.emit(this.valueValue)},enumerable:!0,configurable:!0}),e.prototype.checkError=function(){return this.hasError||E(this.descError)},e.prototype.checkDescError=function(){return this.checkError()&&E(this.getDescError())},e.prototype.getDescError=function(){return this.descError},e.prototype.ngAfterViewInit=function(){this.showPopover()&&$("#"+this.id+"-popover").popover()},e.decorators=[{type:u.Component,args:[{selector:"inail-input-text",template:'<div class="form-group col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} noPaddingLeft {{class}}"\n [ngClass]="{\'has-error\': checkError()}">\n <label *ngIf="label"\n class="control-label {{labelClass}}"\n [hidden]="hiddenLabel"\n title="{{labelTitle}}"\n for="{{id}}"\n [innerHTML]="label.concat(required ? \' \'+(requiredSimbol || \'*\') : \'\')"></label>\n <ng-container *ngIf="showPopover()">\n \n <em [id]="id+\'-popover\'"\n class="fa fa-question-circle fa-lg"\n data-toggle="popover"\n title="{{popoverButtonTitle}}"\n [attr.data-content]="popoverContent"\n [attr.data-original-title]="popoverTitle">\n </em>\n </ng-container>\n <input type="text"\n id="{{id}}"\n title="{{title}}"\n maxlength="{{maxlength}}"\n [disabled]="disabled"\n [readonly]="readonly"\n class="form-control {{inputClass}}"\n [ngClass]="{\'disabled\': disabled}"\n placeholder="{{placeholder}}"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="checkError() === true ? true : undefined"\n [attr.aria-describedBy]="checkDescError() ? id+\'-description-error\' : undefined"\n (keyup.enter)="enterUp.emit()"\n [(ngModel)]=\'value\'>\n <ng-container *ngIf="checkDescError()">\n <span [id]="id+\'-description-error\'" class="msg msg-errore">\n <strong [innerHTML]="(errorPrefix===false ? \'\' : \'ERRORE: \')+getDescError()"></strong>\n </span>\n </ng-container>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e.propDecorators={placeholder:[{type:u.Input}],maxlength:[{type:u.Input}],isDate:[{type:u.Input}],valueChange:[{type:u.Output}],value:[{type:u.Input}]},e}(A),J=function(t){function e(){var e=t.call(this)||this;return e.valueChange=new u.EventEmitter,e.select=new u.EventEmitter,e.options=new Array(0),e.blankOption=!0,e}return m(e,t),e.prototype.ngOnChanges=function(e){if(this.sort){var n="ASC"==this.sort.toUpperCase()?1:"DESC"==this.sort.toUpperCase()?-1:0;0!=n&&this.options!=undefined&&this.options.sort(function(e,t){return e.label<t.label?-n:e.label>t.label?n:0})}e.value&&!e.value.firstChange&&(this.hasError=!1,this.descError=undefined)},e.prototype.ngOnInit=function(){var e=this;w(this.valueValue)&&setTimeout(function(){e.valueValue="",e.valueChange.emit(e.valueValue)})},Object.defineProperty(e.prototype,"value",{get:function(){return this.valueValue},set:function(e){var t,n=this;this.valueValue=e,this.valueChange.emit(this.valueValue),this.options&&(t=this.options.find(function(e){return e!=undefined&&e.value===n.valueValue})),(t!=undefined||w(e))&&this.select.emit(t)},enumerable:!0,configurable:!0}),e.prototype.checkError=function(){return this.hasError||E(this.descError)},e.prototype.checkDescError=function(){return this.checkError()&&E(this.getDescError())},e.prototype.getDescError=function(){return this.descError},e.isValidOption=function(e,t,n){return n&&(!t||0==t.length)||I(e)&&0<=e.findIndex(function(e){return e.value==t})},e.prototype.getValueLabel=function(){var e,t=this;return this.options&&(e=this.options.find(function(e){return e.value==t.value})),e?e.label:this.valueLabel||this.value},e.decorators=[{type:u.Component,args:[{selector:"inail-select",template:'<div class="form-group col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} {{class}} noPadding inail-select-view-encapsulation"\n *ngIf="!(disabledAsInputText)"\n [ngClass]="{\'has-error\': checkError()}">\n <label for="{{id}}"\n title="{{labelTitle}}"\n class="label-select col-xs-12 col-sm-12 col-md-12 col-lg-12 noPaddingLeft {{labelClass}}">\n <span *ngIf="label"\n [hidden]="hiddenLabel"\n [innerHTML]="label.concat(required ? \' \'+(requiredSimbol || \'*\') : \'\')"></span>\n <select class="form-control {{inputClass}}"\n id="{{id}}"\n title="{{title}}"\n [disabled]="disabled"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="checkError() === true ? true : undefined"\n [attr.aria-describedBy]="checkDescError() ? id+\'-description-error\' : undefined"\n (keyup.enter)="enterUp.emit()"\n [(ngModel)]=\'value\'>\n \x3c!--<option [value]="undefined"\n *ngIf="blankOption && (value === undefined)"\n [innerHTML]="this.blankOptionText || \'- seleziona opzione -\'">\n </option>--\x3e\n <option value=""\n *ngIf="blankOption"\n [innerHTML]="this.blankOptionText || \'- seleziona opzione -\'">\n </option>\n <ng-container *ngIf="options">\n <option *ngFor="let option of options"\n [value]="option?.value"\n [selected]="valueValue==option?.value" [innerHTML]="option?.label">\n </option>\n </ng-container>\n </select>\n </label>\n <ng-container *ngIf="checkDescError()">\n <span [id]="id+\'-description-error\'" class="msg msg-errore">\n <strong [innerHTML]="(errorPrefix===false ? \'\' : \'ERRORE: \')+getDescError()"></strong>\n </span>\n </ng-container>\n</div>\n<inail-input-text *ngIf="disabledAsInputText"\n [id]="id"\n [label]="this.label"\n [class]="this.class"\n [labelClass]="this.labelClass"\n [labelTitle]="this.labelTitle"\n [inputClass]="this.inputClass"\n [title]="this.title"\n [disabled]="true"\n [xs]="this.xs"\n [sm]="this.sm"\n [md]="this.md"\n [lg]="this.lg"\n [value]="getValueLabel()">\n</inail-input-text>\n',encapsulation:u.ViewEncapsulation.None,styles:[".inail-select-view-encapsulation label{margin-bottom:0}.panel .panel-body .inail-select-view-encapsulation.form-group select{min-width:auto!important}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={options:[{type:u.Input}],blankOption:[{type:u.Input}],blankOptionText:[{type:u.Input}],sort:[{type:u.Input}],valueLabel:[{type:u.Input}],disabledAsInputText:[{type:u.Input}],valueChange:[{type:u.Output}],select:[{type:u.Output}],value:[{type:u.Input}]},e}(A),Z=function Ct(){},X=function(t){function e(){var e=t.call(this)||this;return e.valueChange=new u.EventEmitter,e}return m(e,t),e.prototype.ngOnChanges=function(e){e.value&&!e.value.firstChange&&(this.hasError=!1,this.descError=undefined)},e.prototype.ngOnInit=function(){this.initAttributes()},e.prototype.initAttributes=function(){this.rows||(this.rows=10),this.cols||(this.cols=50),this.maxlength||(this.maxlength=300)},Object.defineProperty(e.prototype,"value",{get:function(){return this.valueValue},set:function(e){this.valueValue=e,this.valueChange.emit(this.valueValue)},enumerable:!0,configurable:!0}),e.prototype.checkError=function(){return!0===(this.hasError||E(this.descError)||this.isTextTooLong())},e.prototype.checkDescError=function(){var e=this.getDescError();return this.checkError()&&E(e)},e.prototype.getNumeroCaratteriDisponibili=function(){var e=this.valueValue?this.valueValue.length:0;return this.maxlength-e},e.prototype.getDescError=function(){return w(this.descError)&&this.isTextTooLong()?"Il testo non può essere lungo di "+this.maxlength+" caratteri":this.descError},e.prototype.isTextTooLong=function(){return this.valueValue&&this.valueValue.length>this.maxlength},e.prototype.onPaste=function(e){!0===this.preventPasting&&e.preventDefault()},e.decorators=[{type:u.Component,args:[{selector:"inail-textarea",template:'<div class="form-group col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} {{class}} textarea-style-encapsulation noPaddingLeft">\n <div class="col-md-12 noPadding"\n [ngClass]="{\'has-error\': checkError()}">\n <label *ngIf="label"\n [hidden]="hiddenLabel"\n class="control-label {{labelClass}}"\n title="{{labelTitle}}"\n for="{{id}}"\n [innerHTML]="label.concat(required ? \' \'+(requiredSimbol || \'*\') : \'\')"></label>\n <div *ngIf="!disabled" class="remainingChar pull-right"><strong>{{getNumeroCaratteriDisponibili()}}</strong> caratteri disponibili</div>\n <textarea id="{{id}}"\n class="form-control {{inputClass}}"\n maxlength="{{maxlength}}"\n rows="{{rows}}"\n cols="{{cols}}"\n placeholder="{{placeholder}}"\n title="{{title}}"\n (paste)="onPaste($event)"\n [disabled]="disabled"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="checkError() === true ? true : undefined"\n [attr.aria-describedBy]="checkDescError() ? id+\'-description-error\' : undefined"\n [(ngModel)]=\'value\'></textarea>\n <ng-container *ngIf="checkDescError()">\n <span [id]="id+\'-description-error\'" class="msg msg-errore">\n <strong [innerHTML]="(errorPrefix===false ? \'\' : \'ERRORE: \')+getDescError()"></strong>\n </span>\n </ng-container>\n </div>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[".textarea-style-encapsulation textarea{text-align:left!important}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={placeholder:[{type:u.Input}],valueChange:[{type:u.Output}],maxlength:[{type:u.Input}],rows:[{type:u.Input}],cols:[{type:u.Input}],preventPasting:[{type:u.Input}],value:[{type:u.Input}]},e}(A),ee=function(){function n(e){this.ASC=n.ASC,this.DESC=n.DESC,this.UNSORTED=n.UNSORTED,this.elementsChange=new u.EventEmitter,this.click=new u.EventEmitter,this.direction=n.UNSORTED,this.elementRef=e}return n.prototype.ngOnInit=function(){},n.prototype.ngAfterViewInit=function(){},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()},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.ASC=1,n.DESC=-1,n.UNSORTED=0,n.decorators=[{type:u.Component,args:[{selector:"inail-th-label",template:'<a *ngIf="sortable"\n href="javascript:void(0)"\n role="button"\n class="inail-th-label-view-encapsulation"\n [attr.aria-label]="sortable ? label + \': attiva per ordinare la colonna in ordine \' + (direction == ASC ? \'decrescente\' : \'crescente\') : undefined"\n (click)="onClick($event)">\n<span class="sortable thLabel" [innerHTML]="label" [attr.title]="title">\n \x3c!-- <span *ngIf="sortable" class="fa {{direction==0 ? \'fa-sort\' : direction==1 ? \'fa-sort-asc\' : \'fa-sort-desc\'}}"></span>--\x3e\n</span>\n</a>\n<span *ngIf="!sortable"\n (click)="onClick($event)" [innerHTML]="label" [attr.title]="title">\n \x3c!-- <span *ngIf="sortable" class="fa {{direction==0 ? \'fa-sort\' : direction==1 ? \'fa-sort-asc\' : \'fa-sort-desc\'}}"></span>--\x3e\n</span>\n<div *comment>\n \x3c!-- con aria sort (problema con W3C) --\x3e\n <a *ngIf="sortable"\n href="javascript:void(0)"\n role="button"\n class="inail-th-label-view-encapsulation"\n [attr.aria-label]="sortable ? label + \': attiva per ordinare la colonna in ordine \' + (direction == ASC ? \'decrescente\' : \'crescente\') : undefined"\n [attr.aria-sort]="sortable ? getAriaSortValue(direction) : undefined"\n (click)="onClick($event)">\n <span class="sortable thLabel" [innerHTML]="label" [attr.title]="title">\n \x3c!-- <span *ngIf="sortable" class="fa {{direction==0 ? \'fa-sort\' : direction==1 ? \'fa-sort-asc\' : \'fa-sort-desc\'}}"></span>--\x3e\n </span>\n </a>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[".inail-th-label-view-encapsulation .sortable{cursor:pointer}.inail-th-label-view-encapsulation .fa{padding:0 10px}a.inail-th-label-view-encapsulation{background:0 0;color:#000;text-decoration:none}"]}]}],n.ctorParameters=function(){return[{type:u.ElementRef}]},n.propDecorators={label:[{type:u.Input}],elements:[{type:u.Input}],elementsChange:[{type:u.Output}],property:[{type:u.Input}],title:[{type:u.Input}],sortable:[{type:u.Input}],click:[{type:u.Output}]},n}(),te=function(){function e(){this.valueChange=new u.EventEmitter}return e.prototype.ngOnChanges=function(e){},e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"value",{get:function(){return this.valueValue},set:function(e){e!=this.valueValue&&(this.valueValue=e,this.valueChange.emit(this.valueValue))},enumerable:!0,configurable:!0}),e.decorators=[{type:u.Component,args:[{selector:"inail-table-page-length-selector",template:'<div class="dataTables_length inail-table-page-length-selector-view-encapsulation">\n <label>Elementi per pagina\n <select name="tabella_length"\n [(ngModel)]="this.value"\n [attr.aria-controls]="tableId"\n class="form-control input-sm">\n <option value="10">10</option>\n <option value="25">25</option>\n <option value="50">50</option>\n <option value="100">100</option>\n </select>\n </label>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[".inail-table-page-length-selector-view-encapsulation select.form-control{display:inline-block}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={tableId:[{type:u.Input}],valueChange:[{type:u.Output}],value:[{type:u.Input}]},e}(),ne=function(){function e(e){this.cd=e,this.select=new u.EventEmitter,this.currentPage=1,this.pageSize=10,this.listSize=0,this.externalPagination=!1}return e.prototype.ngOnChanges=function(e){!this.externalPagination&&e.currentPage&&e.currentPage.firstChange&&e.currentPage.currentValue!=undefined&&(this.externalPagination=!0),e&&(e.pageSize||e.listSize)&&(this.calcolaNumeroPagine(),this.externalPagination||(this.currentPage=1)),e&&e.currentPage&&e.currentPage.currentValue!=undefined&&(e.currentPage.currentValue>this.length?(this.currentPage=this.length,this.emit(this.currentPage)):e.currentPage.currentValue<1&&(this.currentPage=1,this.emit(this.currentPage))),this.cd.detectChanges()},e.prototype.ngOnInit=function(){this.pageSize||(this.pageSize=e.DEFAULT_TABLE_LENGTH)},e.prototype.calcolaNumeroPagine=function(){this.length=Math.floor(this.listSize/this.pageSize),0<this.listSize%this.pageSize&&this.length++,0!=this.length&&this.length!=undefined||(this.length=1)},Object.defineProperty(e.prototype,"pages",{get:function(){return new Array(this.length)},enumerable:!0,configurable:!0}),e.prototype.set=function(e){0<e&&e<=this.length&&(this.externalPagination||(this.currentPage=e),this.emit(e))},e.prototype.prev=function(){this.set(this.currentPage-1)},e.prototype.next=function(){this.set(this.currentPage+1)},e.prototype.emit=function(e){this.select.emit(e)},e.DEFAULT_TABLE_LENGTH=10,e.decorators=[{type:u.Component,args:[{selector:"inail-table-page-selector",template:'<ng-container *ngIf="listSize > pageSize">\n <div class="bottom paginate-component inail-table-page-selector-view-encapsulation">\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">\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"\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"\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"\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"\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"\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"\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"\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"\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',encapsulation:u.ViewEncapsulation.None,styles:[".inail-table-page-selector-view-encapsulation.paginate-component{margin-top:15px}.inail-table-page-selector-view-encapsulation ul li a{cursor:pointer}"]}]}],e.ctorParameters=function(){return[{type:u.ChangeDetectorRef}]},e.propDecorators={tableId:[{type:u.Input}],listSize:[{type:u.Input}],pageSize:[{type:u.Input}],currentPage:[{type:u.Input}],select:[{type:u.Output}]},e}(),ie=function(){function t(e){this.renderer=e,this.subsetChange=new u.EventEmitter,this.pagination=new u.EventEmitter,this.externalPaginationSorting=!1}return t.prototype.ngOnChanges=function(e){var t=this;if(!this.externalPaginationSorting&&e.paginationInfo&&e.paginationInfo.firstChange&&e.paginationInfo.currentValue!=undefined&&(this.externalPaginationSorting=!0),this.externalPaginationSorting&&this.paginationInfo&&this.paginationInfo.sortProperty&&this.thLabelComponents){var n=this.thLabelComponents.find(function(e){return e.property==t.paginationInfo.sortProperty});this.setSortDirection(n,this.paginationInfo.sortDirection)}!e.elements||e.elements.firstChange||this.externalPaginationSorting||(this.tablePageSelectorComponent&&(this.tablePageSelectorComponent.currentPage=1),this.emitSubset(1)),!this.externalPaginationSorting&&e.doPagination&&e.doPagination.currentValue&&e.doPagination.currentValue.subscribe(function(e){t.lengthOnChange(e.pageSize),setTimeout(function(){return t.doSorting(e.sortProperty,e.sortDirection)},100),setTimeout(function(){return t.pageOnChange(e.pageNumber)},200)})},t.prototype.ngOnInit=function(){var e=this;this.tableLength=this.externalPaginationSorting?this.paginationInfo.pageSize:this.pageSize||t.DEFAULT_TABLE_LENGTH,this.externalPaginationSorting||setTimeout(function(){e.emitSubset(e.currentPage||1)})},t.prototype.ngAfterViewInit=function(){this.inizializzaTabella(this.thLabelComponents),this.lookAtThLabel(this.thLabelComponents)},t.prototype.inizializzaTabella=function(e){var t=this;e&&e.forEach(function(e){t.modificaTh(e)})},t.prototype.doSorting=function(t,e){var n={property:t,direction:e==ae.ASC?ee.ASC:e==ae.DESC?ee.DESC:undefined},i=this.thLabelComponents.find(function(e){return e.property==t});this.performSorting(n,i)},t.prototype.lookAtThLabel=function(e){var n=this;e&&(this.thLabelComponents=e).forEach(function(t){t&&t.click.subscribe(function(e){n.performSorting(e,t)})})},t.prototype.performSorting=function(e,t){if(t!=undefined&&e!=undefined&&e.property!=undefined){var n={};n.sortProperty=e.property,n.sortDirection=e.direction==ee.ASC?ae.ASC:e.direction==ee.DESC?ae.DESC:undefined,n.pageNumber=1,this.resetDirectionSorting(t,this.thLabelComponents),this.modificaTh(t),this.externalPaginationSorting?(n.fullListSize=this.paginationInfo.fullListSize,n.pageSize=this.paginationInfo.pageSize):(this.ordina(e),this.emitSubset(1)),this.pagination.emit(n)}},t.prototype.resetDirectionSorting=function(t,e){var n=this;e&&e.forEach(function(e){e&&e.property!=t.property&&(e.setAsUnsorted(),n.modificaTh(e))})},t.prototype.reimpostaThs=function(e,t){if(e){var n=this.getThLabelComponentBySortProperty(e.sortProperty,t);this.resetDirectionSorting(n,t)}},t.prototype.getThLabelComponentBySortProperty=function(t,e){return undefined!=e?e.find(function(e){return e&&e.property==t}):undefined},t.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==ee.UNSORTED&&t.removeAttribute("aria-sort"))}},t.prototype.removeSortClass=function(e){this.renderer.removeClass(e,"sorting_asc"),this.renderer.removeClass(e,"sorting_desc"),this.renderer.removeClass(e,"sorting")},t.prototype.getThSortClass=function(e){var t;switch(e){case ee.ASC:t="sorting_asc";break;case ee.DESC:t="sorting_desc";break;case ee.UNSORTED:t="sorting"}return t},t.prototype.getAriaSortValue=function(e){var t;switch(e){case ee.ASC:t="ascending";break;case ee.DESC:t="descending";break;case ee.UNSORTED:t="none"}return t},t.prototype.ordina=function(e){e&&this.elements&&e.property&&(e.direction=-1*e.direction,e.direction==ee.UNSORTED&&(e.direction=ee.ASC),this.elements.sort(this.propertyComparator(e.property,e.direction)),this.elements=[].concat(this.elements))},t.prototype.propertyComparator=function(e,n){var i=e?e.split("."):undefined;function a(e,t){if(e&&t)return 1<t.length?a(e[t[0]],t.slice(1,t.length)):e[t[0]]}return function(e,t){return(a(e,i)>a(t,i)?ee.DESC:ee.ASC)*n}},t.prototype.lengthOnChange=function(e){if(e!=undefined&&(!this.paginationInfo||e!=this.paginationInfo.pageSize)){var t={};this.externalPaginationSorting?t=f({},this.paginationInfo):this.tableLength!=e&&(this.tableLength=e,t={},this.emitSubset(1)),t.pageSize=e,t.pageNumber=1,this.pagination.emit(t)}},t.prototype.pageOnChange=function(e){if(e!=undefined){var t=void 0;this.externalPaginationSorting?t=f({},this.paginationInfo):(t={},this.emitSubset(e)),t.pageNumber=e,this.pagination.emit(t)}},t.prototype.emitSubset=function(e){if(e&&!this.externalPaginationSorting&&this.elements!=undefined){var t,n=this.tableLength*(e-1),i=Number(n)+Number(this.tableLength);t=this.elements.slice(n,i),this.currentPage=e,this.subsetChange.emit(t)}},t.prototype.visualizzaPaginazione=function(){return!this.disabilitaPaginazione&&(this.elements!=undefined||this.externalPaginationSorting!=undefined&&this.paginationInfo!=undefined)},t.prototype.setSortDirection=function(e,t){if(e){switch(t){case"asc":e.direction=ee.ASC;break;case"desc":e.direction=ee.DESC;break;default:e.direction=ee.UNSORTED}this.modificaTh(e)}},t.DEFAULT_TABLE_LENGTH=10,t.decorators=[{type:u.Component,args:[{selector:"inail-paged-table-renderer",template:'<ng-container *ngIf="visualizzaPaginazione()">\n <inail-table-page-length-selector [value]="externalPaginationSorting ? paginationInfo.pageSize : tableLength"\n [tableId]="tableId"\n (valueChange)="lengthOnChange($event)"></inail-table-page-length-selector>\n</ng-container>\n\n<div *ngIf="!elements && recuperoInCorso">{{testoRecuperoInCorso || \'Recupero in corso...\'}}</div>\n\n<ng-content *ngIf="elements || !recuperoInCorso"></ng-content>\n\n<ng-container *ngIf="visualizzaPaginazione()">\n <inail-table-page-selector [listSize]="externalPaginationSorting ? paginationInfo.fullListSize : elements.length"\n [pageSize]="externalPaginationSorting ? paginationInfo.pageSize : tableLength"\n [currentPage]="externalPaginationSorting && paginationInfo ? paginationInfo.pageNumber : currentPage"\n [tableId]="tableId"\n (select)="pageOnChange($event)"></inail-table-page-selector>\n</ng-container>\n',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],t.ctorParameters=function(){return[{type:u.Renderer2}]},t.propDecorators={tableId:[{type:u.Input}],elements:[{type:u.Input}],subset:[{type:u.Input}],subsetChange:[{type:u.Output}],paginationInfo:[{type:u.Input}],doPagination:[{type:u.Input}],pageSize:[{type:u.Input}],recuperoInCorso:[{type:u.Input}],disabilitaPaginazione:[{type:u.Input}],testoRecuperoInCorso:[{type:u.Input}],pagination:[{type:u.Output}],thLabelComponents:[{type:u.ContentChildren,args:[ee,{descendants:!0}]}],tablePageSelectorComponent:[{type:u.ViewChild,args:[ne]}]},t}(),ae=function(){function e(){}return e.ASC="asc",e.DESC="desc",e}(),re=function(t){function e(){var e=t.call(this)||this;return e.dataDalChange=new u.EventEmitter,e.dataAlChange=new u.EventEmitter,e}return m(e,t),e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){(e.dataAl&&!e.dataAl.firstChange||e.dataDal&&!e.dataDal.firstChange)&&(this.hasError=!1,this.descError=undefined)},Object.defineProperty(e.prototype,"dataDal",{get:function(){return this.dataDalValue},set:function(e){this.dataDalValue=e,this.dataDalChange.emit(this.dataDalValue)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataAl",{get:function(){return this.dataAlValue},set:function(e){this.dataAlValue=e,this.dataAlChange.emit(this.dataAlValue)},enumerable:!0,configurable:!0}),e.prototype.checkDescError=function(){return E(this.descError)},e.decorators=[{type:u.Component,args:[{selector:"inail-date-range",template:'<div [id]="id"\n class="form-inline date-range col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} noPaddingLeft {{class}}">\n <div>\n <p *ngIf="label" class="{{labelClass}}" [innerHTML]="label.concat(required ? \' \'+(requiredSimbol || \'*\') : \'\')"></p>\n\n <inail-input-date [id]="id+\'-dal\'"\n [class]="\'form-group\'"\n [label]="\'Dal \'"\n [hasError]="hasErrorDal || hasError || checkDescError()"\n [descError]="descErrorDal"\n [modelFormat]="modelFormat"\n (enterUp)="enterUp.emit()"\n [(data)]="dataDal">\n </inail-input-date>\n\n <inail-input-date [id]="id+\'-al\'"\n [class]="\'form-group\'"\n [label]="\'Al \'"\n [hasError]="hasErrorAl || hasError || checkDescError()"\n [descError]="descErrorAl"\n [modelFormat]="modelFormat"\n (enterUp)="enterUp.emit()"\n [(data)]="dataAl">\n </inail-input-date>\n\n </div>\n <ng-container *ngIf="checkDescError()">\n <div>\n <span [id]="id+\'-description-error\'" class="msg msg-errore">\n <strong [innerHTML]="(errorPrefix===false ? \'\' : \'ERRORE: \')+descError"></strong>\n </span>\n </div>\n </ng-container>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e.propDecorators={hasErrorDal:[{type:u.Input}],descErrorDal:[{type:u.Input}],hasErrorAl:[{type:u.Input}],descErrorAl:[{type:u.Input}],modelFormat:[{type:u.Input}],dataDalChange:[{type:u.Output}],dataAlChange:[{type:u.Output}],dataDal:[{type:u.Input}],dataAl:[{type:u.Input}]},e}(A),oe=function(){function e(){this.selected=new u.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){e&&e.active&&this.selected.emit(e.active.currentValue)},e.decorators=[{type:u.Component,args:[{selector:"inail-tab-pane",template:'<div [hidden]="!active"\n [attr.id]=\'id || undefined\'\n class="tab-pane tab-pane-component-style-encapsulation">\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',encapsulation:u.ViewEncapsulation.None,styles:[".tab-pane-component-style-encapsulation>div{margin-top:0!important}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={id:[{type:u.Input}],title:[{type:u.Input}],active:[{type:u.Input}],required:[{type:u.Input}],selected:[{type:u.Output}]},e}(),se=function(){function e(){this.selected=new u.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){var e=this;this.panes.some(function(e){return e.active})||setTimeout(function(){e.panes.toArray()[0].active=!0})},e.prototype.isActive=function(t){return this.panes.some(function(e){return e.id==t&&e.active})},e.prototype.active=function(t){this.selected.emit(t),this.panes.forEach(function(e){e.active=e.id==t})},e.decorators=[{type:u.Component,args:[{selector:"inail-tab-group",template:'<div [attr.id]=\'id || undefined\'\n class="tab-portale">\n <ul class="nav nav-tabs default-tabs" role="tablist">\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 (click)="active(pane.id)">\n <span class="labelTabTitle" [innerHTML]="pane.title.concat(pane.required ? \' *\' : \'\')"></span>\n </a>\n </li>\n </ul>\n <div class="tab-content">\n <ng-content></ng-content>\n </div>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e.propDecorators={panes:[{type:u.ContentChildren,args:[oe]}],id:[{type:u.Input}],selected:[{type:u.Output}]},e}(),le=function(t){function e(){var e=t.call(this)||this;return e.hidden=!1,e.rendered=!0,e}return m(e,t),e.prototype.ngOnInit=function(){},e.decorators=[{type:u.Component,args:[{selector:"inail-content",template:'<div [hidden]="hidden" *ngIf="rendered">\n <ng-content></ng-content>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e.propDecorators={hidden:[{type:u.Input}],rendered:[{type:u.Input}]},e}(S),ce=function(n){function e(e){var t=n.call(this)||this;return t.re2=e,t.showNumber=!0,t.showCarattereSeparatore=!0,t.carattereSeparatore=">",t.fullNavigation=!1,t.contentsHidden=!0,t.currentStep=0,t.select=new u.EventEmitter,t.prevButtonTitle="scorri wizard a destra",t.nextButtonTitle="scorri wizard a sinistra",t.inizializzazioneContenutiCompletata=!1,t.firstVisibleStep=0,t.totalTranslate=0,t.translate=function(e){t.totalTranslate+=e,t.re2.setStyle(t.slickTrack.nativeElement,"transform","translate("+t.totalTranslate+"px)")},t}return m(e,n),e.prototype.ngOnChanges=function(e){var t=this;e.switchToFirstError&&e.switchToFirstError.currentValue&&e.switchToFirstError.currentValue.subscribe(function(){var e=t.steps.find(function(e){return e.error});e&&t.stepOnClick(e)}),e.steps&&!e.steps.isFirstChange()&&this.inizializzaSteps()},e.prototype.ngOnInit=function(){this.currentStep==undefined&&(this.currentStep=0),this.inizializzaSteps()},e.prototype.ngAfterViewInit=function(){this.inizializzaContenuti(this.contenuti)},e.prototype.inizializzaContenuti=function(e){var t=this;if(this.contenuti=e,this.contenuti&&0<this.contenuti.length){var n=this.steps.find(function(e){return e.index==t.currentStep});this.showContent(n),setTimeout(function(){return t.inizializzazioneContenutiCompletata=!0})}},e.prototype.inizializzaSteps=function(){this.steps&&this.steps.forEach(function(e,t){e&&(e.index=t)})},e.prototype.stepOnClick=function(e){(e.index<this.currentStep||e.index>this.currentStep&&this.fullNavigation)&&(this.currentStep=e.index,this.select.emit(e)),this.contenuti&&0<this.contenuti.length&&this.showContent(e)},e.prototype.isActive=function(e){return this.fullNavigation||e<=this.currentStep},e.prototype.getAriaLabelValue=function(e){return e.index==this.currentStep?"Step corrente":e.index<this.currentStep?"Step precedente":"Step successivo"},e.prototype.getStepLabel=function(e,t){return e.label.concat(e.required?" *":"").concat(this.showCarattereSeparatore?" ":"").concat(!t&&this.showCarattereSeparatore?this.carattereSeparatore:"")},e.prototype.showContent=function(n){var i=this;if(n){var a=!1;this.contenuti.forEach(function(e,t){return setTimeout(function(){a=n.code?e.id==n.code:t==n.index,i.contentsHidden?e.hidden=!a:e.rendered=a})})}},e.prototype.prevButtonOnClick=function(){this.translate(120)},e.prototype.nextButtonOnClick=function(){this.translate(-120)},e.prototype.onFocus=function(e){},e.decorators=[{type:u.Component,args:[{selector:"inail-wizard",template:'\x3c!--<div *ngIf="show"\n [attr.id]=\'id || undefined\'\n class="row wizard courousel-varible-width marginBottom {{class}} inail-wizard-view-encapsulation">\n <div *ngFor="let step of steps; last as isLast"\n class="item"\n [attr.aria-label]="getAriaLabelValue(step)"\n [ngClass]="{\'active\': step.index==currentStep, \'prevActive\': isActive(step.index)}">\n <a (click)="stepOnClick(step)"\n *ngIf="isActive(step.index)"\n [attr.tabindex]="0"\n href="javascript:void(0)"\n [ngClass]="{\'errorLabel\': step.error}"\n title="{{step.title ? step.title : step.label}}" #stepLink>\n <span>\n <span *ngIf="showNumber" class="step-number">{{step.index + 1}} </span>\n <span [innerHTML]="getStepLabel(step, isLast)"></span>\n </span>\n </a>\n <span *ngIf="!isActive(step.index)"\n [ngClass]="{\'errorLabel\': step.error}"\n title="{{step.title ? step.title : step.label}}">\n <span>\n <span *ngIf="showNumber" class="step-number">{{step.index + 1}} </span>\n <span [innerHTML]="getStepLabel(step, isLast)"></span>\n </span>\n </span>\n </div>\n</div>--\x3e\n<div [id]="id" class="row wizard courousel-varible-width slick-initialized slick-slider marginBottom inail-wizard-view-encapsulation {{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 step of steps; last as isLast"\n #slickSlide\n class="slick-slide">\n\n <div>\n <div [attr.aria-label]="getAriaLabelValue(step)"\n class="item"\n [ngClass]="{\'active\': step.index==currentStep, \'prevActive\': isActive(step.index)}"\n style="width: 100%;\n display: inline-block;">\n\n <a *ngIf="isActive(step.index)"\n [ngClass]="{\'errorLabel\': step.error}"\n (click)="stepOnClick(step)"\n href="javascript:void(0)"\n [attr.title]="step.title ? step.title : step.label">\n <span>\n <span *ngIf="showNumber" class="step-number">{{step.index + 1}} </span>\n <span [innerHTML]="getStepLabel(step, isLast)"></span>\n </span>\n </a>\n <span *ngIf="!isActive(step.index)"\n [ngClass]="{\'errorLabel\': step.error}"\n title="{{step.title ? step.title : step.label}}">\n <span>\n <span *ngIf="showNumber" class="step-number">{{step.index + 1}} </span>\n <span [innerHTML]="getStepLabel(step, 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',encapsulation:u.ViewEncapsulation.None,styles:[".inail-wizard-view-encapsulation.wizard.courousel-varible-width{padding-left:22px;padding-right:22px}.inail-wizard-view-encapsulation.wizard button.slick-arrow:focus{outline:#000 dotted 1px!important}.inail-wizard-view-encapsulation.wizard .item>span{color:#767676!important;text-decoration:none;cursor:default}.inail-wizard-view-encapsulation.wizard .item.active>span{color:#002e5f!important;font-weight:700;cursor:default!important;text-decoration:none!important;pointer-events:none}"]}]}],e.ctorParameters=function(){return[{type:u.Renderer2}]},e.propDecorators={steps:[{type:u.Input}],showNumber:[{type:u.Input}],showCarattereSeparatore:[{type:u.Input}],carattereSeparatore:[{type:u.Input}],fullNavigation:[{type:u.Input}],contentsHidden:[{type:u.Input}],currentStep:[{type:u.Input}],select:[{type:u.Output}],switchToFirstError:[{type:u.Input}],prevButtonTitle:[{type:u.Input}],nextButtonTitle:[{type:u.Input}],prevButton:[{type:u.ViewChild,args:["prevButton"]}],nextButton:[{type:u.ViewChild,args:["nextButton"]}],slickTrack:[{type:u.ViewChild,args:["slickTrack"]}],slickSlide:[{type:u.ViewChildren,args:["slickSlide"]}],contenuti:[{type:u.ContentChildren,args:[le]}]},e}(S),pe=function kt(){},ue={editable:!0,spellcheck:!1,toolbarHiddenButtons:[["strikethrough","subscript","superscript"],["customClasses","link","unlink","insertImage","insertVideo","insertHorizontalRule","removeFormat","toggleEditorMode"]]},de=function(t){function e(){var e=t.call(this)||this;return e.textChange=new u.EventEmitter,e.ready=new u.EventEmitter,e.config=f({},ue),e.viewInit=!1,e.status="NOT_CREATED",e.id="a"+e.id,e}return m(e,t),e.prototype.ngOnChanges=function(e){e.text&&!e.text.firstChange&&(this.hasError=!1,this.descError=undefined),this.viewInit&&e.disabled&&(!1===e.disabled.currentValue||e.disabled.currentValue==undefined||e.disabled.currentValue)},e.prototype.ngOnInit=function(){w(this.label)&&(this.label="Testo",this.hiddenLabel=!0)},Object.defineProperty(e.prototype,"text",{get:function(){return this.textValue},set:function(e){this.editor&&e!=undefined&&e!=this.textValue&&this.editor.setData(e),this.textValue=e},enumerable:!0,configurable:!0}),e.prototype.checkError=function(){return this.hasError||E(this.descError)},e.prototype.checkDescError=function(){var e=this.getDescError();return this.checkError()&&E(e)},e.prototype.getDescError=function(){return this.descError},e.prototype.ngAfterViewInit=function(){$('style:contains("::ng-deep")').each(function(e,t){t.innerHTML=t.innerHTML.replace(/::ng-deep/g,"")}),this.disabled,this.viewInit=!0},e.prototype.ngAfterViewChecked=function(){document.getElementById(this.id)&&this.createEditor()},e.prototype.createEditor=function(){var t=this,e=document.getElementById(this.id);!this.editor&&e&&this.isNotCreated()&&(this.status="IN_CREATION",setTimeout(function(){DecoupledEditor.create(document.querySelector("#"+t.id),t.config).then(function(e){t.status="READY",t.emitDebug("Text editor creato:"),t.emitDebug(e),t.editor=e,document.querySelector("#"+t.id+"-toolbar-container").appendChild(e.ui.view.toolbar.element),t.onReady(e),e.model.document.on("change:data",function(){t.textValue=e.getData(),t.textChange.emit(t.textValue)}),he()})["catch"](function(e){t.status="NOT_CREATED",t.emitError("Errore inizializzazione CKEditor"),t.emitError(e)})}))},e.prototype.onReady=function(e){$(".ck-toolbar__items button").attr("tabindex","0"),this.ready.emit(e)},e.prototype.ngOnDestroy=function(){this.destoryEditor(),this.status="NOT_CREATED"},e.prototype.destoryEditor=function(){this.editor!=undefined&&this.editor.destroy()},e.prototype.isReady=function(){return"READY"===this.status},e.prototype.isInCreation=function(){return"IN_CREATION"===this.status},e.prototype.isNotCreated=function(){return"NOT_CREATED"===this.status},e.decorators=[{type:u.Component,args:[{selector:"inail-text-editor-old",template:'<div *ngIf="!disabled"\n class="inail-text-editor-view-encapsulation"\n [ngClass]="{\'has-error\': checkError()}">\n <span *ngIf="label"\n [hidden]="hiddenLabel"\n class="control-label"\n [innerHTML]="label ? label.concat(required ? \' \'+(requiredSimbol || \'*\') : \'\') : \'\'"></span>\n \x3c!--<angular-editor [id]="id"\n [name]="name"\n [config]="config"\n [(ngModel)]="text">\n </angular-editor>--\x3e\n \x3c!--<ckeditor [id]="id"\n [editor]="editor"\n (ready)="onReady($event)"\n [config]="config"\n [(ngModel)]="text">\n </ckeditor>--\x3e\n\n \x3c!--<div [id]="id+\'-toolbar-container\'"></div>\n <div [id]="id" [innerHTML]="text"></div>--\x3e\n\n <ng-container *ngIf="checkDescError()">\n <span [id]="id+\'-description-error\'" class="msg msg-errore">\n <strong [innerHTML]="(errorPrefix===false ? \'\' : \'ERRORE: \')+getDescError()"></strong>\n </span>\n </ng-container>\n</div>\n<div class="inail-text-editor-view-encapsulation form-group col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} {{class}} noPadding"\n *ngIf="disabled">\n <div class="col-lg-12 noPadding">\n <span *ngIf="label"\n [hidden]="hiddenLabel"\n class="control-label"\n [innerHTML]="label"></span>\n <div class="text-editor form-control"\n id="{{id}}"\n title="Textarea"\n [innerHTML]="text"></div>\n </div>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[".inail-text-editor-view-encapsulation .control-label{margin-bottom:5px;display:block}.inail-text-editor-view-encapsulation .angular-editor .angular-editor-wrapper .angular-editor-textarea{background-color:#fff!important}div.inail-text-editor-view-encapsulation.has-error div.angular-editor div.angular-editor-wrapper div.angular-editor-textarea{border-color:#a94442!important}.inail-text-editor-view-encapsulation .angular-editor .angular-editor-wrapper .angular-editor-placeholder{z-index:999!important}.inail-text-editor-view-encapsulation .text-editor.form-control{color:#000;border-radius:0;-webkit-appearance:none;border:1px solid #afafaf;font-size:1em!important;resize:none;background-color:#eee;opacity:1;min-height:203px;overflow:auto}.ck-editor__editable_inline,.inail-text-editor-view-encapsulation .ck-editor__editable_inline{min-height:250px!important;border:1px solid #afafaf;position:relative;top:-1px;border-radius:0!important;background-color:#fff}.inail-text-editor-view-encapsulation .ck.ck-toolbar{margin-top:5px;border:1px solid #afafaf!important}.inail-text-editor-view-encapsulation .ck-editor__editable_inline.ck-focused{border-color:#66afe9!important;outline:0!important;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)!important}.inail-text-editor-view-encapsulation.has-error .ck-editor__editable_inline{border-color:#843534!important}.inail-text-editor-view-encapsulation.has-error .ck-editor__editable_inline.ck-focused{box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483!important}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={textChange:[{type:u.Output}],ready:[{type:u.Output}],config:[{type:u.Input}],text:[{type:u.Input}]},e}(A),he=function(){var t=$(".ck.ck-balloon-rotator");t&&t.each(function(e){$(t[e]).attr("data-z-index","-1"),$(t[e]).removeAttr("z-index")})},ge=function(e){function t(){return e.call(this)||this}return m(t,e),t.prototype.ngOnInit=function(){},t.decorators=[{type:u.Component,args:[{selector:"inail-form-grey",template:'<div [attr.id]=\'id || undefined\' class="form-grey content row {{class}}">\n <h3 *ngIf="titolo" class="title-modulo" [innerHTML]="titolo"></h3>\n <div class="col-md-12 col-lg-12">\n <ng-content></ng-content>\n </div>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],t.ctorParameters=function(){return[]},t.propDecorators={titolo:[{type:u.Input}]},t}(S),me=function(t){function e(){var e=t.call(this)||this;return e.contentsHidden=!0,e.select=new u.EventEmitter,e.prevButtonTitle="scorri selettore a destra",e.nextButtonTitle="scorri selettore a sinistra",e}return m(e,t),e.prototype.ngOnInit=function(){},e.prototype.stepOnClick=function(e){this.select.emit(e)},e.prototype.ngAfterViewInit=function(){this.wizard&&this.wizard.inizializzaContenuti(this.contenuti)},e.decorators=[{type:u.Component,args:[{selector:"inail-selector",template:'<inail-wizard [id]="id"\n [class]="class"\n [steps]="steps"\n [fullNavigation]="true"\n [currentStep]="currentStep"\n [contentsHidden]="contentsHidden"\n [showCarattereSeparatore]="false"\n [switchToFirstError]="switchToFirstError"\n [prevButtonTitle]="prevButtonTitle"\n [nextButtonTitle]="nextButtonTitle"\n [showNumber]="false" (select)="stepOnClick($event)" #wizard>\n <ng-content></ng-content>\n</inail-wizard>\n',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e.propDecorators={steps:[{type:u.Input}],currentStep:[{type:u.Input}],contentsHidden:[{type:u.Input}],select:[{type:u.Output}],switchToFirstError:[{type:u.Input}],prevButtonTitle:[{type:u.Input}],nextButtonTitle:[{type:u.Input}],contenuti:[{type:u.ContentChildren,args:[le]}],wizard:[{type:u.ViewChild,args:[ce]}]},e}(S),fe=function(t){function e(){var e=t.call(this)||this;return e.close=new u.EventEmitter,e.setFocusOnLastPageActiveElement=function(){e.pageActiveElement!=undefined&&(0<$(e.pageActiveElement).length?e.pageActiveElement.focus():e.setFocusOnPreviusFocusableElement(e.previusFocusableElements.length-1))},e}return m(e,t),e.prototype.ngOnChanges=function(e){var n=this;e.show&&e.show.currentValue.subscribe(function(e){if(e==undefined&&(e=!0),!0===e){n.pageActiveElement=document.activeElement;var t=$("body").find(":focusable");t.index(n.pageActiveElement);n.previusFocusableElements=t.filter(function(e){return e<t.index(n.pageActiveElement)})}n.showModal(e)})},e.prototype.showModal=function(e){var t=this;jQuery("#"+this.id).modal(e?"show":"hide"),e?(setTimeout(function(){t.trapFocus()},500),k(!1)):(this.close.emit(),k(!0),setTimeout(function(){return t.setFocusOnLastPageActiveElement()},500))},e.prototype.trapFocus=function(){var e=jQuery("#"+this.id),t=e.find(".modal-content").find(":focusable"),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()))})},e.prototype.ngOnInit=function(){this.width==undefined&&(this.width="L")},e.prototype.closeOnClick=function(){this.showModal(!1)},e.prototype.setFocusOnPreviusFocusableElement=function(e){0<=e&&(0<$(this.previusFocusableElements[e]).length?this.previusFocusableElements[e].focus():this.setFocusOnPreviusFocusableElement(e-1))},e.decorators=[{type:u.Component,args:[{selector:"inail-modal",template:'<div class="modal fade {{class}} inail-modal-encapsulation"\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" [ngClass]="{\'wide\' : width==\'L\', \'exta-wide\' : width==\'XL\'}">\n <div class="modal-content">\n <div class="modal-header">\n <span class="modal-title"\n tabindex="0"\n id="{{id}}-TITOLO" [innerHTML]="titolo"></span>\n <button type="button"\n id="{{id}}_close_button"\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',encapsulation:u.ViewEncapsulation.None,styles:[".inail-modal-encapsulation .modal-dialog.wide{width:900px}.inail-modal-encapsulation .modal-dialog.exta-wide{width:1200px}.inail-modal-encapsulation .modal-dialog{max-width:100vw!important}.inail-modal-encapsulation .close:focus,.inail-modal-encapsulation .modal-title:focus{outline:#fff dotted 1px!important}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={titolo:[{type:u.Input}],close:[{type:u.Output}],show:[{type:u.Input}],width:[{type:u.Input}]},e}(S),be=function(t){function e(){var e=t.call(this)||this;return e.close=new u.EventEmitter,e.visualizzaContent=!0,e}return m(e,t),e.prototype.ngOnChanges=function(e){},e.prototype.ngOnInit=function(){w(this.titolo)&&(this.titolo="Messaggio informativo"),this.show==undefined&&(this.show=new u.EventEmitter)},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout(function(){e.visualizzaContent=0<e.modalContent.nativeElement.firstChild.childNodes.length})},e.prototype.okOnClick=function(){this.show.emit(!1)},e.decorators=[{type:u.Component,args:[{selector:"inail-alert",template:'<inail-modal [id]="id"\n [show]="show"\n [class]="class"\n [titolo]="titolo"\n [logOnConsole]="logOnConsole"\n [width]="\'M\'"\n (close)="close.emit($event)"\n (log)="log.emit($event)">\n\n <div *ngIf="!visualizzaContent" class="row">\n <p [innerHTML]="testo"></p>\n </div>\n <div #modalContent *ngIf="visualizzaContent" class="row">\n <p>\n <ng-content></ng-content>\n </p>\n </div>\n\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\n</inail-modal>\n\n\x3c!-- Implementazione precedente --\x3e\n\x3c!--<div class="modal fade {{class}}"\n [attr.id]=\'id || undefined\'\n tabindex="-1"\n role="dialog"\n (click)="$event.preventDefault()"\n data-keyboard="false" data-backdrop="static"\n [attr.aria-labelledby]="id+\'-TITOLO\'">\n <div class="vertical-alignment-helper">\n <div class="modal-dialog vertical-align-center">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button"\n id="{{id}}_close_button"\n (click)="xOnClick()"\n class="close"\n data-dismiss="modal"\n aria-label="Close">\n <span aria-hidden="true">×</span>\n </button>\n <div class="modal-title"\n id="{{id}}-TITOLO">{{titolo}}</div>\n </div>\n <div class="modal-body">\n <div *ngIf="!visualizzaContent" class="row">\n <p [innerHTML]="testo"></p>\n </div>\n <div #modalContent *ngIf="visualizzaContent" class="row">\n <p>\n <ng-content></ng-content>\n </p>\n </div>\n </div>\n <div class="modal-footer">\n <button type="button"\n (click)="okOnClick()"\n class="btn btn-primary pull-right">Ok\n </button>\n </div>\n </div>\n </div>\n </div>\n</div>--\x3e\n',encapsulation:u.ViewEncapsulation.None,styles:[".alert-footer{padding-bottom:20px!important;padding-top:35px!important}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={titolo:[{type:u.Input}],testo:[{type:u.Input}],show:[{type:u.Input}],close:[{type:u.Output}],modalContent:[{type:u.ViewChild,args:["modalContent"]}]},e}(S),ve=function(t){function e(){var e=t.call(this)||this;return e.valueChange=new u.EventEmitter,e}return m(e,t),e.prototype.ngOnChanges=function(e){e.value&&(this.previousValue=e.value.previousValue,this.normalizzaValore(),!e.value.firstChange&&this.cleanErrorOnChange&&(this.hasError=!1,this.descError=undefined))},e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){this.showPopover()&&$("#"+this.id+"-popover").popover()},e.prototype.normalizzaValore=function(){var e=this;setTimeout(function(){e.disabled||(e.min!=undefined&&e.valueValue<e.min?e.value=e.previousValue!=undefined?e.previousValue:e.min:e.max!=undefined&&e.valueValue>e.max&&(e.value=e.previousValue!=undefined?e.previousValue:e.max))})},Object.defineProperty(e.prototype,"value",{get:function(){return this.valueValue},set:function(e){this.valueValue=e,this.valueChange.emit(this.valueValue)},enumerable:!0,configurable:!0}),e.prototype.checkError=function(){return this.hasError||E(this.descError)},e.prototype.checkDescError=function(){return this.checkError()&&E(this.getDescError())},e.prototype.getDescError=function(){return this.descError},e.prototype.onKeyUp=function(){this.valueValue==undefined||this.checkDecimal()||(this.valueValue=this.previousValue,this.valueChange.emit(this.valueValue)),this.valueValue==undefined&&(this.inputElement.nativeElement.value=undefined)},e.prototype.checkDecimal=function(){if(this.numberOfDecimals==undefined)return!0;var e=String(this.valueValue).split(".");return 0<this.numberOfDecimals&&(1==e.length||e[1].length<=this.numberOfDecimals)||0==this.numberOfDecimals&&1==e.length},e.decorators=[{type:u.Component,args:[{selector:"inail-input-number",template:'<div class="form-group col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} noPaddingLeft {{class}}"\n [ngClass]="{\'has-error\': checkError()}">\n <label *ngIf="label"\n [hidden]="hiddenLabel"\n class="control-label {{labelClass}}"\n title="{{labelTitle}}"\n for="{{id}}"\n [innerHTML]="label.concat(required ? \' \'+(requiredSimbol || \'*\') : \'\')"></label>\n <ng-container *ngIf="showPopover()">\n \n <em [id]="id+\'-popover\'"\n class="fa fa-question-circle fa-lg"\n data-toggle="popover"\n title="{{popoverButtonTitle}}"\n [attr.data-content]="popoverContent"\n [attr.data-original-title]="popoverTitle">\n </em>\n </ng-container>\n <input #inputElement\n type="number"\n *ngIf="!disabled"\n id="{{id}}"\n title="{{title}}"\n [attr.max]="max"\n [attr.min]="min"\n [attr.step]="step"\n class="form-control {{inputClass}}"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="checkError() === true ? true : undefined"\n [attr.aria-describedBy]="checkDescError() ? id+\'-description-error\' : undefined"\n (keyup)="onKeyUp()"\n (keyup.enter)="enterUp.emit()"\n [value]="valueValue"\n [(ngModel)]=\'value\'>\n <input type="text"\n *ngIf="disabled"\n id="{{id}}"\n title="{{title}}"\n [disabled]="disabled"\n class="form-control disabled {{inputClass}}"\n [ngModel]=\'value\'>\n <ng-container *ngIf="checkDescError()">\n <span [id]="id+\'-description-error\'" class="msg msg-errore">\n <strong [innerHTML]="(errorPrefix===false ? \'\' : \'ERRORE: \')+getDescError()"></strong>\n </span>\n </ng-container>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e.propDecorators={max:[{type:u.Input}],min:[{type:u.Input}],step:[{type:u.Input}],defaultValue:[{type:u.Input}],numberOfDecimals:[{type:u.Input}],valueChange:[{type:u.Output}],inputElement:[{type:u.ViewChild,args:["inputElement"]}],value:[{type:u.Input}]},e}(A),ye=function(i){function e(e,t){var n=i.call(this)||this;return n.router=e,n.cdr=t,n.espandiPercorsoAutomaticamente=!0,n.select=new u.EventEmitter,n.currentElement=new u.EventEmitter,n.innerMenu=!1,n.inizializzazioneCompletata=!1,n.mostraElemento=new u.EventEmitter,n.getPropertyValue=function(e){return a.isFunction(e)?e():e},n.getItemTitle=function(e){return n.getPropertyValue(e.title)},n.getItemAriaLabel=function(e){return n.getPropertyValue(e.ariaLabel)},n.impostaUrlEffettivo=function(e){!n.disabilitaOverrideLink&&e&&n.isCurrentUrl(n.getElementLinkRegex(e))&&(e.link=n.router.url)},n.isCurrentPageElement=function(e){if(!0===e.debug)n.isCurrentUrl(n.getElementLink(e))||n.isCurrentUrl(n.getElementLinkRegex(e))||e.activeLinks!=undefined&&e.activeLinks.some(n.isCurrentUrl);return n.isCurrentUrl(n.getElementLink(e))||n.isCurrentUrl(n.getElementLinkRegex(e))||e.activeLinks!=undefined&&e.activeLinks.some(n.isCurrentUrl)},n.isCurrentUrl=function(e){return e!=undefined&&null!=n.router.url.split("?")[0].match(new RegExp("^".concat(e).concat("$"),"i"))},n.showElement=function(e){return!0===e.show||e.show==undefined||a.isFunction(e.show)&&!0===e.show()||n.isAutoShowElement(e)},n.isAutoShowElement=function(e){return e.show===we&&(n.isCurrentPageElement(e)||e.subElements&&e.subElements.some(n.isAutoShowElement))},n.isExpanded=function(e){return e&&"true"==$("#"+e.id).attr("aria-expanded")},n.isCollapsible=function(e){return e.collapsible&&n.hasSubElements(e)},n}return m(e,i),e.prototype.ngOnChanges=function(e){var t=this;this.emitDebug("MenuComponent changes:"),this.emitDebug(e),e.elements&&e.elements.currentValue&&(this.setParents(e.elements.currentValue,this.parent),this.impostaUrlEffettivi(),this.emitCurrentElement()),e.reload&&e.reload.currentValue&&e.reload.currentValue.subscribe(function(e){t.elements=[].concat(e||t.elements),t.setParents(t.elements,t.parent),t.impostaUrlEffettivi(),t.emitCurrentElement()}),e.emitCurrent&&e.emitCurrent.currentValue&&e.emitCurrent.currentValue.subscribe(function(){t.emitCurrentElement()}),e.collapse&&e.collapse.currentValue&&e.collapse.currentValue.subscribe(function(e){e==undefined?t.collassaLivello():t.collassaElemento(e)}),e.show&&e.show.currentValue&&e.show.currentValue.subscribe(function(e){e==undefined?t.espandiLivello():t.espandiPercorso(e)}),e.toggle&&e.toggle.currentValue&&e.toggle.currentValue.subscribe(function(e){e==undefined?t.toggleLivello():t.toggleElemento(e)}),e.showAll&&e.showAll.currentValue&&e.showAll.currentValue.subscribe(function(){return t.espandiTutti()}),e.toggleAll&&e.toggleAll.currentValue&&e.toggleAll.currentValue.subscribe(function(){return t.toggleTutti()})},e.prototype.ngOnInit=function(){var t=this;this.disabilitaImpostazioneParents==undefined&&(this.disabilitaImpostazioneParents=!1),this.disabilitaOverrideLink==undefined&&(this.disabilitaOverrideLink=!1),this.collapsible==undefined&&(this.collapsible=!1),!1===this.collapsible&&(this.collapsed=!1),this.collapsed==undefined&&(this.collapsed=!0===this.collapsible),this.collapsOtherEffetc==undefined&&(this.collapsOtherEffetc=!1),this.elements!=undefined&&0<this.elements.length&&this.elements.forEach(function(e){e.id==undefined&&(e.id=p.v4()),e.show==undefined&&(e.show=!0),e.collapsible==undefined&&(e.collapsible=t.collapsible),!1===e.collapsible&&(e.collapsed=!1),e.collapsed==undefined&&(e.collapsed=!0===e.collapsible),e.collapseOther==undefined&&(e.collapseOther=t.collapsOtherEffetc)}),this.inizializzazioneCompletata=!0,this.impostaUrlEffettivi(),this.emitCurrentElement(),this.router.events.pipe(o.filter(function(e){return e instanceof c.NavigationEnd})).subscribe(function(){t.impostaUrlEffettivi(),t.emitCurrentElement()})},e.prototype.ngAfterViewInit=function(){this.sottoMenu.forEach(function(e){return e.innerMenu=!0})},e.prototype.removeAriaExpanded=function(e,t){var n=document.getElementById(e);n&&setTimeout(function(){n.removeAttribute("aria-expanded")},t||50)},e.prototype.impostaUrlEffettivi=function(){this.elements&&0<this.elements.length&&this.elements.forEach(this.impostaUrlEffettivo)},e.prototype.emitCurrentElement=function(){var e=this.findCurrentElement(this.elements);e!=undefined&&(this.impostaUrlEffettivo(e),this.emitDebug("Emissione elemento menu url corrente:"),this.emitDebug(e),this.currentElement.emit(e),this.isEffettoFisarmonicaAbilitato(e)&&this.collapseOther(e))},e.prototype.findCurrentElement=function(e){var t=this,n=undefined;return e!=undefined&&0<e.length&&e.forEach(function(e){n==undefined&&e!=undefined&&t.isCurrentPageElement(e)&&(n=e)}),n},e.prototype.findElement=function(t,e){var n=this,i=undefined;return e!=undefined&&0<e.length&&e.forEach(function(e){i==undefined&&e!=undefined&&(i=e.id==t?e:n.findElement(t,e.subElements))}),i},e.prototype.isCollapsed=function(e){return e&&!0===e.collapsed},e.prototype.isActive=function(e){return this.activeElement?e.id==this.activeElement:this.isCurrentPageElement(e)},e.prototype.getElementLink=function(e){return a.isFunction(e.link)?e.link():e.link},e.prototype.getElementLinkRegex=function(e){return a.isFunction(e.linkRegex)?e.linkRegex():e.linkRegex},e.prototype.getElementLabel=function(e){return a.isFunction(e.label)?e.label():e.label},e.prototype.hasSubElements=function(e){return e&&e.subElements&&0<e.subElements.length},e.prototype.collassaLivello=function(){this.doCollapse("hide")},e.prototype.collassaElemento=function(e){this.doCollapseElement(e,"hide")},e.prototype.espandiLivello=function(){this.doCollapse("show")},e.prototype.espandiElemento=function(e){this.doCollapseElement(e,"show")},e.prototype.espandiPercorso=function(n){var i=this;this.elements&&this.elements.forEach(function(e){var t=i.findElement(n,e.subElements);(e&&e.id==n||t!=undefined)&&(i.espandiElemento(e.id),t&&i.mostraElemento.emit(n))})},e.prototype.toggleLivello=function(){this.doCollapse("toggle")},e.prototype.toggleElemento=function(e){this.doCollapseElement(e,"toggle")},e.prototype.collassaTutti=function(){this.doCollapseAll("hide")},e.prototype.espandiTutti=function(){this.doCollapseAll("show")},e.prototype.toggleTutti=function(){this.doCollapseAll("toggle")},e.prototype.doCollapse=function(e){var t=$("#"+this.id+" > li > inail-menu > ul.collapse");V(t,"collapse",e)},e.prototype.doCollapseElement=function(e,t){var n=$("#"+this.id+" > li > a#"+e);V(n,"next").call("find",">ul.collapse").call("collapse",t)},e.prototype.doCollapseAll=function(e){var t=$("#"+this.id+" .collapse");V(t,"collapse",e)},e.prototype.setParents=function(e,t){var n=this;!this.disabilitaImpostazioneParents&&e!=undefined&&0<e.length&&e.forEach(function(e){e!=undefined&&(t&&(e.parent=n.toLightElement(t)),n.setParents(e.subElements,e))})},e.prototype.toLightElement=function(e){return e!=undefined?{id:e.id,label:e.label,link:e.link,parent:this.toLightElement(e.parent)}:undefined},e.prototype.elementOnClick=function(e){e&&(e.callback&&a.isFunction(e.callback)&&e.callback(),this.isEffettoFisarmonicaAbilitato(e)&&this.collapseOther(e)),this.select.emit(e)},e.prototype.collapseOther=function(t){var n=this;t&&this.elements.forEach(function(e){e&&e.id!=t.id&&n.collassaElemento(e.id)})},e.prototype.isEffettoFisarmonicaAbilitato=function(e){return e&&!0===e.collapseOther&&e.subElements!=undefined&&0<e.subElements.length},e.prototype.forwardCurrent=function(e){e&&(this.currentElement.emit(e),!1===this.innerMenu&&!0===this.espandiPercorsoAutomaticamente&&this.espandiPercorso(e.id))},e.prototype.onKeyupSpace=function(e){$(e.target).click()},e.prototype.itemOnArrowDown=function(){var t=this.focusableItems,e=t.filter(function(e){return e>t.index(document.activeElement)}).first();e&&e.focus()},e.prototype.itemOnArrowUp=function(){var t=this.focusableItems,e=t.filter(function(e){return e<t.index(document.activeElement)}).last();e&&e.focus()},Object.defineProperty(e.prototype,"focusableItems",{get:function(){return window.$("body").find('ul.inail-menu-style-encapsulation > li > a:not([tabindex="-1"])')},enumerable:!0,configurable:!0}),e.decorators=[{type:u.Component,args:[{selector:"inail-menu",template:'<ng-container *ngIf="true">\n <ul id="{{id}}"\n *ngIf="inizializzazioneCompletata"\n [attr.role]="\'menu\'"\n class="inail-menu-style-encapsulation {{menuClass}}">\n\n <ng-container *ngFor="let element of elements">\n\n <li *ngIf="showElement(element)"\n [attr.role]="element.link ? \'menuitem\' : undefined"\n [ngClass]="{selected: isActive(element)}"\n class="livello_1">\n <a *ngIf="element.link"\n [id]="element.id"\n [attr.title]="getItemTitle(element)"\n [attr.aria-label]="getItemAriaLabel(element)"\n tabindex="0"\n [routerLink]="getElementLink(element)"\n [queryParams]="element.queryParams"\n [innerHTML]="getElementLabel(element)"\n (click)="elementOnClick(element)"\n (keyup.arrowUp)="itemOnArrowUp()"\n (keyup.arrowDown)="itemOnArrowDown()"\n (keyup.space)="onKeyupSpace($event)"\n [attr.data-toggle]="isCollapsible(element) ? \'collapse\' : undefined"\n [attr.data-target]="isCollapsible(element) ? \'#\'+element.id+\'-items\' : undefined"\n [attr.aria-expanded]="isCollapsible(element) ? !element.collapsed : undefined">\n </a>\n <a *ngIf="!element.link"\n [id]="element.id"\n [attr.title]="getItemTitle(element)"\n [attr.aria-label]="getItemAriaLabel(element)"\n tabindex="0"\n role="button"\n [innerHTML]="getElementLabel(element)"\n (click)="elementOnClick(element)"\n (keyup.arrowUp)="itemOnArrowUp()"\n (keyup.arrowDown)="itemOnArrowDown()"\n (keyup.enter)="toggleElemento(element.id)"\n (keyup.space)="onKeyupSpace($event)"\n [attr.data-toggle]="isCollapsible(element) ? \'collapse\' : undefined"\n [attr.data-target]="isCollapsible(element) ? \'#\'+element.id+\'-items\' : undefined"\n [attr.aria-expanded]="isCollapsible(element) ? !element.collapsed : undefined">\n </a>\n <p *comment>\n Attributi rimossi:\n [attr.aria-haspopup]="isCollapsible(element) ? element.collapsible ? \'true\' : \'false\' : undefined"\n [attr.aria-controls]="isCollapsible(element) ? element.id+\'-items\' : undefined"\n </p>\n <p *comment>\n Mettondolo si ha una anomalia con Jaws:\n [title]="(isCollapsible(element)) ? (\'Clicca per \' + (!isExpanded(element) ? \'espandere\' : \'chiudere\') + \' la voce di menù\') : undefined"\n </p>\n <p *comment>\n L\'attributo aria-expanded viene impostato inizialmente se l\'elemento e\' espandibile.\n Dopodiche\' il suo valore viene modificato direttamente\n dalla libreria bootstrap che si occupa di gestire gli effetti di collapsing.\n </p>\n <p *comment>\n Per problemi di "accessibilita!!" viene sostituito\n [attr.aria-label]="isCollapsible(element) ? element.collapsible ? \'Espande/chiude la voce di menù: \'+getElementLabel(element) : \'\' : undefined"\n con\n [attr.aria-haspopup]="isCollapsible(element) ? element.collapsible ? \'true\' : \'false\' : undefined"\n </p>\n <inail-menu *ngIf="hasSubElements(element)"\n [id]="element.id+\'-items\'"\n [activeElement]="activeElement"\n [menuClass]="element.collapsible ? \'livello_2\'.concat(isCollapsed(element) ? \' collapse\' : \' collapse in\') : \'livello_2\'"\n [elements]="element.subElements"\n [emitCurrent]="emitCurrent"\n [disabilitaImpostazioneParents]="true"\n [parent]="element"\n [collapsible]="collapsible"\n [collapsOtherEffetc]="collapsOtherEffetc"\n (select)="select.emit($event)"\n [collapse]="collapse"\n [toggle]="toggle"\n [show]="mostraElemento"\n (currentElement)="forwardCurrent($event)">\n </inail-menu>\n </li>\n </ng-container>\n </ul>\n</ng-container>\n\n<ng-container *ngIf="false">\n <ul id="{{id}}"\n *ngIf="inizializzazioneCompletata"\n role="menu"\n class="inail-menu-style-encapsulation {{menuClass}}">\n\n <ng-container *ngFor="let element of elements">\n\n <li *ngIf="showElement(element)"\n [ngClass]="{selected: isActive(element)}"\n class="livello_1">\n <a *ngIf="element.link"\n [id]="element.id"\n [routerLink]="getElementLink(element)"\n [queryParams]="element.queryParams"\n [innerHTML]="getElementLabel(element)"\n (click)="elementOnClick(element)"\n [attr.data-toggle]="element.collapsible && hasSubElements(element) ? \'collapse\' : undefined"\n [attr.data-target]="element.collapsible && hasSubElements(element) ? \'#\'+element.id+\'-items\' : undefined"\n [attr.aria-controls]="element.collapsible && hasSubElements(element) ? element.id+\'-items\' : undefined"\n [attr.aria-haspopup]="element.collapsible && hasSubElements(element) ? element.collapsible ? \'true\' : \'false\' : undefined"\n [attr.aria-expanded]="element.collapsible && hasSubElements(element) ? !element.collapsed : undefined">\n </a>\n <a *ngIf="!element.link"\n [id]="element.id"\n href="javascript:void(0)"\n role="button"\n [innerHTML]="getElementLabel(element)"\n (click)="elementOnClick(element)"\n [attr.data-toggle]="element.collapsible && hasSubElements(element) ? \'collapse\' : undefined"\n [attr.data-target]="element.collapsible && hasSubElements(element) ? \'#\'+element.id+\'-items\' : undefined"\n [attr.aria-controls]="element.collapsible && hasSubElements(element) ? element.id+\'-items\' : undefined"\n [attr.aria-haspopup]="element.collapsible && hasSubElements(element) ? element.collapsible ? \'true\' : \'false\' : undefined"\n [attr.aria-expanded]="element.collapsible && hasSubElements(element) ? !element.collapsed : undefined">\n </a>\n <p *comment>\n L\'attributo aria-expanded viene impostato inizialmente se l\'elemento e\' espandibile.\n Dopodiche\' il suo valore viene modificato direttamente\n dalla libreria bootstrap che si occupa di gestire gli effetti di collapsing.\n </p>\n <p *comment>\n Per problemi di "accessibilita!!" viene sostituito\n [attr.aria-label]="element.collapsible && hasSubElements(element) ? element.collapsible ? \'Espande/chiude la voce di menù: \'+getElementLabel(element) : \'\' : undefined"\n con\n [attr.aria-haspopup]="element.collapsible && hasSubElements(element) ? element.collapsible ? \'true\' : \'false\' : undefined"\n </p>\n <inail-menu *ngIf="hasSubElements(element)"\n [id]="element.id+\'-items\'"\n [activeElement]="activeElement"\n [menuClass]="element.collapsible ? \'livello_2\'.concat(isCollapsed(element) ? \' collapse\' : \' collapse in\') : \'livello_2\'"\n [elements]="element.subElements"\n [emitCurrent]="emitCurrent"\n [disabilitaImpostazioneParents]="true"\n [parent]="element"\n [collapsible]="collapsible"\n [collapsOtherEffetc]="collapsOtherEffetc"\n (select)="select.emit($event)"\n [collapse]="collapse"\n [toggle]="toggle"\n [show]="mostraElemento"\n (currentElement)="forwardCurrent($event)">\n </inail-menu>\n </li>\n </ng-container>\n </ul>\n</ng-container>\n\n\n',encapsulation:u.ViewEncapsulation.None,styles:["ul.inail-menu-style-encapsulation{padding:0 10px!important}ul.inail-menu-style-encapsulation ul{padding:0!important}"]}]}],e.ctorParameters=function(){return[{type:c.Router},{type:u.ChangeDetectorRef}]},e.propDecorators={id:[{type:u.Input}],activeElement:[{type:u.Input}],reload:[{type:u.Input}],emitCurrent:[{type:u.Input}],collapse:[{type:u.Input}],show:[{type:u.Input}],toggle:[{type:u.Input}],showAll:[{type:u.Input}],toggleAll:[{type:u.Input}],elements:[{type:u.Input}],parent:[{type:u.Input}],disabilitaImpostazioneParents:[{type:u.Input}],collapsOtherEffetc:[{type:u.Input}],collapsible:[{type:u.Input}],collapsed:[{type:u.Input}],espandiPercorsoAutomaticamente:[{type:u.Input}],menuClass:[{type:u.Input}],select:[{type:u.Output}],currentElement:[{type:u.Output}],sottoMenu:[{type:u.ViewChildren,args:[e]}]},e}(T),we="auto",Ee=function zt(){},Ie="stylesheet",Ce="screen",ke="text/css",ze="text/javascript",xe="/assets/app/webkit-addon/1.0.0/static_Inail",De=[{href:"/css/bootstrap.css",rel:Ie,type:ke,media:Ce,assetUrl:xe},{href:"/css/foglia.css",rel:Ie,type:ke,media:Ce},{href:"/css/custom.css",rel:Ie,type:ke,media:Ce,assetUrl:xe},{href:"/css/form.css",rel:Ie,type:ke,media:Ce},{href:"/css/font-awesome.min.css",rel:Ie,type:ke,media:Ce,assetUrl:xe+"/font-awesome-4.3.0"},{href:"/js/datepicker/bootstrap-datepicker3.standalone.min.css",rel:Ie,type:ke,media:Ce},{href:"/css/home_sezione.css",rel:Ie,type:ke,media:Ce},{href:"/css/servizi.css",rel:Ie,type:ke,media:Ce},{href:"/css/intranet.css",rel:Ie,type:ke,media:Ce},{href:"/css/jquery-ui.css",rel:Ie,type:ke,media:Ce,assetUrl:xe},{href:"/css/print.css",rel:Ie,type:ke,media:"print"},{href:"/css/print_intranet.css",rel:Ie,type:ke,media:"print"},{href:"/css/custom-webkit.css",rel:Ie,type:ke,media:Ce},{href:"/css/slick.css",rel:Ie,type:ke,media:Ce}],Te=[{src:"/js/modernizr.js",type:ze,assetUrl:xe},{src:"/js/jquery-1.11.1.js",type:ze,assetUrl:xe},{src:"/js/jquery-ui.js",type:ze,assetUrl:xe},{src:"/js/bootstrap.min.js",type:ze,assetUrl:xe},{src:"/js/datepicker/bootstrap-datepicker.js",type:ze,assetUrl:xe},{src:"/js/datepicker/bootstrap-datepicker.it.min.js",type:ze,assetUrl:xe},{src:"/js/main.js",type:ze},{src:"/js/print.js",type:ze},{src:"/js/spid-sp-access-button.min.js",type:ze},{src:"/js/jquery.rwdImageMaps.js",type:ze},{src:"/js/custom-webkit.js",type:ze},{src:"/js/combobox.js",type:ze},{src:"/js/slick.js",type:ze}],Oe="/static",Se="/static_intra",Pe="validation-btn",Ve=function(t){function e(){var e=t.call(this)||this;return e.validationBtnClass=Pe,e.onclick=new u.EventEmitter,e.visualizzaContent=!0,e}return m(e,t),e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout(function(){e.visualizzaContent=0<e.buttonContent.nativeElement.childNodes.length})},e.prototype.onClick=function(e){this.onclick.emit(e)},e.decorators=[{type:u.Component,args:[{selector:"inail-button",template:'<button [type]="submit ? \'submit\' : \'button\'"\n id="{{id}}"\n title="{{title}}"\n [attr.name]="name"\n [disabled]="disabled"\n (click)="onClick($event)"\n class="btn {{btnLink ? \'btn-link\' : \'btn-primary\'}} {{class}} inail-button"\n [ngClass]="{\'btn-success\': btnSuccess}">\n <span *ngIf="angleLeft" class=\'fa left fa-angle-left\'></span>\n <span *ngIf="iconLeft" class=\'fa {{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 {{iconRight}}\'></span>\n <span *ngIf="angleRight" class=\'fa fa-angle-right right\'></span>\n</button>\n',encapsulation:u.ViewEncapsulation.None,styles:[".inail-button:focus{outline-color:#fff!important}.inail-button.btn-link:focus{outline-color:#106cdb!important}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={btnSuccess:[{type:u.Input}],btnLink:[{type:u.Input}],submit:[{type:u.Input}],angleRight:[{type:u.Input}],angleLeft:[{type:u.Input}],iconLeft:[{type:u.Input}],iconRight:[{type:u.Input}],onclick:[{type:u.Output}],buttonContent:[{type:u.ViewChild,args:["buttonContent"]}]},e}(A),Le=function(r){function e(e,t,n,i){var a=r.call(this)||this;return a.renderer=e,a.http=t,a._elementRef=n,a.router=i,a.breadcrumbEsterno=!0,a.inizializzazioneTerminata=!1,a}return m(e,r),e.prototype.onClick=function(e){this.config.focusOnFirstError&&this.isSubmitButton(e)&&(this.log.emit({level:D.DEBUG,message:"Submit button clicked"}),Re(this.config.scrollToFirstError))},e.prototype.isSubmitButton=function(e){return e&&("BUTTON"==e.nodeName&&e.attributes&&e.attributes.getNamedItem("type")&&"submit"===e.attributes.getNamedItem("type").nodeValue||this.isSubmitButton(e.parentElement))},e.prototype.isValidationButton=function(e){return e&&("BUTTON"==e.nodeName&&this.hasClassValidationBtn(e)||this.isValidationButton(e.parentElement))},e.prototype.hasClassValidationBtn=function(e){return e&&e.classList&&e.classList.contains(Pe)},e.prototype.ngOnInit=function(){this.init()},e.prototype.init=function(){return b(this,void 0,void 0,function(){return v(this,function(e){switch(e.label){case 0:return this.removeNgVersion(this._elementRef.nativeElement),this.gestioneEventiFineNavigazione(),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:e.sent(),e.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},e.label=3;case 3:return!0!==this.config.caricamentoDinamicoRisorseEsterne?[3,5]:[4,this.loadRisorseEsterne(this.externalResources||De,"link")];case 4:e.sent(),e.label=5;case 5:return!0!==this.config.caricamentoDinamicoScriptEsterni?[3,7]:[4,this.loadRisorseEsterne(this.externalScripts||Te,"script")];case 6:e.sent(),e.label=7;case 7:return this.inizializzazioneTerminata=!0,[2]}})})},e.prototype.removeNgVersion=function(e){e&&(e.hasAttribute&&e.hasAttribute("ng-version")?e.removeAttribute("ng-version"):this.removeNgVersion(e.parentElement))},e.prototype.loadRisorseEsterne=function(i,a){return b(this,void 0,void 0,function(){var t,n=this;return v(this,function(e){switch(e.label){case 0:switch(E(this.config.cdnEndpoint)&&i.forEach(function(e){return n.impostaPathRisorsa2(e,a)}),t=[],i.forEach(function(e){return t.push({loaded:!1,resource:e})}),a){case"link":return[3,1];case"script":return[3,3]}return[3,5];case 1:return[4,this.caricaRisorseEsterne(t)];case 2:return e.sent(),[3,5];case 3:return[4,this.caricaScriptEsterni(t)];case 4:return e.sent(),[3,5];case 5:return[2]}})})},e.prototype.impostaPathRisorsa=function(e,t){var n="";switch(C(e.assetUrl)||(n=e.cdnEndpoint||this.config.cdnEndpoint||""),n=n.concat(e.assetUrl||this.config.assetsUrl||(this.config.intranet?Se:Oe)),t){case"link":C(e.href)||(e.href=""+n+e.href);break;case"script":C(e.src)||(e.src=""+n+e.src)}},e.prototype.impostaPathRisorsa2=function(e,t){var n;switch(t){case"link":n="href";break;case"script":n="src"}e.assetUrl=C(e[n])?"":e.assetUrl||this.config.assetsUrl||(this.config.intranet?Se:Oe),e.cdnEndpoint=C(e.assetUrl)?"":e.cdnEndpoint||this.config.cdnEndpoint||""},e.prototype.caricaRisorseEsterne=function(i,a){return void 0===a&&(a=0),b(this,void 0,void 0,function(){var t,n;return v(this,function(e){switch(e.label){case 0:if(!(a<i.length))return[3,6];e.label=1;case 1:return e.trys.push([1,3,,4]),this.emitDebug("Caricamento risorsa esterna:"),this.emitDebug(i[a]),[4,this.creaElementoRisorsaEsterna(i[a],"link")];case 2:return t=e.sent(),this.emitDebug("...caricamento risorsa esterna completato"),this.emitDebug(t),[3,4];case 3:return n=e.sent(),this.emitError("Errore caricamento risorsa esterna!"),this.emitError(n),[3,4];case 4:return[4,this.caricaRisorseEsterne(i,a+1)];case 5:e.sent(),e.label=6;case 6:return[2]}})})},e.prototype.caricaScriptEsterni=function(n,i){return void 0===i&&(i=0),b(this,void 0,void 0,function(){var t=this;return v(this,function(e){return i<n.length&&setTimeout(function(){t.emitDebug("Caricamento script esterno:"),t.emitDebug(n[i]),t.creaElementoRisorsaEsterna(n[i],"script").then(function(e){t.emitDebug("...caricamento script esterno completato"),t.emitDebug(e)})["catch"](function(e){t.emitError("Errore caricamento script esterno!"),t.emitError(e)})["finally"](function(){return t.caricaScriptEsterni(n,i+1)})},this.config.scriptLoadingDeelay||300),[2]})})},e.prototype.creaElementoRisorsaEsterna=function(a,r){return b(this,void 0,void 0,function(){return v(this,function(e){return[2,new Promise(function(e,t){var n=a.resource.src||a.resource.href;if(a.loaded)e({resource:n,loaded:!0,status:"Already Loaded"});else{var i;switch(r){case"script":i=Fe(a.resource);break;case"link":i=Ue(a.resource)}i.readyState?i.onreadystatechange=function(){"loaded"!==i.readyState&&"complete"!==i.readyState||(i.onreadystatechange=null,a.loaded=!0,e({resource:n,loaded:!0,status:"Loaded"}))}:i.onload=function(){a.loaded=!0,e({resource:n,loaded:!0,status:"Loaded"})},i.onerror=function(e){return t({resource:a.resource,loaded:!1,status:"Loaded"})},document.head.appendChild(i)}})]})})},e.prototype.ngAfterViewInit=function(){var t=this;setTimeout(function(){t.breadcrumbEsterno=!!t.breadcrumbContainer&&0<t.breadcrumbContainer.nativeElement.childElementCount}),this.menuList&&0<this.menuList.length&&this.menuList.forEach(function(e){e.currentElement.subscribe(function(e){e!=undefined&&(t.paginaCorrente=t.toPaginaApplicativa(e))})})},e.prototype.gestioneEventiFineNavigazione=function(){},e.prototype.toPaginaApplicativa=function(e){return e!=undefined?{titolo:this.getElementLabel(e),url:this.getElementLink(e),parent:this.toPaginaApplicativa(e.parent)}:undefined},e.prototype.getElementLink=function(e){return a.isFunction(e.link)?e.link():e.link},e.prototype.getElementLabel=function(e){return a.isFunction(e.label)?e.label():e.label},e.prototype.recuperaCdnEnpoint=function(){return b(this,void 0,void 0,function(){var t,n,i;return v(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),t=(C(this.config.apiGatewayUrl)?"":this.config.domainUrl||"")+(this.config.apiGatewayUrl||"/api")+"/.well-known/inail-configuration",[4,this.http.get(t,{withCredentials:!0}).toPromise()];case 1:return n=e.sent(),this.config.cdnEndpoint=n.cdn_endpoint,[3,3];case 2:return i=e.sent(),this.emitError("Errore nel recupero del cdnEnpoint da api gateway"),this.emitError(i),[3,3];case 3:return[2]}})})},e.decorators=[{type:u.Component,args:[{selector:"inail-layout",template:'<inail-loader [show]="showLoader"></inail-loader>\n\x3c!--<div *ngIf="!inizializzazioneTerminata" class="please-wait">\n <div class="app-name">Servizio Sociale Informatizzato</div>\n <div>Caricamento in corso ...</div>\n</div>--\x3e\n<ng-content *ngIf="!inizializzazioneTerminata"\n select="[please-wait]">\n</ng-content>\n<div class="container"\n [hidden]="!inizializzazioneTerminata"\n [ngClass]="{\'wide\' : config && config.containerWide}">\n\n <header id="inail-header"\n *ngIf="inizializzazioneTerminata"\n [config]="headerConfig"\n [infoDipendente]="this.infoDipendente"\n [logOnConsole]="this.logOnConsole"\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" [paginaCorrente]="paginaCorrente"></inail-breadcrumb>\n </div>\n\n <inail-trigger-slider-menu-button></inail-trigger-slider-menu-button>\n\n <div class="row">\n\n <inail-navigazione-secondaria>\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',encapsulation:u.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}"]}]}],e.ctorParameters=function(){return[{type:u.Renderer2},{type:l.HttpClient},{type:u.ElementRef},{type:c.Router}]},e.propDecorators={showLoader:[{type:u.Input}],config:[{type:u.Input}],infoDipendente:[{type:u.Input}],externalResources:[{type:u.Input}],externalScripts:[{type:u.Input}],breadcrumbContainer:[{type:u.ViewChild,args:["breadcrumbContainer"]}],menuList:[{type:u.ContentChildren,args:[ye]}],onClick:[{type:u.HostListener,args:["click",["$event.target"]]}]},e}(T),Ae=function(e){setTimeout(function(){window.scroll({top:e,left:0,behavior:"smooth"})})},Ue=function(e){var t=document.createElement("link"),n=e.cdnEndpoint+e.assetUrl+e.href;return Me(t,"rel",e.rel),Me(t,"type",e.type),Me(t,"href",n),Me(t,"media",e.media),Me(t,"hreflang",e.hreflang),t},Fe=function(e){var t=document.createElement("script"),n=e.cdnEndpoint+e.assetUrl+e.src;return Me(t,"src",n),Me(t,"type",e.type),Me(t,"charset",e.charset),!0===e.async&&(t.async=!0),!0===e.defer&&(t.defer=!0),t},Me=function(e,t,n){e!=undefined&&n!=undefined&&(e[t]=n)},Re=function(e){Ne(e)},Ne=function(e){0<$(".modal.fade.in").not("."+F).length?He():je(e)},He=function(){setTimeout(function(){var e=z($(".modal-body .has-error"))[0],t=z($(".modal-body .feedback-box-error"))[0];e?e.focus():t&&t.focus()},100)},je=function(t){setTimeout(function(){var e=z($(".has-error,.feedback-box-error").not(".global-feedback"))[0];e&&$(e).is(":visible")?(!0===t&&function(t){setTimeout(function(){var e=document.getElementById(t);e&&Ae(e.getBoundingClientRect().top+window.pageYOffset-50)})}(e.id),setTimeout(function(){e&&e.focus()},500)):_e(t)},100)},_e=function(e){Be(".feedback-box-error",e)},Be=function(n,i){setTimeout(function(){var e=$(n);if(e){i&&e[0]!=undefined&&Ae(e[0].id);var t=e.find(".feedback-focusable")[0];t!=undefined&&setTimeout(function(){t.focus()},500)}},100)},$e=function(){function e(){}return e.prototype.ngOnInit=function(){},e.decorators=[{type:u.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',encapsulation:u.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%}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={show:[{type:u.Input}]},e}(),qe=function(e){function t(){return e.call(this)||this}return m(t,e),t.prototype.ngAfterViewInit=function(){this.logoInail.nativeElement.focus()},t.prototype.ngOnInit=function(){this.config||(this.config={clientId:""}),this.config.domainUrl||(this.config.domainUrl=""),this.config.cdnEndpoint==undefined&&(this.config.cdnEndpoint=""),this.config.assetsUrl==undefined&&(this.config.assetsUrl=this.config.intranet?Se:Oe),C(this.config.assetsUrl)||this.config.cdnEndpoint==undefined||(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}},t.decorators=[{type:u.Component,args:[{selector:'header[id="inail-header"]',template:'<h1>INAIL - Istituto Nazionale per l\'Assicurazione contro gli Infortuni sul Lavoro</h1>\n<a 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 [config]="configurazioniNavigazioneUtente"\n [infoDipendente]="this.infoDipendente"\n [logOnConsole]="this.logOnConsole"\n (log)="emit($event)">\n</inail-navigazione-utente>\n',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],t.ctorParameters=function(){return[]},t.propDecorators={config:[{type:u.Input}],infoDipendente:[{type:u.Input}],logoInail:[{type:u.ViewChild,args:["logoInail"]}]},t}(T),Ge=function(){function e(){}return e.prototype.ngOnInit=function(){},e.decorators=[{type:u.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',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e}(),We=function(){function e(){}return e.prototype.ngOnInit=function(){},e.prototype.open=function(){x()},e.decorators=[{type:u.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:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e}(),Ye=function(i){function e(e,t){var n=i.call(this)||this;return n.sanitizer=e,n.http=t,n.cdnEndpoint="",n}return m(e,i),e.prototype.ngOnChanges=function(e){this.emitDebug("FooterComponent changes:"),this.emitDebug(e),e&&e.url&&e.url.currentValue&&!e.html.currentValue&&(e.url.firstChange&&this.emitDebug("Inizializzazione Footer"),this.recupera())},e.prototype.ngOnInit=function(){this.domainUrl||(this.domainUrl=""),this.assetsUrl||(this.assetsUrl=Oe),this.cdnEndpoint&&!C(this.assetsUrl)||(this.cdnEndpoint=""),this.html?this.innerHtml=this.sanitizer.bypassSecurityTrustHtml(this.html):this.url||(this.emitDebug("Inizializzazione Footer"),this.emitDebug("Url footer non specificato"),this.url=this.domainUrl+"/cs/internet/footer.html",this.recupera())},e.prototype.recupera=function(){var t=this;this.emitDebug("Recupero Footer da: "+this.url),this.http.get(this.url,{responseType:"text"}).subscribe(function(e){t.innerHtml=t.sanitizer.bypassSecurityTrustHtml(e),t.emitDebug("Footer recuperato!")},function(e){t.innerHtml=undefined,t.emitError("Errore nel recupero del Footer"),t.emitError(e),t.emitWarn("Visualizzazione Footer di default")},function(){t.emitDebug("Footer inizializzato!")})},e.decorators=[{type:u.Component,args:[{selector:"inail-footer",template:'<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="{{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',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[{type:s.DomSanitizer},{type:l.HttpClient}]},e.propDecorators={url:[{type:u.Input}],domainUrl:[{type:u.Input}],cdnEndpoint:[{type:u.Input}],assetsUrl:[{type:u.Input}],html:[{type:u.Input}]},e}(T),Ke=function(i){function e(e,t){var n=i.call(this)||this;return n.sanitizer=e,n.http=t,n.domainUrl="",n}return m(e,i),e.prototype.ngOnChanges=function(e){e&&e.url&&e.url.currentValue&&!e.html.currentValue&&(e.url.firstChange&&this.emitDebug("Inizializzazione Navigazione principale"),this.recupera())},e.prototype.ngOnInit=function(){this.logoutUrl||(this.logoutUrl=this.domainUrl+"/cs/LogoutUser?excludedCookies=SMSESSION"),this.html?this.innerHtml=this.sanitizer.bypassSecurityTrustHtml(this.html):this.url||(this.emitDebug("Inizializzazione Navigazione principale"),this.emitDebug("Url Navigazione principale non specificato"),this.url=this.domainUrl+"/cs/internet/header.html",this.recupera())},e.prototype.recupera=function(){var t=this;this.emitDebug("Recupero Navigazione principale da: "+this.url),this.http.get(this.url,{responseType:"text"}).subscribe(function(e){e=e.replace("#logout",t.logoutUrl),t.innerHtml=t.sanitizer.bypassSecurityTrustHtml(e),t.emitDebug("Navigazione principale recuperata!")},function(e){t.innerHtml=undefined,t.emitError("Errore nel recupero della Navigazione principale"),t.emitError(e),t.emitWarn("Visualizzazione Navigazione principale di default")},function(){t.emitDebug("Navigazione principale inizializzata!")})},e.decorators=[{type:u.Component,args:[{selector:"inail-navigazione-principale",template:'<div *ngIf="this.innerHtml"\n [innerHtml]="this.innerHtml"></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</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',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[{type:s.DomSanitizer},{type:l.HttpClient}]},e.propDecorators={url:[{type:u.Input}],domainUrl:[{type:u.Input}],logoutUrl:[{type:u.Input}],html:[{type:u.Input}]},e}(T),Qe=function(i){function e(e,t){var n=i.call(this)||this;return n.http=e,n.sanitizer=t,n}return m(e,i),e.prototype.ngOnChanges=function(e){e&&e.infoDipendente&&e.infoDipendente.currentValue&&(this._immagineProfilo=e.infoDipendente.currentValue.foto?this.sanitizer.bypassSecurityTrustUrl("data:image/png;base64,"+this.infoDipendente.foto):this.urlFotoUtenteAnonimo)},e.prototype.ngOnInit=function(){this.init()},e.prototype.init=function(){return b(this,void 0,void 0,function(){var t,n;return v(this,function(e){switch(e.label){case 0:return this.config||(this.config={}),this.config.domainUrl||(this.config.domainUrl=""),this.config.cdnEndpoint==undefined&&(this.config.cdnEndpoint=""),this.config.assetsUrl==undefined&&(this.config.assetsUrl=this.config.intranet?Se:Oe),C(this.config.assetsUrl)||this.config.cdnEndpoint==undefined||(this.config.assetsUrl=this.config.cdnEndpoint+this.config.assetsUrl),this.config.apiGatewayUrl||(this.config.apiGatewayUrl=this.config.domainUrl+"/api"),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(t=e.sent())&&(this.infoDipendente.nome=t.nome,this.infoDipendente.cognome=t.cognome),n=this.infoDipendente,[4,this.recuperaFotoDipendente()];case 2:n.foto=e.sent(),e.label=3;case 3:return this._immagineProfilo=this.infoDipendente.foto?this.sanitizer.bypassSecurityTrustUrl("data:image/png;base64,"+this.infoDipendente.foto):this.urlFotoUtenteAnonimo,[2]}})})},Object.defineProperty(e.prototype,"immagineProfilo",{get:function(){return this._immagineProfilo||this.urlFotoUtenteAnonimo},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"urlFotoUtenteAnonimo",{get:function(){return this.config.assetsUrl+"/img/anonimo.jpg "},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"assetUrl",{get:function(){return(C(this.config.assetsUrl)?"":this.config.cdnEndpoint)+(this.config.assetsUrl||(this.config.intranet?Se:Oe))},enumerable:!0,configurable:!0}),e.prototype.getMatricolaDipendente=function(){return b(this,void 0,void 0,function(){var t;return v(this,function(e){switch(e.label){case 0:return w(this.infoDipendente.matricola)?(t=this.infoDipendente,[4,this.recuperaMatricolaDipendente()]):[3,2];case 1:t.matricola=e.sent(),e.label=2;case 2:return[2,this.infoDipendente.matricola]}})})},e.prototype.recuperaMatricolaDipendente=function(){return b(this,void 0,void 0,function(){var t,n,i,a;return v(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),n=this.config.apiGatewayUrl+"/checksession",this.emitDebug("Recupero matricola dipendente per Navigazione utente da "+n),[4,this.get(n).toPromise()];case 1:return(i=e.sent())&&i.result&&(t=i.User),[3,3];case 2:return a=e.sent(),this.emitError("Errore nel recupero della matricola dipendente"),this.emitError(a),[3,3];case 3:return[2,t]}})})},e.prototype.recuperaDatiDipendente=function(){return b(this,void 0,void 0,function(){var t,n,i,a,r;return v(this,function(e){switch(e.label){case 0:return[4,this.getMatricolaDipendente()];case 1:t=e.sent(),n=this.config.apiGatewayUrl+"/au/dipendente/estrai-dati-dipendente?matricola="+t,e.label=2;case 2:return e.trys.push([2,4,,5]),this.emitDebug("Recupero dati dipendente per Navigazione utente da "+n),[4,this.get(n).toPromise()];case 3:return(a=e.sent())&&a.dipendente&&0!=a.dipendente.length&&a.dipendente[0]?i=a.dipendente[0]:this.emitError("Dipendente non trovato"),[3,5];case 4:return r=e.sent(),this.emitError("Errore nel recupero dei dati dipendente"),this.emitError(r),[3,5];case 5:return[2,i]}})})},e.prototype.recuperaFotoDipendente=function(){return b(this,void 0,void 0,function(){var t,n,i,a,r;return v(this,function(e){switch(e.label){case 0:return[4,this.getMatricolaDipendente()];case 1:t=e.sent(),n=this.config.apiGatewayUrl+"/au/dipendente/estrai-foto-dipendente?matricola="+t,e.label=2;case 2:return e.trys.push([2,4,,5]),this.emitDebug("Recupero foto dipendente per Navigazione utente da "+n),[4,this.get(n).toPromise()];case 3:return(a=e.sent())&&a.fotoDipendente&&0!=a.fotoDipendente.length&&a.fotoDipendente[0]?i=a.fotoDipendente[0].foto:this.emitError("Foto dipendente non trovata"),[3,5];case 4:return r=e.sent(),this.emitError("Errore nel recupero della foto dipendente"),this.emitError(r),[3,5];case 5:return[2,i]}})})},e.prototype.get=function(e){var t=this,n=(new l.HttpHeaders).set("client_id",this.config.clientId);return this.http.get(e,{headers:n,withCredentials:!0}).pipe(o.tap(function(e){t.emitDebug("Risposta richiesta get per navigazione utente:"),t.emitDebug(e)}))},e.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"},e.decorators=[{type:u.Component,args:[{selector:"inail-navigazione-utente",template:'<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" 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 data-toggle="collapse"\n data-target="#menucercautente">\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\n</div>\n\n\x3c!-- Menu cerca utente --\x3e\n<div *ngIf="config.visualizzaMenuCercaUtente === true"\n class="row collapse"\n id="menucercautente"\n role="search"\n aria-expanded="true">\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 [(ngModel)]="testoRicercaUtente">\n <button type="submit" class="btn btn-default">Cerca</button>\n </p>\n </form>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[{type:l.HttpClient},{type:s.DomSanitizer}]},e.propDecorators={config:[{type:u.Input}],infoDipendente:[{type:u.Input}]},e}(T),Je=function(i){function e(e,t){var n=i.call(this)||this;return n.sanitizer=e,n.http=t,n}return m(e,i),e.prototype.ngOnChanges=function(e){e&&e.url&&e.url.currentValue&&!e.html.currentValue&&(e.url.firstChange&&this.emitDebug("Inizializzazione Menu intranet"),this.recupera())},e.prototype.ngOnInit=function(){this.domainUrl||(this.domainUrl=""),this.html?this.innerHtml=this.sanitizer.bypassSecurityTrustHtml(this.html):this.url||(this.emitDebug("Inizializzazione Menu intranet"),this.emitDebug("Url Menu intranet non specificato"),this.url=this.domainUrl+"/cs/internet/headersecondariointranet.html",this.recupera())},e.prototype.recupera=function(){var t=this;this.emitDebug("Recupero menu intranet da: "+this.url),this.http.get(this.url,{responseType:"text"}).subscribe(function(e){t.innerHtml=t.sanitizer.bypassSecurityTrustHtml(e),t.emitDebug("Menu intranet recuperato!")},function(e){t.innerHtml=undefined,t.emitError("Errore nel recupero del Menu intranet"),t.emitError(e),t.emitWarn("Visualizzazione Menu intranet di default")},function(){t.emitDebug("Menu intranet inizializzato!")})},e.decorators=[{type:u.Component,args:[{selector:"inail-menu-intranet",template:'<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 data-toggle="collapse"\n data-target="#menusecondarioelenco">\n <span class="sr-only">Menu\n </span>\n </p>\n </div>\n <div id="menusecondarioelenco" class="collapse navbar-collapse">\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',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[{type:s.DomSanitizer},{type:l.HttpClient}]},e.propDecorators={url:[{type:u.Input}],domainUrl:[{type:u.Input}],html:[{type:u.Input}]},e}(T),Ze=function(){function e(){this.visualizzaSidebarInferiore=!0}return e.prototype.ngOnInit=function(){},e.prototype.close=function(){x()},e.prototype.visualizza=function(){return 0<this.sidebarInferiore.nativeElement.childeNodes.length},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout(function(){e.visualizzaSidebarInferiore=0<e.sidebarInferiore.nativeElement.childElementCount})},e.decorators=[{type:u.Component,args:[{selector:"inail-navigazione-secondaria",template:'<nav id="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',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e.propDecorators={sidebarInferiore:[{type:u.ViewChild,args:["sidebarInferiore"]}]},e}(),Xe=function(t){function e(){var e=t.call(this)||this;return e.subsetChange=new u.EventEmitter,e.pagination=new u.EventEmitter,e.clickLinkDettagli=new u.EventEmitter,e.visualizzaBaseFooter=!0,e}return m(e,t),e.prototype.ngOnChanges=function(e){var t=this;if(e&&e.noItemsFound&&!0===e.noItemsFound.currentValue&&setTimeout(function(){return t.numeroColonne=$("#"+t.id+" th").length}),e&&e.paginationInfo&&e.paginationInfo.currentValue&&this.paginationInfo&&this.paginationInfo.sortProperty&&this.thLabelComponents){var n=this.thLabelComponents.find(function(e){return e.property==t.paginationInfo.sortProperty});this.pagedTableRendererComponent.setSortDirection(n,this.paginationInfo.sortDirection)}!this.paginationInfo&&e&&e.initialSort&&e.initialSort.currentValue&&this.initialSort&&this.impostaOrdinamentoIniziale()},e.prototype.ngOnInit=function(){this.tallRows==undefined&&(this.tallRows=!1),this.tabellaAlternativa==undefined&&(this.tabellaAlternativa=!1)},e.prototype.ngAfterViewInit=function(){var t=this;if(setTimeout(function(){t.visualizzaBaseFooter=0<t.baseFooter.nativeElement.childElementCount}),this.pagedTableRendererComponent&&(this.pagedTableRendererComponent.inizializzaTabella(this.thLabelComponents),this.pagedTableRendererComponent.lookAtThLabel(this.thLabelComponents)),this.paginationInfo&&this.paginationInfo.sortProperty&&this.thLabelComponents){var e=this.thLabelComponents.find(function(e){return e.property==t.paginationInfo.sortProperty});this.pagedTableRendererComponent.setSortDirection(e,this.paginationInfo.sortDirection)}!this.paginationInfo&&this.initialSort&&this.impostaOrdinamentoIniziale()},e.prototype.impostaOrdinamentoIniziale=function(){var t=this;this.thLabelComponents&&this.thLabelComponents.forEach(function(e){e.property==t.initialSort.sortProperty?t.pagedTableRendererComponent.setSortDirection(e,t.initialSort.sortDirection):t.pagedTableRendererComponent.setSortDirection(e,undefined)})},e.prototype.subsetOnChange=function(e){var t=this;setTimeout(function(){t.subsetChange.emit(e)})},e.prototype.getNumeroColonne=function(){return $("#"+this.id+" th").length},e.decorators=[{type:u.Component,args:[{selector:"inail-paged-table",template:'<div class="tabella table-responsive col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} noPaddingLeft {{class}}"\n [ngClass]="{\'tabella-verticale\': tabellaAlternativa}">\n\n <h3 *ngIf="titolo"\n class="col-xs-9 table-title pull-left noPaddingLeft"\n [innerHTML]="titolo">\n </h3>\n\n <a *ngIf="LinkDettagli"\n (click)="clickLinkDettagli.emit()"\n class="col-xs-3 col-sm-2 linkDettagli pull-right"\n [innerHTML]="LinkDettagli || \'Link\'">\n </a>\n\n <div *ngIf="descrizione"\n class="col-xs-12 caption marginBottom noPaddingLeft"\n [innerHTML]="descrizione">\n </div>\n\n <inail-paged-table-renderer [elements]="elements"\n [recuperoInCorso]="recuperoInCorso"\n [paginationInfo]="paginationInfo"\n [testoRecuperoInCorso]="testoRecuperoInCorso"\n [subset]="subset"\n [pageSize]="pageSize"\n [disabilitaPaginazione]="disabilitaPaginazione"\n [tableId]="id"\n [doPagination]="doPagination"\n (pagination)="pagination.emit($event)"\n (subsetChange)="subsetOnChange($event)">\n\n <table id="{{id}}"\n class="table display dataTable {{tableClass}}"\n [ngClass]="{\'tabella-base\': !tallRows}">\n <caption *ngIf="caption" class="sr-only" [innerHTML]="caption"></caption>\n\n <ng-content select="thead"></ng-content>\n\n <ng-container *ngIf="!noItemsFound">\n <ng-content select="tbody"></ng-content>\n </ng-container>\n\n <tbody *ngIf="noItemsFound">\n <tr role="row">\n <td class="content-text"\n style="padding: 30px;\n text-align: center"\n [colSpan]="numeroColonne"\n [innerHTML]="noItemsFoundText || \'Nessun elemento trovato\'">\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 </inail-paged-table-renderer>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e.propDecorators={elements:[{type:u.Input}],subset:[{type:u.Input}],subsetChange:[{type:u.Output}],initialSort:[{type:u.Input}],paginationInfo:[{type:u.Input}],doPagination:[{type:u.Input}],pageSize:[{type:u.Input}],recuperoInCorso:[{type:u.Input}],testoRecuperoInCorso:[{type:u.Input}],noItemsFound:[{type:u.Input}],noItemsFoundText:[{type:u.Input}],pagination:[{type:u.Output}],tallRows:[{type:u.Input}],tabellaAlternativa:[{type:u.Input}],caption:[{type:u.Input}],descrizione:[{type:u.Input}],tableClass:[{type:u.Input}],titolo:[{type:u.Input}],disabilitaPaginazione:[{type:u.Input}],LinkDettagli:[{type:u.Input}],clickLinkDettagli:[{type:u.Output}],pagedTableRendererComponent:[{type:u.ViewChild,args:[ie]}],thLabelComponents:[{type:u.ContentChildren,args:[ee,{descendants:!0}]}],baseFooter:[{type:u.ViewChild,args:["baseFooter"]}]},e}(L),et=function(t){function e(){var e=t.call(this)||this;return e.chooseButtonText="Scegli il file",e.submitButtonText="aggiungi",e.submitButton=!0,e.uploadFile=new u.EventEmitter,e}return m(e,t),e.prototype.ngOnInit=function(){},e.prototype.checkError=function(){return this.hasError||E(this.descError)},e.prototype.checkDescError=function(){return this.checkError()&&E(this.getDescError())},e.prototype.getDescError=function(){return this.descError},e.prototype.promptUpload=function(){document.getElementById(this.id).click()},e.prototype.changeModel=function(e){this.fileModel=e.target.files&&e.target.files[0],this.submitButton||this.uploadFile.emit(this.fileModel)},e.prototype.reset=function(){this.fileModel=undefined,this.uploadFile.emit(undefined),this.inputTypeFile.nativeElement.value=""},e.decorators=[{type:u.Component,args:[{selector:"inail-file-upload",template:'<div class="form-group col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} noPaddingLeft {{class}} uploadFile inail-file-upload-view-encapsulation"\n [ngClass]="{\'has-error\': checkError()}">\n <div class="col-xs-12 noPaddingLeft">\n <div class="col-xs-12 noPaddingLeft" *ngIf="label">\n <label for="{{id}}"\n class="{{labelClass}}"\n title="{{labelTitle}}"\n [hidden]="hiddenLabel"\n [innerHTML]="label.concat(required ? \' \'+(requiredSimbol || \'*\') : \'\')">\n </label>\n </div>\n <div class="col-xs-4 upload-file-button-container noPaddingLeft">\n <label for="{{id}}-fake"\n class="sr-only">Label input</label>\n <input id="{{id}}-fake"\n title="{{title}}"\n class="col-xs-12 form-control {{inputClass}}"\n [disabled]="disabled"\n readonly\n placeholder="{{placeholder}}"\n type="text"\n [attr.aria-invalid]="checkError() === true ? true : undefined"\n [attr.aria-describedBy]="checkDescError() ? id+\'-description-error\' : undefined"\n [value]="fileModel?.name"\n (click)="promptUpload()">\n <button class="innerx" (click)="reset()"><span class="reset"></span></button>\n <span [innerHTML]="description"></span>\n </div>\n <div class="col-xs-8">\n <div class="fileUpload pull-left noMarginLeft">\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 accept="{{accept}}"\n [disabled]="disabled"\n class="btn btn-primary upload"\n type="file"\n (change)="changeModel($event)">\n </div>\n </div>\n <div *ngIf="submitButton" class="fileUpload pull-left padding">\n <div class="form-group">\n <button class="btn btn-primary add-file"\n [disabled]="!fileModel"\n (click)="uploadFile.emit(fileModel)"\n [innerHTML]="submitButtonText">\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="checkDescError()">\n <span [id]="id+\'-description-error\'" class="msg msg-errore">\n <strong [innerHTML]="(errorPrefix===false ? \'\' : \'ERRORE: \')+getDescError()"></strong>\n </span>\n </div>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[".inail-file-upload-view-encapsulation button.innerx:focus{outline:#000 dotted 1px!important}.inail-file-upload-view-encapsulation .btn-fake input{position:absolute;opacity:0!important}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={inputTypeFile:[{type:u.ViewChild,args:["inputTypeFile"]}],placeholder:[{type:u.Input}],description:[{type:u.Input}],chooseButtonText:[{type:u.Input}],submitButtonText:[{type:u.Input}],submitButton:[{type:u.Input}],accept:[{type:u.Input}],uploadFile:[{type:u.Output}]},e}(A),tt=function(){function e(e,t){this.activatedRoute=e,this.router=t}return e.prototype.ngOnChanges=function(e){var t=this;e.paginaCorrente&&setTimeout(function(){t.buildBreadCrumb(e.paginaCorrente.currentValue)})},e.prototype.ngOnInit=function(){},e.prototype.buildBreadCrumb=function(e){if(e!=undefined){var t=this.getGenealogicalTree(e);t&&(this.steps=t.map(function(e){return{label:e.titolo,url:e.url}}))}},e.prototype.getParentsList=function(e){var t;return e&&(t=this.getGenealogicalTree(e.parent)),t},e.prototype.getGenealogicalTree=function(e){var t;return e?(t=this.getGenealogicalTree(e.parent)).push(e):t=[],t},e.prototype.onClick=function(e){this.router.navigateByUrl(e)},e.decorators=[{type:u.Component,args:[{selector:"inail-breadcrumb",template:'<nav aria-label="Breadcrumb">\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',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[{type:c.ActivatedRoute},{type:c.Router}]},e.propDecorators={paginaCorrente:[{type:u.Input}],steps:[{type:u.Input}]},e}(),nt=function(e){function t(){var n=e.call(this)||this;return n.dataChange=new u.EventEmitter,n.isEnabledDate=function(e){var t=$.datepicker.formatDate("yy-mm-dd",e);return n.isDataAbilitata(t)&&!n.isDataDisabilitata(t)},n.isDataAbilitata=function(t){return n.enabledDates==undefined||!n.enabledDates.length||n.enabledDates.some(function(e){return n.match(t,e)!=undefined})},n.isDataDisabilitata=function(t){return n.disabledDates!=undefined&&n.disabledDates.some(function(e){return n.match(t,e)!=undefined})},n.match=function(e,t){return e!=undefined&&e.match(new RegExp("^".concat(t).concat("$"),"i"))},n}return m(t,e),t.prototype.ngOnChanges=function(e){e.data&&!e.data.firstChange&&(this.hasError=!1,this.descError=undefined)},t.prototype.ngOnInit=function(){this.datepickerOptions||(this.datepickerOptions={autoclose:!0,format:"dd/mm/yyyy",weekStart:1,todayBtn:"linked",language:"it",todayHighlight:!0,orientation:"auto top",enableOnReadonly:!1}),(this.disabledDates!=undefined&&0<this.disabledDates.length||this.enabledDates!=undefined&&0<this.enabledDates.length)&&(this.datepickerOptions.beforeShowDay=this.isEnabledDate)},t.prototype.ngAfterViewInit=function(){var t=this;window.$(this.input.nativeElement).datepicker(this.datepickerOptions),this.visibleData&&N.isDate(this.visibleData)&&this.setDatepickerDate(this.visibleData),setTimeout(function(){$("#"+t.id).on("change",function(){var e=$("#"+t.id)[0];e!=undefined&&e.value!=t.visibleData&&(t.data=e.value)})}),this.showPopover()&&$("#"+this.id+"-popover").popover()},Object.defineProperty(t.prototype,"data",{set:function(e){var t=this,n=it(e);E(e)?this.visibleData=n?N.toItalianFormat(e):e:this.visibleData=undefined,setTimeout(function(){t.dataChange.emit(n?at(t.visibleData,"RFC3339"):t.visibleData),n&&t.setDatepickerDate(t.visibleData)})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_data",{set:function(e){var t=this,n=it(e);!n&&N.isValidDateObject(N.toDateObject(e))&&(e=at(e),n=!0),E(e)?this.visibleData=n?at(e,"IT"):this.visibleData||e:this.visibleData=undefined,setTimeout(function(){t.dataChange.emit(n?at(t.visibleData,"RFC3339"):t.visibleData),n&&t.setDatepickerDate(t.visibleData)})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isValid",{get:function(){return w(this.visibleData)||N.isInItalianFormat(this.visibleData)&&N.isValidDate(this.visibleData)},enumerable:!0,configurable:!0}),t.prototype.checkDescError=function(){var e=this.getDescError();return this.checkError()&&E(e)},t.prototype.checkError=function(){return!this.isValid||this.hasError||E(this.descError)},t.prototype.getDescError=function(){return w(this.descError)&&!this.isValid?"La data inserita non è valida":this.descError},t.prototype.onChange=function(e){this.data=e.target.value},t.prototype.setDatepickerDate=function(e){window.$(this.input.nativeElement).datepicker("setDate",e)},t.decorators=[{type:u.Component,args:[{selector:"inail-input-date",template:'<div class="date datePicker col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} noPaddingLeft {{class}}"\n [ngClass]="{\'has-error\': this.checkError()}">\n <div class="form-group">\n <div class="input-relative">\n <label *ngIf="label"\n [hidden]="hiddenLabel"\n class="control-label {{labelClass}}"\n title="{{labelTitle}}"\n for="{{id}}" [innerHTML]="label.concat(required ? \' \'+(requiredSimbol || \'*\') : \'\')"></label>\n <ng-container *ngIf="showPopover()">\n \n <em [id]="id+\'-popover\'"\n class="fa fa-question-circle fa-lg"\n data-toggle="popover"\n title="{{popoverButtonTitle}}"\n [attr.data-content]="popoverContent"\n [attr.data-original-title]="popoverTitle">\n </em>\n </ng-container>\n <input id="{{id}}"\n #input\n class="form-control {{inputClass}}"\n title="GG/MM/AAAA"\n placeholder="GG/MM/AAAA"\n type="text"\n (change)="onChange($event)"\n (paste)="onChange($event)"\n (keyup)="onChange($event)"\n [disabled]="this.disabled"\n [required]="this.readonly"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="checkError() === true ? true : undefined"\n [attr.aria-describedBy]="checkDescError() ? id+\'-description-error\' : undefined"\n (keyup.enter)="enterUp.emit()"\n [(ngModel)]="this.visibleData">\n <em class="fa fa-calendar"\n title="Calendario"\n (click)="input.focus()"></em>\n </div>\n <ng-container *ngIf="this.checkDescError()">\n <span [id]="id+\'-description-error\'" class="msg msg-errore">\n <strong [innerHTML]="(errorPrefix===false ? \'\' : \'ERRORE: \')+this.getDescError()"></strong>\n </span>\n </ng-container>\n </div>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],t.ctorParameters=function(){return[]},t.propDecorators={input:[{type:u.ViewChild,args:["input"]}],dataChange:[{type:u.Output}],modelFormat:[{type:u.Input}],datepickerOptions:[{type:u.Input}],enabledDates:[{type:u.Input}],disabledDates:[{type:u.Input}],data:[{type:u.Input}],_data:[{type:u.Input}]},t}(A),it=function(e){return N.isInItalianFormat(e)||N.isInISO8601Format(e)||function(e){return e&&"number"==typeof e}(e)},at=function(e,t){var n=null,i=function(e){var t=null;if(e){var n=N.toDateObject(e.trim?e.trim():e);t={year:n.getFullYear(),month:n.getMonth()+1,day:n.getDate()}}return t}(e);return i&&(n=t&&"IT"==t?rt(i):ot(i)),n},rt=function(e){var t=null;return e&&(t=st(e.day)+"/"+st(e.month)+"/"+e.year),t},ot=function(e){var t=null;return e&&(t=st(e.year)+"-"+st(e.month)+"-"+st(e.day)),t},st=function(e){return e?(e<10?"0":"")+e:""},lt=function(t){function e(){var e=t.call(this)||this;return e.getFocus=!0,e}return m(e,t),e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){this.catchFocus()},e.prototype.catchFocus=function(){var e=this;!this.getFocus||document.activeElement!=undefined&&"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)},e.prototype.ngOnChanges=function(e){e==undefined||e.titolo==undefined||e.titolo.currentValue==undefined||e.titolo.isFirstChange()||this.catchFocus()},e.decorators=[{type:u.Component,args:[{selector:"inail-page-title",template:'<div tabindex="0"\n title="Titolo pagina"\n class="inail-page-title"\n [id]="id"\n #divTitolo>\n <span *ngIf="spanTitolo"\n class="span-title {{spanClass}}"\n [innerHTML]="spanTitolo"></span>\n <h2 class="{{class}}"\n *ngIf="titolo"\n [innerHTML]="titolo">\n </h2>\n <h2 class="{{class}}"\n *ngIf="!titolo">\n <ng-content></ng-content>\n </h2>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e.propDecorators={titolo:[{type:u.Input}],spanTitolo:[{type:u.Input}],spanClass:[{type:u.Input}],getFocus:[{type:u.Input}],divTitolo:[{type:u.ViewChild,args:["divTitolo"]}]},e}(S),ct=function(){function e(e){this.viewContainer=e}return e.prototype.ngOnInit=function(){this.viewContainer.clear()},e.decorators=[{type:u.Directive,args:[{selector:"[comment]"}]}],e.ctorParameters=function(){return[{type:u.ViewContainerRef}]},e}(),pt=function(t){function e(){var e=t.call(this)||this;return e.valueChange=new u.EventEmitter,e}return m(e,t),e.prototype.ngOnChanges=function(e){if(e.options&&e.options.currentValue&&this.options&&this.options.forEach(function(e){w(e.id)&&(e.id=p.v4())}),this.sort){var n="ASC"==this.sort.toUpperCase()?1:"DESC"==this.sort.toUpperCase()?-1:0;0!=n&&this.options!=undefined&&this.options.sort(function(e,t){return e.label<t.label?-n:e.label>t.label?n:0})}e.value&&!e.value.firstChange&&(this.hasError=!1,this.descError=undefined)},e.prototype.ngOnInit=function(){w(this.valueValue)&&(this.valueValue="")},Object.defineProperty(e.prototype,"value",{get:function(){return this.valueValue},set:function(e){this.valueValue=e,this.valueChange.emit(this.valueValue)},enumerable:!0,configurable:!0}),e.prototype.checkDescError=function(){return this.checkError()&&E(this.getDescError())},e.prototype.checkError=function(){return this.hasError||E(this.descError)},e.prototype.getDescError=function(){return this.descError},e.isValidOption=function(e,t){return!t||0==t.length||I(e)&&0<=e.findIndex(function(e){return e.value==t})},e.prototype.radioOnChange=function(e){this.value=e?e.value:undefined},e.prototype.isChecked=function(e){return e&&e.value==this.valueValue},e.decorators=[{type:u.Component,args:[{selector:"inail-radio-select",template:'<div [id]=\'id\' class="col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} {{class}} noPadding inail-radio-select">\n <fieldset class="form-group col-xs-12 noPaddingLeft">\n <legend class="radio-legend"\n [hidden]="hiddenLabel"\n [innerHTML]="label?.concat(required ? \' \'+(requiredSimbol || \'*\') : \'\')"></legend>\n <div class="radio {{inline === true ? \'inline\' : \'\'}}" *ngFor="let option of options">\n <label [for]="option?.id">\n <input [id]="option?.id"\n type="radio"\n class="{{inputClass}} {{option?.class}}"\n [name]="name"\n [disabled]="disabled"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="checkError() === true ? true : undefined"\n [attr.aria-describedBy]="checkDescError() ? id+\'-description-error\' : undefined"\n [value]="option?.value"\n [title]="title"\n [(ngModel)]="value">\n <span [innerHTML]="option?.label"></span>\n </label>\n </div>\n <div *ngIf="checkDescError()">\n <span [id]="id+\'-description-error\'" class="msg msg-errore">\n <strong [innerHTML]="(errorPrefix===false ? \'\' : \'ERRORE: \')+getDescError()"></strong>\n </span>\n </div>\n </fieldset>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[".inail-radio-select .radio.inline{display:inline-block;margin-right:20px}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={options:[{type:u.Input}],name:[{type:u.Input}],sort:[{type:u.Input}],inline:[{type:u.Input}],valueChange:[{type:u.Output}],value:[{type:u.Input}]},e}(A),ut=function xt(){},dt={EURO:"€",DOLLARS:"$"},ht=["0","1","2","3","4","5","6","7","8","9"],gt=function Dt(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}(ht,[",","-","Backspace","Delete","Tab","ArrowLeft","ArrowRight"]),mt=new RegExp(/[ $€]+/g),ft=new RegExp(/[,]/g),bt=new RegExp(/[.]/g),vt=new RegExp(/(\d+)(\d{3})/),yt=function(e){function t(){var n=e.call(this)||this;return n.numberOfDecimals=2,n.preventPasting=!1,n.currency="EURO",n.selfValidation=!0,n.selfValidationError="Importo non valido",n.showThousandsSeparator=!0,n.valueChange=new u.EventEmitter,n.getCurrencySymbol=function(){return dt[n.currency]},n.getCleanedValue=function(e){return e?e.replace(mt,""):""},n.getNumberValue=function(e){var t=n.getCleanedValue(e).replace(ft,".");return parseFloat(t)},n.isNotBlankOrUndefined=function(e){return E(e)&&"undefined"!=e&&"null"!=e},n.checkError=function(){return n.hasError||E(n.descError)},n.checkDescError=function(){return n.checkError()&&E(n.getDescError())},n.getDescError=function(){return n.descError},n.isWrongMinus=function(e){return"-"==e.key&&(w(n.inputValue)||0<n.inputValue.indexOf("-"))},n.isWrongComma=function(e){return","==e.key&&(w(n.inputValue)||0<n.inputValue.indexOf(","))},n.isCommaWithNoDecimals=function(e){return","==e.key&&n.numberOfDecimals<=0},n.isWrongDigit=function(t){return!gt.some(function(e){return e===t.key})||n.isWrongMinus(t)||n.isWrongComma(t)||n.isCommaWithNoDecimals(t)||n.isMaximumNumberOfDecimalsReached(t)},n}return m(t,e),t.prototype.ngOnChanges=function(e){},t.prototype.ngOnInit=function(){},t.prototype.ngAfterViewInit=function(){},Object.defineProperty(t.prototype,"value",{set:function(e){this.emitDebug("@Input set value: "+this.numberValue+" -> "+e),this.inputValue=e!=undefined?""+e:"",this.setValue(this.inputValue)},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(e){this.emitDebug("writeValue: "+e),this.inputValue=e!=undefined?""+e:"",this.setValue(this.inputValue)},Object.defineProperty(t.prototype,"inputTextValue",{get:function(){return this.inputValue},set:function(e){this.emitDebug("set inputTextValue: "+this.inputValue+" -> "+e),this.inputValue=e,this.setValue(this.inputValue)},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e){var t;this.emitDebug("setValue: "+e),this.isNotBlankOrUndefined(e)?(t=this.getNumberValue(e),isNaN(t)?(t=undefined,this.selfValidation&&(this.selfValidationErrorMsg=""+this.selfValidationError)):this.min!=undefined&&t<this.min?t=this.min:this.max!=undefined&&t>this.max&&(t=this.max)):(t=undefined,this.selfValidationErrorMsg=undefined),this.cleanErrorOnChange&&this.cleanError(),t!=this.numberValue&&(this.numberValue=t,this.valueChange.emit(this.numberValue)),this.impostaValoreVisibile()},t.prototype.impostaValoreVisibile=function(){if(this.numberValue!=undefined){var e=(""+this.numberValue).replace(bt,",");if(!this.hasFocus()){var t=e.split(",");if(this.showThousandsSeparator)for(;vt.test(t[0]);)t[0]=t[0].replace(vt,"$1.$2");if(0<this.numberOfDecimals){var n=(t[1]!=undefined?t[1]:"")+"000000000000000000000";t[1]=n.substring(0,this.numberOfDecimals),e=t.join(",")}else e=t[0]}this.inputValue=(e+" "+(this.hasFocus()?"":this.getCurrencySymbol())).trim()}},t.prototype.onFocusIn=function(){this.impostaValoreVisibile()},t.prototype.onFocusOut=function(){this.impostaValoreVisibile()},t.prototype.isMaximumNumberOfDecimalsReached=function(t){var e=this.getCleanedValue(this.inputValue);return ht.some(function(e){return e===t.key})&&e!=undefined&&0<e.indexOf(",")&&e.split(",")[1].length>=this.numberOfDecimals},t.prototype.onKeyDown=function(e){this.isWrongDigit(e)&&e.preventDefault()},t.prototype.onPaste=function(e){!0===this.preventPasting&&e.preventDefault()},t.prototype.ngOnDestroy=function(){},t.decorators=[{type:u.Component,args:[{selector:"inail-input-money",template:'<div class="form-group col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} noPaddingLeft {{class}}"\n [ngClass]="{\'has-error\': checkError()}">\n <label *ngIf="label"\n class="control-label {{labelClass}}"\n [hidden]="hiddenLabel"\n title="{{labelTitle}}"\n for="{{id}}"\n [innerHTML]="label.concat(required ? \' \'+(requiredSimbol || \'*\') : \'\')"></label>\n <ng-container *ngIf="showPopover()">\n \n <em [id]="id+\'-popover\'"\n class="fa fa-question-circle fa-lg"\n data-toggle="popover"\n title="{{popoverButtonTitle}}"\n [attr.data-content]="popoverContent"\n [attr.data-original-title]="popoverTitle">\n </em>\n </ng-container>\n <input #formControl\n type="text"\n id="{{id}}"\n title="{{title}}"\n [disabled]="disabled"\n [readonly]="readonly"\n class="form-control {{inputClass}}"\n [ngClass]="{\'disabled\': disabled}"\n placeholder="{{placeholder}}"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="checkError() === true ? true : undefined"\n [attr.aria-describedBy]="checkDescError() ? id+\'-description-error\' : undefined"\n (focusin)="onFocusIn()"\n (focusout)="onFocusOut()"\n (keydown)="onKeyDown($event)"\n (paste)="onPaste($event)"\n (keyup.enter)="enterUp.emit()"\n [(ngModel)]=\'inputTextValue\'>\n <ng-container *ngIf="checkDescError()">\n <span [id]="id+\'-description-error\'" class="msg msg-errore">\n <strong [innerHTML]="(errorPrefix===false ? \'\' : \'ERRORE: \')+getDescError()"></strong>\n </span>\n </ng-container>\n</div>\n',styles:[""]}]}],t.ctorParameters=function(){return[]},t.propDecorators={formControlElement:[{type:u.ViewChild,args:["formControl"]}],max:[{type:u.Input}],min:[{type:u.Input}],numberOfDecimals:[{type:u.Input}],placeholder:[{type:u.Input}],preventPasting:[{type:u.Input}],currency:[{type:u.Input}],selfValidation:[{type:u.Input}],selfValidationError:[{type:u.Input}],showThousandsSeparator:[{type:u.Input}],valueChange:[{type:u.Output}],value:[{type:u.Input}]},t}(A),wt=function(){function e(){}return e.decorators=[{type:u.NgModule,args:[{declarations:[h,P,U,M,G,Y,Q,S,A,L,J,X,ee,te,ne,ie,re,oe,se,ce,de,ge,me,fe,be,ve,Le,$e,qe,Ge,We,Ye,T,Ke,Qe,Je,Ze,Xe,et,ye,tt,Ve,nt,lt,ct,pt,le,yt],imports:[i.FormsModule,t.CommonModule,r.NgbModule,c.RouterModule,i.ReactiveFormsModule],providers:[t.DecimalPipe],exports:[h,P,U,M,G,Y,Q,J,X,ee,te,ne,ie,re,se,oe,ce,de,ge,me,fe,be,ve,Le,Xe,et,ye,tt,Ve,nt,lt,pt,le,T,yt]}]}],e}();e.Feedback=K,e.SelectOption=Z,e.SelectComponent=J,e.BaseComponent=T,e.LogEvent=O,e.LogLevel=D,e.RadioSelectOption=ut,e.RadioSelectComponent=pt,e.Pagination=ae,e.WizardStep=pe,e.AccordionComponent=P,e.MenuElement=Ee,e.fixCKEditorStyleSheet=function(){var t=$("style[data-cke]");t&&t.each(function(e){t[e]&&(t[e].innerText=t[e].innerText.replace(/min\(10%,30px\)/g,"30px").replace(/var\(--ck-font-size-base\)/g,"13px").replace(/var\(--ck-line-height-base\)/g,"1.84615").replace(/var\(--ck-font-face\)/g,"Helvetica,Arial,Tahoma,Verdana,Sans-Serif").replace(/var\(--ck-color-focus-border-coordinates\)/g,"208,79%,51%").replace(/var\(--ck-switch-button-toggle-width\)/g,"2.6153846154em").replace(/var\(--ck-switch-button-toggle-inner-size\)/g,"1.0769230769em").replace(/var\(--ck-switch-button-toggle-spacing\)/g,"1px").replace(/var\(--ck-spacing-unit\)/g,"0.6em").replace(/var\(--ck-spacing-large\)/g,"calc(0.6em*1.5)").replace(/var\(--ck-border-radius\)/g,"2px").replace(/var\(--ck-switch-button-translation\)/g,"1px").replace(/var\(--ck-widget-outline-thickness\)/g,"3px").replace(/::ng-deep/g,""))})},e.setFocusOnFirstError=Re,e.setFocusOnFirstModalError=He,e.setFocusOnFirstPageError=je,e.setFocusOnGlobalFeedback=function(e){Be(".global-feedback",e)},e.setFocusOnFirstFeedback=Be,e.setFocusOnFirstErrorFeedback=_e,e.setFocusOnFeedback=function(t,e){setTimeout(function(){var e=document.querySelectorAll("#"+t+" .feedback-focusable")[0];e&&e.focus()},e||100)},e.NgInailCommonService=d,e.NgInailCommonComponent=h,e.NgInailCommonModule=wt,e.ɵbd=be,e.ɵg=S,e.ɵbq=tt,e.ɵbr=Ve,e.ɵh=U,e.ɵk=M,e.ɵz=le,e.ɵm=_,e.ɵp=G,e.ɵl=j,e.ɵo=q,e.ɵn=B,e.ɵa=Y,e.ɵi=A,e.ɵba=ge,e.ɵbp=et,e.ɵc=ce,e.ɵw=re,e.ɵbs=nt,e.ɵbv=yt,e.ɵbe=ve,e.ɵq=Q,e.ɵbj=Ye,e.ɵbg=qe,e.ɵf=Le,e.ɵbf=$e,e.ɵbm=Je,e.ɵbh=Ge,e.ɵbk=Ke,e.ɵbn=Ze,e.ɵbl=Qe,e.ɵbi=We,e.ɵd=ye,e.ɵbc=fe,e.ɵbt=lt,e.ɵb=ie,e.ɵbo=Xe,e.ɵj=L,e.ɵbb=me,e.ɵy=se,e.ɵx=oe,e.ɵu=te,e.ɵv=ne,e.ɵe=de,e.ɵs=X,e.ɵt=ee,e.ɵbu=ct,e.ɵr=I,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/common"),require("moment"),require("@angular/forms"),require("@ng-bootstrap/ng-bootstrap"),require("rxjs/internal-compatibility"),require("rxjs/operators"),require("@angular/platform-browser"),require("@angular/common/http"),require("@angular/router"),require("uuid"),require("@angular/core")):"function"==typeof define&&define.amd?define("ng-inail-common",["exports","@angular/common","moment","@angular/forms","@ng-bootstrap/ng-bootstrap","rxjs/internal-compatibility","rxjs/operators","@angular/platform-browser","@angular/common/http","@angular/router","uuid","@angular/core"],t):t(e["ng-inail-common"]={},e.ng.common,e.moment_,e.ng.forms,e.ngBootstrap,e.rxjs["internal-compatibility"],e.rxjs.operators,e.ng.platformBrowser,e.ng.common.http,e.ng.router,e.uuid,e.ng.core)}(this,function(e,t,n,i,r,a,o,s,l,c,p,u){"use strict";var d=function(){function e(){}return e.decorators=[{type:u.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[]},e.ngInjectableDef=u.defineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e}(),h=function(){function e(){}return e.prototype.ngOnInit=function(){},e.decorators=[{type:u.Component,args:[{selector:"inail-ng-inail-common",template:"\n <p>\n ng-inail-common works!\n </p>\n ",encapsulation:u.ViewEncapsulation.None}]}],e.ctorParameters=function(){return[]},e}(),g=function(e,t){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function m(e,t){function n(){this.constructor=e}g(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var f=function(){return(f=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function b(t,o,s,l){return new(s||(s=Promise))(function(e,n){function i(e){try{r(l.next(e))}catch(t){n(t)}}function a(e){try{r(l["throw"](e))}catch(t){n(t)}}function r(t){t.done?e(t.value):new s(function(e){e(t.value)}).then(i,a)}r((l=l.apply(t,o||[])).next())})}function v(i,a){var r,o,s,e,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return e={next:t(0),"throw":t(1),"return":t(2)},"function"==typeof Symbol&&(e[Symbol.iterator]=function(){return this}),e;function t(t){return function(e){return function n(e){if(r)throw new TypeError("Generator is already executing.");for(;l;)try{if(r=1,o&&(s=2&e[0]?o["return"]:e[0]?o["throw"]||((s=o["return"])&&s.call(o),0):o.next)&&!(s=s.call(o,e[1])).done)return s;switch(o=0,s&&(e=[2&e[0],s.value]),e[0]){case 0:case 1:s=e;break;case 4:return l.label++,{value:e[1],done:!1};case 5:l.label++,o=e[1],e=[0];continue;case 7:e=l.ops.pop(),l.trys.pop();continue;default:if(!(s=0<(s=l.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){l=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){l.label=e[1];break}if(6===e[0]&&l.label<s[1]){l.label=s[1],s=e;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(e);break}s[2]&&l.ops.pop(),l.trys.pop();continue}e=a.call(i,l)}catch(t){e=[6,t],o=0}finally{r=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}([t,e])}}}function y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,a,r=n.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(a)throw a.error}}return o}function w(e){return!(e&&0<String(e).trim().length)}function E(e){return!w(e)}function I(e){return!function(e){return!(e&&0<e.length)}(e)}function C(e){return e!=undefined&&e.startsWith!=undefined&&e.startsWith("http")}function k(e){return document.getElementsByTagName("html")[0].style["overflow-y"]=e?"scroll":"hidden"}function z(e){return e?e.find("input:focusable,select:focusable,textarea:focusable,.ck-editor__editable,.feedback-focusable"):undefined}function x(){setTimeout(function(){0==$(".ui-effects-wrapper").length&&jQuery(".slider-menu").toggle("slide","direction: left",500)})}var D={LOG:"log",DEBUG:"debug",INFO:"info",WARN:"warn",ERROR:"error"},T=function(){function e(){this.log=new u.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.emitLog=function(e){this.emit({message:e,level:D.LOG})},e.prototype.emitInfo=function(e){this.emit({message:e,level:D.INFO})},e.prototype.emitDebug=function(e){this.emit({message:e,level:D.DEBUG})},e.prototype.emitWarn=function(e){this.emit({message:e,level:D.WARN})},e.prototype.emitError=function(e){this.emit({message:e,level:D.ERROR})},e.prototype.emit=function(e){e&&(!0===this.logOnConsole?console[e.level].apply(this,[e.message]):this.log.emit(e))},e.decorators=[{type:u.Component,args:[{selector:"inail-base",template:"<p>\n base works!\n</p>\n",encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e.propDecorators={log:[{type:u.Output}],logOnConsole:[{type:u.Input}]},e}(),O=function Et(){},S=function(t){function e(){var e=t.call(this)||this;return e.id=p.v4(),e}return m(e,t),e.decorators=[{type:u.Component,args:[{selector:"inail-basic-ux-element",template:"<p>\n basic-ux-element works!\n</p>\n",encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e.propDecorators={id:[{type:u.Input}],"class":[{type:u.Input}]},e}(T),P=function(t){function e(){var e=t.call(this)||this;return e.toggle=new u.EventEmitter,e}return m(e,t),e.prototype.ngOnInit=function(){this.mostra=!this.collapsed},e.prototype.onToggle=function(){this.mostra=!this.mostra,this.toggle.emit(this.mostra)},e.prototype.getTitolo=function(){return this.titolo?this.required?this.titolo.concat(" *"):this.titolo:""},Object.defineProperty(e.prototype,"toggleTitleText",{get:function(){return 1==this.mostra?this.toggleTitleOpened||this.toggleTitle||"Riduce l'accordion "+this.titolo:this.toggleTitleClosed||this.toggleTitle||"Espande l'accordion "+this.titolo},enumerable:!0,configurable:!0}),e.decorators=[{type:u.Component,args:[{selector:"inail-accordion",template:'<div class="inail-accordion-view-encapsulation row panel panel-default form-accordion noPadding {{class}}">\n <div class="row panel-heading heading-form-grey"\n (click)="onToggle()"\n (keyup.space)="onToggle()"\n (keydown.space)="false"\n role="heading">\n <h3 class="title-modulo"\n [ngClass]="{\'has-error\': hasError}"\n [innerHTML]="getTitolo()"></h3>\n <a href="javascript:void(0)"\n role="button"\n class="accordion-toggle-command"\n [attr.aria-label]="toggleTitleText"\n [attr.aria-controls]="id"\n [attr.aria-expanded]="mostra">\n <span class="fa {{mostra ? \'fa-chevron-up\' : \'fa-chevron-down\'}}"> </span>\n </a>\n </div>\n <div [attr.id]=\'id || undefined\'\n [hidden]="!mostra"\n class="row panel-body body-form-grey"\n role="region">\n <div class="col-md-12 col-lg-12">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[".accordion{transition:height .5s ease-in-out;overflow:hidden}.inail-accordion-view-encapsulation .ac_hidden{height:0;padding:0}.inail-accordion-view-encapsulation .panel-heading{cursor:pointer}.inail-accordion-view-encapsulation .title-modulo.has-error{color:#c9291b!important}.inail-accordion-view-encapsulation .accordion-toggle-command{margin:12px 15px 8px;position:absolute;top:0;right:10px;width:15px;height:15px}.inail-accordion-view-encapsulation .accordion-toggle-command span{right:0!important}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={titolo:[{type:u.Input}],toggleTitle:[{type:u.Input}],toggleTitleOpened:[{type:u.Input}],toggleTitleClosed:[{type:u.Input}],collapsed:[{type:u.Input}],hasError:[{type:u.Input}],required:[{type:u.Input}],toggle:[{type:u.Output}]},e}(S),V=function(e,t,n){var i=e&&e[t]!=undefined&&a.isFunction(e[t])?e[t](n):undefined;return{data:i,call:function(e,t){return V(i,e,t)}}},L=function(e){function t(){return e.call(this)||this}return m(t,e),t.decorators=[{type:u.Component,args:[{selector:"inail-responsive-element",template:"<p>\n responsive-element works!\n</p>\n",encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],t.ctorParameters=function(){return[]},t.propDecorators={lg:[{type:u.Input}],md:[{type:u.Input}],sm:[{type:u.Input}],xs:[{type:u.Input}]},t}(S),A=function(t){function e(){var e=t.call(this)||this;return e.enterUp=new u.EventEmitter,e.popover=!1,e.cleanErrorOnChange=!0,e.showPopover=function(){return!0===e.popover},e.hasFocus=function(){return document.activeElement&&document.activeElement.id==e.id},e}return m(e,t),e.prototype.cleanError=function(){var e=this;setTimeout(function(){e.hasError&&(e.hasError=!1),e.descError&&(e.descError=undefined)})},e.decorators=[{type:u.Component,args:[{selector:"inail-form-element",template:"<p>\n form-element works!\n</p>\n",encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e.propDecorators={label:[{type:u.Input}],title:[{type:u.Input}],name:[{type:u.Input}],labelTitle:[{type:u.Input}],labelClass:[{type:u.Input}],inputClass:[{type:u.Input}],required:[{type:u.Input}],requiredSimbol:[{type:u.Input}],disabled:[{type:u.Input}],readonly:[{type:u.Input}],hasError:[{type:u.Input}],hiddenLabel:[{type:u.Input}],descError:[{type:u.Input}],enterUp:[{type:u.Output}],errorPrefix:[{type:u.Input}],popover:[{type:u.Input}],popoverButtonIcon:[{type:u.Input}],popoverButtonTitle:[{type:u.Input}],popoverTitle:[{type:u.Input}],popoverContent:[{type:u.Input}],cleanErrorOnChange:[{type:u.Input}]},e}(L),U=function(t){function e(){var e=t.call(this)||this;return e.checkedChange=new u.EventEmitter,e.clickCheckBox=new u.EventEmitter,e.click=new u.EventEmitter,e}return m(e,t),e.prototype.ngOnChanges=function(e){e.checked&&!e.checked.firstChange&&(this.hasError=!1,this.descError=undefined)},e.prototype.ngOnInit=function(){w(this.title)&&(this.title=this.label)},Object.defineProperty(e.prototype,"checked",{get:function(){return this.checkedValue},set:function(e){this.checkedValue=e,this.checkedChange.emit(this.checkedValue)},enumerable:!0,configurable:!0}),e.prototype.checkError=function(){return this.hasError||E(this.descError)},e.prototype.checkDescError=function(){var e=this.getDescError();return this.checkError()&&E(e)},e.prototype.getDescError=function(){return this.descError},e.prototype.cbOnEnter=function(){this.checked=!this.checked,this.enterUp.emit()},e.prototype.onClick=function(e){e.stopPropagation(),this.click.emit(e)},e.decorators=[{type:u.Component,args:[{selector:"inail-checkbox",template:'<div class="form-group col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} noPaddingLeft {{class}}"\n (click)="$event.stopPropagation()"\n [ngClass]="{\'has-error\': checkError()}">\n <div class="checkbox" (click)="$event.stopPropagation()">\n <label class="checkbox-inline {{labelClass}}"\n title="{{labelTitle}}"\n (click)="onClick($event)"\n [htmlFor]="id">\n <input id="{{id}}"\n class="{{inputClass}}"\n type="checkbox"\n (click)="clickCheckBox.emit()"\n [disabled]="disabled"\n (keyup.enter)="cbOnEnter()"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="checkError() === true ? true : undefined"\n [attr.aria-describedBy]="checkDescError() ? id+\'-description-error\' : undefined"\n [(ngModel)]=\'checked\'\n title="{{title}}">\n <span *ngIf="label"\n (click)="$event.stopPropagation()"\n [hidden]="hiddenLabel"\n [innerHTML]="label.concat(required ? \' \'+(requiredSimbol || \'*\') : \'\')"></span>\n </label>\n </div>\n <ng-container *ngIf="checkDescError()">\n <span [id]="id+\'-description-error\'"\n (click)="$event.stopPropagation()"\n class="msg msg-errore">\n <strong (click)="$event.stopPropagation()"\n [innerHTML]="(errorPrefix===false ? \'\' : \'ERRORE: \')+getDescError()"></strong>\n </span>\n </ng-container>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e.propDecorators={checkedChange:[{type:u.Output}],clickCheckBox:[{type:u.Output}],click:[{type:u.Output}],checked:[{type:u.Input}]},e}(A),F="modal-confirm",M=function(t){function e(){var e=t.call(this)||this;return e.modalConfirmClass=F,e.confirm=new u.EventEmitter,e.decline=new u.EventEmitter,e.close=new u.EventEmitter,e.visualizzaContent=!0,e}return m(e,t),e.prototype.ngOnChanges=function(e){},e.prototype.ngOnInit=function(){w(this.titolo)&&(this.titolo="Conferma operazione"),w(this.testo)&&(this.testo="Si richiede la conferma dell'operazione"),w(this.confirmButtonLabel)&&(this.confirmButtonLabel="Si"),w(this.declineButtonLabel)&&(this.declineButtonLabel="No"),this.show==undefined&&(this.show=new u.EventEmitter)},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout(function(){e.visualizzaContent=0<e.modalContent.nativeElement.firstChild.childNodes.length})},e.prototype.confirmOnClick=function(){this.closeModal(),this.confirm.emit()},e.prototype.declineOnClick=function(){this.closeModal(),this.decline.emit()},e.prototype.cancelOnClick=function(){this.close.emit()},e.prototype.closeModal=function(){this.show.emit(!1)},e.decorators=[{type:u.Component,args:[{selector:"inail-confirm",template:'<inail-modal [id]="id"\n [show]="show"\n [class]="class"\n [titolo]="titolo"\n [logOnConsole]="logOnConsole"\n [width]="\'M\'"\n (close)="close.emit($event)"\n (log)="log.emit($event)">\n\n <div *ngIf="!visualizzaContent" class="row">\n <p [innerHTML]="testo"></p>\n </div>\n <div #modalContent *ngIf="visualizzaContent" class="row">\n <p>\n <ng-content></ng-content>\n </p>\n </div>\n <div class="row confirm-footer">\n <button type="button"\n (click)="declineOnClick()"\n class="btn btn-primary" [innerHTML]="declineButtonLabel"></button>\n <inail-button [class]="\'pull-right\'"\n [submit]="isValidationConfirm"\n [label]="confirmButtonLabel"\n (click)="confirmOnClick()">\n </inail-button>\n </div>\n\n</inail-modal>\n\n\n\x3c!--<div class="modal fade {{class}} {{modalConfirmClass}}"\n [attr.id]=\'id || undefined\'\n tabindex="-1"\n role="dialog"\n data-keyboard="false" data-backdrop="static"\n [attr.aria-labelledby]="id+\'-TITOLO\'">\n <div class="vertical-alignment-helper">\n <div class="modal-dialog vertical-align-center">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button"\n id="{{id}}_close_button"\n (click)="cancelOnClick()"\n class="close"\n data-dismiss="modal"\n aria-label="Close">\n <span aria-hidden="true">×</span>\n </button>\n <div class="modal-title"\n id="{{id}}-TITOLO" [innerHTML]="titolo"></div>\n </div>\n <div class="modal-body">\n <div *ngIf="!visualizzaContent" class="row">\n <p [innerHTML]="testo"></p>\n </div>\n <div #modalContent *ngIf="visualizzaContent" class="row">\n <p>\n <ng-content></ng-content>\n </p>\n </div>\n </div>\n <div class="modal-footer">\n <button type="button"\n (click)="declineOnClick()"\n class="btn btn-primary" [innerHTML]="declineButtonLabel"></button>\n <inail-button [class]="\'pull-right\'"\n [submit]="isValidationConfirm"\n [label]="confirmButtonLabel"\n (click)="confirmOnClick()">\n </inail-button>\n </div>\n </div>\n </div>\n </div>\n</div>--\x3e\n',encapsulation:u.ViewEncapsulation.None,styles:[".confirm-footer{padding-bottom:20px!important;padding-top:35px!important}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={titolo:[{type:u.Input}],testo:[{type:u.Input}],confirmButtonLabel:[{type:u.Input}],declineButtonLabel:[{type:u.Input}],show:[{type:u.Input}],confirm:[{type:u.Output}],decline:[{type:u.Output}],close:[{type:u.Output}],isValidationConfirm:[{type:u.Input}],modalContent:[{type:u.ViewChild,args:["modalContent"]}]},e}(S),R=n,N=function(){function r(){}return r.isDate=function(e){var t=r.toDateObject(e);return r.isValidDateObject(t)},r.isPastDate=function(e){var t=r.toDateObject(e);if(r.isValidDateObject(t))return r.isPastDateObject(t);throw new Error("La stringa in input non rappresenta una data")},r.isFutureDate=function(e){var t=r.toDateObject(e);if(r.isValidDateObject(t))return r.isFutureDateObject(t);throw new Error("La stringa in input non rappresenta una data")},r.isPastDateObject=function(e){return r.compareDateObject(e,new Date)<0},r.isFutureDateObject=function(e){return 0<r.compareDateObject(e,new Date)},r.compareDateObject=function(e,t){var n=null;if(r.isValidDateObject(e)&&r.isValidDateObject(e)){var i=r.toShortString(e),a=r.toShortString(t);n=R(i,r.MOMENT_SHORT_DATE_FORMAT)<R(a,r.MOMENT_SHORT_DATE_FORMAT)?-1:R(i,r.MOMENT_SHORT_DATE_FORMAT)>R(a,r.MOMENT_SHORT_DATE_FORMAT)?1:0}return n},r.isValidDateObject=function(e){return e&&!!e.getFullYear()},r.toDateObject=function(e){var t=null;if(e){if(r.isInItalianFormat(e)){var n=e.split("/");e=n[1].concat("/").concat(n[0]).concat("/").concat(n[2])}t=new Date(e)}return t},r.isInItalianFormat=function(e){return E(e)&&new RegExp(/^[0-3][0-9][\/][0-1][0-9][\/][1-9][0-9]{3}$/).test(e)},r.isInRFC3339Format=function(e){return E(e)&&new RegExp(/^[1-9][0-9]{3}-[0-9]{2}-[0-9]{2}/).test(e)},r.isInISO8601Format=function(e){return E(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)},r.isValidDate=function(e){return r.isInItalianFormat(e)?R(e,r.MOMENT_SHORT_DATE_FORMAT).isValid():R(e).isValid()},r.toItalianFormat=function(e){return r.isInItalianFormat(e)?e:r.toShortString(new Date(e))},r.toShortString=function(e){return r.toString(e,r.FORMATO_DATA)},r.toString=function(e,t){var n=null;return r.isValidDateObject(e)&&(n=R(e).format(t.toUpperCase())),n},r.reformat=function(e,t){var n=this.toDateObject(e);return this.toString(n,t)},r.MOMENT_SHORT_DATE_FORMAT="DD/MM/YYYY",r.FORMATO_DATA="dd/MM/yyyy",r}(),H={it:{weekdays:["Lu","Ma","Me","Gi","Ve","Sa","Do"],months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"]}},j=function(){function e(){this.language="it"}return e.decorators=[{type:u.Injectable}],e}(),_=function(n){function e(e){var t=n.call(this)||this;return t._i18n=e,t}return m(e,n),e.prototype.getWeekdayShortName=function(e){return H[this._i18n.language].weekdays[e-1]},e.prototype.getMonthShortName=function(e){return H[this._i18n.language].months[e-1]},e.prototype.getMonthFullName=function(e){return this.getMonthShortName(e)},e.prototype.getDayAriaLabel=function(e){return e.day+"-"+e.month+"-"+e.year},e.decorators=[{type:u.Injectable}],e.ctorParameters=function(){return[{type:j}]},e}(r.NgbDatepickerI18n),B=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype.fromModel=function(e){return W.toNgbDateStruct(e)},t.prototype.toModel=function(e){return this._italianFormat&&"IT"==this._italianFormat?W.toItalianFormatString(e):W.toRFC3339FormatString(e)},Object.defineProperty(t.prototype,"italianFormat",{set:function(e){this._italianFormat=e},enumerable:!0,configurable:!0}),t.decorators=[{type:u.Injectable}],t}(r.NgbDateAdapter),q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype.format=function(e){return W.toItalianFormatString(e)},t.prototype.parse=function(e){return W.toNgbDateStruct(e)},t.decorators=[{type:u.Injectable}],t}(r.NgbDateParserFormatter),G=function(a){function e(e,t,n){var i=a.call(this)||this;return i.ngbDateParserFormatter=t,i.ngbDateAdapter=n,i.options={autoclose:!0,format:"dd/mm/yyyy",weekStart:1,todayBtn:"linked",language:"it",todayHighlight:!0,orientation:"auto top",enableOnReadonly:!1},i.dataChange=new u.EventEmitter,i}return m(e,a),e.prototype.ngOnChanges=function(e){e.data&&!e.data.firstChange&&(this.hasError=!1,this.descError=undefined)},e.prototype.ngOnInit=function(){var e=this;this.modelFormat||(this.modelFormat="RFC3339"),this.ngbDateAdapter.italianFormat=this.modelFormat,this.dataValue=W.reformat(this.dataValue,this.modelFormat),setTimeout(function(){e.dataChange.emit(e.dataValue)})},e.prototype.ngAfterViewInit=function(){if(window.$(this.input.nativeElement).datepicker(this.options),this.dataValue&&N.isDate(this.dataValue)){var e=this.ngbDateParserFormatter.format(this.ngbDateAdapter.fromModel(this.dataValue));window.$(this.input.nativeElement).datepicker("setDate",e)}},Object.defineProperty(e.prototype,"data",{get:function(){return this.dataValue},set:function(e){this.dataValue=e,this.dataChange.emit(this.dataValue)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isValid",{get:function(){var e=W.reformat(this.dataValue,"IT");return w(this.dataValue)||N.isInItalianFormat(e)},enumerable:!0,configurable:!0}),e.prototype.checkDescError=function(){var e=this.getDescError();return this.checkError()&&E(e)},e.prototype.checkError=function(){return!this.isValid||this.hasError||E(this.descError)},e.prototype.getDescError=function(){return w(this.descError)&&!this.isValid?"La data inserita non è valida":this.descError},e.prototype.onChange=function(e){var t=this;setTimeout(function(){t.data=N.isDate(e.target.value)?t.ngbDateAdapter.toModel(t.ngbDateParserFormatter.parse(e.target.value)):e.target.value},200)},e.decorators=[{type:u.Component,args:[{selector:"inail-date-picker",template:'\x3c!-- Template solo con DatePicker JS --\x3e\n\x3c!--<div class="date datePicker col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} noPaddingLeft {{class}}"\n [ngClass]="{\'has-error\': this.checkError()}">\n <div class="form-group">\n <div class="input-relative">\n <label *ngIf="label"\n class="control-label {{labelClass}}"\n title="{{labelTitle}}"\n for="{{id}}" [innerHTML]="label.concat(required ? \' \'+(requiredSimbol || \'*\') : \'\')"></label>\n <input id="{{id}}"\n #input\n class="form-control {{inputClass}}"\n title="GG/MM/AAAA"\n placeholder="GG/MM/AAAA"\n type="text"\n (paste)="onChange($event)"\n (keyup)="onChange($event)"\n (change)="onChange($event)"\n (blur)="onChange($event)"\n [disabled]="this.disabled"\n (keyup.enter)="enterUp.emit()"\n [(ngModel)]="this.data">\n <em class="fa fa-calendar"\n title="Calendario"\n (click)="input.focus()"></em>\n </div>\n <ng-container *ngIf="this.checkDescError()">\n <span class="msg msg-errore">\n <strong [innerHTML]="\'ERRORE: \'+this.getDescError()"></strong>\n </span>\n </ng-container>\n </div>\n</div>--\x3e\n\n\x3c!-- Template con ngbDatepicker e DatePicker JS --\x3e\n<div class="date datePicker col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} noPaddingLeft {{class}}"\n [ngClass]="{\'has-error\': this.checkError()}">\n <div class="form-group">\n <div class="input-relative">\n <label *ngIf="label"\n [hidden]="hiddenLabel"\n class="control-label {{labelClass}}"\n title="{{labelTitle}}"\n for="{{id}}" [innerHTML]="label.concat(required ? \' \'+(requiredSimbol || \'*\') : \'\')"></label>\n <input id="{{id}}"\n ngbDatepicker\n #input\n class="form-control {{inputClass}}"\n title="GG/MM/AAAA"\n placeholder="GG/MM/AAAA"\n type="text"\n (paste)="onChange($event)"\n (keyup)="onChange($event)"\n (change)="onChange($event)"\n (blur)="onChange($event)"\n [disabled]="this.disabled"\n (keyup.enter)="enterUp.emit()"\n [attr.aria-invalid]="checkError() === true ? true : undefined"\n [attr.aria-describedBy]="checkDescError() ? id+\'-description-error\' : undefined"\n [(ngModel)]="this.data">\n <em class="fa fa-calendar"\n title="Calendario"\n (click)="input.focus()"></em>\n </div>\n <ng-container *ngIf="this.checkDescError()">\n <span [id]="id+\'-description-error\'" class="msg msg-errore">\n <strong [innerHTML]="(errorPrefix===false ? \'\' : \'ERRORE: \')+this.getDescError()"></strong>\n </span>\n </ng-container>\n </div>\n</div>\n\n\x3c!-- Template solo con ngbDatepicker --\x3e\n\x3c!--<div class="date datePicker col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} noPaddingLeft {{class}}"\n [ngClass]="{\'has-error\': this.checkError()}">\n <div class="form-group">\n <div class="input-relative">\n <label *ngIf="label"\n class="control-label {{labelClass}}"\n title="{{labelTitle}}"\n for="{{id}}" [innerHTML]="label.concat(required ? \' \'+(requiredSimbol || \'*\') : \'\')"></label>\n <input ngbDatepicker\n id="{{id}}"\n class="form-control {{inputClass}}"\n title="GG/MM/AAAA"\n placeholder="GG/MM/AAAA"\n type="text"\n name="dp"\n (keyup.enter)="enterUp.emit()"\n [disabled]="this.disabled"\n [(ngModel)]="this.data"\n #d="ngbDatepicker">\n <em class="fa fa-calendar" title="Calendario" (click)="d.toggle()"></em>\n </div>\n <ng-container *ngIf="this.checkDescError()">\n <span class="msg msg-errore">\n <strong [innerHTML]="\'ERRORE: \'+this.getDescError()"></strong>\n </span>\n </ng-container>\n </div>\n</div>--\x3e\n\n\n',encapsulation:u.ViewEncapsulation.None,providers:[j,{provide:r.NgbDateAdapter,useClass:B},{provide:r.NgbDatepickerI18n,useClass:_},{provide:r.NgbDateParserFormatter,useClass:q}],styles:[""]}]}],e.ctorParameters=function(){return[{type:r.NgbDatepickerConfig},{type:r.NgbDateParserFormatter},{type:r.NgbDateAdapter}]},e.propDecorators={input:[{type:u.ViewChild,args:["input"]}],dataChange:[{type:u.Output}],modelFormat:[{type:u.Input}],data:[{type:u.Input}]},e}(A),W=function(){function a(){}return a.toNgbDateStruct=function(e){var t=null;if(e){var n=N.toDateObject(e.trim?e.trim():e);t={year:n.getFullYear(),month:n.getMonth()+1,day:n.getDate()}}return t},a.reformat=function(e,t){var n=null,i=a.toNgbDateStruct(e);return i&&(n=t&&"IT"==t?a.toItalianFormatString(i):a.toRFC3339FormatString(i)),n},a.toItalianFormatString=function(e){var t=null;return e&&(t=a.pad(e.day)+"/"+a.pad(e.month)+"/"+e.year),t},a.toRFC3339FormatString=function(e){var t=null;return e&&(t=a.pad(e.year)+"-"+a.pad(e.month)+"-"+a.pad(e.day)),t},a.pad=function(e){return e?(e<10?"0":"")+e:""},a}(),Y=function(t){function e(){var e=t.call(this)||this;return e.errorType="ERROR",e.successType="SUCCESS",e.enableIcon=!0,e}return m(e,t),e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){e.details&&e.details.currentValue&&(this.details=e.details.currentValue.filter(function(e){return e!=undefined}))},e.decorators=[{type:u.Component,args:[{selector:"inail-feedback",template:'<div [attr.id]=\'id || undefined\'\n class="row feedback-box feedback-box-view-encapsulation {{class}}"\n [ngClass]="{\'feedback-box-error\': type==errorType, \'global-feedback\': gobalFeedback === 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\': enableIcon && type==errorType,\n \'fa-check\':enableIcon && (type==successType || !type)}"></span>\n <span tabindex="0" class="feedback-focusable" [innerHTML]="message"></span>\n </span>\n </div>\n <div *ngIf="details && details.length > 0"\n class="feedback-content">\n <p *ngIf="contentTitle">\n <strong>{{contentTitle}}</strong>\n </p>\n <ng-container *ngIf="detailsAsList">\n <ol *ngIf="orderedList">\n <li *ngFor="let dettaglio of details" [innerHTML]="dettaglio"></li>\n </ol>\n <ul *ngIf="!orderedList">\n <li *ngFor="let dettaglio of details" [innerHTML]="dettaglio"></li>\n </ul>\n </ng-container>\n <ng-container *ngIf="!detailsAsList">\n <p *ngFor="let dettaglio of details" [innerHTML]="dettaglio"></p>\n </ng-container>\n </div>\n </div>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[".feedback-box-view-encapsulation.feedback-box{margin-bottom:15px!important}.feedback-box-view-encapsulation .feedback-content{padding-top:30px!important}.feedback-box-view-encapsulation .feedback-content p{padding-top:0!important}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={message:[{type:u.Input}],type:[{type:u.Input}],gobalFeedback:[{type:u.Input}],enableIcon:[{type:u.Input}],contentTitle:[{type:u.Input}],details:[{type:u.Input}],detailsAsList:[{type:u.Input}],orderedList:[{type:u.Input}]},e}(S),K=function It(e,t,n,i){this.message=t,this.type=e,n&&(this.details=[].concat(n),this.contentTitle=i)},Q=function(t){function e(){var e=t.call(this)||this;return e.valueChange=new u.EventEmitter,e}return m(e,t),e.prototype.ngOnChanges=function(e){e.value&&!e.value.firstChange&&(this.hasError=!1,this.descError=undefined)},e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"value",{get:function(){return this.isDate&&this.valueValue?N.toItalianFormat(this.valueValue):this.valueValue},set:function(e){this.valueValue=e,this.valueChange.emit(this.valueValue)},enumerable:!0,configurable:!0}),e.prototype.checkError=function(){return this.hasError||E(this.descError)},e.prototype.checkDescError=function(){return this.checkError()&&E(this.getDescError())},e.prototype.getDescError=function(){return this.descError},e.prototype.ngAfterViewInit=function(){this.showPopover()&&$("#"+this.id+"-popover").popover()},e.decorators=[{type:u.Component,args:[{selector:"inail-input-text",template:'<div class="form-group col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} noPaddingLeft {{class}}"\n [ngClass]="{\'has-error\': checkError()}">\n <label *ngIf="label"\n class="control-label {{labelClass}}"\n [hidden]="hiddenLabel"\n title="{{labelTitle}}"\n for="{{id}}"\n [innerHTML]="label.concat(required ? \' \'+(requiredSimbol || \'*\') : \'\')"></label>\n <ng-container *ngIf="showPopover()">\n \n <em [id]="id+\'-popover\'"\n class="fa fa-question-circle fa-lg"\n data-toggle="popover"\n title="{{popoverButtonTitle}}"\n [attr.data-content]="popoverContent"\n [attr.data-original-title]="popoverTitle">\n </em>\n </ng-container>\n <input type="text"\n id="{{id}}"\n title="{{title}}"\n maxlength="{{maxlength}}"\n [disabled]="disabled"\n [readonly]="readonly"\n class="form-control {{inputClass}}"\n [ngClass]="{\'disabled\': disabled}"\n placeholder="{{placeholder}}"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="checkError() === true ? true : undefined"\n [attr.aria-describedBy]="checkDescError() ? id+\'-description-error\' : undefined"\n (keyup.enter)="enterUp.emit()"\n [(ngModel)]=\'value\'>\n <ng-container *ngIf="checkDescError()">\n <span [id]="id+\'-description-error\'" class="msg msg-errore">\n <strong [innerHTML]="(errorPrefix===false ? \'\' : \'ERRORE: \')+getDescError()"></strong>\n </span>\n </ng-container>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e.propDecorators={placeholder:[{type:u.Input}],maxlength:[{type:u.Input}],isDate:[{type:u.Input}],valueChange:[{type:u.Output}],value:[{type:u.Input}]},e}(A),J=function(t){function e(){var e=t.call(this)||this;return e.valueChange=new u.EventEmitter,e.select=new u.EventEmitter,e.options=new Array(0),e.blankOption=!0,e}return m(e,t),e.prototype.ngOnChanges=function(e){if(this.sort){var n="ASC"==this.sort.toUpperCase()?1:"DESC"==this.sort.toUpperCase()?-1:0;0!=n&&this.options!=undefined&&this.options.sort(function(e,t){return e.label<t.label?-n:e.label>t.label?n:0})}e.value&&!e.value.firstChange&&(this.hasError=!1,this.descError=undefined)},e.prototype.ngOnInit=function(){var e=this;w(this.valueValue)&&setTimeout(function(){e.valueValue="",e.valueChange.emit(e.valueValue)})},Object.defineProperty(e.prototype,"value",{get:function(){return this.valueValue},set:function(e){var t,n=this;this.valueValue=e,this.valueChange.emit(this.valueValue),this.options&&(t=this.options.find(function(e){return e!=undefined&&e.value===n.valueValue})),(t!=undefined||w(e))&&this.select.emit(t)},enumerable:!0,configurable:!0}),e.prototype.checkError=function(){return this.hasError||E(this.descError)},e.prototype.checkDescError=function(){return this.checkError()&&E(this.getDescError())},e.prototype.getDescError=function(){return this.descError},e.isValidOption=function(e,t,n){return n&&(!t||0==t.length)||I(e)&&0<=e.findIndex(function(e){return e.value==t})},e.prototype.getValueLabel=function(){var e,t=this;return this.options&&(e=this.options.find(function(e){return e.value==t.value})),e?e.label:this.valueLabel||this.value},e.decorators=[{type:u.Component,args:[{selector:"inail-select",template:'<div class="form-group col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} {{class}} noPadding inail-select-view-encapsulation"\n *ngIf="!(disabledAsInputText)"\n [ngClass]="{\'has-error\': checkError()}">\n <label for="{{id}}"\n title="{{labelTitle}}"\n class="label-select col-xs-12 col-sm-12 col-md-12 col-lg-12 noPaddingLeft {{labelClass}}">\n <span *ngIf="label"\n [hidden]="hiddenLabel"\n [innerHTML]="label.concat(required ? \' \'+(requiredSimbol || \'*\') : \'\')"></span>\n <select class="form-control {{inputClass}}"\n id="{{id}}"\n title="{{title}}"\n [disabled]="disabled"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="checkError() === true ? true : undefined"\n [attr.aria-describedBy]="checkDescError() ? id+\'-description-error\' : undefined"\n (keyup.enter)="enterUp.emit()"\n [(ngModel)]=\'value\'>\n \x3c!--<option [value]="undefined"\n *ngIf="blankOption && (value === undefined)"\n [innerHTML]="this.blankOptionText || \'- seleziona opzione -\'">\n </option>--\x3e\n <option value=""\n *ngIf="blankOption"\n [innerHTML]="this.blankOptionText || \'- seleziona opzione -\'">\n </option>\n <ng-container *ngIf="options">\n <option *ngFor="let option of options"\n [value]="option?.value"\n [title]="option?.ti"\n [selected]="valueValue==option?.value"\n [innerHTML]="option?.label">\n </option>\n </ng-container>\n </select>\n </label>\n <ng-container *ngIf="checkDescError()">\n <span [id]="id+\'-description-error\'" class="msg msg-errore">\n <strong [innerHTML]="(errorPrefix===false ? \'\' : \'ERRORE: \')+getDescError()"></strong>\n </span>\n </ng-container>\n</div>\n<inail-input-text *ngIf="disabledAsInputText"\n [id]="id"\n [label]="this.label"\n [class]="this.class"\n [labelClass]="this.labelClass"\n [labelTitle]="this.labelTitle"\n [inputClass]="this.inputClass"\n [title]="this.title"\n [disabled]="true"\n [xs]="this.xs"\n [sm]="this.sm"\n [md]="this.md"\n [lg]="this.lg"\n [value]="getValueLabel()">\n</inail-input-text>\n',encapsulation:u.ViewEncapsulation.None,styles:[".inail-select-view-encapsulation label{margin-bottom:0}.panel .panel-body .inail-select-view-encapsulation.form-group select{min-width:auto!important}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={options:[{type:u.Input}],blankOption:[{type:u.Input}],blankOptionText:[{type:u.Input}],sort:[{type:u.Input}],valueLabel:[{type:u.Input}],disabledAsInputText:[{type:u.Input}],valueChange:[{type:u.Output}],select:[{type:u.Output}],value:[{type:u.Input}]},e}(A),Z=function Ct(){},X=function(t){function e(){var e=t.call(this)||this;return e.valueChange=new u.EventEmitter,e}return m(e,t),e.prototype.ngOnChanges=function(e){e.value&&!e.value.firstChange&&(this.hasError=!1,this.descError=undefined)},e.prototype.ngOnInit=function(){this.initAttributes()},e.prototype.initAttributes=function(){this.rows||(this.rows=10),this.cols||(this.cols=50),this.maxlength||(this.maxlength=300)},Object.defineProperty(e.prototype,"value",{get:function(){return this.valueValue},set:function(e){this.valueValue=e,this.valueChange.emit(this.valueValue)},enumerable:!0,configurable:!0}),e.prototype.checkError=function(){return!0===(this.hasError||E(this.descError)||this.isTextTooLong())},e.prototype.checkDescError=function(){var e=this.getDescError();return this.checkError()&&E(e)},e.prototype.getNumeroCaratteriDisponibili=function(){var e=this.valueValue?this.valueValue.length:0;return this.maxlength-e},e.prototype.getDescError=function(){return w(this.descError)&&this.isTextTooLong()?"Il testo non può essere lungo di "+this.maxlength+" caratteri":this.descError},e.prototype.isTextTooLong=function(){return this.valueValue&&this.valueValue.length>this.maxlength},e.prototype.onPaste=function(e){!0===this.preventPasting&&e.preventDefault()},e.decorators=[{type:u.Component,args:[{selector:"inail-textarea",template:'<div class="form-group col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} {{class}} textarea-style-encapsulation noPaddingLeft">\n <div class="col-md-12 noPadding"\n [ngClass]="{\'has-error\': checkError()}">\n <label *ngIf="label"\n [hidden]="hiddenLabel"\n class="control-label {{labelClass}}"\n title="{{labelTitle}}"\n for="{{id}}"\n [innerHTML]="label.concat(required ? \' \'+(requiredSimbol || \'*\') : \'\')"></label>\n <div *ngIf="!disabled" class="remainingChar pull-right"><strong>{{getNumeroCaratteriDisponibili()}}</strong> caratteri disponibili</div>\n <textarea id="{{id}}"\n class="form-control {{inputClass}}"\n maxlength="{{maxlength}}"\n rows="{{rows}}"\n cols="{{cols}}"\n placeholder="{{placeholder}}"\n title="{{title}}"\n (paste)="onPaste($event)"\n [disabled]="disabled"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="checkError() === true ? true : undefined"\n [attr.aria-describedBy]="checkDescError() ? id+\'-description-error\' : undefined"\n [(ngModel)]=\'value\'></textarea>\n <ng-container *ngIf="checkDescError()">\n <span [id]="id+\'-description-error\'" class="msg msg-errore">\n <strong [innerHTML]="(errorPrefix===false ? \'\' : \'ERRORE: \')+getDescError()"></strong>\n </span>\n </ng-container>\n </div>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[".textarea-style-encapsulation textarea{text-align:left!important}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={placeholder:[{type:u.Input}],valueChange:[{type:u.Output}],maxlength:[{type:u.Input}],rows:[{type:u.Input}],cols:[{type:u.Input}],preventPasting:[{type:u.Input}],value:[{type:u.Input}]},e}(A),ee=function(){function n(e){this.ASC=n.ASC,this.DESC=n.DESC,this.UNSORTED=n.UNSORTED,this.elementsChange=new u.EventEmitter,this.click=new u.EventEmitter,this.direction=n.UNSORTED,this.elementRef=e}return n.prototype.ngOnInit=function(){},n.prototype.ngAfterViewInit=function(){},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()},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.ASC=1,n.DESC=-1,n.UNSORTED=0,n.decorators=[{type:u.Component,args:[{selector:"inail-th-label",template:'<a *ngIf="sortable"\n href="javascript:void(0)"\n role="button"\n class="inail-th-label-view-encapsulation"\n [attr.aria-label]="sortable ? label + \': attiva per ordinare la colonna in ordine \' + (direction == ASC ? \'decrescente\' : \'crescente\') : undefined"\n (click)="onClick($event)">\n<span class="sortable thLabel" [innerHTML]="label" [attr.title]="title">\n \x3c!-- <span *ngIf="sortable" class="fa {{direction==0 ? \'fa-sort\' : direction==1 ? \'fa-sort-asc\' : \'fa-sort-desc\'}}"></span>--\x3e\n</span>\n</a>\n<span *ngIf="!sortable"\n (click)="onClick($event)" [innerHTML]="label" [attr.title]="title">\n \x3c!-- <span *ngIf="sortable" class="fa {{direction==0 ? \'fa-sort\' : direction==1 ? \'fa-sort-asc\' : \'fa-sort-desc\'}}"></span>--\x3e\n</span>\n<div *comment>\n \x3c!-- con aria sort (problema con W3C) --\x3e\n <a *ngIf="sortable"\n href="javascript:void(0)"\n role="button"\n class="inail-th-label-view-encapsulation"\n [attr.aria-label]="sortable ? label + \': attiva per ordinare la colonna in ordine \' + (direction == ASC ? \'decrescente\' : \'crescente\') : undefined"\n [attr.aria-sort]="sortable ? getAriaSortValue(direction) : undefined"\n (click)="onClick($event)">\n <span class="sortable thLabel" [innerHTML]="label" [attr.title]="title">\n \x3c!-- <span *ngIf="sortable" class="fa {{direction==0 ? \'fa-sort\' : direction==1 ? \'fa-sort-asc\' : \'fa-sort-desc\'}}"></span>--\x3e\n </span>\n </a>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[".inail-th-label-view-encapsulation .sortable{cursor:pointer}.inail-th-label-view-encapsulation .fa{padding:0 10px}a.inail-th-label-view-encapsulation{background:0 0;color:#000;text-decoration:none}"]}]}],n.ctorParameters=function(){return[{type:u.ElementRef}]},n.propDecorators={label:[{type:u.Input}],elements:[{type:u.Input}],elementsChange:[{type:u.Output}],property:[{type:u.Input}],title:[{type:u.Input}],sortable:[{type:u.Input}],click:[{type:u.Output}]},n}(),te=function(){function e(){this.valueChange=new u.EventEmitter}return e.prototype.ngOnChanges=function(e){},e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"value",{get:function(){return this.valueValue},set:function(e){e!=this.valueValue&&(this.valueValue=e,this.valueChange.emit(this.valueValue))},enumerable:!0,configurable:!0}),e.decorators=[{type:u.Component,args:[{selector:"inail-table-page-length-selector",template:'<div class="dataTables_length inail-table-page-length-selector-view-encapsulation">\n <label>Elementi per pagina\n <select name="tabella_length"\n [(ngModel)]="this.value"\n [attr.aria-controls]="tableId"\n class="form-control input-sm">\n <option value="10">10</option>\n <option value="25">25</option>\n <option value="50">50</option>\n <option value="100">100</option>\n </select>\n </label>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[".inail-table-page-length-selector-view-encapsulation select.form-control{display:inline-block}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={tableId:[{type:u.Input}],valueChange:[{type:u.Output}],value:[{type:u.Input}]},e}(),ne=function(){function e(e){this.cd=e,this.select=new u.EventEmitter,this.currentPage=1,this.pageSize=10,this.listSize=0,this.externalPagination=!1}return e.prototype.ngOnChanges=function(e){!this.externalPagination&&e.currentPage&&e.currentPage.firstChange&&e.currentPage.currentValue!=undefined&&(this.externalPagination=!0),e&&(e.pageSize||e.listSize)&&(this.calcolaNumeroPagine(),this.externalPagination||(this.currentPage=1)),e&&e.currentPage&&e.currentPage.currentValue!=undefined&&(e.currentPage.currentValue>this.length?(this.currentPage=this.length,this.emit(this.currentPage)):e.currentPage.currentValue<1&&(this.currentPage=1,this.emit(this.currentPage))),this.cd.detectChanges()},e.prototype.ngOnInit=function(){this.pageSize||(this.pageSize=e.DEFAULT_TABLE_LENGTH)},e.prototype.calcolaNumeroPagine=function(){this.length=Math.floor(this.listSize/this.pageSize),0<this.listSize%this.pageSize&&this.length++,0!=this.length&&this.length!=undefined||(this.length=1)},Object.defineProperty(e.prototype,"pages",{get:function(){return new Array(this.length)},enumerable:!0,configurable:!0}),e.prototype.set=function(e){0<e&&e<=this.length&&(this.externalPagination||(this.currentPage=e),this.emit(e))},e.prototype.prev=function(){this.set(this.currentPage-1)},e.prototype.next=function(){this.set(this.currentPage+1)},e.prototype.emit=function(e){this.select.emit(e)},e.DEFAULT_TABLE_LENGTH=10,e.decorators=[{type:u.Component,args:[{selector:"inail-table-page-selector",template:'<ng-container *ngIf="listSize > pageSize">\n <div class="bottom paginate-component inail-table-page-selector-view-encapsulation">\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">\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"\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"\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"\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"\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"\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"\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"\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"\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',encapsulation:u.ViewEncapsulation.None,styles:[".inail-table-page-selector-view-encapsulation.paginate-component{margin-top:15px}.inail-table-page-selector-view-encapsulation ul li a{cursor:pointer}"]}]}],e.ctorParameters=function(){return[{type:u.ChangeDetectorRef}]},e.propDecorators={tableId:[{type:u.Input}],listSize:[{type:u.Input}],pageSize:[{type:u.Input}],currentPage:[{type:u.Input}],select:[{type:u.Output}]},e}(),ie=function(){function t(e){this.renderer=e,this.subsetChange=new u.EventEmitter,this.pagination=new u.EventEmitter,this.externalPaginationSorting=!1}return t.prototype.ngOnChanges=function(e){var t=this;if(!this.externalPaginationSorting&&e.paginationInfo&&e.paginationInfo.firstChange&&e.paginationInfo.currentValue!=undefined&&(this.externalPaginationSorting=!0),this.externalPaginationSorting&&this.paginationInfo&&this.paginationInfo.sortProperty&&this.thLabelComponents){var n=this.thLabelComponents.find(function(e){return e.property==t.paginationInfo.sortProperty});this.setSortDirection(n,this.paginationInfo.sortDirection)}!e.elements||e.elements.firstChange||this.externalPaginationSorting||(this.tablePageSelectorComponent&&(this.tablePageSelectorComponent.currentPage=1),this.emitSubset(1)),!this.externalPaginationSorting&&e.doPagination&&e.doPagination.currentValue&&e.doPagination.currentValue.subscribe(function(e){t.lengthOnChange(e.pageSize),setTimeout(function(){return t.doSorting(e.sortProperty,e.sortDirection)},100),setTimeout(function(){return t.pageOnChange(e.pageNumber)},200)})},t.prototype.ngOnInit=function(){var e=this;this.tableLength=this.externalPaginationSorting?this.paginationInfo.pageSize:this.pageSize||t.DEFAULT_TABLE_LENGTH,this.externalPaginationSorting||setTimeout(function(){e.emitSubset(e.currentPage||1)})},t.prototype.ngAfterViewInit=function(){this.inizializzaTabella(this.thLabelComponents),this.lookAtThLabel(this.thLabelComponents)},t.prototype.inizializzaTabella=function(e){var t=this;e&&e.forEach(function(e){t.modificaTh(e)})},t.prototype.doSorting=function(t,e){var n={property:t,direction:e==ae.ASC?ee.ASC:e==ae.DESC?ee.DESC:undefined},i=this.thLabelComponents.find(function(e){return e.property==t});this.performSorting(n,i)},t.prototype.lookAtThLabel=function(e){var n=this;e&&(this.thLabelComponents=e).forEach(function(t){t&&t.click.subscribe(function(e){n.performSorting(e,t)})})},t.prototype.performSorting=function(e,t){if(t!=undefined&&e!=undefined&&e.property!=undefined){var n={};n.sortProperty=e.property,n.sortDirection=e.direction==ee.ASC?ae.ASC:e.direction==ee.DESC?ae.DESC:undefined,n.pageNumber=1,this.resetDirectionSorting(t,this.thLabelComponents),this.modificaTh(t),this.externalPaginationSorting?(n.fullListSize=this.paginationInfo.fullListSize,n.pageSize=this.paginationInfo.pageSize):(this.ordina(e),this.emitSubset(1)),this.pagination.emit(n)}},t.prototype.resetDirectionSorting=function(t,e){var n=this;e&&e.forEach(function(e){e&&e.property!=t.property&&(e.setAsUnsorted(),n.modificaTh(e))})},t.prototype.reimpostaThs=function(e,t){if(e){var n=this.getThLabelComponentBySortProperty(e.sortProperty,t);this.resetDirectionSorting(n,t)}},t.prototype.getThLabelComponentBySortProperty=function(t,e){return undefined!=e?e.find(function(e){return e&&e.property==t}):undefined},t.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==ee.UNSORTED&&t.removeAttribute("aria-sort"))}},t.prototype.removeSortClass=function(e){this.renderer.removeClass(e,"sorting_asc"),this.renderer.removeClass(e,"sorting_desc"),this.renderer.removeClass(e,"sorting")},t.prototype.getThSortClass=function(e){var t;switch(e){case ee.ASC:t="sorting_asc";break;case ee.DESC:t="sorting_desc";break;case ee.UNSORTED:t="sorting"}return t},t.prototype.getAriaSortValue=function(e){var t;switch(e){case ee.ASC:t="ascending";break;case ee.DESC:t="descending";break;case ee.UNSORTED:t="none"}return t},t.prototype.ordina=function(e){e&&this.elements&&e.property&&(e.direction=-1*e.direction,e.direction==ee.UNSORTED&&(e.direction=ee.ASC),this.elements.sort(this.propertyComparator(e.property,e.direction)),this.elements=[].concat(this.elements))},t.prototype.propertyComparator=function(e,n){var i=e?e.split("."):undefined;function a(e,t){if(e&&t)return 1<t.length?a(e[t[0]],t.slice(1,t.length)):e[t[0]]}return function(e,t){return(a(e,i)>a(t,i)?ee.DESC:ee.ASC)*n}},t.prototype.lengthOnChange=function(e){if(e!=undefined&&(!this.paginationInfo||e!=this.paginationInfo.pageSize)){var t={};this.externalPaginationSorting?t=f({},this.paginationInfo):this.tableLength!=e&&(this.tableLength=e,t={},this.emitSubset(1)),t.pageSize=e,t.pageNumber=1,this.pagination.emit(t)}},t.prototype.pageOnChange=function(e){if(e!=undefined){var t=void 0;this.externalPaginationSorting?t=f({},this.paginationInfo):(t={},this.emitSubset(e)),t.pageNumber=e,this.pagination.emit(t)}},t.prototype.emitSubset=function(e){if(e&&!this.externalPaginationSorting&&this.elements!=undefined){var t,n=this.tableLength*(e-1),i=Number(n)+Number(this.tableLength);t=this.elements.slice(n,i),this.currentPage=e,this.subsetChange.emit(t)}},t.prototype.visualizzaPaginazione=function(){return!this.disabilitaPaginazione&&(this.elements!=undefined||this.externalPaginationSorting!=undefined&&this.paginationInfo!=undefined)},t.prototype.setSortDirection=function(e,t){if(e){switch(t){case"asc":e.direction=ee.ASC;break;case"desc":e.direction=ee.DESC;break;default:e.direction=ee.UNSORTED}this.modificaTh(e)}},t.DEFAULT_TABLE_LENGTH=10,t.decorators=[{type:u.Component,args:[{selector:"inail-paged-table-renderer",template:'<ng-container *ngIf="visualizzaPaginazione()">\n <inail-table-page-length-selector [value]="externalPaginationSorting ? paginationInfo.pageSize : tableLength"\n [tableId]="tableId"\n (valueChange)="lengthOnChange($event)"></inail-table-page-length-selector>\n</ng-container>\n\n<div *ngIf="!elements && recuperoInCorso">{{testoRecuperoInCorso || \'Recupero in corso...\'}}</div>\n\n<ng-content *ngIf="elements || !recuperoInCorso"></ng-content>\n\n<ng-container *ngIf="visualizzaPaginazione()">\n <inail-table-page-selector [listSize]="externalPaginationSorting ? paginationInfo.fullListSize : elements.length"\n [pageSize]="externalPaginationSorting ? paginationInfo.pageSize : tableLength"\n [currentPage]="externalPaginationSorting && paginationInfo ? paginationInfo.pageNumber : currentPage"\n [tableId]="tableId"\n (select)="pageOnChange($event)"></inail-table-page-selector>\n</ng-container>\n',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],t.ctorParameters=function(){return[{type:u.Renderer2}]},t.propDecorators={tableId:[{type:u.Input}],elements:[{type:u.Input}],subset:[{type:u.Input}],subsetChange:[{type:u.Output}],paginationInfo:[{type:u.Input}],doPagination:[{type:u.Input}],pageSize:[{type:u.Input}],recuperoInCorso:[{type:u.Input}],disabilitaPaginazione:[{type:u.Input}],testoRecuperoInCorso:[{type:u.Input}],pagination:[{type:u.Output}],thLabelComponents:[{type:u.ContentChildren,args:[ee,{descendants:!0}]}],tablePageSelectorComponent:[{type:u.ViewChild,args:[ne]}]},t}(),ae=function(){function e(){}return e.ASC="asc",e.DESC="desc",e}(),re=function(t){function e(){var e=t.call(this)||this;return e.dataDalChange=new u.EventEmitter,e.dataAlChange=new u.EventEmitter,e}return m(e,t),e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){(e.dataAl&&!e.dataAl.firstChange||e.dataDal&&!e.dataDal.firstChange)&&(this.hasError=!1,this.descError=undefined)},Object.defineProperty(e.prototype,"dataDal",{get:function(){return this.dataDalValue},set:function(e){this.dataDalValue=e,this.dataDalChange.emit(this.dataDalValue)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataAl",{get:function(){return this.dataAlValue},set:function(e){this.dataAlValue=e,this.dataAlChange.emit(this.dataAlValue)},enumerable:!0,configurable:!0}),e.prototype.checkDescError=function(){return E(this.descError)},e.decorators=[{type:u.Component,args:[{selector:"inail-date-range",template:'<div [id]="id"\n class="form-inline date-range col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} noPaddingLeft {{class}}">\n <div>\n <p *ngIf="label" class="{{labelClass}}" [innerHTML]="label.concat(required ? \' \'+(requiredSimbol || \'*\') : \'\')"></p>\n\n <inail-input-date [id]="id+\'-dal\'"\n [class]="\'form-group\'"\n [label]="\'Dal \'"\n [hasError]="hasErrorDal || hasError || checkDescError()"\n [descError]="descErrorDal"\n [modelFormat]="modelFormat"\n (enterUp)="enterUp.emit()"\n [(data)]="dataDal">\n </inail-input-date>\n\n <inail-input-date [id]="id+\'-al\'"\n [class]="\'form-group\'"\n [label]="\'Al \'"\n [hasError]="hasErrorAl || hasError || checkDescError()"\n [descError]="descErrorAl"\n [modelFormat]="modelFormat"\n (enterUp)="enterUp.emit()"\n [(data)]="dataAl">\n </inail-input-date>\n\n </div>\n <ng-container *ngIf="checkDescError()">\n <div>\n <span [id]="id+\'-description-error\'" class="msg msg-errore">\n <strong [innerHTML]="(errorPrefix===false ? \'\' : \'ERRORE: \')+descError"></strong>\n </span>\n </div>\n </ng-container>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e.propDecorators={hasErrorDal:[{type:u.Input}],descErrorDal:[{type:u.Input}],hasErrorAl:[{type:u.Input}],descErrorAl:[{type:u.Input}],modelFormat:[{type:u.Input}],dataDalChange:[{type:u.Output}],dataAlChange:[{type:u.Output}],dataDal:[{type:u.Input}],dataAl:[{type:u.Input}]},e}(A),oe=function(){function e(){this.selected=new u.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){e&&e.active&&this.selected.emit(e.active.currentValue)},e.decorators=[{type:u.Component,args:[{selector:"inail-tab-pane",template:'<div [hidden]="!active"\n [attr.id]=\'id || undefined\'\n class="tab-pane tab-pane-component-style-encapsulation">\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',encapsulation:u.ViewEncapsulation.None,styles:[".tab-pane-component-style-encapsulation>div{margin-top:0!important}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={id:[{type:u.Input}],title:[{type:u.Input}],active:[{type:u.Input}],required:[{type:u.Input}],selected:[{type:u.Output}]},e}(),se=function(){function e(){this.selected=new u.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){var e=this;this.panes.some(function(e){return e.active})||setTimeout(function(){e.panes.toArray()[0].active=!0})},e.prototype.isActive=function(t){return this.panes.some(function(e){return e.id==t&&e.active})},e.prototype.active=function(t){this.selected.emit(t),this.panes.forEach(function(e){e.active=e.id==t})},e.decorators=[{type:u.Component,args:[{selector:"inail-tab-group",template:'<div [attr.id]=\'id || undefined\'\n class="tab-portale">\n <ul class="nav nav-tabs default-tabs" role="tablist">\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 (click)="active(pane.id)">\n <span class="labelTabTitle" [innerHTML]="pane.title.concat(pane.required ? \' *\' : \'\')"></span>\n </a>\n </li>\n </ul>\n <div class="tab-content">\n <ng-content></ng-content>\n </div>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e.propDecorators={panes:[{type:u.ContentChildren,args:[oe]}],id:[{type:u.Input}],selected:[{type:u.Output}]},e}(),le=function(t){function e(){var e=t.call(this)||this;return e.hidden=!1,e.rendered=!0,e}return m(e,t),e.prototype.ngOnInit=function(){},e.decorators=[{type:u.Component,args:[{selector:"inail-content",template:'<div [hidden]="hidden" *ngIf="rendered">\n <ng-content></ng-content>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e.propDecorators={hidden:[{type:u.Input}],rendered:[{type:u.Input}]},e}(S),ce=function(n){function e(e){var t=n.call(this)||this;return t.re2=e,t.showNumber=!0,t.showCarattereSeparatore=!0,t.carattereSeparatore=">",t.fullNavigation=!1,t.contentsHidden=!0,t.currentStep=0,t.select=new u.EventEmitter,t.prevButtonTitle="scorri wizard a destra",t.nextButtonTitle="scorri wizard a sinistra",t.inizializzazioneContenutiCompletata=!1,t.firstVisibleStep=0,t.totalTranslate=0,t.translate=function(e){t.totalTranslate+=e,t.re2.setStyle(t.slickTrack.nativeElement,"transform","translate("+t.totalTranslate+"px)")},t}return m(e,n),e.prototype.ngOnChanges=function(e){var t=this;e.switchToFirstError&&e.switchToFirstError.currentValue&&e.switchToFirstError.currentValue.subscribe(function(){var e=t.steps.find(function(e){return e.error});e&&t.stepOnClick(e)}),e.steps&&!e.steps.isFirstChange()&&this.inizializzaSteps()},e.prototype.ngOnInit=function(){this.currentStep==undefined&&(this.currentStep=0),this.inizializzaSteps()},e.prototype.ngAfterViewInit=function(){this.inizializzaContenuti(this.contenuti)},e.prototype.inizializzaContenuti=function(e){var t=this;if(this.contenuti=e,this.contenuti&&0<this.contenuti.length){var n=this.steps.find(function(e){return e.index==t.currentStep});this.showContent(n),setTimeout(function(){return t.inizializzazioneContenutiCompletata=!0})}},e.prototype.inizializzaSteps=function(){this.steps&&this.steps.forEach(function(e,t){e&&(e.index=t)})},e.prototype.stepOnClick=function(e){(e.index<this.currentStep||e.index>this.currentStep&&this.fullNavigation)&&(this.currentStep=e.index,this.select.emit(e)),this.contenuti&&0<this.contenuti.length&&this.showContent(e)},e.prototype.isActive=function(e){return this.fullNavigation||e<=this.currentStep},e.prototype.getAriaLabelValue=function(e){return e.index==this.currentStep?"Step corrente":e.index<this.currentStep?"Step precedente":"Step successivo"},e.prototype.getStepLabel=function(e,t){return e.label.concat(e.required?" *":"").concat(this.showCarattereSeparatore?" ":"").concat(!t&&this.showCarattereSeparatore?this.carattereSeparatore:"")},e.prototype.showContent=function(n){var i=this;if(n){var a=!1;this.contenuti.forEach(function(e,t){return setTimeout(function(){a=n.code?e.id==n.code:t==n.index,i.contentsHidden?e.hidden=!a:e.rendered=a})})}},e.prototype.prevButtonOnClick=function(){this.translate(120)},e.prototype.nextButtonOnClick=function(){this.translate(-120)},e.prototype.onFocus=function(e){},e.decorators=[{type:u.Component,args:[{selector:"inail-wizard",template:'\x3c!--<div *ngIf="show"\n [attr.id]=\'id || undefined\'\n class="row wizard courousel-varible-width marginBottom {{class}} inail-wizard-view-encapsulation">\n <div *ngFor="let step of steps; last as isLast"\n class="item"\n [attr.aria-label]="getAriaLabelValue(step)"\n [ngClass]="{\'active\': step.index==currentStep, \'prevActive\': isActive(step.index)}">\n <a (click)="stepOnClick(step)"\n *ngIf="isActive(step.index)"\n [attr.tabindex]="0"\n href="javascript:void(0)"\n [ngClass]="{\'errorLabel\': step.error}"\n title="{{step.title ? step.title : step.label}}" #stepLink>\n <span>\n <span *ngIf="showNumber" class="step-number">{{step.index + 1}} </span>\n <span [innerHTML]="getStepLabel(step, isLast)"></span>\n </span>\n </a>\n <span *ngIf="!isActive(step.index)"\n [ngClass]="{\'errorLabel\': step.error}"\n title="{{step.title ? step.title : step.label}}">\n <span>\n <span *ngIf="showNumber" class="step-number">{{step.index + 1}} </span>\n <span [innerHTML]="getStepLabel(step, isLast)"></span>\n </span>\n </span>\n </div>\n</div>--\x3e\n<div [id]="id" class="row wizard courousel-varible-width slick-initialized slick-slider marginBottom inail-wizard-view-encapsulation {{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 step of steps; last as isLast"\n #slickSlide\n class="slick-slide">\n\n <div>\n <div [attr.aria-label]="getAriaLabelValue(step)"\n class="item"\n [ngClass]="{\'active\': step.index==currentStep, \'prevActive\': isActive(step.index)}"\n style="width: 100%;\n display: inline-block;">\n\n <a *ngIf="isActive(step.index)"\n [ngClass]="{\'errorLabel\': step.error}"\n (click)="stepOnClick(step)"\n href="javascript:void(0)"\n [attr.title]="step.title ? step.title : step.label">\n <span>\n <span *ngIf="showNumber" class="step-number">{{step.index + 1}} </span>\n <span [innerHTML]="getStepLabel(step, isLast)"></span>\n </span>\n </a>\n <span *ngIf="!isActive(step.index)"\n [ngClass]="{\'errorLabel\': step.error}"\n title="{{step.title ? step.title : step.label}}">\n <span>\n <span *ngIf="showNumber" class="step-number">{{step.index + 1}} </span>\n <span [innerHTML]="getStepLabel(step, 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',encapsulation:u.ViewEncapsulation.None,styles:[".inail-wizard-view-encapsulation.wizard.courousel-varible-width{padding-left:22px;padding-right:22px}.inail-wizard-view-encapsulation.wizard button.slick-arrow:focus{outline:#000 dotted 1px!important}.inail-wizard-view-encapsulation.wizard .item>span{color:#767676!important;text-decoration:none;cursor:default}.inail-wizard-view-encapsulation.wizard .item.active>span{color:#002e5f!important;font-weight:700;cursor:default!important;text-decoration:none!important;pointer-events:none}"]}]}],e.ctorParameters=function(){return[{type:u.Renderer2}]},e.propDecorators={steps:[{type:u.Input}],showNumber:[{type:u.Input}],showCarattereSeparatore:[{type:u.Input}],carattereSeparatore:[{type:u.Input}],fullNavigation:[{type:u.Input}],contentsHidden:[{type:u.Input}],currentStep:[{type:u.Input}],select:[{type:u.Output}],switchToFirstError:[{type:u.Input}],prevButtonTitle:[{type:u.Input}],nextButtonTitle:[{type:u.Input}],prevButton:[{type:u.ViewChild,args:["prevButton"]}],nextButton:[{type:u.ViewChild,args:["nextButton"]}],slickTrack:[{type:u.ViewChild,args:["slickTrack"]}],slickSlide:[{type:u.ViewChildren,args:["slickSlide"]}],contenuti:[{type:u.ContentChildren,args:[le]}]},e}(S),pe=function kt(){},ue={editable:!0,spellcheck:!1,toolbarHiddenButtons:[["strikethrough","subscript","superscript"],["customClasses","link","unlink","insertImage","insertVideo","insertHorizontalRule","removeFormat","toggleEditorMode"]]},de=function(t){function e(){var e=t.call(this)||this;return e.textChange=new u.EventEmitter,e.ready=new u.EventEmitter,e.config=f({},ue),e.viewInit=!1,e.status="NOT_CREATED",e.id="a"+e.id,e}return m(e,t),e.prototype.ngOnChanges=function(e){e.text&&!e.text.firstChange&&(this.hasError=!1,this.descError=undefined),this.viewInit&&e.disabled&&(!1===e.disabled.currentValue||e.disabled.currentValue==undefined||e.disabled.currentValue)},e.prototype.ngOnInit=function(){w(this.label)&&(this.label="Testo",this.hiddenLabel=!0)},Object.defineProperty(e.prototype,"text",{get:function(){return this.textValue},set:function(e){this.editor&&e!=undefined&&e!=this.textValue&&this.editor.setData(e),this.textValue=e},enumerable:!0,configurable:!0}),e.prototype.checkError=function(){return this.hasError||E(this.descError)},e.prototype.checkDescError=function(){var e=this.getDescError();return this.checkError()&&E(e)},e.prototype.getDescError=function(){return this.descError},e.prototype.ngAfterViewInit=function(){$('style:contains("::ng-deep")').each(function(e,t){t.innerHTML=t.innerHTML.replace(/::ng-deep/g,"")}),this.disabled,this.viewInit=!0},e.prototype.ngAfterViewChecked=function(){document.getElementById(this.id)&&this.createEditor()},e.prototype.createEditor=function(){var t=this,e=document.getElementById(this.id);!this.editor&&e&&this.isNotCreated()&&(this.status="IN_CREATION",setTimeout(function(){DecoupledEditor.create(document.querySelector("#"+t.id),t.config).then(function(e){t.status="READY",t.emitDebug("Text editor creato:"),t.emitDebug(e),t.editor=e,document.querySelector("#"+t.id+"-toolbar-container").appendChild(e.ui.view.toolbar.element),t.onReady(e),e.model.document.on("change:data",function(){t.textValue=e.getData(),t.textChange.emit(t.textValue)}),he()})["catch"](function(e){t.status="NOT_CREATED",t.emitError("Errore inizializzazione CKEditor"),t.emitError(e)})}))},e.prototype.onReady=function(e){$(".ck-toolbar__items button").attr("tabindex","0"),this.ready.emit(e)},e.prototype.ngOnDestroy=function(){this.destoryEditor(),this.status="NOT_CREATED"},e.prototype.destoryEditor=function(){this.editor!=undefined&&this.editor.destroy()},e.prototype.isReady=function(){return"READY"===this.status},e.prototype.isInCreation=function(){return"IN_CREATION"===this.status},e.prototype.isNotCreated=function(){return"NOT_CREATED"===this.status},e.decorators=[{type:u.Component,args:[{selector:"inail-text-editor-old",template:'<div *ngIf="!disabled"\n class="inail-text-editor-view-encapsulation"\n [ngClass]="{\'has-error\': checkError()}">\n <span *ngIf="label"\n [hidden]="hiddenLabel"\n class="control-label"\n [innerHTML]="label ? label.concat(required ? \' \'+(requiredSimbol || \'*\') : \'\') : \'\'"></span>\n \x3c!--<angular-editor [id]="id"\n [name]="name"\n [config]="config"\n [(ngModel)]="text">\n </angular-editor>--\x3e\n \x3c!--<ckeditor [id]="id"\n [editor]="editor"\n (ready)="onReady($event)"\n [config]="config"\n [(ngModel)]="text">\n </ckeditor>--\x3e\n\n \x3c!--<div [id]="id+\'-toolbar-container\'"></div>\n <div [id]="id" [innerHTML]="text"></div>--\x3e\n\n <ng-container *ngIf="checkDescError()">\n <span [id]="id+\'-description-error\'" class="msg msg-errore">\n <strong [innerHTML]="(errorPrefix===false ? \'\' : \'ERRORE: \')+getDescError()"></strong>\n </span>\n </ng-container>\n</div>\n<div class="inail-text-editor-view-encapsulation form-group col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} {{class}} noPadding"\n *ngIf="disabled">\n <div class="col-lg-12 noPadding">\n <span *ngIf="label"\n [hidden]="hiddenLabel"\n class="control-label"\n [innerHTML]="label"></span>\n <div class="text-editor form-control"\n id="{{id}}"\n title="Textarea"\n [innerHTML]="text"></div>\n </div>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[".inail-text-editor-view-encapsulation .control-label{margin-bottom:5px;display:block}.inail-text-editor-view-encapsulation .angular-editor .angular-editor-wrapper .angular-editor-textarea{background-color:#fff!important}div.inail-text-editor-view-encapsulation.has-error div.angular-editor div.angular-editor-wrapper div.angular-editor-textarea{border-color:#a94442!important}.inail-text-editor-view-encapsulation .angular-editor .angular-editor-wrapper .angular-editor-placeholder{z-index:999!important}.inail-text-editor-view-encapsulation .text-editor.form-control{color:#000;border-radius:0;-webkit-appearance:none;border:1px solid #afafaf;font-size:1em!important;resize:none;background-color:#eee;opacity:1;min-height:203px;overflow:auto}.ck-editor__editable_inline,.inail-text-editor-view-encapsulation .ck-editor__editable_inline{min-height:250px!important;border:1px solid #afafaf;position:relative;top:-1px;border-radius:0!important;background-color:#fff}.inail-text-editor-view-encapsulation .ck.ck-toolbar{margin-top:5px;border:1px solid #afafaf!important}.inail-text-editor-view-encapsulation .ck-editor__editable_inline.ck-focused{border-color:#66afe9!important;outline:0!important;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)!important}.inail-text-editor-view-encapsulation.has-error .ck-editor__editable_inline{border-color:#843534!important}.inail-text-editor-view-encapsulation.has-error .ck-editor__editable_inline.ck-focused{box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483!important}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={textChange:[{type:u.Output}],ready:[{type:u.Output}],config:[{type:u.Input}],text:[{type:u.Input}]},e}(A),he=function(){var t=$(".ck.ck-balloon-rotator");t&&t.each(function(e){$(t[e]).attr("data-z-index","-1"),$(t[e]).removeAttr("z-index")})},ge=function(e){function t(){return e.call(this)||this}return m(t,e),t.prototype.ngOnInit=function(){},t.decorators=[{type:u.Component,args:[{selector:"inail-form-grey",template:'<div [attr.id]=\'id || undefined\' class="form-grey content row {{class}}">\n <h3 *ngIf="titolo" class="title-modulo" [innerHTML]="titolo"></h3>\n <div class="col-md-12 col-lg-12">\n <ng-content></ng-content>\n </div>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],t.ctorParameters=function(){return[]},t.propDecorators={titolo:[{type:u.Input}]},t}(S),me=function(t){function e(){var e=t.call(this)||this;return e.contentsHidden=!0,e.select=new u.EventEmitter,e.prevButtonTitle="scorri selettore a destra",e.nextButtonTitle="scorri selettore a sinistra",e}return m(e,t),e.prototype.ngOnInit=function(){},e.prototype.stepOnClick=function(e){this.select.emit(e)},e.prototype.ngAfterViewInit=function(){this.wizard&&this.wizard.inizializzaContenuti(this.contenuti)},e.decorators=[{type:u.Component,args:[{selector:"inail-selector",template:'<inail-wizard [id]="id"\n [class]="class"\n [steps]="steps"\n [fullNavigation]="true"\n [currentStep]="currentStep"\n [contentsHidden]="contentsHidden"\n [showCarattereSeparatore]="false"\n [switchToFirstError]="switchToFirstError"\n [prevButtonTitle]="prevButtonTitle"\n [nextButtonTitle]="nextButtonTitle"\n [showNumber]="false" (select)="stepOnClick($event)" #wizard>\n <ng-content></ng-content>\n</inail-wizard>\n',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e.propDecorators={steps:[{type:u.Input}],currentStep:[{type:u.Input}],contentsHidden:[{type:u.Input}],select:[{type:u.Output}],switchToFirstError:[{type:u.Input}],prevButtonTitle:[{type:u.Input}],nextButtonTitle:[{type:u.Input}],contenuti:[{type:u.ContentChildren,args:[le]}],wizard:[{type:u.ViewChild,args:[ce]}]},e}(S),fe=function(t){function e(){var e=t.call(this)||this;return e.close=new u.EventEmitter,e.setFocusOnLastPageActiveElement=function(){e.pageActiveElement!=undefined&&(0<$(e.pageActiveElement).length?e.pageActiveElement.focus():e.setFocusOnPreviusFocusableElement(e.previusFocusableElements.length-1))},e}return m(e,t),e.prototype.ngOnChanges=function(e){var n=this;e.show&&e.show.currentValue.subscribe(function(e){if(e==undefined&&(e=!0),!0===e){n.pageActiveElement=document.activeElement;var t=$("body").find(":focusable");t.index(n.pageActiveElement);n.previusFocusableElements=t.filter(function(e){return e<t.index(n.pageActiveElement)})}n.showModal(e)})},e.prototype.showModal=function(e){var t=this;jQuery("#"+this.id).modal(e?"show":"hide"),e?(setTimeout(function(){t.trapFocus()},500),k(!1)):(this.close.emit(),k(!0),setTimeout(function(){return t.setFocusOnLastPageActiveElement()},500))},e.prototype.trapFocus=function(){var e=jQuery("#"+this.id),t=e.find(".modal-content").find(":focusable"),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()))})},e.prototype.ngOnInit=function(){this.width==undefined&&(this.width="L")},e.prototype.closeOnClick=function(){this.showModal(!1)},e.prototype.setFocusOnPreviusFocusableElement=function(e){0<=e&&(0<$(this.previusFocusableElements[e]).length?this.previusFocusableElements[e].focus():this.setFocusOnPreviusFocusableElement(e-1))},e.decorators=[{type:u.Component,args:[{selector:"inail-modal",template:'<div class="modal fade {{class}} inail-modal-encapsulation"\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" [ngClass]="{\'wide\' : width==\'L\', \'exta-wide\' : width==\'XL\'}">\n <div class="modal-content">\n <div class="modal-header">\n <span class="modal-title"\n tabindex="0"\n id="{{id}}-TITOLO" [innerHTML]="titolo"></span>\n <button type="button"\n id="{{id}}_close_button"\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',encapsulation:u.ViewEncapsulation.None,styles:[".inail-modal-encapsulation .modal-dialog.wide{width:900px}.inail-modal-encapsulation .modal-dialog.exta-wide{width:1200px}.inail-modal-encapsulation .modal-dialog{max-width:100vw!important}.inail-modal-encapsulation .close:focus,.inail-modal-encapsulation .modal-title:focus{outline:#fff dotted 1px!important}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={titolo:[{type:u.Input}],close:[{type:u.Output}],show:[{type:u.Input}],width:[{type:u.Input}]},e}(S),be=function(t){function e(){var e=t.call(this)||this;return e.close=new u.EventEmitter,e.visualizzaContent=!0,e}return m(e,t),e.prototype.ngOnChanges=function(e){},e.prototype.ngOnInit=function(){w(this.titolo)&&(this.titolo="Messaggio informativo"),this.show==undefined&&(this.show=new u.EventEmitter)},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout(function(){e.visualizzaContent=0<e.modalContent.nativeElement.firstChild.childNodes.length})},e.prototype.okOnClick=function(){this.show.emit(!1)},e.decorators=[{type:u.Component,args:[{selector:"inail-alert",template:'<inail-modal [id]="id"\n [show]="show"\n [class]="class"\n [titolo]="titolo"\n [logOnConsole]="logOnConsole"\n [width]="\'M\'"\n (close)="close.emit($event)"\n (log)="log.emit($event)">\n\n <div *ngIf="!visualizzaContent" class="row">\n <p [innerHTML]="testo"></p>\n </div>\n <div #modalContent *ngIf="visualizzaContent" class="row">\n <p>\n <ng-content></ng-content>\n </p>\n </div>\n\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\n</inail-modal>\n\n\x3c!-- Implementazione precedente --\x3e\n\x3c!--<div class="modal fade {{class}}"\n [attr.id]=\'id || undefined\'\n tabindex="-1"\n role="dialog"\n (click)="$event.preventDefault()"\n data-keyboard="false" data-backdrop="static"\n [attr.aria-labelledby]="id+\'-TITOLO\'">\n <div class="vertical-alignment-helper">\n <div class="modal-dialog vertical-align-center">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button"\n id="{{id}}_close_button"\n (click)="xOnClick()"\n class="close"\n data-dismiss="modal"\n aria-label="Close">\n <span aria-hidden="true">×</span>\n </button>\n <div class="modal-title"\n id="{{id}}-TITOLO">{{titolo}}</div>\n </div>\n <div class="modal-body">\n <div *ngIf="!visualizzaContent" class="row">\n <p [innerHTML]="testo"></p>\n </div>\n <div #modalContent *ngIf="visualizzaContent" class="row">\n <p>\n <ng-content></ng-content>\n </p>\n </div>\n </div>\n <div class="modal-footer">\n <button type="button"\n (click)="okOnClick()"\n class="btn btn-primary pull-right">Ok\n </button>\n </div>\n </div>\n </div>\n </div>\n</div>--\x3e\n',encapsulation:u.ViewEncapsulation.None,styles:[".alert-footer{padding-bottom:20px!important;padding-top:35px!important}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={titolo:[{type:u.Input}],testo:[{type:u.Input}],show:[{type:u.Input}],close:[{type:u.Output}],modalContent:[{type:u.ViewChild,args:["modalContent"]}]},e}(S),ve=function(t){function e(){var e=t.call(this)||this;return e.valueChange=new u.EventEmitter,e}return m(e,t),e.prototype.ngOnChanges=function(e){e.value&&(this.previousValue=e.value.previousValue,this.normalizzaValore(),!e.value.firstChange&&this.cleanErrorOnChange&&(this.hasError=!1,this.descError=undefined))},e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){this.showPopover()&&$("#"+this.id+"-popover").popover()},e.prototype.normalizzaValore=function(){var e=this;setTimeout(function(){e.disabled||(e.min!=undefined&&e.valueValue<e.min?e.value=e.previousValue!=undefined?e.previousValue:e.min:e.max!=undefined&&e.valueValue>e.max&&(e.value=e.previousValue!=undefined?e.previousValue:e.max))})},Object.defineProperty(e.prototype,"value",{get:function(){return this.valueValue},set:function(e){this.valueValue=e,this.valueChange.emit(this.valueValue)},enumerable:!0,configurable:!0}),e.prototype.checkError=function(){return this.hasError||E(this.descError)},e.prototype.checkDescError=function(){return this.checkError()&&E(this.getDescError())},e.prototype.getDescError=function(){return this.descError},e.prototype.onKeyUp=function(){this.valueValue==undefined||this.checkDecimal()||(this.valueValue=this.previousValue,this.valueChange.emit(this.valueValue)),this.valueValue==undefined&&(this.inputElement.nativeElement.value=undefined)},e.prototype.checkDecimal=function(){if(this.numberOfDecimals==undefined)return!0;var e=String(this.valueValue).split(".");return 0<this.numberOfDecimals&&(1==e.length||e[1].length<=this.numberOfDecimals)||0==this.numberOfDecimals&&1==e.length},e.decorators=[{type:u.Component,args:[{selector:"inail-input-number",template:'<div class="form-group col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} noPaddingLeft {{class}}"\n [ngClass]="{\'has-error\': checkError()}">\n <label *ngIf="label"\n [hidden]="hiddenLabel"\n class="control-label {{labelClass}}"\n title="{{labelTitle}}"\n for="{{id}}"\n [innerHTML]="label.concat(required ? \' \'+(requiredSimbol || \'*\') : \'\')"></label>\n <ng-container *ngIf="showPopover()">\n \n <em [id]="id+\'-popover\'"\n class="fa fa-question-circle fa-lg"\n data-toggle="popover"\n title="{{popoverButtonTitle}}"\n [attr.data-content]="popoverContent"\n [attr.data-original-title]="popoverTitle">\n </em>\n </ng-container>\n <input #inputElement\n type="number"\n *ngIf="!disabled"\n id="{{id}}"\n title="{{title}}"\n [attr.max]="max"\n [attr.min]="min"\n [attr.step]="step"\n class="form-control {{inputClass}}"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="checkError() === true ? true : undefined"\n [attr.aria-describedBy]="checkDescError() ? id+\'-description-error\' : undefined"\n (keyup)="onKeyUp()"\n (keyup.enter)="enterUp.emit()"\n [value]="valueValue"\n [(ngModel)]=\'value\'>\n <input type="text"\n *ngIf="disabled"\n id="{{id}}"\n title="{{title}}"\n [disabled]="disabled"\n class="form-control disabled {{inputClass}}"\n [ngModel]=\'value\'>\n <ng-container *ngIf="checkDescError()">\n <span [id]="id+\'-description-error\'" class="msg msg-errore">\n <strong [innerHTML]="(errorPrefix===false ? \'\' : \'ERRORE: \')+getDescError()"></strong>\n </span>\n </ng-container>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e.propDecorators={max:[{type:u.Input}],min:[{type:u.Input}],step:[{type:u.Input}],defaultValue:[{type:u.Input}],numberOfDecimals:[{type:u.Input}],valueChange:[{type:u.Output}],inputElement:[{type:u.ViewChild,args:["inputElement"]}],value:[{type:u.Input}]},e}(A),ye=function(i){function e(e,t){var n=i.call(this)||this;return n.router=e,n.cdr=t,n.espandiPercorsoAutomaticamente=!0,n.select=new u.EventEmitter,n.currentElement=new u.EventEmitter,n.innerMenu=!1,n.inizializzazioneCompletata=!1,n.mostraElemento=new u.EventEmitter,n.getPropertyValue=function(e){return a.isFunction(e)?e():e},n.getItemTitle=function(e){return n.getPropertyValue(e.title)},n.getItemAriaLabel=function(e){return n.getPropertyValue(e.ariaLabel)},n.impostaUrlEffettivo=function(e){!n.disabilitaOverrideLink&&e&&n.isCurrentUrl(n.getElementLinkRegex(e))&&(e.link=n.router.url)},n.isCurrentPageElement=function(e){if(!0===e.debug)n.isCurrentUrl(n.getElementLink(e))||n.isCurrentUrl(n.getElementLinkRegex(e))||e.activeLinks!=undefined&&e.activeLinks.some(n.isCurrentUrl);return n.isCurrentUrl(n.getElementLink(e))||n.isCurrentUrl(n.getElementLinkRegex(e))||e.activeLinks!=undefined&&e.activeLinks.some(n.isCurrentUrl)},n.isCurrentUrl=function(e){return e!=undefined&&null!=n.router.url.split("?")[0].match(new RegExp("^".concat(e).concat("$"),"i"))},n.showElement=function(e){return!0===e.show||e.show==undefined||a.isFunction(e.show)&&!0===e.show()||n.isAutoShowElement(e)},n.isAutoShowElement=function(e){return e.show===we&&(n.isCurrentPageElement(e)||e.subElements&&e.subElements.some(n.isAutoShowElement))},n.isExpanded=function(e){return e&&"true"==$("#"+e.id).attr("aria-expanded")},n.isCollapsible=function(e){return e.collapsible&&n.hasSubElements(e)},n}return m(e,i),e.prototype.ngOnChanges=function(e){var t=this;this.emitDebug("MenuComponent changes:"),this.emitDebug(e),e.elements&&e.elements.currentValue&&(this.setParents(e.elements.currentValue,this.parent),this.impostaUrlEffettivi(),this.emitCurrentElement()),e.reload&&e.reload.currentValue&&e.reload.currentValue.subscribe(function(e){t.elements=[].concat(e||t.elements),t.setParents(t.elements,t.parent),t.impostaUrlEffettivi(),t.emitCurrentElement()}),e.emitCurrent&&e.emitCurrent.currentValue&&e.emitCurrent.currentValue.subscribe(function(){t.emitCurrentElement()}),e.collapse&&e.collapse.currentValue&&e.collapse.currentValue.subscribe(function(e){e==undefined?t.collassaLivello():t.collassaElemento(e)}),e.show&&e.show.currentValue&&e.show.currentValue.subscribe(function(e){e==undefined?t.espandiLivello():t.espandiPercorso(e)}),e.toggle&&e.toggle.currentValue&&e.toggle.currentValue.subscribe(function(e){e==undefined?t.toggleLivello():t.toggleElemento(e)}),e.showAll&&e.showAll.currentValue&&e.showAll.currentValue.subscribe(function(){return t.espandiTutti()}),e.toggleAll&&e.toggleAll.currentValue&&e.toggleAll.currentValue.subscribe(function(){return t.toggleTutti()})},e.prototype.ngOnInit=function(){var t=this;this.disabilitaImpostazioneParents==undefined&&(this.disabilitaImpostazioneParents=!1),this.disabilitaOverrideLink==undefined&&(this.disabilitaOverrideLink=!1),this.collapsible==undefined&&(this.collapsible=!1),!1===this.collapsible&&(this.collapsed=!1),this.collapsed==undefined&&(this.collapsed=!0===this.collapsible),this.collapsOtherEffetc==undefined&&(this.collapsOtherEffetc=!1),this.elements!=undefined&&0<this.elements.length&&this.elements.forEach(function(e){e.id==undefined&&(e.id=p.v4()),e.show==undefined&&(e.show=!0),e.collapsible==undefined&&(e.collapsible=t.collapsible),!1===e.collapsible&&(e.collapsed=!1),e.collapsed==undefined&&(e.collapsed=!0===e.collapsible),e.collapseOther==undefined&&(e.collapseOther=t.collapsOtherEffetc)}),this.inizializzazioneCompletata=!0,this.impostaUrlEffettivi(),this.emitCurrentElement(),this.router.events.pipe(o.filter(function(e){return e instanceof c.NavigationEnd})).subscribe(function(){t.impostaUrlEffettivi(),t.emitCurrentElement()})},e.prototype.ngAfterViewInit=function(){this.sottoMenu.forEach(function(e){return e.innerMenu=!0})},e.prototype.removeAriaExpanded=function(e,t){var n=document.getElementById(e);n&&setTimeout(function(){n.removeAttribute("aria-expanded")},t||50)},e.prototype.impostaUrlEffettivi=function(){this.elements&&0<this.elements.length&&this.elements.forEach(this.impostaUrlEffettivo)},e.prototype.emitCurrentElement=function(){var e=this.findCurrentElement(this.elements);e!=undefined&&(this.impostaUrlEffettivo(e),this.emitDebug("Emissione elemento menu url corrente:"),this.emitDebug(e),this.currentElement.emit(e),this.isEffettoFisarmonicaAbilitato(e)&&this.collapseOther(e))},e.prototype.findCurrentElement=function(e){var t=this,n=undefined;return e!=undefined&&0<e.length&&e.forEach(function(e){n==undefined&&e!=undefined&&t.isCurrentPageElement(e)&&(n=e)}),n},e.prototype.findElement=function(t,e){var n=this,i=undefined;return e!=undefined&&0<e.length&&e.forEach(function(e){i==undefined&&e!=undefined&&(i=e.id==t?e:n.findElement(t,e.subElements))}),i},e.prototype.isCollapsed=function(e){return e&&!0===e.collapsed},e.prototype.isActive=function(e){return this.activeElement?e.id==this.activeElement:this.isCurrentPageElement(e)},e.prototype.getElementLink=function(e){return a.isFunction(e.link)?e.link():e.link},e.prototype.getElementLinkRegex=function(e){return a.isFunction(e.linkRegex)?e.linkRegex():e.linkRegex},e.prototype.getElementLabel=function(e){return a.isFunction(e.label)?e.label():e.label},e.prototype.hasSubElements=function(e){return e&&e.subElements&&0<e.subElements.length},e.prototype.collassaLivello=function(){this.doCollapse("hide")},e.prototype.collassaElemento=function(e){this.doCollapseElement(e,"hide")},e.prototype.espandiLivello=function(){this.doCollapse("show")},e.prototype.espandiElemento=function(e){this.doCollapseElement(e,"show")},e.prototype.espandiPercorso=function(n){var i=this;this.elements&&this.elements.forEach(function(e){var t=i.findElement(n,e.subElements);(e&&e.id==n||t!=undefined)&&(i.espandiElemento(e.id),t&&i.mostraElemento.emit(n))})},e.prototype.toggleLivello=function(){this.doCollapse("toggle")},e.prototype.toggleElemento=function(e){this.doCollapseElement(e,"toggle")},e.prototype.collassaTutti=function(){this.doCollapseAll("hide")},e.prototype.espandiTutti=function(){this.doCollapseAll("show")},e.prototype.toggleTutti=function(){this.doCollapseAll("toggle")},e.prototype.doCollapse=function(e){var t=$("#"+this.id+" > li > inail-menu > ul.collapse");V(t,"collapse",e)},e.prototype.doCollapseElement=function(e,t){var n=$("#"+this.id+" > li > a#"+e);V(n,"next").call("find",">ul.collapse").call("collapse",t)},e.prototype.doCollapseAll=function(e){var t=$("#"+this.id+" .collapse");V(t,"collapse",e)},e.prototype.setParents=function(e,t){var n=this;!this.disabilitaImpostazioneParents&&e!=undefined&&0<e.length&&e.forEach(function(e){e!=undefined&&(t&&(e.parent=n.toLightElement(t)),n.setParents(e.subElements,e))})},e.prototype.toLightElement=function(e){return e!=undefined?{id:e.id,label:e.label,link:e.link,parent:this.toLightElement(e.parent)}:undefined},e.prototype.elementOnClick=function(e){e&&(e.callback&&a.isFunction(e.callback)&&e.callback(),this.isEffettoFisarmonicaAbilitato(e)&&this.collapseOther(e)),this.select.emit(e)},e.prototype.collapseOther=function(t){var n=this;t&&this.elements.forEach(function(e){e&&e.id!=t.id&&n.collassaElemento(e.id)})},e.prototype.isEffettoFisarmonicaAbilitato=function(e){return e&&!0===e.collapseOther&&e.subElements!=undefined&&0<e.subElements.length},e.prototype.forwardCurrent=function(e){e&&(this.currentElement.emit(e),!1===this.innerMenu&&!0===this.espandiPercorsoAutomaticamente&&this.espandiPercorso(e.id))},e.prototype.onKeyupSpace=function(e){$(e.target).click()},e.prototype.itemOnArrowDown=function(){var t=this.focusableItems,e=t.filter(function(e){return e>t.index(document.activeElement)}).first();e&&e.focus()},e.prototype.itemOnArrowUp=function(){var t=this.focusableItems,e=t.filter(function(e){return e<t.index(document.activeElement)}).last();e&&e.focus()},Object.defineProperty(e.prototype,"focusableItems",{get:function(){return window.$("body").find('ul.inail-menu-style-encapsulation > li > a:not([tabindex="-1"])')},enumerable:!0,configurable:!0}),e.decorators=[{type:u.Component,args:[{selector:"inail-menu",template:'<ng-container *ngIf="true">\n <ul id="{{id}}"\n *ngIf="inizializzazioneCompletata"\n [attr.role]="\'menu\'"\n class="inail-menu-style-encapsulation {{menuClass}}">\n\n <ng-container *ngFor="let element of elements">\n\n <li *ngIf="showElement(element)"\n [attr.role]="element.link ? \'menuitem\' : undefined"\n [ngClass]="{selected: isActive(element)}"\n class="livello_1">\n <a *ngIf="element.link"\n [id]="element.id"\n [attr.title]="getItemTitle(element)"\n [attr.aria-label]="getItemAriaLabel(element)"\n tabindex="0"\n [routerLink]="getElementLink(element)"\n [queryParams]="element.queryParams"\n [innerHTML]="getElementLabel(element)"\n (click)="elementOnClick(element)"\n (keyup.arrowUp)="itemOnArrowUp()"\n (keyup.arrowDown)="itemOnArrowDown()"\n (keyup.space)="onKeyupSpace($event)"\n [attr.data-toggle]="isCollapsible(element) ? \'collapse\' : undefined"\n [attr.data-target]="isCollapsible(element) ? \'#\'+element.id+\'-items\' : undefined"\n [attr.aria-expanded]="isCollapsible(element) ? !element.collapsed : undefined">\n </a>\n <a *ngIf="!element.link"\n [id]="element.id"\n [attr.title]="getItemTitle(element)"\n [attr.aria-label]="getItemAriaLabel(element)"\n tabindex="0"\n role="button"\n [innerHTML]="getElementLabel(element)"\n (click)="elementOnClick(element)"\n (keyup.arrowUp)="itemOnArrowUp()"\n (keyup.arrowDown)="itemOnArrowDown()"\n (keyup.enter)="toggleElemento(element.id)"\n (keyup.space)="onKeyupSpace($event)"\n [attr.data-toggle]="isCollapsible(element) ? \'collapse\' : undefined"\n [attr.data-target]="isCollapsible(element) ? \'#\'+element.id+\'-items\' : undefined"\n [attr.aria-expanded]="isCollapsible(element) ? !element.collapsed : undefined">\n </a>\n <p *comment>\n Attributi rimossi:\n [attr.aria-haspopup]="isCollapsible(element) ? element.collapsible ? \'true\' : \'false\' : undefined"\n [attr.aria-controls]="isCollapsible(element) ? element.id+\'-items\' : undefined"\n </p>\n <p *comment>\n Mettondolo si ha una anomalia con Jaws:\n [title]="(isCollapsible(element)) ? (\'Clicca per \' + (!isExpanded(element) ? \'espandere\' : \'chiudere\') + \' la voce di menù\') : undefined"\n </p>\n <p *comment>\n L\'attributo aria-expanded viene impostato inizialmente se l\'elemento e\' espandibile.\n Dopodiche\' il suo valore viene modificato direttamente\n dalla libreria bootstrap che si occupa di gestire gli effetti di collapsing.\n </p>\n <p *comment>\n Per problemi di "accessibilita!!" viene sostituito\n [attr.aria-label]="isCollapsible(element) ? element.collapsible ? \'Espande/chiude la voce di menù: \'+getElementLabel(element) : \'\' : undefined"\n con\n [attr.aria-haspopup]="isCollapsible(element) ? element.collapsible ? \'true\' : \'false\' : undefined"\n </p>\n <inail-menu *ngIf="hasSubElements(element)"\n [id]="element.id+\'-items\'"\n [activeElement]="activeElement"\n [menuClass]="element.collapsible ? \'livello_2\'.concat(isCollapsed(element) ? \' collapse\' : \' collapse in\') : \'livello_2\'"\n [elements]="element.subElements"\n [emitCurrent]="emitCurrent"\n [disabilitaImpostazioneParents]="true"\n [parent]="element"\n [collapsible]="collapsible"\n [collapsOtherEffetc]="collapsOtherEffetc"\n (select)="select.emit($event)"\n [collapse]="collapse"\n [toggle]="toggle"\n [show]="mostraElemento"\n (currentElement)="forwardCurrent($event)">\n </inail-menu>\n </li>\n </ng-container>\n </ul>\n</ng-container>\n\n<ng-container *ngIf="false">\n <ul id="{{id}}"\n *ngIf="inizializzazioneCompletata"\n role="menu"\n class="inail-menu-style-encapsulation {{menuClass}}">\n\n <ng-container *ngFor="let element of elements">\n\n <li *ngIf="showElement(element)"\n [ngClass]="{selected: isActive(element)}"\n class="livello_1">\n <a *ngIf="element.link"\n [id]="element.id"\n [routerLink]="getElementLink(element)"\n [queryParams]="element.queryParams"\n [innerHTML]="getElementLabel(element)"\n (click)="elementOnClick(element)"\n [attr.data-toggle]="element.collapsible && hasSubElements(element) ? \'collapse\' : undefined"\n [attr.data-target]="element.collapsible && hasSubElements(element) ? \'#\'+element.id+\'-items\' : undefined"\n [attr.aria-controls]="element.collapsible && hasSubElements(element) ? element.id+\'-items\' : undefined"\n [attr.aria-haspopup]="element.collapsible && hasSubElements(element) ? element.collapsible ? \'true\' : \'false\' : undefined"\n [attr.aria-expanded]="element.collapsible && hasSubElements(element) ? !element.collapsed : undefined">\n </a>\n <a *ngIf="!element.link"\n [id]="element.id"\n href="javascript:void(0)"\n role="button"\n [innerHTML]="getElementLabel(element)"\n (click)="elementOnClick(element)"\n [attr.data-toggle]="element.collapsible && hasSubElements(element) ? \'collapse\' : undefined"\n [attr.data-target]="element.collapsible && hasSubElements(element) ? \'#\'+element.id+\'-items\' : undefined"\n [attr.aria-controls]="element.collapsible && hasSubElements(element) ? element.id+\'-items\' : undefined"\n [attr.aria-haspopup]="element.collapsible && hasSubElements(element) ? element.collapsible ? \'true\' : \'false\' : undefined"\n [attr.aria-expanded]="element.collapsible && hasSubElements(element) ? !element.collapsed : undefined">\n </a>\n <p *comment>\n L\'attributo aria-expanded viene impostato inizialmente se l\'elemento e\' espandibile.\n Dopodiche\' il suo valore viene modificato direttamente\n dalla libreria bootstrap che si occupa di gestire gli effetti di collapsing.\n </p>\n <p *comment>\n Per problemi di "accessibilita!!" viene sostituito\n [attr.aria-label]="element.collapsible && hasSubElements(element) ? element.collapsible ? \'Espande/chiude la voce di menù: \'+getElementLabel(element) : \'\' : undefined"\n con\n [attr.aria-haspopup]="element.collapsible && hasSubElements(element) ? element.collapsible ? \'true\' : \'false\' : undefined"\n </p>\n <inail-menu *ngIf="hasSubElements(element)"\n [id]="element.id+\'-items\'"\n [activeElement]="activeElement"\n [menuClass]="element.collapsible ? \'livello_2\'.concat(isCollapsed(element) ? \' collapse\' : \' collapse in\') : \'livello_2\'"\n [elements]="element.subElements"\n [emitCurrent]="emitCurrent"\n [disabilitaImpostazioneParents]="true"\n [parent]="element"\n [collapsible]="collapsible"\n [collapsOtherEffetc]="collapsOtherEffetc"\n (select)="select.emit($event)"\n [collapse]="collapse"\n [toggle]="toggle"\n [show]="mostraElemento"\n (currentElement)="forwardCurrent($event)">\n </inail-menu>\n </li>\n </ng-container>\n </ul>\n</ng-container>\n\n\n',encapsulation:u.ViewEncapsulation.None,styles:["ul.inail-menu-style-encapsulation{padding:0 10px!important}ul.inail-menu-style-encapsulation ul{padding:0!important}"]}]}],e.ctorParameters=function(){return[{type:c.Router},{type:u.ChangeDetectorRef}]},e.propDecorators={id:[{type:u.Input}],activeElement:[{type:u.Input}],reload:[{type:u.Input}],emitCurrent:[{type:u.Input}],collapse:[{type:u.Input}],show:[{type:u.Input}],toggle:[{type:u.Input}],showAll:[{type:u.Input}],toggleAll:[{type:u.Input}],elements:[{type:u.Input}],parent:[{type:u.Input}],disabilitaImpostazioneParents:[{type:u.Input}],collapsOtherEffetc:[{type:u.Input}],collapsible:[{type:u.Input}],collapsed:[{type:u.Input}],espandiPercorsoAutomaticamente:[{type:u.Input}],menuClass:[{type:u.Input}],select:[{type:u.Output}],currentElement:[{type:u.Output}],sottoMenu:[{type:u.ViewChildren,args:[e]}]},e}(T),we="auto",Ee=function zt(){},Ie="stylesheet",Ce="screen",ke="text/css",ze="text/javascript",xe="/assets/app/webkit-addon/1.0.0/static_Inail",De=[{href:"/css/bootstrap.css",rel:Ie,type:ke,media:Ce,assetUrl:xe},{href:"/css/foglia.css",rel:Ie,type:ke,media:Ce},{href:"/css/custom.css",rel:Ie,type:ke,media:Ce,assetUrl:xe},{href:"/css/form.css",rel:Ie,type:ke,media:Ce},{href:"/css/font-awesome.min.css",rel:Ie,type:ke,media:Ce,assetUrl:xe+"/font-awesome-4.3.0"},{href:"/js/datepicker/bootstrap-datepicker3.standalone.min.css",rel:Ie,type:ke,media:Ce},{href:"/css/home_sezione.css",rel:Ie,type:ke,media:Ce},{href:"/css/servizi.css",rel:Ie,type:ke,media:Ce},{href:"/css/intranet.css",rel:Ie,type:ke,media:Ce},{href:"/css/jquery-ui.css",rel:Ie,type:ke,media:Ce,assetUrl:xe},{href:"/css/print.css",rel:Ie,type:ke,media:"print"},{href:"/css/print_intranet.css",rel:Ie,type:ke,media:"print"},{href:"/css/custom-webkit.css",rel:Ie,type:ke,media:Ce},{href:"/css/slick.css",rel:Ie,type:ke,media:Ce}],Te=[{src:"/js/modernizr.js",type:ze,assetUrl:xe},{src:"/js/jquery-1.11.1.js",type:ze,assetUrl:xe},{src:"/js/jquery-ui.js",type:ze,assetUrl:xe},{src:"/js/bootstrap.min.js",type:ze,assetUrl:xe},{src:"/js/datepicker/bootstrap-datepicker.js",type:ze,assetUrl:xe},{src:"/js/datepicker/bootstrap-datepicker.it.min.js",type:ze,assetUrl:xe},{src:"/js/main.js",type:ze},{src:"/js/print.js",type:ze},{src:"/js/spid-sp-access-button.min.js",type:ze},{src:"/js/jquery.rwdImageMaps.js",type:ze},{src:"/js/custom-webkit.js",type:ze},{src:"/js/combobox.js",type:ze},{src:"/js/slick.js",type:ze}],Oe="/static",Se="/static_intra",Pe="validation-btn",Ve=function(t){function e(){var e=t.call(this)||this;return e.validationBtnClass=Pe,e.onclick=new u.EventEmitter,e.visualizzaContent=!0,e}return m(e,t),e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout(function(){e.visualizzaContent=0<e.buttonContent.nativeElement.childNodes.length})},e.prototype.onClick=function(e){this.onclick.emit(e)},e.decorators=[{type:u.Component,args:[{selector:"inail-button",template:'<button [type]="submit ? \'submit\' : \'button\'"\n id="{{id}}"\n title="{{title}}"\n [attr.name]="name"\n [disabled]="disabled"\n (click)="onClick($event)"\n class="btn {{btnLink ? \'btn-link\' : \'btn-primary\'}} {{class}} inail-button"\n [ngClass]="{\'btn-success\': btnSuccess}">\n <span *ngIf="angleLeft" class=\'fa left fa-angle-left\'></span>\n <span *ngIf="iconLeft" class=\'fa {{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 {{iconRight}}\'></span>\n <span *ngIf="angleRight" class=\'fa fa-angle-right right\'></span>\n</button>\n',encapsulation:u.ViewEncapsulation.None,styles:[".inail-button:focus{outline-color:#fff!important}.inail-button.btn-link:focus{outline-color:#106cdb!important}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={btnSuccess:[{type:u.Input}],btnLink:[{type:u.Input}],submit:[{type:u.Input}],angleRight:[{type:u.Input}],angleLeft:[{type:u.Input}],iconLeft:[{type:u.Input}],iconRight:[{type:u.Input}],onclick:[{type:u.Output}],buttonContent:[{type:u.ViewChild,args:["buttonContent"]}]},e}(A),Le=function(r){function e(e,t,n,i){var a=r.call(this)||this;return a.renderer=e,a.http=t,a._elementRef=n,a.router=i,a.breadcrumbEsterno=!0,a.inizializzazioneTerminata=!1,a}return m(e,r),e.prototype.onClick=function(e){this.config.focusOnFirstError&&this.isSubmitButton(e)&&(this.log.emit({level:D.DEBUG,message:"Submit button clicked"}),Re(this.config.scrollToFirstError))},e.prototype.isSubmitButton=function(e){return e&&("BUTTON"==e.nodeName&&e.attributes&&e.attributes.getNamedItem("type")&&"submit"===e.attributes.getNamedItem("type").nodeValue||this.isSubmitButton(e.parentElement))},e.prototype.isValidationButton=function(e){return e&&("BUTTON"==e.nodeName&&this.hasClassValidationBtn(e)||this.isValidationButton(e.parentElement))},e.prototype.hasClassValidationBtn=function(e){return e&&e.classList&&e.classList.contains(Pe)},e.prototype.ngOnInit=function(){this.init()},e.prototype.init=function(){return b(this,void 0,void 0,function(){return v(this,function(e){switch(e.label){case 0:return this.removeNgVersion(this._elementRef.nativeElement),this.gestioneEventiFineNavigazione(),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:e.sent(),e.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},e.label=3;case 3:return!0!==this.config.caricamentoDinamicoRisorseEsterne?[3,5]:[4,this.loadRisorseEsterne(this.externalResources||De,"link")];case 4:e.sent(),e.label=5;case 5:return!0!==this.config.caricamentoDinamicoScriptEsterni?[3,7]:[4,this.loadRisorseEsterne(this.externalScripts||Te,"script")];case 6:e.sent(),e.label=7;case 7:return this.inizializzazioneTerminata=!0,[2]}})})},e.prototype.removeNgVersion=function(e){e&&(e.hasAttribute&&e.hasAttribute("ng-version")?e.removeAttribute("ng-version"):this.removeNgVersion(e.parentElement))},e.prototype.loadRisorseEsterne=function(i,a){return b(this,void 0,void 0,function(){var t,n=this;return v(this,function(e){switch(e.label){case 0:switch(E(this.config.cdnEndpoint)&&i.forEach(function(e){return n.impostaPathRisorsa2(e,a)}),t=[],i.forEach(function(e){return t.push({loaded:!1,resource:e})}),a){case"link":return[3,1];case"script":return[3,3]}return[3,5];case 1:return[4,this.caricaRisorseEsterne(t)];case 2:return e.sent(),[3,5];case 3:return[4,this.caricaScriptEsterni(t)];case 4:return e.sent(),[3,5];case 5:return[2]}})})},e.prototype.impostaPathRisorsa=function(e,t){var n="";switch(C(e.assetUrl)||(n=e.cdnEndpoint||this.config.cdnEndpoint||""),n=n.concat(e.assetUrl||this.config.assetsUrl||(this.config.intranet?Se:Oe)),t){case"link":C(e.href)||(e.href=""+n+e.href);break;case"script":C(e.src)||(e.src=""+n+e.src)}},e.prototype.impostaPathRisorsa2=function(e,t){var n;switch(t){case"link":n="href";break;case"script":n="src"}e.assetUrl=C(e[n])?"":e.assetUrl||this.config.assetsUrl||(this.config.intranet?Se:Oe),e.cdnEndpoint=C(e.assetUrl)?"":e.cdnEndpoint||this.config.cdnEndpoint||""},e.prototype.caricaRisorseEsterne=function(i,a){return void 0===a&&(a=0),b(this,void 0,void 0,function(){var t,n;return v(this,function(e){switch(e.label){case 0:if(!(a<i.length))return[3,6];e.label=1;case 1:return e.trys.push([1,3,,4]),this.emitDebug("Caricamento risorsa esterna:"),this.emitDebug(i[a]),[4,this.creaElementoRisorsaEsterna(i[a],"link")];case 2:return t=e.sent(),this.emitDebug("...caricamento risorsa esterna completato"),this.emitDebug(t),[3,4];case 3:return n=e.sent(),this.emitError("Errore caricamento risorsa esterna!"),this.emitError(n),[3,4];case 4:return[4,this.caricaRisorseEsterne(i,a+1)];case 5:e.sent(),e.label=6;case 6:return[2]}})})},e.prototype.caricaScriptEsterni=function(n,i){return void 0===i&&(i=0),b(this,void 0,void 0,function(){var t=this;return v(this,function(e){return i<n.length&&setTimeout(function(){t.emitDebug("Caricamento script esterno:"),t.emitDebug(n[i]),t.creaElementoRisorsaEsterna(n[i],"script").then(function(e){t.emitDebug("...caricamento script esterno completato"),t.emitDebug(e)})["catch"](function(e){t.emitError("Errore caricamento script esterno!"),t.emitError(e)})["finally"](function(){return t.caricaScriptEsterni(n,i+1)})},this.config.scriptLoadingDeelay||300),[2]})})},e.prototype.creaElementoRisorsaEsterna=function(a,r){return b(this,void 0,void 0,function(){return v(this,function(e){return[2,new Promise(function(e,t){var n=a.resource.src||a.resource.href;if(a.loaded)e({resource:n,loaded:!0,status:"Already Loaded"});else{var i;switch(r){case"script":i=Fe(a.resource);break;case"link":i=Ue(a.resource)}i.readyState?i.onreadystatechange=function(){"loaded"!==i.readyState&&"complete"!==i.readyState||(i.onreadystatechange=null,a.loaded=!0,e({resource:n,loaded:!0,status:"Loaded"}))}:i.onload=function(){a.loaded=!0,e({resource:n,loaded:!0,status:"Loaded"})},i.onerror=function(e){return t({resource:a.resource,loaded:!1,status:"Loaded"})},document.head.appendChild(i)}})]})})},e.prototype.ngAfterViewInit=function(){var t=this;setTimeout(function(){t.breadcrumbEsterno=!!t.breadcrumbContainer&&0<t.breadcrumbContainer.nativeElement.childElementCount}),this.menuList&&0<this.menuList.length&&this.menuList.forEach(function(e){e.currentElement.subscribe(function(e){e!=undefined&&(t.paginaCorrente=t.toPaginaApplicativa(e))})})},e.prototype.gestioneEventiFineNavigazione=function(){},e.prototype.toPaginaApplicativa=function(e){return e!=undefined?{titolo:this.getElementLabel(e),url:this.getElementLink(e),parent:this.toPaginaApplicativa(e.parent)}:undefined},e.prototype.getElementLink=function(e){return a.isFunction(e.link)?e.link():e.link},e.prototype.getElementLabel=function(e){return a.isFunction(e.label)?e.label():e.label},e.prototype.recuperaCdnEnpoint=function(){return b(this,void 0,void 0,function(){var t,n,i;return v(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),t=(C(this.config.apiGatewayUrl)?"":this.config.domainUrl||"")+(this.config.apiGatewayUrl||"/api")+"/.well-known/inail-configuration",[4,this.http.get(t,{withCredentials:!0}).toPromise()];case 1:return n=e.sent(),this.config.cdnEndpoint=n.cdn_endpoint,[3,3];case 2:return i=e.sent(),this.emitError("Errore nel recupero del cdnEnpoint da api gateway"),this.emitError(i),[3,3];case 3:return[2]}})})},e.decorators=[{type:u.Component,args:[{selector:"inail-layout",template:'<inail-loader [show]="showLoader"></inail-loader>\n\x3c!--<div *ngIf="!inizializzazioneTerminata" class="please-wait">\n <div class="app-name">Servizio Sociale Informatizzato</div>\n <div>Caricamento in corso ...</div>\n</div>--\x3e\n<ng-content *ngIf="!inizializzazioneTerminata"\n select="[please-wait]">\n</ng-content>\n<div class="container"\n [hidden]="!inizializzazioneTerminata"\n [ngClass]="{\'wide\' : config && config.containerWide}">\n\n <header id="inail-header"\n *ngIf="inizializzazioneTerminata"\n [config]="headerConfig"\n [infoDipendente]="this.infoDipendente"\n [logOnConsole]="this.logOnConsole"\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" [paginaCorrente]="paginaCorrente"></inail-breadcrumb>\n </div>\n\n <inail-trigger-slider-menu-button></inail-trigger-slider-menu-button>\n\n <div class="row">\n\n <inail-navigazione-secondaria>\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',encapsulation:u.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}"]}]}],e.ctorParameters=function(){return[{type:u.Renderer2},{type:l.HttpClient},{type:u.ElementRef},{type:c.Router}]},e.propDecorators={showLoader:[{type:u.Input}],config:[{type:u.Input}],infoDipendente:[{type:u.Input}],externalResources:[{type:u.Input}],externalScripts:[{type:u.Input}],breadcrumbContainer:[{type:u.ViewChild,args:["breadcrumbContainer"]}],menuList:[{type:u.ContentChildren,args:[ye]}],onClick:[{type:u.HostListener,args:["click",["$event.target"]]}]},e}(T),Ae=function(e){setTimeout(function(){window.scroll({top:e,left:0,behavior:"smooth"})})},Ue=function(e){var t=document.createElement("link"),n=e.cdnEndpoint+e.assetUrl+e.href;return Me(t,"rel",e.rel),Me(t,"type",e.type),Me(t,"href",n),Me(t,"media",e.media),Me(t,"hreflang",e.hreflang),t},Fe=function(e){var t=document.createElement("script"),n=e.cdnEndpoint+e.assetUrl+e.src;return Me(t,"src",n),Me(t,"type",e.type),Me(t,"charset",e.charset),!0===e.async&&(t.async=!0),!0===e.defer&&(t.defer=!0),t},Me=function(e,t,n){e!=undefined&&n!=undefined&&(e[t]=n)},Re=function(e){Ne(e)},Ne=function(e){0<$(".modal.fade.in").not("."+F).length?He():je(e)},He=function(){setTimeout(function(){var e=z($(".modal-body .has-error"))[0],t=z($(".modal-body .feedback-box-error"))[0];e?e.focus():t&&t.focus()},100)},je=function(t){setTimeout(function(){var e=z($(".has-error,.feedback-box-error").not(".global-feedback"))[0];e&&$(e).is(":visible")?(!0===t&&function(t){setTimeout(function(){var e=document.getElementById(t);e&&Ae(e.getBoundingClientRect().top+window.pageYOffset-50)})}(e.id),setTimeout(function(){e&&e.focus()},500)):_e(t)},100)},_e=function(e){Be(".feedback-box-error",e)},Be=function(n,i){setTimeout(function(){var e=$(n);if(e){i&&e[0]!=undefined&&Ae(e[0].id);var t=e.find(".feedback-focusable")[0];t!=undefined&&setTimeout(function(){t.focus()},500)}},100)},$e=function(){function e(){}return e.prototype.ngOnInit=function(){},e.decorators=[{type:u.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',encapsulation:u.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%}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={show:[{type:u.Input}]},e}(),qe=function(e){function t(){return e.call(this)||this}return m(t,e),t.prototype.ngAfterViewInit=function(){this.logoInail.nativeElement.focus()},t.prototype.ngOnInit=function(){this.config||(this.config={clientId:""}),this.config.domainUrl||(this.config.domainUrl=""),this.config.cdnEndpoint==undefined&&(this.config.cdnEndpoint=""),this.config.assetsUrl==undefined&&(this.config.assetsUrl=this.config.intranet?Se:Oe),C(this.config.assetsUrl)||this.config.cdnEndpoint==undefined||(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}},t.decorators=[{type:u.Component,args:[{selector:'header[id="inail-header"]',template:'<h1>INAIL - Istituto Nazionale per l\'Assicurazione contro gli Infortuni sul Lavoro</h1>\n<a 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 [config]="configurazioniNavigazioneUtente"\n [infoDipendente]="this.infoDipendente"\n [logOnConsole]="this.logOnConsole"\n (log)="emit($event)">\n</inail-navigazione-utente>\n',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],t.ctorParameters=function(){return[]},t.propDecorators={config:[{type:u.Input}],infoDipendente:[{type:u.Input}],logoInail:[{type:u.ViewChild,args:["logoInail"]}]},t}(T),Ge=function(){function e(){}return e.prototype.ngOnInit=function(){},e.decorators=[{type:u.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',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e}(),We=function(){function e(){}return e.prototype.ngOnInit=function(){},e.prototype.open=function(){x()},e.decorators=[{type:u.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:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e}(),Ye=function(i){function e(e,t){var n=i.call(this)||this;return n.sanitizer=e,n.http=t,n.cdnEndpoint="",n}return m(e,i),e.prototype.ngOnChanges=function(e){this.emitDebug("FooterComponent changes:"),this.emitDebug(e),e&&e.url&&e.url.currentValue&&!e.html.currentValue&&(e.url.firstChange&&this.emitDebug("Inizializzazione Footer"),this.recupera())},e.prototype.ngOnInit=function(){this.domainUrl||(this.domainUrl=""),this.assetsUrl||(this.assetsUrl=Oe),this.cdnEndpoint&&!C(this.assetsUrl)||(this.cdnEndpoint=""),this.html?this.innerHtml=this.sanitizer.bypassSecurityTrustHtml(this.html):this.url||(this.emitDebug("Inizializzazione Footer"),this.emitDebug("Url footer non specificato"),this.url=this.domainUrl+"/cs/internet/footer.html",this.recupera())},e.prototype.recupera=function(){var t=this;this.emitDebug("Recupero Footer da: "+this.url),this.http.get(this.url,{responseType:"text"}).subscribe(function(e){t.innerHtml=t.sanitizer.bypassSecurityTrustHtml(e),t.emitDebug("Footer recuperato!")},function(e){t.innerHtml=undefined,t.emitError("Errore nel recupero del Footer"),t.emitError(e),t.emitWarn("Visualizzazione Footer di default")},function(){t.emitDebug("Footer inizializzato!")})},e.decorators=[{type:u.Component,args:[{selector:"inail-footer",template:'<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="{{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',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[{type:s.DomSanitizer},{type:l.HttpClient}]},e.propDecorators={url:[{type:u.Input}],domainUrl:[{type:u.Input}],cdnEndpoint:[{type:u.Input}],assetsUrl:[{type:u.Input}],html:[{type:u.Input}]},e}(T),Ke=function(i){function e(e,t){var n=i.call(this)||this;return n.sanitizer=e,n.http=t,n.domainUrl="",n}return m(e,i),e.prototype.ngOnChanges=function(e){e&&e.url&&e.url.currentValue&&!e.html.currentValue&&(e.url.firstChange&&this.emitDebug("Inizializzazione Navigazione principale"),this.recupera())},e.prototype.ngOnInit=function(){this.logoutUrl||(this.logoutUrl=this.domainUrl+"/cs/LogoutUser?excludedCookies=SMSESSION"),this.html?this.innerHtml=this.sanitizer.bypassSecurityTrustHtml(this.html):this.url||(this.emitDebug("Inizializzazione Navigazione principale"),this.emitDebug("Url Navigazione principale non specificato"),this.url=this.domainUrl+"/cs/internet/header.html",this.recupera())},e.prototype.recupera=function(){var t=this;this.emitDebug("Recupero Navigazione principale da: "+this.url),this.http.get(this.url,{responseType:"text"}).subscribe(function(e){e=e.replace("#logout",t.logoutUrl),t.innerHtml=t.sanitizer.bypassSecurityTrustHtml(e),t.emitDebug("Navigazione principale recuperata!")},function(e){t.innerHtml=undefined,t.emitError("Errore nel recupero della Navigazione principale"),t.emitError(e),t.emitWarn("Visualizzazione Navigazione principale di default")},function(){t.emitDebug("Navigazione principale inizializzata!")})},e.decorators=[{type:u.Component,args:[{selector:"inail-navigazione-principale",template:'<div *ngIf="this.innerHtml"\n [innerHtml]="this.innerHtml"></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</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',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[{type:s.DomSanitizer},{type:l.HttpClient}]},e.propDecorators={url:[{type:u.Input}],domainUrl:[{type:u.Input}],logoutUrl:[{type:u.Input}],html:[{type:u.Input}]},e}(T),Qe=function(i){function e(e,t){var n=i.call(this)||this;return n.http=e,n.sanitizer=t,n}return m(e,i),e.prototype.ngOnChanges=function(e){e&&e.infoDipendente&&e.infoDipendente.currentValue&&(this._immagineProfilo=e.infoDipendente.currentValue.foto?this.sanitizer.bypassSecurityTrustUrl("data:image/png;base64,"+this.infoDipendente.foto):this.urlFotoUtenteAnonimo)},e.prototype.ngOnInit=function(){this.init()},e.prototype.init=function(){return b(this,void 0,void 0,function(){var t,n;return v(this,function(e){switch(e.label){case 0:return this.config||(this.config={}),this.config.domainUrl||(this.config.domainUrl=""),this.config.cdnEndpoint==undefined&&(this.config.cdnEndpoint=""),this.config.assetsUrl==undefined&&(this.config.assetsUrl=this.config.intranet?Se:Oe),C(this.config.assetsUrl)||this.config.cdnEndpoint==undefined||(this.config.assetsUrl=this.config.cdnEndpoint+this.config.assetsUrl),this.config.apiGatewayUrl||(this.config.apiGatewayUrl=this.config.domainUrl+"/api"),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(t=e.sent())&&(this.infoDipendente.nome=t.nome,this.infoDipendente.cognome=t.cognome),n=this.infoDipendente,[4,this.recuperaFotoDipendente()];case 2:n.foto=e.sent(),e.label=3;case 3:return this._immagineProfilo=this.infoDipendente.foto?this.sanitizer.bypassSecurityTrustUrl("data:image/png;base64,"+this.infoDipendente.foto):this.urlFotoUtenteAnonimo,[2]}})})},Object.defineProperty(e.prototype,"immagineProfilo",{get:function(){return this._immagineProfilo||this.urlFotoUtenteAnonimo},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"urlFotoUtenteAnonimo",{get:function(){return this.config.assetsUrl+"/img/anonimo.jpg "},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"assetUrl",{get:function(){return(C(this.config.assetsUrl)?"":this.config.cdnEndpoint)+(this.config.assetsUrl||(this.config.intranet?Se:Oe))},enumerable:!0,configurable:!0}),e.prototype.getMatricolaDipendente=function(){return b(this,void 0,void 0,function(){var t;return v(this,function(e){switch(e.label){case 0:return w(this.infoDipendente.matricola)?(t=this.infoDipendente,[4,this.recuperaMatricolaDipendente()]):[3,2];case 1:t.matricola=e.sent(),e.label=2;case 2:return[2,this.infoDipendente.matricola]}})})},e.prototype.recuperaMatricolaDipendente=function(){return b(this,void 0,void 0,function(){var t,n,i,a;return v(this,function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),n=this.config.apiGatewayUrl+"/checksession",this.emitDebug("Recupero matricola dipendente per Navigazione utente da "+n),[4,this.get(n).toPromise()];case 1:return(i=e.sent())&&i.result&&(t=i.User),[3,3];case 2:return a=e.sent(),this.emitError("Errore nel recupero della matricola dipendente"),this.emitError(a),[3,3];case 3:return[2,t]}})})},e.prototype.recuperaDatiDipendente=function(){return b(this,void 0,void 0,function(){var t,n,i,a,r;return v(this,function(e){switch(e.label){case 0:return[4,this.getMatricolaDipendente()];case 1:t=e.sent(),n=this.config.apiGatewayUrl+"/au/dipendente/estrai-dati-dipendente?matricola="+t,e.label=2;case 2:return e.trys.push([2,4,,5]),this.emitDebug("Recupero dati dipendente per Navigazione utente da "+n),[4,this.get(n).toPromise()];case 3:return(a=e.sent())&&a.dipendente&&0!=a.dipendente.length&&a.dipendente[0]?i=a.dipendente[0]:this.emitError("Dipendente non trovato"),[3,5];case 4:return r=e.sent(),this.emitError("Errore nel recupero dei dati dipendente"),this.emitError(r),[3,5];case 5:return[2,i]}})})},e.prototype.recuperaFotoDipendente=function(){return b(this,void 0,void 0,function(){var t,n,i,a,r;return v(this,function(e){switch(e.label){case 0:return[4,this.getMatricolaDipendente()];case 1:t=e.sent(),n=this.config.apiGatewayUrl+"/au/dipendente/estrai-foto-dipendente?matricola="+t,e.label=2;case 2:return e.trys.push([2,4,,5]),this.emitDebug("Recupero foto dipendente per Navigazione utente da "+n),[4,this.get(n).toPromise()];case 3:return(a=e.sent())&&a.fotoDipendente&&0!=a.fotoDipendente.length&&a.fotoDipendente[0]?i=a.fotoDipendente[0].foto:this.emitError("Foto dipendente non trovata"),[3,5];case 4:return r=e.sent(),this.emitError("Errore nel recupero della foto dipendente"),this.emitError(r),[3,5];case 5:return[2,i]}})})},e.prototype.get=function(e){var t=this,n=(new l.HttpHeaders).set("client_id",this.config.clientId);return this.http.get(e,{headers:n,withCredentials:!0}).pipe(o.tap(function(e){t.emitDebug("Risposta richiesta get per navigazione utente:"),t.emitDebug(e)}))},e.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"},e.decorators=[{type:u.Component,args:[{selector:"inail-navigazione-utente",template:'<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" 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 data-toggle="collapse"\n data-target="#menucercautente">\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\n</div>\n\n\x3c!-- Menu cerca utente --\x3e\n<div *ngIf="config.visualizzaMenuCercaUtente === true"\n class="row collapse"\n id="menucercautente"\n role="search"\n aria-expanded="true">\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 [(ngModel)]="testoRicercaUtente">\n <button type="submit" class="btn btn-default">Cerca</button>\n </p>\n </form>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[{type:l.HttpClient},{type:s.DomSanitizer}]},e.propDecorators={config:[{type:u.Input}],infoDipendente:[{type:u.Input}]},e}(T),Je=function(i){function e(e,t){var n=i.call(this)||this;return n.sanitizer=e,n.http=t,n}return m(e,i),e.prototype.ngOnChanges=function(e){e&&e.url&&e.url.currentValue&&!e.html.currentValue&&(e.url.firstChange&&this.emitDebug("Inizializzazione Menu intranet"),this.recupera())},e.prototype.ngOnInit=function(){this.domainUrl||(this.domainUrl=""),this.html?this.innerHtml=this.sanitizer.bypassSecurityTrustHtml(this.html):this.url||(this.emitDebug("Inizializzazione Menu intranet"),this.emitDebug("Url Menu intranet non specificato"),this.url=this.domainUrl+"/cs/internet/headersecondariointranet.html",this.recupera())},e.prototype.recupera=function(){var t=this;this.emitDebug("Recupero menu intranet da: "+this.url),this.http.get(this.url,{responseType:"text"}).subscribe(function(e){t.innerHtml=t.sanitizer.bypassSecurityTrustHtml(e),t.emitDebug("Menu intranet recuperato!")},function(e){t.innerHtml=undefined,t.emitError("Errore nel recupero del Menu intranet"),t.emitError(e),t.emitWarn("Visualizzazione Menu intranet di default")},function(){t.emitDebug("Menu intranet inizializzato!")})},e.decorators=[{type:u.Component,args:[{selector:"inail-menu-intranet",template:'<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 data-toggle="collapse"\n data-target="#menusecondarioelenco">\n <span class="sr-only">Menu\n </span>\n </p>\n </div>\n <div id="menusecondarioelenco" class="collapse navbar-collapse">\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',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[{type:s.DomSanitizer},{type:l.HttpClient}]},e.propDecorators={url:[{type:u.Input}],domainUrl:[{type:u.Input}],html:[{type:u.Input}]},e}(T),Ze=function(){function e(){this.visualizzaSidebarInferiore=!0}return e.prototype.ngOnInit=function(){},e.prototype.close=function(){x()},e.prototype.visualizza=function(){return 0<this.sidebarInferiore.nativeElement.childeNodes.length},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout(function(){e.visualizzaSidebarInferiore=0<e.sidebarInferiore.nativeElement.childElementCount})},e.decorators=[{type:u.Component,args:[{selector:"inail-navigazione-secondaria",template:'<nav id="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',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e.propDecorators={sidebarInferiore:[{type:u.ViewChild,args:["sidebarInferiore"]}]},e}(),Xe=function(t){function e(){var e=t.call(this)||this;return e.subsetChange=new u.EventEmitter,e.pagination=new u.EventEmitter,e.clickLinkDettagli=new u.EventEmitter,e.visualizzaBaseFooter=!0,e}return m(e,t),e.prototype.ngOnChanges=function(e){var t=this;if(e&&e.noItemsFound&&!0===e.noItemsFound.currentValue&&setTimeout(function(){return t.numeroColonne=$("#"+t.id+" th").length}),e&&e.paginationInfo&&e.paginationInfo.currentValue&&this.paginationInfo&&this.paginationInfo.sortProperty&&this.thLabelComponents){var n=this.thLabelComponents.find(function(e){return e.property==t.paginationInfo.sortProperty});this.pagedTableRendererComponent.setSortDirection(n,this.paginationInfo.sortDirection)}!this.paginationInfo&&e&&e.initialSort&&e.initialSort.currentValue&&this.initialSort&&this.impostaOrdinamentoIniziale()},e.prototype.ngOnInit=function(){this.tallRows==undefined&&(this.tallRows=!1),this.tabellaAlternativa==undefined&&(this.tabellaAlternativa=!1)},e.prototype.ngAfterViewInit=function(){var t=this;if(setTimeout(function(){t.visualizzaBaseFooter=0<t.baseFooter.nativeElement.childElementCount}),this.pagedTableRendererComponent&&(this.pagedTableRendererComponent.inizializzaTabella(this.thLabelComponents),this.pagedTableRendererComponent.lookAtThLabel(this.thLabelComponents)),this.paginationInfo&&this.paginationInfo.sortProperty&&this.thLabelComponents){var e=this.thLabelComponents.find(function(e){return e.property==t.paginationInfo.sortProperty});this.pagedTableRendererComponent.setSortDirection(e,this.paginationInfo.sortDirection)}!this.paginationInfo&&this.initialSort&&this.impostaOrdinamentoIniziale()},e.prototype.impostaOrdinamentoIniziale=function(){var t=this;this.thLabelComponents&&this.thLabelComponents.forEach(function(e){e.property==t.initialSort.sortProperty?t.pagedTableRendererComponent.setSortDirection(e,t.initialSort.sortDirection):t.pagedTableRendererComponent.setSortDirection(e,undefined)})},e.prototype.subsetOnChange=function(e){var t=this;setTimeout(function(){t.subsetChange.emit(e)})},e.prototype.getNumeroColonne=function(){return $("#"+this.id+" th").length},e.decorators=[{type:u.Component,args:[{selector:"inail-paged-table",template:'<div class="tabella table-responsive col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} noPaddingLeft {{class}}"\n [ngClass]="{\'tabella-verticale\': tabellaAlternativa}">\n\n <h3 *ngIf="titolo"\n class="col-xs-9 table-title pull-left noPaddingLeft"\n [innerHTML]="titolo">\n </h3>\n\n <a *ngIf="LinkDettagli"\n (click)="clickLinkDettagli.emit()"\n class="col-xs-3 col-sm-2 linkDettagli pull-right"\n [innerHTML]="LinkDettagli || \'Link\'">\n </a>\n\n <div *ngIf="descrizione"\n class="col-xs-12 caption marginBottom noPaddingLeft"\n [innerHTML]="descrizione">\n </div>\n\n <inail-paged-table-renderer [elements]="elements"\n [recuperoInCorso]="recuperoInCorso"\n [paginationInfo]="paginationInfo"\n [testoRecuperoInCorso]="testoRecuperoInCorso"\n [subset]="subset"\n [pageSize]="pageSize"\n [disabilitaPaginazione]="disabilitaPaginazione"\n [tableId]="id"\n [doPagination]="doPagination"\n (pagination)="pagination.emit($event)"\n (subsetChange)="subsetOnChange($event)">\n\n <table id="{{id}}"\n class="table display dataTable {{tableClass}}"\n [ngClass]="{\'tabella-base\': !tallRows}">\n <caption *ngIf="caption" class="sr-only" [innerHTML]="caption"></caption>\n\n <ng-content select="thead"></ng-content>\n\n <ng-container *ngIf="!noItemsFound">\n <ng-content select="tbody"></ng-content>\n </ng-container>\n\n <tbody *ngIf="noItemsFound">\n <tr role="row">\n <td class="content-text"\n style="padding: 30px;\n text-align: center"\n [colSpan]="numeroColonne"\n [innerHTML]="noItemsFoundText || \'Nessun elemento trovato\'">\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 </inail-paged-table-renderer>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e.propDecorators={elements:[{type:u.Input}],subset:[{type:u.Input}],subsetChange:[{type:u.Output}],initialSort:[{type:u.Input}],paginationInfo:[{type:u.Input}],doPagination:[{type:u.Input}],pageSize:[{type:u.Input}],recuperoInCorso:[{type:u.Input}],testoRecuperoInCorso:[{type:u.Input}],noItemsFound:[{type:u.Input}],noItemsFoundText:[{type:u.Input}],pagination:[{type:u.Output}],tallRows:[{type:u.Input}],tabellaAlternativa:[{type:u.Input}],caption:[{type:u.Input}],descrizione:[{type:u.Input}],tableClass:[{type:u.Input}],titolo:[{type:u.Input}],disabilitaPaginazione:[{type:u.Input}],LinkDettagli:[{type:u.Input}],clickLinkDettagli:[{type:u.Output}],pagedTableRendererComponent:[{type:u.ViewChild,args:[ie]}],thLabelComponents:[{type:u.ContentChildren,args:[ee,{descendants:!0}]}],baseFooter:[{type:u.ViewChild,args:["baseFooter"]}]},e}(L),et=function(t){function e(){var e=t.call(this)||this;return e.chooseButtonText="Scegli il file",e.submitButtonText="aggiungi",e.submitButton=!0,e.uploadFile=new u.EventEmitter,e}return m(e,t),e.prototype.ngOnInit=function(){},e.prototype.checkError=function(){return this.hasError||E(this.descError)},e.prototype.checkDescError=function(){return this.checkError()&&E(this.getDescError())},e.prototype.getDescError=function(){return this.descError},e.prototype.promptUpload=function(){document.getElementById(this.id).click()},e.prototype.changeModel=function(e){this.fileModel=e.target.files&&e.target.files[0],this.submitButton||this.uploadFile.emit(this.fileModel)},e.prototype.reset=function(){this.fileModel=undefined,this.uploadFile.emit(undefined),this.inputTypeFile.nativeElement.value=""},e.decorators=[{type:u.Component,args:[{selector:"inail-file-upload",template:'<div class="form-group col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} noPaddingLeft {{class}} uploadFile inail-file-upload-view-encapsulation"\n [ngClass]="{\'has-error\': checkError()}">\n <div class="col-xs-12 noPaddingLeft">\n <div class="col-xs-12 noPaddingLeft" *ngIf="label">\n <label for="{{id}}"\n class="{{labelClass}}"\n title="{{labelTitle}}"\n [hidden]="hiddenLabel"\n [innerHTML]="label.concat(required ? \' \'+(requiredSimbol || \'*\') : \'\')">\n </label>\n </div>\n <div class="col-xs-4 upload-file-button-container noPaddingLeft">\n <label for="{{id}}-fake"\n class="sr-only">Label input</label>\n <input id="{{id}}-fake"\n title="{{title}}"\n class="col-xs-12 form-control {{inputClass}}"\n [disabled]="disabled"\n readonly\n placeholder="{{placeholder}}"\n type="text"\n [attr.aria-invalid]="checkError() === true ? true : undefined"\n [attr.aria-describedBy]="checkDescError() ? id+\'-description-error\' : undefined"\n [value]="fileModel?.name"\n (click)="promptUpload()">\n <button class="innerx" (click)="reset()"><span class="reset"></span></button>\n <span [innerHTML]="description"></span>\n </div>\n <div class="col-xs-8">\n <div class="fileUpload pull-left noMarginLeft">\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 accept="{{accept}}"\n [disabled]="disabled"\n class="btn btn-primary upload"\n type="file"\n (change)="changeModel($event)">\n </div>\n </div>\n <div *ngIf="submitButton" class="fileUpload pull-left padding">\n <div class="form-group">\n <button class="btn btn-primary add-file"\n [disabled]="!fileModel"\n (click)="uploadFile.emit(fileModel)"\n [innerHTML]="submitButtonText">\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="checkDescError()">\n <span [id]="id+\'-description-error\'" class="msg msg-errore">\n <strong [innerHTML]="(errorPrefix===false ? \'\' : \'ERRORE: \')+getDescError()"></strong>\n </span>\n </div>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[".inail-file-upload-view-encapsulation button.innerx:focus{outline:#000 dotted 1px!important}.inail-file-upload-view-encapsulation .btn-fake input{position:absolute;opacity:0!important}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={inputTypeFile:[{type:u.ViewChild,args:["inputTypeFile"]}],placeholder:[{type:u.Input}],description:[{type:u.Input}],chooseButtonText:[{type:u.Input}],submitButtonText:[{type:u.Input}],submitButton:[{type:u.Input}],accept:[{type:u.Input}],uploadFile:[{type:u.Output}]},e}(A),tt=function(){function e(e,t){this.activatedRoute=e,this.router=t}return e.prototype.ngOnChanges=function(e){var t=this;e.paginaCorrente&&setTimeout(function(){t.buildBreadCrumb(e.paginaCorrente.currentValue)})},e.prototype.ngOnInit=function(){},e.prototype.buildBreadCrumb=function(e){if(e!=undefined){var t=this.getGenealogicalTree(e);t&&(this.steps=t.map(function(e){return{label:e.titolo,url:e.url}}))}},e.prototype.getParentsList=function(e){var t;return e&&(t=this.getGenealogicalTree(e.parent)),t},e.prototype.getGenealogicalTree=function(e){var t;return e?(t=this.getGenealogicalTree(e.parent)).push(e):t=[],t},e.prototype.onClick=function(e){this.router.navigateByUrl(e)},e.decorators=[{type:u.Component,args:[{selector:"inail-breadcrumb",template:'<nav aria-label="Breadcrumb">\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',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[{type:c.ActivatedRoute},{type:c.Router}]},e.propDecorators={paginaCorrente:[{type:u.Input}],steps:[{type:u.Input}]},e}(),nt=function(e){function t(){var n=e.call(this)||this;return n.dataChange=new u.EventEmitter,n.isEnabledDate=function(e){var t=$.datepicker.formatDate("yy-mm-dd",e);return n.isDataAbilitata(t)&&!n.isDataDisabilitata(t)},n.isDataAbilitata=function(t){return n.enabledDates==undefined||!n.enabledDates.length||n.enabledDates.some(function(e){return n.match(t,e)!=undefined})},n.isDataDisabilitata=function(t){return n.disabledDates!=undefined&&n.disabledDates.some(function(e){return n.match(t,e)!=undefined})},n.match=function(e,t){return e!=undefined&&e.match(new RegExp("^".concat(t).concat("$"),"i"))},n}return m(t,e),t.prototype.ngOnChanges=function(e){e.data&&!e.data.firstChange&&(this.hasError=!1,this.descError=undefined)},t.prototype.ngOnInit=function(){this.datepickerOptions||(this.datepickerOptions={autoclose:!0,format:"dd/mm/yyyy",weekStart:1,todayBtn:"linked",language:"it",todayHighlight:!0,orientation:"auto top",enableOnReadonly:!1}),(this.disabledDates!=undefined&&0<this.disabledDates.length||this.enabledDates!=undefined&&0<this.enabledDates.length)&&(this.datepickerOptions.beforeShowDay=this.isEnabledDate)},t.prototype.ngAfterViewInit=function(){var t=this;window.$(this.input.nativeElement).datepicker(this.datepickerOptions),this.visibleData&&N.isDate(this.visibleData)&&this.setDatepickerDate(this.visibleData),setTimeout(function(){$("#"+t.id).on("change",function(){var e=$("#"+t.id)[0];e!=undefined&&e.value!=t.visibleData&&(t.data=e.value)})}),this.showPopover()&&$("#"+this.id+"-popover").popover()},Object.defineProperty(t.prototype,"data",{set:function(e){var t=this,n=it(e);E(e)?this.visibleData=n?N.toItalianFormat(e):e:this.visibleData=undefined,setTimeout(function(){t.dataChange.emit(n?at(t.visibleData,"RFC3339"):t.visibleData),n&&t.setDatepickerDate(t.visibleData)})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_data",{set:function(e){var t=this,n=it(e);!n&&N.isValidDateObject(N.toDateObject(e))&&(e=at(e),n=!0),E(e)?this.visibleData=n?at(e,"IT"):this.visibleData||e:this.visibleData=undefined,setTimeout(function(){t.dataChange.emit(n?at(t.visibleData,"RFC3339"):t.visibleData),n&&t.setDatepickerDate(t.visibleData)})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isValid",{get:function(){return w(this.visibleData)||N.isInItalianFormat(this.visibleData)&&N.isValidDate(this.visibleData)},enumerable:!0,configurable:!0}),t.prototype.checkDescError=function(){var e=this.getDescError();return this.checkError()&&E(e)},t.prototype.checkError=function(){return!this.isValid||this.hasError||E(this.descError)},t.prototype.getDescError=function(){return w(this.descError)&&!this.isValid?"La data inserita non è valida":this.descError},t.prototype.onChange=function(e){this.data=e.target.value},t.prototype.setDatepickerDate=function(e){window.$(this.input.nativeElement).datepicker("setDate",e)},t.decorators=[{type:u.Component,args:[{selector:"inail-input-date",template:'<div class="date datePicker col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} noPaddingLeft {{class}}"\n [ngClass]="{\'has-error\': this.checkError()}">\n <div class="form-group">\n <div class="input-relative">\n <label *ngIf="label"\n [hidden]="hiddenLabel"\n class="control-label {{labelClass}}"\n title="{{labelTitle}}"\n for="{{id}}" [innerHTML]="label.concat(required ? \' \'+(requiredSimbol || \'*\') : \'\')"></label>\n <ng-container *ngIf="showPopover()">\n \n <em [id]="id+\'-popover\'"\n class="fa fa-question-circle fa-lg"\n data-toggle="popover"\n title="{{popoverButtonTitle}}"\n [attr.data-content]="popoverContent"\n [attr.data-original-title]="popoverTitle">\n </em>\n </ng-container>\n <input id="{{id}}"\n #input\n class="form-control {{inputClass}}"\n title="GG/MM/AAAA"\n placeholder="GG/MM/AAAA"\n type="text"\n (change)="onChange($event)"\n (paste)="onChange($event)"\n (keyup)="onChange($event)"\n [disabled]="this.disabled"\n [required]="this.readonly"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="checkError() === true ? true : undefined"\n [attr.aria-describedBy]="checkDescError() ? id+\'-description-error\' : undefined"\n (keyup.enter)="enterUp.emit()"\n [(ngModel)]="this.visibleData">\n <em class="fa fa-calendar"\n title="Calendario"\n (click)="input.focus()"></em>\n </div>\n <ng-container *ngIf="this.checkDescError()">\n <span [id]="id+\'-description-error\'" class="msg msg-errore">\n <strong [innerHTML]="(errorPrefix===false ? \'\' : \'ERRORE: \')+this.getDescError()"></strong>\n </span>\n </ng-container>\n </div>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],t.ctorParameters=function(){return[]},t.propDecorators={input:[{type:u.ViewChild,args:["input"]}],dataChange:[{type:u.Output}],modelFormat:[{type:u.Input}],datepickerOptions:[{type:u.Input}],enabledDates:[{type:u.Input}],disabledDates:[{type:u.Input}],data:[{type:u.Input}],_data:[{type:u.Input}]},t}(A),it=function(e){return N.isInItalianFormat(e)||N.isInISO8601Format(e)||function(e){return e&&"number"==typeof e}(e)},at=function(e,t){var n=null,i=function(e){var t=null;if(e){var n=N.toDateObject(e.trim?e.trim():e);t={year:n.getFullYear(),month:n.getMonth()+1,day:n.getDate()}}return t}(e);return i&&(n=t&&"IT"==t?rt(i):ot(i)),n},rt=function(e){var t=null;return e&&(t=st(e.day)+"/"+st(e.month)+"/"+e.year),t},ot=function(e){var t=null;return e&&(t=st(e.year)+"-"+st(e.month)+"-"+st(e.day)),t},st=function(e){return e?(e<10?"0":"")+e:""},lt=function(t){function e(){var e=t.call(this)||this;return e.getFocus=!0,e}return m(e,t),e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){this.catchFocus()},e.prototype.catchFocus=function(){var e=this;!this.getFocus||document.activeElement!=undefined&&"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)},e.prototype.ngOnChanges=function(e){e==undefined||e.titolo==undefined||e.titolo.currentValue==undefined||e.titolo.isFirstChange()||this.catchFocus()},e.decorators=[{type:u.Component,args:[{selector:"inail-page-title",template:'<div tabindex="0"\n title="Titolo pagina"\n class="inail-page-title"\n [id]="id"\n #divTitolo>\n <span *ngIf="spanTitolo"\n class="span-title {{spanClass}}"\n [innerHTML]="spanTitolo"></span>\n <h2 class="{{class}}"\n *ngIf="titolo"\n [innerHTML]="titolo">\n </h2>\n <h2 class="{{class}}"\n *ngIf="!titolo">\n <ng-content></ng-content>\n </h2>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[""]}]}],e.ctorParameters=function(){return[]},e.propDecorators={titolo:[{type:u.Input}],spanTitolo:[{type:u.Input}],spanClass:[{type:u.Input}],getFocus:[{type:u.Input}],divTitolo:[{type:u.ViewChild,args:["divTitolo"]}]},e}(S),ct=function(){function e(e){this.viewContainer=e}return e.prototype.ngOnInit=function(){this.viewContainer.clear()},e.decorators=[{type:u.Directive,args:[{selector:"[comment]"}]}],e.ctorParameters=function(){return[{type:u.ViewContainerRef}]},e}(),pt=function(t){function e(){var e=t.call(this)||this;return e.valueChange=new u.EventEmitter,e}return m(e,t),e.prototype.ngOnChanges=function(e){if(e.options&&e.options.currentValue&&this.options&&this.options.forEach(function(e){w(e.id)&&(e.id=p.v4())}),this.sort){var n="ASC"==this.sort.toUpperCase()?1:"DESC"==this.sort.toUpperCase()?-1:0;0!=n&&this.options!=undefined&&this.options.sort(function(e,t){return e.label<t.label?-n:e.label>t.label?n:0})}e.value&&!e.value.firstChange&&(this.hasError=!1,this.descError=undefined)},e.prototype.ngOnInit=function(){w(this.valueValue)&&(this.valueValue="")},Object.defineProperty(e.prototype,"value",{get:function(){return this.valueValue},set:function(e){this.valueValue=e,this.valueChange.emit(this.valueValue)},enumerable:!0,configurable:!0}),e.prototype.checkDescError=function(){return this.checkError()&&E(this.getDescError())},e.prototype.checkError=function(){return this.hasError||E(this.descError)},e.prototype.getDescError=function(){return this.descError},e.isValidOption=function(e,t){return!t||0==t.length||I(e)&&0<=e.findIndex(function(e){return e.value==t})},e.prototype.radioOnChange=function(e){this.value=e?e.value:undefined},e.prototype.isChecked=function(e){return e&&e.value==this.valueValue},e.decorators=[{type:u.Component,args:[{selector:"inail-radio-select",template:'<div [id]=\'id\' class="col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} {{class}} noPadding inail-radio-select">\n <fieldset class="form-group col-xs-12 noPaddingLeft">\n <legend class="radio-legend"\n [hidden]="hiddenLabel"\n [innerHTML]="label?.concat(required ? \' \'+(requiredSimbol || \'*\') : \'\')"></legend>\n <div class="radio {{inline === true ? \'inline\' : \'\'}}" *ngFor="let option of options">\n <label [for]="option?.id">\n <input [id]="option?.id"\n type="radio"\n class="{{inputClass}} {{option?.class}}"\n [name]="name"\n [disabled]="disabled"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="checkError() === true ? true : undefined"\n [attr.aria-describedBy]="checkDescError() ? id+\'-description-error\' : undefined"\n [value]="option?.value"\n [attr.title]="option?.title || title"\n [(ngModel)]="value">\n <span [innerHTML]="option?.label"></span>\n </label>\n </div>\n <div *ngIf="checkDescError()">\n <span [id]="id+\'-description-error\'" class="msg msg-errore">\n <strong [innerHTML]="(errorPrefix===false ? \'\' : \'ERRORE: \')+getDescError()"></strong>\n </span>\n </div>\n </fieldset>\n</div>\n',encapsulation:u.ViewEncapsulation.None,styles:[".inail-radio-select .radio.inline{display:inline-block;margin-right:20px}"]}]}],e.ctorParameters=function(){return[]},e.propDecorators={options:[{type:u.Input}],name:[{type:u.Input}],sort:[{type:u.Input}],inline:[{type:u.Input}],valueChange:[{type:u.Output}],value:[{type:u.Input}]},e}(A),ut=function xt(){},dt={EURO:"€",DOLLARS:"$"},ht=["0","1","2","3","4","5","6","7","8","9"],gt=function Dt(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}(ht,[",","-","Backspace","Delete","Tab","ArrowLeft","ArrowRight"]),mt=new RegExp(/[ $€]+/g),ft=new RegExp(/[,]/g),bt=new RegExp(/[.]/g),vt=new RegExp(/(\d+)(\d{3})/),yt=function(e){function t(){var n=e.call(this)||this;return n.numberOfDecimals=2,n.preventPasting=!1,n.currency="EURO",n.selfValidation=!0,n.selfValidationError="Importo non valido",n.showThousandsSeparator=!0,n.valueChange=new u.EventEmitter,n.getCurrencySymbol=function(){return dt[n.currency]},n.getCleanedValue=function(e){return e?e.replace(mt,""):""},n.getNumberValue=function(e){var t=n.getCleanedValue(e).replace(ft,".");return parseFloat(t)},n.isNotBlankOrUndefined=function(e){return E(e)&&"undefined"!=e&&"null"!=e},n.checkError=function(){return n.hasError||E(n.descError)},n.checkDescError=function(){return n.checkError()&&E(n.getDescError())},n.getDescError=function(){return n.descError},n.isWrongMinus=function(e){return"-"==e.key&&(w(n.inputValue)||0<n.inputValue.indexOf("-"))},n.isWrongComma=function(e){return","==e.key&&(w(n.inputValue)||0<n.inputValue.indexOf(","))},n.isCommaWithNoDecimals=function(e){return","==e.key&&n.numberOfDecimals<=0},n.isWrongDigit=function(t){return!gt.some(function(e){return e===t.key})||n.isWrongMinus(t)||n.isWrongComma(t)||n.isCommaWithNoDecimals(t)||n.isMaximumNumberOfDecimalsReached(t)},n}return m(t,e),t.prototype.ngOnChanges=function(e){},t.prototype.ngOnInit=function(){},t.prototype.ngAfterViewInit=function(){},Object.defineProperty(t.prototype,"value",{set:function(e){this.emitDebug("@Input set value: "+this.numberValue+" -> "+e),this.inputValue=e!=undefined?""+e:"",this.setValue(this.inputValue)},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(e){this.emitDebug("writeValue: "+e),this.inputValue=e!=undefined?""+e:"",this.setValue(this.inputValue)},Object.defineProperty(t.prototype,"inputTextValue",{get:function(){return this.inputValue},set:function(e){this.emitDebug("set inputTextValue: "+this.inputValue+" -> "+e),this.inputValue=e,this.setValue(this.inputValue)},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e){var t;this.emitDebug("setValue: "+e),this.isNotBlankOrUndefined(e)?(t=this.getNumberValue(e),isNaN(t)?(t=undefined,this.selfValidation&&(this.selfValidationErrorMsg=""+this.selfValidationError)):this.min!=undefined&&t<this.min?t=this.min:this.max!=undefined&&t>this.max&&(t=this.max)):(t=undefined,this.selfValidationErrorMsg=undefined),this.cleanErrorOnChange&&this.cleanError(),t!=this.numberValue&&(this.numberValue=t,this.valueChange.emit(this.numberValue)),this.impostaValoreVisibile()},t.prototype.impostaValoreVisibile=function(){if(this.numberValue!=undefined){var e=(""+this.numberValue).replace(bt,",");if(!this.hasFocus()){var t=e.split(",");if(this.showThousandsSeparator)for(;vt.test(t[0]);)t[0]=t[0].replace(vt,"$1.$2");if(0<this.numberOfDecimals){var n=(t[1]!=undefined?t[1]:"")+"000000000000000000000";t[1]=n.substring(0,this.numberOfDecimals),e=t.join(",")}else e=t[0]}this.inputValue=(e+" "+(this.hasFocus()?"":this.getCurrencySymbol())).trim()}},t.prototype.onFocusIn=function(){this.impostaValoreVisibile()},t.prototype.onFocusOut=function(){this.impostaValoreVisibile()},t.prototype.isMaximumNumberOfDecimalsReached=function(t){var e=this.getCleanedValue(this.inputValue);return ht.some(function(e){return e===t.key})&&e!=undefined&&0<e.indexOf(",")&&e.split(",")[1].length>=this.numberOfDecimals},t.prototype.onKeyDown=function(e){this.isWrongDigit(e)&&e.preventDefault()},t.prototype.onPaste=function(e){!0===this.preventPasting&&e.preventDefault()},t.prototype.ngOnDestroy=function(){},t.decorators=[{type:u.Component,args:[{selector:"inail-input-money",template:'<div class="form-group col-lg-{{lg}} col-md-{{md}} col-sm-{{sm}} col-xs-{{xs}} noPaddingLeft {{class}}"\n [ngClass]="{\'has-error\': checkError()}">\n <label *ngIf="label"\n class="control-label {{labelClass}}"\n [hidden]="hiddenLabel"\n title="{{labelTitle}}"\n for="{{id}}"\n [innerHTML]="label.concat(required ? \' \'+(requiredSimbol || \'*\') : \'\')"></label>\n <ng-container *ngIf="showPopover()">\n \n <em [id]="id+\'-popover\'"\n class="fa fa-question-circle fa-lg"\n data-toggle="popover"\n title="{{popoverButtonTitle}}"\n [attr.data-content]="popoverContent"\n [attr.data-original-title]="popoverTitle">\n </em>\n </ng-container>\n <input #formControl\n type="text"\n id="{{id}}"\n title="{{title}}"\n [disabled]="disabled"\n [readonly]="readonly"\n class="form-control {{inputClass}}"\n [ngClass]="{\'disabled\': disabled}"\n placeholder="{{placeholder}}"\n [attr.aria-required]="required === true ? true : undefined"\n [attr.aria-invalid]="checkError() === true ? true : undefined"\n [attr.aria-describedBy]="checkDescError() ? id+\'-description-error\' : undefined"\n (focusin)="onFocusIn()"\n (focusout)="onFocusOut()"\n (keydown)="onKeyDown($event)"\n (paste)="onPaste($event)"\n (keyup.enter)="enterUp.emit()"\n [(ngModel)]=\'inputTextValue\'>\n <ng-container *ngIf="checkDescError()">\n <span [id]="id+\'-description-error\'" class="msg msg-errore">\n <strong [innerHTML]="(errorPrefix===false ? \'\' : \'ERRORE: \')+getDescError()"></strong>\n </span>\n </ng-container>\n</div>\n',styles:[""]}]}],t.ctorParameters=function(){return[]},t.propDecorators={formControlElement:[{type:u.ViewChild,args:["formControl"]}],max:[{type:u.Input}],min:[{type:u.Input}],numberOfDecimals:[{type:u.Input}],placeholder:[{type:u.Input}],preventPasting:[{type:u.Input}],currency:[{type:u.Input}],selfValidation:[{type:u.Input}],selfValidationError:[{type:u.Input}],showThousandsSeparator:[{type:u.Input}],valueChange:[{type:u.Output}],value:[{type:u.Input}]},t}(A),wt=function(){function e(){}return e.decorators=[{type:u.NgModule,args:[{declarations:[h,P,U,M,G,Y,Q,S,A,L,J,X,ee,te,ne,ie,re,oe,se,ce,de,ge,me,fe,be,ve,Le,$e,qe,Ge,We,Ye,T,Ke,Qe,Je,Ze,Xe,et,ye,tt,Ve,nt,lt,ct,pt,le,yt],imports:[i.FormsModule,t.CommonModule,r.NgbModule,c.RouterModule,i.ReactiveFormsModule],providers:[t.DecimalPipe],exports:[h,P,U,M,G,Y,Q,J,X,ee,te,ne,ie,re,se,oe,ce,de,ge,me,fe,be,ve,Le,Xe,et,ye,tt,Ve,nt,lt,pt,le,T,yt]}]}],e}();e.Feedback=K,e.SelectOption=Z,e.SelectComponent=J,e.BaseComponent=T,e.LogEvent=O,e.LogLevel=D,e.RadioSelectOption=ut,e.RadioSelectComponent=pt,e.Pagination=ae,e.WizardStep=pe,e.AccordionComponent=P,e.MenuElement=Ee,e.fixCKEditorStyleSheet=function(){var t=$("style[data-cke]");t&&t.each(function(e){t[e]&&(t[e].innerText=t[e].innerText.replace(/min\(10%,30px\)/g,"30px").replace(/var\(--ck-font-size-base\)/g,"13px").replace(/var\(--ck-line-height-base\)/g,"1.84615").replace(/var\(--ck-font-face\)/g,"Helvetica,Arial,Tahoma,Verdana,Sans-Serif").replace(/var\(--ck-color-focus-border-coordinates\)/g,"208,79%,51%").replace(/var\(--ck-switch-button-toggle-width\)/g,"2.6153846154em").replace(/var\(--ck-switch-button-toggle-inner-size\)/g,"1.0769230769em").replace(/var\(--ck-switch-button-toggle-spacing\)/g,"1px").replace(/var\(--ck-spacing-unit\)/g,"0.6em").replace(/var\(--ck-spacing-large\)/g,"calc(0.6em*1.5)").replace(/var\(--ck-border-radius\)/g,"2px").replace(/var\(--ck-switch-button-translation\)/g,"1px").replace(/var\(--ck-widget-outline-thickness\)/g,"3px").replace(/::ng-deep/g,""))})},e.setFocusOnFirstError=Re,e.setFocusOnFirstModalError=He,e.setFocusOnFirstPageError=je,e.setFocusOnGlobalFeedback=function(e){Be(".global-feedback",e)},e.setFocusOnFirstFeedback=Be,e.setFocusOnFirstErrorFeedback=_e,e.setFocusOnFeedback=function(t,e){setTimeout(function(){var e=document.querySelectorAll("#"+t+" .feedback-focusable")[0];e&&e.focus()},e||100)},e.NgInailCommonService=d,e.NgInailCommonComponent=h,e.NgInailCommonModule=wt,e.ɵbd=be,e.ɵg=S,e.ɵbq=tt,e.ɵbr=Ve,e.ɵh=U,e.ɵk=M,e.ɵz=le,e.ɵm=_,e.ɵp=G,e.ɵl=j,e.ɵo=q,e.ɵn=B,e.ɵa=Y,e.ɵi=A,e.ɵba=ge,e.ɵbp=et,e.ɵc=ce,e.ɵw=re,e.ɵbs=nt,e.ɵbv=yt,e.ɵbe=ve,e.ɵq=Q,e.ɵbj=Ye,e.ɵbg=qe,e.ɵf=Le,e.ɵbf=$e,e.ɵbm=Je,e.ɵbh=Ge,e.ɵbk=Ke,e.ɵbn=Ze,e.ɵbl=Qe,e.ɵbi=We,e.ɵd=ye,e.ɵbc=fe,e.ɵbt=lt,e.ɵb=ie,e.ɵbo=Xe,e.ɵj=L,e.ɵbb=me,e.ɵy=se,e.ɵx=oe,e.ɵu=te,e.ɵv=ne,e.ɵe=de,e.ɵs=X,e.ɵt=ee,e.ɵbu=ct,e.ɵr=I,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
2
2
|
//# sourceMappingURL=ng-inail-common.umd.min.js.map
|