@gipisistemas/ng-core 1.1.12 → 1.1.13
Sign up to get free protection for your applications and to get access to all the features.
- package/assets/styles/styles.scss +4 -0
- package/bundles/gipisistemas-ng-core.umd.js +39 -14
- package/bundles/gipisistemas-ng-core.umd.js.map +1 -1
- package/bundles/gipisistemas-ng-core.umd.min.js +1 -1
- package/bundles/gipisistemas-ng-core.umd.min.js.map +1 -1
- package/esm2015/shared/components/button/button.component.js +2 -2
- package/esm2015/shared/components/icon/icon.component.js +2 -4
- package/esm2015/shared/gipi-components/button/button.component.js +2 -2
- package/esm2015/shared/gipi-components/form-field/form-field.component.js +8 -3
- package/esm2015/shared/gipi-components/input-select-enum/input-select-enum.component.js +20 -6
- package/esm2015/shared/gipi-components/split-button/split-button.component.js +2 -2
- package/esm2015/shared/gipi-components/tabs/tab-group/tab-group.component.js +5 -2
- package/esm5/shared/components/button/button.component.js +2 -2
- package/esm5/shared/components/icon/icon.component.js +2 -4
- package/esm5/shared/gipi-components/button/button.component.js +2 -2
- package/esm5/shared/gipi-components/form-field/form-field.component.js +8 -3
- package/esm5/shared/gipi-components/input-select-enum/input-select-enum.component.js +25 -6
- package/esm5/shared/gipi-components/split-button/split-button.component.js +2 -2
- package/esm5/shared/gipi-components/tabs/tab-group/tab-group.component.js +5 -2
- package/fesm2015/gipisistemas-ng-core.js +34 -14
- package/fesm2015/gipisistemas-ng-core.js.map +1 -1
- package/fesm5/gipisistemas-ng-core.js +39 -14
- package/fesm5/gipisistemas-ng-core.js.map +1 -1
- package/gipisistemas-ng-core.metadata.json +1 -1
- package/package.json +1 -1
- package/shared/components/icon/icon.component.d.ts +1 -3
- package/shared/gipi-components/form-field/form-field.component.d.ts +1 -0
- package/shared/gipi-components/input-select-enum/input-select-enum.component.d.ts +4 -2
@@ -13,7 +13,7 @@
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
15
15
|
***************************************************************************** */
|
16
|
-
var ve=function(e,t){return(ve=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 be(e,t){function n(){this.constructor=e}ve(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var _e=function(){return(_e=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function we(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function xe(e,t){return function(n,i){t(n,i,e)}}function Ce(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function Ie(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))}function Se(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}function ke(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Oe(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function Ee(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Oe(arguments[t]));return e}var De=new t.InjectionToken("app.messages"),Pe={SUCCESS:"Operação realizada com sucesso",RETURN_CONFIRMATION:"Deseja retornar para à tela de consulta?",DELETE_CONFIRMATION:"Deseja realmente excluir este registro?",DELETE_ALL_CONFIRMATION:"Deseja realmente excluir os registros selecionados?",BUTTON_OK_CONFIRMATION:"OK",BUTTON_CANCEL_CONFIRMATION:"Cancelar",NOT_PERMISSION:"Infelizmente, esta ação não é permitida para o seu perfil"},Ae=[m.A11yModule,g.CdkPopoverEditModule,b.CdkTableModule,_.CdkTreeModule,n.CdkStepperModule,f.DragDropModule,w.MatAutocompleteModule,x.MatBadgeModule,C.MatBottomSheetModule,I.MatButtonModule,S.MatButtonToggleModule,k.MatCardModule,O.MatCheckboxModule,E.MatChipsModule,P.MatDialogModule,A.MatDividerModule,R.MatExpansionModule,M.MatFormFieldModule,T.MatGridListModule,F.MatIconModule,V.MatInputModule,N.MatListModule,j.MatMenuModule,L.MatPaginatorModule,B.MatProgressBarModule,Y.MatProgressSpinnerModule,z.MatRadioModule,D.MatRippleModule,H.MatSelectModule,G.MatSidenavModule,U.MatSlideToggleModule,q.MatSliderModule,W.MatSnackBarModule,$.MatSortModule,K.MatStepperModule,X.MatTableModule,Z.MatTabsModule,J.MatToolbarModule,Q.MatTooltipModule,ee.MatTreeModule,v.ScrollingModule,y.PortalModule],Re=function(){function e(){}return e=we([t.NgModule({imports:Ee(Ae),exports:Ee(Ae)})],e)}(),Me=new t.InjectionToken("mat-date-formats"),Te=new t.InjectionToken("mat-datetime-formats"),Fe=function(){function e(){this.color="primary",this.loading=!1,this.download=!1,this.stylePopover="",this.onClick=new t.EventEmitter(!0)}return e.prototype.ngOnInit=function(){},e.prototype.onClickButton=function(e){this.disabled||this.loading||(this.onClick.emit(e),e.stopPropagation())},we([t.ContentChild("popover",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"popoverRef",void 0),we([t.ViewChild("popoverTrigger",{static:!1}),Ce("design:type",l.MdePopoverTrigger)],e.prototype,"popoverTrigger",void 0),we([t.ViewChild("button",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"_elementRef",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"icon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"rightIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"color",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"type",void 0),we([t.Input(),Ce("design:type",a.MatMenu)],e.prototype,"menu",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"badge",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"badgeColor",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"download",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"stylePopover",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"styleClassPopover",void 0),we([t.Output("click"),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),e=we([t.Component({selector:"itss-button",template:'<button #button\n mat-raised-button\n *ngIf="type === \'raised\'"\n [color]="color"\n [matBadge]="badge"\n [matBadgeColor]="badgeColor"\n [disabled]="disabled"\n [matTooltip]="tooltip"\n fxFlex\n (click)="onClickButton($event)">\n <mat-icon *ngIf="icon">\n {{ icon }}\n </mat-icon>\n <mat-icon *ngIf="svgIcon"\n [svgIcon]="svgIcon">\n </mat-icon>\n <span>\n {{ label }}\n </span>\n <mat-icon *ngIf="rightIcon">\n {{ rightIcon }}\n </mat-icon>\n</button>\n\n<button #button\n mat-stroked-button\n *ngIf="type === \'stroked\'"\n [color]="color"\n [matBadge]="badge"\n [matBadgeColor]="badgeColor"\n [disabled]="disabled"\n [matTooltip]="tooltip"\n fxFlex\n (click)="onClickButton($event)">\n <mat-icon *ngIf="icon">\n {{ icon }}\n </mat-icon>\n <mat-icon *ngIf="svgIcon"\n [svgIcon]="svgIcon">\n </mat-icon>\n <span>\n {{ label }}\n </span>\n</button>\n\n<button #button\n mat-icon-button\n *ngIf="type === \'icon\'"\n [color]="color"\n [matBadge]="badge"\n [matBadgeColor]="badgeColor"\n [disabled]="disabled"\n [matTooltip]="tooltip"\n fxFlex\n (click)="onClickButton($event)">\n <mat-icon *ngIf="icon">\n {{ icon }}\n </mat-icon>\n <mat-icon *ngIf="svgIcon"\n [svgIcon]="svgIcon">\n </mat-icon>\n <span>\n {{ label }}\n </span>\n</button>\n\n<button #button\n [matMenuTriggerFor]="menu"\n mat-button\n *ngIf="type === \'menu\'"\n [color]="color"\n [matBadge]="badge"\n [matBadgeColor]="badgeColor"\n [disabled]="disabled"\n [matTooltip]="tooltip"\n fxFlex\n (click)="onClickButton($event)">\n <mat-icon *ngIf="icon">\n {{ icon }}\n </mat-icon>\n <mat-icon *ngIf="svgIcon"\n [svgIcon]="svgIcon">\n </mat-icon>\n <span>\n {{ label }}\n </span>\n</button>\n\n<button #button\n mat-raised-button\n *ngIf="type === \'spinner\'"\n [color]="color"\n [disabled]="loading || disabled"\n fxFlex\n (click)="onClickButton($event)">\n <mat-icon *ngIf="icon && !loading">\n {{ icon }}\n </mat-icon>\n <mat-icon *ngIf="svgIcon"\n [svgIcon]="svgIcon">\n </mat-icon>\n <mat-icon *ngIf="loading">\n <mat-spinner diameter="20"> </mat-spinner>\n </mat-icon>\n <span>\n {{ label }}\n </span>\n</button>\n\n<button #button\n mat-button\n *ngIf="!type"\n [color]="color"\n [matBadge]="badge"\n [matBadgeColor]="badgeColor"\n [disabled]="disabled"\n [matTooltip]="tooltip"\n fxFlex\n (click)="onClickButton($event)">\n <mat-icon *ngIf="icon">\n {{ icon }}\n </mat-icon>\n <mat-icon *ngIf="svgIcon"\n [svgIcon]="svgIcon">\n </mat-icon>\n <span>\n {{ label }}\n </span>\n</button>\n\n<button #button\n mat-button\n *ngIf="type === \'popover\'"\n [color]="color"\n [matBadge]="badge"\n [matBadgeColor]="badgeColor"\n [disabled]="disabled"\n [matTooltip]="tooltip"\n [mdePopoverTriggerFor]="popover"\n mdePopoverTriggerOn="click"\n #popoverTrigger="mdePopoverTrigger"\n fxFlex\n (click)="onClickButton($event)">\n <mat-icon *ngIf="icon">\n {{ icon }}\n </mat-icon>\n <mat-icon *ngIf="svgIcon"\n [svgIcon]="svgIcon">\n </mat-icon>\n <span>\n {{ label }}\n </span>\n</button>\n\n<button #button\n mat-icon-button\n *ngIf="type === \'popover-icon\'"\n [color]="color"\n [matBadge]="badge"\n [matBadgeColor]="badgeColor"\n [disabled]="disabled"\n [matTooltip]="tooltip"\n [mdePopoverTriggerFor]="popover"\n mdePopoverTriggerOn="click"\n #popoverTrigger="mdePopoverTrigger"\n fxFlex\n (click)="onClickButton($event)">\n <mat-icon *ngIf="icon">\n {{ icon }}\n </mat-icon>\n <mat-icon *ngIf="svgIcon"\n [svgIcon]="svgIcon">\n </mat-icon>\n</button>\n<mde-popover #popover="mdePopover"\n [mdePopoverOverlapTrigger]="false"\n [mdePopoverCloseOnClick]="false"\n [mdeFocusTrapEnabled]="false"\n [mdeFocusTrapAutoCaptureEnabled]="false">\n <mat-card [ngClass]="styleClassPopover"\n class="button-popover">\n <mat-card-content>\n <ng-template [ngTemplateOutlet]="popoverRef"></ng-template>\n </mat-card-content>\n </mat-card>\n</mde-popover>\n',styles:[":host button:disabled{cursor:not-allowed!important}:host button:disabled ::ng-deep .mat-button-wrapper{pointer-events:none!important}"]})],e)}(),Ve=function(){function e(){this.loading=!1,this.shadow=!0,this.margin=!0}return e.prototype.ngOnInit=function(){},we([t.Input(),Ce("design:type",Object)],e.prototype,"cardTitle",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"cardSubtitle",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"icon",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"shadow",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"margin",void 0),e=we([t.Component({selector:"itss-card",template:'<mat-card fxFlex\n [class.margin-0]="!margin"\n [class.shadow-none]="!shadow">\n <mat-card-header *ngIf="cardTitle">\n <div mat-card-avatar>\n <mat-icon>{{ icon }}</mat-icon>\n </div>\n <mat-card-title-group>\n <mat-card-title>{{ cardTitle }}</mat-card-title>\n <mat-card-subtitle *ngIf="cardSubtitle">{{ cardSubtitle }}</mat-card-subtitle>\n </mat-card-title-group>\n <div fxFlex></div>\n <ng-content select="[card-header-actions]"></ng-content>\n </mat-card-header>\n\n <mat-card-content>\n <itss-loading *ngIf="loading"></itss-loading>\n\n <ng-content></ng-content>\n </mat-card-content>\n\n <ng-content select="itss-action-row"></ng-content>\n</mat-card>\n',styles:[".mat-card{padding:25px!important}::ng-deep .mat-card-header-text{margin:0 5px!important}itss-loading{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:99%;z-index:999;background-color:#fff;opacity:.7;margin-left:-24px!important;margin-top:-71px!important}.margin-0{margin-left:-24px!important;margin-right:-24px!important;padding-bottom:0!important}.shadow-none{box-shadow:none!important}"]})],e)}(),Ne=function(){function e(){this.indeterminateChange=new t.EventEmitter,this.change=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"value",{get:function(){return this.val},set:function(e){this.val=e,this.onChange(e),this.onTouch()},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.value=e},we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"indeterminate",void 0),we([t.Input("value"),Ce("design:type",Object)],e.prototype,"val",void 0),we([t.Output(),Ce("design:type",Object)],e.prototype,"indeterminateChange",void 0),we([t.Output(),Ce("design:type",Object)],e.prototype,"change",void 0),e=n=we([t.Component({selector:"itss-checkbox",template:'<mat-checkbox [attr.id]="id"\n [name]="name"\n [(ngModel)]="value"\n [required]="required"\n [disabled]="disabled"\n [(indeterminate)]="indeterminate"\n (change)="change.emit($event)">\n {{ label }}\n</mat-checkbox>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:[":host{display:block;min-width:0;max-width:100%}:host ::ng-deep .mat-checkbox-disabled{cursor:not-allowed;opacity:.6}"]}),Ce("design:paramtypes",[])],e)}(),je=function(){function e(){}return e.prototype.ngOnInit=function(){},we([t.Input(),Ce("design:type",String)],e.prototype,"color",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"icon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"iconSize",void 0),e=we([t.Component({selector:"itss-icon",template:'<mat-icon *ngIf="icon"\n [style.color]="color"\n [matTooltip]="tooltip"\n [style.width.px]="iconSize"\n [style.height.px]="iconSize"\n matSuffix>\n {{ icon }}\n</mat-icon>\n\n<mat-icon *ngIf="svgIcon"\n [svgIcon]="svgIcon"\n [matTooltip]="tooltip"\n [style.color]="color"\n [style.width.px]="iconSize"\n [style.height.px]="iconSize"\n matSuffix>\n</mat-icon>\n',styles:[""]})],e)}(),Le=function(){function e(){this.tooltip="",this.maxlength=250,this.type="text",this.appearance="outline",this.styleClassFormField="",this.styleClassSuffix="",this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"value",{get:function(){return this.val},set:function(e){this.val=e,this.onChange(e),this.onTouch()},enumerable:!1,configurable:!0}),e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.value=e},we([t.ViewChild("input",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"_elementRef",void 0),we([t.ContentChild("suffix",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"suffixRef",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"maxlength",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"type",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"appearance",void 0),we([t.Input("value"),Ce("design:type",Object)],e.prototype,"val",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"prefix",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"styleClassFormField",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"styleClassSuffix",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"options",void 0),e=n=we([t.Component({selector:"itss-input-currency",template:'<div fxLayout="column">\n <mat-label *ngIf="label">\n {{ label }}\n <span *ngIf="required && label"> * </span>\n <gipi-helpful-tip *ngIf="tooltip && label"\n [tooltip]="tooltip">\n </gipi-helpful-tip>\n </mat-label>\n <mat-form-field [appearance]="appearance"\n [class]="styleClassFormField">\n <input matInput\n #input\n [name]="name"\n [placeholder]="placeholder"\n [required]="required"\n [disabled]="disabled"\n [(ngModel)]="value"\n (blur)="onTouch()"\n autocomplete="off"\n [type]="type"\n [maxlength]="maxlength"\n [options]="options"\n currencyMask>\n <span matPrefix\n *ngIf="prefix"\n class="input-currency-prefix">\n {{ prefix }}\n </span>\n <div matSuffix\n *ngIf="suffixRef"\n [class]="styleClassSuffix">\n <ng-template [ngTemplateOutlet]="suffixRef"> </ng-template>\n </div>\n </mat-form-field>\n</div>\n',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:[":host{display:block;min-width:0;max-width:100%;flex:1}mat-label span{color:#d14014!important}.input-currency-prefix{color:#8f8b8f;font-size:14px;letter-spacing:0;font-weight:500;padding:5px 5px 4px}"]})],e)}(),Be=function(){function e(){}return e.replaceAccents=function(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")},e.removeAccents=function(e){return e.replace(/[^\w\s]/gi,"")},e.isEmpty=function(e){return ze.isNull(e)||0===e.length},e.format=function(e,t){var n=e;e.includes("*")||(n=e.replace(/\D/g,""));var i=t.replace(/\D/g,"").replace(/9/g,"_"),o=n+i.substring(0,i.length-i.length),r=0;n="";for(var a=0;a<t.length;a++)isNaN(parseInt(t.charAt(a)))?n+=t.charAt(a):n+=o[r++];return n.indexOf("_")>-1&&(n=n.substring(0,n.indexOf("_"))),n},e.truncateWithEllipses=function(e,t){return e.trim().substring(0,t-1)+(e.trim().length>t)?"...":""},e.encodeBase64=function(e){if(this.isEmpty(e))return"";var t=(new TextEncoder).encode(e),n="";return t.forEach((function(e){n+=String.fromCharCode(e)})),btoa(n)},e.decodeBase64=function(e){if(this.isEmpty(e))return"";for(var t=atob(e),n=new TextDecoder,i=new Uint8Array(t.length),o=0;o<t.length;o++)i[o]=t.charCodeAt(o);return n.decode(i)},e.EMPTY="",e}(),Ye=te(),ze=function(){function e(){}return e.isNull=function(e){return null==e},e.isNewModel=function(t){if(e.isNull(t))return!0;var n=null;return"object"==typeof t&&(n=t.id),!He.isValid(n)},e.clone=function(t){return e.isNull(t)?new Object:Ye(t)},e.resolveFieldData=function(e,t){if(e&&t){if(this.isFunction(t))return t(e);if(-1===t.indexOf("."))return e[t];for(var n=t.split("."),i=e,o=0,r=n.length;o<r;++o){if(null==i)return null;i=i[n[o]]}return i}return null},e.isFunction=function(e){return!!(e&&e.constructor&&e.call&&e.apply)},e.equals=function(e,t,n){return n?this.resolveFieldData(e,n)===this.resolveFieldData(t,n):this.equalsByValue(e,t)},e.equalsByValue=function(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,i=Array.isArray(e),o=Array.isArray(t),r=void 0,a=void 0;if(i&&o){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!this.equalsByValue(e[r],t[r]))return!1;return!0}if(i!==o)return!1;var s=e instanceof Date,l=t instanceof Date;if(s!==l)return!1;if(s&&l)return e.getTime()===t.getTime();var p=e instanceof RegExp,d=t instanceof RegExp;if(p!==d)return!1;if(p&&d)return e.toString()===t.toString();var c=Object.keys(e);if((n=c.length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,c[r]))return!1;for(r=n;0!=r--;)if(a=c[r],!this.equalsByValue(e[a],t[a]))return!1;return!0}return e!=e&&t!=t},e.removeAccents=function(e){return e&&e.search(/[\xC0-\xFF]/g)>-1&&(e=e.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),e},e.merge=function(e,t){if(null!=e||null!=t)return null!=e&&"object"!=typeof e||null!=t&&"object"!=typeof t?null!=e&&"string"!=typeof e||null!=t&&"string"!=typeof t?t||e:[e||"",t||""].join(" "):_e(_e({},e||{}),t||{})},e.shallowEqual=function(e,t){if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(t),r=0;r<n.length;r++){var a=n[r];if(!o(a))return!1;if(e[a]!==t[a])return!1}return!0},e.hasPropertyInObj=function(t,n){return!e.isNull(t)&&!Be.isEmpty(n)&&Object.prototype.hasOwnProperty.call(t,n)},e}(),He=function(){function e(){}return e.isValid=function(e){return!ze.isNull(e)&&("number"==typeof e?e&&e>0:"string"==typeof e?!Be.isEmpty(e)&&e.length>0:void 0)},e}(),Ge=function(){function e(e,n,i){this.messageService=e,this.router=n,this.activatedRoute=i,this.loading=!1,this.loadingChange=new t.EventEmitter(!0)}return e.prototype.ngOnInit=function(){},e.prototype.ngOnDestroy=function(){},e.prototype.hasPermission=function(e){return!!JSON.parse(localStorage.getItem("token")).user.authorities.find((function(t){return t.authority.match(e)}))},e.prototype.handleError=function(e){throw this.loading=!1,this.loadingChange.emit(this.loading),String(e).includes("Unknown")&&(e=new Error("Ocorreu um erro ao realizar essa operação, tente novamente")),e instanceof Error&&(e=e.message),this.addErrorMessage(e),e},e.prototype.addSuccessMessage=function(e){this.messageService.add({icon:"check_circle",title:"Sucesso",message:e,type:"success"})},e.prototype.addErrorMessage=function(e){this.messageService.add({icon:"cancel",title:"Ocorreu um erro",message:e,type:"error"})},e.prototype.addWarningMessage=function(e){this.messageService.add({icon:"error",title:"Atenção",message:e,type:"warning"})},e.prototype.addInfoMessage=function(e){this.messageService.add({icon:"info",title:"Notificação",message:e,type:"info"})},e.prototype.download=function(e,t,n){var i=new Blob([e],{type:n}),o=document.createElement("a");if(void 0!==o.download){var r=URL.createObjectURL(i);o.setAttribute("href",r),o.setAttribute("download",t),o.style.visibility="hidden",document.body.appendChild(o),o.click(),document.body.removeChild(o)}},e.prototype.downloadContent=function(e){this.download(e.body,e.headers.get("content-disposition").split(";")[1].split("filename")[1].split("=")[1].trim(),e.headers.get("content-type"))},e.prototype.printArchive=function(e,t){var n=new Blob([e],{type:t}),i=URL.createObjectURL(n),o=document.createElement("iframe");document.body.appendChild(o),o.style.display="none",o.style.position="fixed",o.style.right="0",o.style.bottom="0",o.style.width="0",o.style.height="0",o.style.border="0",o.src=i,o.onload=function(){setTimeout((function(){o.focus(),o.contentWindow.print()}),1)}},e.prototype.UUIDIsValid=function(e){return He.isValid(e)},we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"loadingChange",void 0),e}(),Ue=function(){},qe=function(){},We=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return be(t,e),t}(qe),$e=function(){function e(e){this.message=e}return e.prototype.ngOnInit=function(){},e.ctorParameters=function(){return[{type:We,decorators:[{type:t.Inject,args:[a.MAT_SNACK_BAR_DATA]}]}]},e=we([t.Component({selector:"a-alert",template:'<div class="alert"\n [ngClass]="message.type"\n fxLayout="row"\n fxLayoutAlign=" center"\n fxLayoutGap="15px">\n\n <mat-icon *ngIf="message.icon">{{ message.icon }}</mat-icon>\n\n <div fxLayout="column"\n fxLayoutAlign="center start">\n <div class="title">{{ message.title }}</div>\n <span>{{ message.message }}</span>\n </div>\n</div>',styles:[""]}),xe(0,t.Inject(a.MAT_SNACK_BAR_DATA)),Ce("design:paramtypes",[We])],e)}(),Ke=function(){function e(){this.onDestroy=new ie.Subject}return e.prototype.ngOnDestroy=function(){this.onDestroy.next(),this.onDestroy.complete()},e.prototype.options=function(e,t){return{headers:t||this.buildHeaders(),params:e||this.buildParams()}},e.prototype.buildHeaders=function(){return new ne.HttpHeaders},e.prototype.buildParams=function(){return new ne.HttpParams},e.prototype.mapper=function(e){return e},e.prototype.handleError=function(e){return ie.throwError(e)},e}(),Xe=function(e){function n(t){var n=e.call(this)||this;return n.snackBar=t,n}return be(n,e),n.prototype.add=function(e){this.snackBar.openFromComponent($e,{verticalPosition:"top",horizontalPosition:"center",duration:8e3,data:e})},n.ctorParameters=function(){return[{type:a.MatSnackBar}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(W.MatSnackBar))},token:n,providedIn:"root"}),n=we([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[a.MatSnackBar])],n)}(Ke),Ze=function(e){function n(n,i,o){var r=e.call(this,n,i,o)||this;return r.tooltip="",r.appearance="outline",r.loading=!1,r.maximumSize=3,r.archiveChange=new t.EventEmitter,r.nativeFileChange=new t.EventEmitter,r}return be(n,e),n.prototype.validateExtensions=function(t){return 0!==this.extensions.filter((function(e){return t.name.toLowerCase().endsWith(e.toLowerCase())})).length||(e.prototype.addErrorMessage.call(this,"São permitidos somente arquivos do tipo: "+this.extensions.reduce((function(e,t){return e+", "+t}))),!1)},n.prototype.validateMaximumSize=function(t){return!(t.size>1e6*this.maximumSize)||(e.prototype.addErrorMessage.call(this,"O arquivo deve ter no máximo "+this.maximumSize+" MB."),!1)},n.prototype.uploadArchive=function(){var e=this,t=this.fileInput.nativeElement;t.value=Be.EMPTY,t.onchange=function(){var n=t.files[0];if(!ze.isNull(n)&&e.validateExtensions(n)&&e.validateMaximumSize(n)){var i=new Ue;i.name=n.name;var o=new FileReader,r=[];o.readAsArrayBuffer(n),o.onloadend=function(e){if(o.readyState===FileReader.DONE)for(var t=o.result,n=new Uint8Array(t),i=0;i<n.length;i++)r.push(n[i])},i.content=r,e.archiveChange.emit(i),e.nativeFileChange.emit(n)}},t.click()},n.prototype.downloadArchive=function(){},n.prototype.clearArchive=function(){this.fileInput.nativeElement.value=Be.EMPTY,this.archiveChange.emit(null)},n.ctorParameters=function(){return[{type:Xe},{type:s.Router},{type:s.ActivatedRoute}]},we([t.ViewChild("input",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],n.prototype,"_elementRef",void 0),we([t.ViewChild("fileInput",{static:!0}),Ce("design:type",t.ElementRef)],n.prototype,"fileInput",void 0),we([t.Input(),Ce("design:type",String)],n.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],n.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],n.prototype,"tooltip",void 0),we([t.Input(),Ce("design:type",String)],n.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],n.prototype,"required",void 0),we([t.Input(),Ce("design:type",Boolean)],n.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Object)],n.prototype,"appearance",void 0),we([t.Input(),Ce("design:type",Object)],n.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Array)],n.prototype,"extensions",void 0),we([t.Input(),Ce("design:type",Object)],n.prototype,"maximumSize",void 0),we([t.Output(),Ce("design:type",Object)],n.prototype,"archiveChange",void 0),we([t.Input(),Ce("design:type",Ue)],n.prototype,"archive",void 0),we([t.Output(),Ce("design:type",Object)],n.prototype,"nativeFileChange",void 0),n=we([t.Component({selector:"itss-input-file",template:'<div fxLayout="column">\n <mat-label *ngIf="label">\n {{ label }}\n <span *ngIf="required && label"> * </span>\n <gipi-helpful-tip *ngIf="tooltip && label"\n [tooltip]="tooltip">\n </gipi-helpful-tip>\n </mat-label>\n <mat-form-field [appearance]="appearance">\n <input matInput\n #input\n [name]="name"\n [placeholder]="placeholder"\n [required]="required"\n value="{{ archive?.name }}"\n disabled="true"\n autocomplete="off">\n\n <button mat-icon-button\n matSuffix\n matTooltip="Enviar"\n class="top"\n [disabled]="disabled"\n (click)="uploadArchive()"\n *ngIf="!loading && !archive">\n <mat-icon class="color-icon">file_upload</mat-icon>\n </button>\n\n \x3c!-- <button mat-icon-button--\x3e\n \x3c!-- matSuffix--\x3e\n \x3c!-- matTooltip="Baixar"--\x3e\n \x3c!-- class="top"--\x3e\n \x3c!-- [disabled]="disabled"--\x3e\n \x3c!-- (click)="downloadArchive()"--\x3e\n \x3c!-- *ngIf="!loading && archive">--\x3e\n \x3c!-- <mat-icon class="color-icon">file_download</mat-icon>--\x3e\n \x3c!-- </button>--\x3e\n\n <button mat-icon-button\n matSuffix\n matTooltip="Excluir"\n class="top"\n [disabled]="disabled"\n (click)="clearArchive()"\n *ngIf="!loading && archive">\n <mat-icon color="warn">close</mat-icon>\n </button>\n\n <mat-spinner matSuffix\n matTooltip="Carregando..."\n *ngIf="loading"\n mode="indeterminate"\n diameter="17">\n </mat-spinner>\n </mat-form-field>\n\n <input #fileInput\n type="file"\n style="display:none;">\n</div>',styles:[":host{display:block;min-width:0;max-width:100%;flex:1}mat-label span{color:#d14014!important}:host .color-icon{color:rgba(0,0,0,.54)!important}:host .top{font-size:18px!important}:host ::ng-deep .mat-icon-button{display:inline!important}"]}),Ce("design:paramtypes",[Xe,s.Router,s.ActivatedRoute])],n)}(Ge),Je=function(){function e(){}return e.isPositive=function(e){return!ze.isNull(e)&&e>0},e.isNegative=function(e){return!ze.isNull(e)&&e<0},e.format=function(e,t,n){return ze.isNull(e)||n&&"NUMBER"!==n?ze.isNull(e)||"PERCENT"!==n?Be.EMPTY:i.formatPercent(e/100,"pt",t):i.formatNumber(e,"pt",t)},e.onlyNumbers=function(e){return String(e).replace(/[^\d]/g,"")},e.isNumber=function(e){return null!=e&&!isNaN(e)&&"number"==typeof e},e}(),Qe=function(){function e(){}return e.removeCharacters=function(e){return Be.isEmpty(e)?"":e.replace(/\D/g,"")},e.maskLib=function(e,t,n){var i;if(void 0===n&&(n="BR"),Be.isEmpty(e))i=re.getExampleNumber(n,t);else{var o=re.parsePhoneNumberFromString(e,n);o&&(i=o)}if(i)return i.formatNational().replace(/\d/g,"0");throw new Error("Estado não suportado ou código de estado inválido.")},e.formatLib=function(e,t){void 0===t&&(t="BR");try{var n=re.parsePhoneNumberFromString(e,t);if(n)return n.formatNational();throw new Error("Número de telefone inválido.")}catch(e){throw new Error("Erro ao formatar o número de telefone: "+e.message)}},e.format=function(e,t){var n=Je.onlyNumbers(e),i="";if(Be.isEmpty(t)&&(t=this.mask(n)),"0*"===t)return n;for(var o=0,r=0;o<t.length&&r<n.length;o++)i+="0"===t.charAt(o)?n.charAt(r++):t.charAt(o);return i},e.mask=function(e){var t=this.removeCharacters(e.replace(/\D/g,""));if(t.length<8||t.length>12||!this.isPossible(t)&&!this.isValid(t))return"0*";if(["0900","0800","0700","0600","0500","0400","0300","0200","0100"].some((function(e){return t.startsWith(e)})))return"0000 000 0000";switch(t.length){case 8:return"0000-0000";case 9:return"0 0000-0000";case 10:return"(00) 0000-0000";case 11:return t.startsWith("0")?"(000) 0000-0000":"(00) 0 0000-0000";case 12:return"(000) 0 0000-0000";default:return"0*"}},e.isPossible=function(e,t){void 0===t&&(t="BR");try{var n=re.parsePhoneNumberFromString(e,t);return!!n&&n.isPossible()}catch(e){return!1}},e.isValid=function(e,t){void 0===t&&(t="BR");try{var n=re.parsePhoneNumberFromString(e,t);return!!n&&n.isValid()}catch(e){return!1}},e.getType=function(e,t){void 0===t&&(t="BR");try{var n=re.parsePhoneNumberFromString(e,t);return n?n.getType():null}catch(e){return null}},e.isEqual=function(e,t,n){void 0===n&&(n="BR");try{var i=re.parsePhoneNumberFromString(e,n),o=re.parsePhoneNumberFromString(t,n);return!(!i||!o)&&i.isEqual(o)}catch(e){return!1}},e}(),et=function(){function e(e,n){this.elementRef=e,this._changeDetectorRef=n,this._inputSubject$=new ie.BehaviorSubject(""),this._maskPhone$=new ie.BehaviorSubject(""),this.tooltip="",this.styleClassFormField="",this.styleClassSuffix="",this.readonly=!1,this.hidePasswordManager=!1,this.maxlength=250,this.type="text",this.autocomplete="off",this.appearance="outline",this.phone=!1,this.loading=!1,this.dropSpecialCharacters=!0,this.upperCase=!1,this.lowerCase=!1,this.spaceDrop=!1,this.focus=new t.EventEmitter,this.blur=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){var t=null;t=this.lowerCase?this.checkLowercase(this.checkSpaceDrop(e)):this.checkUppercase(this.checkSpaceDrop(e)),this._value=t,this.value!==e&&this._changeDetectorRef.detectChanges(),this.onChange(this._value),this.onTouch()},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.phone&&this._inputSubject$.pipe(oe.debounceTime(300)).subscribe((function(t){Be.isEmpty(t)||e._maskPhone$.next(Qe.mask(t))}))},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.phone&&!Be.isEmpty(e)&&(this._inputSubject$.next(e),this._changeDetectorRef.detectChanges()),this.value=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.detectChanges()},e.prototype.checkSpaceDrop=function(e){return this.spaceDrop&&e?e.replace(/\s/g,""):e},e.prototype.checkUppercase=function(e){return this.upperCase&&e?e.toUpperCase():e},e.prototype.checkLowercase=function(e){return this.lowerCase&&e?e.toLowerCase():e},e.prototype.onFocus=function(e){this.disabled||this.focus.emit(e)},e.prototype.onBlur=function(e){this.disabled||(this.blur.emit(e),this.onTouch())},e.prototype.onInputPhoneKeydown=function(e){if(this.phone){var t=Qe.removeCharacters(e.target.value),n=e.key;/\d/.test(n)&&(t.trim().length<8||t.trim().length>12)&&this._maskPhone$.next("0*")}},e.prototype.onInputPhoneChange=function(e){this.phone&&this._inputSubject$.next(e)},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},we([t.ViewChild("input",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"_elementRef",void 0),we([t.ContentChild("suffix",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"suffixRef",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"styleClassFormField",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"styleClassSuffix",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"readonly",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"hidePasswordManager",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"maxlength",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"type",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"min",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"max",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"autocomplete",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"appearance",void 0),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"value",null),we([t.Input(),Ce("design:type",String)],e.prototype,"mask",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"phone",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"dropSpecialCharacters",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"upperCase",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"lowerCase",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"patterns",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"spaceDrop",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"focus",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"blur",void 0),e=n=we([t.Component({selector:"itss-input",template:'<div fxLayout="column">\n <mat-label *ngIf="label">\n {{ label }}\n <span *ngIf="required && label"> * </span>\n <gipi-helpful-tip *ngIf="tooltip && label"\n [tooltip]="tooltip">\n </gipi-helpful-tip>\n </mat-label>\n\n <ng-container *ngIf="hidePasswordManager && (type === \'password\')">\n <input style="opacity: 0;position: absolute;">\n <input type="password"\n style="opacity: 0;position: absolute;">\n </ng-container>\n\n <mat-form-field [appearance]="appearance"\n [class]="styleClassFormField">\n <input matInput\n #input\n *ngIf="mask || phone"\n [autocomplete]="autocomplete"\n upperCase\n lowerCase\n spaceDrop\n [enabledUpperCase]="upperCase"\n [enabledLowerCase]="lowerCase"\n [spaceDrop]="spaceDrop"\n [name]="name"\n [readonly]="readonly"\n [placeholder]="placeholder"\n [required]="required"\n [disabled]="disabled"\n [(ngModel)]="value"\n [type]="type"\n [min]="min"\n [max]="max"\n [maxlength]="maxlength"\n [mask]="phone ? (_maskPhone$ | async) : mask"\n [dropSpecialCharacters]="dropSpecialCharacters"\n [patterns]="patterns"\n (focus)="onFocus($event)"\n (blur)="onBlur($event)"\n (keydown)="onInputPhoneKeydown($event)"\n (ngModelChange)="onInputPhoneChange($event)">\n\n <input matInput\n #input\n *ngIf="!mask && !phone"\n [name]="name"\n [readonly]="readonly"\n [placeholder]="placeholder"\n [required]="required"\n [disabled]="disabled"\n [(ngModel)]="value"\n [autocomplete]="autocomplete"\n upperCase\n [enabledUpperCase]="upperCase"\n [type]="type"\n [min]="min"\n [max]="max"\n [maxlength]="maxlength"\n [mask]="\'\'"\n spaceDrop\n [spaceDrop]="spaceDrop"\n (focus)="onFocus($event)"\n (blur)="onBlur($event)">\n\n <mat-spinner matPrefix\n *ngIf="loading"\n mode="indeterminate"\n diameter="17">\n </mat-spinner>\n\n <div *ngIf="suffixRef"\n matSuffix\n [class]="styleClassSuffix">\n <ng-template [ngTemplateOutlet]="suffixRef"> </ng-template>\n </div>\n </mat-form-field>\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:[":host{display:block;min-width:0;max-width:100%;flex:1}mat-label span{color:#d14014!important}"]}),Ce("design:paramtypes",[t.ElementRef,t.ChangeDetectorRef])],e)}(),tt=function(){function e(){}return e.prototype.ngOnInit=function(){},we([t.Input(),Ce("design:type",String)],e.prototype,"message",void 0),e=we([t.Component({selector:"itss-loading-overlay",template:'<div class="overlay">\n <img class="logo"\n src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAACQCAYAAAD+4c5bAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1B\n AACxjwv8YQUAAA+ASURBVHgB7Z0JkFxVFYbPTBKyDyEmSlgDqAiKcUmCmF1FFkEEt4CIaKlguVUpCYtFsRVLFUEIEJZyRcUK4pZSlCULCRoQA5IIBAoICTGEACFkl2z\n N/+XeHt7MdM90T7++/Wb6/lV/9aTTM/36/X3uPffcc85tsAwjl8vtoYd9xPeLh4oHi/uKe4t7iQNEXtNT7CE2ig0l/On864q99o0ZM2YsmzVr1gEDBgzY06oAfbZdW7\n Zs2bhy5coVS5cuHZF/vpSLDwZdJDf4veIocaT4PvEdYi9768bnb37+hjb6X0/zs2wV540cOfKeIUOGXN63b9/+DQ0NjZYi9FlzPG7YsOG1OXPmHKa//wr/7mk1hq5rk\n B6OFE8wJ8SBYh9zIvS22l1jbtGiRTdKFBs0aNBFspRBjY2NPSwlSIDdX6DevXv3NfclvJ9/1+TDSgQu5nDxRHGMeJA5SxhoToRMQPeML/JN48aN67Vr167zm5qa9kpT\n FP8ePPTN/zuoIF6IseIZ4gfE4WKTueEok9AN26nrnj569Ogd+ueFWEpPwdJF83AbRBA/N7xbPEkcb26SZrJM9dtWLXhRZowZM6anHs+TpQzuIVgVUFVBdPHMA3hFx4k\n TxXHiMOuC8KJcP2HChEZ5R+f369evSZqkfv+qJogu/m16mCAeK37S3GTdpSFRduhzXTd+/PiGnTt3njNw4MC9JEovSxGpC+Ktgpv/MfF0cbRlaKKuFHlRJk2alJPLOp\n WJPk1LSVUQXShe0lHiKeLx4v7WDSFRtiPK2LFjd0qU89MUJTVB/HqCdcS55tYV/a0bw1vKDRMnTuy5adOmqQxfabjEqQiiC8N1ZeL+vjlRUl3VZhVelGtlKTt69ep1c\n Z8+fQZKlIoiBhUL4i3jNPEH4iFWZ/CiTJcopsXjhfK+BlUiShoW8k3x2+IBVqeQKLtwiUeNGpWTGJfgElsnUZEguojLzYlRlYhoV0J+nTJixIhtw4YNu0qiDLROoNOC\n 6M2n6uECi2gGlqKHm/gZUTSnDCh3+Cp78pUQ/UWCgudaREEsXrz4FrnDF8r7el3zSq6c3y1LEAmBW0cc6jJxsEUUBJaycOHCGdu3b79CYZYNEmVnqb9b8pDlxdhPvFo\n 8wiLaRX5Fr9gX3td5/fv337OUxWM5FkI45GzxQ1Yn64xKgSjz58+frrjXVRs3blxXiqWUdGOlNBHao8WvWGIzJaJjEGaZN2/edTt27LiS7VqJs6O913coiA8Wsgl/qn\n XR0HmtgaUsWLDgRv04rSNLKcVC2FolLHKkRXQaWMrcuXOv04/TNm/evFGWUlCUdgXxO33sabDT18ciKoJE2SZRrpUWV2IphUTpyELeJR5j3WBzKSvIW4oWjFfLUta3H\n r6KumGyjn7mdvqOsWyCVfE2kUmSD1XWAqwDkJe1ze96VgWzZ8/+1eTJk5tWr179NXOfYTfa84tJSviI+HbLBhBgs/mbJW4USS5bL/7fnChpgRu0ztxQXTXMnDlzxZQp\n U+7Tj1s6fLG+HWeJL+ayARZZL4s3i6eLw3MuzbQq0N/uK56QC4PHxePz792zyAUdZm4rttZuLlbwL/EacQ7jr3VzFBuyWATW0s1laHpYvFgiLLA6QhtBZB1klRMeOch\n qg6fEmeLt4otWZyhkIaw7cHdDp+7gJWEN08R54hZya63OUEgQhqrQ1sGNv1e8VVwgITZbnaLFwjDnskfY7wi918F88RNxvsTYYHWM1hZCiQAVSyGHq8XmxLhXYmy0Ok\n fr0AkVSyGtg0XdneZc2roXA7QWhJqNQRYOs8Q/ii9YxG40C8Lq1NxkHmoD6lVzru0qn60RYS0thFX5UHO1fSHwT/Hhep/EWyMpyHssXII0wcCfi5ssogWSgpCXG2oT6\n jnxUbY2LaIFkoKQmxtq/rjDonUUROs5JJSF/MPcsBXRCklBhliY8mSGqQfFNyyiDZKCEDYJUSb9P/GNegwcloKkIKTPh6gbfz6KURxJQRiuQgiy3iKKIilIqK4KWy2i\n KJKChBpGQkUCuiSSgpBaEyKm1KlSr3pBUhByg9LMbSqG/SyiKJKCsB8RRBBFlvvkXKumiFZICkI4PETeExW7JFFktkdWLZEU5GULF86gi1zMpi+ApCDkQG2zMKBTULS\n QAkgKQkg81BrhU+KBcR5pi6Qgy82lcIYApQ4kGA+wiBZICvKkOU8rFOiRMjRaSUskBcE6nrdwwxa1i3QRykr9SSbQLIjP/Fhi4ayEUD+Na47KuVrGCGubl/W4+JqFA1\n ku3xXH5lyniLpHa0EeNbceCbFiB4hAYdA3xCPjfNJ2hxDreMJcSlCosZ3ECkog1oj0nPp3PSfOtRDEN+FaZG4lHXKypdr10/566M62mJpuq0MUqlOfLz5jYeJaSdAB+\n 3Pm+nB9VqLsbXWIQkkNy8X/miuJ3tfCgnI6FoyIsa9EuVuPy2QtHZcNp4v2DnupKtoI4octSso+bOEFAcwpDJk0vGFuudsPoyt0bS9ZGHBfatLUs1jaDxaCxzXJahfe\n 4H2JedHAf464gAlfjxs8800Edlq6XiHDOGm1n7AaoKAg+iau04d/RD8+bc5SagWGDfZPTvHEE/uPiMUsF1eaEyetTg644SQMTjbnZARHe4lxC80dw0NVVVaa6RNuOda\n zW6JoNyBZyVpzNRyPWkQwdJQ6ytjNCQcMW3FDKQDa7Zflq5vuF/9qEUFQSou/Z8U/i6ssouooRRBcS9zNX1i4oGPdokNBfKb6MvEP4m8toqooqW+vD/TRpeeX4lKLqB\n pK7lAtUVh8MXTRanyNRVQF5bYMp1Dz7+ItFssKqoKyBPHzCTuKN4t/MVcvGKuhUkTZNYV+N2+NYl0/MheZ5ShV6hNjOk8KKHfIaoaEYX1yifiQuTK1aCkpoNOCAIlCR\n PiH5jr6sB8f1ykVoiJBgEQhKeJS8S5zjY1jZ58KULEgQKKs0MN55lpmxCrbCpCKIECirDaXoHCRuYS7iE4gNUGARKFDww3mTuKhj2Jsn1EmUhUkASzkCnMWE0MtZaAq\n gvjY1wvmIsRkuM8Q11pEh6iWhexeQPoNLupOfiyeKd5mpRzNUMeoevcfrEWreupOCLnQCYjkCZIUSO8hhTSu8BMI0Y4pHwMjMPmYxGFO4QiKQ80lwn3UXDfUGH6xQII\n kgSemh8UcZGIu055cYs4rocX5O8Xh5tpv1KU4wQXJg5RVc4I8IXHohnqIJ0ctcQgZLTjIeCEXa2gtrzUkMvEh/WkIlNMtkTgk5SECotDxAVHIsyWDEcuhgrevJ9dPtm\n FaydE9/N8dYpaRZOtaww9pL3g+wHM5d94UDgDJ30P9z+T+Yln5xmtp3EDuB2JwZMcHrYpeaHsXkHn4dc1qz6rCW+hY8WcW5vxGHJ7mWpzg34Csw1voY+LdFgbMpc09Z\n qIghcFNet3CgG3w5g4aUZDCYF461MKghfhRkMJgHhltYcD8+Gr+H1GQVvAeHdYRogqZ4YrOGc198KMgbYErzaHMITxQctteStblR0ES8J0kWHieaGGAR7cy+UQUpCU4\n EI1C00MsDBiunks+UZOFob6JHDzGl2FdVvrA++Y3B4unWrhmzwjyfPKJoIL4IYHqVvZCEISo7z16XJMBYTg/ZaKFqzrm8yLIs8kngwlCr15znX8uNtcUAHGoO6F7A7U\n nK61G8P26Pi6eYeE6b7Obmt+4a0aQOcTHhxgOvmPurMR8IJDnzhQn1aqJmb82Sr/ps3K4hQNrjyf9NkQzqi6IPjDvMVz8snhSgZdgLfTLmuTnlmDwa46R4lnmOjeEdH\n LYzn6o9ZMhLgC/nt4lX7fiR2Kwjfslc53lggwZeh8mbhaAZ4onW9jGzri7DFdLWv9HVecQ/w2kGdpXze0zFANfjC/412zX77EPsrVaE73foWS4PFv8ooU/sYGm1U/55\n gwtUDVB/FDFmMxQNbaEX2FeYWJlt/A34m36G6+medah/h6fd7B/H+azURb+PBO+ZJyQ/aCFhD78nuI54tZc+Vgv3iWOshShv3eAOE18JVc7kBZ1qdjPQkFv1kM8WVye\n qwx0JfqTOD5XQYNM/e5h4i3iWnFXrrZ4RCzaaahaQxZDAp5LpVugeF2fEU8QV+mD/N7cPjveydpCw1nOCcfvHWGu6f9x5oamLKQVMVwt9CyI1AXRDcFzwWuZYOmB6yT\n BAff4dHNeCt929thZYLGngAPB5MwcxDxB9gieE0NDVnK88KooLS/aGzlVQXJuXGSBRapo2m4k19rkCejLSJoQCQJ88xr9a3r7x6wl2nGNJAU+2F4b3NQE8UMFDSzJdt\n /fqo89rGu1jCIp8G/mOuEVRZoLQ7qYft5cnm5sG94SZJXQcGGJrKPd9rupCCLrIFLK+M5kHuoI8K4EUopotPByRy+sWJCcW2yxqcMkPtgiWoOYFf3G2gQSCyENC2H/g\n KEKLyjWerQEw9MscxN5SRVkFQki6xiuh6nmRMlK59IsgfDI9dbBRJ5Ep70sP1ThUZGhEQ9kaQtq96ebO6685D76lYQjKBGgA3bdFte0A4anC8RfS4yy2lhVsg6hsKbJ \n IlqDKALzxk87cw5KJXMIXUpjB6CWQAzCI99r6OShNJW0Z6J4k3LnDRYByGAnNHKcrwjrFCp1e6eI15jztesZ5OaSOXNaqe5tMVTaL4sh60bxWjHU2R5ZAwLcKV4mrrM\n KkYp3lHM5VywOOQJvpNWP18U8equ59rmrGlI4zCy1GydRCJuwd/4tc2GU7hzTYmTgHJPbze3/v5JWQkZq4Xdd0GsShUmNXTyyKtgT2ce6H+jVwqkRvxMf0OfuMGBYDl\n IfWnIu9YcUGyK/5Fqxfdpdiv7zexp0zntaYmyylJH6jcq3JZcwTHYQSyErsBYHjKUFkqKJSxG1xTqWpZmelERVJ9+cy5tl95CdRA4YY44ZYl0HLPQ4ZYiheLb4WLWP8\n AviDfm9dpKsqUxCFDJCiIFlsWCIyZmbTqonCQlYxVxxc4iSiaDuac5lMx5tLkpMVmO+VUYW5hhcVoYmWt3SOOA+8Q6JELTLak3WCz4hgvUKCWPspdD5h/QdakVCpnbm\n RaBOfLm5FE8KiOaVG6VNCzVfwEkc5hSGMYYzGr7gKrOGYf7BY0vzGhlycDq42UzKrKyxhvvF+yTCM1ZjZGpFLXFowcRcM9I/UjuC1eRTfnraWy2ZGq3wHMS+NTd+l/+\n ZG48IbBLhplK1xdxA9iMWsSordY4g0yEOCYSlkFaEE8D+C+ub5PCGY0DYZvex3+a8ovzRrGQH0uKJwCeRacLinBK0OUsCRGQcbwKtBhhbkIbcygAAAABJRU5ErkJggg=="\n alt="GIPI Sistemas" />\n <div class="shadow"></div>\n <div class="text"\n *ngIf="!message">\n Aguarde\n <span class="status-dot">.</span>\n <span class="status-dot">.</span>\n <span class="status-dot">.</span>\n </div>\n <div class="text"\n *ngIf="message">\n {{ message }}\n </div>\n</div>\n',styles:[".overlay{position:absolute;top:-20px;width:100%;height:102%;background-color:rgba(0,0,0,.28);z-index:1}.logo{display:block;width:70px;position:absolute;margin:auto;top:0;bottom:0;left:-265px;right:0;-webkit-animation:.5s infinite alternate logo;animation:.5s infinite alternate logo}@-webkit-keyframes logo{0%{top:60px;transform:scaleX(1.7)}40%{transform:scaleX(.8)}100%{top:0}}@keyframes logo{0%{top:60px;transform:scaleX(1.7)}40%{transform:scaleX(.8)}100%{top:0}}.shadow{width:70px;height:4px;position:absolute;margin:auto;top:175px;bottom:0;left:-265px;right:0;border-radius:50%;background-color:rgba(0,0,0,.5);transform-origin:50%;z-index:1;-webkit-filter:blur(4px);filter:blur(4px);-webkit-animation:.5s infinite alternate shadow;animation:.5s infinite alternate shadow}@-webkit-keyframes shadow{0%{transform:scaleX(1.7)}40%{transform:scaleX(1);opacity:.7}100%{transform:scaleX(.8);opacity:.4}}@keyframes shadow{0%{transform:scaleX(1.7)}40%{transform:scaleX(1);opacity:.7}100%{transform:scaleX(.8);opacity:.4}}.text{display:flex;align-items:center;justify-content:center;width:50%;position:absolute;margin:auto;top:35%;bottom:0;left:-13%;right:0;z-index:1;font-size:26px;color:#fff;-webkit-animation:1s linear forwards fadeIn;animation:1s linear forwards fadeIn}.status-dot{-webkit-animation:1s steps(1,start) infinite dot1;animation:1s steps(1,start) infinite dot1}.status-dot:nth-child(2){-webkit-animation:1s steps(1,start) infinite dot2;animation:1s steps(1,start) infinite dot2}.status-dot:nth-child(3){-webkit-animation:1s steps(1,start) infinite dot3;animation:1s steps(1,start) infinite dot3}@-webkit-keyframes fadeIn{67%,from{opacity:0}83.3%,to{opacity:1}}@keyframes fadeIn{67%,from{opacity:0}83.3%,to{opacity:1}}@-webkit-keyframes dot1{from{visibility:hidden}33%,to{visibility:visible}}@keyframes dot1{from{visibility:hidden}33%,to{visibility:visible}}@-webkit-keyframes dot2{33%,from{visibility:hidden}67%,to{visibility:visible}}@keyframes dot2{33%,from{visibility:hidden}67%,to{visibility:visible}}@-webkit-keyframes dot3{67%,from{visibility:hidden}to{visibility:visible}}@keyframes dot3{67%,from{visibility:hidden}to{visibility:visible}}"]}),Ce("design:paramtypes",[])],e)}(),nt=function(){function e(){}return e.prototype.ngOnInit=function(){},e=we([t.Component({selector:"itss-loading",template:'<div class="container">\n <mat-spinner mode="indeterminate"\n strokeWidth="6"\n diameter="60"\n color="primary"></mat-spinner>\n</div>\n',styles:[".container{display:flex;align-items:center;justify-content:center;flex:0 1 100vh}"]})],e)}();var it,ot,rt,at,st=(it=[],{get:ot=function(e){return e&&parseInt(e.style.zIndex,10)||0},set:function(e,t,n){t&&(t.style.zIndex=String(function(e,t){var n=it.length>0?it[it.length-1]:{key:e,value:t},i=n.value+(n.key===e?0:t)+1;return it.push({key:e,value:i}),i}(e,n)))},clear:function(e){var t;e&&(t=ot(e),it=it.filter((function(e){return e.value!==t})),e.style.zIndex="")},getCurrent:function(){return it.length>0?it[it.length-1].value:0}}),lt=function(){function e(){this.ripple=!1,this.overlayOptions={},this.translation={startsWith:"Começa com",contains:"Contém",notContains:"Não contém",endsWith:"Termina com",equals:"É igual a",notEquals:"Não é igual",noFilter:"Sem filtro",lt:"Menor que",lte:"Menor que ou igual a",gt:"Maior que",gte:"Maior que ou igual a",is:"É",isNot:"Não é",before:"Antes",after:"Depois",dateIs:"A data é",dateIsNot:"A data não é",dateBefore:"A data é anterior",dateAfter:"A data é depois",clear:"Limpar",apply:"Aplicar",matchAll:"Corresponder a todos",matchAny:"Corresponder a qualquer",addRule:"Adicionar regra",removeRule:"Remover regra",accept:"Sim",reject:"Não",choose:"Escolher",upload:"Envio",cancel:"Cancelar",dayNames:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayNamesMin:["Do","Se","Te","Qa","Qi","Se","Sá"],monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],dateFormat:"dd/mm/yyyy",firstDayOfWeek:0,today:"Hoje",weekHeader:"Cabeçalho da semana",weak:"Fraco",medium:"Médio",strong:"Forte",passwordPrompt:"Insira uma senha"},this.zIndex={modal:2,overlay:1e3,menu:1,tooltip:2},this.translationSource=new ie.Subject,this.translationObserver=this.translationSource.asObservable()}return e.prototype.getTranslation=function(e){return this.translation[e]},e.prototype.setTranslation=function(e){this.translation=_e(_e({},this.translation),e),this.translationSource.next(this.translation)},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e=we([t.Injectable({providedIn:"root"})],e)}(),pt=function(){function e(){this.clickSource=new ie.Subject,this.clickObservable=this.clickSource.asObservable()}return e.prototype.add=function(e){e&&this.clickSource.next(e)},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e=we([t.Injectable({providedIn:"root"})],e)}(),dt=function(){function e(){}return e.addClass=function(e,t){e.classList?e.classList.add(t):e.className+=" "+t},e.addMultipleClasses=function(e,t){if(e.classList)for(var n=t.trim().split(" "),i=0;i<n.length;i++)e.classList.add(n[i]);else for(n=t.split(" "),i=0;i<n.length;i++)e.className+=" "+n[i]},e.removeClass=function(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")},e.hasClass=function(e,t){return e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className)},e.siblings=function(e){return Array.prototype.filter.call(e.parentNode.children,(function(t){return t!==e}))},e.find=function(e,t){return Array.from(e.querySelectorAll(t))},e.findSingle=function(e,t){return e?e.querySelector(t):null},e.index=function(e){for(var t=e.parentNode.childNodes,n=0,i=0;i<t.length;i++){if(t[i]==e)return n;1==t[i].nodeType&&n++}return-1},e.indexWithinGroup=function(e,t){for(var n=e.parentNode?e.parentNode.childNodes:[],i=0,o=0;o<n.length;o++){if(n[o]==e)return i;n[o].attributes&&n[o].attributes[t]&&1==n[o].nodeType&&i++}return-1},e.relativePosition=function(e,t){var n,i,o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),r=t.offsetHeight,a=t.getBoundingClientRect(),s=this.getViewport();a.top+r+o.height>s.height?(n=-1*o.height,e.style.transformOrigin="bottom",a.top+n<0&&(n=-1*a.top)):(n=r,e.style.transformOrigin="top"),i=o.width>s.width?-1*a.left:a.left+o.width>s.width?-1*(a.left+o.width-s.width):0,e.style.top=n+"px",e.style.left=i+"px"},e.absolutePosition=function(e,t,n){void 0===n&&(n=!0);var i,o,r=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),a=r.height,s=r.width,l=t.offsetHeight,p=t.offsetWidth,d=t.getBoundingClientRect(),c=this.getWindowScrollTop(),u=this.getWindowScrollLeft(),h=this.getViewport();d.top+l+a>h.height?(i=d.top+c-a,e.style.transformOrigin="bottom",i<0&&(i=c)):(n&&(i=l+d.top+c),e.style.transformOrigin="top"),o=d.left+s>h.width?Math.max(0,d.left+u+p-s):d.left+u,e.style.top=i+"px",e.style.left=o+"px"},e.getParents=function(e,t){return void 0===t&&(t=[]),null===e.parentNode?t:this.getParents(e.parentNode,t.concat([e.parentNode]))},e.getScrollableParents=function(e){var t,n,i,o,r=[];if(e){var a=this.getParents(e),s=/(auto|scroll)/,l=function(e){var t=window.getComputedStyle(e,null);return s.test(t.getPropertyValue("overflow"))||s.test(t.getPropertyValue("overflowX"))||s.test(t.getPropertyValue("overflowY"))};try{for(var p=ke(a),d=p.next();!d.done;d=p.next()){var c=d.value,u=1===c.nodeType&&c.dataset.scrollselectors;if(u){var h=u.split(",");try{for(var g=(i=void 0,ke(h)),m=g.next();!m.done;m=g.next()){var f=m.value,y=this.findSingle(c,f);y&&l(y)&&r.push(y)}}catch(e){i={error:e}}finally{try{m&&!m.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}}9!==c.nodeType&&l(c)&&r.push(c)}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}}return r},e.getHiddenElementOuterHeight=function(e){e.style.visibility="hidden",e.style.display="block";var t=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",t},e.getHiddenElementOuterWidth=function(e){e.style.visibility="hidden",e.style.display="block";var t=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",t},e.getHiddenElementDimensions=function(e){var t={};return e.style.visibility="hidden",e.style.display="block",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",t},e.scrollInView=function(e,t){var n=getComputedStyle(e).getPropertyValue("borderTopWidth"),i=n?parseFloat(n):0,o=getComputedStyle(e).getPropertyValue("paddingTop"),r=o?parseFloat(o):0,a=e.getBoundingClientRect(),s=t.getBoundingClientRect().top+document.body.scrollTop-(a.top+document.body.scrollTop)-i-r,l=e.scrollTop,p=e.clientHeight,d=this.getOuterHeight(t);s<0?e.scrollTop=l+s:s+d>p&&(e.scrollTop=l+s-p+d)},e.fadeIn=function(e,t){e.style.opacity=0;var n=+new Date,i=0,o=function(){i=+e.style.opacity.replace(",",".")+((new Date).getTime()-n)/t,e.style.opacity=i,n=+new Date,+i<1&&(window.requestAnimationFrame&&requestAnimationFrame(o)||setTimeout(o,16))};o()},e.fadeOut=function(e,t){var n=1,i=50/t,o=setInterval((function(){(n-=i)<=0&&(n=0,clearInterval(o)),e.style.opacity=n}),50)},e.getWindowScrollTop=function(){var e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)},e.getWindowScrollLeft=function(){var e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)},e.matches=function(e,t){var n=Element.prototype;return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||function(e){return-1!==[].indexOf.call(document.querySelectorAll(e),this)}).call(e,t)},e.getOuterWidth=function(e,t){var n=e.offsetWidth;if(t){var i=getComputedStyle(e);n+=parseFloat(i.marginLeft)+parseFloat(i.marginRight)}return n},e.getHorizontalPadding=function(e){var t=getComputedStyle(e);return parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)},e.getHorizontalMargin=function(e){var t=getComputedStyle(e);return parseFloat(t.marginLeft)+parseFloat(t.marginRight)},e.innerWidth=function(e){var t=e.offsetWidth,n=getComputedStyle(e);return t+=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)},e.width=function(e){var t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)},e.getInnerHeight=function(e){var t=e.offsetHeight,n=getComputedStyle(e);return t+=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)},e.getOuterHeight=function(e,t){var n=e.offsetHeight;if(t){var i=getComputedStyle(e);n+=parseFloat(i.marginTop)+parseFloat(i.marginBottom)}return n},e.getHeight=function(e){var t=e.offsetHeight,n=getComputedStyle(e);return t-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)},e.getWidth=function(e){var t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth)},e.getViewport=function(){var e=window,t=document,n=t.documentElement,i=t.getElementsByTagName("body")[0];return{width:e.innerWidth||n.clientWidth||i.clientWidth,height:e.innerHeight||n.clientHeight||i.clientHeight}},e.getOffset=function(e){var t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}},e.replaceElementWith=function(e,t){var n=e.parentNode;if(!n)throw new Error("Não é possível substituir o elemento");return n.replaceChild(t,e)},e.getUserAgent=function(){return navigator.userAgent},e.isIE=function(){var e=window.navigator.userAgent;if(e.indexOf("MSIE ")>0)return!0;if(e.indexOf("Trident/")>0){e.indexOf("rv:");return!0}return e.indexOf("Edge/")>0},e.isIOS=function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream},e.isAndroid=function(){return/(android)/i.test(navigator.userAgent)},e.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0},e.appendChild=function(e,t){if(this.isElement(t))t.appendChild(e);else{if(!t.el||!t.el.nativeElement)throw new Error("Não é possível anexar "+t+" para "+e);t.el.nativeElement.appendChild(e)}},e.removeChild=function(e,t){if(this.isElement(t))t.removeChild(e);else{if(!t.el||!t.el.nativeElement)throw new Error("Não é possível remover "+e+" a partir de "+t);t.el.nativeElement.removeChild(e)}},e.removeElement=function(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)},e.isElement=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName},e.calculateScrollbarWidth=function(e){if(e){var t=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(t.borderLeftWidth)-parseFloat(t.borderRightWidth)}if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;var n=document.createElement("div");n.className="p-scrollbar-measure",document.body.appendChild(n);var i=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),this.calculatedScrollbarWidth=i,i},e.calculateScrollbarHeight=function(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;var e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);var t=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=t,t},e.invokeElementMethod=function(e,t,n){e[t].apply(e,n)},e.clearSelection=function(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}},e.getBrowser=function(){if(!this.browser){var e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser},e.resolveUserAgent=function(){var e=navigator.userAgent.toLowerCase(),t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e.isInteger=function(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},e.isHidden=function(e){return null===e.offsetParent},e.getFocusableElements=function(t){var n,i,o=e.find(t,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]):not(.p-disabled)'),r=[];try{for(var a=ke(o),s=a.next();!s.done;s=a.next()){var l=s.value;"none"!=getComputedStyle(l).display&&"hidden"!=getComputedStyle(l).visibility&&r.push(l)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return r},e.generateZIndex=function(){return this.zindex=this.zindex||100,++this.zindex},e.zindex=100,e.calculatedScrollbarWidth=null,e.calculatedScrollbarHeight=null,e}(),ct=function(){function e(e,t){void 0===t&&(t=function(){}),this.element=e,this.listener=t}return e.prototype.bindScrollListener=function(){this.scrollableParents=dt.getScrollableParents(this.element);for(var e=0;e<this.scrollableParents.length;e++)this.scrollableParents[e].addEventListener("scroll",this.listener)},e.prototype.unbindScrollListener=function(){if(this.scrollableParents)for(var e=0;e<this.scrollableParents.length;e++)this.scrollableParents[e].removeEventListener("scroll",this.listener)},e.prototype.destroy=function(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null},e}(),ut=function(){function e(e,n,i,o,r,a){this.el=e,this.renderer=n,this.cd=i,this.zone=o,this.config=r,this.overlayService=a,this.dismissable=!0,this.closeIconSize=15,this.appendTo="body",this.autoZIndex=!0,this.baseZIndex=0,this.focusOnShow=!0,this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.onShow=new t.EventEmitter,this.onHide=new t.EventEmitter,this.overlayVisible=!1,this.render=!1,this.isOverlayAnimationInProgress=!1,this.selfClick=!1}return e.prototype.ngOnInit=function(){},e.prototype.ngAfterContentInit=function(){},e.prototype.bindDocumentClickListener=function(){var e=this;!this.documentClickListener&&this.dismissable&&this.zone.runOutsideAngular((function(){var t=dt.isIOS()?"touchstart":"click",n=e.el?e.el.nativeElement.ownerDocument:"document";e.documentClickListener=e.renderer.listen(n,t,(function(t){e.container.contains(t.target)||e.target===t.target||e.target.contains(t.target)||e.selfClick||e.zone.run((function(){e.hide()})),e.selfClick=!1,e.cd.markForCheck()}))}))},e.prototype.unbindDocumentClickListener=function(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null,this.selfClick=!1)},e.prototype.toggle=function(e,t){var n=this;this.isOverlayAnimationInProgress||(this.overlayVisible?(this.hasTargetChanged(e,t)&&(this.destroyCallback=function(){n.show(null,t||e.currentTarget||e.target)}),this.hide()):this.show(e,t))},e.prototype.show=function(e,t){this.isOverlayAnimationInProgress||(this.target=t||e.currentTarget||e.target,this.overlayVisible=!0,this.render=!0,this.cd.markForCheck())},e.prototype.onOverlayClick=function(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.selfClick=!0},e.prototype.onContentClick=function(){this.selfClick=!0},e.prototype.hasTargetChanged=function(e,t){return null!=this.target&&this.target!==(t||e.currentTarget||e.target)},e.prototype.appendContainer=function(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):dt.appendChild(this.container,this.appendTo))},e.prototype.restoreAppend=function(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.container)},e.prototype.align=function(){this.autoZIndex&&st.set("overlay",this.container,this.baseZIndex+this.config.zIndex.overlay),dt.absolutePosition(this.container,this.target);var e=dt.getOffset(this.container),t=dt.getOffset(this.target),n=0;e.left<t.left&&(n=t.left-e.left),this.container.style.setProperty("--overlayArrowLeft",n+"px"),e.top<t.top&&dt.addClass(this.container,"overlay-panel-flipped")},e.prototype.onAnimationStart=function(e){var t=this;"open"===e.toState&&(this.container=e.element,this.onShow.emit(null),this.appendContainer(),this.align(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.focusOnShow&&this.focus(),this.overlayEventListener=function(e){t.container&&t.container.contains(e.target)&&(t.selfClick=!0)},this.overlaySubscription=this.overlayService.clickObservable.subscribe(this.overlayEventListener)),this.isOverlayAnimationInProgress=!0},e.prototype.onAnimationEnd=function(e){switch(e.toState){case"void":this.destroyCallback&&(this.destroyCallback(),this.destroyCallback=null),this.overlaySubscription&&this.overlaySubscription.unsubscribe();break;case"close":this.autoZIndex&&st.clear(this.container),this.overlaySubscription&&this.overlaySubscription.unsubscribe(),this.onContainerDestroy(),this.onHide.emit({}),this.render=!1}this.isOverlayAnimationInProgress=!1},e.prototype.focus=function(){var e=dt.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngular((function(){setTimeout((function(){return e.focus()}),5)}))},e.prototype.hide=function(){this.isOverlayAnimationInProgress||(this.overlayVisible=!1,this.cd.markForCheck())},e.prototype.onCloseClick=function(e){this.hide(),e.preventDefault()},e.prototype.onWindowResize=function(e){this.overlayVisible&&!dt.isTouchDevice()&&this.hide()},e.prototype.bindDocumentResizeListener=function(){this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener)},e.prototype.unbindDocumentResizeListener=function(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)},e.prototype.bindScrollListener=function(){var e=this;this.scrollHandler||(this.scrollHandler=new ct(this.target,(function(){e.overlayVisible&&e.hide()}))),this.scrollHandler.bindScrollListener()},e.prototype.unbindScrollListener=function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},e.prototype.onContainerDestroy=function(){this.cd.destroyed||(this.target=null),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener()},e.prototype.ngOnDestroy=function(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&st.clear(this.container),this.cd.destroyed||(this.target=null),this.destroyCallback=null,this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.overlaySubscription&&this.overlaySubscription.unsubscribe()},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2},{type:t.ChangeDetectorRef},{type:t.NgZone},{type:lt},{type:pt}]},we([t.Input(),Ce("design:type",Boolean)],e.prototype,"dismissable",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showCloseIcon",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"closeIconSize",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"style",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"styleClass",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"appendTo",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"autoZIndex",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaCloseLabel",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"baseZIndex",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"focusOnShow",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"showTransitionOptions",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"hideTransitionOptions",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onShow",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onHide",void 0),we([t.ContentChild("overlayContent",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"overlayContentRef",void 0),we([t.ContentChild("overlayFooter",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"overlayFooterRef",void 0),e=we([t.Component({selector:"itss-overlay-panel",template:'<div *ngIf="render"\n [ngClass]="\'overlay-panel component\'"\n [ngStyle]="style"\n [class]="styleClass"\n (click)="onOverlayClick($event)"\n [@animation]="{value: (overlayVisible ? \'open\': \'close\'), params: { showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions }}"\n (@animation.start)="onAnimationStart($event)"\n (@animation.done)="onAnimationEnd($event)">\n <div class="overlay-panel-content"\n (click)="onContentClick()"\n (mousedown)="onContentClick()">\n <ng-container *ngTemplateOutlet="overlayContentRef"></ng-container>\n </div>\n <div class="overlay-panel-footer"\n (click)="onContentClick()"\n (mousedown)="onContentClick()">\n <div class="overlay-panel-footer-divisory"></div>\n <div class="overlay-panel-footer-content">\n <ng-container *ngTemplateOutlet="overlayFooterRef"></ng-container>\n </div>\n </div>\n <button *ngIf="showCloseIcon"\n type="button"\n class="overlay-panel-close link"\n (click)="onCloseClick($event)"\n (keydown.enter)="hide()"\n [attr.aria-label]="ariaCloseLabel">\n X\n </button>\n</div>',animations:[ae.trigger("animation",[ae.state("void",ae.style({transform:"scaleY(0.8)",opacity:0})),ae.state("close",ae.style({opacity:0})),ae.state("open",ae.style({transform:"translateY(0)",opacity:1})),ae.transition("void => open",ae.animate("{{showTransitionParams}}")),ae.transition("open => close",ae.animate("{{hideTransitionParams}}"))])],changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,host:{class:"itss-element"},styles:['.component{font-size:1rem;font-weight:400;box-sizing:border-box}.component:disabled{opacity:.6}.overlay-panel{background:#fff;color:#696969;border:0;border-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,.3);position:absolute;margin-top:10px;top:0;left:0;display:flex;flex-direction:column}.overlay-panel:after,.overlay-panel:before{bottom:100%;left:calc(var(--overlayArrowLeft,0) + 1.25rem);content:" ";height:0;width:0;position:absolute;pointer-events:none}.overlay-panel:after{border:8px solid rgba(255,255,255,0);border-bottom-color:#fff;margin-left:-8px}.overlay-panel:before{border:10px solid rgba(255,255,255,0);border-bottom-color:#f2f2f2;margin-left:-10px}.overlay-panel .overlay-panel-content{padding:1.25rem 1.25rem .5rem}.overlay-panel .overlay-panel-footer .overlay-panel-footer-divisory{content:"";border-top:1px solid #ddd;width:100%}.overlay-panel .overlay-panel-footer .overlay-panel-footer-content{padding:1.25rem}.overlay-panel .overlay-panel-close{background:#696969;color:#fff;width:2rem;height:2rem;transition:background-color .2s,color .2s,box-shadow .2s;border-radius:50%;position:absolute;top:-1rem;right:-1rem;display:flex;justify-content:center;align-items:center;overflow:hidden}.overlay-panel .overlay-panel-close:enabled:hover{background:#919191;color:#fff}.overlay-panel-shifted:after,.overlay-panel-shifted:before{left:auto;right:1.25em;margin-left:auto}.overlay-panel-flipped{margin-top:0;margin-bottom:10px}.overlay-panel-flipped:after,.overlay-panel-flipped:before{bottom:auto;top:100%}.overlay-panel.overlay-panel-flipped:after,.overlay-panel.overlay-panel-flipped:before{border-top-color:#fff;border-bottom-color:transparent}.link{font-size:1rem;border-radius:6px;font-weight:700;text-align:left;margin:0;padding:0;border:none;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.link:focus{outline:0;outline-offset:0;box-shadow:0 0 0 .2rem #a3a3a3}']}),Ce("design:paramtypes",[t.ElementRef,t.Renderer2,t.ChangeDetectorRef,t.NgZone,lt,pt])],e)}(),ht=function(){function e(e,t,n){var i=this;this.overlay=e,this.content=t,this.data=n,this.afterClosed=new ie.Subject,this.afterClosed$=this.afterClosed.asObservable(),e.backdropClick().subscribe((function(){i._close("backdropClick",null)}))}return e.prototype.close=function(e){this._close("close",e)},e.prototype._close=function(e,t){this.overlay.dispose(),this.afterClosed.next({type:e,data:t}),this.afterClosed.complete()},e}(),gt=function(){function e(e){this.popoverRef=e,this.renderMethod="component"}return e.prototype.ngOnInit=function(){this.content=this.popoverRef.content,"string"==typeof this.content&&(this.renderMethod="text"),this.content instanceof t.TemplateRef&&(this.renderMethod="template",this.context={close:this.popoverRef.close.bind(this.popoverRef),data:this.popoverRef.data})},e.ctorParameters=function(){return[{type:ht}]},e=we([t.Component({template:'<ng-container [ngSwitch]="renderMethod">\n <div *ngSwitchCase="\'text\'"\n [innerHTML]="content"></div>\n <ng-container *ngSwitchCase="\'template\'">\n <ng-container *ngTemplateOutlet="content; context: context"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase="\'component\'">\n <ng-container *ngComponentOutlet="content"></ng-container>\n </ng-container>\n</ng-container>\n',styles:[""]}),Ce("design:paramtypes",[ht])],e)}(),mt=function(){function e(){this.property="description",this.entities=[],this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,e.prototype.ngOnInit=function(){},e.prototype.getPropertyValue=function(e){return e&&"string"!=typeof e&&e[this.property]},Object.defineProperty(e.prototype,"value",{get:function(){return this.val},set:function(e){this.val=e,this.onChange(e),this.onTouch()},enumerable:!1,configurable:!0}),e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.value=e},we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"property",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"entities",void 0),we([t.Input("value"),Ce("design:type",Object)],e.prototype,"val",void 0),e=n=we([t.Component({selector:"itss-radio-group-entity",template:'<div fxLayout="column">\n <mat-label>\n {{ label }}\n <span *ngIf="required && label">*</span>\n </mat-label>\n <mat-radio-group [(ngModel)]="value"\n [required]="required"\n [disabled]="disabled">\n <mat-radio-button *ngFor="let entity of entities"\n [value]="entity">\n {{ getPropertyValue(entity) }}\n </mat-radio-button>\n </mat-radio-group>\n</div>\n',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:[":host{display:block;min-width:0;max-width:100%;flex:1}mat-label span{color:#f44336!important}"]})],e)}(),ft=function(){function e(){}return e.uniqueId=function(e){for(var t=[],n=0;n<2;n++){var i=(65536*(1+Math.random())|0).toString(16).substring(1);t.push(i)}return e+"-"+t.join("-")},e}(),yt=function(){function e(e){this.changeDetectorRef=e,this.enumList=[],this.isGroupbox=!1,this.isInput=!1,this.selectionChange=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,e.prototype.ngOnInit=function(){var e=this,t=Object.keys(this.enum).map((function(t){return{key:t,value:e.enum[t]}})).sort(this.sort);if(ze.isNull(this.valuesExclud))this.enumList=t;else for(var n=function(e){i.valuesExclud.some((function(n){return n===t[e].key}))||i.enumList.push(t[e])},i=this,o=0;o<t.length;o++)n(o);this.changeDetectorRef.detectChanges()},Object.defineProperty(e.prototype,"value",{get:function(){return this.val},set:function(e){this.val=e,this.onChange(e),this.onTouch()},enumerable:!1,configurable:!0}),e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.value=e},e.prototype.changeRadioGroup=function(e){var t=e.value;this.selectionChange.emit(t)},e.prototype.validateOmitByKey=function(e){return!!ze.isNull(this.valuesOmit)||!this.valuesOmit.some((function(t){return t===e}))},e.prototype.getId=function(e){return ft.uniqueId(e)},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input("groupbox"),Ce("design:type",Boolean)],e.prototype,"isGroupbox",void 0),we([t.Input("input"),Ce("design:type",Boolean)],e.prototype,"isInput",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"enum",void 0),we([t.Input("value"),Ce("design:type",Object)],e.prototype,"val",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"sort",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"valuesExclud",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"valuesOmit",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectionChange",void 0),e=n=we([t.Component({selector:"itss-radio-group-enum",template:'<div fxLayout="column"\n *ngIf="!isGroupbox">\n <mat-label class="label">\n {{ label }}\n <span *ngIf="required && label">*</span>\n </mat-label>\n <mat-radio-group [(ngModel)]="value"\n [required]="required"\n [disabled]="disabled"\n (change)="changeRadioGroup($event)"\n [ngClass]="isInput ? \'type-input\' : \'\'">\n <div *ngFor="let e of enumList">\n <mat-radio-button [disabled]="!validateOmitByKey(e.key)"\n [id]="getId(e.key)"\n [name]="e.value"\n [value]="e.key">\n {{ e.value }}\n </mat-radio-button>\n </div>\n </mat-radio-group>\n</div>\n\n<fieldset *ngIf="isGroupbox">\n <legend class="legend">\n {{ label }}\n <span *ngIf="required && label">*</span>\n </legend>\n <mat-radio-group class="content-selection"\n [(ngModel)]="value"\n [required]="required"\n [disabled]="disabled"\n (change)="changeRadioGroup($event)">\n <div *ngFor="let e of enumList">\n <mat-radio-button [disabled]="!validateOmitByKey(e.key)"\n [id]="getId(e.key)"\n [name]="e.key"\n [value]="e.key">\n {{ e.value }}\n </mat-radio-button>\n </div>\n </mat-radio-group>\n</fieldset>\n',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],changeDetection:t.ChangeDetectionStrategy.OnPush,host:{class:"itss-element"},styles:[":host{display:block;min-width:0;max-width:100%;flex:1}.label>span{color:#f44336!important}fieldset{margin-inline:0!important;padding:0!important;padding-inline:0!important;padding-block:0!important;border-radius:10px!important;color:#696969!important;border:1px solid #e1e5e4!important}.legend{font-size:16px!important;color:#696969!important}.legend>span{color:#f44336!important}.content-selection{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-around!important;height:20px!important;margin-bottom:15px!important;width:100%!important}.content-selection>div{height:30px;margin-top:-10px}.content-selection .radio-button{font-size:13px!important;color:#696969!important}:host ::ng-deep .type-input{display:flex;align-items:center;justify-content:space-around;border:1px solid #dddfe1;margin-top:4px;margin-left:-35px;border-radius:5px;min-height:39px}:host ::ng-deep .type-input>div{max-height:20px}:host ::ng-deep .type-input>div .mat-radio-button{margin-top:0!important}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef])],e)}(),vt=function(){function e(e){var n=this;this._changeDetectorRef=e,this.valueSearchCtrl=new r.FormControl(""),this.totalOptions=0,this.subscriptions=[],this.searching=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this._options=[],this.closeIcon="close",this.multiple=!1,this.hideFieldSearch=!1,this.showClear=!1,this.debounceTime=1e3,this.valuesExclud=[],this.appearance="outline",this.property="description",this.trackyBy="id",this.initLoaded=!0,this.infiniteScroll=!0,this.modelChange=new t.EventEmitter,this.selectionChange=new t.EventEmitter,this.searchChange=new t.EventEmitter,this.addChange=new t.EventEmitter,this.openedChange=new t.EventEmitter,this.trackByOption=function(e,t){return n.trackyBy?t[n.trackyBy]:t},this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"paramNextBatch",{get:function(){return this._paramNextBatch},set:function(e){this._paramNextBatch=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"model",{get:function(){return this.modelValue},set:function(e){this.modelValue=e,this.modelChange.emit(this.modelValue),this.onChange(this.modelValue),this.onTouch(this.modelValue)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(e){this._options=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollViewportHeight",{get:function(){return Ot.isEmpty(this.options)?0:3*this.options.length},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscriptions.push(this.valueSearchCtrl.valueChanges.pipe(oe.map((function(e){return e})),oe.debounceTime(this.debounceTime),oe.distinctUntilChanged()).subscribe((function(t){e.onSearchChange(t)})))},e.prototype.ngOnChanges=function(e){ze.isNull(e.model)||e.model.isFirstChange()||Ot.isEmpty(this.options)&&!ze.isNull(this.model)&&(this.multiple?this.options=this.model:this.options.push(this.model))},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.writeValue=function(e){this.model=e},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.compareFn=function(e,t){return e&&t&&e.id===t.id},e.prototype.getPropertyValue=function(e){return ze.isNewModel(e)?Be.EMPTY:ze.isNull(this.propertyFn)?this.getValue(e,this.property):this.propertyFn(e)},e.prototype.getValue=function(e,t){for(var n=t.split("."),i=e,o=0;o<n.length;o++)if((i=Reflect.get(i,n[o]))&&o===n.length-1)return i},e.prototype.onSelectionChange=function(e){this.selectionChange.emit(e)},e.prototype.onSearchChange=function(e){this.matSelect.panelOpen&&(this.searchChange.emit(e),this.model=null,this.onSelectionChange(this.model),this.multiple&&this.onToggleAllSelection(!1),this.page=null,this.options=[],this.onLoadMoreOptions(!1))},e.prototype.onLoadMoreOptions=function(e,t){return void 0===t&&(t=!0),Ie(this,void 0,void 0,(function(){var n,i=this;return Se(this,(function(o){switch(o.label){case 0:return this.infiniteScroll&&t?ze.isNull(this.nextBatchFn)?(console.error("A função nextBatchFn é obrigatória e não foi informada"),[2]):this.searching?[2]:Ot.isEmpty(this.options)||ze.isNull(this.page)||!Ot.isEmpty(this.valuesExclud)||this.options.length!==this.page.totalElements?(this.cdkVirtualScrollViewPort.scrollToIndex(0,"smooth"),this.cdkVirtualScrollViewPort.checkViewportSize(),this.searching=!0,n=0,e?n=ze.isNull(this.page)?1:this.page.number+1:(this.page=null,this.options=[]),[4,this.nextBatchFn(this.valueSearchCtrl.value,n,this.paramNextBatch).then((function(e){if(i.page=e,!ze.isNull(i.page)&&!Ot.isEmpty(i.page.content)){if(!Ot.isEmpty(i.valuesExclud))for(var t=function(e){var t=i.page.content.findIndex((function(t){return i.valuesExclud[e][i.trackyBy]===t[i.trackyBy]}));i.page.content.splice(t,1)},n=0;n<i.valuesExclud.length;n++)t(n);i.options=Ee(i.options,i.page.content)}if(!ze.isNull(i.model)&&!i.multiple){var o=i.options.find((function(e){return ze.equals(e,i.model)}));ze.isNull(o)&&i.options.push(i.model)}i.searching=!1})).finally((function(){i.searching=!1}))]):[2]:[2];case 1:return o.sent(),[2]}}))}))},e.prototype.onToggleAllSelection=function(e){!this.multiple||ze.isNull(this.matSelect)||this.searching||(e?this.matSelect.options.forEach((function(e){return e.select()})):this.matSelect.options.forEach((function(e){return e.deselect()})),this.onToggleIndeterminateAllSelection(),this._changeDetectorRef.markForCheck())},e.prototype.onToggleIndeterminateAllSelection=function(){if(this.multiple&&!ze.isNull(this.matSelect)){var e=this.matSelect.options.filter((function(e){return e.selected}));this.toggleAllCheckboxChecked=e.length>0,this.toggleAllCheckboxIndeterminate=e.length>0&&e.length<this.matSelect.options.length,e.length<=0&&(this.model=null,this.onSelectionChange(this.model))}},e.prototype.showClearOptionButton=function(){var e=!1;return this.multiple&&Array.isArray(this.model)?e=!this.model||this.model&&this.model.length<=0:this.multiple||ze.isNull(this.model)||(e=ze.isNewModel(this.model)),this.showClear&&!e&&!this.disabled&&!this.searching},e.prototype.removeOption=function(){this.multiple&&this.onToggleAllSelection(!1),this.model=null,this.onSelectionChange(this.model),this.options=[]},e.prototype.haveSelected=function(){var e=this.model;return!!e&&He.isValid(e.id)},e.prototype.onClickAdd=function(){Array.isArray(this.model)&&!Ot.isEmpty(this.model)?this.addChange.emit(this.model):this.addChange.emit([])},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},we([t.ViewChild("matSelect",{static:!1}),Ce("design:type",H.MatSelect)],e.prototype,"matSelect",void 0),we([t.ViewChild(v.CdkVirtualScrollViewport,{static:!1}),Ce("design:type",v.CdkVirtualScrollViewport)],e.prototype,"cdkVirtualScrollViewPort",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"initAllCheckboxChecked",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"closeIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"closeSvgIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showButtonAdd",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"multiple",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"iconPrefix",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIconPrefix",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideFieldSearch",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showClear",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"debounceTime",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"valuesExclud",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"appearance",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"classSelectPanel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"property",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"trackyBy",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"initLoaded",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"infiniteScroll",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"propertyFn",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"nextBatchFn",void 0),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"paramNextBatch",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"model",null),we([t.Input(),Ce("design:type",Array),Ce("design:paramtypes",[Array])],e.prototype,"options",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"modelChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectionChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"searchChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"addChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"openedChange",void 0),e=n=we([t.Component({selector:"itss-select-entity-paged",template:'<div fxLayout="column"\n [attr.id]="id"\n [attr.name]="name">\n <mat-label *ngIf="label">\n {{ label }}\n <span *ngIf="required && label">*</span>\n </mat-label>\n <mat-form-field #formFieldSelect\n [appearance]="appearance"\n class="mat-form-field-select">\n <mat-icon *ngIf="iconPrefix || svgIconPrefix"\n matPrefix\n [svgIcon]="svgIconPrefix ? svgIconPrefix : \'\'">\n {{ !svgIconPrefix && iconPrefix ? iconPrefix : \'\' }}\n </mat-icon>\n\n <mat-select #matSelect\n [placeholder]="placeholder"\n [compareWith]="compareFn"\n [(ngModel)]="model"\n [required]="required"\n [disabled]="disabled"\n [multiple]="multiple"\n disableOptionCentering="true"\n [panelClass]="\'select-position \' + classSelectPanel"\n itssInfiniteScroll\n (infiniteScroll)="onLoadMoreOptions(true)"\n [complete]="options?.length === page?.totalElements"\n (selectionChange)="onSelectionChange($event.value)"\n (openedChange)="initLoaded && onLoadMoreOptions(false, $event); openedChange.emit($event)">\n <mat-option *ngIf="!hideFieldSearch">\n <itss-input-search placeholderLabel="Pesquisar..."\n noEntriesFoundLabel="Nenhum registro encontrado"\n [enableClearOnEscapePressed]="true"\n [disableScrollToActiveOnOptionsChanged]="true"\n [preventHomeEndKeyPropagation]="true"\n [disableScrollToActiveOnOptionsChanged]="true"\n [enableClearOnEscapePressed]="true"\n [clearSearchInput]="true"\n [formControl]="valueSearchCtrl"\n [closeIcon]="closeIcon"\n [closeSvgIcon]="closeSvgIcon"\n [searching]="searching"\n [showToggleAllCheckbox]="multiple"\n [toggleAllCheckboxChecked]="toggleAllCheckboxChecked"\n [toggleAllCheckboxIndeterminate]="toggleAllCheckboxIndeterminate"\n (toggleAll)="onToggleAllSelection($event)">\n </itss-input-search>\n </mat-option>\n\n <mat-select-trigger *ngIf="multiple">\n {{ modelValue ? getPropertyValue(modelValue[0]) : \'\' }}\n <span *ngIf="modelValue?.length > 1"\n class="mat-select-additional-selection">\n (+{{ modelValue.length - 1 }} {{ modelValue?.length === 2 ? \'outro\' : \'outros\' }})\n </span>\n </mat-select-trigger>\n\n <mat-option *ngIf="!multiple; else optionSelectedMultiple"\n [value]="model"\n [style.height.px]="0">\n {{ getPropertyValue(model) }}\n </mat-option>\n\n <ng-template #optionSelectedMultiple>\n <mat-option *ngFor="let m of model; trackBy: trackByOption"\n [value]="m"\n [style.height.px]="0">\n {{ getPropertyValue(m) }}\n </mat-option>\n </ng-template>\n\n <cdk-virtual-scroll-viewport itemSize="5"\n [style.height.em]="scrollViewportHeight"\n class="virtual-scroll-viewport">\n <mat-option *cdkVirtualFor="let option of options; trackBy: trackByOption"\n [value]="option"\n (click)="onToggleIndeterminateAllSelection()">\n {{ getPropertyValue(option) }}\n </mat-option>\n </cdk-virtual-scroll-viewport>\n\n <div *ngIf="searching"\n class="mat-select-search-loading">\n <div class="dot-pulse"> </div>\n </div>\n\n <mat-option *ngIf="showButtonAdd && !searching"\n class="mat-option-button-add"\n [disabled]="true"\n aria-hidden="true">\n <gipi-button label="Adicionar"\n gipi-primary\n (click)="onClickAdd(); $event.stopPropagation()"\n fxFlex>\n </gipi-button>\n </mat-option>\n </mat-select>\n\n <mat-icon *ngIf="showClearOptionButton()"\n matSuffix\n (click)="removeOption(); $event.stopPropagation()"\n matTooltip="Remover selecionado">\n close\n </mat-icon>\n </mat-form-field>\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:[':host{display:block;min-width:0;max-width:100%;flex:1}mat-label span{color:#f44336!important}:host ::ng-deep .mat-form-field-appearance-outline .mat-form-field-suffix{position:absolute!important;right:35px!important;top:30%!important}:host ::ng-deep .mat-form-field-appearance-outline .mat-form-field-suffix .mat-icon{height:18px!important;width:18px!important;font-size:18px!important;color:#696969!important}:host ::ng-deep .mat-form-field-appearance-legacy .mat-form-field-suffix{position:absolute!important;right:30px!important;top:35%!important}:host ::ng-deep .mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{height:18px!important;width:18px!important;font-size:18px!important;color:#696969!important}:host ::ng-deep .mat-select-value{padding-right:30px!important}::ng-deep .virtual-scroll-viewport{width:100%!important;overflow:hidden}::ng-deep .virtual-scroll-viewport .cdk-virtual-scroll-content-wrapper{width:100%!important}.mat-select-additional-selection{opacity:.75;font-size:.75em;margin-left:16px}.mat-select-search-loading{background-color:#fff;display:flex;align-items:center;justify-content:center;height:3em}.dot-pulse{position:relative;left:-9999px;width:5px;height:5px;border-radius:50%;background-color:#f3465c;color:#f3465c;box-shadow:9999px 0 0 -5px;-webkit-animation:1.5s linear .25s infinite dot-pulse;animation:1.5s linear .25s infinite dot-pulse}.dot-pulse::after,.dot-pulse::before{content:"";display:inline-block;position:absolute;top:0;width:5px;height:5px;border-radius:50%;background-color:#f3465c;color:#f3465c}.dot-pulse::before{box-shadow:9984px 0 0 -5px;-webkit-animation:1.5s linear infinite dot-pulse-before;animation:1.5s linear infinite dot-pulse-before}.dot-pulse::after{box-shadow:10014px 0 0 -5px;-webkit-animation:1.5s linear .5s infinite dot-pulse-after;animation:1.5s linear .5s infinite dot-pulse-after}@-webkit-keyframes dot-pulse-before{0%,100%,60%{box-shadow:9984px 0 0 -5px}30%{box-shadow:9984px 0 0 2px}}@keyframes dot-pulse-before{0%,100%,60%{box-shadow:9984px 0 0 -5px}30%{box-shadow:9984px 0 0 2px}}@-webkit-keyframes dot-pulse{0%,100%,60%{box-shadow:9999px 0 0 -5px}30%{box-shadow:9999px 0 0 2px}}@keyframes dot-pulse{0%,100%,60%{box-shadow:9999px 0 0 -5px}30%{box-shadow:9999px 0 0 2px}}@-webkit-keyframes dot-pulse-after{0%,100%,60%{box-shadow:10014px 0 0 -5px}30%{box-shadow:10014px 0 0 2px}}@keyframes dot-pulse-after{0%,100%,60%{box-shadow:10014px 0 0 -5px}30%{box-shadow:10014px 0 0 2px}}::ng-deep .mat-select-arrow{border:solid #6d6f73!important;border-width:0 2px 2px 0!important;display:inline-block!important;padding:3px!important;transform:rotate(45deg)!important;margin:0 4px!important}::ng-deep .mat-option-button-add{position:absolute;bottom:0;left:0;width:100%;z-index:100;background-color:#fff;border-radius:4px}']}),Ce("design:paramtypes",[t.ChangeDetectorRef])],e)}(),bt=function(){function e(e,n,i,o,r){void 0===o&&(o=null),void 0===r&&(r=null),this.matSelect=e,this.changeDetectorRef=n,this._viewportRuler=i,this.matOption=o,this.matFormField=r,this.label="Adicionar novo registro",this.addIcon="add_circle",this.ariaLabel="Botão de adicionar registro",this.onClick=new t.EventEmitter(!0)}return e.prototype.ngOnInit=function(){},e.prototype.onClickButton=function(e){this.onClick.emit(e),e.stopPropagation()},e.ctorParameters=function(){return[{type:a.MatSelect,decorators:[{type:t.Inject,args:[a.MatSelect]}]},{type:t.ChangeDetectorRef},{type:v.ViewportRuler},{type:a.MatOption,decorators:[{type:t.Optional},{type:t.Inject,args:[a.MatOption]}]},{type:a.MatFormField,decorators:[{type:t.Optional},{type:t.Inject,args:[a.MatFormField]}]}]},we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"addIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"addSvgIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Output("click"),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),e=we([t.Component({selector:"itss-select-button-add",template:'<div #innerSelectButtonAdd\n class="mat-select-button-add-inner mat-typography mat-datepicker-content mat-tab-header"\n (click)="onClickButton($event)">\n\n</div>\n',styles:[""]}),xe(0,t.Inject(a.MatSelect)),xe(3,t.Optional()),xe(3,t.Inject(a.MatOption)),xe(4,t.Optional()),xe(4,t.Inject(a.MatFormField)),Ce("design:paramtypes",[a.MatSelect,t.ChangeDetectorRef,v.ViewportRuler,a.MatOption,a.MatFormField])],e)}(),_t=function(){function e(e,n,i,o,r){void 0===o&&(o=null),void 0===r&&(r=null),this.matSelect=e,this.changeDetectorRef=n,this._viewportRuler=i,this.matOption=o,this.matFormField=r,this.label="Mostrar mais",this.ariaLabel="Botão para exibir mais resultados",this.onClick=new t.EventEmitter(!0)}return e.prototype.ngOnInit=function(){},e.prototype.onClickButton=function(e){this.onClick.emit(e),e.stopPropagation()},e.ctorParameters=function(){return[{type:a.MatSelect,decorators:[{type:t.Inject,args:[a.MatSelect]}]},{type:t.ChangeDetectorRef},{type:v.ViewportRuler},{type:a.MatOption,decorators:[{type:t.Optional},{type:t.Inject,args:[a.MatOption]}]},{type:a.MatFormField,decorators:[{type:t.Optional},{type:t.Inject,args:[a.MatFormField]}]}]},we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Output("click"),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),e=we([t.Component({selector:"itss-select-button-next-batch",template:'<div #innerSelectButtonNextBatch\n class="mat-select-button-next-inner mat-typography mat-datepicker-content mat-tab-header"\n (click)="onClickButton($event)">\n <itss-icon icon="keyboard_arrow_down"\n [iconSize]="18">\n </itss-icon>\n {{ label }}\n</div>\n',styles:[""]}),xe(0,t.Inject(a.MatSelect)),xe(3,t.Optional()),xe(3,t.Inject(a.MatOption)),xe(4,t.Optional()),xe(4,t.Inject(a.MatFormField)),Ce("design:paramtypes",[a.MatSelect,t.ChangeDetectorRef,v.ViewportRuler,a.MatOption,a.MatFormField])],e)}(),wt=function(){function e(){}return e=we([t.Directive({selector:"[itssSelectNoEntriesFound]"})],e)}(),xt=function(){function e(){}return e=we([t.Directive({selector:"[itssSelectSearchClear]"})],e)}(),Ct=["clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],It=new t.InjectionToken("itss-select_search-default-options"),St=function(){function e(e,n,i,o,a,s){var l=this;void 0===o&&(o=null),void 0===a&&(a=null),this.matSelect=e,this.changeDetectorRef=n,this._viewportRuler=i,this.matOption=o,this.matFormField=a,this.placeholderLabel="Pesquisar...",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Nenhum resultado encontrado",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.showToggleAllCheckbox=!1,this._toggleAllCheckboxChecked=!1,this._toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toggleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new t.EventEmitter,this.toggleAllIndeterminate=new t.EventEmitter,this._options$=new ie.BehaviorSubject(null),this.optionsList$=this._options$.pipe(oe.switchMap((function(e){return e?e.changes.pipe(oe.map((function(e){return e.toArray()})),oe.startWith(e.toArray())):ie.of(null)}))),this.optionsLength$=this.optionsList$.pipe(oe.map((function(e){return e?e.length:0}))),this._formControl=new r.FormControl(""),this._showNoEntriesFound$=ie.combineLatest([this._formControl.valueChanges,this.optionsLength$]).pipe(oe.map((function(e){var t=Oe(e,2),n=t[0],i=t[1];return l.noEntriesFoundLabel&&n&&i===l.getOptionsLengthOffset()}))),this._onDestroy=new ie.Subject,this.onTouched=function(e){},this.applyDefaultOptions(s)}var n;return n=e,Object.defineProperty(e.prototype,"value",{get:function(){return this._formControl.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_options",{get:function(){return this._options$.getValue()},set:function(e){this._options$.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInsideMatOption",{get:function(){return!!this.matOption},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"toggleAllCheckboxChecked",{get:function(){return this._toggleAllCheckboxChecked},set:function(e){this._toggleAllCheckboxChecked=e,this.toggleAll.emit(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"toggleAllCheckboxIndeterminate",{get:function(){return this._toggleAllCheckboxIndeterminate},set:function(e){this._toggleAllCheckboxIndeterminate=e,this.toggleAllIndeterminate.emit(e)},enumerable:!1,configurable:!0}),e.prototype.applyDefaultOptions=function(e){var t,n;if(e)try{for(var i=ke(Ct),o=i.next();!o.done;o=i.next()){var r=o.value;e.hasOwnProperty(r)&&(this[r]=e[r])}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},e.prototype.ngOnInit=function(){var e=this;this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("aria-hidden","true")):console.error("<itss-input-search> deve ser colocado dentro de um elemento <mat-option>"),this.matSelect.openedChange.pipe(oe.delay(1),oe.takeUntil(this._onDestroy)).subscribe((function(t){t?(e.updateInputWidth(),e.disableInitialFocus||e._focus()):e.clearSearchInput&&e._reset()})),this.matSelect.openedChange.pipe(oe.take(1),oe.switchMap((function(){e._options=e.matSelect.options;var t=e._options.toArray()[e.getOptionsLengthOffset()];return e._options.changes.pipe(oe.tap((function(){setTimeout((function(){var n=e._options.toArray(),i=n[e.getOptionsLengthOffset()],o=e.matSelect._keyManager;o&&e.matSelect.panelOpen&&(!!e.matSelect.compareWith(t,i)&&o.activeItem&&n.find((function(t){return e.matSelect.compareWith(t,o.activeItem)}))||o.setFirstItemActive(),setTimeout((function(){e.updateInputWidth()})));t=i}))})))}))).pipe(oe.takeUntil(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(oe.takeUntil(this._onDestroy)).subscribe((function(t){e.matOption&&(t?e.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):e.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))})),this._viewportRuler.change().pipe(oe.takeUntil(this._onDestroy)).subscribe((function(){e.matSelect.panelOpen&&e.updateInputWidth()})),this.initMultipleHandling(),this.optionsList$.pipe(oe.takeUntil(this._onDestroy)).subscribe((function(){e.changeDetectorRef.markForCheck()}))},e.prototype.ngOnChanges=function(e){this.searching?this._formControl.disable():(this._formControl.enable(),this._focus())},e.prototype.ngOnDestroy=function(){this._onDestroy.next(),this._onDestroy.complete()},e.prototype._isToggleAllCheckboxVisible=function(){return this.matSelect.multiple&&this.showToggleAllCheckbox},e.prototype._handleKeydown=function(e){var t=this;(e.key&&1===e.key.length||e.keyCode>=se.A&&e.keyCode<=se.Z||e.keyCode>=se.ZERO&&e.keyCode<=se.NINE||e.keyCode===se.SPACE||this.preventHomeEndKeyPropagation&&(e.keyCode===se.HOME||e.keyCode===se.END))&&e.stopPropagation(),this.matSelect.multiple&&e.key&&e.keyCode===se.ENTER&&setTimeout((function(){return t._focus()})),!0===this.enableClearOnEscapePressed&&e.keyCode===se.ESCAPE&&this.value&&(this._reset(!0),e.stopPropagation())},e.prototype._handleKeyup=function(e){if(e.keyCode===se.UP_ARROW||e.keyCode===se.DOWN_ARROW){var t=this.matSelect._getAriaActiveDescendant(),n=this._options.toArray().findIndex((function(e){return e.id===t}));-1!==n&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[n]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",t))}},e.prototype.writeValue=function(e){this._lastExternalInputValue=e,this._formControl.setValue(e),this.changeDetectorRef.markForCheck()},e.prototype.onBlur=function(){this.unselectActiveDescendant(),this.onTouched()},e.prototype.registerOnChange=function(e){var t=this;this._formControl.valueChanges.pipe(oe.filter((function(e){return e!==t._lastExternalInputValue})),oe.tap((function(){return t._lastExternalInputValue=void 0})),oe.takeUntil(this._onDestroy)).subscribe(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype._focus=function(){if(this.searchSelectInput&&this.matSelect.panel){var e=this.matSelect.panel.nativeElement,t=e.scrollTop;this.searchSelectInput.nativeElement.focus(),e.scrollTop=t}},e.prototype._reset=function(e){this._formControl.setValue(""),e&&this._focus()},e.prototype.initMultipleHandling=function(){var e=this;this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe(oe.takeUntil(this._onDestroy)).subscribe((function(t){var n=!1;if(e.matSelect.multiple&&(e.alwaysRestoreSelectedOptionsMulti||e._formControl.value&&e._formControl.value.length)&&e.previousSelectedValues&&Array.isArray(e.previousSelectedValues)){t&&Array.isArray(t)||(t=[]);var i=e.matSelect.options.map((function(e){return e.value}));e.previousSelectedValues.forEach((function(o){t.some((function(t){return e.matSelect.compareWith(t,o)}))||i.some((function(t){return e.matSelect.compareWith(t,o)}))||(t.push(o),n=!0)}))}e.previousSelectedValues=t,n&&e.matSelect._onChange(t)}))):this.matSelect.multiple&&console.error("o mat-select contendo itss-input-search deve ter uma diretiva ngModel ou formControl quando multiple=true")},e.prototype.updateInputWidth=function(){if(this.innerSelectSearch&&this.innerSelectSearch.nativeElement){for(var e,t=this.innerSelectSearch.nativeElement;t=t.parentElement;)if(t.classList.contains("mat-select-panel")){e=t;break}e&&(this.innerSelectSearch.nativeElement.style.width=e.clientWidth+"px")}},e.prototype.getOptionsLengthOffset=function(){return this.matOption?1:0},e.prototype.unselectActiveDescendant=function(){this.activeDescendant&&this.activeDescendant.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")},e.ctorParameters=function(){return[{type:a.MatSelect,decorators:[{type:t.Inject,args:[a.MatSelect]}]},{type:t.ChangeDetectorRef},{type:v.ViewportRuler},{type:a.MatOption,decorators:[{type:t.Optional},{type:t.Inject,args:[a.MatOption]}]},{type:a.MatFormField,decorators:[{type:t.Optional},{type:t.Inject,args:[a.MatFormField]}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[It]}]}]},we([t.HostBinding("class.mat-select-search-inside-mat-option"),Ce("design:type",Boolean),Ce("design:paramtypes",[])],e.prototype,"isInsideMatOption",null),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholderLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"type",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"closeIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"closeSvgIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"noEntriesFoundLabel",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"clearSearchInput",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"searching",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disableInitialFocus",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"enableClearOnEscapePressed",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"preventHomeEndKeyPropagation",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disableScrollToActiveOnOptionsChanged",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showToggleAllCheckbox",void 0),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"toggleAllCheckboxChecked",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"toggleAllCheckboxIndeterminate",null),we([t.Input(),Ce("design:type",String)],e.prototype,"toggleAllCheckboxTooltipMessage",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"toggleAllCheckboxTooltipPosition",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideClearSearchButton",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"alwaysRestoreSelectedOptionsMulti",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"toggleAll",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"toggleAllIndeterminate",void 0),we([t.ViewChild("searchSelectInput",{read:t.ElementRef,static:!0}),Ce("design:type",t.ElementRef)],e.prototype,"searchSelectInput",void 0),we([t.ViewChild("innerSelectSearch",{read:t.ElementRef,static:!0}),Ce("design:type",t.ElementRef)],e.prototype,"innerSelectSearch",void 0),we([t.ContentChild(xt,{static:!1}),Ce("design:type",xt)],e.prototype,"clearIcon",void 0),we([t.ContentChild(wt,{static:!1}),Ce("design:type",wt)],e.prototype,"noEntriesFound",void 0),e=n=we([t.Component({selector:"itss-input-search",template:'\x3c!-- Espaço reservado para ajustar o deslocamento vertical dos elementos mat-option --\x3e\n<input matInput\n class="mat-select-search-input mat-select-search-hidden" />\n\n\x3c!-- Note: o mat-datepicker-content mat-tab-header é necessário para herdar as cores do tema do material, consulte PR nº 22 --\x3e\n<div #innerSelectSearch\n class="mat-select-search-inner mat-typography mat-datepicker-content mat-tab-header"\n [ngClass]="{\'mat-select-search-inner-multiple\': matSelect.multiple, \'mat-select-search-inner-toggle-all\': _isToggleAllCheckboxVisible() }">\n\n <mat-checkbox *ngIf="_isToggleAllCheckboxVisible()"\n class="mat-select-search-toggle-all-checkbox"\n color="primary"\n [color]="matFormField?.color"\n [disabled]="searching"\n [matTooltip]="toggleAllCheckboxTooltipMessage"\n matTooltipClass="ngx-mat-select-search-toggle-all-tooltip"\n [matTooltipPosition]="toggleAllCheckboxTooltipPosition"\n [(ngModel)]="toggleAllCheckboxChecked"\n [(indeterminate)]="toggleAllCheckboxIndeterminate">\n </mat-checkbox>\n\n <input class="mat-select-search-input mat-input-element"\n autocomplete="off"\n [type]="type"\n [formControl]="_formControl"\n #searchSelectInput\n (keydown)="_handleKeydown($event)"\n (keyup)="_handleKeyup($event)"\n (blur)="onBlur()"\n [placeholder]="placeholderLabel">\n\n <mat-spinner *ngIf="searching"\n class="mat-select-search-spinner"\n diameter="16">\n </mat-spinner>\n\n <button *ngIf="!hideClearSearchButton && value && !searching"\n mat-icon-button\n aria-label="Clear"\n (click)="_reset(true)"\n class="mat-select-search-clear">\n <ng-content *ngIf="clearIcon; else defaultIcon"\n select="[itssSelectSearchClear]">\n </ng-content>\n\n <ng-template #defaultIcon>\n <mat-icon [svgIcon]="closeSvgIcon">\n {{ !closeSvgIcon ? closeIcon : null }}\n </mat-icon>\n </ng-template>\n </button>\n\n <ng-content select=".mat-select-search-custom-header-content"> </ng-content>\n\n <mat-divider> </mat-divider>\n</div>\n\n<div *ngIf="(_showNoEntriesFound$ | async) && !searching"\n class="mat-select-search-no-entries-found">\n <ng-content *ngIf="noEntriesFound; else defaultNoEntriesFound"\n select="[itssSelectNoEntriesFound]">\n </ng-content>\n\n <ng-template #defaultNoEntriesFound>\n {{ noEntriesFoundLabel }}\n </ng-template>\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],changeDetection:t.ChangeDetectionStrategy.OnPush,styles:['@charset "UTF-8";.mat-select-search-hidden{visibility:hidden}.mat-select-search-inner{position:absolute;top:0;left:0;width:100%;height:3em;border-bottom:none!important;z-index:100;font-size:inherit;box-shadow:none;border-radius:4px 4px 0 0}.mat-select-search-inner.mat-select-search-inner-multiple{width:100%}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all{display:flex;align-items:center}.mat-select-search-inner .mat-input-element{flex-basis:auto}.mat-select-search-inner .mat-input-element:-ms-input-placeholder{-ms-user-select:text}::ng-deep .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input{padding:16px 44px 16px 16px;box-sizing:border-box;width:100%}:host-context([dir=rtl]) .mat-select-search-input{padding-right:16px;padding-left:44px}.mat-select-search-no-entries-found{padding:16px}.mat-select-search-clear{position:absolute;right:4px;top:0}:host-context([dir=rtl]) .mat-select-search-clear{right:auto;left:4px}.mat-select-search-spinner{position:absolute;right:16px;top:calc(50% - 8px)}:host-context([dir=rtl]) .mat-select-search-spinner{right:auto;left:16px}:host.mat-select-search-inside-mat-option .mat-select-search-input{padding-top:0;padding-bottom:0;height:3em;line-height:3em}:host.mat-select-search-inside-mat-option .mat-select-search-clear{top:0}::ng-deep .mat-option[aria-disabled=true].contains-mat-select-search{position:-webkit-sticky;position:sticky;top:0;padding:0;left:0;z-index:1;border-bottom:1px solid rgba(0,0,0,.12)}::ng-deep .mat-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0}::ng-deep .mat-option[aria-disabled=true].contains-mat-select-search .mat-option-pseudo-checkbox{display:none}::ng-deep .mat-option[aria-disabled=true].contains-mat-select-search.mat-select-search-no-entries-found{height:6em}.mat-select-search-toggle-all-checkbox{padding-left:16px;padding-bottom:2px}:host-context([dir=rtl]) .mat-select-search-toggle-all-checkbox{padding-left:0;padding-right:16px}:host ::ng-deep .mat-checkbox-checked.mat-primary .mat-checkbox-background,:host ::ng-deep .mat-checkbox-indeterminate.mat-primary .mat-checkbox-background{background-color:#f3465c!important}.mat-select-search-loading{height:3em;width:100%;padding:0;display:flex;flex-direction:row;align-items:center;justify-content:center}.dot-pulse{position:relative;left:-9999px;width:5px;height:5px;border-radius:50%;background-color:#f3465c;color:#f3465c;box-shadow:9999px 0 0 -5px;-webkit-animation:1.5s linear .25s infinite dot-pulse;animation:1.5s linear .25s infinite dot-pulse}.dot-pulse::after,.dot-pulse::before{content:"";display:inline-block;position:absolute;top:0;width:5px;height:5px;border-radius:50%;background-color:#f3465c;color:#f3465c}.dot-pulse::before{box-shadow:9984px 0 0 -5px;-webkit-animation:1.5s linear infinite dot-pulse-before;animation:1.5s linear infinite dot-pulse-before}.dot-pulse::after{box-shadow:10014px 0 0 -5px;-webkit-animation:1.5s linear .5s infinite dot-pulse-after;animation:1.5s linear .5s infinite dot-pulse-after}@-webkit-keyframes dot-pulse-before{0%,100%,60%{box-shadow:9984px 0 0 -5px}30%{box-shadow:9984px 0 0 2px}}@keyframes dot-pulse-before{0%,100%,60%{box-shadow:9984px 0 0 -5px}30%{box-shadow:9984px 0 0 2px}}@-webkit-keyframes dot-pulse{0%,100%,60%{box-shadow:9999px 0 0 -5px}30%{box-shadow:9999px 0 0 2px}}@keyframes dot-pulse{0%,100%,60%{box-shadow:9999px 0 0 -5px}30%{box-shadow:9999px 0 0 2px}}@-webkit-keyframes dot-pulse-after{0%,100%,60%{box-shadow:10014px 0 0 -5px}30%{box-shadow:10014px 0 0 2px}}@keyframes dot-pulse-after{0%,100%,60%{box-shadow:10014px 0 0 -5px}30%{box-shadow:10014px 0 0 2px}}']}),xe(0,t.Inject(a.MatSelect)),xe(3,t.Optional()),xe(3,t.Inject(a.MatOption)),xe(4,t.Optional()),xe(4,t.Inject(a.MatFormField)),xe(5,t.Optional()),xe(5,t.Inject(It)),Ce("design:paramtypes",[a.MatSelect,t.ChangeDetectorRef,v.ViewportRuler,a.MatOption,a.MatFormField,Object])],e)}(),kt=te(),Ot=function(){function e(){}return e.isEmpty=function(e){return ze.isNull(e)||0===e.length},e.clone=function(e){return ze.isNull(e)?new Array:kt(e)},e.sortObjects=function(e){return function(e,t,n){for(var i=["boolean","number","string","object","undefined"],o=function(o){var r=1;e[o].isAsc||(r=-1);var a=function(e,t){if(!ze.isNewModel(e))for(var n=t.split("."),i=e,o=0;o<n.length;o++)if((i=Reflect.get(i,n[o]))&&o===n.length-1)return i;return""}(t,e[o].property),s=n[e[o].property],l=typeof a,p=typeof s,d=0;if(l===p)switch(l){case"string":d=a.localeCompare(s);break;case"number":d=a===s?0:a<s?-1:1;break;case"boolean":d=a===s?0:!1===a?-1:1;break;case"object":ze.isNull(a)&&ze.isNull(s)?d=0:ze.isNull(a)?d=-1:ze.isNull(s)?d=1:(a=a.toString(),s=s.toString(),d=a.localeCompare(s));break;default:d=0}else{if(ze.isNull(a)&&ze.isNull(s))d=0;else if(ze.isNull(a))d=1;else if(ze.isNull(s))d=-1;else{var c=i.findIndex((function(e){return e===l})),u=i.findIndex((function(e){return e===p}));d=c===u?0:c<u?-1:1}if(0!==d)return{value:d}}if(0!==d)return{value:d*r}},r=0;r<e.length;r++){var a=o(r);if("object"==typeof a)return a.value}return 0}.bind(this,e)},e}(),Et=function(){function e(e){this._changeDetectorRef=e,this.filteredEntities=[],this.previousSearchValue=null,this.allSelected=!1,this.indeterminateAllSelected=!1,this.multiple=!1,this.displayCheckboxAll=!1,this.loading=!1,this.showClear=!1,this.upperCase=!1,this.property="description",this.valuesExclud=[],this.entities=[],this.modelChange=new t.EventEmitter,this.selectionChange=new t.EventEmitter,this.compareFn=function(e,t){return e&&t&&e.id===t.id}}return Object.defineProperty(e.prototype,"model",{get:function(){return this._modelValue},set:function(e){this._modelValue=e,this.modelChange.emit(this._modelValue)},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.ngAfterContentChecked=function(){this._changeDetectorRef.detectChanges()},e.prototype.ngOnChanges=function(e){e.model&&!ze.isNull(e.model.currentValue)&&this.filterEntities(),e.entities&&!ze.isNull(e.entities.currentValue)&&(this.filteredEntities=this.entities,this.filterEntities())},e.prototype.filterEntities=function(){var e=this;if(!ze.isNewModel(this.model)&&!Ot.isEmpty(this.filteredEntities)&&!this.multiple){var t=this.filteredEntities.find((function(t){return ze.equalsByValue(t,e.model)}));ze.isNewModel(t)||(this.model=t)}},e.prototype.getPropertyValue=function(e){return ze.isNewModel(e)?Be.EMPTY:ze.isNull(this.propertyFn)?this.getValue(e,this.property):this.propertyFn(e)},e.prototype.getValue=function(e,t){for(var n=t.split("."),i=e,o=0;o<n.length;o++)if((i=Reflect.get(i,n[o]))&&o===n.length-1)return ze.isNull(this.propertyEnum)?i:this.propertyEnum[i]},e.prototype.onSearch=function(e){var t=this;e===this.previousSearchValue||this.haveSelected()&&e===this.getPropertyValue(this.model)||(this.upperCase&&(this.search.nativeElement.value=this.search.nativeElement.value.toUpperCase()),this.previousSearchValue=e,this.filteredEntities=this.entities.filter((function(n){return Be.replaceAccents(t.getPropertyValue(n)).toLowerCase().includes(Be.replaceAccents(e).toLowerCase())})))},e.prototype.haveSelected=function(){return!ze.isNull(this.model)},e.prototype.onSelectionChange=function(e){this.selectionChange.emit(e)},e.prototype.resetSearch=function(){Ot.isEmpty(this.filteredEntities)&&(this.search.nativeElement.value="",this.filteredEntities=this.entities)},e.prototype.selectAll=function(){this.allSelected=!0,this.indeterminateAllSelected=!1,this.toggleAllSelection(),this._changeDetectorRef.detectChanges()},e.prototype.toggleAllSelection=function(){if(!this.disabled){if(this.displayCheckboxAll&&this.allSelected&&!ze.isNull(this.select))for(var e=0;e<this.select.options.length;e++){var t=this.select.options[e];ze.isNull(t)||t.select()}else for(e=0;e<this.select.options.length;e++){t=this.select.options[e];ze.isNull(t)||t.deselect()}this.validateIndeterminateAllSelected(),this._changeDetectorRef.detectChanges()}},e.prototype.validateIndeterminateAllSelected=function(){if(this.displayCheckboxAll&&!ze.isNull(this.select)){var e=this.select.options.filter((function(e){return e.selected}));this.allSelected=e.length>0,this.indeterminateAllSelected=e.length>0&&e.length!==this.select.options.length,this._changeDetectorRef.detectChanges()}},e.prototype.removeOption=function(){this.multiple?(this.allSelected=!1,this.indeterminateAllSelected=!1,this.toggleAllSelection()):(this.model=null,this.onSelectionChange(null)),this._changeDetectorRef.detectChanges()},e.prototype.showClearButton=function(){return this.showClear&&!Be.isEmpty(this.getPropertyValue(this.model))&&!ze.isNull(this.model)&&!this.disabled&&!this.loading&&!Ot.isEmpty(this.entities)},e.prototype.validKey=function(e){return!!ze.isNull(this.valuesExclud)||!this.valuesExclud.some((function(t){return t===e}))},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},we([t.ViewChild("select",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"_elementRef",void 0),we([t.ViewChild("select",{static:!1}),Ce("design:type",a.MatSelect)],e.prototype,"select",void 0),we([t.ViewChild("search",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"search",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"multiple",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"displayCheckboxAll",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showClear",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"upperCase",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"property",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"propertyFn",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"propertyEnum",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"map",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"nullValue",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"valuesExclud",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"entities",void 0),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"model",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"modelChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectionChange",void 0),e=we([t.Component({selector:"itss-select-entity",template:'<div fxLayout="column">\n <mat-label>\n {{ label }}\n <span *ngIf="required && label"> * </span>\n </mat-label>\n <mat-form-field appearance="outline">\n <mat-select #select\n [name]="name"\n *ngIf="multiple"\n [placeholder]="placeholder"\n [compareWith]="compareFn"\n [(ngModel)]="model"\n [required]="required"\n [disabled]="disabled || loading || (entities && entities.length === 0)"\n multiple\n disableOptionCentering="true"\n (selectionChange)="onSelectionChange($event.value)"\n panelClass="select-position">\n <mat-form-field *ngIf="!displayCheckboxAll"\n appearance="standard"\n class="select-input-search"\n fxFlexFill>\n <input #search\n matInput\n placeholder="Pesquisar..."\n type="text"\n autofocus\n autocomplete="off"\n (focusout)="resetSearch()"\n (keyup)="onSearch($event.target.value)"\n (keydown)="$event.stopPropagation()">\n <span matPrefix>\n <mat-icon>search</mat-icon>\n </span>\n </mat-form-field>\n\n <div *ngIf="displayCheckboxAll"\n class="checkbox-all-select"\n [class.disabled]="(select.options && (select.options.length <= 0))"\n (click)="(select.options && (select.options.length <= 0)) ? null : allSelected = !allSelected; toggleAllSelection()">\n <itss-checkbox label="Selecionar todos"\n color="primary"\n name="allSelected"\n [disabled]="(select.options && (select.options.length <= 0))"\n [(ngModel)]="allSelected"\n [indeterminate]="indeterminateAllSelected">\n </itss-checkbox>\n </div>\n\n <mat-option *ngFor="let entity of filteredEntities"\n [value]="entity"\n (click)="validateIndeterminateAllSelected()">\n {{ getPropertyValue(entity) }}\n </mat-option>\n </mat-select>\n\n <mat-select #select\n [name]="name"\n *ngIf="!multiple"\n [placeholder]="placeholder"\n [(ngModel)]="model"\n [required]="required"\n [disabled]="disabled || loading || (entities && entities.length === 0)"\n disableOptionCentering="true"\n (selectionChange)="onSelectionChange($event.value)"\n panelClass="select-position">\n <mat-form-field appearance="standard"\n class="select-input-search"\n fxFlexFill>\n <input #search\n matInput\n placeholder="Pesquisar..."\n type="text"\n autofocus\n autocomplete="off"\n (focusout)="resetSearch()"\n (keyup)="onSearch($event.target.value)"\n (keydown)="$event.stopPropagation()">\n <span matPrefix>\n <mat-icon>search</mat-icon>\n </span>\n </mat-form-field>\n\n <mat-option *ngIf="!required && !search.value"\n [value]="null">\n {{ nullValue ? nullValue : \'Selecione\' }}\n </mat-option>\n <div *ngFor="let entity of filteredEntities">\n <mat-option *ngIf="validKey(entity)"\n [value]="entity">\n {{ getPropertyValue(entity) }}\n </mat-option>\n </div>\n </mat-select>\n\n <mat-spinner matPrefix\n *ngIf="loading"\n mode="indeterminate"\n diameter="17">\n </mat-spinner>\n\n <mat-icon *ngIf="showClearButton()"\n matSuffix\n (click)="removeOption(); $event.stopPropagation()"\n matTooltip="Remover selecionado">\n clear\n </mat-icon>\n </mat-form-field>\n</div>\n',styles:[":host{display:block;min-width:0;max-width:100%;flex:1}mat-label span{color:#f44336!important}.disabled{cursor:not-allowed!important;opacity:.6!important}:host ::ng-deep .mat-form-field-appearance-outline .mat-form-field-suffix{top:50%!important;transform:translateY(-50%)!important;right:3rem!important;position:absolute!important}:host ::ng-deep .mat-form-field-appearance-outline .mat-form-field-suffix>mat-icon{color:#131313!important;width:20px;height:20px;font-size:18px;display:flex!important;align-items:center;justify-content:center}:host ::ng-deep .mat-form-field-appearance-outline .mat-form-field-suffix>mat-icon:hover{font-size:19px}:host ::ng-deep .mat-select-disabled .mat-select-trigger,:host ::ng-deep .mat-select-disabled .mat-select-value{cursor:not-allowed!important}.checkbox-all-select{line-height:3em;height:3em;text-align:left;cursor:pointer;display:flex;align-items:center;border-bottom:1px solid #e1e5e4}.checkbox-all-select:hover:not(.disabled){background:rgba(0,0,0,.04)}.checkbox-all-select>itss-checkbox{width:100%;padding:0 16px}.checkbox-all-select>itss-checkbox>div{width:100%}.checkbox-all-select>itss-checkbox ::ng-deep .mat-checkbox-layout{pointer-events:none!important}.checkbox-all-select>itss-checkbox ::ng-deep .mat-checkbox-label{font-size:13px!important;text-transform:uppercase!important;color:#696969!important;margin-left:5px!important}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef])],e)}(),Dt=function(){function e(){this.tooltip="",this.multiple=!1,this.selectionChange=new t.EventEmitter,this.loading=!1,this.enumList=[],this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,e.prototype.ngOnInit=function(){var e=this;this.enumList=Object.keys(this.enum).map((function(t){return{key:t,value:e.enum[t]}})).sort(this.sort)},e.prototype.onSelectionChange=function(e){this.selectionChange.emit(e)},Object.defineProperty(e.prototype,"value",{get:function(){return this.val},set:function(e){this.val=e,this.onChange(e),this.onTouch()},enumerable:!1,configurable:!0}),e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.value=e},e.prototype.validKey=function(e){return!!ze.isNull(this.valuesExclud)||!this.valuesExclud.some((function(t){return t===e}))},we([t.ViewChild("select",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"_elementRef",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"multiple",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"enum",void 0),we([t.Output(),Ce("design:type",Object)],e.prototype,"selectionChange",void 0),we([t.Input("value"),Ce("design:type",Object)],e.prototype,"val",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"sort",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"valuesExclud",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"nullValue",void 0),e=n=we([t.Component({selector:"itss-select-enum",template:'<div fxLayout="column">\n <mat-label *ngIf="label">\n {{ label }}\n <span *ngIf="required && label"> * </span>\n <gipi-helpful-tip *ngIf="tooltip && label"\n [tooltip]="tooltip">\n </gipi-helpful-tip>\n </mat-label>\n\n <mat-form-field appearance="outline">\n <mat-select #select\n [name]="name"\n [placeholder]="placeholder"\n [multiple]="multiple"\n [(ngModel)]="value"\n [required]="required"\n [disabled]="disabled"\n [class.select-disabled]="disabled"\n [disableOptionCentering]="true"\n (selectionChange)="onSelectionChange($event.value)"\n panelClass="select-position">\n <mat-option *ngIf="!required && !multiple"\n [value]="null">\n {{ nullValue ? nullValue : \'Selecione\' }}\n </mat-option>\n <div *ngFor="let e of enumList">\n <mat-option *ngIf="validKey(e.key)"\n (click)="(e.key === val) ? onSelectionChange(null) : null"\n [value]="e.key">\n {{ e.value }}\n </mat-option>\n </div>\n </mat-select>\n <mat-spinner matPrefix\n *ngIf="loading"\n mode="indeterminate"\n diameter="17"></mat-spinner>\n </mat-form-field>\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:[":host{display:block;min-width:0;max-width:100%;flex:1}mat-label span{color:#f44336!important}.select-disabled{cursor:not-allowed!important}:host ::ng-deep .mat-select-disabled .mat-select-trigger,:host ::ng-deep .mat-select-disabled .mat-select-value{cursor:not-allowed!important}"]})],e)}(),Pt=function(){function e(e){this._config=e,this.disabled=!1,this.required=!1,this.bootPeriod=new Date,this.dateChange=new t.EventEmitter}var n;return n=e,e.prototype.ngOnInit=function(){this.periodSelected=new Date(this.bootPeriod)},e.prototype.onClickButtonLeft=function(){var e=this;setTimeout((function(){e.periodSelected.setMonth(e.periodSelected.getMonth()-1),e.dateChangeEmit()}))},e.prototype.onClickButtonRight=function(){var e=this;setTimeout((function(){e.periodSelected.setMonth(e.periodSelected.getMonth()+1),e.dateChangeEmit()}))},e.prototype.dateChangeEmit=function(){this.dateChange.emit(this.periodSelected)},e.prototype.getMonthNameByDate=function(){return this._config.getTranslation("monthNames")[this.periodSelected.getMonth()]},e.prototype.getFullYearByDate=function(){return this.periodSelected.getFullYear().toString()},e.ctorParameters=function(){return[{type:lt}]},we([t.ViewChild("datePeriodDropdown",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"_elementRef",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Date)],e.prototype,"bootPeriod",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"dateChange",void 0),e=n=we([t.Component({selector:"itss-select-month-period",template:'<div fxLayout="column"\n fxFlex>\n <mat-label *ngIf="label"\n class="label">\n {{ label }}\n <span *ngIf="required && label">*</span>\n </mat-label>\n <div #datePeriodDropdown\n class="date-filter">\n <button type="button"\n [disabled]="disabled"\n class="button-arrow button-arrow-left"\n (click)="onClickButtonLeft()">\n <span class="icon">\n <svg aria-hidden="true"\n focusable="false"\n data-prefix="fas"\n data-icon="angle-left"\n role="img"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 256 512"\n class="svg-inline--fa fa-angle-left fa-w-8 fa-fw fa-lg">\n <path fill="currentColor"\n d="M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"\n class="">\n </path>\n </svg>\n </span>\n </button>\n\n <button #btnSelectPeriod\n type="button"\n [disabled]="disabled"\n id="monthLabel"\n class="date-filter-field">\n <span class="date-filter-field-text">\n {{ getMonthNameByDate() }}\n <span class="separator"> - </span>\n {{ getFullYearByDate() }}\n </span>\n </button>\n\n <button type="button"\n [disabled]="disabled"\n class="button-arrow button-arrow-right"\n (click)=" onClickButtonRight()">\n <span class="icon">\n <svg aria-hidden="true"\n focusable="false"\n data-prefix="fas"\n data-icon="angle-right"\n role="img"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 256 512"\n class="svg-inline--fa fa-angle-right fa-w-8 fa-fw fa-lg">\n <path fill="currentColor"\n d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"\n class="">\n </path>\n </svg>\n </span>\n </button>\n </div>\n</div>\n',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"itss-element"},styles:[":host{display:block;min-width:0;max-width:100%;flex:1}button:disabled{opacity:.4!important;pointer-events:none!important;cursor:not-allowed!important}.date-filter{width:100%;height:42.53px;display:flex;background-color:#fff}.date-filter svg{width:20px;height:20px}:focus-visible{outline:0}.button-arrow{padding:8px;color:#696969;border:1px solid #dddfe1;background-color:#fff;height:100%;width:55px;font-size:14px;font-weight:600;line-height:1.5;text-align:center;text-decoration:none;cursor:pointer;transition:background-color .2s ease-in-out}.button-arrow:hover{background-color:#f9f9f9}.icon{display:block;margin:0 auto;width:20px;height:20px}.button-arrow-left{border-top-left-radius:5px;border-bottom-left-radius:5px}.button-arrow-right{border-top-right-radius:5px;border-bottom-right-radius:5px}.date-filter-field{display:flex;align-items:center;justify-content:center;width:100%;padding:0 16px;border-radius:0;border-left:none;border-right:none;border-top:1px solid #dddfe1;border-bottom:1px solid #dddfe1;background-color:#fff;color:#696969;font-size:.75px;text-align:center;cursor:pointer;transition:background-color .2s ease-in-out}.date-filter-field:hover{background-color:#f9f9f9}.date-filter-field-text{line-height:1;font-size:12px;display:inline-block}.separator{font-size:1rem;font-weight:700;text-align:center}.button{vertical-align:middle;display:inline-block;font-size:14px;max-height:40px;min-height:40px;min-width:120px;margin:0;padding:8px 16px;font-weight:600;line-height:1.5;text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:1px solid transparent;border-radius:4px;box-sizing:border-box}.button-cancel{color:#696969;background-color:#f5f5f5;border-color:#dbdbdb;transition:background-color .2s ease-in-out}.button-cancel:hover{background:#ececec}.button-confirm{color:#fff;background-color:#f3465c;transition:opacity .2s ease-in-out}.button-confirm:hover{opacity:.8}.label{color:#696969;font-size:1rem;margin-bottom:5px!important}.label>span{color:#f44336}"]}),Ce("design:paramtypes",[lt])],e)}(),At=function(){function e(){this.color="primary",this.change=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"value",{get:function(){return this.val},set:function(e){this.val=e,this.onChange(e),this.onTouch()},enumerable:!1,configurable:!0}),e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.value=e},we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"color",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input("value"),Ce("design:type",Object)],e.prototype,"val",void 0),we([t.Output(),Ce("design:type",Object)],e.prototype,"change",void 0),e=n=we([t.Component({selector:"itss-slide-toggle",template:'<div fxLayout="column">\n <mat-slide-toggle [name]="name"\n [color]="color"\n [(ngModel)]="value"\n [required]="required"\n [disabled]="disabled"\n (change)="change.emit($event)">\n {{ label }}\n </mat-slide-toggle>\n</div>\n',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:["mat-label span{color:#f44336!important}"]})],e)}(),Rt=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.isDisableClick=!1,t}var o;return be(i,e),o=i,i.prototype.ngOnInit=function(){},i.prototype.onClick=function(e){this.selectedIndex=e},we([t.Input(),Ce("design:type",Object)],i.prototype,"isDisableClick",void 0),i=o=we([t.Component({selector:"itss-stepper",template:'<div fxLayout="row wrap"\n fxLayout.lt-md="column">\n <div *ngFor="let step of steps; let i = index;"\n fxFlex>\n <button mat-button\n disabled="true"\n fxFlex\n (click)="onClick(i)">\n <div fxLayout="row"\n fxLayoutGap="10px"\n fxLayoutAlign="center center">\n <div class="step-icon"\n [ngClass]="{\'active\': selectedIndex === i}">\n <div class="step-icon-content">\n <span>{{ i + 1 }}</span>\n </div>\n </div>\n <div class="step-text-container">\n <label class="step-text"\n [ngClass]="{\'active-text\': selectedIndex === i}">\n {{ step.label }}\n </label>\n </div>\n </div>\n </button>\n\n <div class="stepper-horizontal-line"\n fxHide.lt-md="true"\n *ngIf="i !== steps.length - 1"></div>\n </div>\n</div>\n\n<div [style.display]="selected ? \'block\' : \'none\'"\n class="container">\n <ng-container [ngTemplateOutlet]="selected.content"></ng-container>\n</div>\n',providers:[{provide:n.CdkStepper,useExisting:o}],styles:[".stepper-horizontal-line{flex:auto;height:0;margin:22px 0;min-width:32px;border-top:1px solid rgba(0,0,0,.12)}button{height:48px!important}.container{margin-top:24px!important}.step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.step-icon{flex:none;border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;background-color:rgba(0,0,0,.54);color:#fff}.step-text-container{margin-right:8px}.step-text{font-size:18px;color:#696969}.active{background-color:#9a9da2}.active-text{color:#9a9da2}"]})],i)}(n.CdkStepper);function Mt(e,t,n){var i,o,r;n=n||{};var a=null,s=0;function l(){s=!1===n.leading?0:+new Date,a=null,r=e.apply(i,o)}return function(){var p=+new Date;s||!1!==n.leading||(s=p);var d=t-(p-s);return i=this,o=arguments,d<=0?(clearTimeout(a),a=null,s=p,r=e.apply(i,o)):a||!1===n.trailing||(a=setTimeout(l,d)),r}}!function(e){e.UP="up",e.DOWN="down"}(rt||(rt={})),function(e){e.HOST="scroll",e.WINDOW="window:scroll"}(at||(at={}));var Tt,Ft=function(){function e(e){this._elementRef=e,this.scrollTop=0,this.more=!0,this.scrollDelay=500,this.scrollOffset=1e3,this.scrolled=new t.EventEmitter,this._element=this._elementRef.nativeElement,this._window=document.documentElement}return e.prototype.ngOnInit=function(){this.setThrottle()},e.prototype.ngOnChanges=function(e){e.scrollDelay&&this.setThrottle()},e.prototype.setThrottle=function(){this._scroll=this._windowScroll=Mt(this.handleScroll,this.scrollDelay)},e.prototype.getListener=function(){return this._elementRef.nativeElement.clientHeight===this._elementRef.nativeElement.scrollHeight?at.WINDOW:at.HOST},e.prototype.roundTo=function(e,t){return void 0===t&&(t=this.scrollOffset),Math.floor(e/t)*t},e.prototype.getScrollDirection=function(e){return this.scrollTop<=e?rt.DOWN:rt.UP},e.prototype.canScroll=function(e){var t=this.more&&this.getScrollDirection(e.scrollTop)===rt.DOWN&&this.roundTo(e.clientHeight)===this.roundTo(e.scrollHeight-e.scrollTop);return this.scrollTop=e.scrollTop,t},e.prototype.handleScroll=function(){this.getListener()===at.HOST?this.scrolled.emit(this.canScroll(this._element)):this.scrolled.emit(this.canScroll(this._window))},e.ctorParameters=function(){return[{type:t.ElementRef}]},we([t.Input(),Ce("design:type",Boolean)],e.prototype,"more",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"scrollDelay",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"scrollOffset",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"scrolled",void 0),we([t.HostListener(at.HOST),Ce("design:type",Function)],e.prototype,"_scroll",void 0),we([t.HostListener(at.WINDOW),Ce("design:type",Function)],e.prototype,"_windowScroll",void 0),e=we([t.Component({selector:"itss-table-scrolled",template:"<ng-content> </ng-content>",styles:[":host{overflow-y:auto;position:relative}"]}),Ce("design:paramtypes",[t.ElementRef])],e)}(),Vt=function(e){function t(t,n,i){var o=e.call(this)||this;return o.columnData=t,o.childrenGroup=n,o.totalCount=i,o}return be(t,e),t}(qe),Nt=function(){function e(e){this._ngZone=e,this._expandedRows=[],this._scrollHeightCalc=410,this._isPopoverHover=null,this._displayedColumns=[],this.shadow=!1,this.columns=[],this.paginator=!1,this.backendPagination=!0,this.paginatorPageIndex=0,this.paginatorLength=0,this.paginatorPageSize=10,this.paginatorPageSizeOptions=[10,20,30],this.showPageSizeOptions=!1,this.loading=!1,this.expandable=!1,this.showHeader=!0,this.headerSticky=!1,this.groupHeaderSticky=!1,this.groupStartExpanded=!1,this.infiniteScroll=!1,this.scrollDelay=1e3,this.scrollOffset=1e3,this.isFiltering=!1,this.showColumnExpandableFixed=!1,this.expandableOneRow=!1,this.ignoreChildrenExpandRow=!1,this.sort=!0,this.clearSort=!1,this.sortActive="",this.sortDirection="asc",this.rowExpanded=new t.EventEmitter,this.dataChange=new t.EventEmitter(!0),this.page=new t.EventEmitter,this.rowHover=new t.EventEmitter}return Object.defineProperty(e.prototype,"data",{get:function(){return this._dataValue},set:function(e){this._dataValue=e,this.dataChange.emit(this._dataValue)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"matTableHeigth",{get:function(){var e,t;ze.isNull(this._matHeaderRowRef)||(e=this._matHeaderRowRef.elementRef.nativeElement.clientHeight);var n=this.backendPagination?this._matBackendPaginatorRowRef:this._matFrontendPaginatorRowRef;ze.isNull(n)||(t=n.elementRef.nativeElement.clientHeight);var i=e||60,o=t||57,r=this.paginatorPageSize&&this.paginatorPageSize<=10?this.paginatorPageSize:10,a=this.headerSticky&&this.data.length>r;return ie.of(a?57*r+i+o+"px":"auto")},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this._expandedRows=[]},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){if(ze.isNull(e._dataSource)||(e._dataSource.sort=e.matSort,!e.paginator||e.backendPagination||e.infiniteScroll||(e._dataSource.paginator=e.matFrontendPaginator)),e.paginator&&(e.backendPagination||e.infiniteScroll)&&e.onPage({pageSize:e.paginatorPageSize,paginatorPageSizeOptions:e.paginatorPageSizeOptions,pageIndex:0,length:0,previousPageIndex:0}),!ze.isNull(e.actionsPopoverRef)){e._contextPopover=null,e._isPopoverHover=!1,e.closePopover(0);var t=document.getElementById("table-popover");ze.isNull(t)||(t.style.visibility="hidden")}}))},e.prototype.ngOnChanges=function(e){var t=this;setTimeout((function(){e.data&&t._createDataSource()}))},e.prototype._createDataSource=function(){var e=this.columns.filter((function(e){return e.visible})).map((function(e){return e.property}));if(ze.isNull(this.expandedRef)||(e=Ee(["expandedColumn"],e)),ze.isNull(this.actionsRef)||(e=Ee(e,["actionsColumn"])),this._displayedColumns=e,this.infiniteScroll){var t=[];this.isFiltering||ze.isNull(this._dataSource)||(t=Ot.clone(this._dataSource.data)),Ot.isEmpty(this.data)||t.push.apply(t,Ee(this.data)),this._dataSource=new a.MatTableDataSource([]),Be.isEmpty(this.groupByColumn)||ze.isNull(this.groupHeaderRef)?this._dataSource.data=t:this._dataSource.data=this.genereteGroupsByColumn(t),this.data=t,this.dataChange.emit(this.data),this.calcScrollHeight()}else this._dataSource=new a.MatTableDataSource([]),Be.isEmpty(this.groupByColumn)||ze.isNull(this.groupHeaderRef)?this._dataSource.data=this.data:this._dataSource.data=this.genereteGroupsByColumn(this.data);Ot.isEmpty(this._dataSource.data)||(this._dataSource.sort=this.matSort,this.setSortingDataAccessor()),this.paginator&&!this.backendPagination&&(this._dataSource.paginator=this.matFrontendPaginator)},e.prototype.calcScrollHeight=function(){this._dataSource&&this._dataSource.data.length>0&&Math.floor(this._scrollHeightCalc)<=700&&(this._scrollHeightCalc=130+48*this._dataSource.data.length)},e.prototype.onPage=function(e){this.paginatorPageSize=e.pageSize,e.paginatorPageSizeOptions=Ot.isEmpty(e.paginatorPageSizeOptions)?this.paginatorPageSizeOptions:e.paginatorPageSizeOptions,this.page.emit(e)},e.prototype.isExpandedRow=function(e){if(Ot.isEmpty(this._expandedRows))return ie.of(!1);var t=this._expandedRows.findIndex((function(t){return t===e}));return ie.of(t>=0)},e.prototype.toggleExpandRow=function(e){var t=this._expandedRows.findIndex((function(t){return t===e}));if(t<0)this.expandableOneRow?this._expandedRows=[e]:this._expandedRows.push(e),this.rowExpanded.emit(e);else{var n=Ee(this._expandedRows);n.splice(t,1),this._expandedRows=Ee(n),this.rowExpanded.emit(null)}},e.prototype.sortData=function(e){this.infiniteScroll&&(this.data=[],this.dataChange.emit([]),this._dataSource=new a.MatTableDataSource([]),this.calcScrollHeight()),this.onPage({pageSize:this.paginatorPageSize,pageIndex:0,length:0,previousPageIndex:0,paginatorPageSizeOptions:this.paginatorPageSizeOptions,sort:e})},e.prototype.showPopover=function(e,t){var n=this,i=document.getElementById("table-popover");ze.isNull(i)||(i.style.visibility="hidden",this.loading||this._ngZone.runOutsideAngular((function(){var t=i.getBoundingClientRect(),o=e.currentTarget.getBoundingClientRect(),r=e.currentTarget.children;if(t&&o){i.style.visibility="visible",i.style.top=o.top+o.height-1+"px";var a=0,s=0;if(n.columnInitial&&n.columnInitial>=0){if(!r[n.columnInitial])throw new Error("Initial column undefined or null");a=r[n.columnInitial].getBoundingClientRect().left}else a=o.left;if(n.columnFinal&&n.columnFinal>=0){if(!r[n.columnFinal])throw new Error("Final column undefined or null");s=r[n.columnFinal].getBoundingClientRect().left-t.width}else s=o.right-t.width;n._ngZone.run((function(){e.clientX>a+15&&e.clientX<s?i.style.left=e.clientX-15+"px":e.clientX<=a?i.style.left=a+"px":e.clientX>=s&&(i.style.left=s+"px")}))}}))),this.rowHover.emit(t),this._contextPopover=t},e.prototype.closePopover=function(e){var t=this;ie.of(null).pipe(oe.delay(e)).subscribe((function(){if(!ze.isNull(t._isPopoverHover)&&!t._isPopoverHover){if(!ze.isNull(t._isPopoverHover)&&!ze.isNull(t.actionsPopoverRef)){var e=document.getElementById("table-popover");ze.isNull(e)||(e.style.visibility="hidden")}t._contextPopover=null,t._isPopoverHover=null}}))},e.prototype.setSortingDataAccessor=function(){this._dataSource.sortingDataAccessor=function(e,t){return"string"==typeof e[t]?e[t].toLowerCase():e[t]}},e.prototype.genereteGroupsByColumn=function(e){var t=this,n=e.reduce((function(e,n){var i=n[t.groupByColumn].toString();return e[i]||(e[i]=[]),e[i].push(n),e}),{});return Object.keys(n).map((function(e){return new Vt(e,n[e],n[e].length)}))},e.prototype.getHighlightRow=function(e){return!ze.isNull(e)&&(!ze.isNull(this.highlightRowFn)&&this.highlightRowFn(e))},e.prototype.getIndexRow=function(e){if(!ze.isNull(this._dataSource)&&!Ot.isEmpty(this._dataSource.data)&&!ze.isNull(e))return this._dataSource.data.findIndex((function(t){return t===e}))},e.prototype.hasMore=function(){return!this._dataSource||this._dataSource.data.length<this.paginatorLength},e.prototype.handleScroll=function(e){e&&this.hasMore()&&(this.onPage({pageSize:this.paginatorPageSize,pageIndex:this.paginatorPageIndex,length:this.paginatorLength,previousPageIndex:this.paginatorPageIndex}),this.paginatorPageIndex+=1)},e.ctorParameters=function(){return[{type:t.NgZone}]},we([t.ViewChild(a.MatSort,{static:!0}),Ce("design:type",a.MatSort)],e.prototype,"matSort",void 0),we([t.ViewChild(a.MatPaginator,{static:!0}),Ce("design:type",a.MatPaginator)],e.prototype,"matPaginator",void 0),we([t.ViewChild("frontendPaginator",{static:!1}),Ce("design:type",a.MatPaginator)],e.prototype,"matFrontendPaginator",void 0),we([t.ViewChild("backendPaginator",{static:!1}),Ce("design:type",a.MatPaginator)],e.prototype,"matBackendPaginator",void 0),we([t.ViewChild("matHeaderRow",{static:!0}),Ce("design:type",t.TemplateRef)],e.prototype,"_matHeaderRowRef",void 0),we([t.ViewChild("frontendPaginator",{static:!0}),Ce("design:type",t.TemplateRef)],e.prototype,"_matFrontendPaginatorRowRef",void 0),we([t.ViewChild("backendPaginator",{static:!0}),Ce("design:type",t.TemplateRef)],e.prototype,"_matBackendPaginatorRowRef",void 0),we([t.ContentChild("actions",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"actionsRef",void 0),we([t.ContentChild("actionsPopover",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"actionsPopoverRef",void 0),we([t.ContentChild("footer",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"footerRef",void 0),we([t.ContentChild("expanded",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"expandedRef",void 0),we([t.ContentChild("groupHeader",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"groupHeaderRef",void 0),we([t.ContentChild("groupFooter",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"groupFooterRef",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"shadow",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"columns",void 0),we([t.Input(),Ce("design:type",Array),Ce("design:paramtypes",[Array])],e.prototype,"data",null),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"paginator",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"backendPagination",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"paginatorPageIndex",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"paginatorLength",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"paginatorPageSize",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"paginatorPageSizeOptions",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showPageSizeOptions",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"expandable",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showHeader",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"columnInitial",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"columnFinal",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"headerSticky",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"groupByColumn",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"groupHeaderSticky",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"groupStartExpanded",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"highlightRowFn",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"infiniteScroll",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"scrollDelay",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"scrollOffset",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"scrollHeigth",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"isFiltering",void 0),we([t.Input("columnExpandableFixed"),Ce("design:type",Boolean)],e.prototype,"showColumnExpandableFixed",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"expandableOneRow",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"ignoreChildrenExpandRow",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"sort",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"clearSort",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"sortActive",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"sortDirection",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"rowExpanded",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"dataChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"page",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"rowHover",void 0),e=we([t.Component({selector:"itss-table",template:'<div [class.box-shadow]="shadow"\n [style.height]="(matTableHeigth | async)"\n style="background: transparent !important;"\n fxLayout="column"\n fxFlex>\n\n <itss-table-scrolled [more]="hasMore()"\n [scrollOffset]="scrollOffset"\n [scrollDelay]="scrollDelay"\n (scrolled)="handleScroll($event)"\n [ngStyle]="{\'flex-basis\': scrollHeigth ? scrollHeigth + \'px\' : _scrollHeightCalc + \'px\' }"\n *ngIf="infiniteScroll; else table">\n <ng-template *ngTemplateOutlet="table"> </ng-template>\n </itss-table-scrolled>\n\n <ng-template #table>\n <mat-table matSort\n multiTemplateDataRows\n [dataSource]="_dataSource"\n [matSortDisabled]="!sort"\n [matSortDisableClear]="!clearSort"\n [matSortActive]="sortActive"\n [matSortDirection]="sortDirection?.toLocaleLowerCase()"\n (matSortChange)="sortData($event)"\n (mouseleave)="_isPopoverHover = false; closePopover(0)">\n\n <ng-container *ngIf="expandedRef"\n cdkColumnDef="expandedColumn">\n <mat-header-cell fxFlex="5"\n fxLayoutAlign="end center"\n *cdkHeaderCellDef>\n </mat-header-cell>\n <mat-cell fxFlex="5"\n fxLayoutAlign="end center"\n *cdkCellDef="let row">\n <itss-button tooltip="Expandir | Retrair"\n color="primary"\n type="icon"\n *ngIf="((row?.children) && (row.children.length > 0)) || (row?.expandable) || showColumnExpandableFixed"\n [icon]="(isExpandedRow(row) | async) ? \'expand_more\' : \'chevron_right\'"\n (click)="toggleExpandRow(row)">\n </itss-button>\n </mat-cell>\n </ng-container>\n\n <ng-container *ngFor="let column of columns"\n [cdkColumnDef]="column.property">\n <div *ngIf="column.sortable">\n <mat-header-cell [fxFlex]="column.width | async"\n [fxLayoutAlign]="column.align"\n [ngStyle]="{\'padding-left\': column.sortable && column.align !== \'\' && (column.align.toLowerCase() === \'center\' || column.align.toLowerCase() === \'center center\') ? \'15px\' : \'\' }"\n [style.padding-left.px]="column.marginLeft | async"\n [style.padding-right.px]="column.marginRight | async"\n *cdkHeaderCellDef\n mat-sort-header>\n {{ column.name }}\n </mat-header-cell>\n </div>\n <div *ngIf="!column.sortable">\n <mat-header-cell [fxFlex]="column.width | async"\n [fxHide.lt-md]="column.hiddenSm"\n [fxLayoutAlign]="column.align"\n [style.padding-left.px]="column.marginLeft | async"\n [style.padding-right.px]="column.marginRight | async"\n *cdkHeaderCellDef>\n <ng-container *ngIf="column.name; else templateHeader">\n {{ column.name }}\n </ng-container>\n\n <ng-template #templateHeader>\n <ng-container *ngIf="column.templateHeader">\n <ng-container [ngTemplateOutlet]="column.templateHeader"\n [ngTemplateOutletContext]="{$implicit: data}">\n </ng-container>\n </ng-container>\n </ng-template>\n </mat-header-cell>\n </div>\n <mat-cell [fxFlex]="column.width | async"\n [fxHide.lt-md]="column.hiddenSm"\n [fxHide]="!column.visible"\n [fxLayoutAlign]="column.align"\n [class.mat-cell-pointer]="column.action"\n [style.padding-left.px]="column.marginLeft | async"\n [style.padding-right.px]="column.marginRight | async"\n (click)="column.action ? column.action(row) : null"\n *cdkCellDef="let row">\n <ng-container *ngIf="column.value; else template">\n {{ (column.value(row) && (column.value(row).length > (column.sliceLength ? column.sliceLength :\n 50)))\n ? (column.value(row) | slice:0:(column.sliceLength ? column.sliceLength : 50)) + \'...\'\n : column.value(row) }}\n </ng-container>\n\n <ng-template #template>\n <ng-container *ngIf="column.template">\n <ng-container [ngTemplateOutlet]="column.template"\n [ngTemplateOutletContext]="{$implicit: row}">\n </ng-container>\n </ng-container>\n </ng-template>\n </mat-cell>\n </ng-container>\n\n <ng-container *ngIf="actionsRef"\n cdkColumnDef="actionsColumn">\n <mat-header-cell fxFlex.gt-md="15"\n fxLayoutAlign="center center"\n *cdkHeaderCellDef>\n Ações\n </mat-header-cell>\n <mat-cell fxFlex="15"\n fxLayoutAlign="center center"\n *cdkCellDef="let row">\n <ng-template [ngTemplateOutlet]="actionsRef"\n [ngTemplateOutletContext]="{$implicit: row}">\n </ng-template>\n </mat-cell>\n </ng-container>\n\n <ng-container *ngIf="expandedRef"\n matColumnDef="expandedDetail">\n <mat-cell *matCellDef="let row"\n fxFlexFill\n class="cell-element-detail">\n <div class="element-detail"\n *ngIf="!ignoreChildrenExpandRow ? (row.children.length > 0) : ignoreChildrenExpandRow"\n [class.collapsed]="!(isExpandedRow(row) | async)"\n [class.expanded]="(isExpandedRow(row) | async)">\n <ng-template [ngTemplateOutlet]="expandedRef"\n [ngTemplateOutletContext]="{$implicit: row}">\n </ng-template>\n </div>\n </mat-cell>\n </ng-container>\n\n <ng-container *ngIf="groupByColumn && groupHeaderRef"\n matColumnDef="groupHeader">\n <mat-cell fxFlex\n [attr.colspan]="columns.length"\n *matCellDef="let rowGroup"\n style="cursor: pointer;"\n [class.group-header-cell-collapsed]="!(isExpandedRow(rowGroup) | async)"\n [class.group-header-cell-expanded]="(isExpandedRow(rowGroup) | async)"\n (click)="toggleExpandRow(rowGroup)">\n <div class="group-header-cell">\n <itss-button *ngIf="rowGroup.childrenGroup.length > 0"\n [icon]="(isExpandedRow(rowGroup) | async) ? \'expand_more\' : \'chevron_right\'"\n style.margin-right="1.25rem"\n color="primary"\n type="icon"\n tooltip="Expandir | Retrair">\n </itss-button>\n\n <ng-template [ngTemplateOutlet]="groupHeaderRef"\n [ngTemplateOutletContext]="{$implicit: rowGroup}">\n </ng-template>\n </div>\n </mat-cell>\n </ng-container>\n\n <ng-container *ngIf="groupByColumn && groupHeaderRef"\n matColumnDef="expandedGroupHeader">\n <mat-cell *matCellDef="let rowGroup"\n fxFlexFill>\n <div class="element-detail"\n *ngIf="rowGroup.childrenGroup.length > 0"\n [class.collapsed]="!(isExpandedRow(rowGroup) | async)"\n [class.expanded]="(isExpandedRow(rowGroup) | async)">\n\n <itss-table *ngIf="rowGroup.childrenGroup.length > 0; else noChildrenGroup"\n [paginator]="false"\n [shadow]="false"\n [showHeader]="false"\n [columns]="columns"\n [data]="rowGroup.childrenGroup"\n class="table-level-1"\n fxFlexFill>\n <ng-template #footer\n *ngIf="groupByColumn && groupHeaderRef && groupFooterRef">\n <ng-template [ngTemplateOutlet]="groupFooterRef"\n [ngTemplateOutletContext]="{$implicit: rowGroup}">\n </ng-template>\n </ng-template>\n </itss-table>\n\n <ng-template #noChildrenGroup>\n <div *ngIf="!loading"\n class="no-records">\n <mat-icon>sentiment_very_dissatisfied</mat-icon>\n <span>Nenhum registro foi encontrado</span>\n </div>\n </ng-template>\n </div>\n </mat-cell>\n </ng-container>\n\n <mat-header-row #matHeaderRow\n (mouseenter)="_isPopoverHover = false; closePopover(0)"\n *matHeaderRowDef="_displayedColumns; sticky: headerSticky || groupHeaderSticky"\n [ngClass]="{ \'hidden-header\': !showHeader }">\n </mat-header-row>\n\n <div *ngIf="!loading && !expandable && !actionsPopoverRef && !groupByColumn && !groupHeaderRef">\n <mat-row (mouseover)="rowHover.emit(row)"\n *matRowDef="let row; columns: _displayedColumns;"\n [ngClass]="{ \'hoversimulator\': row.isMouseHover === true }"\n [class.highlight]="getHighlightRow(row)"\n [attr.id]="\'row_\'+ getIndexRow(row)">\n </mat-row>\n </div>\n\n <div *ngIf="!loading && !expandable && actionsPopoverRef && !groupByColumn && !groupHeaderRef">\n <mat-row #rowTemplate\n *matRowDef="let row; columns: _displayedColumns;"\n class="element-row"\n (mousemove)="showPopover($event, row)"\n [class.hoversimulator]="_contextPopover === row"\n [class.highlight]="getHighlightRow(row)"\n [attr.id]="\'row_\'+ getIndexRow(row)">\n </mat-row>\n </div>\n\n <div *ngIf="!loading && expandable && !actionsPopoverRef && !groupByColumn && !groupHeaderRef">\n <mat-row *matRowDef="let row; columns: _displayedColumns;"\n class="element-row"\n [class.expanded-row]="(isExpandedRow(row) | async)"\n [ngClass]="{ \'hoversimulator\': row.isMouseHover === true }"\n [class.highlight]="getHighlightRow(row)"\n [attr.id]="\'row_\'+ getIndexRow(row)"\n (mouseover)="rowHover.emit(row)"\n (click)="toggleExpandRow(row)">\n </mat-row>\n\n <mat-row *matRowDef="let row; columns: [\'expandedDetail\'];"\n class="detail-row"\n [attr.id]="\'row_expand\'+ getIndexRow(row)">\n </mat-row>\n </div>\n\n <div *ngIf="!loading && expandable && actionsPopoverRef && !groupByColumn && !groupHeaderRef">\n <mat-row #rowTemplate\n *matRowDef="let row; columns: _displayedColumns;"\n class="element-row"\n [class.hoversimulator]="_contextPopover === row"\n [class.expanded-row]="(isExpandedRow(row) | async)"\n [class.highlight]="getHighlightRow(row)"\n [attr.id]="\'row_\'+ getIndexRow(row)"\n (mousemove)="showPopover($event, row)"\n (click)="toggleExpandRow(row)">\n </mat-row>\n\n <mat-row *matRowDef="let row; columns: [\'expandedDetail\'];"\n class="detail-row"\n [attr.id]="\'row_expand\'+ getIndexRow(row)">\n </mat-row>\n </div>\n\n <div *ngIf="!loading && !expandable && !actionsPopoverRef && groupByColumn && groupHeaderRef">\n <mat-row *matRowDef="let row; columns: [\'groupHeader\'];"\n class="element-row"\n [class.expanded-row]="(isExpandedRow(row) | async)"\n [class.group-header-sticky]="groupHeaderSticky"\n [ngClass]="{ \'hoversimulator\': row.isMouseHover === true }"\n [class.highlight]="getHighlightRow(row)"\n [attr.id]="\'row_\'+ getIndexRow(row)"\n (mouseover)="rowHover.emit(row)"\n (click)="toggleExpandRow(row)">\n </mat-row>\n\n <mat-row *matRowDef="let row; columns: [\'expandedGroupHeader\'];"\n class="detail-row"\n [attr.id]="\'row_group\'+ getIndexRow(row)">\n </mat-row>\n </div>\n </mat-table>\n\n <mat-progress-bar mode="indeterminate"\n color="accent"\n *ngIf="loading">\n </mat-progress-bar>\n\n <div *ngIf="!loading && (data && (data.length > 0)) && footerRef"\n class="footer-row"\n fxLayout="column"\n fxLayoutGap="10px">\n <ng-template [ngTemplateOutlet]="footerRef"\n [ngTemplateOutletContext]="{$implicit: data}">\n </ng-template>\n </div>\n\n <div *ngIf="!loading && (data && (data.length <= 0))"\n class="no-records">\n <mat-icon>sentiment_very_dissatisfied</mat-icon>\n <span>Nenhum registro foi encontrado</span>\n </div>\n\n <ng-container *ngIf="!loading && paginator && (data && (data.length > 0))">\n <ng-container #backendPaginatorTemplate\n *ngIf="backendPagination && !infiniteScroll">\n <mat-paginator #backendPaginator\n [hidePageSize]="!showPageSizeOptions || (paginatorPageSizeOptions && (paginatorPageSizeOptions.length <= 0))"\n [length]="paginatorLength"\n [pageIndex]="paginatorPageIndex"\n [pageSize]="paginatorPageSize"\n [pageSizeOptions]="paginatorPageSizeOptions"\n (page)="onPage($event)"\n (mouseenter)="closePopover(0)"\n showFirstLastButtons>\n </mat-paginator>\n </ng-container>\n\n <ng-container #frontendPaginatorTemplate\n *ngIf="!backendPagination && !infiniteScroll">\n <mat-paginator #frontendPaginator\n [hidePageSize]="!showPageSizeOptions || (paginatorPageSizeOptions && (paginatorPageSizeOptions.length <= 0))"\n [length]="paginatorLength"\n [pageIndex]="paginatorPageIndex"\n [pageSize]="paginatorPageSize"\n [pageSizeOptions]="paginatorPageSizeOptions"\n (page)="onPage($event)"\n showFirstLastButtons>\n </mat-paginator>\n </ng-container>\n </ng-container>\n\n <ng-container #infiniteScrollPaginatorTemplate\n *ngIf="infiniteScroll && (data && (data.length > 0))">\n <span class="infinite-scroll-paginator">\n 1 - {{ data.length }} de {{ paginatorLength }}\n </span>\n </ng-container>\n </ng-template>\n</div>\n\n<div id="table-popover"\n class="table-popover"\n (mouseover)="_isPopoverHover = true"\n (mouseout)="_isPopoverHover = false; closePopover(0)"\n *ngIf="!loading && actionsPopoverRef">\n <ng-container [ngTemplateOutlet]="actionsPopoverRef"\n [ngTemplateOutletContext]="{ $implicit: _contextPopover }">\n </ng-container>\n</div>',animations:[ae.trigger("detailExpand",[ae.state("collapsed",ae.style({height:"0px",minHeight:"0",display:"none"})),ae.state("expanded",ae.style({height:"*"})),ae.transition("expanded <=> collapsed",ae.animate("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])],styles:[".box-shadow{border-radius:2px;box-shadow:0 3px 1px -2px rgba(0,0,0,.14),0 2px 2px 0 rgba(0,0,0,.098),0 1px 5px 0 rgba(0,0,0,.084)}table{width:100%}itss-loading{margin:25px;opacity:.7}.no-records{height:48px;display:flex;align-items:center;justify-content:center;flex-direction:column;margin:30px;font-size:14px!important;font-weight:600!important;color:#b3afb3!important;text-transform:initial!important}.no-records mat-icon{font-size:32px;height:32px;width:32px;margin-bottom:5px}.footer-row{min-height:57px;font-weight:700;padding:15px 24px;display:flex;align-items:flex-end;justify-content:center;flex-direction:column;color:rgba(0,0,0,.67);border-bottom:1px solid rgba(0,0,0,.12)}.mat-cell-pointer{cursor:pointer}.detail-row{min-height:0!important;border-bottom-width:0}element-row:not(.expanded-row):hover{background:#f5f5f5}element-row:not(.expanded-row):active{background:#efefef}.hoversimulator:not(.highlight){background:#f5f5f5}.hoversimulator:has(.highlight){background-color:rgba(255,217,0,.212)!important}.highlight{background-color:rgba(255,217,0,.102)!important}::ng-deep mat-cell.cell-element-detail{font-weight:400!important}.element-detail{width:100%;overflow:hidden;display:flex;min-height:45px!important}.element-detail.collapsed{height:0!important;min-height:0!important;display:none!important}.element-detail.expanded{height:auto!important}.hidden-header,.hidden-header .mat-header-cell{height:0!important;min-height:0!important}.actions-popover.mat-card{min-width:auto!important;padding:5px!important;background:#f5f5f5;border-radius:5px!important}.actions-popover.mat-card .mat-card-content itss-button .mat-icon-button mat-icon{height:18px!important;width:18px!important}.table-level-1 .mat-table .mat-header-row{border-bottom:unset!important}.mat-column-expandedGroupHeader{padding:0!important}.group-header-cell{display:flex;flex-direction:row;align-items:center;width:100%}.group-header-sticky{position:-webkit-sticky;position:sticky;top:54px}.infinite-scroll-paginator{color:#696969;font-size:14px;display:flex;align-items:center;justify-content:center;height:56px;position:-webkit-sticky;position:sticky;bottom:0;background:#fff;border-top:1px solid #f3465c}.table-popover{position:fixed;display:inline-flex;background-color:#f5f5f5;width:auto;border-radius:0 0 10px 10px;border:1px solid #ddd;border-top-width:0;padding:2px 5px;z-index:1;visibility:hidden}"]}),Ce("design:paramtypes",[t.NgZone])],e)}(),jt=function(){function e(){this.maxlength=250,this.rows=2,this.appearance="outline",this.upperCase=!1,this.mentionConfiguration={},this._minHeight="60px",this._height="60px",this._maxHeight="auto",this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"value",{get:function(){return this.val},set:function(e){this.val=this.checkUppercase(e),this.onChange(this.val),this.onTouch()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minHeight",{get:function(){return this._minHeight},set:function(e){"AUTO"===e.trim().toUpperCase()?this._minHeight="auto":this._minHeight=le.coerceCssPixelValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(e){"AUTO"===e.trim().toUpperCase()?this._height="auto":this._height=le.coerceCssPixelValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxHeight",{get:function(){return this._maxHeight},set:function(e){"AUTO"===e.trim().toUpperCase()?this._maxHeight="auto":this._maxHeight=le.coerceCssPixelValue(e)},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.value=this.checkUppercase(e)},e.prototype.checkUppercase=function(e){return this.upperCase&&e?e.toUpperCase():e},we([t.ViewChild("input",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"_elementRef",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"maxlength",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"rows",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"appearance",void 0),we([t.Input("value"),Ce("design:type",Object)],e.prototype,"val",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"upperCase",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"mentionConfiguration",void 0),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"minHeight",null),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"height",null),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"maxHeight",null),e=n=we([t.Component({selector:"itss-textarea",template:'<div fxLayout="column">\n <mat-label *ngIf="label">\n {{ label }}\n <span *ngIf="required && label">*</span>\n </mat-label>\n <mat-form-field [appearance]="appearance">\n <textarea matInput\n #input\n upperCase\n autocomplete="off"\n [style.min-height.px]="height"\n [style.height.px]="height"\n [style.max-height.px]="height"\n [name]="name"\n [placeholder]="placeholder"\n [required]="required"\n [disabled]="disabled"\n [(ngModel)]="value"\n [maxlength]="maxlength"\n [enabledUpperCase]="upperCase"\n [rows]="rows"\n [mentionConfig]="mentionConfiguration"\n (blur)="onTouch()">\n </textarea>\n </mat-form-field>\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:[":host{display:block;min-width:0;max-width:100%;flex:1}mat-label span{color:#f44336!important}"]}),Ce("design:paramtypes",[])],e)}(),Lt=function(){function e(e){this.template=e}return e.prototype.getType=function(){return this.name},e.ctorParameters=function(){return[{type:t.TemplateRef}]},we([t.Input(),Ce("design:type",String)],e.prototype,"type",void 0),we([t.Input("pTemplate"),Ce("design:type",String)],e.prototype,"name",void 0),e=we([t.Directive({selector:"[pTemplate]",host:{}}),Ce("design:paramtypes",[t.TemplateRef])],e)}(),Bt=function(){function e(e,n){this.matSelect=e,this.ngZone=n,this.threshold="15%",this.debounceTime=100,this.infiniteScroll=new t.EventEmitter,this._thrPx=0,this._thrPc=0,this._singleOptionHeight=3,this._destroyed$=new ie.Subject}return e.prototype.ngOnInit=function(){this.evaluateThreshold()},e.prototype.ngAfterViewInit=function(){var e=this;this.matSelect.openedChange.pipe(oe.takeUntil(this._destroyed$)).subscribe((function(t){t&&(e._panel=e.matSelect.panel.nativeElement,e._singleOptionHeight=e.getSelectItemHeightPx(),e.registerScrollListener())}))},e.prototype.ngOnDestroy=function(){this._destroyed$.next(!0),this._destroyed$.complete()},e.prototype.evaluateThreshold=function(){this.threshold.lastIndexOf("%")>-1?(this._thrPx=0,this._thrPc=parseFloat(this.threshold)/100):(this._thrPx=parseFloat(this.threshold),this._thrPc=0)},e.prototype.registerScrollListener=function(){var e=this;ie.fromEvent(this._panel,"scroll").pipe(oe.takeUntil(this._destroyed$),oe.debounceTime(this.debounceTime),oe.tap((function(t){e.handleScrollEvent(t)}))).subscribe()},e.prototype.handleScrollEvent=function(e){var t=this;this.ngZone.runOutsideAngular((function(){if(!t.complete){var n=t.matSelect.options.length,i=t._singleOptionHeight*n,o=0!==t._thrPc?i*t._thrPc:t._thrPx;t._panel.clientHeight+e.target.scrollTop+o>=i&&t.ngZone.run((function(){return t.infiniteScroll.emit()}))}}))},e.prototype.getSelectItemHeightPx=function(){return 3*parseFloat(getComputedStyle(this._panel).fontSize)},e.ctorParameters=function(){return[{type:H.MatSelect},{type:t.NgZone}]},we([t.Input(),Ce("design:type",String)],e.prototype,"threshold",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"debounceTime",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"complete",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"infiniteScroll",void 0),e=we([t.Directive({selector:"[itssInfiniteScroll]"}),Ce("design:paramtypes",[H.MatSelect,t.NgZone])],e)}(),Yt=function(){function e(e){this.ngControl=e,this.enabledLowerCase=!1}return e.prototype.ngModelChange=function(e){this.onInputChange(e)},e.prototype.keydown=function(e){this.onInputChange(e.target.value)},e.prototype.onInputChange=function(e){this.enabledLowerCase&&this.ngControl.valueAccessor.writeValue(e.toLowerCase())},e.ctorParameters=function(){return[{type:r.NgControl}]},we([t.Input(),Ce("design:type",Object)],e.prototype,"enabledLowerCase",void 0),we([t.HostListener("ngModelChange",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"ngModelChange",null),we([t.HostListener("keydown",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"keydown",null),e=we([t.Directive({selector:"[lowerCase]"}),Ce("design:paramtypes",[r.NgControl])],e)}(),zt=function(){function e(e){this.ngControl=e}return e.prototype.onModelChange=function(e){this.onInputChange(e,!1)},e.prototype.keydownBackspace=function(e){this.onInputChange(e.target.value,!0)},e.prototype.onInputChange=function(e,t){var n=e.replace(/\D/g,"");t&&n.length<=6&&(n=n.substring(0,n.length-1)),n=0===n.length?"":n.length<=3?n.replace(/^(\d{0,2})/,"($1)"):n.length<=6?n.replace(/^(\d{0,2})(\d{0,4})/,"($1) $2"):n.length<=10?n.replace(/^(\d{0,2})(\d{0,4})(\d{0,4})/,"($1) $2-$3"):(n=n.substring(0,11)).replace(/^(\d{0,2})(\d{0,5})(\d{0,4})/,"($1) $2-$3"),this.ngControl.valueAccessor.writeValue(n)},e.ctorParameters=function(){return[{type:r.NgControl}]},we([t.HostListener("ngModelChange",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"onModelChange",null),we([t.HostListener("keydown.backspace",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"keydownBackspace",null),e=we([t.Directive({selector:"[phoneMask]"}),Ce("design:paramtypes",[r.NgControl])],e)}(),Ht=function(){function e(e){this.ngControl=e,this.spaceDrop=!1}return e.prototype.ngModelChange=function(e){this.onInputChange(e)},e.prototype.keydown=function(e){this.onInputChange(e.target.value)},e.prototype.onInputChange=function(e){this.spaceDrop&&this.ngControl.valueAccessor.writeValue(e.replace(/\s/g,""))},e.ctorParameters=function(){return[{type:r.NgControl}]},we([t.Input(),Ce("design:type",Object)],e.prototype,"spaceDrop",void 0),we([t.HostListener("ngModelChange",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"ngModelChange",null),we([t.HostListener("keydown",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"keydown",null),e=we([t.Directive({selector:"[spaceDrop]"}),Ce("design:paramtypes",[r.NgControl])],e)}(),Gt=function(){function e(e){this.ngControl=e,this.enabledUpperCase=!1}return e.prototype.ngModelChange=function(e){this.onInputChange(e)},e.prototype.keydown=function(e){this.onInputChange(e.target.value)},e.prototype.onInputChange=function(e){this.enabledUpperCase&&this.ngControl.valueAccessor.writeValue(e.toUpperCase())},e.ctorParameters=function(){return[{type:r.NgControl}]},we([t.Input(),Ce("design:type",Object)],e.prototype,"enabledUpperCase",void 0),we([t.HostListener("ngModelChange",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"ngModelChange",null),we([t.HostListener("keydown",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"keydown",null),e=we([t.Directive({selector:"[upperCase]"}),Ce("design:paramtypes",[r.NgControl])],e)}(),Ut=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1001},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 767.98px)",priority:1001},{alias:"md",mediaQuery:"screen and (min-width: 768px) and (max-width: 1365.98px)",priority:1001},{alias:"lg",mediaQuery:"screen and (min-width: 1366px) and (max-width: 1919.98px)",priority:1001},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:1001},{alias:"lt-xs",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:1001},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 767.98px)",priority:1001},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 1365.98px)",priority:1001},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1919.98px)",priority:1001},{alias:"lt-xl",overlapping:!0,priority:1001,mediaQuery:"screen and (max-width: 4999.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:1001},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 768px)",priority:1001},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1366px)",priority:1001},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:1001}],qt={provide:o.BREAKPOINT,useValue:Ut,multi:!0},Wt=function(){function e(){this.filesChangeEmiter=new t.EventEmitter,this.disabled=!1,this.background="transparent",this.borderStyle="2px dashed",this.borderColor="#595959",this.borderRadius="5px"}return e.prototype.onDragOver=function(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this.background="transparent",this.borderColor="#595959",this.borderStyle="2px solid")},e.prototype.onDragLeave=function(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this.background="#f5f5f6",this.borderColor="#262626",this.borderStyle="2px dashed")},e.prototype.onDrop=function(e){if(!this.disabled){e.preventDefault(),e.stopPropagation(),this.background="transparent",this.borderColor="#595959",this.borderStyle="2px dashed";var t=e.dataTransfer.files;this.filesChangeEmiter.emit(t)}},we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"filesChangeEmiter",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.HostBinding("style.background"),Ce("design:type",String)],e.prototype,"background",void 0),we([t.HostBinding("style.border"),Ce("design:type",String)],e.prototype,"borderStyle",void 0),we([t.HostBinding("style.border-color"),Ce("design:type",String)],e.prototype,"borderColor",void 0),we([t.HostBinding("style.border-radius"),Ce("design:type",String)],e.prototype,"borderRadius",void 0),we([t.HostListener("dragover",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"onDragOver",null),we([t.HostListener("dragleave",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"onDragLeave",null),we([t.HostListener("drop",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"onDrop",null),e=we([t.Directive({selector:"[fileDragAndDrop]"}),Ce("design:paramtypes",[])],e)}(),$t=function(){function e(e,n){this._cdkVirtualScrollViewport=e,this._ngZone=n,this._thrPx=0,this._thrPc=0,this._destroyed$=new ie.Subject,this.infiniteScrollDistance="15%",this.infiniteScrollThrottle=150,this.infiniteScrollDisabled=!1,this.infiniteScrollOptionHeight=48,this.scrolled=new t.EventEmitter}return e.prototype.ngOnInit=function(){this.evaluateThreshold()},e.prototype.ngAfterViewInit=function(){this.infiniteScrollDisabled||(this._panel=this._cdkVirtualScrollViewport.getElementRef().nativeElement,this.registerScrollListener())},e.prototype.ngOnDestroy=function(){this._destroyed$.next(!0),this._destroyed$.complete()},e.prototype.evaluateThreshold=function(){"string"==typeof this.infiniteScrollDistance&&this.infiniteScrollDistance.lastIndexOf("%")>-1?(this._thrPx=0,this._thrPc=parseFloat(this.infiniteScrollDistance)/100):(this._thrPx=parseFloat(this.infiniteScrollDistance),this._thrPc=0)},e.prototype.registerScrollListener=function(){var e=this;this._cdkVirtualScrollViewport.elementScrolled,ie.fromEvent(this._panel,"scroll").pipe(oe.takeUntil(this._destroyed$),oe.debounceTime(this.infiniteScrollThrottle),oe.tap((function(t){return e.handleScrollEvent(t)}))).subscribe()},e.prototype.handleScrollEvent=function(e){var t=this;this._ngZone.runOutsideAngular((function(){if(!t.infiniteScrollcomplete){var n=t._cdkVirtualScrollViewport.getDataLength(),i=t.infiniteScrollOptionHeight*n,o=0!==t._thrPc?i*t._thrPc:t._thrPx;t._panel.clientHeight+e.target.scrollTop+o>=i&&t._ngZone.run((function(){return t.scrolled.emit()}))}}))},e.ctorParameters=function(){return[{type:v.CdkVirtualScrollViewport},{type:t.NgZone}]},we([t.Input(),Ce("design:type",String)],e.prototype,"infiniteScrollDistance",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"infiniteScrollThrottle",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"infiniteScrollDisabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"infiniteScrollcomplete",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"infiniteScrollOptionHeight",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"scrolled",void 0),e=we([t.Directive({selector:"[GIPIInfiniteScroll]"}),Ce("design:paramtypes",[v.CdkVirtualScrollViewport,t.NgZone])],e)}(),Kt=function(){},Xt=function(){function e(e,t){var n=this;this.ngZone=e,this.rendererFactory2=t,this.resizeSource$=new ie.Subject,this.listeners=0,this.disposeHandle=Kt,this.handler=function(){n.ngZone.run((function(){n.resizeSource$.next()}))},this.renderer=this.rendererFactory2.createRenderer(null,null)}return e.prototype.ngOnDestroy=function(){this.handler=Kt},e.prototype.subscribe=function(){var e=this;return this.registerListener(),this.resizeSource$.pipe(oe.auditTime(16),oe.finalize((function(){return e.unregisterListener()})))},e.prototype.unsubscribe=function(){this.unregisterListener()},e.prototype.registerListener=function(){var e=this;0===this.listeners&&this.ngZone.runOutsideAngular((function(){e.disposeHandle=e.renderer.listen("window","resize",e.handler)})),this.listeners+=1},e.prototype.unregisterListener=function(){this.listeners-=1,0===this.listeners&&(this.disposeHandle(),this.disposeHandle=Kt)},e.ctorParameters=function(){return[{type:t.NgZone},{type:t.RendererFactory2}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(t.NgZone),t.ɵɵinject(t.RendererFactory2))},token:e,providedIn:"root"}),e=we([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[t.NgZone,t.RendererFactory2])],e)}();(Tt=e.BreakpointEnum||(e.BreakpointEnum={})).xl="xl",Tt.lg="lg",Tt.md="md",Tt.sm="sm",Tt.xs="xs";var Zt={xs:"(max-width: 419px)",sm:"(min-width: 420px)",md:"(min-width: 600px)",lg:"(min-width: 768px)",xl:"(min-width: 1366px)"},Jt=function(){function n(e,t){this.resizeService=e,this.mediaMatcher=t,this.destroy$=new ie.Subject,this.resizeService.subscribe().pipe(oe.takeUntil(this.destroy$)).subscribe((function(){}))}return n.prototype.ngOnDestroy=function(){this.destroy$.next()},n.prototype.subscribe=function(e,t){var n=this;if(t){var i=function(){return n.matchMedia(e,!0)};return this.resizeService.subscribe().pipe(oe.map(i),oe.startWith(i()),oe.distinctUntilChanged((function(e,t){return e[0]===t[0]})),oe.map((function(e){return e[1]})))}i=function(){return n.matchMedia(e)};return this.resizeService.subscribe().pipe(oe.map(i),oe.startWith(i()),oe.distinctUntilChanged())},n.prototype.matchMedia=function(t,n){var i=this,o=e.BreakpointEnum.md,r={};return Object.keys(t).map((function(e){var t=e,n=i.mediaMatcher.matchMedia(Zt[t]).matches;r[e]=n,n&&(o=t)})),n?[o,r]:o},n.ctorParameters=function(){return[{type:Xt},{type:pe.MediaMatcher}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(Xt),t.ɵɵinject(pe.MediaMatcher))},token:n,providedIn:"root"}),n=we([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[Xt,pe.MediaMatcher])],n)}(),Qt=function(){function e(e,t,n,i,o,r){this.elementRef=e,this.renderer=t,this.mediaMatcher=n,this.ngZone=i,this.platform=o,this._breakpointService=r,this._destroy$=new ie.Subject,this.actualGap$=new ie.ReplaySubject(1),this.GIPIAlign=null,this.GIPIJustify=null,this.GIPIGap=null}return e.prototype.ngOnInit=function(){this._setGapStyle()},e.prototype.ngOnChanges=function(e){e.GIPIGap&&this._setGapStyle()},e.prototype.ngAfterViewInit=function(){var e=this;this.platform.isBrowser&&this._breakpointService.subscribe(Zt).pipe(oe.takeUntil(this._destroy$)).subscribe((function(){e._setGapStyle()}))},e.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete()},e.prototype._setGapStyle=function(){var e=Oe(this._getGap(),2),t=e[0],n=e[1];null===t&&null!==n&&(t=0),null===n&&(n=0),this.actualGap$.next([t,n]);var i=this.elementRef.nativeElement;null!==t&&null!==n&&this.renderer.setStyle(i,"gap",n+"px "+t+"px")},e.prototype._getGap=function(){var e=this,t=[null,null],n=this.GIPIGap||0;return(Array.isArray(n)?n:[n,null]).forEach((function(n,i){"object"==typeof n&&null!==n?(t[i]=null,Object.keys(Zt).map((function(o){var r=o;e.mediaMatcher.matchMedia(Zt[r]).matches&&n[r]&&(t[i]=n[r])}))):t[i]=Number(n)||null})),t},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2},{type:pe.MediaMatcher},{type:t.NgZone},{type:de.Platform},{type:Jt}]},we([t.Input(),Ce("design:type",String)],e.prototype,"GIPIAlign",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"GIPIJustify",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIGap",void 0),e=we([t.Directive({selector:"[gipi-row],gipi-row,GIPIRow",exportAs:"gipiRow",host:{class:"grid-row","[class.grid-row-top]":"GIPIAlign === 'top'","[class.grid-row-middle]":"GIPIAlign === 'middle'","[class.grid-row-bottom]":"GIPIAlign === 'bottom'","[class.grid-row-start]":"GIPIJustify === 'start'","[class.grid-row-end]":"GIPIJustify === 'end'","[class.grid-row-center]":"GIPIJustify === 'center'","[class.grid-row-space-around]":"GIPIJustify === 'space-around'","[class.grid-row-space-between]":"GIPIJustify === 'space-between'","[class.grid-row-space-evenly]":"GIPIJustify === 'space-evenly'"}}),Ce("design:paramtypes",[t.ElementRef,t.Renderer2,pe.MediaMatcher,t.NgZone,de.Platform,Jt])],e)}(),en=function(){function e(e,t,n){this.elementRef=e,this.GIPIRowDirective=t,this.renderer=n,this._classMap={},this._destroy$=new ie.Subject,this.hostFlexStyle=null,this.GIPIFlex=null,this.GIPISpan=null,this.GIPIOrder=null,this.GIPIOffset=null,this.GIPIPush=null,this.GIPIPull=null,this.GIPIXs=null,this.GIPISm=null,this.GIPIMd=null,this.GIPILg=null,this.GIPIXl=null,this.GIPIXXl=null}return e.prototype.ngOnInit=function(){this._setHostClassMap(),this._setHostFlexStyle()},e.prototype.ngOnChanges=function(e){this._setHostClassMap(),e.GIPIFlex&&this._setHostFlexStyle()},e.prototype.ngAfterViewInit=function(){},e.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete()},e.prototype._setHostClassMap=function(){var e,t=_e(((e={})["grid-col"]=!0,e["grid-col-"+this.GIPISpan]=!ze.isNull(this.GIPISpan),e["grid-col-order-"+this.GIPIOrder]=!ze.isNull(this.GIPIOrder),e["grid-col-offset-"+this.GIPIOffset]=!ze.isNull(this.GIPIOffset),e["grid-col-pull-"+this.GIPIPull]=!ze.isNull(this.GIPIPull),e["grid-col-push-"+this.GIPIPush]=!ze.isNull(this.GIPIPush),e),this._generateClass());for(var n in this._classMap)this._classMap.hasOwnProperty(n)&&this.renderer.removeClass(this.elementRef.nativeElement,n);for(var n in this._classMap=_e({},t),this._classMap)this._classMap.hasOwnProperty(n)&&this._classMap[n]&&this.renderer.addClass(this.elementRef.nativeElement,n)},e.prototype._setHostFlexStyle=function(){this.hostFlexStyle=this._parseFlex(this.GIPIFlex)},e.prototype._parseFlex=function(e){return"number"==typeof e?e+" "+e+" auto":"string"==typeof e&&/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 "+e:e},e.prototype._generateClass=function(){var e=this,t={};return["GIPIXs","GIPISm","GIPIMd","GIPILg","GIPIXl","GIPIXXl"].forEach((function(n){var i=n.replace("GIPI","").toLowerCase();if(!ze.isNull(e[n]))if("number"==typeof e[n]||"string"==typeof e[n])t["grid-col-"+i+"-"+e[n]]=!0;else{var o=e[n];["span","pull","push","offset","order"].forEach((function(e){t["grid-col-"+i+("span"===e?"-":"-"+e+"-")+o[e]]=o&&!ze.isNull(o[e])}))}})),t},e.ctorParameters=function(){return[{type:t.ElementRef},{type:Qt,decorators:[{type:t.Optional},{type:t.Host}]},{type:t.Renderer2}]},we([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIFlex",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"GIPISpan",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIOrder",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIOffset",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIPush",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIPull",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIXs",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"GIPISm",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIMd",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"GIPILg",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIXl",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIXXl",void 0),e=we([t.Directive({selector:"[gipi-col],gipi-col,GIPICol",exportAs:"gipiCol",host:{class:"grid-col","[style.flex]":"hostFlexStyle"}}),xe(1,t.Optional()),xe(1,t.Host()),Ce("design:paramtypes",[t.ElementRef,Qt,t.Renderer2])],e)}(),tn=function(){function e(e){this.elementRef=e}var n;return n=e,e.prototype.ngOnInit=function(){var e,t,n=this.elementRef.nativeElement;Be.isEmpty(this.className)||n.classList.add(this.className),n.style.setProperty("--skeleton-rect-width",null!==(e=this.width)&&void 0!==e?e:"100%"),n.style.setProperty("--skeleton-rect-height",null!==(t=this.height)&&void 0!==t?t:"20px")},e.ctorParameters=function(){return[{type:t.ElementRef}]},e=n=we([t.Component({selector:"gipi-skeleton",exportAs:"gipiSkeleton",template:"",providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-skeleton"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:block;width:var(--skeleton-rect-width);height:var(--skeleton-rect-height);background:no-repeat #eff1f6}.gipi-skeleton{-webkit-animation:1.5s cubic-bezier(.4,0,.2,1) infinite pulse;animation:1.5s cubic-bezier(.4,0,.2,1) infinite pulse;-webkit-animation-delay:.5s;animation-delay:.5s}@-webkit-keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}}@keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}}"]}),Ce("design:paramtypes",[t.ElementRef])],e)}();var nn=function(){function e(e,t,n,i){this._templateRef=e,this._viewContainerRef=t,this._componentFactoryResolver=n,this._elementRef=i,this.loading=!1,this.size=1}return e.prototype.ngOnChanges=function(e){e.loading&&(this._viewContainerRef.clear(),e.loading.currentValue?this._createSkeletons():this._viewContainerRef.createEmbeddedView(this._templateRef))},e.prototype._createSkeletons=function(){var e,t,n=this,i=this._elementRef.nativeElement.getBoundingClientRect(),o="rand"===this.width?(e=30,t=90,Math.floor(Math.random()*(t-e+1))+e+"%"):this.width||i.width+"px",r=this.height||i.height+"px";Array.from({length:this.size}).forEach((function(){var e=n._componentFactoryResolver.resolveComponentFactory(tn),t=n._viewContainerRef.createComponent(e);Object.assign(t.instance,{width:o,height:r,className:n.className})}))},e.ctorParameters=function(){return[{type:t.TemplateRef},{type:t.ViewContainerRef},{type:t.ComponentFactoryResolver},{type:t.ElementRef}]},we([t.Input("skeleton"),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input("skeletonRepeat"),Ce("design:type",Number)],e.prototype,"size",void 0),we([t.Input("skeletonWidth"),Ce("design:type",String)],e.prototype,"width",void 0),we([t.Input("skeletonHeight"),Ce("design:type",String)],e.prototype,"height",void 0),we([t.Input("skeletonClassName"),Ce("design:type",String)],e.prototype,"className",void 0),e=we([t.Directive({selector:"[skeleton]"}),Ce("design:paramtypes",[t.TemplateRef,t.ViewContainerRef,t.ComponentFactoryResolver,t.ElementRef])],e)}(),on=function(){function e(){this._instances={},this._DEFAULT_ID="DEFAULT_PAGINATION_ID",this.change=new t.EventEmitter}return e.prototype.defaultId=function(){return this._DEFAULT_ID},e.prototype.register=function(e){return null==e.id&&(e.id=this._DEFAULT_ID),this._instances[e.id]?this.updateInstance(e):(this._instances[e.id]=e,!0)},e.prototype.updateInstance=function(e){var t=!1;for(var n in this._instances[e.id])e[n]!==this._instances[e.id][n]&&(this._instances[e.id][n]=e[n],t=!0);return t},e.prototype.getCurrentPage=function(e){return this._instances[e]?this._instances[e].currentPage:1},e.prototype.setCurrentPage=function(e,t){if(this._instances[e]){var n=this._instances[e];t<=Math.ceil(n.totalItems/n.itemsPerPage)&&1<=t&&(this._instances[e].currentPage=t,this.change.emit(e))}},e.prototype.setTotalItems=function(e,t){this._instances[e]&&0<=t&&(this._instances[e].totalItems=t,this.change.emit(e))},e.prototype.setItemsPerPage=function(e,t){this._instances[e]&&(this._instances[e].itemsPerPage=t,this.change.emit(e))},e.prototype.getInstance=function(e){return void 0===e&&(e=this._DEFAULT_ID),this._instances[e]?this.clone(this._instances[e]):{}},e.prototype.clone=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},e}(),rn=function(){function e(e,n){var i=this;this._service=e,this._changeDetectorRef=n,this.pages=[],this.maxSize=5,this.pageChange=new t.EventEmitter,this.pageBoundsCorrection=new t.EventEmitter,this.changeSub=this._service.change.subscribe((function(e){i.id===e&&(i.updatePageLinks(),i._changeDetectorRef.markForCheck(),i._changeDetectorRef.detectChanges())}))}return e.prototype.ngOnInit=function(){void 0===this.id&&(this.id=this._service.defaultId()),this.updatePageLinks()},e.prototype.ngOnChanges=function(e){this.updatePageLinks()},e.prototype.ngOnDestroy=function(){this.changeSub.unsubscribe()},e.prototype.previous=function(){this.checkValidId(),this.setCurrent(this.getCurrent()-1)},e.prototype.next=function(){this.checkValidId(),this.setCurrent(this.getCurrent()+1)},e.prototype.isFirstPage=function(){return 1===this.getCurrent()},e.prototype.isLastPage=function(){return this.getLastPage()===this.getCurrent()},e.prototype.setCurrent=function(e){this.pageChange.emit(e)},e.prototype.getCurrent=function(){return this._service.getCurrentPage(this.id)},e.prototype.getLastPage=function(){var e=this._service.getInstance(this.id);return e.totalItems<1?1:Math.ceil(e.totalItems/e.itemsPerPage)},e.prototype.getTotalItems=function(){return this._service.getInstance(this.id).totalItems},e.prototype.checkValidId=function(){null==this._service.getInstance(this.id).id&&console.warn('PaginationControlsDirective: O id especificado "'+this.id+'" não corresponde a nenhuma PaginationInstance registrada')},e.prototype.updatePageLinks=function(){var e=this,t=this._service.getInstance(this.id),n=this.outOfBoundCorrection(t);n!==t.currentPage?setTimeout((function(){e.pageBoundsCorrection.emit(n),e.pages=e.createPageArray(t.currentPage,t.itemsPerPage,t.totalItems,e.maxSize)})):this.pages=this.createPageArray(t.currentPage,t.itemsPerPage,t.totalItems,this.maxSize)},e.prototype.outOfBoundCorrection=function(e){var t=Math.ceil(e.totalItems/e.itemsPerPage);return t<e.currentPage&&0<t?t:e.currentPage<1?1:e.currentPage},e.prototype.createPageArray=function(e,t,n,i){i=+i;for(var o=[],r=Math.max(Math.ceil(n/t),1),a=Math.ceil(i/2),s=e<=a,l=r-a<e,p=!s&&!l,d=i<r,c=1;c<=r&&c<=i;){var u=void 0,h=this.calculatePageNumber(c,e,i,r);u=d&&(2===c&&(p||l)||c===i-1&&(p||s))?"...":String(h),o.push({label:u,value:h}),c++}return o},e.prototype.calculatePageNumber=function(e,t,n,i){var o=Math.ceil(n/2);return e===n?i:1===e?e:n<i?i-o<t?i-n+e:o<t?t-o+e:e:e},e.ctorParameters=function(){return[{type:on},{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"maxSize",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"pageChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"pageBoundsCorrection",void 0),e=we([t.Directive({selector:"pagination-template,[pagination-template]",exportAs:"paginationApi"}),Ce("design:paramtypes",[on,t.ChangeDetectorRef])],e)}(),an=function(){function e(e){this.viewContainer=e}return e.ctorParameters=function(){return[{type:t.ViewContainerRef}]},e=we([t.Directive({selector:"[GIPIDynamicTab]"}),Ce("design:paramtypes",[t.ViewContainerRef])],e)}(),sn=function(){function e(e){this.template=e}return e.prototype.getType=function(){return this.name},e.ctorParameters=function(){return[{type:t.TemplateRef}]},we([t.Input(),Ce("design:type",String)],e.prototype,"type",void 0),we([t.Input("gipi-template"),Ce("design:type",String)],e.prototype,"name",void 0),e=we([t.Directive({selector:"[GIPItemplate]",exportAs:"GIPITemplate",host:{class:"gipi-template"}}),Ce("design:paramtypes",[t.TemplateRef])],e)}(),ln=Number.MAX_SAFE_INTEGER,pn=function(){function e(e){this._service=e,this._state={}}return e.prototype.transform=function(e,t){if(!(e instanceof Array)){var n=t.id||this._service.defaultId();return this._state[n]?this._state[n].slice:e}var i,o,r=t.totalItems&&t.totalItems!==e.length,a=this.createInstance(e,t),s=a.id,l=a.itemsPerPage,p=this._service.register(a);if(!r&&e instanceof Array){if(l=+l||ln,o=(i=(a.currentPage-1)*l)+l,this.stateIsIdentical(s,e,i,o))return this._state[s].slice;var d=e.slice(i,o);return this.saveState(s,e,d,i,o),this._service.change.emit(s),d}return p&&this._service.change.emit(s),this.saveState(s,e,e,i,o),e},e.prototype.createInstance=function(e,t){return this.checkConfig(t),{id:null!=t.id?t.id:this._service.defaultId(),itemsPerPage:+t.itemsPerPage||0,currentPage:+t.currentPage||1,totalItems:+t.totalItems||e.length}},e.prototype.checkConfig=function(e){var t=["itemsPerPage","currentPage"].filter((function(t){return!(t in e)}));if(0<t.length)throw new Error("PaginatePipe: Argumento está faltando as seguintes propriedades necessárias: "+t.join(", "))},e.prototype.saveState=function(e,t,n,i,o){this._state[e]={collection:t,size:t.length,slice:n,start:i,end:o}},e.prototype.stateIsIdentical=function(e,t,n,i){var o=this._state[e];return!!o&&(!(o.size!==t.length||o.start!==n||o.end!==i)&&o.slice.every((function(e,i){return e===t[n+i]})))},e.ctorParameters=function(){return[{type:on}]},e=we([t.Pipe({name:"paginate",pure:!1}),Ce("design:paramtypes",[on])],e)}(),dn=function(){function e(){}var n;return n=e,e.prototype.ngOnInit=function(){},e=n=we([t.Component({selector:"gipi-action-row",exportAs:"gipiActionRow",template:"<ng-content> </ng-content>\n",providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-action-row"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{width:100%;display:flex;flex-direction:row;align-items:center;justify-content:flex-end;padding:16px 0;gap:16px;background-color:#fff;border-top:1px solid #e0e1e2;box-shadow:0 11px 8px -10px #e0e1e2,0 -11px 8px -10px #e0e1e2}"]}),Ce("design:paramtypes",[])],e)}(),cn=function(){function e(){this.flexDirection="column",this.gap=32,this.alignItems="stretch",this.justifyContent="flex-start",this.padding=16,this.dialog=!1,this.loading=!1}var n;return n=e,Object.defineProperty(e.prototype,"attrMargin",{get:function(){return this.dialog?"0":"0 auto"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{set:function(e){e||(this.attrId=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{set:function(e){e&&(this.attrName=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getPadding",{get:function(){return"string"==typeof this.padding&&this.padding.includes("px")?this.padding:this.padding+"px"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getGap",{get:function(){return"string"==typeof this.gap&&this.gap.includes("px")?this.gap:this.gap+"px"},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){var e=this;if(this.dialog&&!ze.isNull(this.matDialogContent)){var t=this.matDialogContent.nativeElement;!ze.isNull(t)&&this._hasScroll(t)?(t.scrollTop=0,this.matDialogActions.nativeElement.style.boxShadow="0px -10px 15px -3px rgba(0,0,0,0.1)",t.addEventListener("scroll",(function(){return e._onScroll(t)}))):this._removeShadows()}},e.prototype._onScroll=function(e){var t=e.scrollTop||0,n=e.scrollHeight-36||0,i=e.clientHeight||0;0===t?(this.matDialogTitle.nativeElement.style.boxShadow="",this.matDialogActions.nativeElement.style.boxShadow="0px -10px 15px -3px rgba(0,0,0,0.1)"):t+i>=n?(this.matDialogTitle.nativeElement.style.boxShadow="0px 10px 15px -3px rgba(0,0,0,0.1)",this.matDialogActions.nativeElement.style.boxShadow=""):(this.matDialogTitle.nativeElement.style.boxShadow="0px 10px 15px -3px rgba(0,0,0,0.1)",this.matDialogActions.nativeElement.style.boxShadow="0px -10px 15px -3px rgba(0,0,0,0.1)")},e.prototype._hasScroll=function(e){return!ze.isNull(e)&&e.scrollHeight>e.clientHeight},e.prototype._removeShadows=function(){ze.isNull(this.matDialogTitle)||(this.matDialogTitle.nativeElement.style.boxShadow=""),ze.isNull(this.matDialogActions)||(this.matDialogActions.nativeElement.style.boxShadow="")},we([t.HostBinding("attr.id"),Ce("design:type",String)],e.prototype,"attrId",void 0),we([t.HostBinding("attr.name"),Ce("design:type",String)],e.prototype,"attrName",void 0),we([t.HostBinding("style.margin"),Ce("design:type",Object),Ce("design:paramtypes",[])],e.prototype,"attrMargin",null),we([t.ContentChildren(dn),Ce("design:type",dn)],e.prototype,"GIPIActionRowComponent",void 0),we([t.ContentChild(a.MatDialogTitle,{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"matDialogTitle",void 0),we([t.ContentChild(a.MatDialogContent,{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"matDialogContent",void 0),we([t.ContentChild(a.MatDialogActions,{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"matDialogActions",void 0),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"id",null),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"name",null),we([t.Input(),Ce("design:type",String)],e.prototype,"flexDirection",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"gap",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"alignItems",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"justifyContent",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"padding",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"dialog",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"class",void 0),e=n=we([t.Component({selector:"gipi-abstract-form",exportAs:"gipiAbstractForm",template:'<div [class]="class"\n [class.form-content]="true"\n [class.form-dialog]="dialog"\n [class.space-bottom]="!dialog"\n [style.flex-direction]="flexDirection"\n [style.align-items]="alignItems"\n [style.justify-content]="justifyContent"\n [style.gap]="getGap"\n [style.padding]="getPadding">\n <ng-content> </ng-content>\n</div>\n<div class="form-footer"\n [style.margin-inline]="getPadding"\n *ngIf="GIPIActionRowComponent">\n <ng-content select="gipi-action-row"> </ng-content>\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-abstract-form"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:flex;flex-direction:column;width:100%;max-width:1920px;background:#fff;padding-bottom:0!important;position:relative;margin:0 auto!important;box-shadow:10px 0 25px -5px rgba(0,0,0,.1),-10px 0 25px -5px rgba(0,0,0,.1);min-height:100%}.form-content{display:flex;height:100%;width:100%;flex:1;place-content:flex-start;overflow-y:auto;overflow-x:hidden}.form-content.space-bottom{margin-bottom:16px}.form-footer{position:-webkit-sticky;position:sticky;bottom:0}"]}),Ce("design:paramtypes",[])],e)}(),un=function(){function e(){this.color="primary",this.textColor="#ffffff"}var n;return n=e,e.prototype.ngOnInit=function(){},we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"color",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"textColor",void 0),e=n=we([t.Component({selector:"gipi-badge",template:'<span class="badge"\n [style.background-color]="color"\n [style.color]="textColor">\n <span>{{ label }}</span>\n</span>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-badge"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host .badge{display:flex;align-items:center;justify-content:center;padding:.5rem 1.5rem;border-radius:10rem;text-align:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;pointer-events:none;color:#fff;font-weight:500;font-size:1.2rem;min-width:7rem}"]}),Ce("design:paramtypes",[])],e)}(),hn=function(){function e(){}return e.addClass=function(e,t){e&&t&&(e.classList?e.classList.add(t):e.className+=" "+t)},e.addMultipleClasses=function(e,t){if(e&&t)if(e.classList)for(var n=t.trim().split(" "),i=0;i<n.length;i++)e.classList.add(n[i]);else for(n=t.split(" "),i=0;i<n.length;i++)e.className+=" "+n[i]},e.removeClass=function(e,t){e&&t&&(e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," "))},e.hasClass=function(e,t){return!(!e||!t)&&(e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className))},e.siblings=function(e){return Array.prototype.filter.call(e.parentNode.children,(function(t){return t!==e}))},e.find=function(e,t){return Array.from(e.querySelectorAll(t))},e.findSingle=function(e,t){return e?e.querySelector(t):null},e.index=function(e){for(var t=e.parentNode.childNodes,n=0,i=0;i<t.length;i++){if(t[i]==e)return n;1==t[i].nodeType&&n++}return-1},e.indexWithinGroup=function(e,t){for(var n=e.parentNode?e.parentNode.childNodes:[],i=0,o=0;o<n.length;o++){if(n[o]==e)return i;n[o].attributes&&n[o].attributes[t]&&1==n[o].nodeType&&i++}return-1},e.appendOverlay=function(e,t,n){void 0===n&&(n="self"),"self"!==n&&e&&t&&this.appendChild(e,t)},e.alignOverlay=function(t,n,i,o){void 0===i&&(i="self"),void 0===o&&(o=!0),t&&n&&(o&&(t.style.minWidth||(t.style.minWidth=e.getOuterWidth(n)+"px")),"self"===i?this.relativePosition(t,n):this.absolutePosition(t,n))},e.relativePosition=function(e,t){var n,i,o=function(e){if(e)return"relative"===getComputedStyle(e).getPropertyValue("position")?e:o(e.parentElement)},r=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),a=t.offsetHeight,s=t.getBoundingClientRect(),l=this.getWindowScrollTop(),p=this.getWindowScrollLeft(),d=this.getViewport(),c=o(e),u=(null==c?void 0:c.getBoundingClientRect())||{top:-1*l,left:-1*p};s.top+a+r.height>d.height?(n=s.top-u.top-r.height,e.style.transformOrigin="bottom",s.top+n<0&&(n=-1*s.top)):(n=a+s.top-u.top,e.style.transformOrigin="top"),i=r.width>d.width?-1*(s.left-u.left):s.left-u.left+r.width>d.width?-1*(s.left-u.left+r.width-d.width):s.left-u.left,e.style.top=n+"px",e.style.left=i+"px"},e.absolutePosition=function(e,t){var n,i,o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),r=o.height,a=o.width,s=t.offsetHeight,l=t.offsetWidth,p=t.getBoundingClientRect(),d=this.getWindowScrollTop(),c=this.getWindowScrollLeft(),u=this.getViewport();p.top+s+r>u.height?(n=p.top+d-r,e.style.transformOrigin="bottom",n<0&&(n=d)):(n=s+p.top+d,e.style.transformOrigin="top"),i=p.left+a>u.width?Math.max(0,p.left+c+l-a):p.left+c,e.style.top=n+"px",e.style.left=i+"px"},e.getParents=function(e,t){return void 0===t&&(t=[]),null===e.parentNode?t:this.getParents(e.parentNode,t.concat([e.parentNode]))},e.getScrollableParents=function(e){var t,n,i,o,r=[];if(e){var a=this.getParents(e),s=/(auto|scroll)/,l=function(e){var t=window.getComputedStyle(e,null);return s.test(t.getPropertyValue("overflow"))||s.test(t.getPropertyValue("overflowX"))||s.test(t.getPropertyValue("overflowY"))};try{for(var p=ke(a),d=p.next();!d.done;d=p.next()){var c=d.value,u=1===c.nodeType&&c.dataset.scrollselectors;if(u){var h=u.split(",");try{for(var g=(i=void 0,ke(h)),m=g.next();!m.done;m=g.next()){var f=m.value,y=this.findSingle(c,f);y&&l(y)&&r.push(y)}}catch(e){i={error:e}}finally{try{m&&!m.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}}9!==c.nodeType&&l(c)&&r.push(c)}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}}return r},e.getHiddenElementOuterHeight=function(e){e.style.visibility="hidden",e.style.display="block";var t=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",t},e.getHiddenElementOuterWidth=function(e){e.style.visibility="hidden",e.style.display="block";var t=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",t},e.getHiddenElementDimensions=function(e){var t={};return e.style.visibility="hidden",e.style.display="block",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",t},e.scrollInView=function(e,t){var n=getComputedStyle(e).getPropertyValue("borderTopWidth"),i=n?parseFloat(n):0,o=getComputedStyle(e).getPropertyValue("paddingTop"),r=o?parseFloat(o):0,a=e.getBoundingClientRect(),s=t.getBoundingClientRect().top+document.body.scrollTop-(a.top+document.body.scrollTop)-i-r,l=e.scrollTop,p=e.clientHeight,d=this.getOuterHeight(t);s<0?e.scrollTop=l+s:s+d>p&&(e.scrollTop=l+s-p+d)},e.fadeIn=function(e,t){e.style.opacity=0;var n=+new Date,i=0,o=function(){i=+e.style.opacity.replace(",",".")+((new Date).getTime()-n)/t,e.style.opacity=i,n=+new Date,+i<1&&(window.requestAnimationFrame&&requestAnimationFrame(o)||setTimeout(o,16))};o()},e.fadeOut=function(e,t){var n=1,i=50/t,o=setInterval((function(){(n-=i)<=0&&(n=0,clearInterval(o)),e.style.opacity=n}),50)},e.getWindowScrollTop=function(){var e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)},e.getWindowScrollLeft=function(){var e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)},e.matches=function(e,t){var n=Element.prototype;return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||function(e){return-1!==[].indexOf.call(document.querySelectorAll(e),this)}).call(e,t)},e.getOuterWidth=function(e,t){var n=e.offsetWidth;if(t){var i=getComputedStyle(e);n+=parseFloat(i.marginLeft)+parseFloat(i.marginRight)}return n},e.getHorizontalPadding=function(e){var t=getComputedStyle(e);return parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)},e.getHorizontalMargin=function(e){var t=getComputedStyle(e);return parseFloat(t.marginLeft)+parseFloat(t.marginRight)},e.innerWidth=function(e){var t=e.offsetWidth,n=getComputedStyle(e);return t+=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)},e.width=function(e){var t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)},e.getInnerHeight=function(e){var t=e.offsetHeight,n=getComputedStyle(e);return t+=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)},e.getOuterHeight=function(e,t){var n=e.offsetHeight;if(t){var i=getComputedStyle(e);n+=parseFloat(i.marginTop)+parseFloat(i.marginBottom)}return n},e.getHeight=function(e){var t=e.offsetHeight,n=getComputedStyle(e);return t-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)},e.getWidth=function(e){var t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth)},e.getViewport=function(){var e=window,t=document,n=t.documentElement,i=t.getElementsByTagName("body")[0];return{width:e.innerWidth||n.clientWidth||i.clientWidth,height:e.innerHeight||n.clientHeight||i.clientHeight}},e.getOffset=function(e){var t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}},e.replaceElementWith=function(e,t){var n=e.parentNode;if(!n)throw new Error("Can't replace element");return n.replaceChild(t,e)},e.getUserAgent=function(){return navigator.userAgent},e.isIE=function(){var e=window.navigator.userAgent;if(e.indexOf("MSIE ")>0)return!0;if(e.indexOf("Trident/")>0){e.indexOf("rv:");return!0}return e.indexOf("Edge/")>0},e.isIOS=function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream},e.isAndroid=function(){return/(android)/i.test(navigator.userAgent)},e.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0},e.appendChild=function(e,t){if(this.isElement(t))t.appendChild(e);else{if(!t.el||!t.el.nativeElement)throw new Error("Cannot append "+t+" to "+e);t.el.nativeElement.appendChild(e)}},e.removeChild=function(e,t){if(this.isElement(t))t.removeChild(e);else{if(!t.el||!t.el.nativeElement)throw new Error("Cannot remove "+e+" from "+t);t.el.nativeElement.removeChild(e)}},e.removeElement=function(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)},e.isElement=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName},e.calculateScrollbarWidth=function(e){if(e){var t=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(t.borderLeftWidth)-parseFloat(t.borderRightWidth)}if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;var n=document.createElement("div");n.className="p-scrollbar-measure",document.body.appendChild(n);var i=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),this.calculatedScrollbarWidth=i,i},e.calculateScrollbarHeight=function(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;var e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);var t=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=t,t},e.invokeElementMethod=function(e,t,n){e[t].apply(e,n)},e.clearSelection=function(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}},e.getBrowser=function(){if(!this.browser){var e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser},e.resolveUserAgent=function(){var e=navigator.userAgent.toLowerCase(),t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e.isInteger=function(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},e.isHidden=function(e){return!e||null===e.offsetParent},e.isVisible=function(e){return e&&null!=e.offsetParent},e.isExist=function(e){return null!=e&&e.nodeName&&e.parentNode},e.focus=function(e,t){e&&document.activeElement!==e&&e.focus(t)},e.getFocusableElements=function(t){var n,i,o=e.find(t,"button:not([tabindex = '-1']):not([disabled]):not([style*='display:none']):not([hidden]),\n [href]:not([tabindex = '-1']):not([disabled]):not([style*='display:none']):not([hidden]),\n input:not([tabindex = '-1']):not([disabled]):not([style*='display:none']):not([hidden]),\n select:not([tabindex = '-1']):not([disabled]):not([style*='display:none']):not([hidden]),\n textarea:not([tabindex = '-1']):not([disabled]):not([style*='display:none']):not([hidden]),\n [tabIndex]:not([tabIndex = '-1']):not([disabled]):not([style*='display:none']):not([hidden]),\n [contenteditable]:not([tabIndex = '-1']):not([disabled]):not([style*='display:none']):not([hidden])"),r=[];try{for(var a=ke(o),s=a.next();!s.done;s=a.next()){var l=s.value;(l.offsetWidth||l.offsetHeight||l.getClientRects().length)&&r.push(l)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return r},e.getNextFocusableElement=function(t,n){void 0===n&&(n=!1);var i=e.getFocusableElements(t),o=0;if(i&&i.length>0){var r=i.indexOf(i[0].ownerDocument.activeElement);n?o=-1==r||0===r?i.length-1:r-1:-1!=r&&r!==i.length-1&&(o=r+1)}return i[o]},e.generateZIndex=function(){return this.zIndex=this.zIndex||999,++this.zIndex},e.getSelection=function(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null},e.getTargetElement=function(e,t){if(!e)return null;switch(e){case"document":return document;case"window":return window;case"@next":return null==t?void 0:t.nextElementSibling;case"@prev":return null==t?void 0:t.previousElementSibling;case"@parent":return null==t?void 0:t.parentElement;case"@grandparent":return null==t?void 0:t.parentElement.parentElement;default:var n=typeof e;if("string"===n)return document.querySelector(e);if("object"===n&&e.hasOwnProperty("nativeElement"))return this.isExist(e.nativeElement)?e.nativeElement:void 0;var i=(o=e)&&o.constructor&&o.call&&o.apply?e():e;return i&&9===i.nodeType||this.isExist(i)?i:null}var o},e.zIndex=1e3,e.calculatedScrollbarWidth=null,e.calculatedScrollbarHeight=null,e}();var gn=function(){function e(e,n,i,o,r){this._overlay=e,this._elementRef=n,this._viewContainerRef=i,this._dir=o,this._changeDetectorRef=r,this.ariaHaspopup=!0,this.popoverOpened=new ie.Subject,this.popoverClosed=new ie.Subject,this._overlayRef=null,this._popoverOpen=!1,this._halt=!1,this._openedByMouse=!1,this._onDestroy=new ie.Subject,this.backdropCloseOnClick=!0,this.opened=new t.EventEmitter,this.closed=new t.EventEmitter}return e.prototype.ngAfterViewInit=function(){var e=this;this._checkPopover(),this._setCurrentConfig(),this.popover.close.subscribe((function(){return e.closePopover()}))},e.prototype.ngOnDestroy=function(){this.destroyPopover()},e.prototype._setCurrentConfig=function(){"before"!==this.positionX&&"after"!==this.positionX||(this.popover.positionX=this.positionX),"above"!==this.positionY&&"below"!==this.positionY||(this.popover.positionY=this.positionY),this.triggerEvent&&(this.popover.triggerEvent=this.triggerEvent),this.enterDelay&&(this.popover.enterDelay=this.enterDelay),this.leaveDelay&&(this.popover.leaveDelay=this.leaveDelay),!0!==this.overlapTrigger&&!1!==this.overlapTrigger||(this.popover.overlapTrigger=this.overlapTrigger),this.targetOffsetX&&(this.popover.targetOffsetX=this.targetOffsetX),this.targetOffsetY&&(this.popover.targetOffsetY=this.targetOffsetY),this.arrowOffsetX&&(this.popover.arrowOffsetX=this.arrowOffsetX),this.arrowWidth&&(this.popover.arrowWidth=this.arrowWidth),this.arrowColor&&(this.popover.arrowColor=this.arrowColor),!0!==this.closeOnClick&&!1!==this.closeOnClick||(this.popover.closeOnClick=this.closeOnClick),this.popover.setCurrentStyles()},Object.defineProperty(e.prototype,"popoverOpen",{get:function(){return this._popoverOpen},enumerable:!1,configurable:!0}),e.prototype.onClick=function(e){"click"===this.popover.triggerEvent&&this.togglePopover()},e.prototype.onMouseEnter=function(e){var t=this;this._halt=!1,"hover"===this.popover.triggerEvent&&(this._mouseoverTimer=setTimeout((function(){t.openPopover()}),this.popover.enterDelay))},e.prototype.onMouseLeave=function(e){var t=this;"hover"===this.popover.triggerEvent&&(this._mouseoverTimer&&(clearTimeout(this._mouseoverTimer),this._mouseoverTimer=null),this._popoverOpen?setTimeout((function(){t.popover.closeDisabled||t.closePopover()}),this.popover.leaveDelay):this._halt=!0)},e.prototype.togglePopover=function(){return this._popoverOpen?this.closePopover():this.openPopover()},e.prototype.openPopover=function(){if(!this._popoverOpen&&!this._halt){if(this._createOverlay().attach(this._portal),!ze.isNull(this._viewContainerRef)&&!ze.isNull(this._viewContainerRef.element)){var e=hn.getWidth(this._viewContainerRef.element.nativeElement);(Be.isEmpty(this.popover.popoverWidth)||"auto"===this.popover.popoverWidth)&&(this.popover.popoverWidth=e+"px")}this._subscribeToBackdrop(),this._subscribeToDetachments(),this._initPopover()}},e.prototype.closePopover=function(){this._overlayRef&&(this._overlayRef.detach(),this._resetPopover())},e.prototype.destroyPopover=function(){this._mouseoverTimer&&(clearTimeout(this._mouseoverTimer),this._mouseoverTimer=null),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null,this._cleanUpSubscriptions()),this._onDestroy.next(),this._onDestroy.complete()},e.prototype.focus=function(){this._elementRef.nativeElement.focus()},Object.defineProperty(e.prototype,"dir",{get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},enumerable:!1,configurable:!0}),e.prototype._subscribeToBackdrop=function(){var e=this;this._overlayRef&&"hover"!==this.triggerEvent&&this.backdropCloseOnClick&&this._overlayRef.backdropClick().pipe(oe.takeUntil(this.popoverClosed),oe.takeUntil(this._onDestroy)).subscribe((function(){e.popover._emitCloseEvent()}))},e.prototype._subscribeToDetachments=function(){var e=this;this._overlayRef&&this._overlayRef.detachments().pipe(oe.takeUntil(this.popoverClosed),oe.takeUntil(this._onDestroy)).subscribe((function(){e._setPopoverClosed()}))},e.prototype._initPopover=function(){this._setPopoverOpened()},e.prototype._resetPopover=function(){this._setPopoverClosed(),this._openedByMouse||this.focus(),this._openedByMouse=!1},e.prototype._setPopoverOpened=function(){this._popoverOpen||(this._popoverOpen=!0,this.popoverOpened.next(),this.opened.emit())},e.prototype._setPopoverClosed=function(){this._popoverOpen&&(this._popoverOpen=!1,this.popoverClosed.next(),this.closed.emit())},e.prototype._checkPopover=function(){this.popover||function(){throw Error('popover-trigger: deve passar em uma instância popover.\n\n Example:\n <gipi-popover #popover="popover"> </gipi-popover>\n <button [popoverTriggerFor]="popover"> </button>')}()},e.prototype._createOverlay=function(){if(!this._overlayRef){this._portal=new y.TemplatePortal(this.popover.templateRef,this._viewContainerRef);var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e)}return this._overlayRef},e.prototype._getOverlayConfig=function(){var e=new ue.OverlayConfig;return e.positionStrategy=this._getPosition(),"hover"!==this.triggerEvent&&(e.hasBackdrop=!0,e.backdropClass="cdk-overlay-transparent-backdrop"),e.direction=this.dir,e.scrollStrategy=this._getOverlayScrollStrategy(this.popover.scrollStrategy),e},e.prototype._getOverlayScrollStrategy=function(e){switch(e){case"noop":return this._overlay.scrollStrategies.noop();case"close":return this._overlay.scrollStrategies.close();case"block":return this._overlay.scrollStrategies.block();case"reposition":default:return this._overlay.scrollStrategies.reposition()}},e.prototype._subscribeToPositions=function(e){var t=this;this._positionSubscription=e.positionChanges.subscribe((function(e){var n="start"===e.connectionPair.overlayX?"after":"before",i="top"===e.connectionPair.overlayY?"below":"above";t.popover.overlapTrigger||(i="below"===i?"above":"below"),t._changeDetectorRef.markForCheck(),t.popover.zone.run((function(){t.popover.positionX=n,t.popover.positionY=i,t.popover.setCurrentStyles(),t.popover.setPositionClasses(n,i)}))}))},e.prototype._getPosition=function(){var e=Oe("before"===this.popover.positionX?["end","start"]:["start","end"],2),t=e[0],n=e[1],i=Oe("above"===this.popover.positionY?["bottom","top"]:["top","bottom"],2),o=i[0],r=i[1],a=o,s=r,l=t,p=n;this.popover.overlapTrigger||(a="top"===o?"bottom":"top",s="top"===r?"bottom":"top");var d=0,c=0;this.popover.targetOffsetX&&!isNaN(Number(this.popover.targetOffsetX))&&(d=Number(this.popover.targetOffsetX)),this.popover.targetOffsetY&&!isNaN(Number(this.popover.targetOffsetY))&&(c=Number(this.popover.targetOffsetY));var u=this._elementRef;return void 0!==this.targetElement&&(this.popover.containerPositioning=!0,u=this.targetElement._elementRef),this._overlay.position().flexibleConnectedTo(u).withLockedPosition(!0).withPositions([{originX:t,originY:a,overlayX:l,overlayY:o,offsetY:c},{originX:n,originY:a,overlayX:p,overlayY:o,offsetY:c},{originX:t,originY:s,overlayX:l,overlayY:r,offsetY:-c},{originX:n,originY:s,overlayX:p,overlayY:r,offsetY:-c}]).withDefaultOffsetX(d).withDefaultOffsetY(c)},e.prototype._cleanUpSubscriptions=function(){this._backdropSubscription&&this._backdropSubscription.unsubscribe(),this._positionSubscription&&this._positionSubscription.unsubscribe(),this._detachmentsSubscription&&this._detachmentsSubscription.unsubscribe()},e.prototype._handleMousedown=function(e){e&&!m.isFakeMousedownFromScreenReader(e)&&(this._openedByMouse=!0)},e.ctorParameters=function(){return[{type:ue.Overlay},{type:t.ElementRef},{type:t.ViewContainerRef},{type:ce.Directionality,decorators:[{type:t.Optional}]},{type:t.ChangeDetectorRef}]},we([t.HostBinding("attr.aria-haspopup"),Ce("design:type",Boolean)],e.prototype,"ariaHaspopup",void 0),we([t.Input("popoverTriggerFor"),Ce("design:type",Object)],e.prototype,"popover",void 0),we([t.Input("popoverTargetAt"),Ce("design:type",Object)],e.prototype,"targetElement",void 0),we([t.Input("popoverPositionX"),Ce("design:type",String)],e.prototype,"positionX",void 0),we([t.Input("popoverPositionY"),Ce("design:type",String)],e.prototype,"positionY",void 0),we([t.Input("popoverTriggerOn"),Ce("design:type",String)],e.prototype,"triggerEvent",void 0),we([t.Input("popoverEnterDelay"),Ce("design:type",Number)],e.prototype,"enterDelay",void 0),we([t.Input("popoverLeaveDelay"),Ce("design:type",Number)],e.prototype,"leaveDelay",void 0),we([t.Input("popoverOverlapTrigger"),Ce("design:type",Boolean)],e.prototype,"overlapTrigger",void 0),we([t.Input("popoverOffsetX"),Ce("design:type",Number)],e.prototype,"targetOffsetX",void 0),we([t.Input("popoverOffsetY"),Ce("design:type",Number)],e.prototype,"targetOffsetY",void 0),we([t.Input("popoverArrowOffsetX"),Ce("design:type",Number)],e.prototype,"arrowOffsetX",void 0),we([t.Input("popoverArrowWidth"),Ce("design:type",Number)],e.prototype,"arrowWidth",void 0),we([t.Input("popoverArrowColor"),Ce("design:type",String)],e.prototype,"arrowColor",void 0),we([t.Input("popoverCloseOnClick"),Ce("design:type",Boolean)],e.prototype,"closeOnClick",void 0),we([t.Input("popoverBackdropCloseOnClick"),Ce("design:type",Boolean)],e.prototype,"backdropCloseOnClick",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"opened",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"closed",void 0),we([t.HostListener("click",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[MouseEvent]),Ce("design:returntype",void 0)],e.prototype,"onClick",null),we([t.HostListener("mouseenter",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[MouseEvent]),Ce("design:returntype",void 0)],e.prototype,"onMouseEnter",null),we([t.HostListener("mouseleave",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[MouseEvent]),Ce("design:returntype",void 0)],e.prototype,"onMouseLeave",null),we([t.HostListener("mousedown",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[MouseEvent]),Ce("design:returntype",void 0)],e.prototype,"_handleMousedown",null),e=we([t.Directive({selector:"[popoverTriggerFor]",exportAs:"popoverTrigger"}),xe(3,t.Optional()),Ce("design:paramtypes",[ue.Overlay,t.ElementRef,t.ViewContainerRef,ce.Directionality,t.ChangeDetectorRef])],e)}(),mn=function(){function e(e){this._elementRef=e,this.isButtonPrimary=this._hasHostAttributes("gipi-primary"),this.isButtonPrimaryIcon=this._hasHostAttributes("gipi-primary-icon"),this.isButtonSecondary=this._hasHostAttributes("gipi-secondary"),this.isButtonSecondaryIcon=this._hasHostAttributes("gipi-secondary-icon"),this.isButtonTertiary=this._hasHostAttributes("gipi-tertiary"),this.isButtonTertiaryIcon=this._hasHostAttributes("gipi-tertiary-icon"),this.isButtonLink=this._hasHostAttributes("gipi-link"),this.isButtonIcon=this._hasHostAttributes("gipi-icon"),this.isButtonAction=this._hasHostAttributes("gipi-action"),this._overlayVisible=!1,this.type="button",this.ariaLabel="",this.title="",this.label="",this.icon=null,this.svgIcon=null,this.iconPos="left",this.disabled=!1,this.loading=!1,this.notification=!1,this.tooltip="",this.popover=!1,this.overlay=!1,this.isForInput=!1,this.onShowOverlay=new t.EventEmitter,this.onOpenPopover=new t.EventEmitter,this.onClosePopover=new t.EventEmitter,this.onClick=new t.EventEmitter(!0),this.onFocus=new t.EventEmitter(!0),this.onBlur=new t.EventEmitter(!0)}var n;return n=e,Object.defineProperty(e.prototype,"internalButtonClass",{get:function(){return{"button-base":!0,"button-primary":this.isButtonPrimary||this.isButtonPrimaryIcon,"button-primary-icon":this.isButtonPrimaryIcon,"button-secondary":this.isButtonSecondary||this.isButtonSecondaryIcon,"button-secondary-icon":this.isButtonSecondaryIcon,"button-tertiary":this.isButtonTertiary||this.isButtonTertiaryIcon,"button-tertiary-icon":this.isButtonTertiaryIcon,"button-link":this.isButtonLink,"button-only-icon":this.isButtonIcon,"button-for-input":this.isForInput,"button-notification":this.notification,"button-action":this.isButtonAction}},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.ngOnDestroy=function(){this.popoverTrigger&&this.popoverTrigger.destroyPopover()},e.prototype.getHostElement=function(){return this._elementRef.nativeElement},e.prototype._hasHostAttributes=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.some((function(t){return e.getHostElement().hasAttribute(t)}))},e.prototype.toggleOverlay=function(){this.disabled||this.loading||(this._overlayVisible=!this._overlayVisible)},e.prototype.showPopover=function(){this.disabled||this.loading||this.popoverTrigger.openPopover()},e.prototype.closePopover=function(){this.disabled||this.loading||this.popoverTrigger.closePopover()},e.prototype.handleClick=function(e){this.disabled||this.loading||(this.overlay&&this.toggleOverlay(),this.onClick.emit(e),e.stopPropagation())},e.prototype.handleFocus=function(e){this.disabled||this.loading||(this.onFocus.emit(e),e.stopPropagation())},e.prototype.handleBlur=function(e){this.disabled||this.loading||(this.onBlur.emit(e),e.stopPropagation())},e.prototype.onResize=function(e){this.popoverTrigger&&(this.popoverTrigger.closePopover(),e.stopPropagation())},e.ctorParameters=function(){return[{type:t.ElementRef}]},we([t.ViewChild(gn,{static:!1}),Ce("design:type",gn)],e.prototype,"popoverTrigger",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"type",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"title",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"buttonClass",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"buttonPadding",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"iconWidth",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"iconHeight",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"icon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"iconPos",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"notification",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"popover",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"overlay",void 0),we([t.Input("forInput"),Ce("design:type",Boolean)],e.prototype,"isForInput",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onShowOverlay",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onOpenPopover",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClosePopover",void 0),we([t.Output("click"),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),we([t.Output("focus"),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),we([t.Output("blur"),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),we([t.HostListener("window:resize",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[UIEvent]),Ce("design:returntype",void 0)],e.prototype,"onResize",null),e=n=we([t.Component({selector:"gipi-button[gipi-primary], gipi-button[gipi-primary-icon], gipi-button[gipi-secondary], gipi-button[gipi-secondary-icon],\n gipi-button[gipi-tertiary], gipi-button[gipi-link], gipi-button[gipi-icon], gipi-button[gipi-action]",exportAs:"gipiButton",template:'<button [attr.id]="id"\n [attr.name]="name"\n [attr.type]="type"\n [attr.aria-label]="ariaLabel ? ariaLabel : label"\n [attr.title]="title ? title : label"\n [disabled]="disabled || loading"\n [matTooltip]="tooltip"\n role="button"\n [class]="buttonClass"\n [ngClass]="internalButtonClass"\n [style.padding.px]="buttonPadding"\n #popoverTrigger="popoverTrigger"\n [popoverTriggerFor]="btnPopover"\n [popoverTriggerOn]="popover ? \'click\' : \'none\'"\n [popoverBackdropCloseOnClick]="true"\n (opened)="onOpenPopover.emit()"\n (closed)="onClosePopover.emit()"\n (click)="handleClick($event)"\n (focus)="handleFocus($event)"\n (blur)="handleBlur($event)">\n <span [ngClass]="{\'button-content\': true,\n \'button-disabled\': disabled,\n \'button-icon-left\': ((iconPos === \'left\') && label),\n \'button-icon-right\': ((iconPos === \'right\') && label),\n \'button-icon-top\': ((iconPos === \'top\') && label),\n \'button-icon-bottom\': ((iconPos === \'bottom\') && label),\n \'button-icon-center\': (iconPos === \'center\')}">\n <mat-icon *ngIf="svgIcon || icon"\n [svgIcon]="svgIcon"\n [style.width.px]="iconWidth"\n [style.height.px]="iconHeight"\n [style.font-size.px]="iconWidth || iconHeight">\n {{ (!svgIcon && icon) ? icon : \'\' }}\n </mat-icon>\n\n <span class="button-label"\n [attr.aria-hidden]="(icon || svgIcon) && !label"\n *ngIf="!isButtonIcon && label">\n {{ label }}\n </span>\n </span>\n</button>\n\n<gipi-overlay *ngIf="overlay && !popover"\n [(visible)]="_overlayVisible"\n [appendTo]="\'body\'"\n (onShow)="onShowOverlay.emit()">\n <ng-content> </ng-content>\n</gipi-overlay>\n\n<gipi-popover #btnPopover="gipiPopover"\n [popoverOverlapTrigger]="false"\n [popoverCloseOnClick]="false"\n [popoverArrowWidth]="0"\n [popoverOffsetY]="3"\n [fxHide]="!popover">\n <div class="btn-popover-content">\n <ng-content> </ng-content>\n </div>\n</gipi-popover>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-button"},styles:[".button-base{display:flex;flex-direction:row;justify-content:center;padding:12px 16px;border-radius:4px;font-weight:600;font-size:1.4rem;line-height:1.6rem;cursor:pointer;outline:0;white-space:nowrap;text-decoration:none;vertical-align:middle;text-align:center;box-shadow:1px 1px 5px 0 rgba(0,0,0,.1);transition:.2s;width:100%;max-height:4rem;border:1px solid transparent;position:relative}.button-base:disabled,.button-base[disabled]{cursor:not-allowed!important;box-shadow:none}.button-base:not(:disabled):active{opacity:.8}.button-base .button-content{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:.8rem;font-size:1.4rem}.button-base .button-content.button-icon-right{flex-direction:row-reverse!important}.button-base .button-content.button-icon-top{flex-direction:column!important}.button-base .button-content.button-icon-bottom{flex-direction:column-reverse!important}.button-base .button-content>mat-icon{width:1.6rem;height:1.6rem;font-size:1.6rem;background-color:transparent!important}.button-base.button-notification:after{content:'';background-color:#d6a000;width:10px;height:10px;border-radius:50%;position:absolute;top:-2.5px;right:-2.5px}.button-primary-icon,.button-secondary-icon,.button-tertiary-icon{width:-webkit-fit-content!important;width:-moz-fit-content!important;width:fit-content!important}.button-primary:not(:disabled),.button-primary:not(:disabled) .button-content>mat-icon{background-color:#e0313e;color:#fff;fill:#fff}.button-primary:not(:disabled) .button-content>mat-icon svg,.button-primary:not(:disabled) .button-content>mat-icon svg g path,.button-primary:not(:disabled) .button-content>mat-icon svg path,.button-primary:not(:disabled) svg,.button-primary:not(:disabled) svg g path,.button-primary:not(:disabled) svg path{color:#fff;fill:#fff}.button-primary:disabled,.button-primary:disabled .button-content>mat-icon{background-color:#d1d2d4;color:#9a9da2;fill:#9a9da2}.button-primary:disabled .button-content>mat-icon svg,.button-primary:disabled .button-content>mat-icon svg g path,.button-primary:disabled .button-content>mat-icon svg path,.button-primary:disabled svg,.button-primary:disabled svg g path,.button-primary:disabled svg path{color:#9a9da2;fill:#9a9da2}.button-primary:not(:disabled):hover,.button-primary:not(:disabled):hover .button-content>mat-icon{background-color:#cc2d38;color:#fff;fill:#fff}.button-primary:not(:disabled):hover .button-content>mat-icon svg,.button-primary:not(:disabled):hover .button-content>mat-icon svg g path,.button-primary:not(:disabled):hover .button-content>mat-icon svg path,.button-primary:not(:disabled):hover svg,.button-primary:not(:disabled):hover svg g path,.button-primary:not(:disabled):hover svg path{color:#fff;fill:#fff}.button-secondary{background-color:transparent}.button-secondary:not(:disabled),.button-secondary:not(:disabled) .button-content>mat-icon{border-color:#595959;color:#595959;fill:#595959}.button-secondary:not(:disabled) .button-content>mat-icon svg,.button-secondary:not(:disabled) .button-content>mat-icon svg g path,.button-secondary:not(:disabled) .button-content>mat-icon svg path,.button-secondary:not(:disabled) svg,.button-secondary:not(:disabled) svg g path,.button-secondary:not(:disabled) svg path{color:#595959;fill:#595959}.button-secondary:disabled,.button-secondary:disabled .button-content>mat-icon{border-color:#d1d2d4;background-color:#d1d2d4;color:#9a9da2;fill:#9a9da2}.button-secondary:disabled .button-content>mat-icon svg,.button-secondary:disabled .button-content>mat-icon svg g path,.button-secondary:disabled .button-content>mat-icon svg path,.button-secondary:disabled svg,.button-secondary:disabled svg g path,.button-secondary:disabled svg path{color:#9a9da2;fill:#9a9da2}.button-secondary:not(:disabled):hover,.button-secondary:not(:disabled):hover .button-content>mat-icon{border-color:#595959;background-color:#e0e1e2;color:#595959;fill:#595959}.button-secondary:not(:disabled):hover .button-content>mat-icon svg,.button-secondary:not(:disabled):hover .button-content>mat-icon svg g path,.button-secondary:not(:disabled):hover .button-content>mat-icon svg path,.button-secondary:not(:disabled):hover svg,.button-secondary:not(:disabled):hover svg g path,.button-secondary:not(:disabled):hover svg path{color:#595959;fill:#595959}.button-tertiary{background-color:#e7ebee;box-shadow:none}.button-tertiary:not(:disabled),.button-tertiary:not(:disabled) .button-content>mat-icon,.button-tertiary:not(:disabled) .button-content>mat-icon svg,.button-tertiary:not(:disabled) .button-content>mat-icon svg g path,.button-tertiary:not(:disabled) .button-content>mat-icon svg path,.button-tertiary:not(:disabled) svg,.button-tertiary:not(:disabled) svg g path,.button-tertiary:not(:disabled) svg path{color:#595959;fill:#595959}.button-tertiary:disabled,.button-tertiary:disabled .button-content>mat-icon{background-color:#d1d2d4;color:#9a9da2;fill:#9a9da2}.button-tertiary:disabled .button-content>mat-icon svg,.button-tertiary:disabled .button-content>mat-icon svg g path,.button-tertiary:disabled .button-content>mat-icon svg path,.button-tertiary:disabled svg,.button-tertiary:disabled svg g path,.button-tertiary:disabled svg path{color:#9a9da2;fill:#9a9da2}.button-tertiary:not(:disabled):hover,.button-tertiary:not(:disabled):hover .button-content>mat-icon{background-color:#e0e1e2;color:#595959;fill:#595959}.button-tertiary:not(:disabled):hover .button-content>mat-icon svg,.button-tertiary:not(:disabled):hover .button-content>mat-icon svg g path,.button-tertiary:not(:disabled):hover .button-content>mat-icon svg path,.button-tertiary:not(:disabled):hover svg,.button-tertiary:not(:disabled):hover svg g path,.button-tertiary:not(:disabled):hover svg path{color:#595959;fill:#595959}.button-link{background-color:transparent;box-shadow:none}.button-link:not(:disabled),.button-link:not(:disabled) .button-content>mat-icon,.button-link:not(:disabled) .button-content>mat-icon svg,.button-link:not(:disabled) .button-content>mat-icon svg g path,.button-link:not(:disabled) .button-content>mat-icon svg path,.button-link:not(:disabled) svg,.button-link:not(:disabled) svg g path,.button-link:not(:disabled) svg path{color:#131313;fill:#131313}.button-link:disabled,.button-link:disabled .button-content>mat-icon,.button-link:disabled .button-content>mat-icon svg,.button-link:disabled .button-content>mat-icon svg g path,.button-link:disabled .button-content>mat-icon svg path,.button-link:disabled svg,.button-link:disabled svg g path,.button-link:disabled svg path{color:#9a9da2;fill:#9a9da2}.button-link:not(:disabled):hover .button-content .button-label{text-decoration:underline;-webkit-text-decoration-color:#131313;text-decoration-color:#131313;color:#131313;fill:#131313}.button-link:not(:disabled):hover .button-content>mat-icon,.button-link:not(:disabled):hover .button-content>mat-icon svg,.button-link:not(:disabled):hover .button-content>mat-icon svg g path,.button-link:not(:disabled):hover .button-content>mat-icon svg path{color:#131313;fill:#131313}.button-only-icon{background-color:transparent;box-shadow:none}.button-only-icon.button-for-input{padding:6px!important;border-radius:50%!important}.button-only-icon:not(:disabled),.button-only-icon:not(:disabled) .button-content>mat-icon,.button-only-icon:not(:disabled) .button-content>mat-icon svg,.button-only-icon:not(:disabled) .button-content>mat-icon svg g path,.button-only-icon:not(:disabled) .button-content>mat-icon svg path,.button-only-icon:not(:disabled) svg,.button-only-icon:not(:disabled) svg g path,.button-only-icon:not(:disabled) svg path{color:#131313;fill:#131313}.button-only-icon:disabled,.button-only-icon:disabled .button-content>mat-icon,.button-only-icon:disabled .button-content>mat-icon svg,.button-only-icon:disabled .button-content>mat-icon svg g path,.button-only-icon:disabled .button-content>mat-icon svg path,.button-only-icon:disabled svg,.button-only-icon:disabled svg g path,.button-only-icon:disabled svg path{color:#9a9da2;fill:#9a9da2}.button-only-icon:not(:disabled):hover,.button-only-icon:not(:disabled):hover .button-content>mat-icon{background-color:#e0e1e2;color:#131313;fill:#131313}.button-only-icon:not(:disabled):hover .button-content>mat-icon svg,.button-only-icon:not(:disabled):hover .button-content>mat-icon svg g path,.button-only-icon:not(:disabled):hover .button-content>mat-icon svg path,.button-only-icon:not(:disabled):hover svg,.button-only-icon:not(:disabled):hover svg g path,.button-only-icon:not(:disabled):hover svg path{color:#131313;fill:#131313}.button-action{background-color:transparent;box-shadow:none;display:flex;justify-content:flex-start!important}.button-action:not(:disabled),.button-action:not(:disabled) .button-content>mat-icon,.button-action:not(:disabled) .button-content>mat-icon svg,.button-action:not(:disabled) .button-content>mat-icon svg g path,.button-action:not(:disabled) .button-content>mat-icon svg path,.button-action:not(:disabled) svg,.button-action:not(:disabled) svg g path,.button-action:not(:disabled) svg path{color:#262626;fill:#262626}.button-action:disabled,.button-action:disabled .button-content>mat-icon,.button-action:disabled .button-content>mat-icon svg,.button-action:disabled .button-content>mat-icon svg g path,.button-action:disabled .button-content>mat-icon svg path,.button-action:disabled svg,.button-action:disabled svg g path,.button-action:disabled svg path{color:#9a9da2;fill:#9a9da2}.button-action:not(:disabled):hover,.button-action:not(:disabled):hover .button-content>mat-icon{background-color:#f5f5f6;color:#262626;fill:#262626}.button-action:not(:disabled):hover .button-content>mat-icon svg,.button-action:not(:disabled):hover .button-content>mat-icon svg g path,.button-action:not(:disabled):hover .button-content>mat-icon svg path,.button-action:not(:disabled):hover svg,.button-action:not(:disabled):hover svg g path,.button-action:not(:disabled):hover svg path{color:#262626;fill:#262626}.button-disabled{pointer-events:none!important}.btn-popover-content{background-color:#fff;border-radius:4px;box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);padding:8px}"]}),Ce("design:paramtypes",[t.ElementRef])],e)}(),fn=0,yn=function(){function e(e,t){this.elementRef=e,this._changeDetectorRef=t,this._uniqueId="gipi-card-"+ ++fn,this._id="",this._name="",this._loading=!1,this._shadow=!0,this._padding=!0}var n;return n=e,Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e||this._uniqueId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(e){this._name=e||this._uniqueId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loading",{get:function(){return this._loading},set:function(e){e!==this.loading&&(this._loading=e,this._changeDetectorRef.markForCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shadow",{get:function(){return this._shadow},set:function(e){e!==this.shadow&&(this._shadow=e,this._changeDetectorRef.markForCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this._padding},set:function(e){e!==this.padding&&(this._padding=e,this._changeDetectorRef.markForCheck())},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"id",null),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"name",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"loading",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"shadow",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"padding",null),e=n=we([t.Component({selector:"gipi-card",exportAs:"gipiCard",template:"<ng-content></ng-content>",providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-card","[attr.id]":"id","[attr.name]":"name","[class.shadow-none]":"!shadow","[class.padding-none]":"!padding","[class.loading]":"loading"},styles:[":host{display:block;flex:1;border-radius:.2rem;box-shadow:0 3px 1px -2px rgba(0,0,0,.14),0 2px 2px 0 rgba(0,0,0,.098),0 1px 5px 0 rgba(0,0,0,.084);padding:1.6rem}.padding-none{padding:0!important}.shadow-none{box-shadow:none!important}"]}),Ce("design:paramtypes",[t.ElementRef,t.ChangeDetectorRef])],e)}(),vn=0,bn=function(){function e(e,n){this._changeDetectorRef=e,this.elementRef=n,this._name="gipi-chips-"+vn++,this.id=this._name,this.name=this._name,this.label="Selecionados",this.labelRemoveAll="Limpar",this.disabled=!1,this.showRemovableAll=!1,this.showRemovable=!1,this.property="description",this.onFocus=new t.EventEmitter,this.onClick=new t.EventEmitter,this.removeChange=new t.EventEmitter,this.removeAllChange=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.onChange(e),this.onTouch(),this._changeDetectorRef.markForCheck()},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},e.prototype.removeChip=function(e,t){!this.disabled&&this.showRemovable&&(this.value.splice(t,1),this._changeDetectorRef.detectChanges(),this.removeChange.emit({chip:e,index:t}))},e.prototype.removeAllChips=function(){!this.disabled&&this.showRemovableAll&&(this.value=[],this._changeDetectorRef.detectChanges(),this.removeAllChange.emit())},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef}]},we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"labelRemoveAll",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showRemovableAll",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showRemovable",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"property",void 0),we([t.Input(),Ce("design:type",Array),Ce("design:paramtypes",[Array])],e.prototype,"value",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"removeChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"removeAllChange",void 0),e=n=we([t.Component({selector:"gipi-chips",exportAs:"gipiChips",template:'<mat-chip-list [attr.id]="id"\n [attr.name]="name"\n [attr.aria-label]="ariaLabel"\n class="chip-list">\n {{ label }}\n\n <mat-chip *ngFor="let val of value; let i = index;"\n [disabled]="disabled"\n (removed)="removeChip(val, i)">\n {{ val[property] }}\n\n <mat-icon matChipRemove\n *ngIf="!disabled && showRemovable">\n cancel\n </mat-icon>\n </mat-chip>\n\n <mat-chip *ngIf="!disabled && showRemovableAll && (value && (value.length > 0))"\n class="chip-clear-all"\n (click)="removeAllChips()">\n {{ labelRemoveAll }}\n\n <svg width="14"\n height="14"\n viewBox="0 0 14 14"\n fill="none"\n xmlns="http://www.w3.org/2000/svg">\n <path d="M3.0625 3.0625L3.60938 11.8125C3.63535 12.3181 4.00312 12.6875 4.48438 12.6875H9.51562C9.99879 12.6875 10.3597 12.3181 10.3906 11.8125L10.9375 3.0625"\n stroke="#fff"\n stroke-width="0.875"\n stroke-linecap="round"\n stroke-linejoin="round" />\n <path d="M2.1875 3.0625H11.8125Z"\n fill="#fff" />\n <path d="M2.1875 3.0625H11.8125"\n stroke="#fff"\n stroke-width="0.875"\n stroke-miterlimit="10"\n stroke-linecap="round" />\n <path d="M5.25 3.0625V1.96875C5.24975 1.8825 5.26655 1.79705 5.29944 1.71732C5.33233 1.63758 5.38066 1.56514 5.44165 1.50415C5.50264 1.44316 5.57508 1.39483 5.65482 1.36194C5.73455 1.32905 5.82 1.31225 5.90625 1.3125H8.09375C8.18 1.31225 8.26545 1.32905 8.34518 1.36194C8.42492 1.39483 8.49736 1.44316 8.55835 1.50415C8.61934 1.56514 8.66767 1.63758 8.70056 1.71732C8.73345 1.79705 8.75025 1.8825 8.75 1.96875V3.0625M7 4.8125V10.9375M5.03125 4.8125L5.25 10.9375M8.96875 4.8125L8.75 10.9375"\n stroke="#fff"\n stroke-width="0.875"\n stroke-linecap="round"\n stroke-linejoin="round" />\n </svg>\n </mat-chip>\n</mat-chip-list>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-chips"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:["::ng-deep .chip-list{outline:0!important}::ng-deep .chip-list .mat-chip-list-wrapper{margin:0!important;gap:8px!important;outline:0!important}::ng-deep .chip-list .mat-chip-list-wrapper .mat-standard-chip{outline:0!important;margin:0!important;padding:4px 8px!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:1.4rem!important;font-weight:400!important;line-height:1.8rem!important;min-height:auto!important;height:-webkit-fit-content!important;height:-moz-fit-content!important;height:fit-content!important}.chip-clear-all{display:flex;align-items:center;gap:4px;background:#e0313e;color:#fff;cursor:pointer;transition:.2s}.chip-clear-all:hover{background:#cc2d38}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef,t.ElementRef])],e)}(),_n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return be(t,e),t}(qe),wn=function(){function e(e,t,n){this.dialogRef=e,this.confirmation=t,this.messages=n}var n;return n=e,e.prototype.ngOnInit=function(){},e.ctorParameters=function(){return[{type:a.MatDialogRef},{type:_n,decorators:[{type:t.Inject,args:[a.MAT_DIALOG_DATA]}]},{type:void 0,decorators:[{type:t.Inject,args:[De]}]}]},e=n=we([t.Component({selector:"gipi-confirmation-dialog",exportAs:"gipiConfirmationDialog",template:'<div mat-dialog-title\n class="dialog-title">\n \x3c!-- Confirmation --\x3e\n <ng-container *ngIf="!confirmation.type || (confirmation?.type === \'confirmation\')">\n <svg width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n xmlns="http://www.w3.org/2000/svg">\n <g clip-path="url(#clip0_522_3414)">\n <path fill-rule="evenodd"\n clip-rule="evenodd"\n d="M24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM15.3941 6.19196C16.0206 6.81534 16.4617 7.60056 16.668 8.45999C16.9468 9.60963 16.7901 10.8218 16.2282 11.8627C15.6663 12.9037 14.7389 13.6998 13.6248 14.0976C13.3788 14.1852 13.2048 14.4036 13.2048 14.664V15.6024C13.2048 15.9213 13.0781 16.2271 12.8526 16.4526C12.6271 16.6781 12.3213 16.8048 12.0024 16.8048C11.6835 16.8048 11.3777 16.6781 11.1522 16.4526C10.9267 16.2271 10.8 15.9213 10.8 15.6024V13.1856C10.8041 12.87 10.9323 12.5688 11.1569 12.3471C11.3815 12.1255 11.6843 12.0012 11.9998 12.0012H11.9916C13.3176 12.0012 14.3952 10.9236 14.3952 9.60119C14.3809 8.97286 14.1211 8.37512 13.6715 7.93592C13.222 7.49673 12.6183 7.25098 11.9898 7.25129C11.3613 7.25161 10.7579 7.49796 10.3088 7.9376C9.85969 8.37725 9.60052 8.97525 9.5868 9.60359C9.5844 10.2648 9.0468 10.8012 8.3844 10.8012C8.08823 10.7994 7.80337 10.6872 7.58547 10.4866C7.36757 10.286 7.23227 10.0114 7.206 9.71639L7.2 9.53999C7.2204 6.53519 9.9852 4.21679 13.1196 4.92959C13.9801 5.13153 14.7675 5.56857 15.3941 6.19196ZM13.2 19.2C13.2 19.8627 12.6627 20.4 12 20.4C11.3373 20.4 10.8 19.8627 10.8 19.2C10.8 18.5373 11.3373 18 12 18C12.6627 18 13.2 18.5373 13.2 19.2Z"\n fill="#E0313E" />\n </g>\n </svg>\n </ng-container>\n\n \x3c!-- Warning --\x3e\n <ng-container *ngIf="confirmation?.type === \'warning\'">\n <svg width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n xmlns="http://www.w3.org/2000/svg">\n <g clip-path="url(#clip0_522_3358)">\n <path fill-rule="evenodd"\n clip-rule="evenodd"\n d="M13.1255 0.223975C13.4823 0.371842 13.8065 0.58857 14.0795 0.861777L23.1376 9.91952C23.411 10.1926 23.6279 10.5169 23.7759 10.8739C23.9238 11.2309 24 11.6136 24 12C24 12.3864 23.9238 12.7691 23.7759 13.1261C23.6279 13.4831 23.411 13.8074 23.1376 14.0805L14.0795 23.1382C13.8065 23.4114 13.4823 23.6282 13.1255 23.776C12.7687 23.9239 12.3862 24 12 24C11.6138 24 11.2313 23.9239 10.8745 23.776C10.5177 23.6282 10.1935 23.4114 9.92051 23.1382L0.862407 14.0805C0.589013 13.8074 0.372125 13.4831 0.224146 13.1261C0.0761672 12.7691 0 12.3864 0 12C0 11.6136 0.0761672 11.2309 0.224146 10.8739C0.372125 10.5169 0.589013 10.1926 0.862407 9.91952L9.92051 0.861777C10.1935 0.58857 10.5177 0.371842 10.8745 0.223975C11.2313 0.0761077 11.6138 0 12 0C12.3862 0 12.7687 0.0761077 13.1255 0.223975ZM10.9616 14.5066C11.237 14.782 11.6105 14.9367 12 14.9367C12.3895 14.9367 12.763 14.782 13.0384 14.5066C13.3138 14.2311 13.4686 13.8575 13.4686 13.468V6.12428C13.4686 5.73475 13.3138 5.36116 13.0384 5.08572C12.763 4.81028 12.3895 4.65554 12 4.65554C11.6105 4.65554 11.237 4.81028 10.9616 5.08572C10.6862 5.36116 10.5314 5.73475 10.5314 6.12428V13.468C10.5314 13.8575 10.6862 14.2311 10.9616 14.5066ZM10.9616 18.9128C11.237 19.1882 11.6105 19.343 12 19.343C12.3895 19.343 12.763 19.1882 13.0384 18.9128C13.3138 18.6374 13.4686 18.2638 13.4686 17.8742C13.4686 17.4847 13.3138 17.1111 13.0384 16.8357C12.763 16.5602 12.3895 16.4055 12 16.4055C11.6105 16.4055 11.237 16.5602 10.9616 16.8357C10.6862 17.1111 10.5314 17.4847 10.5314 17.8742C10.5314 18.2638 10.6862 18.6374 10.9616 18.9128Z"\n fill="#E0313E" />\n </g>\n </svg>\n </ng-container>\n\n <strong> {{ confirmation?.title }} </strong>\n</div>\n<div mat-dialog-content\n class="dialog-content">\n <p *ngIf="confirmation?.message">\n {{ confirmation?.message }}\n </p>\n\n <li *ngFor="let message of confirmation?.listMessage">\n {{ message }}\n </li>\n</div>\n<div mat-dialog-actions\n class="dialog-actions">\n <ng-container *ngIf="confirmation?.type !== \'warning\'">\n <button class="dialog-button-base cancel"\n [mat-dialog-close]="false">\n Cancelar\n </button>\n <button class="dialog-button-base confirm"\n [mat-dialog-close]="true">\n Confirmar\n </button>\n </ng-container>\n\n <button class="dialog-button-base confirm"\n *ngIf="confirmation?.type === \'warning\'"\n [mat-dialog-close]="true">\n Ok\n </button>\n</div>\n\n\x3c!-- <gipi-abstract-form id="dialogConfirmation"\n name="dialogConfirmation"\n [dialog]="true">\n <gipi-toolbar id="toolbarDialogConfirmation"\n mat-dialog-title>\n {{ confirmation.title }}\n </gipi-toolbar>\n\n <div mat-dialog-content>\n <p>{{ confirmation.message }}</p>\n <li *ngFor="let message of confirmation.listMessage"> {{ message }} </li>\n </div>\n\n <div mat-dialog-actions\n *ngIf="!confirmation.isWarningScreen"\n class="screen-confirmation"\n fxLayout="row"\n fxLayoutGap="16px">\n <gipi-button [label]="messages.BUTTON_OK_CONFIRMATION"\n [mat-dialog-close]="true"\n gipi-primary\n fxFlex="30">\n </gipi-button>\n\n <gipi-button [label]="messages.BUTTON_CANCEL_CONFIRMATION"\n [mat-dialog-close]="false"\n gipi-secondary\n fxFlex="30">\n </gipi-button>\n </div>\n\n <div mat-dialog-actions\n *ngIf="confirmation.isWarningScreen"\n class="screen-warning"\n fxLayout="row"\n fxLayoutGap="16px">\n <gipi-button label="OK"\n [mat-dialog-close]="true"\n gipi-primary\n fxFlex="30">\n </gipi-button>\n </div>\n</gipi-abstract-form> --\x3e',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-confirmation-dialog"},styles:[":host{display:flex;flex-direction:column;gap:1.6rem;padding:2rem;height:100%}.dialog-title{display:flex;align-items:center;gap:1rem}.dialog-title>strong{color:#262626}.dialog-content{display:flex;flex-direction:column;min-height:6rem!important;height:16rem!important;max-height:16rem!important;overflow-y:auto!important;overflow-x:hidden!important}.dialog-content>p{color:#595959}.dialog-content>li{margin:1rem 0;font-size:1.4rem;color:#595959}.dialog-content>li::marker{font-size:1.6rem;color:#e0313e}.dialog-actions{display:flex;justify-content:flex-end;flex-wrap:nowrap!important;gap:1.6rem;width:100%}.dialog-actions .cancel{color:#595959}.dialog-actions .cancel:hover{border-color:#595959;background-color:#e0e1e2}.dialog-actions .confirm{background-color:#e0313e;color:#fff}.dialog-actions .confirm:hover{background-color:#cc2d38}.dialog-button-base{height:3.2rem;padding-inline:1.2rem;border-radius:4px;outline:0;border:1px solid transparent;background-color:transparent;text-align:center;font-weight:500;font-size:1.4rem;cursor:pointer;transition:.2s}.dialog-button-base:active{transform:scale(.98)}"]}),xe(1,t.Inject(a.MAT_DIALOG_DATA)),xe(2,t.Inject(De)),Ce("design:paramtypes",[a.MatDialogRef,_n,Object])],e)}(),xn=0,Cn=function(){function e(e,n){this._changeDetectorRef=e,this.elementRef=n,this._name="gipi-dropdown-menu-"+xn++,this.id=this._name,this.name=this._name,this.label="",this.ariaLabel="",this.placeholder="",this.disabled=!1,this.required=!1,this.showTrigger=!0,this._trigger=0,this.onKeydown=new t.EventEmitter,this.onFocus=new t.EventEmitter,this.onBlur=new t.EventEmitter,this.onClick=new t.EventEmitter,this.onOpenPopover=new t.EventEmitter,this.onClosePopover=new t.EventEmitter}var n;return n=e,Object.defineProperty(e.prototype,"trigger",{get:function(){return this._trigger},set:function(e){this._trigger=e},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.ngOnDestroy=function(){this.popoverTrigger&&this.popoverTrigger.destroyPopover()},e.prototype.onInputKeydown=function(e){this.disabled||this.onKeydown.emit(e)},e.prototype.onInputFocus=function(e){this.disabled||this.onFocus.emit(e)},e.prototype.onInputBlur=function(e){this.disabled||this.onBlur.emit(e)},e.prototype.onInputClick=function(e){this.disabled||(this.onClick.emit(e),e.stopPropagation())},e.prototype.togglePopover=function(){this.disabled||this.popoverTrigger.togglePopover()},e.prototype.showPopover=function(){this.disabled||this.popoverTrigger.openPopover()},e.prototype.closePopover=function(){this.disabled||this.popoverTrigger.closePopover()},e.prototype.onResize=function(e){this.popoverTrigger&&this.popoverTrigger.closePopover()},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef}]},we([t.ViewChild(gn,{static:!1}),Ce("design:type",gn)],e.prototype,"popoverTrigger",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showTrigger",void 0),we([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"trigger",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onKeydown",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onOpenPopover",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClosePopover",void 0),we([t.HostListener("window:resize",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[UIEvent]),Ce("design:returntype",void 0)],e.prototype,"onResize",null),e=n=we([t.Component({selector:"gipi-dropdown-menu",exportAs:"gipiDropdownMenu",template:'<label class="dropdown-menu-container"\n [attr.for]="id">\n <span class="dropdown-menu-label"\n *ngIf="label">\n {{ label }}\n <span *ngIf="required && label"> * </span>\n </span>\n\n <div class="dropdown-menu-content"\n (click)="onInputClick($event)"\n #popoverTrigger="popoverTrigger"\n [popoverTriggerFor]="dropdownMenuPopover"\n [popoverTriggerOn]="\'click\'"\n [popoverBackdropCloseOnClick]="true"\n (opened)="onOpenPopover.emit()"\n (closed)="onClosePopover.emit()">\n\n <input class="dropdown-menu-input"\n autocomplete="off"\n type="text"\n readonly="true"\n [attr.id]="id"\n [attr.aria-label]="ariaLabel"\n [name]="name"\n [required]="required"\n [placeholder]="placeholder"\n [disabled]="disabled"\n (keydown)="onInputKeydown($event)"\n (focus)="onInputFocus($event)"\n (blur)="onInputBlur($event)"\n (click)="togglePopover(); onInputClick($event)">\n\n <div class="dropdown-menu-suffix">\n <div class="dropdown-menu-trigger"\n *ngIf="showTrigger && (trigger && trigger > 1)">\n + {{ trigger >= 99 ? 99 : trigger }}\n </div>\n\n <mat-icon class="dropdown-menu-icon">\n keyboard_arrow_down\n </mat-icon>\n </div>\n </div>\n</label>\n\n<gipi-popover #dropdownMenuPopover="gipiPopover"\n [popoverOverlapTrigger]="false"\n [popoverCloseOnClick]="false"\n [popoverArrowWidth]="0"\n [popoverOffsetY]="3">\n <div class="btn-popover-content">\n <ng-content> </ng-content>\n </div>\n</gipi-popover>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-dropdown-menu"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".dropdown-menu-container{display:flex;flex-direction:column;gap:1rem;width:100%}.dropdown-menu-container .dropdown-menu-label{color:#131313;font-size:1.4rem;line-height:100%}.dropdown-menu-container .dropdown-menu-label>span{color:#d14014;font-size:inherit;line-height:inherit}.dropdown-menu-container .dropdown-menu-content{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:12px;gap:1rem;width:100%;max-height:4rem;border-radius:5px;cursor:pointer;background-color:#fff;border:1px solid #0000001f;color:#696969;transition:.2s}.dropdown-menu-container .dropdown-menu-content:focus-within,.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:active),.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:focus){box-shadow:0 0 0 .2rem #f0f0f0}.dropdown-menu-container .dropdown-menu-content:focus-within,.dropdown-menu-container .dropdown-menu-content:hover{border-color:#bfbfbf!important;background-color:#f5f5f5}.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:disabled){background-color:#e0e1e2!important;border-color:#e0e1e2!important;color:#d1d2d4!important;box-shadow:none!important;cursor:not-allowed!important;pointer-events:none!important}.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:disabled) .dropdown-menu-input,.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:disabled) .dropdown-menu-suffix .dropdown-menu-button{cursor:not-allowed!important;pointer-events:none!important}.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:disabled) .dropdown-menu-suffix .dropdown-menu-trigger{border-color:#e0e1e2!important;pointer-events:none!important}.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:disabled) mat-icon{color:#d1d2d4!important;fill:#d1d2d4!important;cursor:not-allowed!important;pointer-events:none!important}.dropdown-menu-container .dropdown-menu-content .dropdown-menu-input{cursor:pointer;height:16px;outline:0;border:none;background-color:transparent;color:inherit;flex:1;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dropdown-menu-container .dropdown-menu-content .dropdown-menu-suffix{display:flex;flex-direction:row;align-items:center;gap:16px}.dropdown-menu-container .dropdown-menu-content .dropdown-menu-suffix .dropdown-menu-trigger{display:flex;flex-direction:column;align-items:center;justify-content:center;padding-inline:8px;border-radius:40px;border:1px solid transparent;color:#131313;background-color:#f0f0f0;font-size:1.2rem;line-height:1.4rem}.dropdown-menu-container .dropdown-menu-content .dropdown-menu-suffix .dropdown-menu-button{display:flex;align-items:center;justify-content:center;outline:0;border:none;cursor:pointer;background-color:transparent}.dropdown-menu-container .dropdown-menu-content .dropdown-menu-suffix .dropdown-menu-button:hover:not(:disabled)>mat-icon{transform:scale(1.08)}.dropdown-menu-icon{width:1.6rem;height:1.6rem;font-size:1.6rem;color:#131313;fill:#131313}.btn-popover-content{background-color:#fff;border-radius:4px;box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);padding:8px}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef,t.ElementRef])],e)}(),In=function(){function e(){}var n;return n=e,e.prototype.ngOnInit=function(){},e=n=we([t.Component({selector:"gipi-empty-state",exportAs:"gipiEmptyState",template:"<mat-icon>sentiment_very_dissatisfied</mat-icon>\nNenhum registro foi encontrado",providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-empty-state"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:1.4rem;font-weight:600;color:#131313;padding:2.4rem 0}:host>mat-icon{font-size:3.2rem;height:3.2rem;width:3.2rem;margin-bottom:5px}"]}),Ce("design:paramtypes",[])],e)}(),Sn=function(){function e(e,n){this.elementRef=e,this._changeDetectorRef=n,this.isExpanded=!1,this.startExpanded=!1,this.disabled=!1,this.expanded=new t.EventEmitter}var n;return n=e,e.prototype.ngOnInit=function(){this.startExpanded&&(this.isExpanded=this.startExpanded)},e.prototype.emitExpanded=function(e){this.expanded.emit(e)},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",String)],e.prototype,"icon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIcon",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"iconSize",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"panelTitle",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"isExpanded",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"startExpanded",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"expanded",void 0),e=n=we([t.Component({selector:"gipi-expansion-panel",exportAs:"gipiExpansionPanel",template:'<mat-accordion #accordion\n fxFlex>\n <mat-expansion-panel #expansionPanel\n togglePosition="before"\n [expanded]="isExpanded"\n (afterExpand)="emitExpanded(true)"\n (afterCollapse)="emitExpanded(false)"\n [disabled]="disabled">\n <mat-expansion-panel-header #expansionPanelHeader>\n <mat-panel-title>\n <span *ngIf="panelTitle">\n {{ panelTitle }}\n </span>\n <div *ngIf="icon || svgIcon">\n <itss-icon *ngIf="icon"\n [icon]="icon"\n [iconSize]="iconSize">\n </itss-icon>\n <itss-icon *ngIf="svgIcon"\n [svgIcon]="svgIcon"\n [iconSize]="iconSize">\n </itss-icon>\n </div>\n </mat-panel-title>\n </mat-expansion-panel-header>\n\n <ng-content> </ng-content>\n </mat-expansion-panel>\n</mat-accordion>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-expansion-panel"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:["::ng-deep .mat-expansion-panel:not([class*=mat-elevation-z]){border-radius:3px!important;box-shadow:none!important}::ng-deep .mat-expansion-panel-header{color:#696969!important;padding:0 24px!important;border:1px solid #e0e1e2!important;background:#f5f5f6!important;border-radius:3px!important;transition:box-shadow .2s!important;height:48px!important}::ng-deep .mat-expansion-panel-header-title{color:#696969!important;font-weight:700!important;margin:0!important}::ng-deep .mat-expansion-panel-header-title>span{width:100%!important;-ms-grid-row-align:center!important;align-self:center!important;line-height:15px!important}::ng-deep .mat-expansion-panel-indicator{margin:-8px 16px 0 0!important;align-self:center!important;display:flex!important;align-items:center!important;justify-content:center!important}::ng-deep .mat-expansion-indicator::before{margin-top:-5px!important}::ng-deep .mat-expansion-indicator::after{margin-top:-5px!important}::ng-deep .mat-expansion-panel-body{border:1px solid #e0e1e2!important;border-top:none!important;padding:1.6rem!important}"]}),Ce("design:paramtypes",[t.ElementRef,t.ChangeDetectorRef])],e)}(),kn=function(e){function n(t){var n=e.call(this)||this;return n.dialog=t,n}return be(n,e),n.prototype.confirm=function(e){return Ie(this,void 0,void 0,(function(){var t,n;return Se(this,(function(i){switch(i.label){case 0:return t=!1,(n=new a.MatDialogConfig).disableClose=!0,n.autoFocus=!0,n.data=e,n.minWidth="20%",e.width?n.width=e.width:n.maxWidth="40%",[4,this.dialog.open(wn,n).afterClosed().pipe(oe.tap((function(n){n?null!==e.accept&&void 0!==e.accept&&e.accept():null!==e.cancel&&void 0!==e.cancel&&e.cancel(),t=n}))).toPromise()];case 1:return i.sent(),[2,t]}}))}))},n.ctorParameters=function(){return[{type:a.MatDialog}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(P.MatDialog))},token:n,providedIn:"root"}),n=we([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[a.MatDialog])],n)}(Ke),On=function(){function e(e,n){this._messageService=e,this._confirmationService=n,this.files=[],this.iconSize=0,this.iconSizeFile=0,this.multiple=!1,this.verifyHasAdded=!1,this.legendFieldset="",this.listFileVisible=!1,this.removingFiles=!1,this.fileChange=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,e.prototype.ngOnInit=function(){},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.files=e},e.prototype.onFileChange=function(e){this._validateCountFiles(e)&&this._validateExtensionFile(e)&&this._validateHasAdded(e)&&(this.files=Object.keys(e).map((function(t){return e[t]})),this.fileChange.emit(this.files)),this._elementRef.nativeElement.value=""},e.prototype.onDeleteFile=function(e){var t=this.files;this.files=[],t=this.files.filter((function(t){return t.name!==e.name})),this.files=t,this.fileChange.emit(this.files),this._elementRef.nativeElement.value=""},e.prototype.onClearInputFile=function(e){return this._elementRef.nativeElement.value="",this.files=[],e&&this.fileChange.emit(this.files),this.files.length<=0&&Be.isEmpty(this._elementRef.nativeElement.value)},e.prototype.openConfirmDialogRemoveFile=function(e,t){var n=this;try{this._confirmationService.confirm({title:"Confirmação",message:"Deseja realmente remover o arquivo "+e.name+" da lista?",accept:function(){var e=n.files;e.splice(t,1),n.files=[],n.files=e},cancel:function(){}})}catch(e){this.addErrorMessage(e)}},e.prototype._validateCountFiles=function(e){return!(!this.multiple&&e.length>1)||(this.addErrorMessage("Não é possível selecionar mais de um arquivo por vez"),!1)},e.prototype._validateHasAdded=function(e){if(!this.verifyHasAdded||Ot.isEmpty(this.files))return!0;for(var t=!0,n=function(n){if(i.files.filter((function(t){return t.name.toUpperCase()===e[n].name.toUpperCase()})).length>0)return i.addErrorMessage("O arquivo "+e[n].name+" já foi adicionado"),t=!1,"break"},i=this,o=0;o<e.length;o++){if("break"===n(o))break}return t},e.prototype._validateExtensionFile=function(e){if(!this.onlyExtensions||0===this.onlyExtensions.length)return!0;for(var t=this.onlyExtensions.filter((function(e){return e.includes("*")})).map((function(e){return e.slice(0,e.indexOf("*"))})),n=function(n){var o=e[n].name,r=o.substring(o.lastIndexOf(".")).toLowerCase(),a=i.onlyExtensions.includes(r);if(!a&&t.length>0&&(a=t.some((function(e){return r.startsWith(e)}))),!a)return i.addErrorMessage("Informe somente arquivos com extensão "+i.onlyExtensions.join(", ")),{value:!1}},i=this,o=0;o<e.length;o++){var r=n(o);if("object"==typeof r)return r.value}return!0},e.prototype.addSuccessMessage=function(e){this._messageService.add({icon:"check_circle",title:"Sucesso",message:e,type:"success"})},e.prototype.addErrorMessage=function(e){this._messageService.add({icon:"cancel",title:"Ocorreu um erro",message:e,type:"error"})},e.ctorParameters=function(){return[{type:Xe},{type:kn}]},we([t.ViewChild("inputFile",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"_elementRef",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"files",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"color",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"icon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"iconFile",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"iconDeleteFile",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIconFile",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIconDeleteFile",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"iconSize",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"iconSizeFile",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"multiple",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"onlyExtensions",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"verifyHasAdded",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"legendFieldset",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"listFileVisible",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"removingFiles",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"fileChange",void 0),e=n=we([t.Component({selector:"gipi-file-drag-and-drop",exportAs:"gipiFileDragAndDrop",template:'<div>\n <div class="dropzone"\n fileDragAndDrop\n [disabled]="disabled"\n (filesChangeEmiter)="onFileChange($event)"\n [class.dropzone-disabled]="disabled">\n <div class="text-wrapper">\n <div class="centered">\n <mat-icon *ngIf="icon"\n [style.color]="color"\n [style.width.px]="iconSize"\n [style.height.px]="iconSize"\n matSuffix>\n {{ icon }}\n </mat-icon>\n <mat-icon *ngIf="svgIcon"\n [svgIcon]="svgIcon"\n [style.color]="color"\n [style.width.px]="iconSize"\n [style.height.px]="iconSize"\n matSuffix>\n </mat-icon>\n\n <h3> Arraste e solte o arquivo aqui </h3>\n <h3> ou </h3>\n\n <div class="select-file"\n [class.select-file-disabled]="disabled">\n <input #inputFile\n type="file"\n [accept]="onlyExtensions.join(\',\')"\n [multiple]="multiple"\n [disabled]="disabled"\n (change)="onFileChange($event.target.files)">\n <label>Procure o arquivo</label>\n </div>\n </div>\n </div>\n </div>\n\n <fieldset class="list-files"\n *ngIf="listFileVisible">\n <legend>\n {{ legendFieldset.length <= 0\n ? \'Arquivos selecionados\'\n :\n legendFieldset\n }}\n </legend>\n\n <div class="file-item"\n [class.file-item-disabled]="disabled"\n *ngFor="let file of files; let ind = index"\n (click)="removingFiles ? openConfirmDialogRemoveFile(file, ind) : null">\n\n <div class="file-item-icon"\n *ngIf="removingFiles">\n <itss-icon class="not-hover"\n [icon]="iconFile"\n [svgIcon]="svgIconFile"\n [iconSize]="iconSizeFile"></itss-icon>\n <itss-icon class="hovering"\n [icon]="iconDeleteFile"\n [svgIcon]="svgIconDeleteFile"\n [iconSize]="iconSizeFile"></itss-icon>\n </div>\n\n <div class="file-item-icon"\n *ngIf="!removingFiles">\n <itss-icon [icon]="iconFile"\n [svgIcon]="svgIconFile"\n [iconSize]="iconSizeFile"></itss-icon>\n </div>\n\n <div class="file-item-text">\n <span *ngIf="files.length > 0">\n {{ (file.name.length > 20) ? (file.name | slice:0:20) + \'...\' : file.name }}\n </span>\n <span *ngIf="(files.length <= 0) "></span>\n </div>\n </div>\n </fieldset>\n</div>\n',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-file-drag-and-drop"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host ::ng-deep .dropzone{width:100%;height:100%;min-height:25rem;display:flex;align-items:center;justify-content:center;position:relative}:host ::ng-deep .dropzone .text-wrapper{display:flex;align-items:center;justify-content:center;height:100%}:host ::ng-deep .dropzone .centered{display:flex;align-items:center;gap:8px;justify-content:center;flex-direction:column}:host ::ng-deep .dropzone .centered>mat-icon{color:#595959;fill:#595959}:host ::ng-deep .dropzone .centered>mat-icon svg path{color:#595959!important;fill:#595959!important}:host ::ng-deep .dropzone .centered>h3{font-size:1.8rem;font-weight:700;color:#595959}:host ::ng-deep .dropzone .centered .select-file{padding:12px 30px;text-align:center;background-color:#e0313e;color:#fff;border-radius:30px;font-size:1.4rem;transition:.3s;position:relative;cursor:pointer}:host ::ng-deep .dropzone .centered .select-file>input[type=file]{width:100%;opacity:0;position:absolute;z-index:2;height:100%;top:0;left:0;cursor:pointer}:host ::ng-deep .dropzone .centered .select-file>input[type=file]:disabled{cursor:not-allowed}:host ::ng-deep .dropzone .centered .select-file>label{cursor:pointer}:host ::ng-deep .dropzone .centered .select-file:hover{background-color:#cc2d38}:host ::ng-deep .dropzone .centered .select-file-disabled{background-color:#d1d2d4!important;color:#f5f5f6!important;cursor:not-allowed!important}.dropzone-disabled{cursor:not-allowed;opacity:.4}:host ::ng-deep .list-files{margin-top:20px;border:1px solid #b6b6b6;color:#696969;font-size:14px;font-weight:700;padding:20px;display:-ms-grid;display:grid;grid-template-columns:repeat(auto-fill,minmax(60px,150px));justify-content:space-evenly;gap:15px;min-height:140px;border-radius:5px}:host ::ng-deep .list-files .file-item{height:100px;border-radius:20px;border:2px dashed #b6b6b6;background:0 0;padding:10px;font-size:11px;text-transform:uppercase;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer}:host ::ng-deep .list-files .file-item:hover{border:1px solid #f3465c;background-color:#f3465c26;color:#f3465c;font-weight:700}:host ::ng-deep .list-files .file-item:hover .not-hover{display:none}:host ::ng-deep .list-files .file-item:hover .hovering{display:block}:host ::ng-deep .list-files .file-item .not-hover{display:block}:host ::ng-deep .list-files .file-item .hovering{display:none}:host ::ng-deep .list-files .file-item-icon{width:100%;height:150px;display:flex;align-items:center;justify-content:center}:host ::ng-deep .list-files .file-item-text{text-align:center}.file-item-disabled{opacity:.4;border:1px solid;cursor:not-allowed}"]}),Ce("design:paramtypes",[Xe,kn])],e)}(),En=function(){function e(){}var n;return n=e,e.prototype.ngOnInit=function(){},e=n=we([t.Component({selector:"gipi-footer",exportAs:"gipiFooter",template:"<footer>\n <ng-content></ng-content>\n</footer>\n",providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-footer"},styles:[":host footer{all:unset;display:block;width:100%;height:8px;background-color:#e0313e;position:fixed;bottom:0;z-index:1}"]}),Ce("design:paramtypes",[])],e)}(),Dn=0,Pn=function(){function e(e,n){this._changeDetectorRef=e,this.elementRef=n,this._name="gipi-form-field-"+Dn++,this.id=this._name,this.name=this._name,this.label="",this.ariaLabel="",this.placeholder="",this.readonly=!1,this.disabled=!1,this.required=!1,this.showClear=!1,this.showSearch=!1,this.showTrigger=!1,this.type="text",this._trigger=0,this.onKeydown=new t.EventEmitter,this.onKeydownEnter=new t.EventEmitter,this.onFocus=new t.EventEmitter,this.onBlur=new t.EventEmitter,this.onClick=new t.EventEmitter,this.onClear=new t.EventEmitter,this.onSearch=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"model",{get:function(){return this._model},set:function(e){this._model=e,this.onChange(e),this.onTouch(),this._changeDetectorRef.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trigger",{get:function(){return this._trigger},set:function(e){this._trigger=e},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.writeValue=function(e){this.model=e},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},e.prototype.onInputKeydown=function(e){this.disabled||("ENTER"===e.key.toUpperCase()&&this.onKeydownEnter.emit(e),this.onKeydown.emit(e))},e.prototype.onInputFocus=function(e){this.disabled||this.onFocus.emit(e)},e.prototype.onInputBlur=function(e){this.disabled||(this.onBlur.emit(e),this.onTouch())},e.prototype.onInputClick=function(e){this.disabled||(this.onClick.emit(e),this.focus())},e.prototype.onButtonClearClick=function(e){this.disabled||("search"===this.type&&(this.model=""),this.onClear.emit(e))},e.prototype.onButtonSearchClick=function(e){this.disabled||"search"!==this.type||this.onSearch.emit(e)},e.prototype.focus=function(){ze.isNull(this.inputRef)||this.inputRef.nativeElement.focus()},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef}]},we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"readonly",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showClear",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showSearch",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showTrigger",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"type",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"min",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"max",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"maxLength",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"mask",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"pattern",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"optionsCurrency",void 0),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"model",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"value",null),we([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"trigger",null),we([t.ViewChild("inputRef",{static:!0,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"inputRef",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onKeydown",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onKeydownEnter",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClear",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onSearch",void 0),e=n=we([t.Component({selector:"gipi-form-field",exportAs:"gipiFormField",template:'<label class="form-field-container"\n [attr.for]="id">\n <span class="form-field-label"\n *ngIf="label">\n {{ label }}\n <span *ngIf="required && label"> * </span>\n </span>\n\n <div class="form-field-content"\n [class.form-field-select]="type === \'select\'"\n (click)="onInputClick($event)">\n \x3c!-- Input others --\x3e\n <input class="form-field-input"\n *ngIf="type && type !== \'currency\'"\n #inputRef\n autocomplete="off"\n [attr.id]="id"\n [attr.aria-label]="ariaLabel"\n [name]="name"\n [type]="type"\n [min]="min"\n [max]="max ? max : 250"\n [maxlength]="maxLength ? maxLength : 250"\n [mask]="mask"\n [required]="required"\n [placeholder]="placeholder"\n [readonly]="readonly"\n [disabled]="disabled"\n [pattern]="pattern"\n [(ngModel)]="model"\n [value]="value"\n (keydown)="onInputKeydown($event)"\n (focus)="onInputFocus($event)"\n (blur)="onInputBlur($event)"\n (click)="onInputClick($event)">\n\n \x3c!-- Input currency --\x3e\n <input class="form-field-input"\n *ngIf="type && type === \'currency\'"\n #inputRef\n currencyMask\n autocomplete="off"\n [attr.id]="id"\n [attr.aria-label]="ariaLabel"\n [name]="name + \'currency\'"\n [type]="type"\n [min]="min"\n [max]="max"\n [maxlength]="maxLength"\n [mask]="mask"\n [required]="required"\n [placeholder]="placeholder"\n [readonly]="readonly"\n [disabled]="disabled"\n [pattern]="pattern"\n [(ngModel)]="model"\n [value]="value"\n [options]="optionsCurrency"\n (keydown)="onInputKeydown($event)"\n (focus)="onInputFocus($event)"\n (blur)="onInputBlur($event)"\n (click)="onInputClick($event)">\n\n <div class="form-field-suffix"\n *ngIf="type === \'select\'">\n <div class="form-field-trigger"\n *ngIf="showTrigger && (trigger && trigger > 1)">\n + {{ trigger >= 99 ? 99 : trigger }}\n </div>\n\n <button ariaLabel="Limpar opções"\n class="form-field-button"\n *ngIf="showClear"\n (click)="onButtonClearClick($event)">\n <mat-icon class="form-field-icon"> clear </mat-icon>\n </button>\n\n <div class="form-field-icon-arrow"> </div>\n </div>\n\n <div class="form-field-suffix"\n *ngIf="type === \'search\'">\n <button ariaLabel="Limpar"\n class="form-field-button"\n *ngIf="showClear"\n (click)="onButtonClearClick($event)">\n <mat-icon class="form-field-icon"> clear </mat-icon>\n </button>\n\n <button ariaLabel="Pesquisar"\n class="form-field-button"\n *ngIf="showSearch"\n (click)="onButtonSearchClick($event)">\n <mat-icon class="form-field-icon">\n search\n </mat-icon>\n </button>\n\n <mat-icon class="form-field-icon"\n *ngIf="!showSearch">\n search\n </mat-icon>\n </div>\n </div>\n</label>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-form-field"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:block;min-width:0;max-width:100%;flex:1}.form-field-container{display:flex;flex-direction:column;gap:1rem;width:100%}.form-field-container .form-field-label{color:#131313;font-size:1.4rem;line-height:100%}.form-field-container .form-field-label>span{color:#d14014;font-size:inherit;line-height:inherit}.form-field-container .form-field-content{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:1.2rem;gap:1rem;width:100%;max-height:4rem;border-radius:5px;cursor:text;background-color:#fff;border:1px solid #0000001f;color:#696969;caret-color:#9a9da2;transition:.2s}.form-field-container .form-field-content:focus-within,.form-field-container .form-field-content:has(.form-field-input:active),.form-field-container .form-field-content:has(.form-field-input:focus){box-shadow:0 0 0 .2rem #f0f0f0}.form-field-container .form-field-content:focus-within,.form-field-container .form-field-content:hover{border-color:#bfbfbf!important}.form-field-container .form-field-content:has(.form-field-input:invalid){border-color:#d14014!important;color:#d14014!important;caret-color:#d14014!important}.form-field-container .form-field-content:has(.form-field-input:invalid):focus-within{box-shadow:0 0 0 .2rem #f1c4b6!important}.form-field-container .form-field-content:has(.form-field-input:disabled){border-color:#e0e1e2!important;color:#d1d2d4!important;box-shadow:none!important;cursor:not-allowed!important;caret-color:#d1d2d4!important;pointer-events:none!important}.form-field-container .form-field-content:has(.form-field-input:disabled) .form-field-input,.form-field-container .form-field-content:has(.form-field-input:disabled) .form-field-suffix .form-field-button{cursor:not-allowed!important;pointer-events:none!important}.form-field-container .form-field-content:has(.form-field-input:disabled) .form-field-suffix .form-field-trigger{border-color:#e0e1e2!important;pointer-events:none!important}.form-field-container .form-field-content:has(.form-field-input:disabled) mat-icon{color:#d1d2d4!important;fill:#d1d2d4!important;cursor:not-allowed!important;pointer-events:none!important}.form-field-container .form-field-content.form-field-select,.form-field-container .form-field-content.form-field-select .form-field-input{box-shadow:none!important;cursor:pointer!important}.form-field-container .form-field-content .form-field-input{height:16px;outline:0;border:none;background-color:transparent;color:inherit;flex:1;max-width:85%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.form-field-container .form-field-content .form-field-suffix{display:flex;flex-direction:row;align-items:center;gap:1.6rem}.form-field-container .form-field-content .form-field-suffix .form-field-trigger{display:flex;flex-direction:column;align-items:center;justify-content:center;padding-inline:8px;border-radius:40px;border:1px solid transparent;color:#131313;background-color:#f0f0f0;font-size:1.2rem;line-height:1.4rem}.form-field-container .form-field-content .form-field-suffix .form-field-button{display:flex;align-items:center;justify-content:center;outline:0;border:none;cursor:pointer;background-color:transparent}.form-field-container .form-field-content .form-field-suffix .form-field-button:hover:not(:disabled)>mat-icon{transform:scale(1.08)}.form-field-icon{width:1.6rem;height:1.6rem;font-size:1.6rem;color:#131313;fill:#131313}.form-field-icon-arrow{border:solid #131313;border-width:0 2px 2px 0;display:inline-block;padding:3px;transform:rotate(45deg);margin:-5px 4px 0}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef,t.ElementRef])],e)}(),An=0,Rn=function(){function e(e,t){this._changeDetectorRef=e,this.elementRef=t,this._name="gipi-form-field-"+An++,this.id=this._name,this.name=this._name,this._tooltip=""}var n;return n=e,Object.defineProperty(e.prototype,"tooltip",{get:function(){return this._tooltip},set:function(e){this._tooltip=e},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef}]},we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"tooltip",null),e=n=we([t.Component({selector:"gipi-helpful-tip",exportAs:"gipiHelpfulTip",template:'<itss-icon *ngIf="tooltip"\n icon="help"\n color="#8C8F93"\n class="helpful-tip-icon"\n [tooltip]="tooltip"\n [iconSize]="12">\n</itss-icon>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-helpful-tip"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:["::ng-deep .helpful-tip-icon mat-icon{height:100%;width:1.4rem;font-size:1.4rem;line-height:1rem;text-align:center;cursor:pointer}::ng-deep .helpful-tip-icon mat-icon:hover{color:#6d6f73!important}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef,t.ElementRef])],e)}(),Mn=0,Tn=function(){function e(e){this._changeDetectorRef=e,this._name="gipi-input-checkbox-"+Mn++,this.id=this._name,this.name=this._name,this.disabled=!1,this.disableRipple=!1,this.labelPosition="after",this.change=new t.EventEmitter,this.indeterminateChange=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.onChange(e),this.onTouch()},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.value=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disableRipple",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"labelPosition",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"indeterminate",void 0),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"value",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"change",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"indeterminateChange",void 0),e=n=we([t.Component({selector:"gipi-input-checkbox",exportAs:"gipiInputCheckbox",template:'<mat-checkbox [attr.id]="id"\n [name]="name"\n [(ngModel)]="value"\n [required]="required"\n [disabled]="disabled"\n [disableRipple]="disableRipple"\n [labelPosition]="labelPosition"\n [(indeterminate)]="indeterminate"\n (change)="change.emit($event)"\n (indeterminateChange)="indeterminateChange.emit($event)">\n {{ label }}\n</mat-checkbox>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-input-checkbox"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:block;min-width:0;max-width:100%;flex:1}::ng-deep .mat-checkbox-disabled{cursor:not-allowed!important}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef])],e)}(),Fn=0,Vn=function(){function e(e,n){this._changeDetectorRef=e,this.elementRef=n,this._name="gipi-input-currency-"+Fn++,this.id=this._name,this.name=this._name,this.placeholder="",this.readonly=!1,this.disabled=!1,this.required=!1,this.onKeydown=new t.EventEmitter,this.onKeydownEnter=new t.EventEmitter,this.onFocus=new t.EventEmitter,this.onBlur=new t.EventEmitter,this.onClick=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"model",{get:function(){return this._model},set:function(e){this._model=e,this.onChange(e),this.onTouch(),this._changeDetectorRef.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.writeValue=function(e){this.model=e},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},e.prototype.onInputKeydown=function(e){this.disabled||("ENTER"===e.key.toUpperCase()&&this.onKeydownEnter.emit(e),this.onKeydown.emit(e))},e.prototype.onInputFocus=function(e){this.disabled||this.onFocus.emit(e)},e.prototype.onInputBlur=function(e){this.disabled||(this.onBlur.emit(e),this.onTouch())},e.prototype.onInputClick=function(e){this.disabled||(this.onClick.emit(e),this.focus())},e.prototype.focus=function(){ze.isNull(this.inputCurrencyRef)||this.inputCurrencyRef.nativeElement.focus()},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef}]},we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"readonly",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"min",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"max",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"maxLength",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"options",void 0),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"model",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"value",null),we([t.ViewChild("inputCurrencyRef",{static:!0,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"inputCurrencyRef",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onKeydown",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onKeydownEnter",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),e=n=we([t.Component({selector:"gipi-input-currency",exportAs:"gipiInputCurrency",template:'<label class="input-currency-container"\n [attr.for]="id">\n <span class="input-currency-label"\n *ngIf="label">\n {{ label }}\n <span *ngIf="required && label"> * </span>\n </span>\n\n <div class="input-currency-content"\n (click)="onInputClick($event)">\n <input class="input-currency-input"\n #inputCurrencyRef\n currencyMask\n autocomplete="off"\n type="currency"\n [attr.id]="id"\n [attr.aria-label]="ariaLabel"\n [name]="name"\n [min]="min"\n [max]="max"\n [maxlength]="maxLength"\n [required]="required"\n [placeholder]="placeholder"\n [readonly]="readonly"\n [disabled]="disabled"\n [(ngModel)]="model"\n [value]="value"\n [options]="options"\n (keydown)="onInputKeydown($event)"\n (focus)="onInputFocus($event)"\n (blur)="onInputBlur($event)"\n (click)="onInputClick($event)">\n </div>\n</label>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-input-currency"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:block;min-width:0;max-width:100%;flex:1}.input-currency-container{display:flex;flex-direction:column;gap:1rem;width:100%}.input-currency-container .input-currency-label{color:#131313;font-size:1.4rem;line-height:100%}.input-currency-container .input-currency-label>span{color:#d14014;font-size:inherit;line-height:inherit}.input-currency-container .input-currency-content{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:12px;width:100%;max-height:4rem;border-radius:5px;cursor:text;background-color:#fff;border:1px solid #0000001f;color:#696969;caret-color:#9a9da2;transition:.2s}.input-currency-container .input-currency-content:focus-within,.input-currency-container .input-currency-content:has(.input-currency-input:active),.input-currency-container .input-currency-content:has(.input-currency-input:focus){box-shadow:0 0 0 .2rem #f0f0f0}.input-currency-container .input-currency-content:focus-within,.input-currency-container .input-currency-content:hover{border-color:#bfbfbf!important}.input-currency-container .input-currency-content:has(.input-currency-input:invalid){border-color:#d14014!important;color:#d14014!important;caret-color:#d14014!important}.input-currency-container .input-currency-content:has(.input-currency-input:invalid):focus-within{box-shadow:0 0 0 .2rem #f1c4b6!important}.input-currency-container .input-currency-content:has(.input-currency-input:disabled){color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;cursor:not-allowed!important;box-shadow:none!important;pointer-events:none!important}.input-currency-container .input-currency-content .input-currency-input{height:16px;outline:0;border:none;background-color:transparent;color:inherit;flex:1}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef,t.ElementRef])],e)}(),Nn=0,jn=function(){function e(e,n){this._changeDetectorRef=e,this._config=n,this._name="gipi-input-monthpicker-"+Nn++,this._yearArrays=[],this._now=new Date,this._currentMonth=this._now.getMonth(),this._currentYear=this._now.getFullYear(),this._overlayVisible=!1,this.monthArrays=Array.from(Array(12).keys()),this.monthNames=["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],this.internalCalendarView="month",this.id=this._name,this.name=this._name,this.ariaLabel="",this.label="",this.placeholder="",this.disabled=!1,this.loading=!1,this.required=!1,this.showOnFocus=!0,this._calendarView="month",this.onClose=new t.EventEmitter,this.onMonthChange=new t.EventEmitter,this.onYearChange=new t.EventEmitter,this.onKeydown=new t.EventEmitter,this.onKeydownEnter=new t.EventEmitter,this.onFocus=new t.EventEmitter,this.onBlur=new t.EventEmitter,this.onClick=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"initialYear",{get:function(){return this._initialYear},set:function(e){e>1900&&(this._initialYear=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearArrays",{get:function(){return this._yearArrays},set:function(e){this._yearArrays=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"calendarView",{get:function(){return this._calendarView},set:function(e){this._calendarView=e,ze.isNull(this.value)||("month"===e?this.monthChanged(this.value.getMonth()):"year"===e&&this.yearChanged(this.value.getFullYear()),this.internalCalendarView=e,this._changeDetectorRef.markForCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){if(this._value=e,e)if(e.setDate(1),this._value=e,"month"===this.calendarView){var t=this.value.getMonth()+1;this.inputFieldValue=(t<=9?"0"+t:t)+"/"+this.value.getFullYear()}else"year"===this.calendarView&&(this.inputFieldValue=""+this.value.getFullYear());this.onChange(e),this._changeDetectorRef.markForCheck()},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this._generateYears()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.value=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},e.prototype._generateYears=function(){var e=this._now.getFullYear();if(this.initialYear||(this.initialYear=this.value?this.value.getFullYear():this._now.getFullYear()),this.yearArrays=[],this.initialYear===e)for(var t=this.initialYear-this.initialYear%12,n=0;n<24;n++)this.yearArrays.push(t+n);else for(n=this.initialYear;n<this.initialYear+24;n++)this.yearArrays.push(n)},e.prototype.clickToggleCalendar=function(e){e?this.internalCalendarView=e:"month"===this.internalCalendarView&&(this.internalCalendarView="year"),this._changeDetectorRef.detectChanges()},e.prototype.clickPrev=function(){"month"===this.internalCalendarView?(this.value=new Date(this.value.getFullYear()-1,this.value.getMonth(),1),this.initialYear=this.value.getFullYear()-7):"year"===this.internalCalendarView&&(this.initialYear=this.yearArrays[0]-23),this._generateYears(),this._changeDetectorRef.detectChanges()},e.prototype.clickNext=function(){"month"===this.internalCalendarView?(this.value=new Date(this.value.getFullYear()+1,this.value.getMonth(),1),this.initialYear=this.value.getFullYear()-7+1):"year"===this.internalCalendarView&&(this.initialYear=this.yearArrays[23]),this._generateYears(),this._changeDetectorRef.detectChanges()},e.prototype.monthChanged=function(e){var t=this.value.getFullYear();this._monthOrYearChanged(e,t),this._hideOverlay()},e.prototype.yearChanged=function(e){var t=this.value.getMonth();this._monthOrYearChanged(t,e),"month"===this.calendarView?this.clickToggleCalendar("month"):"year"===this.calendarView&&this._hideOverlay()},e.prototype._monthOrYearChanged=function(e,t){var n=e,i=t;this.minDate&&(i<this.minDate.getFullYear()||i===this.minDate.getFullYear()&&n<this.minDate.getMonth())&&(n=this.minDate.getMonth(),i=this.minDate.getFullYear()),this.maxDate&&(i>this.maxDate.getFullYear()||i===this.maxDate.getFullYear()&&n>this.maxDate.getMonth())&&(n=this.maxDate.getMonth(),i=this.maxDate.getFullYear()),this.value=new Date(i,n,1),this._changeDetectorRef.detectChanges()},e.prototype.isMonthSelected=function(e){return!!this.value&&this.value.getMonth()===e},e.prototype.isMonthDisabled=function(e){return!!(this.value&&this.minDate&&this.maxDate)&&(this.value.getFullYear()===this.minDate.getFullYear()&&e<this.minDate.getMonth()||this.value.getFullYear()===this.maxDate.getFullYear()&&e>this.maxDate.getMonth())},e.prototype.isYearSelected=function(e){return!!this.value&&this.value.getFullYear()===e},e.prototype.isYearDisabled=function(e){return!!(this.value&&this.minDate&&this.maxDate)&&(this.value.getFullYear()===this.minDate.getFullYear()&&e<this.minDate.getFullYear()||this.value.getFullYear()===this.maxDate.getFullYear()&&e>this.maxDate.getFullYear())},e.prototype.onInputKeydown=function(e){this.disabled||("ENTER"===e.key.toUpperCase()&&this.onKeydownEnter.emit(e),this.onKeydown.emit(e))},e.prototype.onInputKeyup=function(e){this.disabled||("ESC"!==e.key.toUpperCase()&&"ESCAPE"!==e.key.toUpperCase()||this._hideOverlay(),this.onKeydown.emit(e))},e.prototype.onInputFocus=function(e){!this.disabled&&this.showOnFocus&&(this._showOverlay(),this.onFocus.emit(e))},e.prototype.onInputBlur=function(e){this.disabled||(this.onBlur.emit(e),this.onTouch())},e.prototype.onInputClick=function(e){this.disabled||(this._showOverlay(),this.onClick.emit(e))},e.prototype.onButtonShowMonthpicker=function(){this.toogleOverlay(),this._changeDetectorRef.markForCheck()},e.prototype._showOverlay=function(){this._overlayVisible||(this._overlayVisible=!0)},e.prototype._hideOverlay=function(){this._overlayVisible=!1,this._changeDetectorRef.markForCheck()},e.prototype.toogleOverlay=function(){this.disabled||this.loading||(this._overlayVisible?this._hideOverlay():this._showOverlay())},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:lt}]},we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showOnFocus",void 0),we([t.Input(),Ce("design:type",Date)],e.prototype,"minDate",void 0),we([t.Input(),Ce("design:type",Date)],e.prototype,"maxDate",void 0),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"calendarView",null),we([t.Input(),Ce("design:type",Date),Ce("design:paramtypes",[Date])],e.prototype,"value",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClose",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onMonthChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onYearChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onKeydown",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onKeydownEnter",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),we([t.ViewChild("inputMonthPicker",{static:!0,read:HTMLInputElement}),Ce("design:type",HTMLInputElement)],e.prototype,"inputMonthPickerRef",void 0),e=n=we([t.Component({selector:"gipi-input-monthpicker",exportAs:"gipiInputMonthPicker",template:'<label class="input-monthpicker-container"\n [attr.for]="id">\n <span class="input-monthpicker-label"\n *ngIf="label">\n {{ label }}\n <span *ngIf="required && label"> * </span>\n </span>\n\n <div class="input-monthpicker-content"\n (click)="onInputClick($event)"\n #inputMonthPickerTarget>\n <input class="input-monthpicker-input"\n #inputMonthPicker\n autocomplete="off"\n [attr.id]="id"\n [attr.aria-label]="ariaLabel"\n [name]="name"\n type="text"\n [required]="required"\n [placeholder]="placeholder"\n [readonly]="true"\n [disabled]="disabled"\n [(ngModel)]="inputFieldValue"\n (keydown)="onInputKeydown($event)"\n (focus)="onInputFocus($event)"\n (blur)="onInputBlur($event);"\n (click)="onInputClick($event)"\n (keyup)="onInputKeyup($event)" />\n\n <div class="input-monthpicker-suffix">\n <button ariaLabel="Exibir calendário"\n class="input-monthpicker-button"\n [disabled]="disabled"\n (click)="onButtonShowMonthpicker()">\n <svg class="input-monthpicker-icon"\n viewBox="0 0 24 24"\n width="24px"\n height="24px"\n fill="currentColor"\n focusable="false">\n <path\n d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z" />\n </svg>\n </button>\n </div>\n </div>\n</label>\n\n<gipi-overlay *ngIf="!disabled && !loading"\n [(visible)]="_overlayVisible"\n [appendTo]="\'body\'">\n <div class="calendar">\n <div class="calendar-header">\n <div class="calendar-title"\n [class.month]="internalCalendarView === \'month\'"\n (click)="clickToggleCalendar()">\n <ng-container *ngIf="internalCalendarView === \'month\'">\n {{ value ? value.getFullYear() : _currentYear }}\n </ng-container>\n\n <ng-container *ngIf="internalCalendarView === \'year\'">\n {{ yearArrays[0] + \' - \' + yearArrays[yearArrays.length - 1] }}\n </ng-container>\n\n <mat-icon *ngIf="internalCalendarView === \'month\'">arrow_drop_down</mat-icon>\n </div>\n <div class="calendar-controls">\n <button aria-label="Voltar a data"\n (click)="clickPrev()">\n <mat-icon>navigate_before</mat-icon>\n </button>\n <button aria-label="Avançar a data"\n (click)="clickNext()">\n <mat-icon>navigate_next</mat-icon>\n </button>\n </div>\n </div>\n\n <div class="table-months"\n *ngIf="internalCalendarView === \'month\'">\n <div *ngFor="let month of monthArrays"\n class="month"\n [class.selected]="isMonthSelected(month)"\n [class.disabled]="isMonthDisabled(month)"\n (click)="monthChanged(month)">\n {{ monthNames[month] }}\n </div>\n </div>\n\n <div class="table-years"\n *ngIf="internalCalendarView === \'year\'">\n <div *ngFor="let year of yearArrays"\n class="year"\n [class.selected]="isYearSelected(year)"\n [class.disabled]="isYearDisabled(year)"\n (click)="yearChanged(year)">\n {{ year }}\n </div>\n </div>\n </div>\n</gipi-overlay>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-input-monthpicker"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:block;min-width:0;max-width:100%;flex:1}.input-monthpicker-container{display:flex;flex-direction:column;gap:1rem;width:100%}.input-monthpicker-container .input-monthpicker-label{color:#131313;font-size:1.4rem;line-height:100%}.input-monthpicker-container .input-monthpicker-label>span{color:#d14014;font-size:inherit;line-height:inherit}.input-monthpicker-container .input-monthpicker-content{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:12px;width:100%;max-height:4rem;border-radius:5px;cursor:text;background-color:#fff;border:1px solid #0000001f;color:#696969;caret-color:#9a9da2;transition:.2s;position:relative}.input-monthpicker-container .input-monthpicker-content:focus-within,.input-monthpicker-container .input-monthpicker-content:has(.input-monthpicker-input:active),.input-monthpicker-container .input-monthpicker-content:has(.input-monthpicker-input:focus){box-shadow:0 0 0 .2rem #f0f0f0}.input-monthpicker-container .input-monthpicker-content:focus-within,.input-monthpicker-container .input-monthpicker-content:hover{border-color:#bfbfbf!important}.input-monthpicker-container .input-monthpicker-content:has(.input-monthpicker-input:disabled){color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;box-shadow:none!important;caret-color:#d1d2d4!important;pointer-events:none!important;cursor:not-allowed!important}.input-monthpicker-container .input-monthpicker-content:has(.input-monthpicker-input:disabled) .input-monthpicker-input,.input-monthpicker-container .input-monthpicker-content:has(.input-monthpicker-input:disabled) .input-monthpicker-suffix .input-monthpicker-button{cursor:not-allowed!important;pointer-events:none!important}.input-monthpicker-container .input-monthpicker-content:has(.input-monthpicker-input:disabled) .input-monthpicker-suffix .input-monthpicker-trigger{border-color:#e0e1e2!important;pointer-events:none!important}.input-monthpicker-container .input-monthpicker-content:has(.input-monthpicker-input:disabled) mat-icon{color:#d1d2d4!important;fill:#d1d2d4!important;cursor:not-allowed!important;pointer-events:none!important}.input-monthpicker-container .input-monthpicker-content .input-monthpicker-input{height:16px;max-width:84%;outline:0;border:none;background-color:transparent;color:inherit;flex:1}.input-monthpicker-container .input-monthpicker-content .input-monthpicker-suffix{display:flex;flex-direction:row;align-items:center;gap:16px}.input-monthpicker-container .input-monthpicker-content .input-monthpicker-suffix .input-monthpicker-button{display:flex;align-items:center;justify-content:center;outline:0;border:none;cursor:pointer;background-color:transparent}.input-monthpicker-container .input-monthpicker-content .input-monthpicker-suffix .input-monthpicker-button:hover:not(:disabled)>mat-icon{transform:scale(1.08)}.input-monthpicker-icon{width:1.6rem;height:1.6rem;font-size:1.6rem;color:#131313;fill:#131313}::ng-deep .calendar{width:100%;display:flex;flex-direction:column}::ng-deep .calendar .calendar-header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid #aeb1b5;margin-bottom:8px}::ng-deep .calendar .calendar-header .calendar-title{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:1.6rem;line-height:1.8rem;font-weight:600;cursor:default;border-radius:8px;padding:8px;white-space:nowrap}::ng-deep .calendar .calendar-header .calendar-title>mat-icon{font-size:2rem;width:20px;height:20px}::ng-deep .calendar .calendar-header .calendar-title.month:hover{cursor:pointer;background-color:#f0f0f0}::ng-deep .calendar .calendar-header .calendar-controls{display:flex;flex-direction:row;align-items:center;gap:8px}::ng-deep .calendar .calendar-header .calendar-controls>button{display:flex;align-items:center;justify-content:center;padding:8px;border-radius:8px;background-color:#e0313e;cursor:pointer;transition:.3s;border:0;outline:0;color:#fff}::ng-deep .calendar .calendar-header .calendar-controls>button:hover{background-color:#cc2d38}::ng-deep .calendar .calendar-header .calendar-controls>button>mat-icon{font-size:1.8rem;width:18px;height:18px}::ng-deep .calendar .table-months{display:-ms-grid;display:grid;-ms-grid-columns:(1fr)[3];grid-template-columns:repeat(3,1fr);gap:4px}::ng-deep .calendar .table-months .month{display:flex;align-items:center;justify-content:center;padding:8px;border-radius:8px;font-size:1.4rem;line-height:1.7rem;color:#555659;background-color:#f0f0f0;transition:background-color .1s;cursor:pointer}::ng-deep .calendar .table-months .month.disabled{color:#bbbdc1;background-color:#e0e1e2}::ng-deep .calendar .table-months .month:not(.disabled).selected,::ng-deep .calendar .table-months .month:not(.disabled):hover{color:#fff;background-color:#e0313e}::ng-deep .calendar .table-months .month:not(.disabled).selected:hover{background-color:#cc2d38}::ng-deep .calendar .table-years{display:-ms-grid;display:grid;-ms-grid-columns:(1fr)[4];grid-template-columns:repeat(4,1fr);gap:4px}::ng-deep .calendar .table-years .year{display:flex;align-items:center;justify-content:center;padding:8px;border-radius:8px;font-size:1.4rem;line-height:1.7rem;color:#555659;background-color:#f0f0f0;transition:background-color .1s;cursor:pointer}::ng-deep .calendar .table-years .year.disabled{color:#bbbdc1;background-color:#e0e1e2}::ng-deep .calendar .table-years .year:not(.disabled).selected,::ng-deep .calendar .table-years .year:not(.disabled):hover{color:#fff;background-color:#e0313e}::ng-deep .calendar .table-years .year:not(.disabled).selected:hover{background-color:#cc2d38}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef,lt])],e)}(),Ln=0,Bn=function(){function e(e,n){this.elementRef=e,this._changeDetectorRef=n,this._name="gipi-input-phone-"+Ln++,this._inputEnter$=new ie.BehaviorSubject(!1),this.maskPhone$=new ie.BehaviorSubject("0*"),this.id=this._name,this.name=this._name,this.label="",this.tooltip="",this.placeholder="",this.disabled=!1,this.loading=!1,this.required=!1,this.foreign=!1,this.appearance="outline",this._value="",this.focus=new t.EventEmitter,this.blur=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this._inputEnter$.getValue()||this._changeDetectorRef.detectChanges(),this.onChange(this._value),this.onTouch()},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.writeValue=function(e){this.value=e,Be.isEmpty(this.value)||this.foreign||this.onInputExit()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.detectChanges()},e.prototype.onFocus=function(e){this.disabled||this.focus.emit(e)},e.prototype.onBlur=function(e){this.disabled||(this.blur.emit(e),this.onTouch())},e.prototype.onInputEnter=function(){var e=this;if(!this.foreign){this._inputEnter$.next(!0);var t=this.value;this.value="",this._changeDetectorRef.detectChanges(),this.maskPhone$.next("0*"),setTimeout((function(n){return e.value=t}))}},e.prototype.onInputExit=function(){if(!this.foreign)if(this._inputEnter$.next(!1),this.value){var e=Qe.mask(this.value);this.maskPhone$.next(e)}else this.maskPhone$.next("0*")},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},we([t.ViewChild("input",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"_elementRef",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"foreign",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"appearance",void 0),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"value",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"focus",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"blur",void 0),e=n=we([t.Component({selector:"gipi-input-phone",template:'<div fxLayout="column">\n <mat-label *ngIf="label">\n {{ label }}\n <span *ngIf="required && label"> * </span>\n <gipi-helpful-tip *ngIf="tooltip && label"\n [tooltip]="tooltip">\n </gipi-helpful-tip>\n </mat-label>\n\n <mat-form-field [appearance]="appearance">\n <input #input\n matInput\n type="text"\n autocomplete="off"\n [attr.id]="id"\n [name]="name"\n [placeholder]="placeholder"\n [required]="required"\n [disabled]="disabled"\n [min]="0"\n [max]="!foreign ? 12 : 15"\n [maxlength]="!foreign ? 12 : 15"\n [mask]="!foreign ? (maskPhone$ | async) : \'0*\'"\n [(ngModel)]="value"\n (focus)="onInputEnter(); onFocus($event)"\n (blur)="onInputExit(); onBlur($event)">\n </mat-form-field>\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:[":host{display:block;min-width:0;max-width:100%;flex:1}mat-label span{color:#d14014!important}"]}),Ce("design:paramtypes",[t.ElementRef,t.ChangeDetectorRef])],e)}(),Yn=0,zn=function(){function e(e,n){this.elementRef=e,this._changeDetectorRef=n,this._name="gipi-input-select-enum-"+Yn++,this._enumList=[],this._itemSizeScrollViewport=5,this._lastOptionSelected=null,this.id=this._name,this.name=this._name,this.placeholder="Selecionar",this._disabled=!1,this._loading=!1,this._multiple=!1,this._showOnFocus=!0,this._hideOnEscape=!0,this.selectionChange=new t.EventEmitter,this.onFocus=new t.EventEmitter,this.onBlur=new t.EventEmitter,this.onOpenedChange=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loading",{get:function(){return this._loading},set:function(e){this._loading=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"multiple",{get:function(){return this._multiple},set:function(e){this._multiple=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showOnFocus",{get:function(){return this._showOnFocus},set:function(e){this._showOnFocus=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hideOnEscape",{get:function(){return this._hideOnEscape},set:function(e){this._hideOnEscape=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.onChange(e),this.onTouch()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"optionSelected",{get:function(){var e=this;if(this.value&&!Ot.isEmpty(this._enumList)){var t=this._enumList.find((function(t){return t.key===e.value}));if(t)return t.value}return""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollViewportHeight",{get:function(){var e=0;return this._enumList&&this._enumList.length&&(e=40*this._enumList.length),e},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this,t=Object.keys(this.enum).map((function(t){return{key:t,value:e.enum[t]}})).sort(this.sort);if(ze.isNull(this.valuesExclud))this._enumList=t;else for(var n=function(e){i.valuesExclud.some((function(n){return n===t[e].key}))||i._enumList.push(t[e])},i=this,o=0;o<t.length;o++)n(o);this._changeDetectorRef.detectChanges()},e.prototype.ngOnDestroy=function(){ze.isNull(this.popoverTrigger)||this.popoverTrigger.destroyPopover()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.value=e},e.prototype.validateOmitByKey=function(e){return!!ze.isNull(this.valuesOmit)||!this.valuesOmit.some((function(t){return t===e}))},e.prototype.showPopover=function(){this.disabled||this.loading||this.popoverTrigger.openPopover()},e.prototype.closePopover=function(){this.disabled||this.loading||this.popoverTrigger.closePopover()},e.prototype.onInputFocus=function(e){this.showOnFocus&&!this.disabled&&this.showPopover(),this.disabled||(this.onFocus.emit(e),e.stopPropagation())},e.prototype.onInputClick=function(e){this.disabled||(this.showPopover(),ze.isNull(this.popoverTrigger)||this.popoverTrigger.popoverOpen||this.formFieldSelectEnum.focus(),e.stopPropagation())},e.prototype.onInputBlur=function(e){this.disabled||(this.onBlur.emit(e),this.onTouch())},e.prototype.onInputKeydown=function(e){this.disabled?e.stopImmediatePropagation():("ESCAPE"===e.code.toUpperCase()&&this.hideOnEscape||"ENTER"===e.code.toUpperCase()||"NUMPADENTER"===e.code.toUpperCase()||"TAB"===e.code.toUpperCase())&&!ze.isNull(this.popoverTrigger)&&this.popoverTrigger.popoverOpen&&(this.closePopover(),e.preventDefault())},e.prototype.onButtonSelectOptionClick=function(e){this.value=e,this.closePopover(),this._changeDetectorRef.detectChanges()},e.prototype.onWindowResize=function(e){!ze.isNull(this.popoverTrigger)&&this.popoverTrigger.popoverOpen&&(this.closePopover(),this._changeDetectorRef.detectChanges(),e.stopPropagation())},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},we([t.ViewChild("formFieldSelectEnum",{read:Pn,static:!1}),Ce("design:type",Pn)],e.prototype,"formFieldSelectEnum",void 0),we([t.ViewChild(gn,{static:!1}),Ce("design:type",gn)],e.prototype,"popoverTrigger",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"disabled",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"loading",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"multiple",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"showOnFocus",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"hideOnEscape",null),we([t.Input(),Ce("design:type",Object)],e.prototype,"enum",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"sort",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"valuesExclud",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"valuesOmit",void 0),we([t.Input("value"),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"value",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectionChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onOpenedChange",void 0),we([t.HostListener("window:resize",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[UIEvent]),Ce("design:returntype",void 0)],e.prototype,"onWindowResize",null),e=n=we([t.Component({selector:"gipi-input-select-enum",exportAs:"gipiInputSelectEnum",template:'<gipi-form-field #formFieldSelectEnum\n [id]="id"\n [name]="name"\n [type]="\'select\'"\n [readonly]="true"\n [disabled]="disabled"\n [required]="required"\n [label]="label"\n [placeholder]="placeholder"\n [showClear]="false"\n [showTrigger]="false"\n [trigger]="0"\n [ariaLabel]="ariaLabel"\n [value]="optionSelected"\n #popoverTrigger="popoverTrigger"\n [popoverTriggerFor]="selectEnumPopover"\n [popoverTriggerOn]="!disabled ? \'click\' : \'none\'"\n [popoverBackdropCloseOnClick]="true"\n (opened)="onOpenedChange.emit(true)"\n (closed)="onOpenedChange.emit(false)"\n (onKeydown)="onInputKeydown($event)"\n (onFocus)="onInputFocus($event)"\n (onBlur)="onInputBlur($event)"\n (onClick)="onInputClick($event)">\n</gipi-form-field>\n\n<gipi-popover #selectEnumPopover="gipiPopover"\n [popoverOverlapTrigger]="false"\n [popoverCloseOnClick]="false"\n [popoverArrowWidth]="0"\n [popoverOffsetY]="3">\n <div class="select-enum-popover-content">\n <cdk-virtual-scroll-viewport *ngIf="(_enumList && _enumList.length) && !loading"\n class="select-virtual-scroll-viewport"\n [style.height.px]="scrollViewportHeight"\n [itemSize]="_itemSizeScrollViewport">\n <div *cdkVirtualFor="let e of _enumList"\n class="select-row"\n [style.height.px]="40"\n [class.disabled]="!validateOmitByKey(e.key) && (disabled || loading)"\n (click)="onButtonSelectOptionClick(e.key)">\n {{ e.value }}\n </div>\n </cdk-virtual-scroll-viewport>\n\n <div *ngIf="loading"\n class="select-loading">\n <div class="dot-pulse"> </div>\n </div>\n\n <div *ngIf="(!_enumList || (_enumList && _enumList.length <= 0)) && !loading"\n class="select-not-found">\n <mat-icon>sentiment_very_dissatisfied</mat-icon>\n Nenhum registro foi encontrado\n </div>\n </div>\n</gipi-popover>\n\n\x3c!-- <gipi-overlay *ngIf="!disabled && !loading"\n contentStyleClass="overlay-select"\n #overlaySelectEnum\n [(visible)]="_overlayVisible"\n [appendTo]="\'body\'"\n (onShow)="onOpenedChange.emit(true)"\n (onHide)="onOpenedChange.emit(false)">\n <cdk-virtual-scroll-viewport *ngIf="(_enumList && _enumList.length) && !loading"\n class="select-virtual-scroll-viewport"\n [style.height.px]="scrollViewportHeight"\n [itemSize]="_itemSizeScrollViewport">\n <div *cdkVirtualFor="let e of _enumList"\n class="select-row"\n [style.height.px]="40"\n [class.disabled]="!validateOmitByKey(e.key) && (disabled || loading)"\n (click)="onButtonSelectOptionClick(e.key)">\n {{ e.value }}\n </div>\n </cdk-virtual-scroll-viewport>\n\n <div *ngIf="loading"\n class="select-loading">\n <div class="dot-pulse"> </div>\n </div>\n\n <div *ngIf="(!_enumList || (_enumList && _enumList.length <= 0)) && !loading"\n class="select-not-found">\n <mat-icon>sentiment_very_dissatisfied</mat-icon>\n Nenhum registro foi encontrado\n </div>\n</gipi-overlay> --\x3e\n',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-input-select-enum"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[':host{display:block;min-width:0;max-width:100%;flex:1}::ng-deep .overlay-select{padding:0!important;overflow:hidden!important}::ng-deep .select-virtual-scroll-viewport{width:100%!important;max-height:240px;overflow:auto}::ng-deep .select-virtual-scroll-viewport .cdk-virtual-scroll-content-wrapper{width:100%!important;position:relative!important}::ng-deep .select-virtual-scroll-viewport::-webkit-scrollbar{width:15px}::ng-deep .select-virtual-scroll-viewport::-webkit-scrollbar-thumb{background-color:#e0e1e2;border-radius:10px;border:4px solid transparent;background-clip:padding-box}::ng-deep .select-row{display:flex;align-items:center;padding:0 16px;cursor:pointer;font-size:1.4rem;line-height:100%;gap:1rem}::ng-deep .select-row:hover{background:#f5f5f6}::ng-deep .select-row:active{background:#e0e1e2}.select-not-found{display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:600;font-size:1.2rem;gap:8px;color:#131313;cursor:default;padding:0 0 16px}.select-not-found>mat-icon{width:2.8rem;height:2.8rem;font-size:2.8rem;line-height:2.8rem;color:#131313}.select-loading{height:4.8rem;width:100%;background-color:#fff;display:flex;align-items:center;justify-content:center}.select-loading .dot-pulse{position:relative;left:-9999px;width:5px;height:5px;border-radius:50%;background-color:#e0313e;color:#e0313e;box-shadow:9999px 0 0 -5px;-webkit-animation:1.5s linear .25s infinite dot-pulse;animation:1.5s linear .25s infinite dot-pulse}.select-loading .dot-pulse::after,.select-loading .dot-pulse::before{content:"";display:inline-block;position:absolute;top:0;width:5px;height:5px;border-radius:50%;background-color:#e0313e;color:#e0313e}.select-loading .dot-pulse::before{box-shadow:9984px 0 0 -5px;-webkit-animation:1.5s linear infinite dot-pulse-before;animation:1.5s linear infinite dot-pulse-before}.select-loading .dot-pulse::after{box-shadow:10014px 0 0 -5px;-webkit-animation:1.5s linear .5s infinite dot-pulse-after;animation:1.5s linear .5s infinite dot-pulse-after}@-webkit-keyframes dot-pulse-before{0%,100%,60%{box-shadow:9984px 0 0 -5px}30%{box-shadow:9984px 0 0 2px}}@keyframes dot-pulse-before{0%,100%,60%{box-shadow:9984px 0 0 -5px}30%{box-shadow:9984px 0 0 2px}}@-webkit-keyframes dot-pulse{0%,100%,60%{box-shadow:9999px 0 0 -5px}30%{box-shadow:9999px 0 0 2px}}@keyframes dot-pulse{0%,100%,60%{box-shadow:9999px 0 0 -5px}30%{box-shadow:9999px 0 0 2px}}@-webkit-keyframes dot-pulse-after{0%,100%,60%{box-shadow:10014px 0 0 -5px}30%{box-shadow:10014px 0 0 2px}}@keyframes dot-pulse-after{0%,100%,60%{box-shadow:10014px 0 0 -5px}30%{box-shadow:10014px 0 0 2px}}.select-enum-popover-content{background-color:#fff;border-radius:4px;box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);padding:8px}']}),Ce("design:paramtypes",[t.ElementRef,t.ChangeDetectorRef])],e)}(),Hn=function(){function e(e,t){void 0===t&&(t=function(){}),this.element=e,this.listener=t}return e.prototype.bindScrollListener=function(){this.scrollableParents=hn.getScrollableParents(this.element);for(var e=0;e<this.scrollableParents.length;e++)this.scrollableParents[e].addEventListener("scroll",this.listener)},e.prototype.unbindScrollListener=function(){if(this.scrollableParents)for(var e=0;e<this.scrollableParents.length;e++)this.scrollableParents[e].removeEventListener("scroll",this.listener)},e.prototype.destroy=function(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null},e}(),Gn=ae.animation([ae.style({transform:"{{transform}}",opacity:0}),ae.animate("{{showTransitionParams}}")]),Un=ae.animation([ae.animate("{{hideTransitionParams}}",ae.style({transform:"{{transform}}",opacity:0}))]),qn=function(){function e(e,n,i,o,r,a){this._document=e,this._config=n,this._zone=i,this.elementRef=o,this.renderer=r,this.overlayService=a,this.modalVisible=!1,this.isOverlayClicked=!1,this.isOverlayContentClicked=!1,this.transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"},this._visible=!1,this.visibleChange=new t.EventEmitter,this.onBeforeShow=new t.EventEmitter,this.onShow=new t.EventEmitter,this.onBeforeHide=new t.EventEmitter,this.onHide=new t.EventEmitter,this.onAnimationStart=new t.EventEmitter,this.onAnimationDone=new t.EventEmitter,this._window=this._document.defaultView}var n;return n=e,Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible=e,this._visible&&!this.modalVisible&&(this.modalVisible=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mode",{get:function(){var e;return this._mode||(null===(e=this.overlayOptions)||void 0===e?void 0:e.mode)},set:function(e){this._mode=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){var e,t;return ze.merge(this._style,this.modal?null===(e=this.overlayResponsiveOptions)||void 0===e?void 0:e.style:null===(t=this.overlayOptions)||void 0===t?void 0:t.style)},set:function(e){this._style=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"styleClass",{get:function(){var e,t;return ze.merge(this._styleClass,this.modal?null===(e=this.overlayResponsiveOptions)||void 0===e?void 0:e.styleClass:null===(t=this.overlayOptions)||void 0===t?void 0:t.styleClass)},set:function(e){this._styleClass=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentStyle",{get:function(){var e,t;return ze.merge(this._contentStyle,this.modal?null===(e=this.overlayResponsiveOptions)||void 0===e?void 0:e.contentStyle:null===(t=this.overlayOptions)||void 0===t?void 0:t.contentStyle)},set:function(e){this._contentStyle=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentStyleClass",{get:function(){var e,t;return ze.merge(this._contentStyleClass,this.modal?null===(e=this.overlayResponsiveOptions)||void 0===e?void 0:e.contentStyleClass:null===(t=this.overlayOptions)||void 0===t?void 0:t.contentStyleClass)},set:function(e){this._contentStyleClass=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var e,t=this._target||(null===(e=this.overlayOptions)||void 0===e?void 0:e.target);return void 0===t?"@prev":t},set:function(e){this._target=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e;return this._appendTo||(null===(e=this.overlayOptions)||void 0===e?void 0:e.appendTo)},set:function(e){this._appendTo=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"autoZIndex",{get:function(){var e,t=this._autoZIndex||(null===(e=this.overlayOptions)||void 0===e?void 0:e.autoZIndex);return void 0===t||t},set:function(e){this._autoZIndex=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseZIndex",{get:function(){var e,t=this._baseZIndex||(null===(e=this.overlayOptions)||void 0===e?void 0:e.baseZIndex);return void 0===t?0:t},set:function(e){this._baseZIndex=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showTransitionOptions",{get:function(){var e,t=this._showTransitionOptions||(null===(e=this.overlayOptions)||void 0===e?void 0:e.showTransitionOptions);return void 0===t?".12s cubic-bezier(0, 0, 0.2, 1)":t},set:function(e){this._showTransitionOptions=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hideTransitionOptions",{get:function(){var e,t=this._hideTransitionOptions||(null===(e=this.overlayOptions)||void 0===e?void 0:e.hideTransitionOptions);return void 0===t?".1s linear":t},set:function(e){this._hideTransitionOptions=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"listener",{get:function(){var e;return this._listener||(null===(e=this.overlayOptions)||void 0===e?void 0:e.listener)},set:function(e){this._listener=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responsive",{get:function(){var e;return this._responsive||(null===(e=this.overlayOptions)||void 0===e?void 0:e.responsive)},set:function(e){this._responsive=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(e){this._options=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"documentClick",{get:function(){return this._documentClick},set:function(e){this._documentClick=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"modal",{get:function(){var e,t;return"modal"===this.mode||this.overlayResponsiveOptions&&(null===(e=this._window)||void 0===e?void 0:e.matchMedia((null===(t=this.overlayResponsiveOptions.media)||void 0===t?void 0:t.replace("@media",""))||"(max-width: "+this.overlayResponsiveOptions.breakpoint+")").matches)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlayMode",{get:function(){return this.mode||(this.modal?"modal":"overlay")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlayOptions",{get:function(){var e;return _e(_e({},null===(e=this._config)||void 0===e?void 0:e.overlayOptions),this.options)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlayResponsiveOptions",{get:function(){var e;return _e(_e({},null===(e=this.overlayOptions)||void 0===e?void 0:e.responsive),this.responsive)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlayResponsiveDirection",{get:function(){var e;return(null===(e=this.overlayResponsiveOptions)||void 0===e?void 0:e.direction)||"center"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlayEl",{get:function(){var e;return null===(e=this.overlayViewChild)||void 0===e?void 0:e.nativeElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentEl",{get:function(){var e;return null===(e=this.contentViewChild)||void 0===e?void 0:e.nativeElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"targetEl",{get:function(){var e;return hn.getTargetElement(this.target,null===(e=this.elementRef)||void 0===e?void 0:e.nativeElement)},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.ngAfterContentInit=function(){var e=this;ze.isNull(this.templates)||this.templates.forEach((function(t){switch(t.getType()){case"content":default:e.contentTemplate=t.template}}))},e.prototype.ngOnDestroy=function(){this.hide(this.overlayEl,!0),this.overlayEl&&(hn.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),st.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()},e.prototype.show=function(e,t){var n;void 0===t&&(t=!1),this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),t&&hn.focus(this.targetEl),this.modal&&hn.addClass(null===(n=this._document)||void 0===n?void 0:n.body,"overflow-hidden")},e.prototype.hide=function(e,t){var n;void 0===t&&(t=!1),this.visible&&(this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),t&&hn.focus(this.targetEl),this.modal&&hn.removeClass(null===(n=this._document)||void 0===n?void 0:n.body,"overflow-hidden"))},e.prototype.alignOverlay=function(){!this.modal&&hn.alignOverlay(this.overlayEl,this.targetEl,this.appendTo)},e.prototype.onVisibleChange=function(e){this._visible=e,this.visibleChange.emit(e)},e.prototype.onOverlayClick=function(e){this.isOverlayClicked=!0},e.prototype.onOverlayContentClick=function(e){this.overlayService.add({originalEvent:e,target:this.targetEl}),this.isOverlayContentClicked=!0},e.prototype.onOverlayContentAnimationStart=function(e){var t;switch(e.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&st.set(this.overlayMode,this.overlayEl,this.baseZIndex+(null===(t=this._config)||void 0===t?void 0:t.zIndex[this.overlayMode])),hn.appendOverlay(this.overlayEl,"body"===this.appendTo?this._document.body:this.appendTo,this.appendTo),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&hn.addClass(this.overlayEl,"component-overlay-leave")}this.handleEvents("onAnimationStart",e)},e.prototype.onOverlayContentAnimationDone=function(e){var t=this.overlayEl||e.element.parentElement;switch(e.toState){case"visible":this.show(t,!0),this.bindListeners();break;case"void":this.hide(t,!0),this.unbindListeners(),hn.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),st.clear(t),this.modalVisible=!1}this.handleEvents("onAnimationDone",e)},e.prototype.handleEvents=function(e,t){var n,i,o;this[e].emit(t),this.options&&this.options[e]&&this.options[e](t),(null===(n=this._config)||void 0===n?void 0:n.overlayOptions)&&(null===(i=this._config)||void 0===i?void 0:i.overlayOptions)[e]&&(null===(o=this._config)||void 0===o?void 0:o.overlayOptions)[e](t)},e.prototype.bindListeners=function(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()},e.prototype.unbindListeners=function(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()},e.prototype.bindScrollListener=function(){var e=this;this.scrollHandler||(this.scrollHandler=new Hn(this.targetEl,(function(t){(!e.listener||e.listener(t,{type:"scroll",mode:e.overlayMode,valid:!0}))&&e.hide(t,!0)}))),this.scrollHandler.bindScrollListener()},e.prototype.unbindScrollListener=function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},e.prototype.bindDocumentClickListener=function(){var e=this;this.documentClickListener||(this.documentClickListener=this.renderer.listen(this._document,"click",(function(t){var n=e.targetEl&&(e.targetEl.isSameNode(t.target)||!e.isOverlayClicked&&e.targetEl.contains(t.target)),i=!!e.documentClick&&e.documentClick(),o=!n&&!e.isOverlayContentClicked&&!i;(e.listener?e.listener(t,{type:"outside",mode:e.overlayMode,valid:3!==t.which&&o}):o)&&e.hide(t),e.isOverlayClicked=e.isOverlayContentClicked=!1})))},e.prototype.unbindDocumentClickListener=function(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)},e.prototype.bindDocumentResizeListener=function(){var e=this;this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this._window,"resize",(function(t){(e.listener?e.listener(t,{type:"resize",mode:e.overlayMode,valid:!hn.isTouchDevice()}):!hn.isTouchDevice())&&e.hide(t,!0)})))},e.prototype.unbindDocumentResizeListener=function(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)},e.prototype.bindDocumentKeyboardListener=function(){var e=this;this.documentKeyboardListener||this._zone.runOutsideAngular((function(){e.documentKeyboardListener=e.renderer.listen(e._window,"keydown",(function(t){e.overlayOptions.hideOnEscape&&27===t.keyCode&&((e.listener?e.listener(t,{type:"keydown",mode:e.overlayMode,valid:!hn.isTouchDevice()}):!hn.isTouchDevice())&&e._zone.run((function(){e.hide(t,!0)})))}))}))},e.prototype.unbindDocumentKeyboardListener=function(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)},e.ctorParameters=function(){return[{type:Document,decorators:[{type:t.Inject,args:[i.DOCUMENT]}]},{type:lt},{type:t.NgZone},{type:t.ElementRef},{type:t.Renderer2},{type:pt}]},we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"visible",null),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"mode",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"style",null),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"styleClass",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"contentStyle",null),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"contentStyleClass",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"target",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"appendTo",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"autoZIndex",null),we([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"baseZIndex",null),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"showTransitionOptions",null),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"hideTransitionOptions",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"listener",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"responsive",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"options",null),we([t.Input(),Ce("design:type",Function),Ce("design:paramtypes",[Function])],e.prototype,"documentClick",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"visibleChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBeforeShow",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onShow",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBeforeHide",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onHide",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onAnimationStart",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onAnimationDone",void 0),we([t.ContentChildren(sn),Ce("design:type",t.QueryList)],e.prototype,"templates",void 0),we([t.ViewChild("overlay",{static:!1}),Ce("design:type",t.ElementRef)],e.prototype,"overlayViewChild",void 0),we([t.ViewChild("content",{static:!1}),Ce("design:type",t.ElementRef)],e.prototype,"contentViewChild",void 0),e=n=we([t.Component({selector:"gipi-overlay",exportAs:"gipiOverlay",template:"<div *ngIf=\"modalVisible\"\n #overlay\n [ngStyle]=\"style\"\n [class]=\"styleClass\"\n role=\"menu\"\n [ngClass]=\"{\n 'overlay': true,\n 'overlay-modal component-overlay component-overlay-enter': modal,\n 'overlay-center': modal && overlayResponsiveDirection === 'center',\n 'overlay-top': modal && overlayResponsiveDirection === 'top',\n 'overlay-top-start': modal && overlayResponsiveDirection === 'top-start',\n 'overlay-top-end': modal && overlayResponsiveDirection === 'top-end',\n 'overlay-bottom': modal && overlayResponsiveDirection === 'bottom',\n 'overlay-bottom-start': modal && overlayResponsiveDirection === 'bottom-start',\n 'overlay-bottom-end': modal && overlayResponsiveDirection === 'bottom-end',\n 'overlay-left': modal && overlayResponsiveDirection === 'left',\n 'overlay-left-start': modal && overlayResponsiveDirection === 'left-start',\n 'overlay-left-end': modal && overlayResponsiveDirection === 'left-end',\n 'overlay-right': modal && overlayResponsiveDirection === 'right',\n 'overlay-right-start': modal && overlayResponsiveDirection === 'right-start',\n 'overlay-right-end': modal && overlayResponsiveDirection === 'right-end'\n }\"\n (click)=\"onOverlayClick($event)\">\n <div *ngIf=\"visible\"\n #content\n [ngStyle]=\"contentStyle\"\n [class]=\"contentStyleClass\"\n [ngClass]=\"'overlay-content'\"\n (click)=\"onOverlayContentClick($event)\"\n [@overlayContentAnimation]=\"{ value: 'visible', params: { showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions, transform: transformOptions[modal ? overlayResponsiveDirection : 'default'] } }\"\n (@overlayContentAnimation.start)=\"onOverlayContentAnimationStart($event)\"\n (@overlayContentAnimation.done)=\"onOverlayContentAnimationDone($event)\">\n <ng-content> </ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate; context: { $implicit: { mode: overlayMode } }\"></ng-container>\n </div>\n</div>\n",changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,animations:[ae.trigger("overlayContentAnimation",[ae.transition(":enter",[ae.useAnimation(Gn)]),ae.transition(":leave",[ae.useAnimation(Un)])])],providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-overlay"},styles:[".overlay{position:absolute;top:0;left:0;margin-top:2px}.overlay-modal{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%}.component-overlay{background-color:rgba(0,0,0,.4);transition-duration:.15s}.overlay-content{transform-origin:inherit;padding:12px;background-color:#fff;border-radius:4px;box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.overlay-modal>.overlay-content{z-index:1;width:90%}.overlay-top{align-items:flex-start}.overlay-top-start{align-items:flex-start;justify-content:flex-start}.overlay-top-end{align-items:flex-start;justify-content:flex-end}.overlay-bottom{align-items:flex-end}.overlay-bottom-start{align-items:flex-end;justify-content:flex-start}.overlay-bottom-end{align-items:flex-end;justify-content:flex-end}.overlay-left{justify-content:flex-start}.overlay-left-start{justify-content:flex-start;align-items:flex-start}.overlay-left-end{justify-content:flex-start;align-items:flex-end}.overlay-right{justify-content:flex-end}.overlay-right-start{justify-content:flex-end;align-items:flex-start}.overlay-right-end{justify-content:flex-end;align-items:flex-end}.overflow-hidden{overflow:hidden}.component-overlay-enter{-webkit-animation:150ms forwards component-overlay-enter-animation;animation:150ms forwards component-overlay-enter-animation}.component-overlay-leave{-webkit-animation:150ms forwards component-overlay-leave-animation;animation:150ms forwards component-overlay-leave-animation}@-webkit-keyframes component-overlay-enter-animation{from{background-color:transparent}to{background-color:#00000066}}@keyframes component-overlay-enter-animation{from{background-color:transparent}to{background-color:#00000066}}@-webkit-keyframes component-overlay-leave-animation{from{background-color:#00000066}to{background-color:transparent}}@keyframes component-overlay-leave-animation{from{background-color:#00000066}to{background-color:transparent}}"]}),xe(0,t.Inject(i.DOCUMENT)),Ce("design:paramtypes",[Document,lt,t.NgZone,t.ElementRef,t.Renderer2,pt])],e)}(),Wn=0,$n=function(){function e(e){var n=this;this._changeDetectorRef=e,this._name="gipi-input-select-"+Wn++,this._onDestroy=new ie.Subject,this._itemSizeScrollViewport=5,this._overlayVisible=!1,this._formControlSearch=new r.FormControl({value:"",disabled:!1}),this.inputFieldValue="",this.inputFieldValueSelected=0,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.isLoading=0,this.id=this._name,this.name=this._name,this.placeholder="Selecionar",this.labelSelectAll="Selecionar todos",this.multiple=!1,this.showClear=!1,this.showOnFocus=!0,this.hideOnEscape=!0,this.showSelectAll=!1,this.showFooter=!1,this.infiniteScroll=!0,this.showSearch=!1,this.required=!1,this.pageSize=5,this.enableClearOnEscapePressed=!0,this._disabled=!1,this._loading=!1,this.onFocus=new t.EventEmitter,this.onBlur=new t.EventEmitter,this.onClose=new t.EventEmitter,this.onSelectChange=new t.EventEmitter,this.onOpenedChange=new t.EventEmitter,this.onSearchChange=new t.EventEmitter,this.onAddChange=new t.EventEmitter,this.trackByOption=function(e,t){return t&&n.trackBy&&t[n.trackBy]?t[n.trackBy]:t},this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=e,this._disableInputSearch()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loading",{get:function(){return this._loading},set:function(e){this._loading=e,this._disableInputSearch()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paramNextBatch",{get:function(){return this._paramNextBatch},set:function(e){this._paramNextBatch=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){if(this._value=e,this.multiple)if(Array.isArray(e)&&e&&e.length){var t=e[0];this.inputFieldValue=this.property?t[this.property]:this.getPropertyValue(t),this.inputFieldValueSelected=e.length}else this.inputFieldValue="",this.inputFieldValueSelected=0;else!Array.isArray(e)&&e?(this.inputFieldValue=this.property?e[this.property]:this.getPropertyValue(e),this.inputFieldValueSelected=0):(this.inputFieldValue="",this.inputFieldValueSelected=0);this.onChange(e),this.onSelectChange.emit(e),this.onTouch(),this._changeDetectorRef.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(e){this._options=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"optionHeight",{get:function(){return 44},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollViewportHeight",{get:function(){var e=0;return this.options&&this.options.length&&(e=44*this.options.length-(this.pageSize===this.options.length?44:0)),ze.isNull(this.overlaySelect)||this.overlaySelect.alignOverlay(),e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"valueSearch",{get:function(){return this._formControlSearch.value},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this._formControlSearch.valueChanges.pipe(oe.map((function(e){return e})),oe.debounceTime(1e3),oe.distinctUntilChanged(),oe.takeUntil(this._onDestroy)).subscribe((function(t){return e._searchChange(t)})),this.indeterminateAllCheckbox()},e.prototype.ngOnDestroy=function(){this._onDestroy.next(),this._onDestroy.complete()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.value=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},e.prototype.compareFn=function(e,t){if(!this.property&&!this.propertyFn)throw new Error("O parâmetro property ou propertyFn deve conter um valor");return!this.property&&this.propertyFn&&e&&t?this.getPropertyValue(e)===this.getPropertyValue(t):e&&t&&e[this.property]===t[this.property]},e.prototype.getPropertyValue=function(e){if(!ze.isNull(e)){if(!ze.isNull(this.propertyFn))return this.propertyFn(e);if(this.property)return this._getValue(e,this.property)}return""},e.prototype._getValue=function(e,t){for(var n=t.split("."),i=e,o=0;o<n.length;o++)if((i=Reflect.get(i,n[o]))&&o===n.length-1)return i},e.prototype.onInputFocus=function(e){this.showOnFocus&&!this.disabled&&(this.showOverlay(),this.onFocus.emit(e))},e.prototype.onInputClick=function(){this.disabled||(this.showOverlay(),this._overlayVisible||this.formFieldSelect.focus())},e.prototype.onInputBlur=function(e){this.disabled||(this.onBlur.emit(e),this.onTouch())},e.prototype.onInputKeydown=function(e){this.disabled?e.stopImmediatePropagation():("ESCAPE"===e.code.toUpperCase()&&this.hideOnEscape||"ENTER"===e.code.toUpperCase()||"NUMPADENTER"===e.code.toUpperCase()||"TAB"===e.code.toUpperCase())&&this._overlayVisible&&(this.hideOverlay(),e.preventDefault())},e.prototype.onClearOptionsClick=function(e){this.disabled?e.stopImmediatePropagation():(this.multiple&&Array.isArray(this.value)?this.value=[]:this.value=null,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this._changeDetectorRef.detectChanges(),this.onSelectChange.emit(this.value),this._searchSelectInputFocus(),e.stopImmediatePropagation())},e.prototype.showOverlay=function(){this._overlayVisible||(this._overlayVisible=!0,this.indeterminateAllCheckbox(),this.onOpenedChange.emit(this._overlayVisible),this._changeDetectorRef.detectChanges(),ze.isNull(this._cache)&&this.onScroll())},e.prototype.hideOverlay=function(){this._overlayVisible=!1,this.onOpenedChange.emit(this._overlayVisible),this._cache={},this._changeDetectorRef.markForCheck()},e.prototype.toggleOverlay=function(){this.disabled||this.loading||(this._overlayVisible?this.hideOverlay():this.showOverlay())},e.prototype.onScroll=function(){return Ie(this,void 0,void 0,(function(){var e,t=this;return Se(this,(function(n){switch(n.label){case 0:return this.infiniteScroll?ze.isNull(this.nextBatchFn)?(console.error('A função "nextBatchFn" é obrigatória e não foi informada'),[2]):ze.isNull(this._pageModel)||this._pageModel.totalPages!==this._pageModel.number?(e=ze.isNull(this._pageModel)?0:this._pageModel.number+1,ze.isNull(this._cache)&&(this._cache={}),this._cache[e]?[2]:(this._cache[e]=!0,this.isLoading++,[4,this.nextBatchFn(this._formControlSearch.value,e,this.paramNextBatch).then((function(e){t._pageModel=e,t._totalOptions=e.totalElements,t.options||(t.options=[]);var n=t._pageModel.number*t.pageSize,i=Ee(t.options);i.splice.apply(i,Ee([n,t.pageSize],e.content)),t.options=i,t.toggleAllCheckboxChecked?t.onChangeToggleAllCheckbox():t.indeterminateAllCheckbox(),t.isLoading--}),(function(e){t.isLoading=0}))])):[2]:[2];case 1:return n.sent(),!ze.isNull(this.cdkVirtualScrollViewPort)&&this.options&&this.options.length&&(this.cdkVirtualScrollViewPort.scrollToIndex(this.options.length,"smooth"),this.cdkVirtualScrollViewPort.checkViewportSize()),this._changeDetectorRef.detectChanges(),[2]}}))}))},e.prototype.onButtonSelectOptionClick=function(e){if(this.multiple){if(this.value||(this.value=[]),Array.isArray(this.value)){var t=this.value.findIndex((function(t){return ze.equals(t,e)}));if(t>=0){var n=this.value;n.splice(t,1),this.value=Ee(n)}else this.value=Ee(this.value,[e])}}else Array.isArray(this.value)||(this.value=e);this.indeterminateAllCheckbox(),this.onSelectChange.emit(this.value),this._changeDetectorRef.detectChanges()},e.prototype.indeterminateAllCheckbox=function(){this.multiple&&this.showSelectAll&&((!Array.isArray(this.value)||!this.value||this.value&&!this.value.length||!this.options||this.options&&!this.options.length)&&(this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1),Array.isArray(this.value)&&(this.infiniteScroll?(this.toggleAllCheckboxChecked=this.value&&this._pageModel&&this.value.length>0&&this._totalOptions>0&&this.value.length===this._totalOptions,this.toggleAllCheckboxIndeterminate=this.value.length>0&&this.value.length<this._totalOptions):(this.toggleAllCheckboxChecked=this.value&&this.value.length>0&&this.options&&this.options.length>0&&this.value.length===this.options.length,this.toggleAllCheckboxIndeterminate=this.value.length>0&&this.options.length>0&&this.value.length<this.options.length)),this._changeDetectorRef.detectChanges())},e.prototype.optionCheckboxIsChecked=function(e){return!!this.multiple&&(Array.isArray(this.value)&&this.value&&this.value.length?(this._changeDetectorRef.markForCheck(),this.value.findIndex((function(t){return ze.equals(t,e)}))>-1):void 0)},e.prototype.onClickSelectAllByOption=function(){this.disabled||this.loading||(this.toggleAllCheckboxChecked=!this.toggleAllCheckboxChecked,this.onChangeToggleAllCheckbox())},e.prototype.onChangeToggleAllCheckbox=function(){this.multiple&&(this.toggleAllCheckboxChecked?this.value=Ee(this.options):this.value=[],this.indeterminateAllCheckbox())},e.prototype.onClickAddOptions=function(){if(this.multiple&&!this.showSelectAll){var e={values:this.value,selectedAll:!1};this.onAddChange.emit(e)}},e.prototype._disableInputSearch=function(){this.disabled||this.loading?this._formControlSearch.disable():this._formControlSearch.enable()},e.prototype._searchChange=function(e){this._overlayVisible&&(this.loading=!0,this.onSearchChange.emit(e),this._pageModel=null,this.options=[],this._cache={},this.onScroll(),this.loading=!1,this._changeDetectorRef.detectChanges())},e.prototype._searchSelectInputFocus=function(){!ze.isNull(this.formfieldSelectSearchInput)&&this._overlayVisible&&this.formfieldSelectSearchInput.focus()},e.prototype._searchSelectInputReset=function(e){this._formControlSearch.setValue(""),e&&this._searchSelectInputFocus()},e.prototype.onInputSearchKeydown=function(e){var t=this;(e.key&&1===e.key.length||e.keyCode>=se.A&&e.keyCode<=se.Z||e.keyCode>=se.ZERO&&e.keyCode<=se.NINE||e.keyCode===se.SPACE)&&e.stopPropagation(),this.multiple&&e.key&&e.keyCode===se.ENTER&&setTimeout((function(){return t._searchSelectInputFocus()})),this.enableClearOnEscapePressed&&e.keyCode===se.ESCAPE&&this._formControlSearch.value&&(this._searchSelectInputReset(!0),e.stopPropagation())},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},we([t.ViewChild("formfieldSelectSearchInput",{read:Pn,static:!0}),Ce("design:type",Pn)],e.prototype,"formfieldSelectSearchInput",void 0),we([t.ViewChild("formFieldSelect",{read:Pn,static:!1}),Ce("design:type",Pn)],e.prototype,"formFieldSelect",void 0),we([t.ViewChild("overlaySelect",{read:qn,static:!1}),Ce("design:type",qn)],e.prototype,"overlaySelect",void 0),we([t.ViewChild(v.CdkVirtualScrollViewport,{static:!1}),Ce("design:type",v.CdkVirtualScrollViewport)],e.prototype,"cdkVirtualScrollViewPort",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"labelSelectAll",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"multiple",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showClear",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showOnFocus",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideOnEscape",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showSelectAll",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showFooter",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"infiniteScroll",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showSearch",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"property",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"trackBy",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"appendTo",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"propertyFn",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"nextBatchFn",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"pageSize",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"enableClearOnEscapePressed",void 0),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disabled",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"loading",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"paramNextBatch",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"value",null),we([t.Input(),Ce("design:type",Array),Ce("design:paramtypes",[Array])],e.prototype,"options",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClose",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onSelectChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onOpenedChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onSearchChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onAddChange",void 0),e=n=we([t.Component({selector:"gipi-input-select",exportAs:"gipiInputSelect",template:'<gipi-form-field #formFieldSelect\n [id]="id"\n [name]="name"\n [type]="\'select\'"\n [readonly]="true"\n [disabled]="disabled"\n [required]="required"\n [label]="label"\n [placeholder]="placeholder"\n [showClear]="inputFieldValue && showClear && !disabled && !loading"\n [showTrigger]="inputFieldValueSelected && (inputFieldValueSelected > 1)"\n [trigger]="inputFieldValueSelected"\n [ariaLabel]="ariaLabel"\n [(ngModel)]="inputFieldValue"\n (onKeydown)="onInputKeydown($event)"\n (onClear)="onClearOptionsClick($event)"\n (onFocus)="onInputFocus($event)"\n (onBlur)="onInputBlur($event)"\n (onClick)="onInputClick()">\n</gipi-form-field>\n\n<gipi-overlay *ngIf="!disabled && !loading"\n contentStyleClass="overlay-select"\n #overlaySelect\n [(visible)]="_overlayVisible"\n [autoZIndex]="true"\n [appendTo]="appendTo ? appendTo : \'body\'"\n (onShow)="onOpenedChange.emit(true)"\n (onHide)="onOpenedChange.emit(false)">\n <div class="select-search"\n *ngIf="showSearch"\n [class.disabled]="showSelectAll && (disabled || loading || (isLoading > 0))">\n <mat-checkbox *ngIf="multiple && showSelectAll"\n class="select-search-toggle-all-checkbox"\n [disabled]="disabled || loading || !options || (options && !options.length)"\n [(ngModel)]="toggleAllCheckboxChecked"\n [indeterminate]="toggleAllCheckboxIndeterminate"\n (change)="onChangeToggleAllCheckbox()">\n </mat-checkbox>\n\n <gipi-form-field #formfieldSelectSearchInput\n placeholder="Pesquisar"\n type="search"\n [style.width]="\'100%\'"\n [formControl]="_formControlSearch"\n [showClear]="valueSearch && !disabled && !loading && isLoading <= 0"\n (onKeydown)="onInputSearchKeydown($event)">\n </gipi-form-field>\n </div>\n\n <div class="select-row select-option-all"\n [style.height.px]="40"\n [class.disabled]="disabled || loading"\n *ngIf="(!showSearch && multiple && showSelectAll)"\n (click)="onClickSelectAllByOption()">\n <mat-pseudo-checkbox *ngIf="multiple"\n class="select-mat-option-pseudo-checkbox"\n [state]="toggleAllCheckboxIndeterminate ? \'indeterminate\' : toggleAllCheckboxChecked ? \'checked\' : \'\'">\n </mat-pseudo-checkbox>\n\n <span> {{ labelSelectAll ? labelSelectAll : \'Selecionar todos\' }} </span>\n </div>\n\n <cdk-virtual-scroll-viewport *ngIf="(options && options.length) && (!loading || isLoading <= 0)"\n class="select-virtual-scroll-viewport"\n [style.height.px]="scrollViewportHeight"\n [itemSize]="_itemSizeScrollViewport"\n GIPIInfiniteScroll\n [infiniteScrollDistance]="\'30%\'"\n [infiniteScrollThrottle]="50"\n [infiniteScrollcomplete]="options && _totalOptions && options.length === _totalOptions"\n (scrolled)="onScroll()">\n <div *cdkVirtualFor="let option of options; trackBy: trackByOption"\n class="select-row"\n [style.height.px]="optionHeight"\n [class.disabled]="disabled || loading"\n (click)="onButtonSelectOptionClick(option)">\n <mat-pseudo-checkbox *ngIf="multiple && option"\n class="select-mat-option-pseudo-checkbox"\n [state]="optionCheckboxIsChecked(option) ? \'checked\' : \'\'">\n </mat-pseudo-checkbox>\n\n <span> {{ option ? getPropertyValue(option) : \'\' }} </span>\n </div>\n </cdk-virtual-scroll-viewport>\n\n <div *ngIf="loading || isLoading > 0"\n class="select-loading">\n <div class="dot-pulse"> </div>\n </div>\n\n <div *ngIf="(!options || (options && options.length <= 0)) && !loading && (isLoading <= 0)"\n class="select-not-found">\n <mat-icon>sentiment_very_dissatisfied</mat-icon>\n Nenhum registro foi encontrado\n </div>\n\n <div class="select-footer"\n *ngIf="multiple && !showSelectAll && showFooter">\n <gipi-button label="Adicionar"\n gipi-primary\n id="btnAddOptions"\n [style.width]="\'100%\'"\n [disabled]="disabled || loading || (!value || (value && !value.length))"\n (click)="onClickAddOptions()">\n </gipi-button>\n </div>\n</gipi-overlay>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-input-select"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[':host{display:block;min-width:0;max-width:100%;flex:1}::ng-deep .overlay-select{padding:0!important;overflow:hidden!important}::ng-deep .select-virtual-scroll-viewport{width:100%!important;max-height:240px;overflow:auto}::ng-deep .select-virtual-scroll-viewport .cdk-virtual-scroll-content-wrapper{width:100%!important;position:relative!important}::ng-deep .select-virtual-scroll-viewport::-webkit-scrollbar{width:15px}::ng-deep .select-virtual-scroll-viewport::-webkit-scrollbar-thumb{background-color:#e0e1e2;border-radius:10px;border:4px solid transparent;background-clip:padding-box}::ng-deep .select-row{display:flex;align-items:center;padding:0 16px;cursor:pointer;font-size:1.3rem;line-height:100%;gap:1rem}::ng-deep .select-row:hover{background:#f5f5f6}::ng-deep .select-row:active{background:#e0e1e2}::ng-deep .select-row.disabled{background-color:#d1d2d4!important;color:#9a9da2!important;cursor:not-allowed!important;pointer-events:none!important}::ng-deep .select-row>span{display:-webkit-box;line-clamp:2;box-orient:vertical;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden}.select-search{display:flex;align-items:center;font-size:1.4rem;line-height:100%;gap:1rem;padding:8px 12px}.select-option-all{border-bottom:1px solid #0000001f}.select-not-found{display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:600;font-size:1.2rem;gap:8px;color:#131313;cursor:default;padding:1.6rem 0}.select-not-found>mat-icon{width:2.8rem;height:2.8rem;font-size:2.8rem;line-height:2.8rem;color:#131313}.select-loading{height:4rem;width:100%;background-color:#fff;display:flex;align-items:center;justify-content:center}.select-loading .dot-pulse{position:relative;left:-9999px;width:5px;height:5px;border-radius:50%;background-color:#e0313e;color:#e0313e;box-shadow:9999px 0 0 -5px;-webkit-animation:1.5s linear .25s infinite dot-pulse;animation:1.5s linear .25s infinite dot-pulse}.select-loading .dot-pulse::after,.select-loading .dot-pulse::before{content:"";display:inline-block;position:absolute;top:0;width:5px;height:5px;border-radius:50%;background-color:#e0313e;color:#e0313e}.select-loading .dot-pulse::before{box-shadow:9984px 0 0 -5px;-webkit-animation:1.5s linear infinite dot-pulse-before;animation:1.5s linear infinite dot-pulse-before}.select-loading .dot-pulse::after{box-shadow:10014px 0 0 -5px;-webkit-animation:1.5s linear .5s infinite dot-pulse-after;animation:1.5s linear .5s infinite dot-pulse-after}@-webkit-keyframes dot-pulse-before{0%,100%,60%{box-shadow:9984px 0 0 -5px}30%{box-shadow:9984px 0 0 2px}}@keyframes dot-pulse-before{0%,100%,60%{box-shadow:9984px 0 0 -5px}30%{box-shadow:9984px 0 0 2px}}@-webkit-keyframes dot-pulse{0%,100%,60%{box-shadow:9999px 0 0 -5px}30%{box-shadow:9999px 0 0 2px}}@keyframes dot-pulse{0%,100%,60%{box-shadow:9999px 0 0 -5px}30%{box-shadow:9999px 0 0 2px}}@-webkit-keyframes dot-pulse-after{0%,100%,60%{box-shadow:10014px 0 0 -5px}30%{box-shadow:10014px 0 0 2px}}@keyframes dot-pulse-after{0%,100%,60%{box-shadow:10014px 0 0 -5px}30%{box-shadow:10014px 0 0 2px}}.select-footer{display:flex;align-items:center;gap:1rem;padding:8px 12px;border-top:1px solid #bfbfbf}::ng-deep .select-mat-option-pseudo-checkbox{margin:0!important}']}),Ce("design:paramtypes",[t.ChangeDetectorRef])],e)}(),Kn=0,Xn=function(){function e(e,n,i){var o=this;this._changeDetectorRef=e,this._elementRef=n,this._renderer=i,this._name="gipi-input-select-listbox-"+Kn++,this._isOverlayChildrenClicked=!1,this._overlayVisible=!1,this._selectEntityOpened=!1,this._radioValue="ALL",this.id=this._name,this.name=this._name,this.placeholder="Selecionar",this.placeholderSelected="Opções selecionadas",this.placeholderSearch="Selecionar",this.multiple=!1,this.disabled=!1,this.loading=!1,this.hideFilterType=!1,this.showOnFocus=!0,this.hideOnEscape=!0,this.showSearch=!0,this.onFocus=new t.EventEmitter,this.onBlur=new t.EventEmitter,this.onClose=new t.EventEmitter,this.onOpenedChange=new t.EventEmitter,this.onSelectChange=new t.EventEmitter,this.onApply=new t.EventEmitter,this.trackByOption=function(e,t){return o.trackBy?t[o.trackBy]:t},this.onChange=function(){},this.onTouch=function(){},this.documentClick=function(){return o._selectEntityOpened}}var n;return n=e,Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.onChange(e),this.onTouch(),ze.isNull(this.overlaySelectListbox)||this.overlaySelectListbox.alignOverlay()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(e){this._options=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"valueInput",{get:function(){return"ALL"===this._radioValue?"Todas as opções selecionadas":Ot.isEmpty(this.value)?Be.isEmpty(this.placeholder)?"":this.placeholder:this.placeholderSelected},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.value=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},e.prototype.getPropertyValue=function(e){if(!ze.isNull(e)){if(!ze.isNull(this.propertyFn))return this.propertyFn(e);if(this.property)return this._getValue(e,this.property)}return""},e.prototype._getValue=function(e,t){for(var n=t.split("."),i=e,o=0;o<n.length;o++)if((i=Reflect.get(i,n[o]))&&o===n.length-1)return i},e.prototype.onInputFocus=function(e){this.showOnFocus&&!this.disabled&&this.showOverlay(),this.onFocus.emit(e)},e.prototype.onInputClick=function(){this.disabled||(this.showOverlay(),this._overlayVisible||this.formFieldSelectListbox.focus())},e.prototype.onInputBlur=function(e){this.disabled||(this.onBlur.emit(e),this.onTouch())},e.prototype.onInputKeydown=function(e){this.disabled?e.stopImmediatePropagation():("ESCAPE"===e.code.toUpperCase()&&this.hideOnEscape||"ENTER"===e.code.toUpperCase()||"NUMPADENTER"===e.code.toUpperCase()||"TAB"===e.code.toUpperCase())&&this._overlayVisible&&this.hideOverlay()},e.prototype.showOverlay=function(){this._overlayVisible||(this._overlayVisible=!0,this.onOpenedChange.emit(this._overlayVisible),this._changeDetectorRef.detectChanges())},e.prototype.hideOverlay=function(){this._overlayVisible=!1,this._changeDetectorRef.markForCheck()},e.prototype.toggleOverlay=function(){this.disabled||this.loading||(this._overlayVisible?this.hideOverlay():this.showOverlay())},e.prototype.onSelectEntityOpened=function(e){this._selectEntityOpened=e,ze.isNull(this.overlaySelectListbox)||this.overlaySelectListbox.alignOverlay(),this._changeDetectorRef.markForCheck()},e.prototype.onChangeInputSelect=function(e,t){Ot.isEmpty(e)||"ALL"!==this._radioValue||this.onClickRadioButton("BY_SELECTION",t)},e.prototype.resizeOverlay=function(e){this._overlayVisible&&(this.hideOverlay(),this._changeDetectorRef.detectChanges())},e.prototype.onRemoveOptionsSelected=function(e,t){var n=Ee(this.value),i=n.findIndex((function(t){return t===e}));i>=0&&(n.splice(i,1),this.value=Ee(n),Ot.isEmpty(n)?(t.toggleAllCheckboxChecked=!1,t.toggleAllCheckboxIndeterminate=!1):t.indeterminateAllCheckbox(),this._changeDetectorRef.detectChanges())},e.prototype.onChangeRadioGroup=function(e,t){e.value===this._radioValue||"BY_SELECTION"===this._radioValue?(t.reset(),this._radioValue="BY_SELECTION"):"ALL"!==e.value||Ot.isEmpty(this.value)?this._radioValue=e.value:(t.reset(),this._radioValue="BY_SELECTION"),ze.isNull(this.overlaySelectListbox)||this.overlaySelectListbox.alignOverlay(),this._changeDetectorRef.markForCheck()},e.prototype.onClickRadioButton=function(e,t){e===this._radioValue?(t.reset(),this._radioValue="BY_SELECTION"):"ALL"!==e||Ot.isEmpty(this.value)?this._radioValue=e:(t.reset(),this._radioValue="BY_SELECTION"),ze.isNull(this.overlaySelectListbox)||this.overlaySelectListbox.alignOverlay(),this._changeDetectorRef.markForCheck()},e.prototype.onClickClear=function(e){this.value=[],ze.isNull(this.inputSelect)||(e=this.inputSelect),ze.isNull(e)||(e.toggleAllCheckboxChecked=!1,e.toggleAllCheckboxIndeterminate=!1),this._radioValue=this.hideFilterType?"BY_SELECTION":"ALL",ze.isNull(this.overlaySelectListbox)||this.overlaySelectListbox.alignOverlay(),this._changeDetectorRef.markForCheck()},e.prototype.onClickApply=function(){var e={filterType:this._radioValue,values:this.value};this.onApply.emit(e),this.hideOverlay()},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef},{type:t.Renderer2}]},we([t.ViewChild("formFieldSelectListbox",{read:Pn,static:!1}),Ce("design:type",Pn)],e.prototype,"formFieldSelectListbox",void 0),we([t.ViewChild("overlaySelectListbox",{read:qn,static:!1}),Ce("design:type",qn)],e.prototype,"overlaySelectListbox",void 0),we([t.ViewChild("inputSelect",{read:$n,static:!1}),Ce("design:type",$n)],e.prototype,"inputSelect",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholderSelected",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholderSearch",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"multiple",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"readonly",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideFilterType",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showOnFocus",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideOnEscape",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showSearch",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"property",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"trackBy",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"propertyFn",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"nextBatchFn",void 0),we([t.Input(),Ce("design:type",Array),Ce("design:paramtypes",[Array])],e.prototype,"value",null),we([t.Input(),Ce("design:type",Array),Ce("design:paramtypes",[Array])],e.prototype,"options",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClose",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onOpenedChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onSelectChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onApply",void 0),we([t.HostListener("window:resize",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[UIEvent]),Ce("design:returntype",void 0)],e.prototype,"resizeOverlay",null),e=n=we([t.Component({selector:"gipi-input-select-listbox",exportAs:"gipiInputSelectListbox",template:'<gipi-form-field #formFieldSelectListbox\n [id]="id"\n [name]="name"\n [type]="\'select\'"\n [readonly]="true"\n [disabled]="disabled"\n [required]="required"\n [label]="label"\n [placeholder]="placeholder"\n [showClear]="false"\n [showTrigger]="value && (value.length > 1)"\n [trigger]="value ? value.length : 0"\n [ariaLabel]="ariaLabel"\n [value]="valueInput"\n (onKeydown)="onInputKeydown($event)"\n (onFocus)="onInputFocus($event)"\n (onBlur)="onInputBlur($event)"\n (onClick)="onInputClick()"\n (onClear)="onClickClear($event)">\n</gipi-form-field>\n\n<gipi-overlay *ngIf="!disabled && !loading"\n contentStyleClass="overlay-select-listbox"\n appendTo="body"\n [(visible)]="_overlayVisible"\n [documentClick]="documentClick"\n (onShow)="onOpenedChange.emit(true)"\n (onHide)="onOpenedChange.emit(false)">\n <div class="overlay-select-listbox-content">\n <div *ngIf="_selectEntityOpened"\n class="overlay-select-listbox-backdrop">\n </div>\n\n <gipi-input-select style="z-index: 2;"\n #inputSelect\n [placeholder]="placeholderSearch"\n [required]="true"\n [showSearch]="showSearch"\n [property]="property"\n [propertyFn]="propertyFn"\n [trackBy]="trackBy"\n [options]="options"\n [multiple]="true"\n [disabled]="disabled"\n [nextBatchFn]="nextBatchFn"\n [(ngModel)]="value"\n (onOpenedChange)="onSelectEntityOpened($event)"\n (onSelectChange)="onChangeInputSelect($event, matRadioGroup)">\n </gipi-input-select>\n\n <div class="listbox-selected"\n *ngIf="(_radioValue !== \'ALL\') || hideFilterType">\n <span> Opções selecionadas </span>\n\n <div class="list">\n <div class="option"\n *ngFor="let option of value; trackBy: trackByOption">\n {{\n (getPropertyValue(option).length > 50)\n ? (getPropertyValue(option) | slice:0:47) + \'...\'\n : getPropertyValue(option)\n }}\n\n <button aria-label="Remover"\n matTooltip="Remover"\n (click)="onRemoveOptionsSelected(option, inputSelect)">\n <svg width="14"\n height="14"\n viewBox="0 0 14 14"\n fill="none"\n xmlns="http://www.w3.org/2000/svg">\n <path d="M11.8125 2.625H9.1875V1.96875C9.1875 1.67867 9.07227 1.40047 8.86715 1.19535C8.66203 0.990234 8.38383 0.875 8.09375 0.875H5.90625C5.61617 0.875 5.33797 0.990234 5.13285 1.19535C4.92773 1.40047 4.8125 1.67867 4.8125 1.96875V2.625H2.1875C2.07147 2.625 1.96019 2.67109 1.87814 2.75314C1.79609 2.83519 1.75 2.94647 1.75 3.0625C1.75 3.17853 1.79609 3.28981 1.87814 3.37186C1.96019 3.45391 2.07147 3.5 2.1875 3.5H2.65234L3.17188 11.8377C3.2107 12.5718 3.77344 13.125 4.48438 13.125H9.51562C10.2301 13.125 10.7816 12.5841 10.8281 11.8398L11.3477 3.5H11.8125C11.9285 3.5 12.0398 3.45391 12.1219 3.37186C12.2039 3.28981 12.25 3.17853 12.25 3.0625C12.25 2.94647 12.2039 2.83519 12.1219 2.75314C12.0398 2.67109 11.9285 2.625 11.8125 2.625ZM5.26559 11.375H5.25C5.13662 11.3751 5.02764 11.3311 4.94602 11.2524C4.86441 11.1737 4.81654 11.0664 4.8125 10.9531L4.59375 4.82809C4.58962 4.71205 4.63175 4.59913 4.71087 4.51416C4.78999 4.42919 4.89963 4.37913 5.01566 4.375C5.1317 4.37087 5.24462 4.413 5.32959 4.49212C5.41456 4.57124 5.46462 4.68088 5.46875 4.79691L5.6875 10.9219C5.68958 10.9794 5.68032 11.0367 5.66024 11.0906C5.64016 11.1444 5.60965 11.1938 5.57046 11.2359C5.53128 11.278 5.48418 11.3119 5.43187 11.3358C5.37956 11.3597 5.32305 11.373 5.26559 11.375ZM7.4375 10.9375C7.4375 11.0535 7.39141 11.1648 7.30936 11.2469C7.22731 11.3289 7.11603 11.375 7 11.375C6.88397 11.375 6.77269 11.3289 6.69064 11.2469C6.60859 11.1648 6.5625 11.0535 6.5625 10.9375V4.8125C6.5625 4.69647 6.60859 4.58519 6.69064 4.50314C6.77269 4.42109 6.88397 4.375 7 4.375C7.11603 4.375 7.22731 4.42109 7.30936 4.50314C7.39141 4.58519 7.4375 4.69647 7.4375 4.8125V10.9375ZM8.3125 2.625H5.6875V1.96875C5.68717 1.93993 5.6926 1.91134 5.70348 1.88465C5.71436 1.85796 5.73046 1.83371 5.75084 1.81334C5.77121 1.79296 5.79546 1.77686 5.82215 1.76598C5.84884 1.7551 5.87743 1.74967 5.90625 1.75H8.09375C8.12257 1.74967 8.15116 1.7551 8.17785 1.76598C8.20454 1.77686 8.22879 1.79296 8.24917 1.81334C8.26954 1.83371 8.28564 1.85796 8.29652 1.88465C8.3074 1.91134 8.31283 1.93993 8.3125 1.96875V2.625ZM9.1875 10.9531C9.18346 11.0664 9.13559 11.1737 9.05398 11.2524C8.97236 11.3311 8.86338 11.3751 8.75 11.375H8.73414C8.6767 11.373 8.62022 11.3596 8.56794 11.3357C8.51566 11.3118 8.4686 11.2779 8.42944 11.2358C8.39028 11.1937 8.3598 11.1444 8.33974 11.0905C8.31967 11.0366 8.31042 10.9794 8.3125 10.9219L8.53125 4.79691C8.5333 4.73946 8.54664 4.68297 8.57052 4.63068C8.59439 4.57838 8.62834 4.5313 8.67041 4.49212C8.71248 4.45294 8.76186 4.42243 8.81573 4.40234C8.86959 4.38224 8.92688 4.37295 8.98434 4.375C9.04179 4.37705 9.09828 4.39039 9.15057 4.41427C9.20287 4.43814 9.24995 4.47209 9.28913 4.51416C9.32831 4.55623 9.35882 4.60561 9.37891 4.65948C9.39901 4.71334 9.4083 4.77063 9.40625 4.82809L9.1875 10.9531Z"\n fill="#595959" />\n </svg>\n </button>\n </div>\n </div>\n </div>\n\n <mat-radio-group class="listbox-radio-group"\n [fxHide]="hideFilterType"\n [required]="false"\n [ngModel]="_radioValue"\n #matRadioGroup="ngModel"\n (change)="onChangeRadioGroup($event, matRadioGroup)">\n <mat-radio-button value="TO_OMIT"\n (click)="onClickRadioButton(\'TO_OMIT\', matRadioGroup)">\n Omitir\n </mat-radio-button>\n <mat-radio-button value="ALL"\n [disabled]="value && (value.length > 0)"\n (click)="onClickRadioButton(\'ALL\', matRadioGroup)">\n Selecionar todos\n </mat-radio-button>\n </mat-radio-group>\n\n <div class="footer"\n [ngStyle]="hideFilterType && {\'border-top-color\': \'transparent\'}">\n <gipi-button label="Limpar"\n gipi-secondary\n id="btnClear"\n [style.width]="\'100%\'"\n [disabled]="disabled || loading"\n (click)="onClickClear(inputSelect)">\n </gipi-button>\n <gipi-button label="Aplicar"\n gipi-primary\n id="btnApply"\n [style.width]="\'100%\'"\n [disabled]="disabled || loading || ((!value || (value && !value.length)) && _radioValue !== \'ALL\')"\n (click)="onClickApply()">\n </gipi-button>\n </div>\n </div>\n</gipi-overlay>\n',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-input-select-listbox"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:block;min-width:0;max-width:100%;flex:1}::ng-deep .overlay-select-listbox{padding:0!important}::ng-deep .listbox-radio-group{display:flex;align-items:center;justify-content:center;flex-direction:row;gap:16px}.overlay-select-listbox-content{display:flex;flex-direction:column;align-items:stretch;justify-content:center;padding:12px;width:100%;gap:1rem;position:relative}.overlay-select-listbox-content .overlay-select-listbox-backdrop{background:rgba(0,0,0,.32);opacity:1;position:absolute;top:0;bottom:0;left:0;right:0;z-index:1;border-radius:4px;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.overlay-select-listbox-content .listbox-selected{display:flex;flex-direction:column;gap:16px;background-color:#f5f5f6;border-radius:4px;padding:8px;overflow:hidden;width:100%}.overlay-select-listbox-content .listbox-selected>span{font-size:1.4rem;font-weight:600;line-height:100%;color:#131313}.overlay-select-listbox-content .listbox-selected .list{display:flex;flex-direction:column;gap:4px;width:100%;height:9rem;overflow-x:hidden;overflow-y:auto}.overlay-select-listbox-content .listbox-selected .list::-webkit-scrollbar{width:15px}.overlay-select-listbox-content .listbox-selected .list::-webkit-scrollbar-thumb{background-color:#d1d2d4;border-radius:10px;border:4px solid transparent;background-clip:padding-box}.overlay-select-listbox-content .listbox-selected .list .option{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:4px 12px;gap:8px;font-weight:400;font-size:1.4rem;line-height:1.6rem;color:#595959;transition:.1s;border-radius:4px}.overlay-select-listbox-content .listbox-selected .list .option:hover{background-color:#e0e1e2}.overlay-select-listbox-content .listbox-selected .list .option:hover>button{visibility:visible!important}.overlay-select-listbox-content .listbox-selected .list .option>button{display:flex;align-items:center;justify-content:center;outline:0;border:none;padding:2px;border-radius:4px;cursor:pointer;background-color:transparent;visibility:hidden}.overlay-select-listbox-content .listbox-selected .list .option>button>svg{width:1.4rem;height:1.4rem;line-height:1.6rem}.overlay-select-listbox-content .listbox-selected .list .option>button:hover>svg{transform:scale(1.08)}.overlay-select-listbox-content .footer{border-top:1px solid #bfbfbf;padding-top:12px;display:flex;align-items:center;gap:1rem}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef,t.ElementRef,t.Renderer2])],e)}(),Zn=function(){function e(e,t,n,i,o){var a=this;void 0===i&&(i=null),void 0===o&&(o=null),this.matSelect=e,this.changeDetectorRef=t,this._viewportRuler=n,this.matOption=i,this.matFormField=o,this._options$=new ie.BehaviorSubject(null),this.optionsList$=this._options$.pipe(oe.switchMap((function(e){return e?e.changes.pipe(oe.map((function(e){return e.toArray()})),oe.startWith(e.toArray())):ie.of(null)}))),this.optionsLength$=this.optionsList$.pipe(oe.map((function(e){return e?e.length:0}))),this._formControl=new r.FormControl(""),this._showNoEntriesFound$=ie.combineLatest([this._formControl.valueChanges,this.optionsLength$]).pipe(oe.map((function(e){var t=Oe(e,2),n=t[0],i=t[1];return n&&i===a.getOptionsLengthOffset()}))),this._onDestroy=new ie.Subject,this.placeholderLabel="Pesquisar",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.hideClearSearchButton=!1,this.onTouched=function(e){}}var n;return n=e,Object.defineProperty(e.prototype,"value",{get:function(){return this._formControl.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_options",{get:function(){return this._options$.getValue()},set:function(e){this._options$.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInsideMatOption",{get:function(){return!!this.matOption},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("aria-hidden","true")):console.error("<gipi-select-search> deve ser colocado dentro de um elemento <mat-option>"),this.matSelect.openedChange.pipe(oe.delay(1),oe.takeUntil(this._onDestroy)).subscribe((function(t){t?(e.updateInputWidth(),e.disableInitialFocus||e._focus()):e.clearSearchInput&&e._reset()})),this.matSelect.openedChange.pipe(oe.take(1),oe.switchMap((function(){e._options=e.matSelect.options;var t=e._options.toArray()[e.getOptionsLengthOffset()];return e._options.changes.pipe(oe.tap((function(){setTimeout((function(){var n=e._options.toArray(),i=n[e.getOptionsLengthOffset()],o=e.matSelect._keyManager;o&&e.matSelect.panelOpen&&(!!e.matSelect.compareWith(t,i)&&o.activeItem&&n.find((function(t){return e.matSelect.compareWith(t,o.activeItem)}))||o.setFirstItemActive(),setTimeout((function(){e.updateInputWidth()})));t=i}))})))}))).pipe(oe.takeUntil(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(oe.takeUntil(this._onDestroy)).subscribe((function(t){e.matOption&&(t?e.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):e.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))})),this._viewportRuler.change().pipe(oe.takeUntil(this._onDestroy)).subscribe((function(){e.matSelect.panelOpen&&e.updateInputWidth()})),this.optionsList$.pipe(oe.takeUntil(this._onDestroy)).subscribe((function(){e.changeDetectorRef.markForCheck()}))},e.prototype.ngOnChanges=function(e){this.searching?this._formControl.disable():(this._formControl.enable(),this._focus())},e.prototype.ngOnDestroy=function(){this._onDestroy.next(),this._onDestroy.complete()},e.prototype.registerOnChange=function(e){var t=this;this._formControl.valueChanges.pipe(oe.filter((function(e){return e!==t._lastExternalInputValue})),oe.tap((function(){return t._lastExternalInputValue=void 0})),oe.takeUntil(this._onDestroy)).subscribe(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.writeValue=function(e){this._lastExternalInputValue=e,this._formControl.setValue(e),this.changeDetectorRef.markForCheck()},e.prototype._handleKeydown=function(e){var t=this;(e.key&&1===e.key.length||e.keyCode>=se.A&&e.keyCode<=se.Z||e.keyCode>=se.ZERO&&e.keyCode<=se.NINE||e.keyCode===se.SPACE||this.preventHomeEndKeyPropagation&&(e.keyCode===se.HOME||e.keyCode===se.END))&&e.stopPropagation(),this.matSelect.multiple&&e.key&&e.keyCode===se.ENTER&&setTimeout((function(){return t._focus()})),!0===this.enableClearOnEscapePressed&&e.keyCode===se.ESCAPE&&this.value&&(this._reset(!0),e.stopPropagation())},e.prototype._handleKeyup=function(e){if(e.keyCode===se.UP_ARROW||e.keyCode===se.DOWN_ARROW){var t=this.matSelect._getAriaActiveDescendant(),n=this._options.toArray().findIndex((function(e){return e.id===t}));-1!==n&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[n]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",t))}},e.prototype.onBlur=function(){this.unselectActiveDescendant(),this.onTouched()},e.prototype._focus=function(){if(this.searchSelectInput&&this.matSelect.panel){var e=this.matSelect.panel.nativeElement,t=e.scrollTop;this.searchSelectInput.nativeElement.focus(),e.scrollTop=t}},e.prototype._reset=function(e){this._formControl.setValue(""),e&&this._focus()},e.prototype.updateInputWidth=function(){if(this.innerSelectSearch&&this.innerSelectSearch.nativeElement){for(var e,t=this.innerSelectSearch.nativeElement;t=t.parentElement;)if(t.classList.contains("mat-select-panel")){e=t;break}e&&(this.innerSelectSearch.nativeElement.style.width=e.clientWidth+"px")}},e.prototype.getOptionsLengthOffset=function(){return this.matOption?1:0},e.prototype.unselectActiveDescendant=function(){this.activeDescendant&&this.activeDescendant.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")},e.ctorParameters=function(){return[{type:a.MatSelect,decorators:[{type:t.Inject,args:[a.MatSelect]}]},{type:t.ChangeDetectorRef},{type:v.ViewportRuler},{type:a.MatOption,decorators:[{type:t.Optional},{type:t.Inject,args:[a.MatOption]}]},{type:a.MatFormField,decorators:[{type:t.Optional},{type:t.Inject,args:[a.MatFormField]}]}]},we([t.Input(),Ce("design:type",String)],e.prototype,"placeholderLabel",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"clearSearchInput",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"searching",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disableInitialFocus",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"enableClearOnEscapePressed",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"preventHomeEndKeyPropagation",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disableScrollToActiveOnOptionsChanged",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideClearSearchButton",void 0),we([t.ViewChild("searchSelectInput",{read:t.ElementRef,static:!0}),Ce("design:type",t.ElementRef)],e.prototype,"searchSelectInput",void 0),we([t.ViewChild("innerSelectSearch",{read:t.ElementRef,static:!0}),Ce("design:type",t.ElementRef)],e.prototype,"innerSelectSearch",void 0),we([t.HostBinding("class.mat-select-search-inside-mat-option"),Ce("design:type",Boolean),Ce("design:paramtypes",[])],e.prototype,"isInsideMatOption",null),e=n=we([t.Component({selector:"gipi-input-search",exportAs:"gipiInputSearch",template:'\x3c!-- Espaço reservado para ajustar o deslocamento vertical dos elementos mat-option --\x3e\n<input matInput\n class="mat-select-search-input mat-select-search-hidden" />\n\n\x3c!-- Note: o mat-datepicker-content mat-tab-header é necessário para herdar as cores do tema do material, consulte PR nº 22 --\x3e\n<div #innerSelectSearch\n class="mat-select-search-inner mat-typography mat-datepicker-content mat-tab-header">\n\n <input class="mat-select-search-input mat-input-element"\n autocomplete="off"\n type="text"\n #searchSelectInput\n [placeholder]="placeholderLabel"\n [formControl]="_formControl"\n (keydown)="_handleKeydown($event)"\n (keyup)="_handleKeyup($event)"\n (blur)="onBlur()">\n\n <mat-spinner *ngIf="searching"\n class="mat-select-search-spinner"\n diameter="16">\n </mat-spinner>\n\n <button *ngIf="!hideClearSearchButton && value && !searching"\n class="mat-select-search-clear"\n aria-label="Limpar"\n mat-icon-button\n (click)="_reset(true)">\n <mat-icon> close </mat-icon>\n </button>\n\n <mat-divider> </mat-divider>\n</div>\n\n<div *ngIf="(_showNoEntriesFound$ | async) && !searching"\n class="mat-select-search-no-entries-found">\n <mat-icon>sentiment_very_dissatisfied</mat-icon>\n Nenhum registro foi encontrado\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-input-search"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:['@charset "UTF-8";.mat-select-search-hidden{visibility:hidden}.mat-select-search-inner{position:absolute;top:0;left:0;width:100%;height:3em;border-bottom:none!important;z-index:100;font-size:inherit;box-shadow:none;border-radius:4px 4px 0 0}.mat-select-search-inner.mat-select-search-inner-multiple{width:100%}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all{display:flex;align-items:center}.mat-select-search-inner .mat-input-element{flex-basis:auto}.mat-select-search-inner .mat-input-element:-ms-input-placeholder{-ms-user-select:text}::ng-deep .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input{padding:16px 44px 16px 16px;box-sizing:border-box;width:100%}:host-context([dir=rtl]) .mat-select-search-input{padding-right:16px;padding-left:44px}.mat-select-search-no-entries-found{padding:16px}.mat-select-search-clear{position:absolute;right:4px;top:0}:host-context([dir=rtl]) .mat-select-search-clear{right:auto;left:4px}.mat-select-search-spinner{position:absolute;right:16px;top:calc(50% - 8px)}:host-context([dir=rtl]) .mat-select-search-spinner{right:auto;left:16px}:host.mat-select-search-inside-mat-option .mat-select-search-input{padding-top:0;padding-bottom:0;height:3em;line-height:3em}:host.mat-select-search-inside-mat-option .mat-select-search-clear{top:0}::ng-deep .mat-option[aria-disabled=true].contains-mat-select-search{position:-webkit-sticky;position:sticky;top:0;padding:0;left:0;z-index:1;border-bottom:1px solid rgba(0,0,0,.12)}::ng-deep .mat-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0}::ng-deep .mat-option[aria-disabled=true].contains-mat-select-search.mat-select-search-no-entries-found{height:6em}.mat-select-search-loading{height:3em;width:100%;padding:0;display:flex;flex-direction:row;align-items:center;justify-content:center}.dot-pulse{position:relative;left:-9999px;width:5px;height:5px;border-radius:50%;background-color:#e0313e;color:#e0313e;box-shadow:9999px 0 0 -5px;-webkit-animation:1.5s linear .25s infinite dot-pulse;animation:1.5s linear .25s infinite dot-pulse}.dot-pulse::after,.dot-pulse::before{content:"";display:inline-block;position:absolute;top:0;width:5px;height:5px;border-radius:50%;background-color:#e0313e;color:#e0313e}.dot-pulse::before{box-shadow:9984px 0 0 -5px;-webkit-animation:1.5s linear infinite dot-pulse-before;animation:1.5s linear infinite dot-pulse-before}.dot-pulse::after{box-shadow:10014px 0 0 -5px;-webkit-animation:1.5s linear .5s infinite dot-pulse-after;animation:1.5s linear .5s infinite dot-pulse-after}@-webkit-keyframes dot-pulse-before{0%,100%,60%{box-shadow:9984px 0 0 -5px}30%{box-shadow:9984px 0 0 2px}}@keyframes dot-pulse-before{0%,100%,60%{box-shadow:9984px 0 0 -5px}30%{box-shadow:9984px 0 0 2px}}@-webkit-keyframes dot-pulse{0%,100%,60%{box-shadow:9999px 0 0 -5px}30%{box-shadow:9999px 0 0 2px}}@keyframes dot-pulse{0%,100%,60%{box-shadow:9999px 0 0 -5px}30%{box-shadow:9999px 0 0 2px}}@-webkit-keyframes dot-pulse-after{0%,100%,60%{box-shadow:10014px 0 0 -5px}30%{box-shadow:10014px 0 0 2px}}@keyframes dot-pulse-after{0%,100%,60%{box-shadow:10014px 0 0 -5px}30%{box-shadow:10014px 0 0 2px}}']}),xe(0,t.Inject(a.MatSelect)),xe(3,t.Optional()),xe(3,t.Inject(a.MatOption)),xe(4,t.Optional()),xe(4,t.Inject(a.MatFormField)),Ce("design:paramtypes",[a.MatSelect,t.ChangeDetectorRef,v.ViewportRuler,a.MatOption,a.MatFormField])],e)}(),Jn=0,Qn=function(){function e(e){var n=this;this._changeDetectorRef=e,this._name="gipi-input-select-paged-"+Jn++,this.valueSearchCtrl=new r.FormControl(""),this.totalOptions=0,this.subscriptions=[],this.searching=!1,this.id=this._name,this.name=this._name,this.placeholder="Selecionar",this.hideFieldSearch=!1,this.showClear=!1,this.debounceTime=1e3,this.valuesExclud=[],this.trackyBy="id",this.infiniteScroll=!0,this.property="description",this._options=[],this.modelChange=new t.EventEmitter,this.selectionChange=new t.EventEmitter,this.searchChange=new t.EventEmitter,this.openedChange=new t.EventEmitter,this.trackByOption=function(e,t){return t&&n.trackyBy?t[n.trackyBy]:t},this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"paramNextBatch",{get:function(){return this._paramNextBatch},set:function(e){this._paramNextBatch=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"model",{get:function(){return this._model},set:function(e){this._model=e,this.modelChange.emit(this._model),this.onChange(this._model),this.onTouch(this._model),this._changeDetectorRef.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(e){this._options=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollViewportHeight",{get:function(){return Ot.isEmpty(this.options)?0:3*this.options.length},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscriptions.push(this.valueSearchCtrl.valueChanges.pipe(oe.map((function(e){return e})),oe.debounceTime(this.debounceTime),oe.distinctUntilChanged()).subscribe((function(t){e.onSearchChange(t)})))},e.prototype.ngOnChanges=function(e){ze.isNull(e.model)||e.model.isFirstChange()||Ot.isEmpty(this.options)&&!ze.isNull(this.model)&&this.options.push(this.model)},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.model=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},e.prototype.compareFn=function(e,t){return e&&t&&e.id===t.id},e.prototype.getPropertyValue=function(e){return ze.isNewModel(e)?Be.EMPTY:ze.isNull(this.propertyFn)?this.getValue(e,this.property):this.propertyFn(e)},e.prototype.getValue=function(e,t){if(ze.isNull(e))return"";for(var n=t.split("."),i=e,o=0;o<n.length;o++)if((i=Reflect.get(i,n[o]))&&o===n.length-1)return i},e.prototype.onSelectionChange=function(e){this.selectionChange.emit(e)},e.prototype.onSearchChange=function(e){this.matSelect.panelOpen&&(this.searchChange.emit(e),this.model=null,this.onSelectionChange(this.model),this.page=null,this.options=[],this.onLoadMoreOptions(!1))},e.prototype.onLoadMoreOptions=function(e,t){return void 0===t&&(t=!0),Ie(this,void 0,void 0,(function(){var n,i=this;return Se(this,(function(o){switch(o.label){case 0:return this.infiniteScroll&&t?ze.isNull(this.nextBatchFn)?(console.error("A função nextBatchFn é obrigatória e não foi informada"),[2]):this.searching?[2]:Ot.isEmpty(this.options)||ze.isNull(this.page)||this.options.length!==this.page.totalElements?(this.cdkVirtualScrollViewPort.scrollToIndex(0,"smooth"),this.cdkVirtualScrollViewPort.checkViewportSize(),this.searching=!0,n=0,e?n=ze.isNull(this.page)?1:this.page.number+1:(this.page=null,this.options=[]),[4,this.nextBatchFn(this.valueSearchCtrl.value,n,this.paramNextBatch).then((function(e){if(i.page=e,!ze.isNull(i.page)&&!Ot.isEmpty(i.page.content)){if(!Ot.isEmpty(i.valuesExclud))for(var t=function(e){var t=i.page.content.findIndex((function(t){return i.valuesExclud[e][i.trackyBy]===t[i.trackyBy]}));i.page.content.splice(t,1)},n=0;n<i.valuesExclud.length;n++)t(n);i.options=Ee(i.options,i.page.content)}if(!ze.isNull(i.model)){var o=i.options.find((function(e){return ze.equals(e,i.model)}));ze.isNull(o)&&i.options.push(i.model)}i.searching=!1})).finally((function(){i.searching=!1}))]):[2]:[2];case 1:return o.sent(),this._changeDetectorRef.detectChanges(),[2]}}))}))},e.prototype.showClearOptionButton=function(){var e=!0;return ze.isNull(this.model)||(e=ze.isNewModel(this.model)),this.showClear&&!e&&!this.disabled&&!this.searching},e.prototype.haveSelected=function(){var e=this.model;return!!e&&(e.id&&e.id>0)},e.prototype.removeOption=function(){this.model=null,this.onSelectionChange(this.model),this.options=[]},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},we([t.ViewChild("matSelect",{static:!1}),Ce("design:type",H.MatSelect)],e.prototype,"matSelect",void 0),we([t.ViewChild(v.CdkVirtualScrollViewport,{static:!1}),Ce("design:type",v.CdkVirtualScrollViewport)],e.prototype,"cdkVirtualScrollViewPort",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideFieldSearch",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showClear",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"debounceTime",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"valuesExclud",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"classSelectPanel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"trackyBy",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"infiniteScroll",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"property",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"propertyFn",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"nextBatchFn",void 0),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"paramNextBatch",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"model",null),we([t.Input(),Ce("design:type",Array),Ce("design:paramtypes",[Array])],e.prototype,"options",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"modelChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectionChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"searchChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"openedChange",void 0),e=n=we([t.Component({selector:"gipi-input-select-paged",exportAs:"gipiInputSelectPaged",template:'<div [attr.id]="id"\n [attr.name]="name"\n [attr.aria-label]="ariaLabel"\n role="group"\n class="input-select-paged-content">\n\n <label *ngIf="label">\n {{ label }}\n <span *ngIf="required && label">*</span>\n </label>\n\n <mat-form-field #formFieldSelect\n appearance="outline"\n class="mat-form-field-select"\n [class.field-diasabled]="disabled">\n\n <mat-select #matSelect\n [placeholder]="placeholder"\n [compareWith]="compareFn"\n [(ngModel)]="model"\n [required]="required"\n [disabled]="disabled"\n [multiple]="false"\n disableOptionCentering="true"\n [panelClass]="\'select-position \' + classSelectPanel"\n itssInfiniteScroll\n (infiniteScroll)="onLoadMoreOptions(true)"\n [complete]="options?.length === page?.totalElements"\n (selectionChange)="onSelectionChange($event.value)"\n (openedChange)="onLoadMoreOptions(false, $event); openedChange.emit($event)">\n <mat-option *ngIf="!hideFieldSearch">\n <gipi-input-search placeholderLabel="Pesquisar"\n [enableClearOnEscapePressed]="true"\n [disableScrollToActiveOnOptionsChanged]="true"\n [preventHomeEndKeyPropagation]="true"\n [disableScrollToActiveOnOptionsChanged]="true"\n [enableClearOnEscapePressed]="true"\n [clearSearchInput]="true"\n [formControl]="valueSearchCtrl"\n [searching]="searching">\n </gipi-input-search>\n </mat-option>\n\n <mat-option [value]="model"\n [style.height.px]="0">\n {{ getPropertyValue(model) }}\n </mat-option>\n\n <cdk-virtual-scroll-viewport itemSize="5"\n [style.height.em]="scrollViewportHeight"\n class="virtual-scroll-viewport">\n <mat-option *cdkVirtualFor="let option of options; trackBy: trackByOption"\n [value]="option">\n {{ getPropertyValue(option) }}\n </mat-option>\n </cdk-virtual-scroll-viewport>\n\n <div *ngIf="searching"\n class="mat-select-search-loading">\n <div class="dot-pulse"> </div>\n </div>\n </mat-select>\n\n <mat-icon *ngIf="showClearOptionButton()"\n matSuffix\n (click)="removeOption(); $event.stopPropagation()"\n matTooltip="Remover selecionado">\n close\n </mat-icon>\n </mat-form-field>\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-input-select-paged"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[':host{display:block;min-width:0;max-width:100%;flex:1}.input-select-paged-content{display:flex;flex-direction:column;gap:1rem}.input-select-paged-content>label{font-weight:400;font-size:1.4rem;line-height:100%;color:#131313}.input-select-paged-content>label>span{color:#d14014}.field-diasabled{cursor:not-allowed}:host ::ng-deep .mat-form-field-appearance-outline .mat-form-field-suffix{position:absolute!important;right:35px!important;top:34%!important}:host ::ng-deep .mat-form-field-appearance-outline .mat-form-field-suffix .mat-icon{height:1.6rem!important;width:1.6rem!important;font-size:1.6rem!important;color:#131313!important}:host ::ng-deep .mat-select-value{padding-right:30px!important}::ng-deep .virtual-scroll-viewport{width:100%!important;overflow:hidden}::ng-deep .virtual-scroll-viewport .cdk-virtual-scroll-content-wrapper{width:100%!important}.mat-select-additional-selection{opacity:.75;font-size:.75em;margin-left:16px}.mat-select-search-loading{background-color:#fff;display:flex;align-items:center;justify-content:center;height:3em}.dot-pulse{position:relative;left:-9999px;width:5px;height:5px;border-radius:50%;background-color:#f3465c;color:#f3465c;box-shadow:9999px 0 0 -5px;-webkit-animation:1.5s linear .25s infinite dot-pulse;animation:1.5s linear .25s infinite dot-pulse}.dot-pulse::after,.dot-pulse::before{content:"";display:inline-block;position:absolute;top:0;width:5px;height:5px;border-radius:50%;background-color:#f3465c;color:#f3465c}.dot-pulse::before{box-shadow:9984px 0 0 -5px;-webkit-animation:1.5s linear infinite dot-pulse-before;animation:1.5s linear infinite dot-pulse-before}.dot-pulse::after{box-shadow:10014px 0 0 -5px;-webkit-animation:1.5s linear .5s infinite dot-pulse-after;animation:1.5s linear .5s infinite dot-pulse-after}@-webkit-keyframes dot-pulse-before{0%,100%,60%{box-shadow:9984px 0 0 -5px}30%{box-shadow:9984px 0 0 2px}}@keyframes dot-pulse-before{0%,100%,60%{box-shadow:9984px 0 0 -5px}30%{box-shadow:9984px 0 0 2px}}@-webkit-keyframes dot-pulse{0%,100%,60%{box-shadow:9999px 0 0 -5px}30%{box-shadow:9999px 0 0 2px}}@keyframes dot-pulse{0%,100%,60%{box-shadow:9999px 0 0 -5px}30%{box-shadow:9999px 0 0 2px}}@-webkit-keyframes dot-pulse-after{0%,100%,60%{box-shadow:10014px 0 0 -5px}30%{box-shadow:10014px 0 0 2px}}@keyframes dot-pulse-after{0%,100%,60%{box-shadow:10014px 0 0 -5px}30%{box-shadow:10014px 0 0 2px}}::ng-deep .mat-select-arrow{border:solid #131313!important;border-width:0 2px 2px 0!important;display:inline-block!important;padding:3px!important;transform:rotate(45deg)!important;margin:0 4px!important}::ng-deep .mat-option-button-add{position:absolute;bottom:0;left:0;width:100%;z-index:100;background-color:#fff;border-radius:4px}']}),Ce("design:paramtypes",[t.ChangeDetectorRef])],e)}(),ei=0,ti=function(){function e(e,n){this.elementRef=e,this._changeDetectorRef=n,this._name="gipi-input-select-radio-"+ei++,this._enumList=[],this.id=this._name,this.name=this._name,this.placeholder="Selecionar",this.disabled=!1,this.loading=!1,this.showOnFocus=!0,this.hideOnEscape=!0,this.hideOnClick=!0,this.selectionChange=new t.EventEmitter,this.onFocus=new t.EventEmitter,this.onBlur=new t.EventEmitter,this.onOpenedChange=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.onChange(e),this.onTouch()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"optionSelected",{get:function(){var e=this;if(this.value&&!Ot.isEmpty(this._enumList)){var t=this._enumList.find((function(t){return t.key===e.value}));if(t)return t.value}return""},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this,t=Object.keys(this.enum).map((function(t){return{key:t,value:e.enum[t]}})).sort(this.sort);if(ze.isNull(this.valuesExclud))this._enumList=t;else for(var n=function(e){i.valuesExclud.some((function(n){return n===t[e].key}))||i._enumList.push(t[e])},i=this,o=0;o<t.length;o++)n(o);this._changeDetectorRef.detectChanges()},e.prototype.ngOnDestroy=function(){ze.isNull(this.popoverTrigger)||this.popoverTrigger.destroyPopover()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.value=e},e.prototype.changeRadioGroup=function(e){var t=e.value;this.selectionChange.emit(t),this.hideOnClick&&this.popoverTrigger.closePopover()},e.prototype.validateOmitByKey=function(e){return!!ze.isNull(this.valuesOmit)||!this.valuesOmit.some((function(t){return t===e}))},e.prototype.showPopover=function(){this.disabled||this.loading||this.popoverTrigger.openPopover()},e.prototype.closePopover=function(){this.disabled||this.loading||this.popoverTrigger.closePopover()},e.prototype.onInputFocus=function(e){this.showOnFocus&&!this.disabled&&(this.showPopover(),this.onFocus.emit(e),e.stopPropagation())},e.prototype.onInputClick=function(e){this.disabled||(this.showPopover(),ze.isNull(this.popoverTrigger)||this.popoverTrigger.popoverOpen||this.formFieldSelectRadio.focus(),e.stopPropagation())},e.prototype.onInputBlur=function(e){this.disabled||(this.onBlur.emit(e),this.onTouch())},e.prototype.onInputKeydown=function(e){this.disabled?e.stopImmediatePropagation():("ESCAPE"===e.code.toUpperCase()&&this.hideOnEscape||"ENTER"===e.code.toUpperCase()||"NUMPADENTER"===e.code.toUpperCase()||"TAB"===e.code.toUpperCase())&&!ze.isNull(this.popoverTrigger)&&this.popoverTrigger.popoverOpen&&(this.closePopover(),e.preventDefault())},e.prototype.onWindowResize=function(e){!ze.isNull(this.popoverTrigger)&&this.popoverTrigger.popoverOpen&&(this.closePopover(),e.stopPropagation(),this._changeDetectorRef.detectChanges())},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},we([t.ViewChild("formFieldSelectRadio",{read:Pn,static:!1}),Ce("design:type",Pn)],e.prototype,"formFieldSelectRadio",void 0),we([t.ViewChild(gn,{static:!1}),Ce("design:type",gn)],e.prototype,"popoverTrigger",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showOnFocus",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideOnEscape",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideOnClick",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"enum",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"sort",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"valuesExclud",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"valuesOmit",void 0),we([t.Input("value"),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"value",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectionChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onOpenedChange",void 0),we([t.HostListener("window:resize",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[UIEvent]),Ce("design:returntype",void 0)],e.prototype,"onWindowResize",null),e=n=we([t.Component({selector:"gipi-input-select-radio",exportAs:"gipiInputSelectRadio",template:'<gipi-form-field #formFieldSelectRadio\n [id]="id"\n [name]="name"\n [type]="\'select\'"\n [readonly]="true"\n [disabled]="disabled"\n [required]="required"\n [label]="label"\n [placeholder]="placeholder"\n [showClear]="false"\n [showTrigger]="false"\n [trigger]="0"\n [ariaLabel]="ariaLabel"\n [value]="optionSelected"\n #popoverTrigger="popoverTrigger"\n [popoverTriggerFor]="selectRadioPopover"\n [popoverTriggerOn]="\'click\'"\n [popoverBackdropCloseOnClick]="true"\n (opened)="onOpenedChange.emit(true)"\n (closed)="onOpenedChange.emit(false)"\n (onKeydown)="onInputKeydown($event)"\n (onFocus)="onInputFocus($event)"\n (onBlur)="onInputBlur($event)"\n (onClick)="onInputClick($event)">\n</gipi-form-field>\n\n<gipi-popover #selectRadioPopover="gipiPopover"\n [popoverOverlapTrigger]="false"\n [popoverCloseOnClick]="false"\n [popoverArrowWidth]="0"\n [popoverOffsetY]="3">\n <div class="select-radio-popover-content">\n <mat-radio-group class="radio-group"\n [(ngModel)]="value"\n [required]="required"\n [disabled]="disabled"\n (change)="changeRadioGroup($event)">\n <mat-radio-button *ngFor="let e of _enumList"\n [disabled]="!validateOmitByKey(e.key)"\n [value]="e.key">\n {{ e.value }}\n </mat-radio-button>\n </mat-radio-group>\n </div>\n</gipi-popover>\n\n\x3c!-- <gipi-overlay *ngIf="!disabled && !loading && _overlayVisible"\n [(visible)]="_overlayVisible"\n [appendTo]="\'body\'"\n (onShow)="onOpenedChange.emit(true)"\n (onHide)="onOpenedChange.emit(false)">\n <mat-radio-group class="radio-group"\n [(ngModel)]="value"\n [required]="required"\n [disabled]="disabled"\n (change)="changeRadioGroup($event)">\n <mat-radio-button *ngFor="let e of _enumList"\n [disabled]="!validateOmitByKey(e.key)"\n [value]="e.key">\n {{ e.value }}\n </mat-radio-button>\n </mat-radio-group>\n</gipi-overlay> --\x3e',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-input-select-radio"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:block;min-width:0;max-width:100%;flex:1}::ng-deep .radio-group{display:flex;flex-direction:column;gap:16px}.select-radio-popover-content{background-color:#fff;border-radius:4px;box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);padding:8px}"]}),Ce("design:paramtypes",[t.ElementRef,t.ChangeDetectorRef])],e)}(),ni=function(){function e(){this.buttonPadding=4,this.iconWidth=24,this.iconHeight=24,this.icon=null,this.svgIcon=null,this.notification=!1,this.onShowOverlay=new t.EventEmitter,this.onClick=new t.EventEmitter,this.onFocus=new t.EventEmitter,this.onBlur=new t.EventEmitter}var n;return n=e,e.prototype.ngOnInit=function(){},we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"buttonPadding",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"iconWidth",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"iconHeight",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"icon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"notification",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onShowOverlay",void 0),we([t.Output("click"),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),we([t.Output("focus"),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),we([t.Output("blur"),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),e=n=we([t.Component({selector:"gipi-notification",exportAs:"gipiNotification",template:'<gipi-button gipi-icon\n [id]="id"\n [name]="name"\n [ariaLabel]="ariaLabel"\n [buttonPadding]="buttonPadding"\n [iconWidth]="iconWidth"\n [iconHeight]="iconHeight"\n [icon]="icon"\n [svgIcon]="svgIcon"\n [disabled]="disabled"\n [loading]="loading"\n [tooltip]="tooltip"\n [popover]="true"\n [overlay]="false"\n [notification]="notification"\n (onShowOverlay)="onShowOverlay.emit()"\n (click)="onClick.emit($event)"\n (focus)="onFocus.emit($event)"\n (blur)="onBlur.emit($event)">\n <ng-content> </ng-content>\n</gipi-button>\n',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-notification"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".button-only-icon{padding:4px!important}.button-only-icon .button-content>mat-icon{width:24px!important;height:24px!important}"]}),Ce("design:paramtypes",[])],e)}(),ii=function(){function e(){this.buttonPadding=4,this.iconWidth=24,this.iconHeight=24,this.icon=null,this.svgIcon=null,this.hasNovelties=!1,this.onShowOverlay=new t.EventEmitter,this.onClick=new t.EventEmitter,this.onFocus=new t.EventEmitter,this.onBlur=new t.EventEmitter}var n;return n=e,e.prototype.ngOnInit=function(){},we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"buttonPadding",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"iconWidth",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"iconHeight",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"icon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"hasNovelties",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onShowOverlay",void 0),we([t.Output("click"),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),we([t.Output("focus"),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),we([t.Output("blur"),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),e=n=we([t.Component({selector:"gipi-novelties",exportAs:"gipiNovelties",template:'<gipi-button gipi-icon\n [id]="id"\n [name]="name"\n [ariaLabel]="ariaLabel"\n [buttonPadding]="buttonPadding"\n [iconWidth]="iconWidth"\n [iconHeight]="iconHeight"\n [icon]="icon"\n [svgIcon]="svgIcon"\n [disabled]="disabled"\n [loading]="loading"\n [tooltip]="tooltip"\n [overlay]="false"\n [buttonClass]="hasNovelties ? \'has-novelties\' : \'\'"\n (onShowOverlay)="onShowOverlay.emit()"\n (click)="onClick.emit($event)"\n (focus)="onFocus.emit($event)"\n (blur)="onBlur.emit($event)">\n</gipi-button>\n',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-novelties"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".button-only-icon{padding:4px!important}.button-only-icon .button-content>mat-icon{width:24px!important;height:24px!important}::ng-deep .has-novelties:not(:disabled):hover,::ng-deep .has-novelties:not(:disabled):hover .button-content>mat-icon{background-color:#f2e2b0!important}::ng-deep .has-novelties .button-content>mat-icon{color:#d6a000!important;fill:#d6a000!important}::ng-deep .has-novelties .button-content>mat-icon svg,::ng-deep .has-novelties .button-content>mat-icon svg g path,::ng-deep .has-novelties .button-content>mat-icon svg path{color:#d6a000!important;fill:#d6a000!important}.novelties{max-width:30rem}.novelties>footer,.novelties>header{display:none}.novelties>main{width:20rem;text-align:center;font-size:1.6rem;font-weight:600;color:#262626}"]}),Ce("design:paramtypes",[])],e)}(),oi=function(){function e(){}return e.isValid=function(e){return!Be.isEmpty(e)&&(this.isValidMinLength(e)&&this.isValidMaxLength(e)&&this.hasUppercase(e)&&this.hasLowercase(e)&&this.hasNumber(e)&&this.hasSpecialChar(e)&&!this.hasBackspace(e))},e.isValidMinLength=function(e){return e.trim().length>0&&e.trim().length>=6},e.isValidMaxLength=function(e){return e.trim().length>0&&e.trim().length<=15},e.hasUppercase=function(e){return e.trim().length>0&&e.toLowerCase()!==e},e.hasLowercase=function(e){return e.trim().length>0&&e.toUpperCase()!==e},e.hasNumber=function(e){return e.trim().length>0&&/\d/.test(e)},e.hasSpecialChar=function(e){return e.trim().length>0&&/[!@#$%^&*()_={};':"|,.<>?~]/g.test(e)},e.hasBackspace=function(e){return e.trim.length>0&&/\s/g.test(e)},e}(),ri=0,ai=function(){function e(e){this._changeDetectorRef=e,this._name="gipi-password-requeriments-"+ri++,this.id=this._name,this.name=this._name,this.disabled=!1,this._password="",this.onValid=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"password",{get:function(){return this._password},set:function(e){ze.isNull(e)?this._password="":this._password=e,Be.isEmpty(this._password)?this.onValid.emit(!1):this.onValid.emit(this.isValidMinLength&&this.isValidMaxLength&&this.hasUppercase&&this.hasLowercase&&this.hasNumber&&!this.hasBackspace),this.onChange(this._password),this.onTouch()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isValidMinLength",{get:function(){return this.password.trim().length>0&&oi.isValidMinLength(this.password)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isValidMaxLength",{get:function(){return this.password.trim().length>0&&oi.isValidMaxLength(this.password)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasUppercase",{get:function(){return this.password.trim().length>0&&oi.hasUppercase(this.password)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasLowercase",{get:function(){return this.password.trim().length>0&&oi.hasLowercase(this.password)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasNumber",{get:function(){return this.password.trim().length>0&&oi.hasNumber(this.password)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasBackspace",{get:function(){return this.password.trim().length>0&&oi.hasBackspace(this.password)},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.writeValue=function(e){this.password=e},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"password",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onValid",void 0),e=n=we([t.Component({selector:"gipi-password-requeriments",exportAs:"gipiPasswordRequeriments",template:'<div class="password-requeriments">\n <div class="requirement"\n [class.invalid]="!isValidMinLength">\n <label class="title"> 6+ </label>\n <label class="subtitle">Caracteres</label>\n </div>\n\n <div class="requirement"\n [class.invalid]="!hasUppercase">\n <label class="title"> AA </label>\n <label class="subtitle">Maiúsculas</label>\n </div>\n\n <div class="requirement"\n [class.invalid]="!hasLowercase">\n <label class="title"> aa </label>\n <label class="subtitle">Minúsculas</label>\n </div>\n\n <div class="requirement"\n [class.invalid]="!hasNumber">\n <label class="title"> 123 </label>\n <label class="subtitle">Números</label>\n </div>\n\n \x3c!-- <div class="requirement"\n [class.invalid]="(password.length > 0) && !hasSpecialChar">\n <label class="title"> @$# </label>\n <label class="subtitle">Símbolos</label>\n </div> --\x3e\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-password-requeriments"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".password-requeriments{width:100%;padding:4px 0;display:flex;gap:50px;flex-direction:row;align-items:stretch;justify-content:center}.password-requeriments .requirement{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.password-requeriments .requirement.invalid .subtitle,.password-requeriments .requirement.invalid .title{color:#e0313e!important}.password-requeriments .requirement .title{font-weight:700;font-size:1.4rem;line-height:1.9rem;color:#262626;text-align:center}.password-requeriments .requirement .subtitle{font-weight:400;font-size:1.1rem;line-height:1.9rem;color:#595959;text-align:center}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef])],e)}(),si=ae.trigger("transformPopover",[ae.state("enter",ae.style({opacity:1,transform:"scale(1)"})),ae.transition("void => *",[ae.style({opacity:0,transform:"scale(0)"}),ae.animate("200ms cubic-bezier(0.25, 0.8, 0.25, 1)")]),ae.transition("* => void",[ae.animate("50ms 100ms linear",ae.style({opacity:0}))])]),li=function(){function e(e,n){this._elementRef=e,this.zone=n,this.role="dialog",this._popoverWidth="auto",this._positionX="after",this._positionY="below",this._triggerEvent="hover",this._scrollStrategy="reposition",this._enterDelay=200,this._leaveDelay=200,this._overlapTrigger=!0,this._disableAnimation=!1,this._targetOffsetX=0,this._targetOffsetY=0,this._arrowOffsetX=20,this._arrowWidth=8,this._arrowColor="rgba(0, 0, 0, 0.12)",this._closeOnClick=!0,this._focusTrapEnabled=!0,this._focusTrapAutoCaptureEnabled=!0,this._classList={},this.containerPositioning=!1,this.closeDisabled=!1,this._onAnimationStateChange=new t.EventEmitter,this.close=new t.EventEmitter,this.setPositionClasses()}var n;return n=e,Object.defineProperty(e.prototype,"popoverWidth",{get:function(){return this._popoverWidth},set:function(e){this._popoverWidth=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"positionX",{get:function(){return this._positionX},set:function(e){"before"!==e&&"after"!==e&&function(){throw Error('O valor popoverPositionX deve ser \'before\' ou after\'.\n Example: <gipi-popover popoverPositionX="before" #popover="popover"> </gipi-popover>')}(),this._positionX=e,this.setPositionClasses()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"positionY",{get:function(){return this._positionY},set:function(e){"above"!==e&&"below"!==e&&function(){throw Error('O valor popoverPositionY deve ser \'above\' ou below\'.\n Example: <gipi-popover popoverPositionY="above" #popover="popover"> </gipi-popover>')}(),this._positionY=e,this.setPositionClasses()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"triggerEvent",{get:function(){return this._triggerEvent},set:function(e){this._triggerEvent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollStrategy",{get:function(){return this._scrollStrategy},set:function(e){this._scrollStrategy=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enterDelay",{get:function(){return this._enterDelay},set:function(e){this._enterDelay=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leaveDelay",{get:function(){return this._leaveDelay},set:function(e){this._leaveDelay=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlapTrigger",{get:function(){return this._overlapTrigger},set:function(e){this._overlapTrigger=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"targetOffsetX",{get:function(){return this._targetOffsetX},set:function(e){this._targetOffsetX=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"targetOffsetY",{get:function(){return this._targetOffsetY},set:function(e){this._targetOffsetY=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arrowOffsetX",{get:function(){return this._arrowOffsetX},set:function(e){this._arrowOffsetX=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arrowWidth",{get:function(){return this._arrowWidth},set:function(e){this._arrowWidth=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arrowColor",{get:function(){return this._arrowColor},set:function(e){this._arrowColor=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"closeOnClick",{get:function(){return this._closeOnClick},set:function(e){this._closeOnClick=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disableAnimation",{get:function(){return this._disableAnimation},set:function(e){this._disableAnimation=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"focusTrapEnabled",{get:function(){return this._focusTrapEnabled},set:function(e){this._focusTrapEnabled=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"focusTrapAutoCaptureEnabled",{get:function(){return this._focusTrapAutoCaptureEnabled},set:function(e){this._focusTrapAutoCaptureEnabled=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"panelClass",{set:function(e){e&&e.length&&(this._classList=e.split(" ").reduce((function(e,t){return e[t]=!0,e}),{}),this._elementRef.nativeElement.className="",this.setPositionClasses())},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.ngOnDestroy=function(){this._emitCloseEvent(),this.close.complete()},e.prototype._handleKeydown=function(e){switch(e.keyCode){case se.ESCAPE:return void this._emitCloseEvent()}},e.prototype._emitCloseEvent=function(){this.close.emit()},e.prototype.onClick=function(){this.closeOnClick&&this._emitCloseEvent()},e.prototype.onMouseOver=function(){"hover"===this.triggerEvent&&(this.closeDisabled=!0)},e.prototype.onMouseLeave=function(){"hover"===this.triggerEvent&&(this.closeDisabled=!1,this._emitCloseEvent())},e.prototype.setCurrentStyles=function(){this.popoverArrowStyles={right:"before"===this.positionX?this.arrowOffsetX-this.arrowWidth+"px":"",left:"after"===this.positionX?this.arrowOffsetX-this.arrowWidth+"px":"","border-top":"below"===this.positionY?this.arrowWidth+"px solid "+this.arrowColor:"0px solid transparent","border-right":this.arrowWidth+"px solid transparent","border-bottom":"above"===this.positionY?this.arrowWidth+"px solid "+this.arrowColor:this.arrowWidth+"px solid transparent","border-left":this.arrowWidth+"px solid transparent"},this.popoverContentStyles={"padding-top":!0===this.overlapTrigger?"0px":this.arrowWidth+"px","padding-bottom":!0===this.overlapTrigger?"0px":this.arrowWidth+"px","margin-top":!1===this.overlapTrigger&&"below"===this.positionY&&!1===this.containerPositioning?-2*this.arrowWidth+"px":"0px"}},e.prototype.setPositionClasses=function(e,t){void 0===e&&(e=this.positionX),void 0===t&&(t=this.positionY),this._classList["popover-before"]="before"===e,this._classList["popover-after"]="after"===e,this._classList["popover-above"]="above"===t,this._classList["popover-below"]="below"===t},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.NgZone}]},we([t.HostBinding("attr.role"),Ce("design:type",String)],e.prototype,"role",void 0),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"popoverWidth",null),we([t.Input("popoverPositionX"),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"positionX",null),we([t.Input("popoverPositionY"),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"positionY",null),we([t.Input("popoverTriggerOn"),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"triggerEvent",null),we([t.Input("popoverScrollStrategy"),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"scrollStrategy",null),we([t.Input("popoverEnterDelay"),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"enterDelay",null),we([t.Input("popoverLeaveDelay"),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"leaveDelay",null),we([t.Input("popoverOverlapTrigger"),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"overlapTrigger",null),we([t.Input("popoverOffsetX"),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"targetOffsetX",null),we([t.Input("popoverOffsetY"),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"targetOffsetY",null),we([t.Input("popoverArrowOffsetX"),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"arrowOffsetX",null),we([t.Input("popoverArrowWidth"),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"arrowWidth",null),we([t.Input("popoverArrowColor"),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"arrowColor",null),we([t.Input("popoverCloseOnClick"),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"closeOnClick",null),we([t.Input("popoverDisableAnimation"),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disableAnimation",null),we([t.Input("focusTrapEnabled"),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"focusTrapEnabled",null),we([t.Input("focusTrapAutoCaptureEnabled"),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"focusTrapAutoCaptureEnabled",null),we([t.Input("class"),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"panelClass",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"close",void 0),we([t.ViewChild(t.TemplateRef,{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"templateRef",void 0),e=n=we([t.Component({selector:"gipi-popover",exportAs:"gipiPopover",template:'<ng-template>\n\n <div class="popover-panel"\n role="dialog"\n [class.popover-overlap]="overlapTrigger"\n [ngClass]="_classList"\n [style.min-width]="popoverWidth"\n [ngStyle]="popoverPanelStyles"\n [@.disabled]="disableAnimation"\n [@transformPopover]="\'enter\'"\n (mouseover)="onMouseOver()"\n (mouseleave)="onMouseLeave()"\n (keydown)="_handleKeydown($event)"\n (click)="onClick()">\n\n <div class="popover-direction-arrow"\n [ngStyle]="popoverArrowStyles"\n *ngIf="!overlapTrigger">\n </div>\n\n <div class="popover-content"\n [ngStyle]="popoverContentStyles"\n [cdkTrapFocus]="focusTrapEnabled"\n [cdkTrapFocusAutoCapture]="focusTrapAutoCaptureEnabled">\n <ng-content> </ng-content>\n </div>\n\n </div>\n\n</ng-template>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-popover"},changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,animations:[si],styles:[".popover-panel{display:flex;flex-direction:column;max-height:calc(100vh + 48px)}.popover-ripple{position:absolute;top:0;left:0;bottom:0;right:0}.popover-below .popover-direction-arrow{position:absolute;bottom:0;width:0;height:0;border-bottom-width:0!important;z-index:99999}.popover-above .popover-direction-arrow{position:absolute;top:0;width:0;height:0;border-top-width:0!important;z-index:99999}.popover-after .popover-direction-arrow{left:20px}.popover-before .popover-direction-arrow{right:20px}"]}),Ce("design:paramtypes",[t.ElementRef,t.NgZone])],e)}(),pi=function(){function e(e){this._elementRef=e}return e.ctorParameters=function(){return[{type:t.ElementRef}]},e=we([t.Directive({selector:"popover-target, [popoverTarget]",exportAs:"popoverTarget"}),Ce("design:paramtypes",[t.ElementRef])],e)}(),di=0,ci=function(){function e(e){this._changeDetectorRef=e,this._name="gipi-radio-group-"+di++,this._enumList=[],this.id=this._name,this.name=this._name,this.disabled=!1,this.required=!1,this.fieldset=!1,this.direction="row",this.selectionChange=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"value",{get:function(){return this.val},set:function(e){this.val=e,this.onChange(e),this.onTouch()},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this,t=Object.keys(this.enum).map((function(t){return{key:t,value:e.enum[t]}})).sort(this.sort);if(ze.isNull(this.valuesExclud))this._enumList=t;else for(var n=function(e){i.valuesExclud.some((function(n){return n===t[e].key}))||i._enumList.push(t[e])},i=this,o=0;o<t.length;o++)n(o);this._changeDetectorRef.detectChanges()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.value=e},e.prototype.changeRadioGroup=function(e){var t=e.value;this.selectionChange.emit(t)},e.prototype.validateOmitByKey=function(e){return!!ze.isNull(this.valuesOmit)||!this.valuesOmit.some((function(t){return t===e}))},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"fieldset",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"direction",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"enum",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"sort",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"valuesExclud",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"valuesOmit",void 0),we([t.Input("value"),Ce("design:type",Object)],e.prototype,"val",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectionChange",void 0),e=n=we([t.Component({selector:"gipi-radio-group",exportAs:"gipiRadioGroup",template:'<div [attr.id]="id"\n [attr.name]="name"\n [attr.aria-label]="ariaLabel"\n role="group"\n class="radiogroup-content"\n *ngIf="!fieldset">\n <label *ngIf="label">\n {{ label }}\n <span *ngIf="required && label">*</span>\n </label>\n\n <mat-radio-group class="radiogroup"\n [style.flex-direction]="direction"\n [style.justify-content]="(_enumList && (_enumList.length <= 2)) ? \'space-around\' : \'space-between\'"\n [(ngModel)]="value"\n [required]="required"\n [disabled]="disabled"\n (change)="changeRadioGroup($event)">\n <mat-radio-button *ngFor="let e of _enumList"\n [disabled]="!validateOmitByKey(e.key)"\n [value]="e.key">\n {{ e.value }}\n </mat-radio-button>\n </mat-radio-group>\n</div>\n\n<fieldset [attr.id]="id"\n [attr.name]="name"\n [attr.aria-label]="ariaLabel"\n [disabled]="disabled"\n class="radiogroup-content fieldset-radio-content"\n *ngIf="fieldset">\n <legend *ngIf="label">\n {{ label }}\n <span *ngIf="required && label">*</span>\n </legend>\n\n <mat-radio-group class="radiogroup"\n [style.flex-direction]="direction"\n [(ngModel)]="value"\n [required]="required"\n [disabled]="disabled"\n (change)="changeRadioGroup($event)">\n <mat-radio-button *ngFor="let e of _enumList"\n [disabled]="!validateOmitByKey(e.key)"\n [value]="e.key">\n {{ e.value }}\n </mat-radio-button>\n </mat-radio-group>\n</fieldset>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-radio-group"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".radiogroup-content{display:flex;flex-direction:column;gap:1rem}.radiogroup-content>label,.radiogroup-content>legend{font-weight:400;font-size:1.4rem;line-height:100%;color:#131313}.radiogroup-content>label>span,.radiogroup-content>legend>span{color:#d14014}.radiogroup-content .radiogroup{display:flex;align-items:center;gap:1rem;padding:8px 0}.fieldset-radio-content{height:6.6rem;border-color:#0000001f;border-radius:5px}.fieldset-radio-content .radiogroup{width:100%;height:100%;justify-content:space-around}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef])],e)}(),ui=0,hi=function(){function e(e,t){this.start=e,this.end=t}return e.prototype.getTotalCount=function(){return this.end-this.start+1},e.prototype.getRange=function(){var e=this;return Array.from({length:this.getTotalCount()},(function(t,n){return e.start-1+n}))},e}(),gi=function(){function e(e,t){this.elementRef=e,this._changeDetectorRef=t,this._name="gipi-range-page-"+ui++,this._startPage=1,this._endPage=1,this.id=this._name,this.name=this._name,this.label="",this.tooltip="",this.placeholderStart="",this.placeholderEnd="",this.help="",this._min=1,this._max=100,this._step=1,this._required=!1,this._disabled=!1,this.onChange=function(e){},this.onTouched=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"min",{get:function(){return Je.isNumber(this._min)?this._min:1},set:function(e){this._min=e,this._initPage()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return Je.isNumber(this._max)?this._max:100},set:function(e){this._max=e,this._initPage()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"step",{get:function(){return Je.isNumber(this._step)?this._step:1},set:function(e){this._step=e,this._initPage()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"formattedValue",{get:function(){return""},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this._initPage()},e.prototype.ngOnDestroy=function(){},e.prototype.writeValue=function(e){ze.isNull(e)||(this._startPage=e.start||this._startPage,this._endPage=e.end||this._endPage),this._changeDetectorRef.detectChanges()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},e.prototype._initPage=function(){this._startPage=this.min,this._endPage=Math.min(this._startPage+this.step-1,this.max)},e.prototype.updateEndPage=function(){this.disabled||(this._startPage<this.min?this._startPage=this.min:this._startPage>this.max&&(this._startPage=this.max),this._endPage<this._startPage?this._endPage=this._startPage:this._endPage>this._startPage+(this.step-1)&&(this._endPage=Math.min(this._startPage+this.step-1,this.max)),this._propagateChange())},e.prototype.updateStartPage=function(){this.disabled||(this._endPage>this.max?this._endPage=this.max:this._endPage>this.max&&(this._endPage=this.max),this._startPage>this._endPage?this._startPage=this._endPage:this._startPage<this._endPage-(this.step+1)&&(this._startPage=Math.max(this._endPage-this.step+1,this.min)),this._propagateChange())},e.prototype.previous=function(){if(!this.disabled){var e=Math.max(this._startPage-this.step+1,this.min),t=Math.min(e+this.step-1,this.max);t>=this.min&&(this._startPage=e,this._endPage=t,this._propagateChange())}},e.prototype.next=function(){if(!this.disabled){var e=Math.min(this._startPage+this.step,this.max),t=Math.min(e+this.step-1,this.max);(e===this.max||t>this.max)&&(t=e),t<=this.max&&(this._startPage=e,this._endPage=t,this._propagateChange())}},e.prototype.selectText=function(e){!this.disabled&&e&&setTimeout((function(){return e.select()}),0)},e.prototype._propagateChange=function(){this.onChange(new hi(this._startPage,this._endPage)),this.onTouched()},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholderStart",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholderEnd",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"help",void 0),we([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"min",null),we([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"max",null),we([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"step",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"required",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disabled",null),e=n=we([t.Component({selector:"gipi-range-page",template:'<label *ngIf="label"\n class="input-label"\n [attr.for]="id">\n {{ label }}\n <span *ngIf="required"> * </span>\n <gipi-helpful-tip *ngIf="tooltip && label"\n [tooltip]="tooltip">\n </gipi-helpful-tip>\n</label>\n\n<div class="input-content">\n <div class="prefix"\n [class.disabled]="disabled"\n (click)="previous()">\n <mat-icon>chevron_left</mat-icon>\n </div>\n <input #startInput\n matInput\n class="input-element"\n type="number"\n [attr.id]="id"\n [attr.name]="name"\n [min]="min"\n [max]="max"\n [maxlength]="10"\n [placeholder]="placeholderStart"\n [disabled]="disabled"\n [required]="required"\n [readOnly]="false"\n [autocomplete]="\'off\'"\n [autofocus]="false"\n [(ngModel)]="_startPage"\n (keyup)="updateEndPage()"\n (focus)="selectText(startInput)"\n (click)="selectText(startInput)" />\n <div class="infix">\n a\n </div>\n <input #endInput\n matInput\n class="input-element"\n type="number"\n [attr.id]="id"\n [attr.name]="name"\n [min]="_startPage"\n [max]="max"\n [maxlength]="10"\n [placeholder]="placeholderEnd"\n [disabled]="disabled"\n [required]="required"\n [readOnly]="false"\n [autocomplete]="\'off\'"\n [autofocus]="false"\n [(ngModel)]="_endPage"\n (keyup)="updateStartPage()"\n (focus)="selectText(endInput)"\n (click)="selectText(endInput)" />\n <div class="suffix"\n [class.disabled]="disabled"\n (click)="next()">\n <mat-icon>chevron_right</mat-icon>\n </div>\n</div>\n\n<small *ngIf="help"\n class="input-help">\n {{ help }}\n</small>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:[":host{display:flex;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}:host .input-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}:host .input-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}:host .input-content{display:flex;font-family:inherit;font-size:inherit;color:inherit;height:4rem;background:#fff;border:1px solid #0000001f;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.6rem}:host .input-content .input-element{padding:.75rem .8rem;border:none;outline:0;background-color:transparent;flex:1;color:inherit;caret-color:#696969;min-width:0;text-align:center;margin:0!important}:host .input-content .input-element::-webkit-inner-spin-button,:host .input-content .input-element::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;opacity:0}:host .input-content:has(.input-element:disabled){color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;cursor:not-allowed}:host .input-content:has(.input-element:disabled) .suffix>mat-icon{color:#bbbdc1!important}:host .input-content .input-element:disabled{cursor:not-allowed}:host .input-content .infix,:host .input-content .prefix,:host .input-content .suffix{display:flex;align-items:center;justify-content:center;padding-block:.75rem;padding-inline:.8rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:.2s;background-color:#e0313e}:host .input-content .infix>mat-icon,:host .input-content .prefix>mat-icon,:host .input-content .suffix>mat-icon{width:2rem;height:2rem;font-size:2rem;color:#fff}:host .input-content .infix:not(.infix):not(.disabled):hover,:host .input-content .prefix:not(.infix):not(.disabled):hover,:host .input-content .suffix:not(.infix):not(.disabled):hover{background-color:#cc2d38}:host .input-content .infix:not(.infix):not(.disabled):active,:host .input-content .prefix:not(.infix):not(.disabled):active,:host .input-content .suffix:not(.infix):not(.disabled):active{background-color:#9f232c}:host .input-content .prefix.disabled,:host .input-content .suffix.disabled{background-color:#d1d2d4}:host .input-content .prefix.disabled>mat-icon,:host .input-content .suffix.disabled>mat-icon{color:#9a9da2}:host .input-content .prefix{border-right:1px solid #0000001f;border-radius:.6rem 0 0 .6rem;cursor:pointer}:host .input-content .infix{width:1rem;padding:0;background-color:transparent}:host .input-content .suffix{border-left:1px solid #0000001f;border-radius:0 .6rem .6rem 0;cursor:pointer}:host .input-help{flex:1;font-size:1rem;font-weight:500;margin-top:-.4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}::-webkit-input-placeholder{color:#bbbdc1}:-moz-placeholder{color:#bbbdc1}::-moz-placeholder{color:#bbbdc1}:-ms-input-placeholder{color:#bbbdc1}"]}),Ce("design:paramtypes",[t.ElementRef,t.ChangeDetectorRef])],e)}(),mi=0,fi=function(){function e(e,t){this.elementRef=e,this._changeDetectorRef=t,this._name="gipi-range-slider-"+mi++,this.id=this._name,this.name=this._name,this.label="",this.help="",this.min=1,this.max=100,this._maxRange=5,this._fromValue=1,this._toValue=1,this._step=1,this._disabled=!1,this._required=!1,this.onChange=function(){},this.onTouched=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"maxRange",{get:function(){return this._maxRange||5},set:function(e){if(!e||e<=0)throw new Error('Minimum value for "maxRange" must be 1');this._maxRange=e||5},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fromValue",{get:function(){return this._fromValue||1},set:function(e){if(!e||e<=0)throw new Error('Minimum value for "from" must be 1');this._fromValue=e||1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"toValue",{get:function(){return this._toValue||1},set:function(e){if(!e||e<=0)throw new Error('Minimum value for "to" must be 1');this._toValue=e||1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"step",{get:function(){return this._step||1},set:function(e){if(!e||e<=0)throw new Error('Minimum value for "step" must be 1');this._step=e||1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){this._fillSlider(),this._setToggleAccessible()},e.prototype.ngOnDestroy=function(){},e.prototype.writeValue=function(e){e&&(this.fromValue=e.from,this.toValue=e.to,this.fromSlider&&this.toSlider&&(this.fromSlider.nativeElement.value=this.fromValue.toString(),this.toSlider.nativeElement.value=this.toValue.toString(),this._fillSlider(),this._setToggleAccessible()))},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},e.prototype.controlFromInput=function(e){var t=Oe(e?[this.fromValue,this.toValue]:this._getParsed(this.fromSlider.nativeElement,this.toSlider.nativeElement),2),n=t[0],i=t[1];n=this._roundToStep(n),i=this._roundToStep(i),this._fillSlider(),this._setToggleAccessible(),n>i&&(this.fromValue=i),this.fromSlider.nativeElement.value=this.fromValue.toString(),this._notifyValueChange()},e.prototype.controlToInput=function(e){var t=Oe(e?[this.fromValue,this.toValue]:this._getParsed(this.fromSlider.nativeElement,this.toSlider.nativeElement),2),n=t[0],i=t[1];n=this._roundToStep(n),i=this._roundToStep(i),this._fillSlider(),this._setToggleAccessible(),this.toValue=n<=i?i:n,this.toSlider.nativeElement.value=this.toValue.toString(),this._notifyValueChange()},e.prototype.controlFromSlider=function(){var e=Oe(this._getParsed(this.fromSlider.nativeElement,this.toSlider.nativeElement),2),t=e[0],n=e[1];if(t=this._roundToStep(t),(n=this._roundToStep(n))-t>this.maxRange&&(t=n-this.maxRange),this._fillSlider(),this._setToggleAccessible(),n-t===this.maxRange){var i=Oe(this._getParsed(this.fromSlider.nativeElement,this.toSlider.nativeElement),2),o=i[0],r=i[1];o=this._roundToStep(o),(r=this._roundToStep(r))-o>this.maxRange&&(r=o+this.maxRange),this._fillSlider(),this.toValue=o<=r?r:o,this.toSlider.nativeElement.value=this.toValue.toString()}this.fromValue=t>=n?n:t,this.fromSlider.nativeElement.value=this.fromValue.toString(),this._notifyValueChange()},e.prototype.controlToSlider=function(){var e=Oe(this._getParsed(this.fromSlider.nativeElement,this.toSlider.nativeElement),2),t=e[0],n=e[1];if(t=this._roundToStep(t),(n=this._roundToStep(n))-t>this.maxRange&&(n=t+this.maxRange),this._fillSlider(),this._setToggleAccessible(),n-t===this.maxRange){var i=Oe(this._getParsed(this.fromSlider.nativeElement,this.toSlider.nativeElement),2),o=i[0],r=i[1];o=this._roundToStep(o),(r=this._roundToStep(r))-o>this.maxRange&&(o=r-this.maxRange),this._fillSlider(),this.fromValue=o>=r?r:o,this.fromSlider.nativeElement.value=this.fromValue.toString()}this.toValue=t<=n?n:t,this.toSlider.nativeElement.value=this.toValue.toString(),this._notifyValueChange()},e.prototype._getParsed=function(e,t){return[parseInt(e.value,10),parseInt(t.value,10)]},e.prototype._fillSlider=function(){var e=this.fromSlider.nativeElement,t=this.toSlider.nativeElement,n=Number(t.max)-Number(t.min),i=this.fromValue-Number(e.min),o=this.toValue-Number(t.min);t.style.background="linear-gradient(\n to right,\n #e0e1e2 0%,\n #e0e1e2 "+i/n*100+"%,\n #f1a0a6 "+i/n*100+"%,\n #f1a0a6 "+o/n*100+"%,\n #e0e1e2 "+o/n*100+"%,\n #e0e1e2 100%)"},e.prototype._setToggleAccessible=function(){var e=this.fromSlider.nativeElement,t=this.toSlider.nativeElement,n=parseInt(e.value,10),i=parseInt(t.value,10);n<=parseInt(e.min,10)&&i<=parseInt(t.min,10)?(e.style.zIndex="1",t.style.zIndex="2"):(n>=parseInt(e.max,10)&&parseInt(t.max,10),e.style.zIndex="2",t.style.zIndex="1")},e.prototype._roundToStep=function(e){return Math.round(e/this.step)*this.step},e.prototype._notifyValueChange=function(){this.onChange({from:this.fromValue,to:this.toValue})},e.prototype.onBlur=function(){this.onTouched()},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},we([t.ViewChild("fromSlider",{static:!1}),Ce("design:type",t.ElementRef)],e.prototype,"fromSlider",void 0),we([t.ViewChild("toSlider",{static:!1}),Ce("design:type",t.ElementRef)],e.prototype,"toSlider",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"help",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"min",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"max",void 0),we([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"maxRange",null),we([t.Input("from"),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"fromValue",null),we([t.Input("to"),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"toValue",null),we([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"step",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disabled",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"required",null),e=n=we([t.Component({selector:"gipi-range-slider",exportAs:"gipiRangeSlider",template:'<label *ngIf="label"\n class="input-label"\n [attr.for]="id">\n {{ label }}\n <span *ngIf="required"> * </span>\n</label>\n\n<div class="slider-wrapper">\n \x3c!-- <input type="number"\n [min]="min"\n [max]="max"\n [step]="step"\n [(ngModel)]="fromValue"\n (ngModelChange)="controlFromInput(true)"\n (input)="controlFromInput(false)"\n (blur)="onBlur()" /> --\x3e\n <span class="value min">\n {{ min }}\n </span>\n <div class="sliders-control">\n <input #fromSlider\n id="fromSlider"\n type="range"\n class="from-value"\n [min]="min"\n [max]="max"\n [value]="fromValue"\n (input)="controlFromSlider()"\n (mouseup)="controlFromSlider()"\n (blur)="onBlur()" />\n <input #toSlider\n id="toSlider"\n type="range"\n class="to-value"\n [min]="min"\n [max]="max"\n [value]="toValue"\n (input)="controlToSlider()"\n (mouseup)="controlToSlider()"\n (blur)="onBlur()" />\n </div>\n <span class="value max">\n {{ max }}\n </span>\n \x3c!-- <input type="number"\n [min]="min"\n [max]="max"\n [step]="step"\n [(ngModel)]="toValue"\n (ngModelChange)="controlToInput(true)"\n (input)="controlToInput(false)"\n (blur)="onBlur()" /> --\x3e\n</div>\n<span class="value min">\n {{ fromValue }} - {{ toValue }}\n</span>\n<small *ngIf="help"\n class="input-help">\n {{ help }}\n</small>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-range-slider"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:flex;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}:host .input-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}:host .input-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}:host .slider-wrapper{display:flex;align-items:center;justify-content:space-between;gap:1.6rem}:host .slider-wrapper>input{display:flex;font-family:inherit;font-size:inherit;color:inherit;text-align:center;padding:.75rem .8rem;background:#fff;border:1px solid #0000001f;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.6rem;outline:0}:host .sliders-control{display:flex;align-items:center;justify-content:center;padding:2rem;position:relative;flex:1}:host .from-value,:host .to-value{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:.6rem;border-radius:.4rem;width:100%;position:absolute;background-color:#e0e1e2;pointer-events:none;outline:0}:host .from-value::-webkit-slider-thumb,:host .to-value::-webkit-slider-thumb{-webkit-appearance:none;display:block;width:1.4rem;height:1.4rem;border-radius:50%;background-color:#e0313e;pointer-events:all;box-shadow:0 .5px 0 0 rgba(0,0,0,.08),0 1px 1px 0 rgba(0,0,0,.14);cursor:-webkit-grab;cursor:grab;outline:0}:host .from-value::-webkit-slider-thumb:hover,:host .to-value::-webkit-slider-thumb:hover{background-color:#cc2d38}:host .from-value::-webkit-slider-thumb:active,:host .to-value::-webkit-slider-thumb:active{box-shadow:inset 0 0 3px #e0313e,0 0 9px #e0313e;-webkit-box-shadow:inset 0 0 3px #e0313e,0 0 9px #e0313e;cursor:-webkit-grabbing;cursor:grabbing}:host input[type=number]{border:1px solid #0000001f;color:#131313;width:50px;height:30px;font-size:20px;outline:0}:host input[type=number]::-webkit-inner-spin-button,:host input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;opacity:0}:host #fromSlider{height:0;z-index:1}"]}),Ce("design:paramtypes",[t.ElementRef,t.ChangeDetectorRef])],e)}(),yi=function(){function e(e,n){this._elementRef=e,this._changeDetectorRef=n,this.isButtonPrimary=this._hasHostAttributes("gipi-primary"),this.isButtonSecondary=this._hasHostAttributes("gipi-secondary"),this.required=!1,this.multiple=!1,this.disabled=!1,this.onOptionClick=new t.EventEmitter,this.onChange=new t.EventEmitter,this.onModelChange=function(){},this.onModelTouched=function(){}}var n;return n=e,e.prototype.ngOnInit=function(){},e.prototype.writeValue=function(e){this.value=e,this._changeDetectorRef.markForCheck()},e.prototype.registerOnChange=function(e){this.onModelChange=e},e.prototype.registerOnTouched=function(e){this.onModelTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},e.prototype.getOptionLabel=function(e){return this.optionLabel?ze.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e},e.prototype.getOptionValue=function(e){return this.optionValue?ze.resolveFieldData(e,this.optionValue):this.optionLabel||void 0===e.value?e:e.value},e.prototype.isOptionDisabled=function(e){return this.optionDisabled?ze.resolveFieldData(e,this.optionDisabled):void 0!==e.disabled&&e.disabled},e.prototype.onItemClick=function(e,t,n){if(!this.disabled&&!this.isOptionDisabled(t)){if(this.multiple)this.isSelected(t)?this.removeOption(t):this.value=Ee(this.value||[],[this.getOptionValue(t)]),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value});else{var i=this.getOptionValue(t);this.value!==i&&(this.value=this.getOptionValue(t),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}this.onOptionClick.emit({originalEvent:e,option:t,index:n})}},e.prototype.isSelected=function(e){var t,n,i=!1,o=this.getOptionValue(e);if(this.multiple){if(this.value&&Array.isArray(this.value))try{for(var r=ke(this.value),a=r.next();!a.done;a=r.next()){var s=a.value;if(ze.equals(s,o,this.dataKey)){i=!0;break}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}}else i=ze.equals(this.getOptionValue(e),this.value,this.dataKey);return i},e.prototype.removeOption=function(e){var t=this;this.value=this.value.filter((function(n){return!ze.equals(n,t.getOptionValue(e),t.dataKey)}))},e.prototype.onBlur=function(){this.onModelTouched()},e.prototype._getHostElement=function(){return this._elementRef.nativeElement},e.prototype._hasHostAttributes=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.some((function(t){return e._getHostElement().hasAttribute(t)}))},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"arialLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"dataKey",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"options",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"optionLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"optionValue",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"optionDisabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"multiple",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onOptionClick",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onChange",void 0),e=n=we([t.Component({selector:"gipi-select-button[gipi-primary], gipi-select-button[gipi-secondary]",exportAs:"gipiSelectButton",template:'<div class="select-button-content"\n [attr.id]="id"\n [attr.aria-label]="arialLabel">\n\n <span *ngIf="label"\n class="label">\n {{ label }}\n <span *ngIf="required && label">*</span>\n </span>\n\n <div class="select-button"\n role="group">\n\n <div *ngFor="let option of options; let i = index"\n role="button"\n #btn\n class="button"\n [attr.aria-pressed]="isSelected(option)"\n [ngClass]="{\'selected\': isSelected(option),\n \'disabled\': disabled || isOptionDisabled(option),\n \'button-primary\': isButtonPrimary,\n \'button-secondary\': isButtonSecondary}"\n (click)="onItemClick($event, option, i)"\n (keydown.enter)="onItemClick($event, option, i)"\n [attr.title]="option.title"\n [attr.aria-label]="option.label"\n (blur)="onBlur()"\n [attr.aria-labelledby]="this.getOptionLabel(option)">\n {{ getOptionLabel(option) }}\n </div>\n\n </div>\n</div>\n',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-select-button"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".select-button-content{display:flex;flex-direction:column;gap:1rem}.select-button-content .label{font-weight:400;font-size:1.4rem;line-height:100%;color:#131313}.select-button-content .label>span{color:#d14014}.select-button-content .select-button{display:flex;flex-direction:row}.select-button-content .select-button .button{width:100%;padding:1.2rem 1.6rem;font-weight:700;font-size:1.3rem;line-height:100%;text-align:center;cursor:pointer;background-color:#fff;border:1px solid #0000001f;color:#696969;height:4rem;display:flex;align-items:center;justify-content:center}.select-button-content .select-button .button:hover{background-color:#f5f5f6}.select-button-content .select-button .button:first-child{border-top-left-radius:5px;border-bottom-left-radius:5px}.select-button-content .select-button .button:last-child{border-top-right-radius:5px;border-bottom-right-radius:5px}.select-button-content .select-button .button.disabled{pointer-events:none!important;cursor:not-allowed!important;border-color:#e0e1e2!important;color:#d1d2d4!important}.select-button-content .select-button .button.disabled.selected{background-color:#e0e1e2!important}.select-button-content .select-button .button.button-primary.selected{background-color:#e0313e;border-color:#e0313e;color:#fff}.select-button-content .select-button .button.button-primary:hover.selected{background-color:#cc2d38}.select-button-content .select-button .button.button-secondary.selected{background-color:#9a9da2;border-color:#9a9da2;color:#fff}.select-button-content .select-button .button.button-secondary:hover.selected{background-color:#8c8f93}"]}),Ce("design:paramtypes",[t.ElementRef,t.ChangeDetectorRef])],e)}(),vi=function(){function e(){var e=this;this._overlayVisible=!1,this.disabled=!1,this.required=!1,this.property="description",this.options=[],this.trackyBy="id",this.onClick=new t.EventEmitter,this.onShowOverlay=new t.EventEmitter,this.onModelChange=new t.EventEmitter,this.onSelectionChange=new t.EventEmitter,this.trackByOption=function(t,n){return e.trackyBy?n[e.trackyBy]:n},this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"model",{get:function(){return this._modelValue},set:function(e){this._modelValue=e,this.onModelChange.emit(this._modelValue),this.onChange(this._modelValue),this.onTouch(this._modelValue)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"optionSelectedText",{get:function(){return ze.isNull(this.model)&&!Be.isEmpty(this.placeholder)?this.placeholder:ze.isNull(this.model)?"":this.getPropertyValue(this.model)},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.writeValue=function(e){this.model=e},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.toggleOverlay=function(){this.disabled||(this._overlayVisible=!this._overlayVisible)},e.prototype.getPropertyValue=function(e){return ze.isNewModel(e)?Be.EMPTY:ze.isNull(this.propertyFn)?this._getValue(e,this.property):this.propertyFn(e)},e.prototype._getValue=function(e,t){for(var n=t.split("."),i=e,o=0;o<n.length;o++)if((i=Reflect.get(i,n[o]))&&o===n.length-1)return i},e.prototype.isOptionActive=function(e){return!ze.isNull(this._modelValue)&&(Be.isEmpty(this.property)?e===this._modelValue:e[this.property]===this._modelValue[this.property])},e.prototype.onClickOption=function(e){this.model=e,this.onSelectionChange.emit(e)},we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"iconPrefix",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"iconPrefixWidth",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"iconPrefixHeight",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIconPrefix",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"iconSuffix",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"iconSuffixWidth",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"iconSuffixHeight",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIconSuffix",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"property",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"propertyFn",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"options",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"trackyBy",void 0),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"model",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onShowOverlay",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onModelChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onSelectionChange",void 0),e=n=we([t.Component({selector:"gipi-select",exportAs:"gipiSelect",template:'<div [attr.id]="id"\n [attr.name]="name"\n [attr.aria-label]="ariaLabel"\n role="group"\n class="select-content">\n <mat-label *ngIf="label">\n {{ label }}\n <span *ngIf="required && label">*</span>\n </mat-label>\n\n <div role="menu"\n class="select"\n [class.disabled]="disabled"\n (click)="onClick.emit($event); toggleOverlay()">\n\n <mat-icon *ngIf="svgIconPrefix || iconPrefix"\n [svgIcon]="svgIconPrefix"\n [style.width.px]="iconPrefixWidth"\n [style.height.px]="iconPrefixHeight">\n {{ (!svgIconPrefix && iconPrefix) ? iconPrefix : \'\' }}\n </mat-icon>\n\n <span role="text"> {{ optionSelectedText }} </span>\n\n <mat-icon *ngIf="svgIconSuffix || iconSuffix"\n [svgIcon]="svgIconSuffix"\n [style.width.px]="iconSuffixWidth"\n [style.height.px]="iconSuffixHeight">\n {{ (!svgIconSuffix && iconSuffix) ? iconSuffix : \'\' }}\n </mat-icon>\n\n <mat-icon class="icon-select"> {{ _overlayVisible ? \'expand_less\' : \'expand_more\' }} </mat-icon>\n </div>\n\n</div>\n\n<gipi-overlay [(visible)]="_overlayVisible"\n (onShow)="onShowOverlay.emit()"\n [appendTo]="\'body\'">\n <ul class="select-overlay-content"\n role="menu">\n <li *ngFor="let option of options; trackBy: trackByOption"\n role="menuitem"\n [value]="option"\n (click)="onClickOption(option)"\n [class.active]="isOptionActive(option)">\n {{ getPropertyValue(option) }}\n </li>\n </ul>\n</gipi-overlay>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-select"},changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,styles:[":host{display:block;min-width:0;max-width:100%;flex:1}.select-content{display:flex;flex-direction:column;gap:1rem}.select-content .label{font-weight:400;font-size:1.4rem;line-height:100%;color:#131313}.select-content .label>span{color:#d14014}.select-content .select{background-color:#fff;border:1px solid #e0e1e2;color:#6d6f73;border-radius:16px;padding:12px;gap:8px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;transition:.2s}.select-content .select>span{font-weight:600;font-size:1.4rem;line-height:100%;flex:1}.select-content .select>mat-icon{color:#6d6f73;fill:#6d6f73;max-height:16px}.select-content .select .icon-select{width:16px;height:16px;font-size:1.6rem}.select-overlay-content{list-style:none;max-height:256px;display:flex;flex-direction:column;gap:.8px}.select-overlay-content>li{height:3em;line-height:3em;border-radius:4px;padding:0 16px;text-align:left;cursor:pointer;color:#8c8f93;font-size:1.3rem}.select-overlay-content>li:hover{background-color:#e0e1e2;color:#6d6f73;font-weight:600}.active{background-color:#f3e7e7;color:#e0313e}.disabled{border:1px solid #d1d2d4!important;color:#f5f5f6!important;cursor:not-allowed!important}"]}),Ce("design:paramtypes",[])],e)}(),bi=["xl","lg","md","sm","xs"],_i=new Map([[bi[0],"(min-width: 1920px)"],[bi[1],"(min-width: 1366px)"],[bi[2],"(min-width: 768px)"],[bi[3],"(min-width: 600px)"],[bi[4],"(min-width: 0px)"]]),wi=function(e){function n(){var t=e.call(this)||this;return t._size$=ie.fromEvent(window,"resize").pipe(oe.startWith(t._getScreenSize()),oe.map((function(e){return t._getScreenSize()})),oe.distinctUntilChanged(),oe.shareReplay(1)),t}return be(n,e),Object.defineProperty(n.prototype,"size$",{get:function(){return this._size$},enumerable:!1,configurable:!0}),n.prototype._getScreenSize=function(){var e=Oe(Array.from(_i.entries()).filter((function(e){var t=Oe(e,2),n=(t[0],t[1]);return window.matchMedia(n).matches})),1),t=Oe(e[0],1)[0];return void 0===t?"never":t},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n},token:n,providedIn:"root"}),n=we([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[])],n)}(Ke),xi=function(e){function n(t){var n=e.call(this)||this;return n.router=t,n.menuItems=[],n.isOpened=!1,n.currentUrl=new ie.BehaviorSubject(void 0),n.router.events.subscribe((function(e){e instanceof s.NavigationEnd&&n.currentUrl.next(e.url)})),n}return be(n,e),n.prototype.close=function(){this.isOpened=!1,this._collapseAllMenu()},n.prototype.open=function(){this.isOpened=!0,this._collapseAllMenu()},n.prototype.toggle=function(){this.isOpened=!this.isOpened,this._collapseAllMenu()},n.prototype._collapseAllMenu=function(){this.menuItems.forEach((function(e){return e.expanded=!1}))},n.ctorParameters=function(){return[{type:s.Router}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(s.Router))},token:n,providedIn:"root"}),n=we([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[s.Router])],n)}(Ke),Ci=function(){function e(e,t){this._navService=e,this._breakpointObserverService=t}var n;return n=e,e.prototype.ngOnInit=function(){},e.prototype.ngAfterContentInit=function(){var e=this;this.isScreenLarge.subscribe((function(t){t&&e._navService.open()}))},Object.defineProperty(e.prototype,"isOpened",{get:function(){return ie.of(this._navService.isOpened)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isScreenLarge",{get:function(){return this._breakpointObserverService.size$.pipe(oe.map((function(e){return"xs"!==e&&"sm"!==e&&"md"!==e})))},enumerable:!1,configurable:!0}),e.prototype.onClickBackdrop=function(){var e=this;this._navService.isOpened&&this.isScreenLarge.subscribe((function(t){t||e._navService.close()}))},e.prototype.onResize=function(e){var t=this;this.isScreenLarge.subscribe((function(e){e?t._navService.open():t._navService.close()}))},e.ctorParameters=function(){return[{type:xi},{type:wi}]},we([t.HostListener("window:resize",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[UIEvent]),Ce("design:returntype",void 0)],e.prototype,"onResize",null),e=n=we([t.Component({selector:"gipi-sidenav-container",exportAs:"gipiSidenavContainer",template:'<mat-sidenav-container class="sidenav-container"\n (backdropClick)="onClickBackdrop()">\n <ng-content select="gipi-sidenav"> </ng-content>\n\n <div [class.small-container]="((isScreenLarge | async) && (isOpened | async))"\n [class.large-container]="!((isScreenLarge | async) && (isOpened | async))"\n (click)="onClickBackdrop()">\n <ng-content> </ng-content>\n </div>\n</mat-sidenav-container>\n',encapsulation:t.ViewEncapsulation.None,providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-sidenav-container"},styles:[".sidenav-container{height:calc(100vh - 66px - 8px);width:100vw;overflow:hidden;background-color:#fff}.sidenav-container .small-container{margin-left:248px;height:100%;position:relative}.sidenav-container .large-container{margin-left:76px;height:100%;position:relative}@media screen and (max-width:1365px){.large-container,.small-container{margin-left:76px!important}}"]}),Ce("design:paramtypes",[xi,wi])],e)}(),Ii=function(){function e(e,n,i){this._navService=e,this._breakpointObserverService=n,this._router=i,this._levelOneMenuCollapsableSelected=null,this._levelTwoMenuCollapsableSelected=null,this._mouseEnter=!1,this._menuItems=[],this.labelToggle="Retrair menu",this.showTagNewIntegration=!1,this.showIntegration=!1,this.showConfiguration=!1,this.onClickMenuItem=new t.EventEmitter,this.onClickMenuIntegration=new t.EventEmitter,this.onClickMenuConfiguration=new t.EventEmitter}var n;return n=e,Object.defineProperty(e.prototype,"menuItems",{get:function(){return this._menuItems},set:function(e){this._menuItems=e},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){this._navService.sidenav=this.sidenav,this._navService.menuItems=this.menuItems},Object.defineProperty(e.prototype,"isOpened",{get:function(){return ie.of(this._navService.isOpened)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isScreenLarge",{get:function(){return this._breakpointObserverService.size$.pipe(oe.map((function(e){return"xs"!==e&&"sm"!==e&&"md"!==e})))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"submenuBackButtonName",{get:function(){return ze.isNull(this._levelOneMenuCollapsableSelected)&&ze.isNull(this._levelTwoMenuCollapsableSelected)?ie.of("Voltar"):!ze.isNull(this._levelOneMenuCollapsableSelected)&&ze.isNull(this._levelTwoMenuCollapsableSelected)?ie.of(this._levelOneMenuCollapsableSelected.name):ze.isNull(this._levelOneMenuCollapsableSelected)||ze.isNull(this._levelTwoMenuCollapsableSelected)?void 0:ie.of(this._levelOneMenuCollapsableSelected.name+" / "+this._levelTwoMenuCollapsableSelected.name)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"levelMenuSelected",{get:function(){var e=this,t=[];return ze.isNull(this._levelOneMenuCollapsableSelected)&&ze.isNull(this._levelTwoMenuCollapsableSelected)?t=this.menuItems:!ze.isNull(this._levelOneMenuCollapsableSelected)&&ze.isNull(this._levelTwoMenuCollapsableSelected)?t=this._levelOneMenuCollapsableSelected.menuList:ze.isNull(this._levelOneMenuCollapsableSelected)||ze.isNull(this._levelTwoMenuCollapsableSelected)||(t=this._levelTwoMenuCollapsableSelected.menuList),Ot.isEmpty(t)||t.forEach((function(t){return t.id=e._toCamelCase(t.route)})),ie.of(t)},enumerable:!1,configurable:!0}),e.prototype.toggleSidenav=function(){this._levelOneMenuCollapsableSelected=null,this._levelTwoMenuCollapsableSelected=null,this.onMenuCollapsableReset(this.menuItems),this._navService.toggle()},e.prototype.onMenuCollapsableSelected=function(e){var t=this;setTimeout((function(){t._navService.isOpened||t._navService.open(),t._navService.isOpened&&(e.expanded=!0,!Ot.isEmpty(e.menuList)&&ze.isNull(t._levelOneMenuCollapsableSelected)?t._levelOneMenuCollapsableSelected=ze.clone(e):!Ot.isEmpty(e.menuList)&&ze.isNull(t._levelTwoMenuCollapsableSelected)&&(t._levelTwoMenuCollapsableSelected=ze.clone(e)))}))},e.prototype.onMenuCollapsableReset=function(e){var t=this;setTimeout((function(){for(var n=0;n<e.length;n++)e[n].expanded=!1,Ot.isEmpty(e[n].menuList)||t.onMenuCollapsableReset(e[n].menuList)}))},e.prototype.onMenuCollapsableGoBack=function(){var e=this;setTimeout((function(){ze.isNull(e._levelTwoMenuCollapsableSelected)?ze.isNull(e._levelOneMenuCollapsableSelected)?e.onMenuCollapsableReset(e.menuItems):e._levelOneMenuCollapsableSelected=null:e._levelTwoMenuCollapsableSelected=null}))},e.prototype.isMenuActive=function(e){return this._router.url.startsWith(e.route)},e.prototype.isMenuCollapsableActive=function(e){var t=this;if(Be.isEmpty(e.route))return!1;var n=this._router.url.includes(e.route),i=Ot.clone(this.menuItems);!ze.isNull(this._levelOneMenuCollapsableSelected)&&ze.isNull(this._levelTwoMenuCollapsableSelected)?i=Ot.clone(this._levelOneMenuCollapsableSelected.menuList):ze.isNull(this._levelTwoMenuCollapsableSelected)||(i=Ot.clone(this._levelTwoMenuCollapsableSelected.menuList));var o=i.filter((function(e){return!Ot.isEmpty(e.menuList)})).find((function(t){return t.route===e.route&&t.index===e.index&&t.type&&e.type}));if(n&&!ze.isNull(o)&&!Ot.isEmpty(o.menuList)){var r=o.menuList.find((function(e){return t._router.url.includes(e.route)}));if(ze.isNull(r)||Ot.isEmpty(r.menuList))return!ze.isNull(r);var a=r.menuList.find((function(e){return t._router.url.includes(e.route)}));return!ze.isNull(a)}return!1},e.prototype.onMenuItemSelected=function(e,t){var n=this;void 0===e&&(e=null),void 0===t&&(t=!0),t&&(this._levelOneMenuCollapsableSelected=null,this._levelTwoMenuCollapsableSelected=null,this.onMenuCollapsableReset(this.menuItems),this.isScreenLarge.subscribe((function(e){e||n._navService.close()}))),this.onClickMenuItem.emit(e)},e.prototype.getMenuName=function(e){return e.length<=35?e:e.slice(0,35)+"..."},e.prototype.onMouseEnter=function(){var e=this;this.isOpened.toPromise().then((function(t){t||(e._mouseEnter=!0,e.toggleSidenav())}))},e.prototype.onMouseLeave=function(){var e=this;this.isOpened.toPromise().then((function(t){t&&e._mouseEnter&&(e._mouseEnter=!1,e.toggleSidenav())}))},e.prototype._toCamelCase=function(e){return Be.isEmpty(e)?"":Be.replaceAccents(e).split(/[/\-]/).filter(Boolean).map((function(e,t){return 0===t?e.toLowerCase():e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()})).join("")},e.ctorParameters=function(){return[{type:xi},{type:wi},{type:s.Router}]},we([t.ViewChild("sidenav",{static:!1}),Ce("design:type",G.MatSidenav)],e.prototype,"sidenav",void 0),we([t.Input(),Ce("design:type",Array),Ce("design:paramtypes",[Array])],e.prototype,"menuItems",null),we([t.Input(),Ce("design:type",String)],e.prototype,"labelToggle",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showTagNewIntegration",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"iconIntegration",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIconIntegration",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"labelIntegration",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showIntegration",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"iconConfiguration",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIconConfiguration",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"labelConfiguration",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showConfiguration",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClickMenuItem",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClickMenuIntegration",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClickMenuConfiguration",void 0),e=n=we([t.Component({selector:"gipi-sidenav",exportAs:"gipiSidenav",template:'<mat-sidenav #sidenav\n class="sidenav"\n opened="true"\n [class.large-sidenav]="(isOpened | async)"\n [class.small-sidenav]="!(isOpened | async)"\n [disableClose]="(isScreenLarge | async)"\n [mode]="(isScreenLarge | async) ? \'side\' : \'over\'">\n\n \x3c!-- <div [ngClass]="{\'sidenav-content-menu\': true,\n \'show-bottom\': (showConfiguration || showIntegration)}"> --\x3e\n <div class="sidenav-content-menu">\n\n \x3c!-- Botão expandir e retrair o menu --\x3e\n <button [attr.id]="\'buttonToogleSidenav\'"\n [attr.name]="\'buttonToogleSidenav\'"\n class="toggle-sidenav"\n (click)="toggleSidenav(); _mouseEnter = false;">\n <mat-icon [@indicatorRotate]="(isOpened | async) ? \'opened\': \'closed\'">\n chevron_right\n </mat-icon>\n\n {{ ((labelToggle) && (isOpened | async)) ? labelToggle : \'\' }}\n </button>\n\n \x3c!-- Botão voltar do submenu --\x3e\n <div class="sidenav-action-menu sidenav-menu-collapsable">\n <a [attr.id]="\'buttonSubmenuBack\'"\n [attr.name]="\'buttonSubmenuBack\'"\n *ngIf="(isOpened | async) && (_levelOneMenuCollapsableSelected || _levelTwoMenuCollapsableSelected)"\n (click)="onMenuCollapsableGoBack()"\n (mouseenter)="!_mouseEnter && onMouseEnter()"\n (mouseleave)="_mouseEnter && onMouseLeave()">\n <mat-icon>\n arrow_back\n </mat-icon>\n <span>\n {{ (submenuBackButtonName | async) }}\n </span>\n </a>\n </div>\n\n \x3c!-- Se o menu item for do tipo submenu --\x3e\n <mat-nav-list class="sidenav-menu-list"\n (mouseenter)="onMouseEnter()"\n (mouseleave)="onMouseLeave()">\n <div class="sidenav-action-menu"\n *ngFor="let menu of (levelMenuSelected | async)">\n <a [attr.id]="menu.id"\n [attr.name]="menu.id"\n [class.menu-active]="isMenuActive(menu)"\n [routerLink]="menu.route"\n *ngIf="menu.type === \'ITEM\'"\n (click)="onMenuItemSelected(menu)">\n <mat-icon *ngIf="menu.icon">\n {{ menu.icon }}\n </mat-icon>\n <mat-icon *ngIf="menu.svgIcon"\n [svgIcon]="menu.svgIcon">\n </mat-icon>\n <span *ngIf="(isOpened | async)">\n {{ getMenuName(menu.name) }}\n </span>\n </a>\n\n <a [attr.id]="menu.id"\n [attr.name]="menu.id"\n [class.menu-active]="isMenuCollapsableActive(menu)"\n *ngIf="menu.type === \'COLLAPSABLE\'"\n (click)="onMenuCollapsableSelected(menu); onMenuItemSelected(menu, false)">\n <mat-icon *ngIf="menu.icon">\n {{ menu.icon }}\n </mat-icon>\n <mat-icon *ngIf="menu.svgIcon"\n [svgIcon]="menu.svgIcon">\n </mat-icon>\n <span *ngIf="(isOpened | async)">\n {{ getMenuName(menu.name) }}\n </span>\n <mat-icon *ngIf="(isOpened | async)">\n chevron_right\n </mat-icon>\n </a>\n </div>\n </mat-nav-list>\n </div>\n\n <div class="sidenav-action-menu sidenav-bottom-menu">\n <a [attr.id]="\'integracoes\'"\n [attr.name]="\'integracoes\'"\n *ngIf="showIntegration"\n (click)="onMenuItemSelected(null); onClickMenuIntegration.emit()">\n <mat-icon *ngIf="iconIntegration">\n {{ iconIntegration }}\n </mat-icon>\n <mat-icon *ngIf="svgIconIntegration"\n [svgIcon]="svgIconIntegration">\n </mat-icon>\n <span *ngIf="(labelIntegration) && (isOpened | async)">\n {{ labelIntegration }}\n </span>\n <div class="tag-new"\n [class.closed]="!(isOpened | async)"\n *ngIf="showTagNewIntegration">\n Novo\n </div>\n </a>\n\n <a [attr.id]="\'configuracoes\'"\n [attr.name]="\'configuracoes\'"\n *ngIf="showConfiguration"\n (click)="onMenuItemSelected(null); onClickMenuConfiguration.emit()">\n <mat-icon *ngIf="iconConfiguration">\n {{ iconConfiguration }}\n </mat-icon>\n <mat-icon *ngIf="svgIconConfiguration"\n [svgIcon]="svgIconConfiguration">\n </mat-icon>\n <span *ngIf="(labelConfiguration) && (isOpened | async)">\n {{ labelConfiguration }}\n </span>\n </a>\n </div>\n</mat-sidenav>',encapsulation:t.ViewEncapsulation.None,providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-sidenav"},animations:[ae.trigger("indicatorRotate",[ae.state("closed",ae.style({transform:"rotate(0deg)"})),ae.state("opened",ae.style({transform:"rotate(180deg)"})),ae.transition("expanded <=> collapsed",ae.animate("225ms cubic-bezier(0.4,0.0,0.2,1)"))])],styles:[".sidenav{padding:.8rem 1.2rem;border-radius:5px;background-color:#fff;position:fixed!important;top:66px!important;bottom:8px!important;border:0!important}.sidenav.small-sidenav{overflow-y:auto;width:76px}.sidenav.small-sidenav .sidenav-bottom-menu,.sidenav.small-sidenav .sidenav-content-menu .sidenav-menu-list .action-sidenav,.sidenav.small-sidenav .sidenav-content-menu .toggle-sidenav{text-align:center!important}.sidenav.large-sidenav{overflow-y:auto;width:248px}.sidenav .sidenav-content-menu{width:100%;background-color:#f5f5f6;border-radius:4px;display:flex;flex-direction:column;align-items:stretch;height:100%;flex:1}.sidenav .sidenav-content-menu .toggle-sidenav{all:unset;border-radius:4px;border:none;text-align:left;cursor:pointer;background-color:#e0313e;color:#fff;display:flex;align-items:center;gap:8px;padding:10px 16px}.sidenav .sidenav-content-menu .toggle-sidenav>mat-icon{width:2rem;height:2rem;font-size:2rem}.sidenav .sidenav-content-menu .toggle-sidenav:hover{background-color:#cc2d38}.sidenav .sidenav-content-menu .sidenav-menu-list{overflow-y:scroll;-ms-overflow-style:none;scrollbar-width:none;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.sidenav .sidenav-content-menu .sidenav-menu-list::-webkit-scrollbar{display:none}.menu-active{color:#e0313e!important;background-color:#e0e1e2!important}.menu-active>mat-icon,.menu-active>mat-icon svg,.menu-active>mat-icon svg path{color:#e0313e!important;fill:#e0313e!important}.sidenav-action-menu{cursor:pointer;display:flex}.sidenav-action-menu.sidenav-bottom-menu{flex-direction:column;gap:1rem;margin-top:1rem}.sidenav-action-menu a{flex:1;padding:16px;background-color:#f5f5f6;display:flex;align-items:center;gap:8px;cursor:pointer;font-size:1.4rem;font-weight:600;position:relative;overflow:hidden}.sidenav-action-menu a:hover{background-color:#e0e1e2}.sidenav-action-menu a>span{flex:1;line-height:2rem}.sidenav-action-menu a>mat-icon{width:2rem;height:2rem;font-size:2rem;line-height:2rem;color:#595959;fill:#595959}.sidenav-action-menu a>mat-icon svg,.sidenav-action-menu a>mat-icon svg path{color:#595959;fill:#595959}.sidenav-bottom-menu a{border-radius:4px}.sidenav-menu-collapsable a{background-color:#e0e1e2}.sidenav-menu-collapsable a:hover{background-color:#d1d2d4}.mat-list-base{padding-top:0!important}.mat-drawer-inner-container{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;overflow:hidden!important}.mat-drawer:not(.mat-drawer-side){box-shadow:none!important}.tag-new{display:flex;align-items:center;justify-content:center;background-color:#e0313e;color:#fff;padding:.2rem .6rem;font-size:1rem;line-height:1rem;border-radius:.4rem}.tag-new.closed{position:absolute;top:15px;right:20px;width:52px;z-index:1;transform:translateX(70%) translateY(-85%) rotate(45deg);transform-origin:center;overflow:hidden;font-size:.8rem!important;line-height:.8rem!important}"]}),Ce("design:paramtypes",[xi,wi,s.Router])],e)}(),Si=0,ki=function(){function e(e){this._changeDetectorRef=e,this._name="gipi-slide-toggle-"+Si++,this._slideToggleValue=!1,this.id=this._name,this.name=this._name,this.label="",this.help="",this._required=!1,this._disabled=!1,this.onChange=function(){},this.onTouched=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"slideToggleValue",{get:function(){return this._slideToggleValue},set:function(e){this._slideToggleValue=e,this.onChange(e),this.onTouched()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this.required!==e&&(this._required=le.coerceBooleanProperty(e),this._changeDetectorRef.markForCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this.disabled!==e&&(this._disabled=le.coerceBooleanProperty(e),this._changeDetectorRef.markForCheck())},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.writeValue=function(e){this.slideToggleValue=e,this._changeDetectorRef.markForCheck()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"help",void 0),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"required",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disabled",null),e=n=we([t.Component({selector:"gipi-slide-toggle",exportAs:"gipiSlideToggle",template:'<input class="toggle toggle-light"\n type="checkbox"\n [attr.id]="id"\n [attr.name]="name"\n [(ngModel)]="slideToggleValue" />\n<label class="toggle-btn"\n [attr.for]="id">\n</label>\n<label class="toggle-label"\n *ngIf="label"\n [attr.for]="id">\n {{ label }}\n</label>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],changeDetection:t.ChangeDetectionStrategy.OnPush,host:{class:"gipi-slide-toggle"},styles:[':host{display:flex;align-items:center;cursor:pointer}.toggle-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-left:1rem;cursor:pointer}.toggle{display:none}.toggle ::-moz-selection,.toggle :after::-moz-selection,.toggle :before::-moz-selection,.toggle+.toggle-btn::-moz-selection,.toggle::-moz-selection,.toggle:after::-moz-selection,.toggle:before::-moz-selection{background:0 0}.toggle ::selection,.toggle :after::selection,.toggle :before::selection,.toggle+.toggle-btn::selection,.toggle::selection,.toggle:after::selection,.toggle:before::selection{background:0 0}.toggle+.toggle-btn{display:block;width:40px;height:24px;outline:0;background:#e0e1e2;border-radius:22px;padding:4px;transition:.4s;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.toggle+.toggle-btn:after,.toggle+.toggle-btn:before{content:"";display:block;width:16px;height:16px;position:relative}.toggle+.toggle-btn:after{left:0;background:#8c8f93;border-radius:50%;transition:.2s}.toggle+.toggle-btn:before{display:none}.toggle:checked+.toggle-btn:after{left:50%;background:#414244}']}),Ce("design:paramtypes",[t.ChangeDetectorRef])],e)}(),Oi=0,Ei=function(){function e(e){this.elementRef=e,this._uniqueId=Oi++,this._name="gipi-split-button-"+this._uniqueId,this.idBtnDefault="gipi-split-button-default-"+this._uniqueId,this.idBtnMenu="gipi-split-button-menu-"+this._uniqueId,this.isSplitButtonPrimary=this._hasHostAttributes("gipi-primary"),this.isSplitButtonSecondary=this._hasHostAttributes("gipi-secondary"),this.isSplitButtonTertiary=this._hasHostAttributes("gipi-tertiary"),this.isSplitButtonAction=this._hasHostAttributes("gipi-action"),this.id=this._name,this.name=this._name,this.type="button",this.ariaLabel="",this.title="",this.label="",this.disabled=!1,this.loading=!1,this.tooltip="",this.splitOptions=[],this.onOpenPopover=new t.EventEmitter,this.onClosePopover=new t.EventEmitter,this.onClick=new t.EventEmitter(!0),this.onFocus=new t.EventEmitter(!0),this.onBlur=new t.EventEmitter(!0)}var n;return n=e,e.prototype.ngOnInit=function(){},e.prototype.ngOnDestroy=function(){this.popoverTrigger&&this.popoverTrigger.destroyPopover()},e.prototype.getHostElement=function(){return this.elementRef.nativeElement},e.prototype._hasHostAttributes=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.some((function(t){return e.getHostElement().hasAttribute(t)}))},e.prototype.btnIdAndName=function(){var e=Oi++;return{btnDefault:"gipi-split-button-default-"+e,btnMenu:"gipi-split-button-menu-"+e}},e.prototype.getInternalButtonClass=function(e){return{"button-default":e,"button-menu":!e,"button-primary":this.isSplitButtonPrimary,"button-secondary":this.isSplitButtonSecondary,"button-tertiary":this.isSplitButtonTertiary,"button-action":this.isSplitButtonAction}},e.prototype.showPopover=function(){this.disabled||this.loading||this.popoverTrigger.openPopover()},e.prototype.closePopover=function(){this.disabled||this.loading||this.popoverTrigger.closePopover()},e.prototype.handleClick=function(e){this.disabled||this.loading||(this.onClick.emit(e),this.closePopover(),e.stopPropagation())},e.prototype.handleFocus=function(e){this.disabled||this.loading||(this.onFocus.emit(e),e.stopPropagation())},e.prototype.handleBlur=function(e){this.disabled||this.loading||(this.onBlur.emit(e),e.stopPropagation())},e.prototype.handleClickBtnMenu=function(e){this.disabled||this.loading||(ze.isNull(this.popoverTrigger)||this.popoverTrigger.togglePopover(),e.stopPropagation())},e.prototype.handleClickBtnSplitOption=function(e){this.disabled||this.loading||!e||e.disabled||!e.clickFn||(e.clickFn(),this.closePopover())},e.prototype.onResize=function(e){this.popoverTrigger&&(this.popoverTrigger.closePopover(),e.stopPropagation())},e.ctorParameters=function(){return[{type:t.ElementRef}]},we([t.ViewChild(gn,{static:!1}),Ce("design:type",gn)],e.prototype,"popoverTrigger",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"type",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"title",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"buttonClass",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),we([t.Input("options"),Ce("design:type",Array)],e.prototype,"splitOptions",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onOpenPopover",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClosePopover",void 0),we([t.Output("click"),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),we([t.Output("focus"),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),we([t.Output("blur"),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),we([t.HostListener("window:resize",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[UIEvent]),Ce("design:returntype",void 0)],e.prototype,"onResize",null),e=n=we([t.Component({selector:"gipi-split-button[gipi-primary], gipi-split-button[gipi-secondary],\n gipi-split-button[gipi-tertiary], gipi-split-button[gipi-action]",exportAs:"gipiSplitButton",template:'<div [matTooltip]="tooltip"\n [class]="buttonClass || \'\'"\n [class.button-base]="true"\n [class.disabled]="disabled || loading"\n #popoverTrigger="popoverTrigger"\n [popoverTriggerFor]="btnPopover"\n [popoverTriggerOn]="\'none\'"\n [popoverBackdropCloseOnClick]="true"\n (opened)="onOpenPopover.emit()"\n (closed)="onClosePopover.emit()">\n <button [attr.id]="idBtnDefault"\n [attr.name]="idBtnDefault"\n [attr.type]="type"\n [attr.aria-label]="ariaLabel ? ariaLabel : label"\n [attr.title]="title ? title : label"\n [disabled]="disabled || loading"\n [ngClass]="getInternalButtonClass(true)"\n role="button"\n (click)="handleClick($event)"\n (focus)="handleFocus($event)"\n (blur)="handleBlur($event)">\n {{ label ? label : \'\' }}\n </button>\n <button [attr.id]="idBtnMenu"\n [attr.name]="idBtnMenu"\n [attr.type]="type"\n [attr.aria-label]="ariaLabel ? ariaLabel : label"\n [attr.title]="title ? title : label"\n [disabled]="disabled || loading"\n [ngClass]="getInternalButtonClass(false)"\n role="button"\n (click)="handleClickBtnMenu($event)">\n <mat-icon [@indicatorRotate]="popoverTrigger?.popoverOpen ? \'opened\': \'closed\'"> expand_more </mat-icon>\n </button>\n</div>\n\n<gipi-popover #btnPopover="gipiPopover"\n [popoverOverlapTrigger]="false"\n [popoverCloseOnClick]="false"\n [popoverArrowWidth]="0"\n [popoverOffsetY]="3">\n <div class="btn-popover-content">\n <button class="btn-split-option"\n *ngFor="let option of splitOptions"\n [disabled]="option?.disabled"\n (click)="handleClickBtnSplitOption(option)">\n {{ option.label }}\n </button>\n </div>\n</gipi-popover>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-split-button","[attr.id]":"id","[attr.name]":"name"},animations:[ae.trigger("indicatorRotate",[ae.state("closed",ae.style({transform:"rotate(0deg)"})),ae.state("opened",ae.style({transform:"rotate(-180deg)"})),ae.transition("opened <=> closed",ae.animate("225ms cubic-bezier(0.4,0.0,0.2,1)"))])],styles:[".button-base{display:flex;flex-direction:row;justify-content:center;border-radius:4px;font-weight:600;font-size:1.4rem;line-height:1.6rem;cursor:pointer;outline:0;white-space:nowrap;text-decoration:none;vertical-align:middle;text-align:center;box-shadow:1px 1px 5px 0 rgba(0,0,0,.1);transition:.2s;width:100%;max-height:4rem;border:1px solid transparent;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.button-base.disabled{cursor:not-allowed!important;box-shadow:none}.button-base>button{display:flex;align-items:center;justify-content:center;border:none;outline:0;box-shadow:none;width:100%;height:40px;padding:12px 16px;overflow:hidden;border-radius:inherit;cursor:inherit;font-size:inherit;font-weight:inherit;white-space:nowrap;text-decoration:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative}.button-base>button:not(.disabled):active{opacity:.8}.button-base .button-default{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.button-base .button-menu{max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content;border-top-left-radius:0!important;border-bottom-left-radius:0!important}.button-primary:not(:disabled),.button-primary:not(:disabled)>mat-icon{background-color:#e0313e;color:#fff;fill:#fff}.button-primary:not(:disabled).button-default,.button-primary:not(:disabled)>mat-icon.button-default{border-right:1px solid #9f232c}.button-primary:not(:disabled) svg,.button-primary:not(:disabled) svg g path,.button-primary:not(:disabled) svg path,.button-primary:not(:disabled)>mat-icon svg,.button-primary:not(:disabled)>mat-icon svg g path,.button-primary:not(:disabled)>mat-icon svg path{color:#fff;fill:#fff}.button-primary:disabled,.button-primary:disabled>mat-icon{background-color:#d1d2d4;color:#9a9da2;fill:#9a9da2}.button-primary:disabled.button-default,.button-primary:disabled>mat-icon.button-default{border-right:1px solid #9a9da2}.button-primary:disabled svg,.button-primary:disabled svg g path,.button-primary:disabled svg path,.button-primary:disabled>mat-icon svg,.button-primary:disabled>mat-icon svg g path,.button-primary:disabled>mat-icon svg path{color:#9a9da2;fill:#9a9da2}.button-primary:not(:disabled):hover,.button-primary:not(:disabled):hover>mat-icon{background-color:#cc2d38;color:#fff;fill:#fff}.button-primary:not(:disabled):hover svg,.button-primary:not(:disabled):hover svg g path,.button-primary:not(:disabled):hover svg path,.button-primary:not(:disabled):hover>mat-icon svg,.button-primary:not(:disabled):hover>mat-icon svg g path,.button-primary:not(:disabled):hover>mat-icon svg path{color:#fff;fill:#fff}.button-secondary{background-color:transparent}.button-secondary:not(:disabled),.button-secondary:not(:disabled)>mat-icon{border-color:#595959;color:#595959;fill:#595959}.button-secondary:not(:disabled).button-default,.button-secondary:not(:disabled)>mat-icon.button-default{border-right:1px solid #595959}.button-secondary:not(:disabled) svg,.button-secondary:not(:disabled) svg g path,.button-secondary:not(:disabled) svg path,.button-secondary:not(:disabled)>mat-icon svg,.button-secondary:not(:disabled)>mat-icon svg g path,.button-secondary:not(:disabled)>mat-icon svg path{color:#595959;fill:#595959}.button-secondary:disabled,.button-secondary:disabled>mat-icon{border-color:#d1d2d4;background-color:#d1d2d4;color:#9a9da2;fill:#9a9da2}.button-secondary:disabled.button-default,.button-secondary:disabled>mat-icon.button-default{border-right:1px solid #9a9da2}.button-secondary:disabled svg,.button-secondary:disabled svg g path,.button-secondary:disabled svg path,.button-secondary:disabled>mat-icon svg,.button-secondary:disabled>mat-icon svg g path,.button-secondary:disabled>mat-icon svg path{color:#9a9da2;fill:#9a9da2}.button-secondary:not(:disabled):hover,.button-secondary:not(:disabled):hover>mat-icon{border-color:#595959;background-color:#e0e1e2;color:#595959;fill:#595959}.button-secondary:not(:disabled):hover svg,.button-secondary:not(:disabled):hover svg g path,.button-secondary:not(:disabled):hover svg path,.button-secondary:not(:disabled):hover>mat-icon svg,.button-secondary:not(:disabled):hover>mat-icon svg g path,.button-secondary:not(:disabled):hover>mat-icon svg path{color:#595959;fill:#595959}.button-tertiary{background-color:#e7ebee;box-shadow:none}.button-tertiary:not(:disabled),.button-tertiary:not(:disabled)>mat-icon{color:#595959;fill:#595959}.button-tertiary:not(:disabled).button-default,.button-tertiary:not(:disabled)>mat-icon.button-default{border-right:1px solid #595959}.button-tertiary:not(:disabled) svg,.button-tertiary:not(:disabled) svg g path,.button-tertiary:not(:disabled) svg path,.button-tertiary:not(:disabled)>mat-icon svg,.button-tertiary:not(:disabled)>mat-icon svg g path,.button-tertiary:not(:disabled)>mat-icon svg path{color:#595959;fill:#595959}.button-tertiary:disabled,.button-tertiary:disabled>mat-icon{background-color:#d1d2d4;color:#9a9da2;fill:#9a9da2}.button-tertiary:disabled.button-default,.button-tertiary:disabled>mat-icon.button-default{border-right:1px solid #9a9da2}.button-tertiary:disabled svg,.button-tertiary:disabled svg g path,.button-tertiary:disabled svg path,.button-tertiary:disabled>mat-icon svg,.button-tertiary:disabled>mat-icon svg g path,.button-tertiary:disabled>mat-icon svg path{color:#9a9da2;fill:#9a9da2}.button-tertiary:not(:disabled):hover,.button-tertiary:not(:disabled):hover>mat-icon{background-color:#e0e1e2;color:#595959;fill:#595959}.button-tertiary:not(:disabled):hover svg,.button-tertiary:not(:disabled):hover svg g path,.button-tertiary:not(:disabled):hover svg path,.button-tertiary:not(:disabled):hover>mat-icon svg,.button-tertiary:not(:disabled):hover>mat-icon svg g path,.button-tertiary:not(:disabled):hover>mat-icon svg path{color:#595959;fill:#595959}.button-action{background-color:transparent;box-shadow:none;display:flex;justify-content:flex-start!important}.button-action:not(:disabled),.button-action:not(:disabled)>mat-icon{color:#262626;fill:#262626}.button-action:not(:disabled).button-default,.button-action:not(:disabled)>mat-icon.button-default{border-right:1px solid #262626}.button-action:not(:disabled) svg,.button-action:not(:disabled) svg g path,.button-action:not(:disabled) svg path,.button-action:not(:disabled)>mat-icon svg,.button-action:not(:disabled)>mat-icon svg g path,.button-action:not(:disabled)>mat-icon svg path{color:#262626;fill:#262626}.button-action:disabled,.button-action:disabled>mat-icon{color:#9a9da2;fill:#9a9da2}.button-action:disabled.button-default,.button-action:disabled>mat-icon.button-default{border-right:1px solid #9a9da2}.button-action:disabled svg,.button-action:disabled svg g path,.button-action:disabled svg path,.button-action:disabled>mat-icon svg,.button-action:disabled>mat-icon svg g path,.button-action:disabled>mat-icon svg path{color:#9a9da2;fill:#9a9da2}.button-action:not(:disabled):hover,.button-action:not(:disabled):hover>mat-icon{background-color:#f5f5f6;color:#262626;fill:#262626}.button-action:not(:disabled):hover svg,.button-action:not(:disabled):hover svg g path,.button-action:not(:disabled):hover svg path,.button-action:not(:disabled):hover>mat-icon svg,.button-action:not(:disabled):hover>mat-icon svg g path,.button-action:not(:disabled):hover>mat-icon svg path{color:#262626;fill:#262626}.disabled,:disabled{pointer-events:none!important}.btn-popover-content{display:flex;flex-direction:column;gap:.8rem;background-color:#fff;border-radius:4px;box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);padding:8px}.btn-split-option{width:100%;padding:.8rem;border-radius:.4rem;border:1px solid transparent;text-align:left;outline:0;background-color:transparent;cursor:pointer}.btn-split-option:not(:disabled){color:#595959}.btn-split-option:disabled{border-color:#d1d2d4;background-color:#d1d2d4;color:#9a9da2;cursor:not-allowed}.btn-split-option:not(:disabled):hover{border-color:#595959;background-color:#e0e1e2;color:#595959}"]}),Ce("design:paramtypes",[t.ElementRef])],e)}(),Di=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}var o;return be(i,e),o=i,i.prototype.ngOnInit=function(){},i.prototype.onClick=function(e){this.selectedIndex=e},we([t.Input(),Ce("design:type",String)],i.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],i.prototype,"name",void 0),i=o=we([t.Component({selector:"gipi-stepper",exportAs:"gipiStepper",template:'<div class="stepper-content">\n <div *ngFor="let step of steps; let i = index;"\n class="step-content">\n\n <button disabled="true"\n (click)="onClick(i)">\n <span class="step-icon"\n [class.active]="selectedIndex === i"\n [class.completed]="step.completed">\n\n {{ step.completed ? \'\' : i + 1 }}\n\n <mat-icon *ngIf="step.completed">\n check\n </mat-icon>\n </span>\n\n <span class="step-text">\n {{ step.label }}\n </span>\n </button>\n\n <div *ngIf="i !== steps.length - 1"\n class="step-horizontal-line"\n [class.completed]="step.completed">\n </div>\n </div>\n</div>\n\n<div [style.display]="selected ? \'block\' : \'none\'"\n class="stepper-container">\n <ng-container [ngTemplateOutlet]="selected.content"> </ng-container>\n</div>\n',providers:[{provide:n.CdkStepper,useExisting:o}],host:{class:"gipi-stepper"},styles:[".stepper-content{width:100%;padding:16px;max-width:1366px;position:relative;overflow:hidden;display:flex;flex-direction:row;align-items:center;justify-content:center;margin:0 auto}.stepper-container{flex:1}.stepper-content .step-content{display:flex;flex-direction:row;align-items:center}.stepper-content .step-content>button{display:flex;flex-direction:column;align-items:center;gap:8px;outline:0;border:none;background-color:transparent}.stepper-content .step-content>button .step-icon{display:flex;align-items:center;justify-content:center;width:5rem;height:5rem;font-size:1.4rem;border:2px solid #e0e1e2;border-radius:50%;color:#8c8f93;font-weight:600}.stepper-content .step-content>button .step-text{font-size:1.4rem;line-height:100%;color:#8c8f93}.step-horizontal-line{height:2px;border-radius:4px;min-width:5rem;max-width:10rem;background-color:#e0e1e2;border:none;position:relative;top:-10px;margin:0 16px}.active{border-color:#e0313e!important;color:#e0313e!important}.completed{background-color:#e0313e!important;border-color:#e0313e!important;color:#fff!important}"]})],i)}(n.CdkStepper),Pi=function(){function e(e){this._changeDetectorRef=e,this._rowsExpanded=[],this.loading=!1,this.loadingDetail=!1,this.disabled=!1,this.clickOnRow=!1,this.expandable=!1,this.expandOnlyOneRow=!1,this.columns=[],this.trackBy="id",this.rowsExpandedChange=new t.EventEmitter,this.rowDetailToggleChange=new t.EventEmitter}var n;return n=e,Object.defineProperty(e.prototype,"rows",{get:function(){return this._rows},set:function(e){this._rows=e},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.columnTrackingFn=function(e,t){return t.property},e.prototype.rowTrackingFn=function(e,t){return t[this.trackBy]},e.prototype.getShowHighlightRow=function(e){return!ze.isNull(e)&&!ze.isNull(this.highlightRowFn)&&this.highlightRowFn(e)},e.prototype.getIdentifierRow=function(e){return"row-"+e},e.prototype.getShowExpandable=function(e){return ze.isNull(this.rowExpandableFn)?this.expandable:this.expandable&&this.rowExpandableFn(e)},e.prototype.getColumnValue=function(e,t){var n="";if(this.rows&&this.columns){var i=t.value;"function"==typeof t.value&&(i=t.value(e));var o=t.pipe;o?n=o.transform(i):void 0!==n&&(n=i)}else n="";return n},e.prototype.getRowExpanded=function(e){return!Ot.isEmpty(this._rowsExpanded)&&this._rowsExpanded.includes(e)},e.prototype.onRowExpandedChange=function(e){if(this.getShowExpandable(e)){if(this.expandOnlyOneRow)Ot.isEmpty(this._rowsExpanded)?this._rowsExpanded.push(e):this.getRowExpanded(e)?this._rowsExpanded.splice(0,this._rowsExpanded.length):this._rowsExpanded.splice(0,this._rowsExpanded.length,e);else if(this.getRowExpanded(e)){var t=this._rowsExpanded.findIndex((function(t){return t===e}));this._rowsExpanded.splice(t,1)}else this._rowsExpanded.push(e);this.rowsExpandedChange.emit(this._rowsExpanded),this.rowDetailToggleChange.emit({row:e,isExpanded:this.getRowExpanded(e)}),this._changeDetectorRef.detectChanges()}},e.prototype.onClickCell=function(e,t){ze.isNull(t.action)||t.action(e)},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loadingDetail",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"clickOnRow",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"expandable",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"expandOnlyOneRow",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"rowExpandableFn",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"highlightRowFn",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"columns",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"trackBy",void 0),we([t.Input(),Ce("design:type",t.TemplateRef)],e.prototype,"rowDetailRef",void 0),we([t.Input(),Ce("design:type",Array),Ce("design:paramtypes",[Array])],e.prototype,"rows",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"rowsExpandedChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"rowDetailToggleChange",void 0),e=n=we([t.Component({selector:"gipi-table-body",exportAs:"gipiTableBody",template:'<gipi-table-progress-bar *ngIf="loading"> </gipi-table-progress-bar>\n\n<div class="table-body-content"\n role="rowgroup"\n #contentBody>\n\n <div *ngFor="let row of rows; trackBy: rowTrackingFn; let i = index;"\n gipi-row\n role="row"\n class="table-body-row"\n [attr.id]="getIdentifierRow(i)"\n [class.highlight]="getShowHighlightRow(row)"\n (click)="clickOnRow ? onRowExpandedChange(row) : null">\n\n <div *ngIf="getShowExpandable(row)"\n role="cell"\n class="table-body-cell-expandable noselect"\n (click)="!clickOnRow ? onRowExpandedChange(row) : null">\n <mat-icon>\n {{ getRowExpanded(row) ? \'expand_more\' : \'chevron_right\' }}\n </mat-icon>\n </div>\n\n <div *ngFor="let column of columns; trackBy: columnTrackingFn; let i = index;"\n class="table-body-row-cell noselect"\n role="cell"\n gipi-col\n [GIPISpan]="column.columnSpan"\n [attr.id]="column.property"\n [style.align-items]="\'center\'"\n [style.padding-inline.px]="column.paddingInline"\n [style.justify-content]="column.align"\n [style.cursor]="expandable && clickOnRow ? \'pointer\' : \'default\'"\n (click)="onClickCell(row, column)">\n <span class="table-row-label"\n *ngIf="row">\n {{ getColumnValue(row, column) }}\n </span>\n </div>\n\n <div *ngIf="rowDetailRef"\n class="table-body-row-detail"\n [@detailExpand]="getRowExpanded(row) ? \'expanded\' : \'collapsed\'"\n role="row"\n gipi-col\n [GIPISpan]="12"\n (click)="$event.stopPropagation()">\n <gipi-table-progress-bar *ngIf="loadingDetail"> </gipi-table-progress-bar>\n\n <ng-template *ngIf="!loadingDetail"\n [ngTemplateOutlet]="rowDetailRef"\n [ngTemplateOutletContext]="{$implicit: row}">\n </ng-template>\n </div>\n\n </div>\n\n <div *ngIf="!loading && (rows && (rows.length <= 0))"\n class="no-records">\n <mat-icon>sentiment_very_dissatisfied</mat-icon>\n <span>Nenhum registro foi encontrado</span>\n </div>\n\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-table-body"},animations:[ae.trigger("detailExpand",[ae.state("collapsed",ae.style({height:"0px",minHeight:"0",display:"none"})),ae.state("expanded",ae.style({height:"*"})),ae.transition("expanded <=> collapsed",ae.animate("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])],changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".table-body-row{color:#131313;position:relative;background-color:inherit}.table-body-row.highlight{background-color:#fbf6e6}.table-body-row:not(:last-child){border-bottom:1px solid #e0e1e2}.table-body-row:hover .table-body-row-cell{background-color:#f5f5f6}.table-body-cell-expandable{width:1.6rem;height:1.6rem;background-color:#f5f5f6;border-radius:50%;z-index:1;position:absolute;text-align:center;left:3.8rem;margin:24px 0;cursor:pointer}.table-body-cell-expandable:hover{background-color:#e0e1e2}.table-body-cell-expandable>mat-icon{width:1.6rem;height:1.6rem;font-size:1.6rem}.table-body-row-cell{padding:24px 0;font-weight:400;font-size:1.4rem;line-height:100%;display:flex}.table-body-row-detail{width:100%;min-height:10rem;max-height:90rem;overflow-x:hidden;overflow-y:auto;background-color:#fff}.no-records{display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:1.4rem;font-weight:600;color:#131313;padding:24px 0;box-shadow:inset 0 5px 13px -5px rgba(0,0,0,.1)}.no-records>mat-icon{font-size:3.2rem;height:3.2rem;width:3.2rem;margin-bottom:5px}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef])],e)}(),Ai=function(){function e(){}var n;return n=e,e.prototype.ngOnInit=function(){},e=n=we([t.Component({selector:"gipi-table-footer",exportAs:"gipiTableFooter",template:"<p>\n table-footer works!\n</p>\n",providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-table-footer"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[""]}),Ce("design:paramtypes",[])],e)}(),Ri=function(){function e(e,t){this.property=e,this.direction=t}return Object.defineProperty(e.prototype,"property",{get:function(){return this._property},set:function(e){this._property=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"direction",{get:function(){return this._direction},set:function(e){this._direction=e},enumerable:!1,configurable:!0}),e}(),Mi=function(){function e(e){this._changeDetectorRef=e,this._sortedColumn=null,this.columns=[],this.loading=!1,this.disabled=!1,this.sortStart="asc",this.sortDisableClear=!0,this.sortLocked=!1,this.sortAscendingIcon="keyboard_arrow_up",this.sortDescendingIcon="keyboard_arrow_down",this.sortUnsetIcon="unfold_more",this.sortChange=new t.EventEmitter}var n;return n=e,e.prototype.ngOnInit=function(){var e=this;if(this.columns&&this.columns.length&&this.sortActive){var t=this.columns.find((function(t){return t.property===e.sortActive}));if(ze.isNull(t)||!t.sortable||!ze.isNull(this._sortedColumn))throw new Error('There is no column with the property indicated in "sortActive"');this._sortedColumn={},this._sortedColumn.column=t,this._sortedColumn.sortDirection=this.sortStart,this.sortChange.emit(new Ri(t.property,this._sortedColumn.sortDirection))}},e.prototype.columnTrackingFn=function(e,t){return t.property},e.prototype.onSortChange=function(e){e.sortable&&!this.sortLocked&&(ze.isNull(this._sortedColumn)&&(this._sortedColumn={}),this._sortedColumn.column=e,this._sortedColumn.sortDirection=this._getNextSortDirection(e),this.sortChange.emit(new Ri(e.property,this._sortedColumn.sortDirection)),this._changeDetectorRef.markForCheck())},e.prototype._getNextSortDirection=function(e){return e.sortable?this.sortDisableClear?"asc"===this._sortedColumn.sortDirection?"desc":"asc":this._sortedColumn.sortDirection?"asc"===this._sortedColumn.sortDirection?"desc":(this._sortedColumn.sortDirection,""):"asc":""},e.prototype.isEqualsColumns=function(e){return!ze.isNull(this._sortedColumn)&&!ze.isNull(this._sortedColumn.column)&&ze.shallowEqual(this._sortedColumn.column,e)},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",Array)],e.prototype,"columns",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"sortActive",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"sortStart",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"sortDisableClear",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"sortLocked",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"sortAscendingIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"sortDescendingIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"sortUnsetIcon",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"sortChange",void 0),e=n=we([t.Component({selector:"gipi-table-header",exportAs:"gipiTableHeader",template:'<div class="table-header-content"\n role="rowheader"\n #contentHeader\n gipi-row>\n\n <div *ngFor="let column of columns; trackBy: columnTrackingFn; let i = index;"\n class="table-header-cell noselect"\n role="cell"\n gipi-col\n [GIPISpan]="column.columnSpan"\n [attr.id]="column.property"\n [style.align-items]="\'center\'"\n [style.padding-inline.px]="column.paddingInline"\n [style.justify-content]="column.align"\n [style.cursor]="column.sortable && !sortLocked ? \'pointer\' : \'default\'"\n (click)="onSortChange(column)">\n <span class="table-header-label"\n *ngIf="column.name">\n {{ column.name }}\n </span>\n\n <ng-container *ngIf="column.sortable && _sortedColumn && (column.property === _sortedColumn?.column?.property)">\n <mat-icon *ngIf="(_sortedColumn?.sortDirection === \'asc\')"\n class="table-header-sort">\n {{ sortAscendingIcon }}\n </mat-icon>\n <mat-icon *ngIf="(_sortedColumn?.sortDirection === \'desc\')"\n class="table-header-sort">\n {{ sortDescendingIcon }}\n </mat-icon>\n <mat-icon *ngIf="(_sortedColumn?.sortDirection === \'\')"\n class="table-header-sort">\n {{ sortUnsetIcon }}\n </mat-icon>\n </ng-container>\n </div>\n\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-table-header"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".table-header-content{position:relative;white-space:nowrap;border-bottom:1px solid #e0e1e2;overflow:hidden;text-overflow:ellipsis;font-weight:600;font-size:1.4rem;line-height:100%;color:#131313}.table-header-content .table-header-cell{padding:2.4rem 0;gap:1.6rem;display:flex}.table-header-content .table-header-sort{color:#131313;fill:#131313;width:1.4rem;height:1.4rem;font-size:1.4rem}.table-header-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef])],e)}(),Ti=function(){function e(){this.maxSize=5,this._directionLinks=!0,this._autoHide=!1,this._responsive=!1,this.previousTooltip="Voltar",this.nextTooltip="Avançar",this.pageChange=new t.EventEmitter,this.pageBoundsCorrection=new t.EventEmitter}var n;return n=e,Object.defineProperty(e.prototype,"directionLinks",{get:function(){return this._directionLinks},set:function(e){this._directionLinks=Fi(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"autoHide",{get:function(){return this._autoHide},set:function(e){this._autoHide=Fi(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responsive",{get:function(){return this._responsive},set:function(e){this._responsive=Fi(e)},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.trackByIndex=function(e){return e},we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"maxSize",void 0),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"directionLinks",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"autoHide",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"responsive",null),we([t.Input(),Ce("design:type",String)],e.prototype,"previousTooltip",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"nextTooltip",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"pageChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"pageBoundsCorrection",void 0),e=n=we([t.Component({selector:"gipi-table-pagination",exportAs:"gipiTablePagination",template:'<pagination-template #pageAPI="paginationApi"\n [id]="id"\n [maxSize]="maxSize"\n (pageChange)="pageChange.emit($event)"\n (pageBoundsCorrection)="pageBoundsCorrection.emit($event)">\n\n <nav role="navigation">\n\n <ul class="pagination-content"\n [class.responsive]="responsive"\n *ngIf="!(autoHide && pageAPI.pages.length <= 1)">\n\n <li class="pagination-previous"\n [class.disabled]="pageAPI.isFirstPage()"\n [matTooltip]="!pageAPI.isFirstPage() ? previousTooltip : \'\'"\n *ngIf="directionLinks"\n (keyup.enter)="pageAPI.previous()"\n (click)="1 < pageAPI.getCurrent() ? pageAPI.previous() : null">\n <a tabindex="0">\n <mat-icon> chevron_left </mat-icon>\n </a>\n </li>\n\n <li class="small-screen">\n {{ pageAPI.getCurrent() }} / {{ pageAPI.getLastPage() }}\n </li>\n\n <li [class.current]="pageAPI.getCurrent() === page.value"\n [class.ellipsis]="page.label === \'...\'"\n *ngFor="let page of pageAPI.pages; trackBy: trackByIndex"\n (keyup.enter)="pageAPI.setCurrent(page.value)"\n (click)="pageAPI.setCurrent(page.value)">\n <a tabindex="0"\n *ngIf="pageAPI.getCurrent() !== page.value">\n {{ (page.label === \'...\') ? page.label : (page.label | number:\'\') }}\n </a>\n <ng-container *ngIf="pageAPI.getCurrent() === page.value">\n <span aria-live="polite">\n {{ (page.label === \'...\') ? page.label : (page.label | number:\'\') }}\n </span>\n </ng-container>\n </li>\n\n <li class="pagination-next"\n [class.disabled]="pageAPI.isLastPage()"\n [matTooltip]="!pageAPI.isLastPage() ? nextTooltip : \'\'"\n *ngIf="directionLinks"\n (keyup.enter)="pageAPI.next()"\n (click)="!pageAPI.isLastPage() ? pageAPI.next() : null">\n <a tabindex="0">\n <mat-icon> chevron_right </mat-icon>\n </a>\n </li>\n\n </ul>\n\n </nav>\n\n</pagination-template>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-table-pagination"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".pagination-content{display:flex;align-items:center;gap:4px}.pagination-content>li{display:flex;align-items:center;justify-content:center;list-style:none;width:2.8rem;height:2.8rem;padding:.8rem;border-radius:4px;border:1px solid transparent;font-size:1.2rem;line-height:1.8rem;font-weight:500;color:#595959;transition:.2s;cursor:pointer}.pagination-content>li.pagination-next,.pagination-content>li.pagination-previous{border-color:#595959}.pagination-content>li.pagination-next>a,.pagination-content>li.pagination-next>a>mat-icon,.pagination-content>li.pagination-next>span,.pagination-content>li.pagination-next>span>mat-icon,.pagination-content>li.pagination-previous>a,.pagination-content>li.pagination-previous>a>mat-icon,.pagination-content>li.pagination-previous>span,.pagination-content>li.pagination-previous>span>mat-icon{width:1.8rem;height:1.8rem;font-size:1.8rem}.pagination-content>li:not(.current):not(.disabled):not(.pagination-previous):not(.pagination-next):hover{background-color:#f5f5f6;border-color:#e0e1e2}.pagination-content>li.pagination-next:hover,.pagination-content>li.pagination-previous:hover{background-color:#f5f5f6}.pagination-content>li.current:hover{background-color:#cc2d38}.pagination-content>li.current{background-color:#e0313e;border-color:transparent;color:#fff;cursor:default}.pagination-content>li.pagination-next.disabled,.pagination-content>li.pagination-previous.disabled{color:#d1d2d4!important;border-color:#d1d2d4!important;cursor:not-allowed!important}.pagination-content>li.disabled{color:#d1d2d4!important;cursor:not-allowed!important}.pagination-content .small-screen{display:none}@media screen and (max-width:601px){.pagination-content.responsive .small-screen{display:inline-block}.pagination-content.responsive li:not(.small-screen):not(.pagination-previous):not(.pagination-next){display:none}}"]}),Ce("design:paramtypes",[])],e)}();function Fi(e){return!!e&&"false"!==e}var Vi=function(){function e(){}var n;return n=e,e.prototype.ngOnInit=function(){},e=n=we([t.Component({selector:"gipi-table-progress-bar",exportAs:"gipiTableProgressBar",template:'<div class="progress-linear"\n role="progressbar">\n <div class="indeterminate-progress-bar">\n <div class="bar"> </div>\n </div>\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-table-progress-bar"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".progress-linear{display:block;position:-webkit-sticky;position:sticky;width:100%;height:5px;padding:0;margin:0;top:0}.progress-linear .indeterminate-progress-bar{background-color:#f5bfc3;height:5px;position:relative;overflow:hidden}.progress-linear .indeterminate-progress-bar .bar{background-color:#e0313e;border-radius:9999px;position:absolute;bottom:0;top:0;width:100%;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:indeterminate-progress-bar;animation-name:indeterminate-progress-bar}@-webkit-keyframes indeterminate-progress-bar{from{left:-50%}to{left:100%}}@keyframes indeterminate-progress-bar{from{left:-50%}to{left:100%}}"]}),Ce("design:paramtypes",[])],e)}(),Ni=function(){function e(){this.columns=[],this.loading=!1,this.disabled=!1,this.sortStart="asc",this.sortDisableClear=!0,this.sortLocked=!1,this.sortAscendingIcon="keyboard_arrow_up",this.sortDescendingIcon="keyboard_arrow_down",this.sortUnsetIcon="unfold_more",this.sortChange=new t.EventEmitter,this.loadingDetail=!1,this.clickOnRow=!1,this.expandable=!1,this.expandOnlyOneRow=!1,this.trackBy="id",this.rowsExpandedChange=new t.EventEmitter,this.rowDetailToggleChange=new t.EventEmitter,this.tableShowBorder=!0,this.hideHeader=!1,this.hideFooter=!1}var n;return n=e,e.prototype.ngOnInit=function(){},e.prototype.ngOnDestroy=function(){},we([t.Input(),Ce("design:type",Array)],e.prototype,"columns",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"sortActive",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"sortStart",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"sortDisableClear",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"sortLocked",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"sortAscendingIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"sortDescendingIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"sortUnsetIcon",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"sortChange",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loadingDetail",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"clickOnRow",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"expandable",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"expandOnlyOneRow",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"rowExpandableFn",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"highlightRowFn",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"trackBy",void 0),we([t.ContentChild("rowDetail",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"rowDetailRef",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"rows",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"rowsExpandedChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"rowDetailToggleChange",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"tableShowBorder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideHeader",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideFooter",void 0),e=n=we([t.Component({selector:"gipi-table",exportAs:"gipiTable",template:'<div role="table"\n class="table">\n <gipi-table-header [columns]="columns"\n [loading]="loading"\n [disabled]="disabled"\n [sortActive]="sortActive"\n [sortStart]="sortStart"\n [sortLocked]="sortLocked"\n [sortDisableClear]="sortDisableClear"\n [sortAscendingIcon]="sortAscendingIcon"\n [sortDescendingIcon]="sortDescendingIcon"\n [sortUnsetIcon]="sortUnsetIcon"\n (sortChange)="sortChange.emit($event)">\n </gipi-table-header>\n <gipi-table-body [columns]="columns"\n [loading]="loading"\n [loadingDetail]="loadingDetail"\n [disabled]="disabled"\n [clickOnRow]="clickOnRow"\n [expandable]="expandable"\n [expandOnlyOneRow]="expandOnlyOneRow"\n [rowExpandableFn]="rowExpandableFn"\n [highlightRowFn]="highlightRowFn"\n [trackBy]="trackBy"\n [rowDetailRef]="rowDetailRef"\n [rows]="rows"\n (rowsExpandedChange)="rowsExpandedChange.emit($event)"\n (rowDetailToggleChange)="rowDetailToggleChange.emit($event)">\n </gipi-table-body>\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-table"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".table{border:1px solid #e0e1e2;border-radius:4px}"]}),Ce("design:paramtypes",[])],e)}(),ji=function(){this.active=!1,this.closeable=!1,this.disabled=!1},Li=0,Bi=function(){function e(){this._name="gipi-tab-"+Li++,this.id=this._name,this.name=this._name,this.active=!1,this.closeable=!1,this.disabled=!1,this.selectionChange=new t.EventEmitter}return e.prototype.ngOnInit=function(){},we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"index",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"active",void 0),we([t.Input(),Ce("design:type",t.TemplateRef)],e.prototype,"template",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"closeable",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"data",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"icon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIcon",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectionChange",void 0),e=we([t.Component({selector:"gipi-tab",exportAs:"gipiTab",template:'<ng-container *ngIf="active">\n <ng-content> </ng-content>\n <ng-container *ngIf="template"\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{$implicit: data}">\n </ng-container>\n</ng-container>',host:{class:"gipi-tab","[style.display]":'!active ? "none" : "block"'},styles:[":host{padding:1.6rem}"]}),Ce("design:paramtypes",[])],e)}(),Yi=0,zi=function(){function e(e,t){this.elementRef=e,this._componentFactoryResolver=t,this._name="gipi-tab-"+Yi++,this.id=this._name,this.name=this._name,this.dynamicTabs=[]}return e.prototype.ngOnInit=function(){},e.prototype.ngAfterContentInit=function(){0===this.tabQueryList.filter((function(e){return e.active})).length&&this.tabQueryList.length>0&&this.selectTab(this.tabQueryList.first)},e.prototype.openTab=function(e,t,n,i,o,r){void 0===i&&(i=!1),void 0===o&&(o=!1);var a=new ji;a.label=e,a.template=t,a.data=n,a.closeable=i,a.disabled=o,a.action=r,this._openTabs(Array(a))},e.prototype._openTabs=function(e){var t,n=this,i=e.map((function(e){return n._getTabComponent(e.label,e.template,e.data,e.closeable,e.disabled,e.action)}));(t=this.dynamicTabs).push.apply(t,Ee(i)),this.selectTab(this.dynamicTabs[0])},e.prototype._getTabComponent=function(e,t,n,i,o,r){void 0===i&&(i=!1),void 0===o&&(o=!1);var a=this._componentFactoryResolver.resolveComponentFactory(Bi),s=this.dynamicTabPlaceholder.viewContainer.createComponent(a),l=s.instance;return l.label=e,l.template=t,l.data=n,l.closeable=i,l.disabled=o,l.action=r,s.instance},e.prototype.selectTab=function(e){this.tabQueryList.toArray().forEach((function(e){return e.active=!1})),this.dynamicTabs.forEach((function(e){return e.active=!1})),e.active=!0,e.selectionChange.emit(),e.action&&e.action(e.data)},e.prototype.closeTab=function(e){var t=this.dynamicTabs.indexOf(e);this.dynamicTabs.splice(t,1),this.dynamicTabPlaceholder.viewContainer.remove(t),this.tabQueryList.length>0&&this.selectTab(this.tabQueryList.first)},e.prototype.closeActiveTab=function(){var e=this.dynamicTabs.filter((function(e){return e.active}));e.length>0&&this.closeTab(e[0])},e.prototype.closeAllTabs=function(){var e=this,t=Object.assign([],this.dynamicTabs);t.length>0&&t.forEach((function(t){return e.closeTab(t)}))},e.prototype.nextTab=function(){var e=this.tabQueryList.toArray().find((function(e){return e.active})),t=this.tabQueryList.toArray()[this.tabQueryList.toArray().indexOf(e)+1];null!=t&&(this.tabQueryList.toArray().forEach((function(e){return e.active=!1})),this.dynamicTabs.forEach((function(e){return e.active=!1})),t.active=!0,t.selectionChange.emit())},e.prototype.previousTab=function(){var e=this.tabQueryList.toArray().find((function(e){return e.active})),t=this.tabQueryList.toArray()[this.tabQueryList.toArray().indexOf(e)-1];null!=t&&(this.tabQueryList.toArray().forEach((function(e){return e.active=!1})),this.dynamicTabs.forEach((function(e){return e.active=!1})),t.active=!0,t.selectionChange.emit())},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ComponentFactoryResolver}]},we([t.ContentChildren(Bi),Ce("design:type",t.QueryList)],e.prototype,"tabQueryList",void 0),we([t.ViewChild(an,{static:!1}),Ce("design:type",an)],e.prototype,"dynamicTabPlaceholder",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),e=we([t.Component({selector:"gipi-tab-group",exportAs:"gipiTabGroup",template:'<nav mat-tab-nav-bar>\n <a mat-tab-link\n *ngFor="let tab of tabQueryList"\n [attr.id]="tab.id"\n [attr.name]="tab.name"\n [class.active]="tab.active"\n [disabled]="tab.disabled"\n (click)="selectTab(tab)">\n <mat-icon *ngIf="tab.icon || tab.svgIcon"\n [svgIcon]="tab.svgIcon ? tab.svgIcon : \'\'">\n {{ !tab.svgIcon && tab.icon ? tab.icon : \'\' }}\n </mat-icon>\n\n {{ tab.label }}\n </a>\n\n <a mat-tab-link\n *ngFor="let tab of dynamicTabs"\n [attr.id]="tab.id"\n [attr.name]="tab.name"\n [class.active]="tab.active"\n [disabled]="tab.disabled"\n (click)="selectTab(tab)">\n <mat-icon *ngIf="tab.icon || tab.svgIcon"\n [svgIcon]="tab.svgIcon ? tab.svgIcon : \'\'">\n {{ !tab.svgIcon && tab.icon ? tab.icon : \'\' }}\n </mat-icon>\n\n {{ tab.label }}\n </a>\n</nav>\n\n<ng-content> </ng-content>\n<ng-template dynamicTab\n #container>\n</ng-template>',host:{class:"gipi-tab-group","[attr.id]":"id","[attr.name]":"name"},styles:[":host{display:block;flex:1;width:100%;box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1)}:host ::ng-deep .mat-tab-nav-bar{background:#f5f5f6;border:none;border-radius:.4rem;padding:.4rem;box-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1)}:host ::ng-deep .mat-tab-links{display:flex;gap:1rem}:host ::ng-deep .mat-tab-link{height:auto!important;padding:1rem!important;opacity:1!important;border:none!important;border-radius:4px!important;transition:.2s!important;color:#595959!important;gap:1rem}:host ::ng-deep .mat-tab-link>mat-icon{width:2rem!important;height:2rem!important;font-size:2rem!important;color:#595959!important}:host ::ng-deep .mat-tab-link>mat-icon svg,:host ::ng-deep .mat-tab-link>mat-icon svg g path,:host ::ng-deep .mat-tab-link>mat-icon svg path{color:#595959!important;fill:#595959!important}:host ::ng-deep .mat-tab-link:not(.active):hover{background:#e0e1e2!important}:host ::ng-deep .mat-tab-link.active{background:#e0313e!important;color:#fff!important}:host ::ng-deep .mat-tab-link.active>mat-icon{color:#fff!important}:host ::ng-deep .mat-tab-link.active>mat-icon svg,:host ::ng-deep .mat-tab-link.active>mat-icon svg g path,:host ::ng-deep .mat-tab-link.active>mat-icon svg path{color:#fff!important;fill:#fff!important}:host ::ng-deep .mat-tab-link:disabled,:host ::ng-deep .mat-tab-link:disabled>mat-icon{color:#9a9da2!important;fill:#9a9da2!important}:host ::ng-deep .mat-tab-link:disabled svg,:host ::ng-deep .mat-tab-link:disabled svg g path,:host ::ng-deep .mat-tab-link:disabled svg path,:host ::ng-deep .mat-tab-link:disabled>mat-icon svg,:host ::ng-deep .mat-tab-link:disabled>mat-icon svg g path,:host ::ng-deep .mat-tab-link:disabled>mat-icon svg path{color:#9a9da2!important;fill:#9a9da2!important}:host ::ng-deep .mat-ink-bar{display:none!important}:host ::ng-deep .mat-tab-header-pagination{box-shadow:none!important}:host ::ng-deep .mat-tab-header-pagination.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:#d1d2d4!important;cursor:not-allowed!important}:host ::ng-deep .mat-tab-header-pagination .mat-tab-header-pagination-chevron{border-color:#595959!important}:host ::ng-deep .mat-tab-header-pagination:hover{transform:scale(.98)!important}"]}),Ce("design:paramtypes",[t.ElementRef,t.ComponentFactoryResolver])],e)}(),Hi=0,Gi=function(){function e(e,t){this.elementRef=e,this._changeDetectorRef=t,this._name="gipi-textarea-"+Hi++,this.id=this._name,this.name=this._name,this.label="",this.placeholder="",this.cols=20,this.rows=4,this.help="",this.maxlength=254,this.minlength=0,this._resize="horizontal",this._minHeight="60px",this._height="60px",this._maxHeight="auto",this._autocomplete="off",this._autofocus=!1,this._readOnly=!1,this._required=!1,this._disabled=!1,this._lowerCase=!1,this._upperCase=!1,this._spaceDrop=!1,this.onChange=function(){},this.onTouched=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"resize",{get:function(){return this._resize},set:function(e){e!==this.resize&&(this._resize=e.toLowerCase(),this._changeDetectorRef.detectChanges())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minHeight",{get:function(){return this._minHeight},set:function(e){"AUTO"===e.trim().toUpperCase()?this._minHeight="auto":this._minHeight=le.coerceCssPixelValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(e){"AUTO"===e.trim().toUpperCase()?this._height="auto":this._height=le.coerceCssPixelValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxHeight",{get:function(){return this._maxHeight},set:function(e){"AUTO"===e.trim().toUpperCase()?this._maxHeight="auto":this._maxHeight=le.coerceCssPixelValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"autocomplete",{get:function(){return this._autocomplete},set:function(e){this._autocomplete=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"autofocus",{get:function(){return this._autofocus},set:function(e){this._autofocus=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"readOnly",{get:function(){return this._readOnly},set:function(e){this._readOnly=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lowerCase",{get:function(){return this._lowerCase},set:function(e){this._lowerCase=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"upperCase",{get:function(){return this._upperCase},set:function(e){this._upperCase=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"spaceDrop",{get:function(){return this._spaceDrop},set:function(e){this._spaceDrop=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){var t=e;t=this._checkSpaceDrop(t),t=this._checkLowercase(t),t=this._checkUppercase(t),this._value=t,this.onChange(this._value),this.onTouched(this._value)},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.writeValue=function(e){this._value=e},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},e.prototype._checkSpaceDrop=function(e){return this.spaceDrop&&e?e.replace(/\s/g,""):e},e.prototype._checkUppercase=function(e){return this.upperCase&&e?e.toUpperCase():e},e.prototype._checkLowercase=function(e){return this.lowerCase&&e?e.toLowerCase():e},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"cols",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"rows",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"help",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"maxlength",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"minlength",void 0),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"resize",null),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"minHeight",null),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"height",null),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"maxHeight",null),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"autocomplete",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"autofocus",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"readOnly",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"required",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disabled",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"lowerCase",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"upperCase",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"spaceDrop",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"value",null),e=n=we([t.Component({selector:"gipi-textarea",exportAs:"gipiTextarea",template:'<label class="textarea-label"\n *ngIf="label"\n [attr.for]="id">\n {{ label }}\n <span *ngIf="required"> * </span>\n</label>\n\n<textarea class="textarea-element"\n [attr.id]="id"\n [attr.name]="name"\n [placeholder]="placeholder"\n [cols]="cols"\n [rows]="rows"\n [class.resize-none]="resize === \'none\'"\n [class.resize-both]="resize === \'both\'"\n [class.resize-horizontal]="resize === \'horizontal\'"\n [class.resize-vertical]="resize === \'vertical\'"\n [style.min-height.px]="minHeight"\n [style.height.px]="height"\n [style.max-height.px]="maxHeight"\n [minlength]="minlength"\n [maxlength]="maxlength"\n [disabled]="disabled"\n [required]="required"\n [readOnly]="readOnly"\n [attr.autocomplete]="autocomplete"\n [autofocus]="autofocus"\n [(ngModel)]="value"\n [value]="value">\n </textarea>\n\n<small *ngIf="help"\n class="textarea-help">\n {{ help }}\n</small>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-textarea"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:flex;min-width:0;max-width:100%;flex:1;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}:host .textarea-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}:host .textarea-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}:host .textarea-element{display:flex;font-family:inherit;font-size:inherit;color:inherit;padding:.75rem .8rem;background:#fff;border:1px solid #0000001f;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:6px;caret-color:#696969;max-height:12rem;min-height:6rem;resize:vertical;outline:0;overflow:auto}:host .textarea-element:not(:disabled):hover{border-color:#6d6f73}:host .textarea-element:not(:disabled).ng-dirty.ng-invalid:enabled:hover,:host .textarea-element:not(:disabled):invalid:enabled:hover{border-color:#e07f62}:host .textarea-element:not(:disabled):enabled:focus{outline:0;outline-offset:0;box-shadow:0 0 0 .2rem #e0e1e2;border-color:#6d6f73}:host .textarea-element:not(:disabled).ng-dirty.ng-invalid:enabled,:host .textarea-element:not(:disabled):invalid:enabled{border-color:#d14014}:host .textarea-element:not(:disabled).ng-dirty.ng-invalid:enabled:focus,:host .textarea-element:not(:disabled):invalid:enabled:focus{outline:0;outline-offset:0;box-shadow:0 0 0 .2rem #f1c4b6;border-color:#d14014}:host .textarea-element:disabled{color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;cursor:not-allowed}:host .textarea-element.resize-none{resize:none}:host .textarea-element.resize-both{resize:both}:host .textarea-element.resize-horizontal{resize:horizontal}:host .textarea-element.resize-vertical{resize:vertical}:host .textarea-help{flex:1;font-size:1rem;font-weight:500;margin-top:-.4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}::-webkit-input-placeholder{color:#bbbdc1}:-moz-placeholder{color:#bbbdc1}::-moz-placeholder{color:#bbbdc1}:-ms-input-placeholder{color:#bbbdc1}"]}),Ce("design:paramtypes",[t.ElementRef,t.ChangeDetectorRef])],e)}(),Ui=function(){function e(){}var n;return n=e,e.prototype.ngOnInit=function(){},we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"style",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"class",void 0),e=n=we([t.Component({selector:"gipi-toolbar",exportAs:"gipiToolbar",template:'<div [attr.id]="id"\n [attr.aria-label]="ariaLabel ? ariaLabel : label"\n [ngStyle]="style"\n [class]="class">\n <h5 *ngIf="label"> {{ label }} </h5>\n <ng-content> </ng-content>\n</div>\n',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-toolbar"},styles:[":host>div{width:100%;color:#131313;display:flex;align-items:center}:host>div>h5{font-weight:600;font-size:2rem;line-height:150%}"]}),Ce("design:paramtypes",[])],e)}(),qi=function(){function e(e){this._navService=e}var n;return n=e,e.prototype.ngOnInit=function(){},e.prototype.toggle=function(){this._navService.toggle()},e.ctorParameters=function(){return[{type:xi}]},e=n=we([t.Component({selector:"[gipi-top-nav], gipi-top-nav",exportAs:"gipiTopNav",template:"<ng-content> </ng-content>\n",providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-top-nav"},styles:[":host{height:66px;max-height:66px;background-color:#f5f5f6;border-bottom:2px solid #e0313e;display:flex;align-items:center;padding:12px}"]}),Ce("design:paramtypes",[xi])],e)}(),Wi=he,$i=function(){function e(){}return e.format=function(e,t){return ze.isNull(e)?Be.EMPTY:i.formatDate(e,t,"pt")},e.isValid=function(t){return!ze.isNull(t)&&(t=new Date(t),!isNaN(t.getTime())&&e.isGreaterThan(t,new Date("1900-01-01Z00:00:00:000")))},e.isEqual=function(e,t,n){if(void 0===n&&(n="date"),!ze.isNull(e)&&!ze.isNull(t)){var i=Wi(e),o=Wi(t);return i.startOf("day").isSame(o.startOf("day"),n)}return!1},e.isGreaterThan=function(e,t,n){if(void 0===n&&(n="date"),!ze.isNull(e)&&!ze.isNull(t)){var i=Wi(e),o=Wi(t);return i.isAfter(o,n)}return!1},e.isLessThan=function(e,t,n){if(void 0===n&&(n="date"),!ze.isNull(e)&&!ze.isNull(t)){var i=Wi(e),o=Wi(t);return i.isBefore(o,n)}return!1},e.isLessThanOrEqual=function(e,t,n){return void 0===n&&(n="date"),this.isLessThan(e,t,n)||this.isEqual(e,t,n)},e.isGreaterThanOrEqual=function(e,t,n){return void 0===n&&(n="date"),this.isGreaterThan(e,t,n)||this.isEqual(e,t,n)},e.isBetween=function(e,t,n,i){return void 0===i&&(i="date"),this.isGreaterThanOrEqual(e,t,i)&&this.isLessThanOrEqual(e,n,i)},e.diffBetweenDates=function(e,t,n){var i=new Date(e),o=new Date(t),r=Wi(i,"DD/MM/YYYY HH:mm:ss").diff(Wi(o,"DD/MM/YYYY HH:mm:ss")),a=0;switch(n){case"MILLISECONDS":a=Wi.duration(r).asMilliseconds();break;case"SECONDS":a=Wi.duration(r).asSeconds();break;case"MINUTES":a=Wi.duration(r).asMinutes();break;case"HOURS":a=Wi.duration(r).asHours();break;case"DAYS":a=Wi.duration(r).asDays();break;case"MONTHS":a=Wi.duration(r).asMonths()}return a<0?-1*a:a},e.getDayOfWeek=function(e){switch(e.getDay()+1){case 1:return"SUNDAY";case 2:return"MONDAY";case 3:return"TUESDAY";case 4:return"WEDNESDAY";case 5:return"THURSDAY";case 6:return"FRIDAY";case 7:return"SATURDAY"}return null},e.isValidWithString=function(e,t){if(Be.isEmpty(e)||e.length<t.length)return!1;var n=this.stringToDate(e,t);return!isNaN(n.getTime())},e.stringToDate=function(e,t,n){void 0===n&&(n=!1);var i=e.replace(/[^a-zA-Z0-9]/g,"-").split("-"),o=t.toLowerCase().replace(/[^a-zA-Z0-9]/g,"-").split("-"),r=o.indexOf("yyyy"),a=o.indexOf("mm"),s=o.indexOf("dd"),l=o.indexOf("hh"),p=o.indexOf("ii"),d=o.indexOf("ss");return n?new Date(Date.UTC(r>-1?+i[r]:0,a>-1?+i[a]-1:0,s>-1?+i[s]:1,l>-1?+i[l]:0,p>-1?+i[p]:0,d>-1?+i[d]:0)):new Date((r>-1?i[r]:"1970")+"-"+(a>-1?i[a]:"01")+"-"+(s>-1?i[s]:"01")+"T"+(l>-1?i[l]:"00")+":"+(p>-1?i[p]:"00")+":"+(d>-1?i[d]:"00")+".000Z")},e.dateAndStringHourToDate=function(e,t){var n=String(e).split(" "),i=n[0]+" "+n[1]+" "+n[2]+" "+n[3]+" "+t+":00";return new Date(i)},e.stringFormattedToDate=function(e){var t=e.split("/").map((function(e){return Number(e)}));return new Date(t[2],t[1]-1,t[0])},e.getLastDayMonth=function(e){var t=new Date;new Date;return(e?new Date(t.getFullYear(),e+1,0):new Date(t.getFullYear(),t.getMonth()+1,0)).getDate()},e.isValidMonth=function(e){var t=(e=new Date(e)).getFullYear(),n=e.getMonth();return!(Je.isNegative(t)||Je.isNegative(n)||n<0||n>12||t<=1900)},e.isEqualMonth=function(e,t){return e=new Date(e),t=new Date(t),!(ze.isNull(e)||ze.isNull(t)||!this.isValidMonth(e)||!this.isValidMonth(t))&&e.getMonth()===t.getMonth()},e.isGreaterThanMonth=function(e,t){return e=new Date(e),t=new Date(t),!(ze.isNull(e)||ze.isNull(t)||!this.isValidMonth(e)||!this.isValidMonth(t))&&(e.getFullYear()>t.getFullYear()||e.getFullYear()>=t.getFullYear()&&e.getMonth()>t.getMonth())},e.isLessThanMonth=function(e,t){return e=new Date(e),t=new Date(t),!(ze.isNull(e)||ze.isNull(t)||!this.isValidMonth(e)||!this.isValidMonth(t))&&(e.getFullYear()<t.getFullYear()||e.getFullYear()<=t.getFullYear()&&e.getMonth()<t.getMonth())},e.isLessThanOrEqualMonth=function(e,t){return e=new Date(e),t=new Date(t),this.isLessThanMonth(e,t)||this.isEqualMonth(e,t)},e.isGreaterThanOrEqualMonth=function(e,t){return e=new Date(e),t=new Date(t),this.isGreaterThanMonth(e,t)||this.isEqualMonth(e,t)},e.isBetweenMonth=function(e,t,n){return e=new Date(e),t=new Date(t),n=new Date(n),this.isGreaterThanOrEqualMonth(e,t)&&this.isLessThanOrEqualMonth(e,n)},e.getNameWeekTranslation=function(e,t){void 0===t&&(t="LONG");var n=new lt;switch(t){case"MIN":return n.translation.dayNamesMin[e];case"SHORT":return n.translation.dayNamesShort[e];case"LONG":return n.translation.dayNames[e]}},e.getNameMonthTranslation=function(e,t){void 0===t&&(t="LONG");var n=new lt;switch(t){case"SHORT":return n.translation.monthNamesShort[e];case"LONG":return n.translation.monthNames[e]}},e.isDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)},e.isEmpty=function(e){return null==e||""===e||Array.isArray(e)&&0===e.length||!this.isDate(e)&&"object"==typeof e&&0===Object.keys(e).length},e.isNotEmpty=function(e){return!this.isEmpty(e)},e.DATE_FORMAT="dd/MM/yyyy",e.DATE_TIME_FORMAT="dd/MM/yyyy HH:mm",e}(),Ki=function(){function e(){this._overlayVisible=!1,this.click=new t.EventEmitter,this.showOverlay=new t.EventEmitter,this.clickEdit=new t.EventEmitter,this.clickExit=new t.EventEmitter}var n;return n=e,Object.defineProperty(e.prototype,"lastAccessText",{get:function(){return"Último acesso "+$i.format(this.lastAccess,$i.DATE_FORMAT)+" às "+$i.format(this.lastAccess,"HH:mm")},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.toggleOverlay=function(){this._overlayVisible=!this._overlayVisible},we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"imgSrc",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"text",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"username",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"email",void 0),we([t.Input(),Ce("design:type",Date)],e.prototype,"lastAccess",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"iconEdit",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIconEdit",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"iconExit",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIconExit",void 0),we([t.Output("onClick"),Ce("design:type",t.EventEmitter)],e.prototype,"click",void 0),we([t.Output("onShowOverlay"),Ce("design:type",t.EventEmitter)],e.prototype,"showOverlay",void 0),we([t.Output("onClickEdit"),Ce("design:type",t.EventEmitter)],e.prototype,"clickEdit",void 0),we([t.Output("onClickExit"),Ce("design:type",t.EventEmitter)],e.prototype,"clickExit",void 0),e=n=we([t.Component({selector:"gipi-user-profile",exportAs:"gipiUserProfile",template:'<div [attr.id]="id"\n [attr.name]="name"\n [attr.aria-label]="ariaLabel"\n role="menu"\n class="user-profile-content"\n (click)="click.emit($event); toggleOverlay()">\n <img [src]="imgSrc"\n alt="Foto do usuário"\n class="user-photo"\n width="24"\n height="24">\n\n <span role="text"> {{ text }} </span>\n\n <mat-icon> {{ _overlayVisible ? \'expand_less\' : \'expand_more\' }} </mat-icon>\n</div>\n\n<gipi-overlay [(visible)]="_overlayVisible"\n [appendTo]="\'body\'"\n (onShow)="showOverlay.emit()">\n <div class="profile-overlay-content">\n <section role="group"\n class="section-top">\n <img [src]="imgSrc"\n alt="Foto do usuário"\n class="user-photo"\n width="28"\n height="28">\n\n <div role="group"\n class="details">\n <span role="text"\n class="name">\n {{ username }}\n </span>\n <span role="text"\n class="email">\n {{ email }}\n </span>\n </div>\n </section>\n\n <section role="group"\n class="section-bottom">\n <span *ngIf="lastAccess"\n role="text"\n class="last-access">\n {{ lastAccessText }}\n </span>\n\n <button class="button-profile"\n (click)="clickEdit.emit($event)">\n <mat-icon *ngIf="svgIconEdit || iconEdit"\n [svgIcon]="svgIconEdit">\n {{ (!svgIconEdit && iconEdit) ? iconEdit : \'\' }}\n </mat-icon>\n <span role="text">Editar perfil</span>\n </button>\n\n <button class="button-profile"\n (click)="clickExit.emit($event)">\n <mat-icon *ngIf="svgIconExit || iconExit"\n [svgIcon]="svgIconExit">\n {{ (!svgIconExit && iconExit) ? iconExit : \'\' }}\n </mat-icon>\n <span role="text">Sair</span>\n </button>\n </section>\n </div>\n</gipi-overlay>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-user-profile"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".user-profile-content{background-color:#fff;border:1px solid #e0e1e2;border-radius:16px;padding:8px;display:flex;align-items:center;color:#6d6f73;font-size:1.4rem;cursor:pointer;transition:.2s}.user-profile-content:hover{background-color:#fcfcfc;border-color:#d1d2d4}.user-profile-content>span{font-weight:600;line-height:100%;margin-left:8px}.user-profile-content>mat-icon{width:1.6rem;height:1.6rem;font-size:1.6rem;text-align:center;margin-left:4px}.profile-overlay-content{display:flex;flex-direction:column;gap:8px}.profile-overlay-content .section-top{display:flex;align-items:flex-start;gap:8px}.profile-overlay-content .section-top .details{display:flex;flex-direction:column;gap:4px;border-bottom:1px solid #e0e1e2}.profile-overlay-content .section-top .details .name{color:#8c8f93;font-weight:600;font-size:1.4rem;line-height:100%}.profile-overlay-content .section-top .details .email{color:#9a9da2;font-size:1.2rem;font-weight:400;line-height:100%;margin-bottom:8px}.profile-overlay-content .section-bottom{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.profile-overlay-content .section-bottom .last-access{background-color:#e6f2fa;color:#8c8f93;border-radius:4px;padding:4px;text-align:center;font-weight:400;font-size:1.2rem;line-height:100%;width:100%}.profile-overlay-content .section-bottom .button-profile{all:unset;display:flex;align-items:center;gap:8px;color:#595959;font-size:1.3rem;font-weight:400;line-height:100%;cursor:pointer}.profile-overlay-content .section-bottom .button-profile:hover{font-weight:600}.profile-overlay-content .section-bottom .button-profile>mat-icon{width:14px;height:14px;font-size:1.4rem}.user-photo{border-radius:50%;-o-object-fit:cover;object-fit:cover}"]}),Ce("design:paramtypes",[])],e)}(),Xi=new t.InjectionToken("MAT_DATE_LOCALE",{providedIn:"root",factory:Zi});function Zi(){return t.inject(t.LOCALE_ID)}var Ji={provide:Xi,useExisting:t.LOCALE_ID},Qi=function(){function e(){this._localeChanges=new ie.Subject,this.localeChanges=this._localeChanges}return e.prototype.getValidDateOrNull=function(e){return this.isDateInstance(e)&&this.isValid(e)?e:null},e.prototype.deserialize=function(e){return null==e||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()},e.prototype.setLocale=function(e){this.locale=e,this._localeChanges.next()},e.prototype.compareDate=function(e,t){return this.getYear(e)-this.getYear(t)||this.getMonth(e)-this.getMonth(t)||this.getDate(e)-this.getDate(t)},e.prototype.sameDate=function(e,t){if(e&&t){var n=this.isValid(e),i=this.isValid(t);return n&&i?!this.compareDate(e,t):n==i}return e==t},e.prototype.clampDate=function(e,t,n){return t&&this.compareDate(e,t)<0?t:n&&this.compareDate(e,n)>0?n:e},e}(),eo=function(e,t){this.start=e,this.end=t},to=function(){function e(e,t){this.selection=e,this._adapter=t,this._selectionChanged=new ie.Subject,this.selectionChanged=this._selectionChanged,this.selection=e}return e.prototype.updateSelection=function(e,t){this.selection=e,this._selectionChanged.next({selection:e,source:t})},e.prototype.ngOnDestroy=function(){this._selectionChanged.complete()},e.prototype._isValidDateInstance=function(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)},e}(),no=function(e){function n(t){return e.call(this,null,t)||this}return be(n,e),n.prototype.add=function(t){e.prototype.updateSelection.call(this,t,this)},n.prototype.isValid=function(){return null!=this.selection&&this._isValidDateInstance(this.selection)},n.prototype.isComplete=function(){return null!=this.selection},n.ctorParameters=function(){return[{type:Qi}]},n=we([t.Injectable(),Ce("design:paramtypes",[Qi])],n)}(to),io=function(e){function n(t){return e.call(this,new eo(null,null),t)||this}return be(n,e),n.prototype.add=function(t){var n=this.selection,i=n.start,o=n.end;null==i?i=t:null==o?o=t:(i=t,o=null),e.prototype.updateSelection.call(this,new eo(i,o),this)},n.prototype.isValid=function(){var e=this.selection,t=e.start,n=e.end;return null==t&&null==n||(null!=t&&null!=n?this._isValidDateInstance(t)&&this._isValidDateInstance(n)&&this._adapter.compareDate(t,n)<=0:(null==t||this._isValidDateInstance(t))&&(null==n||this._isValidDateInstance(n)))},n.prototype.isComplete=function(){return null!=this.selection.start&&null!=this.selection.end},n.ctorParameters=function(){return[{type:Qi}]},n=we([t.Injectable(),Ce("design:paramtypes",[Qi])],n)}(to);function oo(e,t){return e||new no(t)}var ro={provide:to,deps:[[new t.Optional,new t.SkipSelf,to],Qi],useFactory:oo};function ao(e,t){return e||new io(t)}var so={provide:to,deps:[[new t.Optional,new t.SkipSelf,to],Qi],useFactory:ao};
|
16
|
+
var ve=function(e,t){return(ve=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 be(e,t){function n(){this.constructor=e}ve(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var _e=function(){return(_e=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function we(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function xe(e,t){return function(n,i){t(n,i,e)}}function Ce(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function Ie(e,t,n,i){return new(n||(n=Promise))((function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next())}))}function Se(e,t){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}function ke(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Oe(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function Ee(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Oe(arguments[t]));return e}var De=new t.InjectionToken("app.messages"),Pe={SUCCESS:"Operação realizada com sucesso",RETURN_CONFIRMATION:"Deseja retornar para à tela de consulta?",DELETE_CONFIRMATION:"Deseja realmente excluir este registro?",DELETE_ALL_CONFIRMATION:"Deseja realmente excluir os registros selecionados?",BUTTON_OK_CONFIRMATION:"OK",BUTTON_CANCEL_CONFIRMATION:"Cancelar",NOT_PERMISSION:"Infelizmente, esta ação não é permitida para o seu perfil"},Ae=[m.A11yModule,g.CdkPopoverEditModule,b.CdkTableModule,_.CdkTreeModule,n.CdkStepperModule,f.DragDropModule,w.MatAutocompleteModule,x.MatBadgeModule,C.MatBottomSheetModule,I.MatButtonModule,S.MatButtonToggleModule,k.MatCardModule,O.MatCheckboxModule,E.MatChipsModule,P.MatDialogModule,A.MatDividerModule,R.MatExpansionModule,M.MatFormFieldModule,T.MatGridListModule,F.MatIconModule,V.MatInputModule,N.MatListModule,j.MatMenuModule,L.MatPaginatorModule,B.MatProgressBarModule,Y.MatProgressSpinnerModule,z.MatRadioModule,D.MatRippleModule,H.MatSelectModule,G.MatSidenavModule,U.MatSlideToggleModule,q.MatSliderModule,W.MatSnackBarModule,$.MatSortModule,K.MatStepperModule,X.MatTableModule,Z.MatTabsModule,J.MatToolbarModule,Q.MatTooltipModule,ee.MatTreeModule,v.ScrollingModule,y.PortalModule],Re=function(){function e(){}return e=we([t.NgModule({imports:Ee(Ae),exports:Ee(Ae)})],e)}(),Me=new t.InjectionToken("mat-date-formats"),Te=new t.InjectionToken("mat-datetime-formats"),Fe=function(){function e(){this.color="primary",this.loading=!1,this.download=!1,this.stylePopover="",this.onClick=new t.EventEmitter(!0)}return e.prototype.ngOnInit=function(){},e.prototype.onClickButton=function(e){this.disabled||this.loading||(this.onClick.emit(e),e.stopPropagation())},we([t.ContentChild("popover",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"popoverRef",void 0),we([t.ViewChild("popoverTrigger",{static:!1}),Ce("design:type",l.MdePopoverTrigger)],e.prototype,"popoverTrigger",void 0),we([t.ViewChild("button",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"_elementRef",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"icon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"rightIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"color",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"type",void 0),we([t.Input(),Ce("design:type",a.MatMenu)],e.prototype,"menu",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"badge",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"badgeColor",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"download",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"stylePopover",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"styleClassPopover",void 0),we([t.Output("click"),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),e=we([t.Component({selector:"itss-button",template:'<button #button\n mat-raised-button\n *ngIf="type === \'raised\'"\n [color]="color"\n [matBadge]="badge"\n [matBadgeColor]="badgeColor"\n [disabled]="disabled"\n [matTooltip]="tooltip"\n matTooltipClass="mattooltip-line-break"\n fxFlex\n (click)="onClickButton($event)">\n <mat-icon *ngIf="icon">\n {{ icon }}\n </mat-icon>\n <mat-icon *ngIf="svgIcon"\n [svgIcon]="svgIcon">\n </mat-icon>\n <span>\n {{ label }}\n </span>\n <mat-icon *ngIf="rightIcon">\n {{ rightIcon }}\n </mat-icon>\n</button>\n\n<button #button\n mat-stroked-button\n *ngIf="type === \'stroked\'"\n [color]="color"\n [matBadge]="badge"\n [matBadgeColor]="badgeColor"\n [disabled]="disabled"\n [matTooltip]="tooltip"\n matTooltipClass="mattooltip-line-break"\n fxFlex\n (click)="onClickButton($event)">\n <mat-icon *ngIf="icon">\n {{ icon }}\n </mat-icon>\n <mat-icon *ngIf="svgIcon"\n [svgIcon]="svgIcon">\n </mat-icon>\n <span>\n {{ label }}\n </span>\n</button>\n\n<button #button\n mat-icon-button\n *ngIf="type === \'icon\'"\n [color]="color"\n [matBadge]="badge"\n [matBadgeColor]="badgeColor"\n [disabled]="disabled"\n [matTooltip]="tooltip"\n matTooltipClass="mattooltip-line-break"\n fxFlex\n (click)="onClickButton($event)">\n <mat-icon *ngIf="icon">\n {{ icon }}\n </mat-icon>\n <mat-icon *ngIf="svgIcon"\n [svgIcon]="svgIcon">\n </mat-icon>\n <span>\n {{ label }}\n </span>\n</button>\n\n<button #button\n [matMenuTriggerFor]="menu"\n mat-button\n *ngIf="type === \'menu\'"\n [color]="color"\n [matBadge]="badge"\n [matBadgeColor]="badgeColor"\n [disabled]="disabled"\n [matTooltip]="tooltip"\n matTooltipClass="mattooltip-line-break"\n fxFlex\n (click)="onClickButton($event)">\n <mat-icon *ngIf="icon">\n {{ icon }}\n </mat-icon>\n <mat-icon *ngIf="svgIcon"\n [svgIcon]="svgIcon">\n </mat-icon>\n <span>\n {{ label }}\n </span>\n</button>\n\n<button #button\n mat-raised-button\n *ngIf="type === \'spinner\'"\n [color]="color"\n [disabled]="loading || disabled"\n fxFlex\n (click)="onClickButton($event)">\n <mat-icon *ngIf="icon && !loading">\n {{ icon }}\n </mat-icon>\n <mat-icon *ngIf="svgIcon"\n [svgIcon]="svgIcon">\n </mat-icon>\n <mat-icon *ngIf="loading">\n <mat-spinner diameter="20"> </mat-spinner>\n </mat-icon>\n <span>\n {{ label }}\n </span>\n</button>\n\n<button #button\n mat-button\n *ngIf="!type"\n [color]="color"\n [matBadge]="badge"\n [matBadgeColor]="badgeColor"\n [disabled]="disabled"\n [matTooltip]="tooltip"\n matTooltipClass="mattooltip-line-break"\n fxFlex\n (click)="onClickButton($event)">\n <mat-icon *ngIf="icon">\n {{ icon }}\n </mat-icon>\n <mat-icon *ngIf="svgIcon"\n [svgIcon]="svgIcon">\n </mat-icon>\n <span>\n {{ label }}\n </span>\n</button>\n\n<button #button\n mat-button\n *ngIf="type === \'popover\'"\n [color]="color"\n [matBadge]="badge"\n [matBadgeColor]="badgeColor"\n [disabled]="disabled"\n [matTooltip]="tooltip"\n matTooltipClass="mattooltip-line-break"\n [mdePopoverTriggerFor]="popover"\n mdePopoverTriggerOn="click"\n #popoverTrigger="mdePopoverTrigger"\n fxFlex\n (click)="onClickButton($event)">\n <mat-icon *ngIf="icon">\n {{ icon }}\n </mat-icon>\n <mat-icon *ngIf="svgIcon"\n [svgIcon]="svgIcon">\n </mat-icon>\n <span>\n {{ label }}\n </span>\n</button>\n\n<button #button\n mat-icon-button\n *ngIf="type === \'popover-icon\'"\n [color]="color"\n [matBadge]="badge"\n [matBadgeColor]="badgeColor"\n [disabled]="disabled"\n [matTooltip]="tooltip"\n matTooltipClass="mattooltip-line-break"\n [mdePopoverTriggerFor]="popover"\n mdePopoverTriggerOn="click"\n #popoverTrigger="mdePopoverTrigger"\n fxFlex\n (click)="onClickButton($event)">\n <mat-icon *ngIf="icon">\n {{ icon }}\n </mat-icon>\n <mat-icon *ngIf="svgIcon"\n [svgIcon]="svgIcon">\n </mat-icon>\n</button>\n<mde-popover #popover="mdePopover"\n [mdePopoverOverlapTrigger]="false"\n [mdePopoverCloseOnClick]="false"\n [mdeFocusTrapEnabled]="false"\n [mdeFocusTrapAutoCaptureEnabled]="false">\n <mat-card [ngClass]="styleClassPopover"\n class="button-popover">\n <mat-card-content>\n <ng-template [ngTemplateOutlet]="popoverRef"></ng-template>\n </mat-card-content>\n </mat-card>\n</mde-popover>\n',styles:[":host button:disabled{cursor:not-allowed!important}:host button:disabled ::ng-deep .mat-button-wrapper{pointer-events:none!important}"]})],e)}(),Ve=function(){function e(){this.loading=!1,this.shadow=!0,this.margin=!0}return e.prototype.ngOnInit=function(){},we([t.Input(),Ce("design:type",Object)],e.prototype,"cardTitle",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"cardSubtitle",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"icon",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"shadow",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"margin",void 0),e=we([t.Component({selector:"itss-card",template:'<mat-card fxFlex\n [class.margin-0]="!margin"\n [class.shadow-none]="!shadow">\n <mat-card-header *ngIf="cardTitle">\n <div mat-card-avatar>\n <mat-icon>{{ icon }}</mat-icon>\n </div>\n <mat-card-title-group>\n <mat-card-title>{{ cardTitle }}</mat-card-title>\n <mat-card-subtitle *ngIf="cardSubtitle">{{ cardSubtitle }}</mat-card-subtitle>\n </mat-card-title-group>\n <div fxFlex></div>\n <ng-content select="[card-header-actions]"></ng-content>\n </mat-card-header>\n\n <mat-card-content>\n <itss-loading *ngIf="loading"></itss-loading>\n\n <ng-content></ng-content>\n </mat-card-content>\n\n <ng-content select="itss-action-row"></ng-content>\n</mat-card>\n',styles:[".mat-card{padding:25px!important}::ng-deep .mat-card-header-text{margin:0 5px!important}itss-loading{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:99%;z-index:999;background-color:#fff;opacity:.7;margin-left:-24px!important;margin-top:-71px!important}.margin-0{margin-left:-24px!important;margin-right:-24px!important;padding-bottom:0!important}.shadow-none{box-shadow:none!important}"]})],e)}(),Ne=function(){function e(){this.indeterminateChange=new t.EventEmitter,this.change=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"value",{get:function(){return this.val},set:function(e){this.val=e,this.onChange(e),this.onTouch()},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.value=e},we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"indeterminate",void 0),we([t.Input("value"),Ce("design:type",Object)],e.prototype,"val",void 0),we([t.Output(),Ce("design:type",Object)],e.prototype,"indeterminateChange",void 0),we([t.Output(),Ce("design:type",Object)],e.prototype,"change",void 0),e=n=we([t.Component({selector:"itss-checkbox",template:'<mat-checkbox [attr.id]="id"\n [name]="name"\n [(ngModel)]="value"\n [required]="required"\n [disabled]="disabled"\n [(indeterminate)]="indeterminate"\n (change)="change.emit($event)">\n {{ label }}\n</mat-checkbox>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:[":host{display:block;min-width:0;max-width:100%}:host ::ng-deep .mat-checkbox-disabled{cursor:not-allowed;opacity:.6}"]}),Ce("design:paramtypes",[])],e)}(),je=function(){function e(){}return we([t.Input(),Ce("design:type",String)],e.prototype,"color",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"icon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"iconSize",void 0),e=we([t.Component({selector:"itss-icon",template:'<mat-icon *ngIf="icon"\n [style.color]="color"\n [matTooltip]="tooltip"\n matTooltipClass="mattooltip-line-break"\n [style.width.px]="iconSize"\n [style.height.px]="iconSize"\n matSuffix>\n {{ icon }}\n</mat-icon>\n\n<mat-icon *ngIf="svgIcon"\n [svgIcon]="svgIcon"\n [matTooltip]="tooltip"\n matTooltipClass="mattooltip-line-break"\n [style.color]="color"\n [style.width.px]="iconSize"\n [style.height.px]="iconSize"\n matSuffix>\n</mat-icon>\n',styles:[""]})],e)}(),Le=function(){function e(){this.tooltip="",this.maxlength=250,this.type="text",this.appearance="outline",this.styleClassFormField="",this.styleClassSuffix="",this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"value",{get:function(){return this.val},set:function(e){this.val=e,this.onChange(e),this.onTouch()},enumerable:!1,configurable:!0}),e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.value=e},we([t.ViewChild("input",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"_elementRef",void 0),we([t.ContentChild("suffix",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"suffixRef",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"maxlength",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"type",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"appearance",void 0),we([t.Input("value"),Ce("design:type",Object)],e.prototype,"val",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"prefix",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"styleClassFormField",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"styleClassSuffix",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"options",void 0),e=n=we([t.Component({selector:"itss-input-currency",template:'<div fxLayout="column">\n <mat-label *ngIf="label">\n {{ label }}\n <span *ngIf="required && label"> * </span>\n <gipi-helpful-tip *ngIf="tooltip && label"\n [tooltip]="tooltip">\n </gipi-helpful-tip>\n </mat-label>\n <mat-form-field [appearance]="appearance"\n [class]="styleClassFormField">\n <input matInput\n #input\n [name]="name"\n [placeholder]="placeholder"\n [required]="required"\n [disabled]="disabled"\n [(ngModel)]="value"\n (blur)="onTouch()"\n autocomplete="off"\n [type]="type"\n [maxlength]="maxlength"\n [options]="options"\n currencyMask>\n <span matPrefix\n *ngIf="prefix"\n class="input-currency-prefix">\n {{ prefix }}\n </span>\n <div matSuffix\n *ngIf="suffixRef"\n [class]="styleClassSuffix">\n <ng-template [ngTemplateOutlet]="suffixRef"> </ng-template>\n </div>\n </mat-form-field>\n</div>\n',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:[":host{display:block;min-width:0;max-width:100%;flex:1}mat-label span{color:#d14014!important}.input-currency-prefix{color:#8f8b8f;font-size:14px;letter-spacing:0;font-weight:500;padding:5px 5px 4px}"]})],e)}(),Be=function(){function e(){}return e.replaceAccents=function(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")},e.removeAccents=function(e){return e.replace(/[^\w\s]/gi,"")},e.isEmpty=function(e){return ze.isNull(e)||0===e.length},e.format=function(e,t){var n=e;e.includes("*")||(n=e.replace(/\D/g,""));var i=t.replace(/\D/g,"").replace(/9/g,"_"),o=n+i.substring(0,i.length-i.length),r=0;n="";for(var a=0;a<t.length;a++)isNaN(parseInt(t.charAt(a)))?n+=t.charAt(a):n+=o[r++];return n.indexOf("_")>-1&&(n=n.substring(0,n.indexOf("_"))),n},e.truncateWithEllipses=function(e,t){return e.trim().substring(0,t-1)+(e.trim().length>t)?"...":""},e.encodeBase64=function(e){if(this.isEmpty(e))return"";var t=(new TextEncoder).encode(e),n="";return t.forEach((function(e){n+=String.fromCharCode(e)})),btoa(n)},e.decodeBase64=function(e){if(this.isEmpty(e))return"";for(var t=atob(e),n=new TextDecoder,i=new Uint8Array(t.length),o=0;o<t.length;o++)i[o]=t.charCodeAt(o);return n.decode(i)},e.EMPTY="",e}(),Ye=te(),ze=function(){function e(){}return e.isNull=function(e){return null==e},e.isNewModel=function(t){if(e.isNull(t))return!0;var n=null;return"object"==typeof t&&(n=t.id),!He.isValid(n)},e.clone=function(t){return e.isNull(t)?new Object:Ye(t)},e.resolveFieldData=function(e,t){if(e&&t){if(this.isFunction(t))return t(e);if(-1===t.indexOf("."))return e[t];for(var n=t.split("."),i=e,o=0,r=n.length;o<r;++o){if(null==i)return null;i=i[n[o]]}return i}return null},e.isFunction=function(e){return!!(e&&e.constructor&&e.call&&e.apply)},e.equals=function(e,t,n){return n?this.resolveFieldData(e,n)===this.resolveFieldData(t,n):this.equalsByValue(e,t)},e.equalsByValue=function(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var n,i=Array.isArray(e),o=Array.isArray(t),r=void 0,a=void 0;if(i&&o){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!this.equalsByValue(e[r],t[r]))return!1;return!0}if(i!==o)return!1;var s=e instanceof Date,l=t instanceof Date;if(s!==l)return!1;if(s&&l)return e.getTime()===t.getTime();var p=e instanceof RegExp,d=t instanceof RegExp;if(p!==d)return!1;if(p&&d)return e.toString()===t.toString();var c=Object.keys(e);if((n=c.length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!Object.prototype.hasOwnProperty.call(t,c[r]))return!1;for(r=n;0!=r--;)if(a=c[r],!this.equalsByValue(e[a],t[a]))return!1;return!0}return e!=e&&t!=t},e.removeAccents=function(e){return e&&e.search(/[\xC0-\xFF]/g)>-1&&(e=e.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),e},e.merge=function(e,t){if(null!=e||null!=t)return null!=e&&"object"!=typeof e||null!=t&&"object"!=typeof t?null!=e&&"string"!=typeof e||null!=t&&"string"!=typeof t?t||e:[e||"",t||""].join(" "):_e(_e({},e||{}),t||{})},e.shallowEqual=function(e,t){if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(t),r=0;r<n.length;r++){var a=n[r];if(!o(a))return!1;if(e[a]!==t[a])return!1}return!0},e.hasPropertyInObj=function(t,n){return!e.isNull(t)&&!Be.isEmpty(n)&&Object.prototype.hasOwnProperty.call(t,n)},e}(),He=function(){function e(){}return e.isValid=function(e){return!ze.isNull(e)&&("number"==typeof e?e&&e>0:"string"==typeof e?!Be.isEmpty(e)&&e.length>0:void 0)},e}(),Ge=function(){function e(e,n,i){this.messageService=e,this.router=n,this.activatedRoute=i,this.loading=!1,this.loadingChange=new t.EventEmitter(!0)}return e.prototype.ngOnInit=function(){},e.prototype.ngOnDestroy=function(){},e.prototype.hasPermission=function(e){return!!JSON.parse(localStorage.getItem("token")).user.authorities.find((function(t){return t.authority.match(e)}))},e.prototype.handleError=function(e){throw this.loading=!1,this.loadingChange.emit(this.loading),String(e).includes("Unknown")&&(e=new Error("Ocorreu um erro ao realizar essa operação, tente novamente")),e instanceof Error&&(e=e.message),this.addErrorMessage(e),e},e.prototype.addSuccessMessage=function(e){this.messageService.add({icon:"check_circle",title:"Sucesso",message:e,type:"success"})},e.prototype.addErrorMessage=function(e){this.messageService.add({icon:"cancel",title:"Ocorreu um erro",message:e,type:"error"})},e.prototype.addWarningMessage=function(e){this.messageService.add({icon:"error",title:"Atenção",message:e,type:"warning"})},e.prototype.addInfoMessage=function(e){this.messageService.add({icon:"info",title:"Notificação",message:e,type:"info"})},e.prototype.download=function(e,t,n){var i=new Blob([e],{type:n}),o=document.createElement("a");if(void 0!==o.download){var r=URL.createObjectURL(i);o.setAttribute("href",r),o.setAttribute("download",t),o.style.visibility="hidden",document.body.appendChild(o),o.click(),document.body.removeChild(o)}},e.prototype.downloadContent=function(e){this.download(e.body,e.headers.get("content-disposition").split(";")[1].split("filename")[1].split("=")[1].trim(),e.headers.get("content-type"))},e.prototype.printArchive=function(e,t){var n=new Blob([e],{type:t}),i=URL.createObjectURL(n),o=document.createElement("iframe");document.body.appendChild(o),o.style.display="none",o.style.position="fixed",o.style.right="0",o.style.bottom="0",o.style.width="0",o.style.height="0",o.style.border="0",o.src=i,o.onload=function(){setTimeout((function(){o.focus(),o.contentWindow.print()}),1)}},e.prototype.UUIDIsValid=function(e){return He.isValid(e)},we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"loadingChange",void 0),e}(),Ue=function(){},qe=function(){},We=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return be(t,e),t}(qe),$e=function(){function e(e){this.message=e}return e.prototype.ngOnInit=function(){},e.ctorParameters=function(){return[{type:We,decorators:[{type:t.Inject,args:[a.MAT_SNACK_BAR_DATA]}]}]},e=we([t.Component({selector:"a-alert",template:'<div class="alert"\n [ngClass]="message.type"\n fxLayout="row"\n fxLayoutAlign=" center"\n fxLayoutGap="15px">\n\n <mat-icon *ngIf="message.icon">{{ message.icon }}</mat-icon>\n\n <div fxLayout="column"\n fxLayoutAlign="center start">\n <div class="title">{{ message.title }}</div>\n <span>{{ message.message }}</span>\n </div>\n</div>',styles:[""]}),xe(0,t.Inject(a.MAT_SNACK_BAR_DATA)),Ce("design:paramtypes",[We])],e)}(),Ke=function(){function e(){this.onDestroy=new ie.Subject}return e.prototype.ngOnDestroy=function(){this.onDestroy.next(),this.onDestroy.complete()},e.prototype.options=function(e,t){return{headers:t||this.buildHeaders(),params:e||this.buildParams()}},e.prototype.buildHeaders=function(){return new ne.HttpHeaders},e.prototype.buildParams=function(){return new ne.HttpParams},e.prototype.mapper=function(e){return e},e.prototype.handleError=function(e){return ie.throwError(e)},e}(),Xe=function(e){function n(t){var n=e.call(this)||this;return n.snackBar=t,n}return be(n,e),n.prototype.add=function(e){this.snackBar.openFromComponent($e,{verticalPosition:"top",horizontalPosition:"center",duration:8e3,data:e})},n.ctorParameters=function(){return[{type:a.MatSnackBar}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(W.MatSnackBar))},token:n,providedIn:"root"}),n=we([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[a.MatSnackBar])],n)}(Ke),Ze=function(e){function n(n,i,o){var r=e.call(this,n,i,o)||this;return r.tooltip="",r.appearance="outline",r.loading=!1,r.maximumSize=3,r.archiveChange=new t.EventEmitter,r.nativeFileChange=new t.EventEmitter,r}return be(n,e),n.prototype.validateExtensions=function(t){return 0!==this.extensions.filter((function(e){return t.name.toLowerCase().endsWith(e.toLowerCase())})).length||(e.prototype.addErrorMessage.call(this,"São permitidos somente arquivos do tipo: "+this.extensions.reduce((function(e,t){return e+", "+t}))),!1)},n.prototype.validateMaximumSize=function(t){return!(t.size>1e6*this.maximumSize)||(e.prototype.addErrorMessage.call(this,"O arquivo deve ter no máximo "+this.maximumSize+" MB."),!1)},n.prototype.uploadArchive=function(){var e=this,t=this.fileInput.nativeElement;t.value=Be.EMPTY,t.onchange=function(){var n=t.files[0];if(!ze.isNull(n)&&e.validateExtensions(n)&&e.validateMaximumSize(n)){var i=new Ue;i.name=n.name;var o=new FileReader,r=[];o.readAsArrayBuffer(n),o.onloadend=function(e){if(o.readyState===FileReader.DONE)for(var t=o.result,n=new Uint8Array(t),i=0;i<n.length;i++)r.push(n[i])},i.content=r,e.archiveChange.emit(i),e.nativeFileChange.emit(n)}},t.click()},n.prototype.downloadArchive=function(){},n.prototype.clearArchive=function(){this.fileInput.nativeElement.value=Be.EMPTY,this.archiveChange.emit(null)},n.ctorParameters=function(){return[{type:Xe},{type:s.Router},{type:s.ActivatedRoute}]},we([t.ViewChild("input",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],n.prototype,"_elementRef",void 0),we([t.ViewChild("fileInput",{static:!0}),Ce("design:type",t.ElementRef)],n.prototype,"fileInput",void 0),we([t.Input(),Ce("design:type",String)],n.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],n.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],n.prototype,"tooltip",void 0),we([t.Input(),Ce("design:type",String)],n.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],n.prototype,"required",void 0),we([t.Input(),Ce("design:type",Boolean)],n.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Object)],n.prototype,"appearance",void 0),we([t.Input(),Ce("design:type",Object)],n.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Array)],n.prototype,"extensions",void 0),we([t.Input(),Ce("design:type",Object)],n.prototype,"maximumSize",void 0),we([t.Output(),Ce("design:type",Object)],n.prototype,"archiveChange",void 0),we([t.Input(),Ce("design:type",Ue)],n.prototype,"archive",void 0),we([t.Output(),Ce("design:type",Object)],n.prototype,"nativeFileChange",void 0),n=we([t.Component({selector:"itss-input-file",template:'<div fxLayout="column">\n <mat-label *ngIf="label">\n {{ label }}\n <span *ngIf="required && label"> * </span>\n <gipi-helpful-tip *ngIf="tooltip && label"\n [tooltip]="tooltip">\n </gipi-helpful-tip>\n </mat-label>\n <mat-form-field [appearance]="appearance">\n <input matInput\n #input\n [name]="name"\n [placeholder]="placeholder"\n [required]="required"\n value="{{ archive?.name }}"\n disabled="true"\n autocomplete="off">\n\n <button mat-icon-button\n matSuffix\n matTooltip="Enviar"\n class="top"\n [disabled]="disabled"\n (click)="uploadArchive()"\n *ngIf="!loading && !archive">\n <mat-icon class="color-icon">file_upload</mat-icon>\n </button>\n\n \x3c!-- <button mat-icon-button--\x3e\n \x3c!-- matSuffix--\x3e\n \x3c!-- matTooltip="Baixar"--\x3e\n \x3c!-- class="top"--\x3e\n \x3c!-- [disabled]="disabled"--\x3e\n \x3c!-- (click)="downloadArchive()"--\x3e\n \x3c!-- *ngIf="!loading && archive">--\x3e\n \x3c!-- <mat-icon class="color-icon">file_download</mat-icon>--\x3e\n \x3c!-- </button>--\x3e\n\n <button mat-icon-button\n matSuffix\n matTooltip="Excluir"\n class="top"\n [disabled]="disabled"\n (click)="clearArchive()"\n *ngIf="!loading && archive">\n <mat-icon color="warn">close</mat-icon>\n </button>\n\n <mat-spinner matSuffix\n matTooltip="Carregando..."\n *ngIf="loading"\n mode="indeterminate"\n diameter="17">\n </mat-spinner>\n </mat-form-field>\n\n <input #fileInput\n type="file"\n style="display:none;">\n</div>',styles:[":host{display:block;min-width:0;max-width:100%;flex:1}mat-label span{color:#d14014!important}:host .color-icon{color:rgba(0,0,0,.54)!important}:host .top{font-size:18px!important}:host ::ng-deep .mat-icon-button{display:inline!important}"]}),Ce("design:paramtypes",[Xe,s.Router,s.ActivatedRoute])],n)}(Ge),Je=function(){function e(){}return e.isPositive=function(e){return!ze.isNull(e)&&e>0},e.isNegative=function(e){return!ze.isNull(e)&&e<0},e.format=function(e,t,n){return ze.isNull(e)||n&&"NUMBER"!==n?ze.isNull(e)||"PERCENT"!==n?Be.EMPTY:i.formatPercent(e/100,"pt",t):i.formatNumber(e,"pt",t)},e.onlyNumbers=function(e){return String(e).replace(/[^\d]/g,"")},e.isNumber=function(e){return null!=e&&!isNaN(e)&&"number"==typeof e},e}(),Qe=function(){function e(){}return e.removeCharacters=function(e){return Be.isEmpty(e)?"":e.replace(/\D/g,"")},e.maskLib=function(e,t,n){var i;if(void 0===n&&(n="BR"),Be.isEmpty(e))i=re.getExampleNumber(n,t);else{var o=re.parsePhoneNumberFromString(e,n);o&&(i=o)}if(i)return i.formatNational().replace(/\d/g,"0");throw new Error("Estado não suportado ou código de estado inválido.")},e.formatLib=function(e,t){void 0===t&&(t="BR");try{var n=re.parsePhoneNumberFromString(e,t);if(n)return n.formatNational();throw new Error("Número de telefone inválido.")}catch(e){throw new Error("Erro ao formatar o número de telefone: "+e.message)}},e.format=function(e,t){var n=Je.onlyNumbers(e),i="";if(Be.isEmpty(t)&&(t=this.mask(n)),"0*"===t)return n;for(var o=0,r=0;o<t.length&&r<n.length;o++)i+="0"===t.charAt(o)?n.charAt(r++):t.charAt(o);return i},e.mask=function(e){var t=this.removeCharacters(e.replace(/\D/g,""));if(t.length<8||t.length>12||!this.isPossible(t)&&!this.isValid(t))return"0*";if(["0900","0800","0700","0600","0500","0400","0300","0200","0100"].some((function(e){return t.startsWith(e)})))return"0000 000 0000";switch(t.length){case 8:return"0000-0000";case 9:return"0 0000-0000";case 10:return"(00) 0000-0000";case 11:return t.startsWith("0")?"(000) 0000-0000":"(00) 0 0000-0000";case 12:return"(000) 0 0000-0000";default:return"0*"}},e.isPossible=function(e,t){void 0===t&&(t="BR");try{var n=re.parsePhoneNumberFromString(e,t);return!!n&&n.isPossible()}catch(e){return!1}},e.isValid=function(e,t){void 0===t&&(t="BR");try{var n=re.parsePhoneNumberFromString(e,t);return!!n&&n.isValid()}catch(e){return!1}},e.getType=function(e,t){void 0===t&&(t="BR");try{var n=re.parsePhoneNumberFromString(e,t);return n?n.getType():null}catch(e){return null}},e.isEqual=function(e,t,n){void 0===n&&(n="BR");try{var i=re.parsePhoneNumberFromString(e,n),o=re.parsePhoneNumberFromString(t,n);return!(!i||!o)&&i.isEqual(o)}catch(e){return!1}},e}(),et=function(){function e(e,n){this.elementRef=e,this._changeDetectorRef=n,this._inputSubject$=new ie.BehaviorSubject(""),this._maskPhone$=new ie.BehaviorSubject(""),this.tooltip="",this.styleClassFormField="",this.styleClassSuffix="",this.readonly=!1,this.hidePasswordManager=!1,this.maxlength=250,this.type="text",this.autocomplete="off",this.appearance="outline",this.phone=!1,this.loading=!1,this.dropSpecialCharacters=!0,this.upperCase=!1,this.lowerCase=!1,this.spaceDrop=!1,this.focus=new t.EventEmitter,this.blur=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){var t=null;t=this.lowerCase?this.checkLowercase(this.checkSpaceDrop(e)):this.checkUppercase(this.checkSpaceDrop(e)),this._value=t,this.value!==e&&this._changeDetectorRef.detectChanges(),this.onChange(this._value),this.onTouch()},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.phone&&this._inputSubject$.pipe(oe.debounceTime(300)).subscribe((function(t){Be.isEmpty(t)||e._maskPhone$.next(Qe.mask(t))}))},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.phone&&!Be.isEmpty(e)&&(this._inputSubject$.next(e),this._changeDetectorRef.detectChanges()),this.value=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.detectChanges()},e.prototype.checkSpaceDrop=function(e){return this.spaceDrop&&e?e.replace(/\s/g,""):e},e.prototype.checkUppercase=function(e){return this.upperCase&&e?e.toUpperCase():e},e.prototype.checkLowercase=function(e){return this.lowerCase&&e?e.toLowerCase():e},e.prototype.onFocus=function(e){this.disabled||this.focus.emit(e)},e.prototype.onBlur=function(e){this.disabled||(this.blur.emit(e),this.onTouch())},e.prototype.onInputPhoneKeydown=function(e){if(this.phone){var t=Qe.removeCharacters(e.target.value),n=e.key;/\d/.test(n)&&(t.trim().length<8||t.trim().length>12)&&this._maskPhone$.next("0*")}},e.prototype.onInputPhoneChange=function(e){this.phone&&this._inputSubject$.next(e)},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},we([t.ViewChild("input",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"_elementRef",void 0),we([t.ContentChild("suffix",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"suffixRef",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"styleClassFormField",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"styleClassSuffix",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"readonly",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"hidePasswordManager",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"maxlength",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"type",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"min",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"max",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"autocomplete",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"appearance",void 0),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"value",null),we([t.Input(),Ce("design:type",String)],e.prototype,"mask",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"phone",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"dropSpecialCharacters",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"upperCase",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"lowerCase",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"patterns",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"spaceDrop",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"focus",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"blur",void 0),e=n=we([t.Component({selector:"itss-input",template:'<div fxLayout="column">\n <mat-label *ngIf="label">\n {{ label }}\n <span *ngIf="required && label"> * </span>\n <gipi-helpful-tip *ngIf="tooltip && label"\n [tooltip]="tooltip">\n </gipi-helpful-tip>\n </mat-label>\n\n <ng-container *ngIf="hidePasswordManager && (type === \'password\')">\n <input style="opacity: 0;position: absolute;">\n <input type="password"\n style="opacity: 0;position: absolute;">\n </ng-container>\n\n <mat-form-field [appearance]="appearance"\n [class]="styleClassFormField">\n <input matInput\n #input\n *ngIf="mask || phone"\n [autocomplete]="autocomplete"\n upperCase\n lowerCase\n spaceDrop\n [enabledUpperCase]="upperCase"\n [enabledLowerCase]="lowerCase"\n [spaceDrop]="spaceDrop"\n [name]="name"\n [readonly]="readonly"\n [placeholder]="placeholder"\n [required]="required"\n [disabled]="disabled"\n [(ngModel)]="value"\n [type]="type"\n [min]="min"\n [max]="max"\n [maxlength]="maxlength"\n [mask]="phone ? (_maskPhone$ | async) : mask"\n [dropSpecialCharacters]="dropSpecialCharacters"\n [patterns]="patterns"\n (focus)="onFocus($event)"\n (blur)="onBlur($event)"\n (keydown)="onInputPhoneKeydown($event)"\n (ngModelChange)="onInputPhoneChange($event)">\n\n <input matInput\n #input\n *ngIf="!mask && !phone"\n [name]="name"\n [readonly]="readonly"\n [placeholder]="placeholder"\n [required]="required"\n [disabled]="disabled"\n [(ngModel)]="value"\n [autocomplete]="autocomplete"\n upperCase\n [enabledUpperCase]="upperCase"\n [type]="type"\n [min]="min"\n [max]="max"\n [maxlength]="maxlength"\n [mask]="\'\'"\n spaceDrop\n [spaceDrop]="spaceDrop"\n (focus)="onFocus($event)"\n (blur)="onBlur($event)">\n\n <mat-spinner matPrefix\n *ngIf="loading"\n mode="indeterminate"\n diameter="17">\n </mat-spinner>\n\n <div *ngIf="suffixRef"\n matSuffix\n [class]="styleClassSuffix">\n <ng-template [ngTemplateOutlet]="suffixRef"> </ng-template>\n </div>\n </mat-form-field>\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:[":host{display:block;min-width:0;max-width:100%;flex:1}mat-label span{color:#d14014!important}"]}),Ce("design:paramtypes",[t.ElementRef,t.ChangeDetectorRef])],e)}(),tt=function(){function e(){}return e.prototype.ngOnInit=function(){},we([t.Input(),Ce("design:type",String)],e.prototype,"message",void 0),e=we([t.Component({selector:"itss-loading-overlay",template:'<div class="overlay">\n <img class="logo"\n src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAACQCAYAAAD+4c5bAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1B\n AACxjwv8YQUAAA+ASURBVHgB7Z0JkFxVFYbPTBKyDyEmSlgDqAiKcUmCmF1FFkEEt4CIaKlguVUpCYtFsRVLFUEIEJZyRcUK4pZSlCULCRoQA5IIBAoICTGEACFkl2z\n N/+XeHt7MdM90T7++/Wb6/lV/9aTTM/36/X3uPffcc85tsAwjl8vtoYd9xPeLh4oHi/uKe4t7iQNEXtNT7CE2ig0l/On864q99o0ZM2YsmzVr1gEDBgzY06oAfbZdW7\n Zs2bhy5coVS5cuHZF/vpSLDwZdJDf4veIocaT4PvEdYi9768bnb37+hjb6X0/zs2wV540cOfKeIUOGXN63b9/+DQ0NjZYi9FlzPG7YsOG1OXPmHKa//wr/7mk1hq5rk\n B6OFE8wJ8SBYh9zIvS22l1jbtGiRTdKFBs0aNBFspRBjY2NPSwlSIDdX6DevXv3NfclvJ9/1+TDSgQu5nDxRHGMeJA5SxhoToRMQPeML/JN48aN67Vr167zm5qa9kpT\n FP8ePPTN/zuoIF6IseIZ4gfE4WKTueEok9AN26nrnj569Ogd+ueFWEpPwdJF83AbRBA/N7xbPEkcb26SZrJM9dtWLXhRZowZM6anHs+TpQzuIVgVUFVBdPHMA3hFx4k\n TxXHiMOuC8KJcP2HChEZ5R+f369evSZqkfv+qJogu/m16mCAeK37S3GTdpSFRduhzXTd+/PiGnTt3njNw4MC9JEovSxGpC+Ktgpv/MfF0cbRlaKKuFHlRJk2alJPLOp\n WJPk1LSVUQXShe0lHiKeLx4v7WDSFRtiPK2LFjd0qU89MUJTVB/HqCdcS55tYV/a0bw1vKDRMnTuy5adOmqQxfabjEqQiiC8N1ZeL+vjlRUl3VZhVelGtlKTt69ep1c\n Z8+fQZKlIoiBhUL4i3jNPEH4iFWZ/CiTJcopsXjhfK+BlUiShoW8k3x2+IBVqeQKLtwiUeNGpWTGJfgElsnUZEguojLzYlRlYhoV0J+nTJixIhtw4YNu0qiDLROoNOC\n 6M2n6uECi2gGlqKHm/gZUTSnDCh3+Cp78pUQ/UWCgudaREEsXrz4FrnDF8r7el3zSq6c3y1LEAmBW0cc6jJxsEUUBJaycOHCGdu3b79CYZYNEmVnqb9b8pDlxdhPvFo\n 8wiLaRX5Fr9gX3td5/fv337OUxWM5FkI45GzxQ1Yn64xKgSjz58+frrjXVRs3blxXiqWUdGOlNBHao8WvWGIzJaJjEGaZN2/edTt27LiS7VqJs6O913coiA8Wsgl/qn\n XR0HmtgaUsWLDgRv04rSNLKcVC2FolLHKkRXQaWMrcuXOv04/TNm/evFGWUlCUdgXxO33sabDT18ciKoJE2SZRrpUWV2IphUTpyELeJR5j3WBzKSvIW4oWjFfLUta3H\n r6KumGyjn7mdvqOsWyCVfE2kUmSD1XWAqwDkJe1ze96VgWzZ8/+1eTJk5tWr179NXOfYTfa84tJSviI+HbLBhBgs/mbJW4USS5bL/7fnChpgRu0ztxQXTXMnDlzxZQp\n U+7Tj1s6fLG+HWeJL+ayARZZL4s3i6eLw3MuzbQq0N/uK56QC4PHxePz792zyAUdZm4rttZuLlbwL/EacQ7jr3VzFBuyWATW0s1laHpYvFgiLLA6QhtBZB1klRMeOch\n qg6fEmeLt4otWZyhkIaw7cHdDp+7gJWEN08R54hZya63OUEgQhqrQ1sGNv1e8VVwgITZbnaLFwjDnskfY7wi918F88RNxvsTYYHWM1hZCiQAVSyGHq8XmxLhXYmy0Ok\n fr0AkVSyGtg0XdneZc2roXA7QWhJqNQRYOs8Q/ii9YxG40C8Lq1NxkHmoD6lVzru0qn60RYS0thFX5UHO1fSHwT/Hhep/EWyMpyHssXII0wcCfi5ssogWSgpCXG2oT6\n jnxUbY2LaIFkoKQmxtq/rjDonUUROs5JJSF/MPcsBXRCklBhliY8mSGqQfFNyyiDZKCEDYJUSb9P/GNegwcloKkIKTPh6gbfz6KURxJQRiuQgiy3iKKIilIqK4KWy2i\n KJKChBpGQkUCuiSSgpBaEyKm1KlSr3pBUhByg9LMbSqG/SyiKJKCsB8RRBBFlvvkXKumiFZICkI4PETeExW7JFFktkdWLZEU5GULF86gi1zMpi+ApCDkQG2zMKBTULS\n QAkgKQkg81BrhU+KBcR5pi6Qgy82lcIYApQ4kGA+wiBZICvKkOU8rFOiRMjRaSUskBcE6nrdwwxa1i3QRykr9SSbQLIjP/Fhi4ayEUD+Na47KuVrGCGubl/W4+JqFA1\n ku3xXH5lyniLpHa0EeNbceCbFiB4hAYdA3xCPjfNJ2hxDreMJcSlCosZ3ECkog1oj0nPp3PSfOtRDEN+FaZG4lHXKypdr10/566M62mJpuq0MUqlOfLz5jYeJaSdAB+\n 3Pm+nB9VqLsbXWIQkkNy8X/miuJ3tfCgnI6FoyIsa9EuVuPy2QtHZcNp4v2DnupKtoI4octSso+bOEFAcwpDJk0vGFuudsPoyt0bS9ZGHBfatLUs1jaDxaCxzXJahfe\n 4H2JedHAf464gAlfjxs8800Edlq6XiHDOGm1n7AaoKAg+iau04d/RD8+bc5SagWGDfZPTvHEE/uPiMUsF1eaEyetTg644SQMTjbnZARHe4lxC80dw0NVVVaa6RNuOda\n zW6JoNyBZyVpzNRyPWkQwdJQ6ytjNCQcMW3FDKQDa7Zflq5vuF/9qEUFQSou/Z8U/i6ssouooRRBcS9zNX1i4oGPdokNBfKb6MvEP4m8toqooqW+vD/TRpeeX4lKLqB\n pK7lAtUVh8MXTRanyNRVQF5bYMp1Dz7+ItFssKqoKyBPHzCTuKN4t/MVcvGKuhUkTZNYV+N2+NYl0/MheZ5ShV6hNjOk8KKHfIaoaEYX1yifiQuTK1aCkpoNOCAIlCR\n PiH5jr6sB8f1ykVoiJBgEQhKeJS8S5zjY1jZ58KULEgQKKs0MN55lpmxCrbCpCKIECirDaXoHCRuYS7iE4gNUGARKFDww3mTuKhj2Jsn1EmUhUkASzkCnMWE0MtZaAq\n gvjY1wvmIsRkuM8Q11pEh6iWhexeQPoNLupOfiyeKd5mpRzNUMeoevcfrEWreupOCLnQCYjkCZIUSO8hhTSu8BMI0Y4pHwMjMPmYxGFO4QiKQ80lwn3UXDfUGH6xQII\n kgSemh8UcZGIu055cYs4rocX5O8Xh5tpv1KU4wQXJg5RVc4I8IXHohnqIJ0ctcQgZLTjIeCEXa2gtrzUkMvEh/WkIlNMtkTgk5SECotDxAVHIsyWDEcuhgrevJ9dPtm\n FaydE9/N8dYpaRZOtaww9pL3g+wHM5d94UDgDJ30P9z+T+Yln5xmtp3EDuB2JwZMcHrYpeaHsXkHn4dc1qz6rCW+hY8WcW5vxGHJ7mWpzg34Csw1voY+LdFgbMpc09Z\n qIghcFNet3CgG3w5g4aUZDCYF461MKghfhRkMJgHhltYcD8+Gr+H1GQVvAeHdYRogqZ4YrOGc198KMgbYErzaHMITxQctteStblR0ES8J0kWHieaGGAR7cy+UQUpCU4\n EI1C00MsDBiunks+UZOFob6JHDzGl2FdVvrA++Y3B4unWrhmzwjyfPKJoIL4IYHqVvZCEISo7z16XJMBYTg/ZaKFqzrm8yLIs8kngwlCr15znX8uNtcUAHGoO6F7A7U\n nK61G8P26Pi6eYeE6b7Obmt+4a0aQOcTHhxgOvmPurMR8IJDnzhQn1aqJmb82Sr/ps3K4hQNrjyf9NkQzqi6IPjDvMVz8snhSgZdgLfTLmuTnlmDwa46R4lnmOjeEdH\n LYzn6o9ZMhLgC/nt4lX7fiR2Kwjfslc53lggwZeh8mbhaAZ4onW9jGzri7DFdLWv9HVecQ/w2kGdpXze0zFANfjC/412zX77EPsrVaE73foWS4PFv8ooU/sYGm1U/55\n gwtUDVB/FDFmMxQNbaEX2FeYWJlt/A34m36G6+medah/h6fd7B/H+azURb+PBO+ZJyQ/aCFhD78nuI54tZc+Vgv3iWOshShv3eAOE18JVc7kBZ1qdjPQkFv1kM8WVye\n qwx0JfqTOD5XQYNM/e5h4i3iWnFXrrZ4RCzaaahaQxZDAp5LpVugeF2fEU8QV+mD/N7cPjveydpCw1nOCcfvHWGu6f9x5oamLKQVMVwt9CyI1AXRDcFzwWuZYOmB6yT\n BAff4dHNeCt929thZYLGngAPB5MwcxDxB9gieE0NDVnK88KooLS/aGzlVQXJuXGSBRapo2m4k19rkCejLSJoQCQJ88xr9a3r7x6wl2nGNJAU+2F4b3NQE8UMFDSzJdt\n /fqo89rGu1jCIp8G/mOuEVRZoLQ7qYft5cnm5sG94SZJXQcGGJrKPd9rupCCLrIFLK+M5kHuoI8K4EUopotPByRy+sWJCcW2yxqcMkPtgiWoOYFf3G2gQSCyENC2H/g\n KEKLyjWerQEw9MscxN5SRVkFQki6xiuh6nmRMlK59IsgfDI9dbBRJ5Ep70sP1ThUZGhEQ9kaQtq96ebO6685D76lYQjKBGgA3bdFte0A4anC8RfS4yy2lhVsg6hsKbJ \n IlqDKALzxk87cw5KJXMIXUpjB6CWQAzCI99r6OShNJW0Z6J4k3LnDRYByGAnNHKcrwjrFCp1e6eI15jztesZ5OaSOXNaqe5tMVTaL4sh60bxWjHU2R5ZAwLcKV4mrrM\n KkYp3lHM5VywOOQJvpNWP18U8equ59rmrGlI4zCy1GydRCJuwd/4tc2GU7hzTYmTgHJPbze3/v5JWQkZq4Xdd0GsShUmNXTyyKtgT2ce6H+jVwqkRvxMf0OfuMGBYDl\n IfWnIu9YcUGyK/5Fqxfdpdiv7zexp0zntaYmyylJH6jcq3JZcwTHYQSyErsBYHjKUFkqKJSxG1xTqWpZmelERVJ9+cy5tl95CdRA4YY44ZYl0HLPQ4ZYiheLb4WLWP8\n AviDfm9dpKsqUxCFDJCiIFlsWCIyZmbTqonCQlYxVxxc4iSiaDuac5lMx5tLkpMVmO+VUYW5hhcVoYmWt3SOOA+8Q6JELTLak3WCz4hgvUKCWPspdD5h/QdakVCpnbm\n RaBOfLm5FE8KiOaVG6VNCzVfwEkc5hSGMYYzGr7gKrOGYf7BY0vzGhlycDq42UzKrKyxhvvF+yTCM1ZjZGpFLXFowcRcM9I/UjuC1eRTfnraWy2ZGq3wHMS+NTd+l/+\n ZG48IbBLhplK1xdxA9iMWsSordY4g0yEOCYSlkFaEE8D+C+ub5PCGY0DYZvex3+a8ovzRrGQH0uKJwCeRacLinBK0OUsCRGQcbwKtBhhbkIbcygAAAABJRU5ErkJggg=="\n alt="GIPI Sistemas" />\n <div class="shadow"></div>\n <div class="text"\n *ngIf="!message">\n Aguarde\n <span class="status-dot">.</span>\n <span class="status-dot">.</span>\n <span class="status-dot">.</span>\n </div>\n <div class="text"\n *ngIf="message">\n {{ message }}\n </div>\n</div>\n',styles:[".overlay{position:absolute;top:-20px;width:100%;height:102%;background-color:rgba(0,0,0,.28);z-index:1}.logo{display:block;width:70px;position:absolute;margin:auto;top:0;bottom:0;left:-265px;right:0;-webkit-animation:.5s infinite alternate logo;animation:.5s infinite alternate logo}@-webkit-keyframes logo{0%{top:60px;transform:scaleX(1.7)}40%{transform:scaleX(.8)}100%{top:0}}@keyframes logo{0%{top:60px;transform:scaleX(1.7)}40%{transform:scaleX(.8)}100%{top:0}}.shadow{width:70px;height:4px;position:absolute;margin:auto;top:175px;bottom:0;left:-265px;right:0;border-radius:50%;background-color:rgba(0,0,0,.5);transform-origin:50%;z-index:1;-webkit-filter:blur(4px);filter:blur(4px);-webkit-animation:.5s infinite alternate shadow;animation:.5s infinite alternate shadow}@-webkit-keyframes shadow{0%{transform:scaleX(1.7)}40%{transform:scaleX(1);opacity:.7}100%{transform:scaleX(.8);opacity:.4}}@keyframes shadow{0%{transform:scaleX(1.7)}40%{transform:scaleX(1);opacity:.7}100%{transform:scaleX(.8);opacity:.4}}.text{display:flex;align-items:center;justify-content:center;width:50%;position:absolute;margin:auto;top:35%;bottom:0;left:-13%;right:0;z-index:1;font-size:26px;color:#fff;-webkit-animation:1s linear forwards fadeIn;animation:1s linear forwards fadeIn}.status-dot{-webkit-animation:1s steps(1,start) infinite dot1;animation:1s steps(1,start) infinite dot1}.status-dot:nth-child(2){-webkit-animation:1s steps(1,start) infinite dot2;animation:1s steps(1,start) infinite dot2}.status-dot:nth-child(3){-webkit-animation:1s steps(1,start) infinite dot3;animation:1s steps(1,start) infinite dot3}@-webkit-keyframes fadeIn{67%,from{opacity:0}83.3%,to{opacity:1}}@keyframes fadeIn{67%,from{opacity:0}83.3%,to{opacity:1}}@-webkit-keyframes dot1{from{visibility:hidden}33%,to{visibility:visible}}@keyframes dot1{from{visibility:hidden}33%,to{visibility:visible}}@-webkit-keyframes dot2{33%,from{visibility:hidden}67%,to{visibility:visible}}@keyframes dot2{33%,from{visibility:hidden}67%,to{visibility:visible}}@-webkit-keyframes dot3{67%,from{visibility:hidden}to{visibility:visible}}@keyframes dot3{67%,from{visibility:hidden}to{visibility:visible}}"]}),Ce("design:paramtypes",[])],e)}(),nt=function(){function e(){}return e.prototype.ngOnInit=function(){},e=we([t.Component({selector:"itss-loading",template:'<div class="container">\n <mat-spinner mode="indeterminate"\n strokeWidth="6"\n diameter="60"\n color="primary"></mat-spinner>\n</div>\n',styles:[".container{display:flex;align-items:center;justify-content:center;flex:0 1 100vh}"]})],e)}();var it,ot,rt,at,st=(it=[],{get:ot=function(e){return e&&parseInt(e.style.zIndex,10)||0},set:function(e,t,n){t&&(t.style.zIndex=String(function(e,t){var n=it.length>0?it[it.length-1]:{key:e,value:t},i=n.value+(n.key===e?0:t)+1;return it.push({key:e,value:i}),i}(e,n)))},clear:function(e){var t;e&&(t=ot(e),it=it.filter((function(e){return e.value!==t})),e.style.zIndex="")},getCurrent:function(){return it.length>0?it[it.length-1].value:0}}),lt=function(){function e(){this.ripple=!1,this.overlayOptions={},this.translation={startsWith:"Começa com",contains:"Contém",notContains:"Não contém",endsWith:"Termina com",equals:"É igual a",notEquals:"Não é igual",noFilter:"Sem filtro",lt:"Menor que",lte:"Menor que ou igual a",gt:"Maior que",gte:"Maior que ou igual a",is:"É",isNot:"Não é",before:"Antes",after:"Depois",dateIs:"A data é",dateIsNot:"A data não é",dateBefore:"A data é anterior",dateAfter:"A data é depois",clear:"Limpar",apply:"Aplicar",matchAll:"Corresponder a todos",matchAny:"Corresponder a qualquer",addRule:"Adicionar regra",removeRule:"Remover regra",accept:"Sim",reject:"Não",choose:"Escolher",upload:"Envio",cancel:"Cancelar",dayNames:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayNamesMin:["Do","Se","Te","Qa","Qi","Se","Sá"],monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],dateFormat:"dd/mm/yyyy",firstDayOfWeek:0,today:"Hoje",weekHeader:"Cabeçalho da semana",weak:"Fraco",medium:"Médio",strong:"Forte",passwordPrompt:"Insira uma senha"},this.zIndex={modal:2,overlay:1e3,menu:1,tooltip:2},this.translationSource=new ie.Subject,this.translationObserver=this.translationSource.asObservable()}return e.prototype.getTranslation=function(e){return this.translation[e]},e.prototype.setTranslation=function(e){this.translation=_e(_e({},this.translation),e),this.translationSource.next(this.translation)},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e=we([t.Injectable({providedIn:"root"})],e)}(),pt=function(){function e(){this.clickSource=new ie.Subject,this.clickObservable=this.clickSource.asObservable()}return e.prototype.add=function(e){e&&this.clickSource.next(e)},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e=we([t.Injectable({providedIn:"root"})],e)}(),dt=function(){function e(){}return e.addClass=function(e,t){e.classList?e.classList.add(t):e.className+=" "+t},e.addMultipleClasses=function(e,t){if(e.classList)for(var n=t.trim().split(" "),i=0;i<n.length;i++)e.classList.add(n[i]);else for(n=t.split(" "),i=0;i<n.length;i++)e.className+=" "+n[i]},e.removeClass=function(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")},e.hasClass=function(e,t){return e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className)},e.siblings=function(e){return Array.prototype.filter.call(e.parentNode.children,(function(t){return t!==e}))},e.find=function(e,t){return Array.from(e.querySelectorAll(t))},e.findSingle=function(e,t){return e?e.querySelector(t):null},e.index=function(e){for(var t=e.parentNode.childNodes,n=0,i=0;i<t.length;i++){if(t[i]==e)return n;1==t[i].nodeType&&n++}return-1},e.indexWithinGroup=function(e,t){for(var n=e.parentNode?e.parentNode.childNodes:[],i=0,o=0;o<n.length;o++){if(n[o]==e)return i;n[o].attributes&&n[o].attributes[t]&&1==n[o].nodeType&&i++}return-1},e.relativePosition=function(e,t){var n,i,o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),r=t.offsetHeight,a=t.getBoundingClientRect(),s=this.getViewport();a.top+r+o.height>s.height?(n=-1*o.height,e.style.transformOrigin="bottom",a.top+n<0&&(n=-1*a.top)):(n=r,e.style.transformOrigin="top"),i=o.width>s.width?-1*a.left:a.left+o.width>s.width?-1*(a.left+o.width-s.width):0,e.style.top=n+"px",e.style.left=i+"px"},e.absolutePosition=function(e,t,n){void 0===n&&(n=!0);var i,o,r=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),a=r.height,s=r.width,l=t.offsetHeight,p=t.offsetWidth,d=t.getBoundingClientRect(),c=this.getWindowScrollTop(),u=this.getWindowScrollLeft(),h=this.getViewport();d.top+l+a>h.height?(i=d.top+c-a,e.style.transformOrigin="bottom",i<0&&(i=c)):(n&&(i=l+d.top+c),e.style.transformOrigin="top"),o=d.left+s>h.width?Math.max(0,d.left+u+p-s):d.left+u,e.style.top=i+"px",e.style.left=o+"px"},e.getParents=function(e,t){return void 0===t&&(t=[]),null===e.parentNode?t:this.getParents(e.parentNode,t.concat([e.parentNode]))},e.getScrollableParents=function(e){var t,n,i,o,r=[];if(e){var a=this.getParents(e),s=/(auto|scroll)/,l=function(e){var t=window.getComputedStyle(e,null);return s.test(t.getPropertyValue("overflow"))||s.test(t.getPropertyValue("overflowX"))||s.test(t.getPropertyValue("overflowY"))};try{for(var p=ke(a),d=p.next();!d.done;d=p.next()){var c=d.value,u=1===c.nodeType&&c.dataset.scrollselectors;if(u){var h=u.split(",");try{for(var g=(i=void 0,ke(h)),m=g.next();!m.done;m=g.next()){var f=m.value,y=this.findSingle(c,f);y&&l(y)&&r.push(y)}}catch(e){i={error:e}}finally{try{m&&!m.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}}9!==c.nodeType&&l(c)&&r.push(c)}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}}return r},e.getHiddenElementOuterHeight=function(e){e.style.visibility="hidden",e.style.display="block";var t=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",t},e.getHiddenElementOuterWidth=function(e){e.style.visibility="hidden",e.style.display="block";var t=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",t},e.getHiddenElementDimensions=function(e){var t={};return e.style.visibility="hidden",e.style.display="block",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",t},e.scrollInView=function(e,t){var n=getComputedStyle(e).getPropertyValue("borderTopWidth"),i=n?parseFloat(n):0,o=getComputedStyle(e).getPropertyValue("paddingTop"),r=o?parseFloat(o):0,a=e.getBoundingClientRect(),s=t.getBoundingClientRect().top+document.body.scrollTop-(a.top+document.body.scrollTop)-i-r,l=e.scrollTop,p=e.clientHeight,d=this.getOuterHeight(t);s<0?e.scrollTop=l+s:s+d>p&&(e.scrollTop=l+s-p+d)},e.fadeIn=function(e,t){e.style.opacity=0;var n=+new Date,i=0,o=function(){i=+e.style.opacity.replace(",",".")+((new Date).getTime()-n)/t,e.style.opacity=i,n=+new Date,+i<1&&(window.requestAnimationFrame&&requestAnimationFrame(o)||setTimeout(o,16))};o()},e.fadeOut=function(e,t){var n=1,i=50/t,o=setInterval((function(){(n-=i)<=0&&(n=0,clearInterval(o)),e.style.opacity=n}),50)},e.getWindowScrollTop=function(){var e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)},e.getWindowScrollLeft=function(){var e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)},e.matches=function(e,t){var n=Element.prototype;return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||function(e){return-1!==[].indexOf.call(document.querySelectorAll(e),this)}).call(e,t)},e.getOuterWidth=function(e,t){var n=e.offsetWidth;if(t){var i=getComputedStyle(e);n+=parseFloat(i.marginLeft)+parseFloat(i.marginRight)}return n},e.getHorizontalPadding=function(e){var t=getComputedStyle(e);return parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)},e.getHorizontalMargin=function(e){var t=getComputedStyle(e);return parseFloat(t.marginLeft)+parseFloat(t.marginRight)},e.innerWidth=function(e){var t=e.offsetWidth,n=getComputedStyle(e);return t+=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)},e.width=function(e){var t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)},e.getInnerHeight=function(e){var t=e.offsetHeight,n=getComputedStyle(e);return t+=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)},e.getOuterHeight=function(e,t){var n=e.offsetHeight;if(t){var i=getComputedStyle(e);n+=parseFloat(i.marginTop)+parseFloat(i.marginBottom)}return n},e.getHeight=function(e){var t=e.offsetHeight,n=getComputedStyle(e);return t-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)},e.getWidth=function(e){var t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth)},e.getViewport=function(){var e=window,t=document,n=t.documentElement,i=t.getElementsByTagName("body")[0];return{width:e.innerWidth||n.clientWidth||i.clientWidth,height:e.innerHeight||n.clientHeight||i.clientHeight}},e.getOffset=function(e){var t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}},e.replaceElementWith=function(e,t){var n=e.parentNode;if(!n)throw new Error("Não é possível substituir o elemento");return n.replaceChild(t,e)},e.getUserAgent=function(){return navigator.userAgent},e.isIE=function(){var e=window.navigator.userAgent;if(e.indexOf("MSIE ")>0)return!0;if(e.indexOf("Trident/")>0){e.indexOf("rv:");return!0}return e.indexOf("Edge/")>0},e.isIOS=function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream},e.isAndroid=function(){return/(android)/i.test(navigator.userAgent)},e.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0},e.appendChild=function(e,t){if(this.isElement(t))t.appendChild(e);else{if(!t.el||!t.el.nativeElement)throw new Error("Não é possível anexar "+t+" para "+e);t.el.nativeElement.appendChild(e)}},e.removeChild=function(e,t){if(this.isElement(t))t.removeChild(e);else{if(!t.el||!t.el.nativeElement)throw new Error("Não é possível remover "+e+" a partir de "+t);t.el.nativeElement.removeChild(e)}},e.removeElement=function(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)},e.isElement=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName},e.calculateScrollbarWidth=function(e){if(e){var t=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(t.borderLeftWidth)-parseFloat(t.borderRightWidth)}if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;var n=document.createElement("div");n.className="p-scrollbar-measure",document.body.appendChild(n);var i=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),this.calculatedScrollbarWidth=i,i},e.calculateScrollbarHeight=function(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;var e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);var t=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=t,t},e.invokeElementMethod=function(e,t,n){e[t].apply(e,n)},e.clearSelection=function(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}},e.getBrowser=function(){if(!this.browser){var e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser},e.resolveUserAgent=function(){var e=navigator.userAgent.toLowerCase(),t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e.isInteger=function(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},e.isHidden=function(e){return null===e.offsetParent},e.getFocusableElements=function(t){var n,i,o=e.find(t,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]):not(.p-disabled)'),r=[];try{for(var a=ke(o),s=a.next();!s.done;s=a.next()){var l=s.value;"none"!=getComputedStyle(l).display&&"hidden"!=getComputedStyle(l).visibility&&r.push(l)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return r},e.generateZIndex=function(){return this.zindex=this.zindex||100,++this.zindex},e.zindex=100,e.calculatedScrollbarWidth=null,e.calculatedScrollbarHeight=null,e}(),ct=function(){function e(e,t){void 0===t&&(t=function(){}),this.element=e,this.listener=t}return e.prototype.bindScrollListener=function(){this.scrollableParents=dt.getScrollableParents(this.element);for(var e=0;e<this.scrollableParents.length;e++)this.scrollableParents[e].addEventListener("scroll",this.listener)},e.prototype.unbindScrollListener=function(){if(this.scrollableParents)for(var e=0;e<this.scrollableParents.length;e++)this.scrollableParents[e].removeEventListener("scroll",this.listener)},e.prototype.destroy=function(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null},e}(),ut=function(){function e(e,n,i,o,r,a){this.el=e,this.renderer=n,this.cd=i,this.zone=o,this.config=r,this.overlayService=a,this.dismissable=!0,this.closeIconSize=15,this.appendTo="body",this.autoZIndex=!0,this.baseZIndex=0,this.focusOnShow=!0,this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.onShow=new t.EventEmitter,this.onHide=new t.EventEmitter,this.overlayVisible=!1,this.render=!1,this.isOverlayAnimationInProgress=!1,this.selfClick=!1}return e.prototype.ngOnInit=function(){},e.prototype.ngAfterContentInit=function(){},e.prototype.bindDocumentClickListener=function(){var e=this;!this.documentClickListener&&this.dismissable&&this.zone.runOutsideAngular((function(){var t=dt.isIOS()?"touchstart":"click",n=e.el?e.el.nativeElement.ownerDocument:"document";e.documentClickListener=e.renderer.listen(n,t,(function(t){e.container.contains(t.target)||e.target===t.target||e.target.contains(t.target)||e.selfClick||e.zone.run((function(){e.hide()})),e.selfClick=!1,e.cd.markForCheck()}))}))},e.prototype.unbindDocumentClickListener=function(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null,this.selfClick=!1)},e.prototype.toggle=function(e,t){var n=this;this.isOverlayAnimationInProgress||(this.overlayVisible?(this.hasTargetChanged(e,t)&&(this.destroyCallback=function(){n.show(null,t||e.currentTarget||e.target)}),this.hide()):this.show(e,t))},e.prototype.show=function(e,t){this.isOverlayAnimationInProgress||(this.target=t||e.currentTarget||e.target,this.overlayVisible=!0,this.render=!0,this.cd.markForCheck())},e.prototype.onOverlayClick=function(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.selfClick=!0},e.prototype.onContentClick=function(){this.selfClick=!0},e.prototype.hasTargetChanged=function(e,t){return null!=this.target&&this.target!==(t||e.currentTarget||e.target)},e.prototype.appendContainer=function(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.container):dt.appendChild(this.container,this.appendTo))},e.prototype.restoreAppend=function(){this.container&&this.appendTo&&this.el.nativeElement.appendChild(this.container)},e.prototype.align=function(){this.autoZIndex&&st.set("overlay",this.container,this.baseZIndex+this.config.zIndex.overlay),dt.absolutePosition(this.container,this.target);var e=dt.getOffset(this.container),t=dt.getOffset(this.target),n=0;e.left<t.left&&(n=t.left-e.left),this.container.style.setProperty("--overlayArrowLeft",n+"px"),e.top<t.top&&dt.addClass(this.container,"overlay-panel-flipped")},e.prototype.onAnimationStart=function(e){var t=this;"open"===e.toState&&(this.container=e.element,this.onShow.emit(null),this.appendContainer(),this.align(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.focusOnShow&&this.focus(),this.overlayEventListener=function(e){t.container&&t.container.contains(e.target)&&(t.selfClick=!0)},this.overlaySubscription=this.overlayService.clickObservable.subscribe(this.overlayEventListener)),this.isOverlayAnimationInProgress=!0},e.prototype.onAnimationEnd=function(e){switch(e.toState){case"void":this.destroyCallback&&(this.destroyCallback(),this.destroyCallback=null),this.overlaySubscription&&this.overlaySubscription.unsubscribe();break;case"close":this.autoZIndex&&st.clear(this.container),this.overlaySubscription&&this.overlaySubscription.unsubscribe(),this.onContainerDestroy(),this.onHide.emit({}),this.render=!1}this.isOverlayAnimationInProgress=!1},e.prototype.focus=function(){var e=dt.findSingle(this.container,"[autofocus]");e&&this.zone.runOutsideAngular((function(){setTimeout((function(){return e.focus()}),5)}))},e.prototype.hide=function(){this.isOverlayAnimationInProgress||(this.overlayVisible=!1,this.cd.markForCheck())},e.prototype.onCloseClick=function(e){this.hide(),e.preventDefault()},e.prototype.onWindowResize=function(e){this.overlayVisible&&!dt.isTouchDevice()&&this.hide()},e.prototype.bindDocumentResizeListener=function(){this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener)},e.prototype.unbindDocumentResizeListener=function(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)},e.prototype.bindScrollListener=function(){var e=this;this.scrollHandler||(this.scrollHandler=new ct(this.target,(function(){e.overlayVisible&&e.hide()}))),this.scrollHandler.bindScrollListener()},e.prototype.unbindScrollListener=function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},e.prototype.onContainerDestroy=function(){this.cd.destroyed||(this.target=null),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener()},e.prototype.ngOnDestroy=function(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&st.clear(this.container),this.cd.destroyed||(this.target=null),this.destroyCallback=null,this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.overlaySubscription&&this.overlaySubscription.unsubscribe()},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2},{type:t.ChangeDetectorRef},{type:t.NgZone},{type:lt},{type:pt}]},we([t.Input(),Ce("design:type",Boolean)],e.prototype,"dismissable",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showCloseIcon",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"closeIconSize",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"style",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"styleClass",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"appendTo",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"autoZIndex",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaCloseLabel",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"baseZIndex",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"focusOnShow",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"showTransitionOptions",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"hideTransitionOptions",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onShow",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onHide",void 0),we([t.ContentChild("overlayContent",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"overlayContentRef",void 0),we([t.ContentChild("overlayFooter",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"overlayFooterRef",void 0),e=we([t.Component({selector:"itss-overlay-panel",template:'<div *ngIf="render"\n [ngClass]="\'overlay-panel component\'"\n [ngStyle]="style"\n [class]="styleClass"\n (click)="onOverlayClick($event)"\n [@animation]="{value: (overlayVisible ? \'open\': \'close\'), params: { showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions }}"\n (@animation.start)="onAnimationStart($event)"\n (@animation.done)="onAnimationEnd($event)">\n <div class="overlay-panel-content"\n (click)="onContentClick()"\n (mousedown)="onContentClick()">\n <ng-container *ngTemplateOutlet="overlayContentRef"></ng-container>\n </div>\n <div class="overlay-panel-footer"\n (click)="onContentClick()"\n (mousedown)="onContentClick()">\n <div class="overlay-panel-footer-divisory"></div>\n <div class="overlay-panel-footer-content">\n <ng-container *ngTemplateOutlet="overlayFooterRef"></ng-container>\n </div>\n </div>\n <button *ngIf="showCloseIcon"\n type="button"\n class="overlay-panel-close link"\n (click)="onCloseClick($event)"\n (keydown.enter)="hide()"\n [attr.aria-label]="ariaCloseLabel">\n X\n </button>\n</div>',animations:[ae.trigger("animation",[ae.state("void",ae.style({transform:"scaleY(0.8)",opacity:0})),ae.state("close",ae.style({opacity:0})),ae.state("open",ae.style({transform:"translateY(0)",opacity:1})),ae.transition("void => open",ae.animate("{{showTransitionParams}}")),ae.transition("open => close",ae.animate("{{hideTransitionParams}}"))])],changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,host:{class:"itss-element"},styles:['.component{font-size:1rem;font-weight:400;box-sizing:border-box}.component:disabled{opacity:.6}.overlay-panel{background:#fff;color:#696969;border:0;border-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,.3);position:absolute;margin-top:10px;top:0;left:0;display:flex;flex-direction:column}.overlay-panel:after,.overlay-panel:before{bottom:100%;left:calc(var(--overlayArrowLeft,0) + 1.25rem);content:" ";height:0;width:0;position:absolute;pointer-events:none}.overlay-panel:after{border:8px solid rgba(255,255,255,0);border-bottom-color:#fff;margin-left:-8px}.overlay-panel:before{border:10px solid rgba(255,255,255,0);border-bottom-color:#f2f2f2;margin-left:-10px}.overlay-panel .overlay-panel-content{padding:1.25rem 1.25rem .5rem}.overlay-panel .overlay-panel-footer .overlay-panel-footer-divisory{content:"";border-top:1px solid #ddd;width:100%}.overlay-panel .overlay-panel-footer .overlay-panel-footer-content{padding:1.25rem}.overlay-panel .overlay-panel-close{background:#696969;color:#fff;width:2rem;height:2rem;transition:background-color .2s,color .2s,box-shadow .2s;border-radius:50%;position:absolute;top:-1rem;right:-1rem;display:flex;justify-content:center;align-items:center;overflow:hidden}.overlay-panel .overlay-panel-close:enabled:hover{background:#919191;color:#fff}.overlay-panel-shifted:after,.overlay-panel-shifted:before{left:auto;right:1.25em;margin-left:auto}.overlay-panel-flipped{margin-top:0;margin-bottom:10px}.overlay-panel-flipped:after,.overlay-panel-flipped:before{bottom:auto;top:100%}.overlay-panel.overlay-panel-flipped:after,.overlay-panel.overlay-panel-flipped:before{border-top-color:#fff;border-bottom-color:transparent}.link{font-size:1rem;border-radius:6px;font-weight:700;text-align:left;margin:0;padding:0;border:none;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.link:focus{outline:0;outline-offset:0;box-shadow:0 0 0 .2rem #a3a3a3}']}),Ce("design:paramtypes",[t.ElementRef,t.Renderer2,t.ChangeDetectorRef,t.NgZone,lt,pt])],e)}(),ht=function(){function e(e,t,n){var i=this;this.overlay=e,this.content=t,this.data=n,this.afterClosed=new ie.Subject,this.afterClosed$=this.afterClosed.asObservable(),e.backdropClick().subscribe((function(){i._close("backdropClick",null)}))}return e.prototype.close=function(e){this._close("close",e)},e.prototype._close=function(e,t){this.overlay.dispose(),this.afterClosed.next({type:e,data:t}),this.afterClosed.complete()},e}(),gt=function(){function e(e){this.popoverRef=e,this.renderMethod="component"}return e.prototype.ngOnInit=function(){this.content=this.popoverRef.content,"string"==typeof this.content&&(this.renderMethod="text"),this.content instanceof t.TemplateRef&&(this.renderMethod="template",this.context={close:this.popoverRef.close.bind(this.popoverRef),data:this.popoverRef.data})},e.ctorParameters=function(){return[{type:ht}]},e=we([t.Component({template:'<ng-container [ngSwitch]="renderMethod">\n <div *ngSwitchCase="\'text\'"\n [innerHTML]="content"></div>\n <ng-container *ngSwitchCase="\'template\'">\n <ng-container *ngTemplateOutlet="content; context: context"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase="\'component\'">\n <ng-container *ngComponentOutlet="content"></ng-container>\n </ng-container>\n</ng-container>\n',styles:[""]}),Ce("design:paramtypes",[ht])],e)}(),mt=function(){function e(){this.property="description",this.entities=[],this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,e.prototype.ngOnInit=function(){},e.prototype.getPropertyValue=function(e){return e&&"string"!=typeof e&&e[this.property]},Object.defineProperty(e.prototype,"value",{get:function(){return this.val},set:function(e){this.val=e,this.onChange(e),this.onTouch()},enumerable:!1,configurable:!0}),e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.value=e},we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"property",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"entities",void 0),we([t.Input("value"),Ce("design:type",Object)],e.prototype,"val",void 0),e=n=we([t.Component({selector:"itss-radio-group-entity",template:'<div fxLayout="column">\n <mat-label>\n {{ label }}\n <span *ngIf="required && label">*</span>\n </mat-label>\n <mat-radio-group [(ngModel)]="value"\n [required]="required"\n [disabled]="disabled">\n <mat-radio-button *ngFor="let entity of entities"\n [value]="entity">\n {{ getPropertyValue(entity) }}\n </mat-radio-button>\n </mat-radio-group>\n</div>\n',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:[":host{display:block;min-width:0;max-width:100%;flex:1}mat-label span{color:#f44336!important}"]})],e)}(),ft=function(){function e(){}return e.uniqueId=function(e){for(var t=[],n=0;n<2;n++){var i=(65536*(1+Math.random())|0).toString(16).substring(1);t.push(i)}return e+"-"+t.join("-")},e}(),yt=function(){function e(e){this.changeDetectorRef=e,this.enumList=[],this.isGroupbox=!1,this.isInput=!1,this.selectionChange=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,e.prototype.ngOnInit=function(){var e=this,t=Object.keys(this.enum).map((function(t){return{key:t,value:e.enum[t]}})).sort(this.sort);if(ze.isNull(this.valuesExclud))this.enumList=t;else for(var n=function(e){i.valuesExclud.some((function(n){return n===t[e].key}))||i.enumList.push(t[e])},i=this,o=0;o<t.length;o++)n(o);this.changeDetectorRef.detectChanges()},Object.defineProperty(e.prototype,"value",{get:function(){return this.val},set:function(e){this.val=e,this.onChange(e),this.onTouch()},enumerable:!1,configurable:!0}),e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.value=e},e.prototype.changeRadioGroup=function(e){var t=e.value;this.selectionChange.emit(t)},e.prototype.validateOmitByKey=function(e){return!!ze.isNull(this.valuesOmit)||!this.valuesOmit.some((function(t){return t===e}))},e.prototype.getId=function(e){return ft.uniqueId(e)},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input("groupbox"),Ce("design:type",Boolean)],e.prototype,"isGroupbox",void 0),we([t.Input("input"),Ce("design:type",Boolean)],e.prototype,"isInput",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"enum",void 0),we([t.Input("value"),Ce("design:type",Object)],e.prototype,"val",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"sort",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"valuesExclud",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"valuesOmit",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectionChange",void 0),e=n=we([t.Component({selector:"itss-radio-group-enum",template:'<div fxLayout="column"\n *ngIf="!isGroupbox">\n <mat-label class="label">\n {{ label }}\n <span *ngIf="required && label">*</span>\n </mat-label>\n <mat-radio-group [(ngModel)]="value"\n [required]="required"\n [disabled]="disabled"\n (change)="changeRadioGroup($event)"\n [ngClass]="isInput ? \'type-input\' : \'\'">\n <div *ngFor="let e of enumList">\n <mat-radio-button [disabled]="!validateOmitByKey(e.key)"\n [id]="getId(e.key)"\n [name]="e.value"\n [value]="e.key">\n {{ e.value }}\n </mat-radio-button>\n </div>\n </mat-radio-group>\n</div>\n\n<fieldset *ngIf="isGroupbox">\n <legend class="legend">\n {{ label }}\n <span *ngIf="required && label">*</span>\n </legend>\n <mat-radio-group class="content-selection"\n [(ngModel)]="value"\n [required]="required"\n [disabled]="disabled"\n (change)="changeRadioGroup($event)">\n <div *ngFor="let e of enumList">\n <mat-radio-button [disabled]="!validateOmitByKey(e.key)"\n [id]="getId(e.key)"\n [name]="e.key"\n [value]="e.key">\n {{ e.value }}\n </mat-radio-button>\n </div>\n </mat-radio-group>\n</fieldset>\n',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],changeDetection:t.ChangeDetectionStrategy.OnPush,host:{class:"itss-element"},styles:[":host{display:block;min-width:0;max-width:100%;flex:1}.label>span{color:#f44336!important}fieldset{margin-inline:0!important;padding:0!important;padding-inline:0!important;padding-block:0!important;border-radius:10px!important;color:#696969!important;border:1px solid #e1e5e4!important}.legend{font-size:16px!important;color:#696969!important}.legend>span{color:#f44336!important}.content-selection{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-around!important;height:20px!important;margin-bottom:15px!important;width:100%!important}.content-selection>div{height:30px;margin-top:-10px}.content-selection .radio-button{font-size:13px!important;color:#696969!important}:host ::ng-deep .type-input{display:flex;align-items:center;justify-content:space-around;border:1px solid #dddfe1;margin-top:4px;margin-left:-35px;border-radius:5px;min-height:39px}:host ::ng-deep .type-input>div{max-height:20px}:host ::ng-deep .type-input>div .mat-radio-button{margin-top:0!important}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef])],e)}(),vt=function(){function e(e){var n=this;this._changeDetectorRef=e,this.valueSearchCtrl=new r.FormControl(""),this.totalOptions=0,this.subscriptions=[],this.searching=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this._options=[],this.closeIcon="close",this.multiple=!1,this.hideFieldSearch=!1,this.showClear=!1,this.debounceTime=1e3,this.valuesExclud=[],this.appearance="outline",this.property="description",this.trackyBy="id",this.initLoaded=!0,this.infiniteScroll=!0,this.modelChange=new t.EventEmitter,this.selectionChange=new t.EventEmitter,this.searchChange=new t.EventEmitter,this.addChange=new t.EventEmitter,this.openedChange=new t.EventEmitter,this.trackByOption=function(e,t){return n.trackyBy?t[n.trackyBy]:t},this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"paramNextBatch",{get:function(){return this._paramNextBatch},set:function(e){this._paramNextBatch=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"model",{get:function(){return this.modelValue},set:function(e){this.modelValue=e,this.modelChange.emit(this.modelValue),this.onChange(this.modelValue),this.onTouch(this.modelValue)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(e){this._options=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollViewportHeight",{get:function(){return Ot.isEmpty(this.options)?0:3*this.options.length},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscriptions.push(this.valueSearchCtrl.valueChanges.pipe(oe.map((function(e){return e})),oe.debounceTime(this.debounceTime),oe.distinctUntilChanged()).subscribe((function(t){e.onSearchChange(t)})))},e.prototype.ngOnChanges=function(e){ze.isNull(e.model)||e.model.isFirstChange()||Ot.isEmpty(this.options)&&!ze.isNull(this.model)&&(this.multiple?this.options=this.model:this.options.push(this.model))},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.writeValue=function(e){this.model=e},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.compareFn=function(e,t){return e&&t&&e.id===t.id},e.prototype.getPropertyValue=function(e){return ze.isNewModel(e)?Be.EMPTY:ze.isNull(this.propertyFn)?this.getValue(e,this.property):this.propertyFn(e)},e.prototype.getValue=function(e,t){for(var n=t.split("."),i=e,o=0;o<n.length;o++)if((i=Reflect.get(i,n[o]))&&o===n.length-1)return i},e.prototype.onSelectionChange=function(e){this.selectionChange.emit(e)},e.prototype.onSearchChange=function(e){this.matSelect.panelOpen&&(this.searchChange.emit(e),this.model=null,this.onSelectionChange(this.model),this.multiple&&this.onToggleAllSelection(!1),this.page=null,this.options=[],this.onLoadMoreOptions(!1))},e.prototype.onLoadMoreOptions=function(e,t){return void 0===t&&(t=!0),Ie(this,void 0,void 0,(function(){var n,i=this;return Se(this,(function(o){switch(o.label){case 0:return this.infiniteScroll&&t?ze.isNull(this.nextBatchFn)?(console.error("A função nextBatchFn é obrigatória e não foi informada"),[2]):this.searching?[2]:Ot.isEmpty(this.options)||ze.isNull(this.page)||!Ot.isEmpty(this.valuesExclud)||this.options.length!==this.page.totalElements?(this.cdkVirtualScrollViewPort.scrollToIndex(0,"smooth"),this.cdkVirtualScrollViewPort.checkViewportSize(),this.searching=!0,n=0,e?n=ze.isNull(this.page)?1:this.page.number+1:(this.page=null,this.options=[]),[4,this.nextBatchFn(this.valueSearchCtrl.value,n,this.paramNextBatch).then((function(e){if(i.page=e,!ze.isNull(i.page)&&!Ot.isEmpty(i.page.content)){if(!Ot.isEmpty(i.valuesExclud))for(var t=function(e){var t=i.page.content.findIndex((function(t){return i.valuesExclud[e][i.trackyBy]===t[i.trackyBy]}));i.page.content.splice(t,1)},n=0;n<i.valuesExclud.length;n++)t(n);i.options=Ee(i.options,i.page.content)}if(!ze.isNull(i.model)&&!i.multiple){var o=i.options.find((function(e){return ze.equals(e,i.model)}));ze.isNull(o)&&i.options.push(i.model)}i.searching=!1})).finally((function(){i.searching=!1}))]):[2]:[2];case 1:return o.sent(),[2]}}))}))},e.prototype.onToggleAllSelection=function(e){!this.multiple||ze.isNull(this.matSelect)||this.searching||(e?this.matSelect.options.forEach((function(e){return e.select()})):this.matSelect.options.forEach((function(e){return e.deselect()})),this.onToggleIndeterminateAllSelection(),this._changeDetectorRef.markForCheck())},e.prototype.onToggleIndeterminateAllSelection=function(){if(this.multiple&&!ze.isNull(this.matSelect)){var e=this.matSelect.options.filter((function(e){return e.selected}));this.toggleAllCheckboxChecked=e.length>0,this.toggleAllCheckboxIndeterminate=e.length>0&&e.length<this.matSelect.options.length,e.length<=0&&(this.model=null,this.onSelectionChange(this.model))}},e.prototype.showClearOptionButton=function(){var e=!1;return this.multiple&&Array.isArray(this.model)?e=!this.model||this.model&&this.model.length<=0:this.multiple||ze.isNull(this.model)||(e=ze.isNewModel(this.model)),this.showClear&&!e&&!this.disabled&&!this.searching},e.prototype.removeOption=function(){this.multiple&&this.onToggleAllSelection(!1),this.model=null,this.onSelectionChange(this.model),this.options=[]},e.prototype.haveSelected=function(){var e=this.model;return!!e&&He.isValid(e.id)},e.prototype.onClickAdd=function(){Array.isArray(this.model)&&!Ot.isEmpty(this.model)?this.addChange.emit(this.model):this.addChange.emit([])},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},we([t.ViewChild("matSelect",{static:!1}),Ce("design:type",H.MatSelect)],e.prototype,"matSelect",void 0),we([t.ViewChild(v.CdkVirtualScrollViewport,{static:!1}),Ce("design:type",v.CdkVirtualScrollViewport)],e.prototype,"cdkVirtualScrollViewPort",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"initAllCheckboxChecked",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"closeIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"closeSvgIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showButtonAdd",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"multiple",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"iconPrefix",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIconPrefix",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideFieldSearch",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showClear",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"debounceTime",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"valuesExclud",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"appearance",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"classSelectPanel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"property",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"trackyBy",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"initLoaded",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"infiniteScroll",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"propertyFn",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"nextBatchFn",void 0),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"paramNextBatch",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"model",null),we([t.Input(),Ce("design:type",Array),Ce("design:paramtypes",[Array])],e.prototype,"options",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"modelChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectionChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"searchChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"addChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"openedChange",void 0),e=n=we([t.Component({selector:"itss-select-entity-paged",template:'<div fxLayout="column"\n [attr.id]="id"\n [attr.name]="name">\n <mat-label *ngIf="label">\n {{ label }}\n <span *ngIf="required && label">*</span>\n </mat-label>\n <mat-form-field #formFieldSelect\n [appearance]="appearance"\n class="mat-form-field-select">\n <mat-icon *ngIf="iconPrefix || svgIconPrefix"\n matPrefix\n [svgIcon]="svgIconPrefix ? svgIconPrefix : \'\'">\n {{ !svgIconPrefix && iconPrefix ? iconPrefix : \'\' }}\n </mat-icon>\n\n <mat-select #matSelect\n [placeholder]="placeholder"\n [compareWith]="compareFn"\n [(ngModel)]="model"\n [required]="required"\n [disabled]="disabled"\n [multiple]="multiple"\n disableOptionCentering="true"\n [panelClass]="\'select-position \' + classSelectPanel"\n itssInfiniteScroll\n (infiniteScroll)="onLoadMoreOptions(true)"\n [complete]="options?.length === page?.totalElements"\n (selectionChange)="onSelectionChange($event.value)"\n (openedChange)="initLoaded && onLoadMoreOptions(false, $event); openedChange.emit($event)">\n <mat-option *ngIf="!hideFieldSearch">\n <itss-input-search placeholderLabel="Pesquisar..."\n noEntriesFoundLabel="Nenhum registro encontrado"\n [enableClearOnEscapePressed]="true"\n [disableScrollToActiveOnOptionsChanged]="true"\n [preventHomeEndKeyPropagation]="true"\n [disableScrollToActiveOnOptionsChanged]="true"\n [enableClearOnEscapePressed]="true"\n [clearSearchInput]="true"\n [formControl]="valueSearchCtrl"\n [closeIcon]="closeIcon"\n [closeSvgIcon]="closeSvgIcon"\n [searching]="searching"\n [showToggleAllCheckbox]="multiple"\n [toggleAllCheckboxChecked]="toggleAllCheckboxChecked"\n [toggleAllCheckboxIndeterminate]="toggleAllCheckboxIndeterminate"\n (toggleAll)="onToggleAllSelection($event)">\n </itss-input-search>\n </mat-option>\n\n <mat-select-trigger *ngIf="multiple">\n {{ modelValue ? getPropertyValue(modelValue[0]) : \'\' }}\n <span *ngIf="modelValue?.length > 1"\n class="mat-select-additional-selection">\n (+{{ modelValue.length - 1 }} {{ modelValue?.length === 2 ? \'outro\' : \'outros\' }})\n </span>\n </mat-select-trigger>\n\n <mat-option *ngIf="!multiple; else optionSelectedMultiple"\n [value]="model"\n [style.height.px]="0">\n {{ getPropertyValue(model) }}\n </mat-option>\n\n <ng-template #optionSelectedMultiple>\n <mat-option *ngFor="let m of model; trackBy: trackByOption"\n [value]="m"\n [style.height.px]="0">\n {{ getPropertyValue(m) }}\n </mat-option>\n </ng-template>\n\n <cdk-virtual-scroll-viewport itemSize="5"\n [style.height.em]="scrollViewportHeight"\n class="virtual-scroll-viewport">\n <mat-option *cdkVirtualFor="let option of options; trackBy: trackByOption"\n [value]="option"\n (click)="onToggleIndeterminateAllSelection()">\n {{ getPropertyValue(option) }}\n </mat-option>\n </cdk-virtual-scroll-viewport>\n\n <div *ngIf="searching"\n class="mat-select-search-loading">\n <div class="dot-pulse"> </div>\n </div>\n\n <mat-option *ngIf="showButtonAdd && !searching"\n class="mat-option-button-add"\n [disabled]="true"\n aria-hidden="true">\n <gipi-button label="Adicionar"\n gipi-primary\n (click)="onClickAdd(); $event.stopPropagation()"\n fxFlex>\n </gipi-button>\n </mat-option>\n </mat-select>\n\n <mat-icon *ngIf="showClearOptionButton()"\n matSuffix\n (click)="removeOption(); $event.stopPropagation()"\n matTooltip="Remover selecionado">\n close\n </mat-icon>\n </mat-form-field>\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:[':host{display:block;min-width:0;max-width:100%;flex:1}mat-label span{color:#f44336!important}:host ::ng-deep .mat-form-field-appearance-outline .mat-form-field-suffix{position:absolute!important;right:35px!important;top:30%!important}:host ::ng-deep .mat-form-field-appearance-outline .mat-form-field-suffix .mat-icon{height:18px!important;width:18px!important;font-size:18px!important;color:#696969!important}:host ::ng-deep .mat-form-field-appearance-legacy .mat-form-field-suffix{position:absolute!important;right:30px!important;top:35%!important}:host ::ng-deep .mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{height:18px!important;width:18px!important;font-size:18px!important;color:#696969!important}:host ::ng-deep .mat-select-value{padding-right:30px!important}::ng-deep .virtual-scroll-viewport{width:100%!important;overflow:hidden}::ng-deep .virtual-scroll-viewport .cdk-virtual-scroll-content-wrapper{width:100%!important}.mat-select-additional-selection{opacity:.75;font-size:.75em;margin-left:16px}.mat-select-search-loading{background-color:#fff;display:flex;align-items:center;justify-content:center;height:3em}.dot-pulse{position:relative;left:-9999px;width:5px;height:5px;border-radius:50%;background-color:#f3465c;color:#f3465c;box-shadow:9999px 0 0 -5px;-webkit-animation:1.5s linear .25s infinite dot-pulse;animation:1.5s linear .25s infinite dot-pulse}.dot-pulse::after,.dot-pulse::before{content:"";display:inline-block;position:absolute;top:0;width:5px;height:5px;border-radius:50%;background-color:#f3465c;color:#f3465c}.dot-pulse::before{box-shadow:9984px 0 0 -5px;-webkit-animation:1.5s linear infinite dot-pulse-before;animation:1.5s linear infinite dot-pulse-before}.dot-pulse::after{box-shadow:10014px 0 0 -5px;-webkit-animation:1.5s linear .5s infinite dot-pulse-after;animation:1.5s linear .5s infinite dot-pulse-after}@-webkit-keyframes dot-pulse-before{0%,100%,60%{box-shadow:9984px 0 0 -5px}30%{box-shadow:9984px 0 0 2px}}@keyframes dot-pulse-before{0%,100%,60%{box-shadow:9984px 0 0 -5px}30%{box-shadow:9984px 0 0 2px}}@-webkit-keyframes dot-pulse{0%,100%,60%{box-shadow:9999px 0 0 -5px}30%{box-shadow:9999px 0 0 2px}}@keyframes dot-pulse{0%,100%,60%{box-shadow:9999px 0 0 -5px}30%{box-shadow:9999px 0 0 2px}}@-webkit-keyframes dot-pulse-after{0%,100%,60%{box-shadow:10014px 0 0 -5px}30%{box-shadow:10014px 0 0 2px}}@keyframes dot-pulse-after{0%,100%,60%{box-shadow:10014px 0 0 -5px}30%{box-shadow:10014px 0 0 2px}}::ng-deep .mat-select-arrow{border:solid #6d6f73!important;border-width:0 2px 2px 0!important;display:inline-block!important;padding:3px!important;transform:rotate(45deg)!important;margin:0 4px!important}::ng-deep .mat-option-button-add{position:absolute;bottom:0;left:0;width:100%;z-index:100;background-color:#fff;border-radius:4px}']}),Ce("design:paramtypes",[t.ChangeDetectorRef])],e)}(),bt=function(){function e(e,n,i,o,r){void 0===o&&(o=null),void 0===r&&(r=null),this.matSelect=e,this.changeDetectorRef=n,this._viewportRuler=i,this.matOption=o,this.matFormField=r,this.label="Adicionar novo registro",this.addIcon="add_circle",this.ariaLabel="Botão de adicionar registro",this.onClick=new t.EventEmitter(!0)}return e.prototype.ngOnInit=function(){},e.prototype.onClickButton=function(e){this.onClick.emit(e),e.stopPropagation()},e.ctorParameters=function(){return[{type:a.MatSelect,decorators:[{type:t.Inject,args:[a.MatSelect]}]},{type:t.ChangeDetectorRef},{type:v.ViewportRuler},{type:a.MatOption,decorators:[{type:t.Optional},{type:t.Inject,args:[a.MatOption]}]},{type:a.MatFormField,decorators:[{type:t.Optional},{type:t.Inject,args:[a.MatFormField]}]}]},we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"addIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"addSvgIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Output("click"),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),e=we([t.Component({selector:"itss-select-button-add",template:'<div #innerSelectButtonAdd\n class="mat-select-button-add-inner mat-typography mat-datepicker-content mat-tab-header"\n (click)="onClickButton($event)">\n\n</div>\n',styles:[""]}),xe(0,t.Inject(a.MatSelect)),xe(3,t.Optional()),xe(3,t.Inject(a.MatOption)),xe(4,t.Optional()),xe(4,t.Inject(a.MatFormField)),Ce("design:paramtypes",[a.MatSelect,t.ChangeDetectorRef,v.ViewportRuler,a.MatOption,a.MatFormField])],e)}(),_t=function(){function e(e,n,i,o,r){void 0===o&&(o=null),void 0===r&&(r=null),this.matSelect=e,this.changeDetectorRef=n,this._viewportRuler=i,this.matOption=o,this.matFormField=r,this.label="Mostrar mais",this.ariaLabel="Botão para exibir mais resultados",this.onClick=new t.EventEmitter(!0)}return e.prototype.ngOnInit=function(){},e.prototype.onClickButton=function(e){this.onClick.emit(e),e.stopPropagation()},e.ctorParameters=function(){return[{type:a.MatSelect,decorators:[{type:t.Inject,args:[a.MatSelect]}]},{type:t.ChangeDetectorRef},{type:v.ViewportRuler},{type:a.MatOption,decorators:[{type:t.Optional},{type:t.Inject,args:[a.MatOption]}]},{type:a.MatFormField,decorators:[{type:t.Optional},{type:t.Inject,args:[a.MatFormField]}]}]},we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Output("click"),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),e=we([t.Component({selector:"itss-select-button-next-batch",template:'<div #innerSelectButtonNextBatch\n class="mat-select-button-next-inner mat-typography mat-datepicker-content mat-tab-header"\n (click)="onClickButton($event)">\n <itss-icon icon="keyboard_arrow_down"\n [iconSize]="18">\n </itss-icon>\n {{ label }}\n</div>\n',styles:[""]}),xe(0,t.Inject(a.MatSelect)),xe(3,t.Optional()),xe(3,t.Inject(a.MatOption)),xe(4,t.Optional()),xe(4,t.Inject(a.MatFormField)),Ce("design:paramtypes",[a.MatSelect,t.ChangeDetectorRef,v.ViewportRuler,a.MatOption,a.MatFormField])],e)}(),wt=function(){function e(){}return e=we([t.Directive({selector:"[itssSelectNoEntriesFound]"})],e)}(),xt=function(){function e(){}return e=we([t.Directive({selector:"[itssSelectSearchClear]"})],e)}(),Ct=["clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],It=new t.InjectionToken("itss-select_search-default-options"),St=function(){function e(e,n,i,o,a,s){var l=this;void 0===o&&(o=null),void 0===a&&(a=null),this.matSelect=e,this.changeDetectorRef=n,this._viewportRuler=i,this.matOption=o,this.matFormField=a,this.placeholderLabel="Pesquisar...",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Nenhum resultado encontrado",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.showToggleAllCheckbox=!1,this._toggleAllCheckboxChecked=!1,this._toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toggleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new t.EventEmitter,this.toggleAllIndeterminate=new t.EventEmitter,this._options$=new ie.BehaviorSubject(null),this.optionsList$=this._options$.pipe(oe.switchMap((function(e){return e?e.changes.pipe(oe.map((function(e){return e.toArray()})),oe.startWith(e.toArray())):ie.of(null)}))),this.optionsLength$=this.optionsList$.pipe(oe.map((function(e){return e?e.length:0}))),this._formControl=new r.FormControl(""),this._showNoEntriesFound$=ie.combineLatest([this._formControl.valueChanges,this.optionsLength$]).pipe(oe.map((function(e){var t=Oe(e,2),n=t[0],i=t[1];return l.noEntriesFoundLabel&&n&&i===l.getOptionsLengthOffset()}))),this._onDestroy=new ie.Subject,this.onTouched=function(e){},this.applyDefaultOptions(s)}var n;return n=e,Object.defineProperty(e.prototype,"value",{get:function(){return this._formControl.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_options",{get:function(){return this._options$.getValue()},set:function(e){this._options$.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInsideMatOption",{get:function(){return!!this.matOption},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"toggleAllCheckboxChecked",{get:function(){return this._toggleAllCheckboxChecked},set:function(e){this._toggleAllCheckboxChecked=e,this.toggleAll.emit(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"toggleAllCheckboxIndeterminate",{get:function(){return this._toggleAllCheckboxIndeterminate},set:function(e){this._toggleAllCheckboxIndeterminate=e,this.toggleAllIndeterminate.emit(e)},enumerable:!1,configurable:!0}),e.prototype.applyDefaultOptions=function(e){var t,n;if(e)try{for(var i=ke(Ct),o=i.next();!o.done;o=i.next()){var r=o.value;e.hasOwnProperty(r)&&(this[r]=e[r])}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},e.prototype.ngOnInit=function(){var e=this;this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("aria-hidden","true")):console.error("<itss-input-search> deve ser colocado dentro de um elemento <mat-option>"),this.matSelect.openedChange.pipe(oe.delay(1),oe.takeUntil(this._onDestroy)).subscribe((function(t){t?(e.updateInputWidth(),e.disableInitialFocus||e._focus()):e.clearSearchInput&&e._reset()})),this.matSelect.openedChange.pipe(oe.take(1),oe.switchMap((function(){e._options=e.matSelect.options;var t=e._options.toArray()[e.getOptionsLengthOffset()];return e._options.changes.pipe(oe.tap((function(){setTimeout((function(){var n=e._options.toArray(),i=n[e.getOptionsLengthOffset()],o=e.matSelect._keyManager;o&&e.matSelect.panelOpen&&(!!e.matSelect.compareWith(t,i)&&o.activeItem&&n.find((function(t){return e.matSelect.compareWith(t,o.activeItem)}))||o.setFirstItemActive(),setTimeout((function(){e.updateInputWidth()})));t=i}))})))}))).pipe(oe.takeUntil(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(oe.takeUntil(this._onDestroy)).subscribe((function(t){e.matOption&&(t?e.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):e.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))})),this._viewportRuler.change().pipe(oe.takeUntil(this._onDestroy)).subscribe((function(){e.matSelect.panelOpen&&e.updateInputWidth()})),this.initMultipleHandling(),this.optionsList$.pipe(oe.takeUntil(this._onDestroy)).subscribe((function(){e.changeDetectorRef.markForCheck()}))},e.prototype.ngOnChanges=function(e){this.searching?this._formControl.disable():(this._formControl.enable(),this._focus())},e.prototype.ngOnDestroy=function(){this._onDestroy.next(),this._onDestroy.complete()},e.prototype._isToggleAllCheckboxVisible=function(){return this.matSelect.multiple&&this.showToggleAllCheckbox},e.prototype._handleKeydown=function(e){var t=this;(e.key&&1===e.key.length||e.keyCode>=se.A&&e.keyCode<=se.Z||e.keyCode>=se.ZERO&&e.keyCode<=se.NINE||e.keyCode===se.SPACE||this.preventHomeEndKeyPropagation&&(e.keyCode===se.HOME||e.keyCode===se.END))&&e.stopPropagation(),this.matSelect.multiple&&e.key&&e.keyCode===se.ENTER&&setTimeout((function(){return t._focus()})),!0===this.enableClearOnEscapePressed&&e.keyCode===se.ESCAPE&&this.value&&(this._reset(!0),e.stopPropagation())},e.prototype._handleKeyup=function(e){if(e.keyCode===se.UP_ARROW||e.keyCode===se.DOWN_ARROW){var t=this.matSelect._getAriaActiveDescendant(),n=this._options.toArray().findIndex((function(e){return e.id===t}));-1!==n&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[n]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",t))}},e.prototype.writeValue=function(e){this._lastExternalInputValue=e,this._formControl.setValue(e),this.changeDetectorRef.markForCheck()},e.prototype.onBlur=function(){this.unselectActiveDescendant(),this.onTouched()},e.prototype.registerOnChange=function(e){var t=this;this._formControl.valueChanges.pipe(oe.filter((function(e){return e!==t._lastExternalInputValue})),oe.tap((function(){return t._lastExternalInputValue=void 0})),oe.takeUntil(this._onDestroy)).subscribe(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype._focus=function(){if(this.searchSelectInput&&this.matSelect.panel){var e=this.matSelect.panel.nativeElement,t=e.scrollTop;this.searchSelectInput.nativeElement.focus(),e.scrollTop=t}},e.prototype._reset=function(e){this._formControl.setValue(""),e&&this._focus()},e.prototype.initMultipleHandling=function(){var e=this;this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe(oe.takeUntil(this._onDestroy)).subscribe((function(t){var n=!1;if(e.matSelect.multiple&&(e.alwaysRestoreSelectedOptionsMulti||e._formControl.value&&e._formControl.value.length)&&e.previousSelectedValues&&Array.isArray(e.previousSelectedValues)){t&&Array.isArray(t)||(t=[]);var i=e.matSelect.options.map((function(e){return e.value}));e.previousSelectedValues.forEach((function(o){t.some((function(t){return e.matSelect.compareWith(t,o)}))||i.some((function(t){return e.matSelect.compareWith(t,o)}))||(t.push(o),n=!0)}))}e.previousSelectedValues=t,n&&e.matSelect._onChange(t)}))):this.matSelect.multiple&&console.error("o mat-select contendo itss-input-search deve ter uma diretiva ngModel ou formControl quando multiple=true")},e.prototype.updateInputWidth=function(){if(this.innerSelectSearch&&this.innerSelectSearch.nativeElement){for(var e,t=this.innerSelectSearch.nativeElement;t=t.parentElement;)if(t.classList.contains("mat-select-panel")){e=t;break}e&&(this.innerSelectSearch.nativeElement.style.width=e.clientWidth+"px")}},e.prototype.getOptionsLengthOffset=function(){return this.matOption?1:0},e.prototype.unselectActiveDescendant=function(){this.activeDescendant&&this.activeDescendant.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")},e.ctorParameters=function(){return[{type:a.MatSelect,decorators:[{type:t.Inject,args:[a.MatSelect]}]},{type:t.ChangeDetectorRef},{type:v.ViewportRuler},{type:a.MatOption,decorators:[{type:t.Optional},{type:t.Inject,args:[a.MatOption]}]},{type:a.MatFormField,decorators:[{type:t.Optional},{type:t.Inject,args:[a.MatFormField]}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[It]}]}]},we([t.HostBinding("class.mat-select-search-inside-mat-option"),Ce("design:type",Boolean),Ce("design:paramtypes",[])],e.prototype,"isInsideMatOption",null),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholderLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"type",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"closeIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"closeSvgIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"noEntriesFoundLabel",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"clearSearchInput",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"searching",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disableInitialFocus",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"enableClearOnEscapePressed",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"preventHomeEndKeyPropagation",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disableScrollToActiveOnOptionsChanged",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showToggleAllCheckbox",void 0),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"toggleAllCheckboxChecked",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"toggleAllCheckboxIndeterminate",null),we([t.Input(),Ce("design:type",String)],e.prototype,"toggleAllCheckboxTooltipMessage",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"toggleAllCheckboxTooltipPosition",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideClearSearchButton",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"alwaysRestoreSelectedOptionsMulti",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"toggleAll",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"toggleAllIndeterminate",void 0),we([t.ViewChild("searchSelectInput",{read:t.ElementRef,static:!0}),Ce("design:type",t.ElementRef)],e.prototype,"searchSelectInput",void 0),we([t.ViewChild("innerSelectSearch",{read:t.ElementRef,static:!0}),Ce("design:type",t.ElementRef)],e.prototype,"innerSelectSearch",void 0),we([t.ContentChild(xt,{static:!1}),Ce("design:type",xt)],e.prototype,"clearIcon",void 0),we([t.ContentChild(wt,{static:!1}),Ce("design:type",wt)],e.prototype,"noEntriesFound",void 0),e=n=we([t.Component({selector:"itss-input-search",template:'\x3c!-- Espaço reservado para ajustar o deslocamento vertical dos elementos mat-option --\x3e\n<input matInput\n class="mat-select-search-input mat-select-search-hidden" />\n\n\x3c!-- Note: o mat-datepicker-content mat-tab-header é necessário para herdar as cores do tema do material, consulte PR nº 22 --\x3e\n<div #innerSelectSearch\n class="mat-select-search-inner mat-typography mat-datepicker-content mat-tab-header"\n [ngClass]="{\'mat-select-search-inner-multiple\': matSelect.multiple, \'mat-select-search-inner-toggle-all\': _isToggleAllCheckboxVisible() }">\n\n <mat-checkbox *ngIf="_isToggleAllCheckboxVisible()"\n class="mat-select-search-toggle-all-checkbox"\n color="primary"\n [color]="matFormField?.color"\n [disabled]="searching"\n [matTooltip]="toggleAllCheckboxTooltipMessage"\n matTooltipClass="ngx-mat-select-search-toggle-all-tooltip"\n [matTooltipPosition]="toggleAllCheckboxTooltipPosition"\n [(ngModel)]="toggleAllCheckboxChecked"\n [(indeterminate)]="toggleAllCheckboxIndeterminate">\n </mat-checkbox>\n\n <input class="mat-select-search-input mat-input-element"\n autocomplete="off"\n [type]="type"\n [formControl]="_formControl"\n #searchSelectInput\n (keydown)="_handleKeydown($event)"\n (keyup)="_handleKeyup($event)"\n (blur)="onBlur()"\n [placeholder]="placeholderLabel">\n\n <mat-spinner *ngIf="searching"\n class="mat-select-search-spinner"\n diameter="16">\n </mat-spinner>\n\n <button *ngIf="!hideClearSearchButton && value && !searching"\n mat-icon-button\n aria-label="Clear"\n (click)="_reset(true)"\n class="mat-select-search-clear">\n <ng-content *ngIf="clearIcon; else defaultIcon"\n select="[itssSelectSearchClear]">\n </ng-content>\n\n <ng-template #defaultIcon>\n <mat-icon [svgIcon]="closeSvgIcon">\n {{ !closeSvgIcon ? closeIcon : null }}\n </mat-icon>\n </ng-template>\n </button>\n\n <ng-content select=".mat-select-search-custom-header-content"> </ng-content>\n\n <mat-divider> </mat-divider>\n</div>\n\n<div *ngIf="(_showNoEntriesFound$ | async) && !searching"\n class="mat-select-search-no-entries-found">\n <ng-content *ngIf="noEntriesFound; else defaultNoEntriesFound"\n select="[itssSelectNoEntriesFound]">\n </ng-content>\n\n <ng-template #defaultNoEntriesFound>\n {{ noEntriesFoundLabel }}\n </ng-template>\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],changeDetection:t.ChangeDetectionStrategy.OnPush,styles:['@charset "UTF-8";.mat-select-search-hidden{visibility:hidden}.mat-select-search-inner{position:absolute;top:0;left:0;width:100%;height:3em;border-bottom:none!important;z-index:100;font-size:inherit;box-shadow:none;border-radius:4px 4px 0 0}.mat-select-search-inner.mat-select-search-inner-multiple{width:100%}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all{display:flex;align-items:center}.mat-select-search-inner .mat-input-element{flex-basis:auto}.mat-select-search-inner .mat-input-element:-ms-input-placeholder{-ms-user-select:text}::ng-deep .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input{padding:16px 44px 16px 16px;box-sizing:border-box;width:100%}:host-context([dir=rtl]) .mat-select-search-input{padding-right:16px;padding-left:44px}.mat-select-search-no-entries-found{padding:16px}.mat-select-search-clear{position:absolute;right:4px;top:0}:host-context([dir=rtl]) .mat-select-search-clear{right:auto;left:4px}.mat-select-search-spinner{position:absolute;right:16px;top:calc(50% - 8px)}:host-context([dir=rtl]) .mat-select-search-spinner{right:auto;left:16px}:host.mat-select-search-inside-mat-option .mat-select-search-input{padding-top:0;padding-bottom:0;height:3em;line-height:3em}:host.mat-select-search-inside-mat-option .mat-select-search-clear{top:0}::ng-deep .mat-option[aria-disabled=true].contains-mat-select-search{position:-webkit-sticky;position:sticky;top:0;padding:0;left:0;z-index:1;border-bottom:1px solid rgba(0,0,0,.12)}::ng-deep .mat-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0}::ng-deep .mat-option[aria-disabled=true].contains-mat-select-search .mat-option-pseudo-checkbox{display:none}::ng-deep .mat-option[aria-disabled=true].contains-mat-select-search.mat-select-search-no-entries-found{height:6em}.mat-select-search-toggle-all-checkbox{padding-left:16px;padding-bottom:2px}:host-context([dir=rtl]) .mat-select-search-toggle-all-checkbox{padding-left:0;padding-right:16px}:host ::ng-deep .mat-checkbox-checked.mat-primary .mat-checkbox-background,:host ::ng-deep .mat-checkbox-indeterminate.mat-primary .mat-checkbox-background{background-color:#f3465c!important}.mat-select-search-loading{height:3em;width:100%;padding:0;display:flex;flex-direction:row;align-items:center;justify-content:center}.dot-pulse{position:relative;left:-9999px;width:5px;height:5px;border-radius:50%;background-color:#f3465c;color:#f3465c;box-shadow:9999px 0 0 -5px;-webkit-animation:1.5s linear .25s infinite dot-pulse;animation:1.5s linear .25s infinite dot-pulse}.dot-pulse::after,.dot-pulse::before{content:"";display:inline-block;position:absolute;top:0;width:5px;height:5px;border-radius:50%;background-color:#f3465c;color:#f3465c}.dot-pulse::before{box-shadow:9984px 0 0 -5px;-webkit-animation:1.5s linear infinite dot-pulse-before;animation:1.5s linear infinite dot-pulse-before}.dot-pulse::after{box-shadow:10014px 0 0 -5px;-webkit-animation:1.5s linear .5s infinite dot-pulse-after;animation:1.5s linear .5s infinite dot-pulse-after}@-webkit-keyframes dot-pulse-before{0%,100%,60%{box-shadow:9984px 0 0 -5px}30%{box-shadow:9984px 0 0 2px}}@keyframes dot-pulse-before{0%,100%,60%{box-shadow:9984px 0 0 -5px}30%{box-shadow:9984px 0 0 2px}}@-webkit-keyframes dot-pulse{0%,100%,60%{box-shadow:9999px 0 0 -5px}30%{box-shadow:9999px 0 0 2px}}@keyframes dot-pulse{0%,100%,60%{box-shadow:9999px 0 0 -5px}30%{box-shadow:9999px 0 0 2px}}@-webkit-keyframes dot-pulse-after{0%,100%,60%{box-shadow:10014px 0 0 -5px}30%{box-shadow:10014px 0 0 2px}}@keyframes dot-pulse-after{0%,100%,60%{box-shadow:10014px 0 0 -5px}30%{box-shadow:10014px 0 0 2px}}']}),xe(0,t.Inject(a.MatSelect)),xe(3,t.Optional()),xe(3,t.Inject(a.MatOption)),xe(4,t.Optional()),xe(4,t.Inject(a.MatFormField)),xe(5,t.Optional()),xe(5,t.Inject(It)),Ce("design:paramtypes",[a.MatSelect,t.ChangeDetectorRef,v.ViewportRuler,a.MatOption,a.MatFormField,Object])],e)}(),kt=te(),Ot=function(){function e(){}return e.isEmpty=function(e){return ze.isNull(e)||0===e.length},e.clone=function(e){return ze.isNull(e)?new Array:kt(e)},e.sortObjects=function(e){return function(e,t,n){for(var i=["boolean","number","string","object","undefined"],o=function(o){var r=1;e[o].isAsc||(r=-1);var a=function(e,t){if(!ze.isNewModel(e))for(var n=t.split("."),i=e,o=0;o<n.length;o++)if((i=Reflect.get(i,n[o]))&&o===n.length-1)return i;return""}(t,e[o].property),s=n[e[o].property],l=typeof a,p=typeof s,d=0;if(l===p)switch(l){case"string":d=a.localeCompare(s);break;case"number":d=a===s?0:a<s?-1:1;break;case"boolean":d=a===s?0:!1===a?-1:1;break;case"object":ze.isNull(a)&&ze.isNull(s)?d=0:ze.isNull(a)?d=-1:ze.isNull(s)?d=1:(a=a.toString(),s=s.toString(),d=a.localeCompare(s));break;default:d=0}else{if(ze.isNull(a)&&ze.isNull(s))d=0;else if(ze.isNull(a))d=1;else if(ze.isNull(s))d=-1;else{var c=i.findIndex((function(e){return e===l})),u=i.findIndex((function(e){return e===p}));d=c===u?0:c<u?-1:1}if(0!==d)return{value:d}}if(0!==d)return{value:d*r}},r=0;r<e.length;r++){var a=o(r);if("object"==typeof a)return a.value}return 0}.bind(this,e)},e}(),Et=function(){function e(e){this._changeDetectorRef=e,this.filteredEntities=[],this.previousSearchValue=null,this.allSelected=!1,this.indeterminateAllSelected=!1,this.multiple=!1,this.displayCheckboxAll=!1,this.loading=!1,this.showClear=!1,this.upperCase=!1,this.property="description",this.valuesExclud=[],this.entities=[],this.modelChange=new t.EventEmitter,this.selectionChange=new t.EventEmitter,this.compareFn=function(e,t){return e&&t&&e.id===t.id}}return Object.defineProperty(e.prototype,"model",{get:function(){return this._modelValue},set:function(e){this._modelValue=e,this.modelChange.emit(this._modelValue)},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.ngAfterContentChecked=function(){this._changeDetectorRef.detectChanges()},e.prototype.ngOnChanges=function(e){e.model&&!ze.isNull(e.model.currentValue)&&this.filterEntities(),e.entities&&!ze.isNull(e.entities.currentValue)&&(this.filteredEntities=this.entities,this.filterEntities())},e.prototype.filterEntities=function(){var e=this;if(!ze.isNewModel(this.model)&&!Ot.isEmpty(this.filteredEntities)&&!this.multiple){var t=this.filteredEntities.find((function(t){return ze.equalsByValue(t,e.model)}));ze.isNewModel(t)||(this.model=t)}},e.prototype.getPropertyValue=function(e){return ze.isNewModel(e)?Be.EMPTY:ze.isNull(this.propertyFn)?this.getValue(e,this.property):this.propertyFn(e)},e.prototype.getValue=function(e,t){for(var n=t.split("."),i=e,o=0;o<n.length;o++)if((i=Reflect.get(i,n[o]))&&o===n.length-1)return ze.isNull(this.propertyEnum)?i:this.propertyEnum[i]},e.prototype.onSearch=function(e){var t=this;e===this.previousSearchValue||this.haveSelected()&&e===this.getPropertyValue(this.model)||(this.upperCase&&(this.search.nativeElement.value=this.search.nativeElement.value.toUpperCase()),this.previousSearchValue=e,this.filteredEntities=this.entities.filter((function(n){return Be.replaceAccents(t.getPropertyValue(n)).toLowerCase().includes(Be.replaceAccents(e).toLowerCase())})))},e.prototype.haveSelected=function(){return!ze.isNull(this.model)},e.prototype.onSelectionChange=function(e){this.selectionChange.emit(e)},e.prototype.resetSearch=function(){Ot.isEmpty(this.filteredEntities)&&(this.search.nativeElement.value="",this.filteredEntities=this.entities)},e.prototype.selectAll=function(){this.allSelected=!0,this.indeterminateAllSelected=!1,this.toggleAllSelection(),this._changeDetectorRef.detectChanges()},e.prototype.toggleAllSelection=function(){if(!this.disabled){if(this.displayCheckboxAll&&this.allSelected&&!ze.isNull(this.select))for(var e=0;e<this.select.options.length;e++){var t=this.select.options[e];ze.isNull(t)||t.select()}else for(e=0;e<this.select.options.length;e++){t=this.select.options[e];ze.isNull(t)||t.deselect()}this.validateIndeterminateAllSelected(),this._changeDetectorRef.detectChanges()}},e.prototype.validateIndeterminateAllSelected=function(){if(this.displayCheckboxAll&&!ze.isNull(this.select)){var e=this.select.options.filter((function(e){return e.selected}));this.allSelected=e.length>0,this.indeterminateAllSelected=e.length>0&&e.length!==this.select.options.length,this._changeDetectorRef.detectChanges()}},e.prototype.removeOption=function(){this.multiple?(this.allSelected=!1,this.indeterminateAllSelected=!1,this.toggleAllSelection()):(this.model=null,this.onSelectionChange(null)),this._changeDetectorRef.detectChanges()},e.prototype.showClearButton=function(){return this.showClear&&!Be.isEmpty(this.getPropertyValue(this.model))&&!ze.isNull(this.model)&&!this.disabled&&!this.loading&&!Ot.isEmpty(this.entities)},e.prototype.validKey=function(e){return!!ze.isNull(this.valuesExclud)||!this.valuesExclud.some((function(t){return t===e}))},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},we([t.ViewChild("select",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"_elementRef",void 0),we([t.ViewChild("select",{static:!1}),Ce("design:type",a.MatSelect)],e.prototype,"select",void 0),we([t.ViewChild("search",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"search",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"multiple",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"displayCheckboxAll",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showClear",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"upperCase",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"property",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"propertyFn",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"propertyEnum",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"map",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"nullValue",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"valuesExclud",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"entities",void 0),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"model",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"modelChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectionChange",void 0),e=we([t.Component({selector:"itss-select-entity",template:'<div fxLayout="column">\n <mat-label>\n {{ label }}\n <span *ngIf="required && label"> * </span>\n </mat-label>\n <mat-form-field appearance="outline">\n <mat-select #select\n [name]="name"\n *ngIf="multiple"\n [placeholder]="placeholder"\n [compareWith]="compareFn"\n [(ngModel)]="model"\n [required]="required"\n [disabled]="disabled || loading || (entities && entities.length === 0)"\n multiple\n disableOptionCentering="true"\n (selectionChange)="onSelectionChange($event.value)"\n panelClass="select-position">\n <mat-form-field *ngIf="!displayCheckboxAll"\n appearance="standard"\n class="select-input-search"\n fxFlexFill>\n <input #search\n matInput\n placeholder="Pesquisar..."\n type="text"\n autofocus\n autocomplete="off"\n (focusout)="resetSearch()"\n (keyup)="onSearch($event.target.value)"\n (keydown)="$event.stopPropagation()">\n <span matPrefix>\n <mat-icon>search</mat-icon>\n </span>\n </mat-form-field>\n\n <div *ngIf="displayCheckboxAll"\n class="checkbox-all-select"\n [class.disabled]="(select.options && (select.options.length <= 0))"\n (click)="(select.options && (select.options.length <= 0)) ? null : allSelected = !allSelected; toggleAllSelection()">\n <itss-checkbox label="Selecionar todos"\n color="primary"\n name="allSelected"\n [disabled]="(select.options && (select.options.length <= 0))"\n [(ngModel)]="allSelected"\n [indeterminate]="indeterminateAllSelected">\n </itss-checkbox>\n </div>\n\n <mat-option *ngFor="let entity of filteredEntities"\n [value]="entity"\n (click)="validateIndeterminateAllSelected()">\n {{ getPropertyValue(entity) }}\n </mat-option>\n </mat-select>\n\n <mat-select #select\n [name]="name"\n *ngIf="!multiple"\n [placeholder]="placeholder"\n [(ngModel)]="model"\n [required]="required"\n [disabled]="disabled || loading || (entities && entities.length === 0)"\n disableOptionCentering="true"\n (selectionChange)="onSelectionChange($event.value)"\n panelClass="select-position">\n <mat-form-field appearance="standard"\n class="select-input-search"\n fxFlexFill>\n <input #search\n matInput\n placeholder="Pesquisar..."\n type="text"\n autofocus\n autocomplete="off"\n (focusout)="resetSearch()"\n (keyup)="onSearch($event.target.value)"\n (keydown)="$event.stopPropagation()">\n <span matPrefix>\n <mat-icon>search</mat-icon>\n </span>\n </mat-form-field>\n\n <mat-option *ngIf="!required && !search.value"\n [value]="null">\n {{ nullValue ? nullValue : \'Selecione\' }}\n </mat-option>\n <div *ngFor="let entity of filteredEntities">\n <mat-option *ngIf="validKey(entity)"\n [value]="entity">\n {{ getPropertyValue(entity) }}\n </mat-option>\n </div>\n </mat-select>\n\n <mat-spinner matPrefix\n *ngIf="loading"\n mode="indeterminate"\n diameter="17">\n </mat-spinner>\n\n <mat-icon *ngIf="showClearButton()"\n matSuffix\n (click)="removeOption(); $event.stopPropagation()"\n matTooltip="Remover selecionado">\n clear\n </mat-icon>\n </mat-form-field>\n</div>\n',styles:[":host{display:block;min-width:0;max-width:100%;flex:1}mat-label span{color:#f44336!important}.disabled{cursor:not-allowed!important;opacity:.6!important}:host ::ng-deep .mat-form-field-appearance-outline .mat-form-field-suffix{top:50%!important;transform:translateY(-50%)!important;right:3rem!important;position:absolute!important}:host ::ng-deep .mat-form-field-appearance-outline .mat-form-field-suffix>mat-icon{color:#131313!important;width:20px;height:20px;font-size:18px;display:flex!important;align-items:center;justify-content:center}:host ::ng-deep .mat-form-field-appearance-outline .mat-form-field-suffix>mat-icon:hover{font-size:19px}:host ::ng-deep .mat-select-disabled .mat-select-trigger,:host ::ng-deep .mat-select-disabled .mat-select-value{cursor:not-allowed!important}.checkbox-all-select{line-height:3em;height:3em;text-align:left;cursor:pointer;display:flex;align-items:center;border-bottom:1px solid #e1e5e4}.checkbox-all-select:hover:not(.disabled){background:rgba(0,0,0,.04)}.checkbox-all-select>itss-checkbox{width:100%;padding:0 16px}.checkbox-all-select>itss-checkbox>div{width:100%}.checkbox-all-select>itss-checkbox ::ng-deep .mat-checkbox-layout{pointer-events:none!important}.checkbox-all-select>itss-checkbox ::ng-deep .mat-checkbox-label{font-size:13px!important;text-transform:uppercase!important;color:#696969!important;margin-left:5px!important}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef])],e)}(),Dt=function(){function e(){this.tooltip="",this.multiple=!1,this.selectionChange=new t.EventEmitter,this.loading=!1,this.enumList=[],this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,e.prototype.ngOnInit=function(){var e=this;this.enumList=Object.keys(this.enum).map((function(t){return{key:t,value:e.enum[t]}})).sort(this.sort)},e.prototype.onSelectionChange=function(e){this.selectionChange.emit(e)},Object.defineProperty(e.prototype,"value",{get:function(){return this.val},set:function(e){this.val=e,this.onChange(e),this.onTouch()},enumerable:!1,configurable:!0}),e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.value=e},e.prototype.validKey=function(e){return!!ze.isNull(this.valuesExclud)||!this.valuesExclud.some((function(t){return t===e}))},we([t.ViewChild("select",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"_elementRef",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"multiple",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"enum",void 0),we([t.Output(),Ce("design:type",Object)],e.prototype,"selectionChange",void 0),we([t.Input("value"),Ce("design:type",Object)],e.prototype,"val",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"sort",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"valuesExclud",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"nullValue",void 0),e=n=we([t.Component({selector:"itss-select-enum",template:'<div fxLayout="column">\n <mat-label *ngIf="label">\n {{ label }}\n <span *ngIf="required && label"> * </span>\n <gipi-helpful-tip *ngIf="tooltip && label"\n [tooltip]="tooltip">\n </gipi-helpful-tip>\n </mat-label>\n\n <mat-form-field appearance="outline">\n <mat-select #select\n [name]="name"\n [placeholder]="placeholder"\n [multiple]="multiple"\n [(ngModel)]="value"\n [required]="required"\n [disabled]="disabled"\n [class.select-disabled]="disabled"\n [disableOptionCentering]="true"\n (selectionChange)="onSelectionChange($event.value)"\n panelClass="select-position">\n <mat-option *ngIf="!required && !multiple"\n [value]="null">\n {{ nullValue ? nullValue : \'Selecione\' }}\n </mat-option>\n <div *ngFor="let e of enumList">\n <mat-option *ngIf="validKey(e.key)"\n (click)="(e.key === val) ? onSelectionChange(null) : null"\n [value]="e.key">\n {{ e.value }}\n </mat-option>\n </div>\n </mat-select>\n <mat-spinner matPrefix\n *ngIf="loading"\n mode="indeterminate"\n diameter="17"></mat-spinner>\n </mat-form-field>\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:[":host{display:block;min-width:0;max-width:100%;flex:1}mat-label span{color:#f44336!important}.select-disabled{cursor:not-allowed!important}:host ::ng-deep .mat-select-disabled .mat-select-trigger,:host ::ng-deep .mat-select-disabled .mat-select-value{cursor:not-allowed!important}"]})],e)}(),Pt=function(){function e(e){this._config=e,this.disabled=!1,this.required=!1,this.bootPeriod=new Date,this.dateChange=new t.EventEmitter}var n;return n=e,e.prototype.ngOnInit=function(){this.periodSelected=new Date(this.bootPeriod)},e.prototype.onClickButtonLeft=function(){var e=this;setTimeout((function(){e.periodSelected.setMonth(e.periodSelected.getMonth()-1),e.dateChangeEmit()}))},e.prototype.onClickButtonRight=function(){var e=this;setTimeout((function(){e.periodSelected.setMonth(e.periodSelected.getMonth()+1),e.dateChangeEmit()}))},e.prototype.dateChangeEmit=function(){this.dateChange.emit(this.periodSelected)},e.prototype.getMonthNameByDate=function(){return this._config.getTranslation("monthNames")[this.periodSelected.getMonth()]},e.prototype.getFullYearByDate=function(){return this.periodSelected.getFullYear().toString()},e.ctorParameters=function(){return[{type:lt}]},we([t.ViewChild("datePeriodDropdown",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"_elementRef",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Date)],e.prototype,"bootPeriod",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"dateChange",void 0),e=n=we([t.Component({selector:"itss-select-month-period",template:'<div fxLayout="column"\n fxFlex>\n <mat-label *ngIf="label"\n class="label">\n {{ label }}\n <span *ngIf="required && label">*</span>\n </mat-label>\n <div #datePeriodDropdown\n class="date-filter">\n <button type="button"\n [disabled]="disabled"\n class="button-arrow button-arrow-left"\n (click)="onClickButtonLeft()">\n <span class="icon">\n <svg aria-hidden="true"\n focusable="false"\n data-prefix="fas"\n data-icon="angle-left"\n role="img"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 256 512"\n class="svg-inline--fa fa-angle-left fa-w-8 fa-fw fa-lg">\n <path fill="currentColor"\n d="M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"\n class="">\n </path>\n </svg>\n </span>\n </button>\n\n <button #btnSelectPeriod\n type="button"\n [disabled]="disabled"\n id="monthLabel"\n class="date-filter-field">\n <span class="date-filter-field-text">\n {{ getMonthNameByDate() }}\n <span class="separator"> - </span>\n {{ getFullYearByDate() }}\n </span>\n </button>\n\n <button type="button"\n [disabled]="disabled"\n class="button-arrow button-arrow-right"\n (click)=" onClickButtonRight()">\n <span class="icon">\n <svg aria-hidden="true"\n focusable="false"\n data-prefix="fas"\n data-icon="angle-right"\n role="img"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 256 512"\n class="svg-inline--fa fa-angle-right fa-w-8 fa-fw fa-lg">\n <path fill="currentColor"\n d="M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"\n class="">\n </path>\n </svg>\n </span>\n </button>\n </div>\n</div>\n',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"itss-element"},styles:[":host{display:block;min-width:0;max-width:100%;flex:1}button:disabled{opacity:.4!important;pointer-events:none!important;cursor:not-allowed!important}.date-filter{width:100%;height:42.53px;display:flex;background-color:#fff}.date-filter svg{width:20px;height:20px}:focus-visible{outline:0}.button-arrow{padding:8px;color:#696969;border:1px solid #dddfe1;background-color:#fff;height:100%;width:55px;font-size:14px;font-weight:600;line-height:1.5;text-align:center;text-decoration:none;cursor:pointer;transition:background-color .2s ease-in-out}.button-arrow:hover{background-color:#f9f9f9}.icon{display:block;margin:0 auto;width:20px;height:20px}.button-arrow-left{border-top-left-radius:5px;border-bottom-left-radius:5px}.button-arrow-right{border-top-right-radius:5px;border-bottom-right-radius:5px}.date-filter-field{display:flex;align-items:center;justify-content:center;width:100%;padding:0 16px;border-radius:0;border-left:none;border-right:none;border-top:1px solid #dddfe1;border-bottom:1px solid #dddfe1;background-color:#fff;color:#696969;font-size:.75px;text-align:center;cursor:pointer;transition:background-color .2s ease-in-out}.date-filter-field:hover{background-color:#f9f9f9}.date-filter-field-text{line-height:1;font-size:12px;display:inline-block}.separator{font-size:1rem;font-weight:700;text-align:center}.button{vertical-align:middle;display:inline-block;font-size:14px;max-height:40px;min-height:40px;min-width:120px;margin:0;padding:8px 16px;font-weight:600;line-height:1.5;text-align:center;text-decoration:none;white-space:nowrap;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:1px solid transparent;border-radius:4px;box-sizing:border-box}.button-cancel{color:#696969;background-color:#f5f5f5;border-color:#dbdbdb;transition:background-color .2s ease-in-out}.button-cancel:hover{background:#ececec}.button-confirm{color:#fff;background-color:#f3465c;transition:opacity .2s ease-in-out}.button-confirm:hover{opacity:.8}.label{color:#696969;font-size:1rem;margin-bottom:5px!important}.label>span{color:#f44336}"]}),Ce("design:paramtypes",[lt])],e)}(),At=function(){function e(){this.color="primary",this.change=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,e.prototype.ngOnInit=function(){},Object.defineProperty(e.prototype,"value",{get:function(){return this.val},set:function(e){this.val=e,this.onChange(e),this.onTouch()},enumerable:!1,configurable:!0}),e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.value=e},we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"color",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input("value"),Ce("design:type",Object)],e.prototype,"val",void 0),we([t.Output(),Ce("design:type",Object)],e.prototype,"change",void 0),e=n=we([t.Component({selector:"itss-slide-toggle",template:'<div fxLayout="column">\n <mat-slide-toggle [name]="name"\n [color]="color"\n [(ngModel)]="value"\n [required]="required"\n [disabled]="disabled"\n (change)="change.emit($event)">\n {{ label }}\n </mat-slide-toggle>\n</div>\n',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:["mat-label span{color:#f44336!important}"]})],e)}(),Rt=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.isDisableClick=!1,t}var o;return be(i,e),o=i,i.prototype.ngOnInit=function(){},i.prototype.onClick=function(e){this.selectedIndex=e},we([t.Input(),Ce("design:type",Object)],i.prototype,"isDisableClick",void 0),i=o=we([t.Component({selector:"itss-stepper",template:'<div fxLayout="row wrap"\n fxLayout.lt-md="column">\n <div *ngFor="let step of steps; let i = index;"\n fxFlex>\n <button mat-button\n disabled="true"\n fxFlex\n (click)="onClick(i)">\n <div fxLayout="row"\n fxLayoutGap="10px"\n fxLayoutAlign="center center">\n <div class="step-icon"\n [ngClass]="{\'active\': selectedIndex === i}">\n <div class="step-icon-content">\n <span>{{ i + 1 }}</span>\n </div>\n </div>\n <div class="step-text-container">\n <label class="step-text"\n [ngClass]="{\'active-text\': selectedIndex === i}">\n {{ step.label }}\n </label>\n </div>\n </div>\n </button>\n\n <div class="stepper-horizontal-line"\n fxHide.lt-md="true"\n *ngIf="i !== steps.length - 1"></div>\n </div>\n</div>\n\n<div [style.display]="selected ? \'block\' : \'none\'"\n class="container">\n <ng-container [ngTemplateOutlet]="selected.content"></ng-container>\n</div>\n',providers:[{provide:n.CdkStepper,useExisting:o}],styles:[".stepper-horizontal-line{flex:auto;height:0;margin:22px 0;min-width:32px;border-top:1px solid rgba(0,0,0,.12)}button{height:48px!important}.container{margin-top:24px!important}.step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.step-icon{flex:none;border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;background-color:rgba(0,0,0,.54);color:#fff}.step-text-container{margin-right:8px}.step-text{font-size:18px;color:#696969}.active{background-color:#9a9da2}.active-text{color:#9a9da2}"]})],i)}(n.CdkStepper);function Mt(e,t,n){var i,o,r;n=n||{};var a=null,s=0;function l(){s=!1===n.leading?0:+new Date,a=null,r=e.apply(i,o)}return function(){var p=+new Date;s||!1!==n.leading||(s=p);var d=t-(p-s);return i=this,o=arguments,d<=0?(clearTimeout(a),a=null,s=p,r=e.apply(i,o)):a||!1===n.trailing||(a=setTimeout(l,d)),r}}!function(e){e.UP="up",e.DOWN="down"}(rt||(rt={})),function(e){e.HOST="scroll",e.WINDOW="window:scroll"}(at||(at={}));var Tt,Ft=function(){function e(e){this._elementRef=e,this.scrollTop=0,this.more=!0,this.scrollDelay=500,this.scrollOffset=1e3,this.scrolled=new t.EventEmitter,this._element=this._elementRef.nativeElement,this._window=document.documentElement}return e.prototype.ngOnInit=function(){this.setThrottle()},e.prototype.ngOnChanges=function(e){e.scrollDelay&&this.setThrottle()},e.prototype.setThrottle=function(){this._scroll=this._windowScroll=Mt(this.handleScroll,this.scrollDelay)},e.prototype.getListener=function(){return this._elementRef.nativeElement.clientHeight===this._elementRef.nativeElement.scrollHeight?at.WINDOW:at.HOST},e.prototype.roundTo=function(e,t){return void 0===t&&(t=this.scrollOffset),Math.floor(e/t)*t},e.prototype.getScrollDirection=function(e){return this.scrollTop<=e?rt.DOWN:rt.UP},e.prototype.canScroll=function(e){var t=this.more&&this.getScrollDirection(e.scrollTop)===rt.DOWN&&this.roundTo(e.clientHeight)===this.roundTo(e.scrollHeight-e.scrollTop);return this.scrollTop=e.scrollTop,t},e.prototype.handleScroll=function(){this.getListener()===at.HOST?this.scrolled.emit(this.canScroll(this._element)):this.scrolled.emit(this.canScroll(this._window))},e.ctorParameters=function(){return[{type:t.ElementRef}]},we([t.Input(),Ce("design:type",Boolean)],e.prototype,"more",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"scrollDelay",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"scrollOffset",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"scrolled",void 0),we([t.HostListener(at.HOST),Ce("design:type",Function)],e.prototype,"_scroll",void 0),we([t.HostListener(at.WINDOW),Ce("design:type",Function)],e.prototype,"_windowScroll",void 0),e=we([t.Component({selector:"itss-table-scrolled",template:"<ng-content> </ng-content>",styles:[":host{overflow-y:auto;position:relative}"]}),Ce("design:paramtypes",[t.ElementRef])],e)}(),Vt=function(e){function t(t,n,i){var o=e.call(this)||this;return o.columnData=t,o.childrenGroup=n,o.totalCount=i,o}return be(t,e),t}(qe),Nt=function(){function e(e){this._ngZone=e,this._expandedRows=[],this._scrollHeightCalc=410,this._isPopoverHover=null,this._displayedColumns=[],this.shadow=!1,this.columns=[],this.paginator=!1,this.backendPagination=!0,this.paginatorPageIndex=0,this.paginatorLength=0,this.paginatorPageSize=10,this.paginatorPageSizeOptions=[10,20,30],this.showPageSizeOptions=!1,this.loading=!1,this.expandable=!1,this.showHeader=!0,this.headerSticky=!1,this.groupHeaderSticky=!1,this.groupStartExpanded=!1,this.infiniteScroll=!1,this.scrollDelay=1e3,this.scrollOffset=1e3,this.isFiltering=!1,this.showColumnExpandableFixed=!1,this.expandableOneRow=!1,this.ignoreChildrenExpandRow=!1,this.sort=!0,this.clearSort=!1,this.sortActive="",this.sortDirection="asc",this.rowExpanded=new t.EventEmitter,this.dataChange=new t.EventEmitter(!0),this.page=new t.EventEmitter,this.rowHover=new t.EventEmitter}return Object.defineProperty(e.prototype,"data",{get:function(){return this._dataValue},set:function(e){this._dataValue=e,this.dataChange.emit(this._dataValue)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"matTableHeigth",{get:function(){var e,t;ze.isNull(this._matHeaderRowRef)||(e=this._matHeaderRowRef.elementRef.nativeElement.clientHeight);var n=this.backendPagination?this._matBackendPaginatorRowRef:this._matFrontendPaginatorRowRef;ze.isNull(n)||(t=n.elementRef.nativeElement.clientHeight);var i=e||60,o=t||57,r=this.paginatorPageSize&&this.paginatorPageSize<=10?this.paginatorPageSize:10,a=this.headerSticky&&this.data.length>r;return ie.of(a?57*r+i+o+"px":"auto")},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this._expandedRows=[]},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){if(ze.isNull(e._dataSource)||(e._dataSource.sort=e.matSort,!e.paginator||e.backendPagination||e.infiniteScroll||(e._dataSource.paginator=e.matFrontendPaginator)),e.paginator&&(e.backendPagination||e.infiniteScroll)&&e.onPage({pageSize:e.paginatorPageSize,paginatorPageSizeOptions:e.paginatorPageSizeOptions,pageIndex:0,length:0,previousPageIndex:0}),!ze.isNull(e.actionsPopoverRef)){e._contextPopover=null,e._isPopoverHover=!1,e.closePopover(0);var t=document.getElementById("table-popover");ze.isNull(t)||(t.style.visibility="hidden")}}))},e.prototype.ngOnChanges=function(e){var t=this;setTimeout((function(){e.data&&t._createDataSource()}))},e.prototype._createDataSource=function(){var e=this.columns.filter((function(e){return e.visible})).map((function(e){return e.property}));if(ze.isNull(this.expandedRef)||(e=Ee(["expandedColumn"],e)),ze.isNull(this.actionsRef)||(e=Ee(e,["actionsColumn"])),this._displayedColumns=e,this.infiniteScroll){var t=[];this.isFiltering||ze.isNull(this._dataSource)||(t=Ot.clone(this._dataSource.data)),Ot.isEmpty(this.data)||t.push.apply(t,Ee(this.data)),this._dataSource=new a.MatTableDataSource([]),Be.isEmpty(this.groupByColumn)||ze.isNull(this.groupHeaderRef)?this._dataSource.data=t:this._dataSource.data=this.genereteGroupsByColumn(t),this.data=t,this.dataChange.emit(this.data),this.calcScrollHeight()}else this._dataSource=new a.MatTableDataSource([]),Be.isEmpty(this.groupByColumn)||ze.isNull(this.groupHeaderRef)?this._dataSource.data=this.data:this._dataSource.data=this.genereteGroupsByColumn(this.data);Ot.isEmpty(this._dataSource.data)||(this._dataSource.sort=this.matSort,this.setSortingDataAccessor()),this.paginator&&!this.backendPagination&&(this._dataSource.paginator=this.matFrontendPaginator)},e.prototype.calcScrollHeight=function(){this._dataSource&&this._dataSource.data.length>0&&Math.floor(this._scrollHeightCalc)<=700&&(this._scrollHeightCalc=130+48*this._dataSource.data.length)},e.prototype.onPage=function(e){this.paginatorPageSize=e.pageSize,e.paginatorPageSizeOptions=Ot.isEmpty(e.paginatorPageSizeOptions)?this.paginatorPageSizeOptions:e.paginatorPageSizeOptions,this.page.emit(e)},e.prototype.isExpandedRow=function(e){if(Ot.isEmpty(this._expandedRows))return ie.of(!1);var t=this._expandedRows.findIndex((function(t){return t===e}));return ie.of(t>=0)},e.prototype.toggleExpandRow=function(e){var t=this._expandedRows.findIndex((function(t){return t===e}));if(t<0)this.expandableOneRow?this._expandedRows=[e]:this._expandedRows.push(e),this.rowExpanded.emit(e);else{var n=Ee(this._expandedRows);n.splice(t,1),this._expandedRows=Ee(n),this.rowExpanded.emit(null)}},e.prototype.sortData=function(e){this.infiniteScroll&&(this.data=[],this.dataChange.emit([]),this._dataSource=new a.MatTableDataSource([]),this.calcScrollHeight()),this.onPage({pageSize:this.paginatorPageSize,pageIndex:0,length:0,previousPageIndex:0,paginatorPageSizeOptions:this.paginatorPageSizeOptions,sort:e})},e.prototype.showPopover=function(e,t){var n=this,i=document.getElementById("table-popover");ze.isNull(i)||(i.style.visibility="hidden",this.loading||this._ngZone.runOutsideAngular((function(){var t=i.getBoundingClientRect(),o=e.currentTarget.getBoundingClientRect(),r=e.currentTarget.children;if(t&&o){i.style.visibility="visible",i.style.top=o.top+o.height-1+"px";var a=0,s=0;if(n.columnInitial&&n.columnInitial>=0){if(!r[n.columnInitial])throw new Error("Initial column undefined or null");a=r[n.columnInitial].getBoundingClientRect().left}else a=o.left;if(n.columnFinal&&n.columnFinal>=0){if(!r[n.columnFinal])throw new Error("Final column undefined or null");s=r[n.columnFinal].getBoundingClientRect().left-t.width}else s=o.right-t.width;n._ngZone.run((function(){e.clientX>a+15&&e.clientX<s?i.style.left=e.clientX-15+"px":e.clientX<=a?i.style.left=a+"px":e.clientX>=s&&(i.style.left=s+"px")}))}}))),this.rowHover.emit(t),this._contextPopover=t},e.prototype.closePopover=function(e){var t=this;ie.of(null).pipe(oe.delay(e)).subscribe((function(){if(!ze.isNull(t._isPopoverHover)&&!t._isPopoverHover){if(!ze.isNull(t._isPopoverHover)&&!ze.isNull(t.actionsPopoverRef)){var e=document.getElementById("table-popover");ze.isNull(e)||(e.style.visibility="hidden")}t._contextPopover=null,t._isPopoverHover=null}}))},e.prototype.setSortingDataAccessor=function(){this._dataSource.sortingDataAccessor=function(e,t){return"string"==typeof e[t]?e[t].toLowerCase():e[t]}},e.prototype.genereteGroupsByColumn=function(e){var t=this,n=e.reduce((function(e,n){var i=n[t.groupByColumn].toString();return e[i]||(e[i]=[]),e[i].push(n),e}),{});return Object.keys(n).map((function(e){return new Vt(e,n[e],n[e].length)}))},e.prototype.getHighlightRow=function(e){return!ze.isNull(e)&&(!ze.isNull(this.highlightRowFn)&&this.highlightRowFn(e))},e.prototype.getIndexRow=function(e){if(!ze.isNull(this._dataSource)&&!Ot.isEmpty(this._dataSource.data)&&!ze.isNull(e))return this._dataSource.data.findIndex((function(t){return t===e}))},e.prototype.hasMore=function(){return!this._dataSource||this._dataSource.data.length<this.paginatorLength},e.prototype.handleScroll=function(e){e&&this.hasMore()&&(this.onPage({pageSize:this.paginatorPageSize,pageIndex:this.paginatorPageIndex,length:this.paginatorLength,previousPageIndex:this.paginatorPageIndex}),this.paginatorPageIndex+=1)},e.ctorParameters=function(){return[{type:t.NgZone}]},we([t.ViewChild(a.MatSort,{static:!0}),Ce("design:type",a.MatSort)],e.prototype,"matSort",void 0),we([t.ViewChild(a.MatPaginator,{static:!0}),Ce("design:type",a.MatPaginator)],e.prototype,"matPaginator",void 0),we([t.ViewChild("frontendPaginator",{static:!1}),Ce("design:type",a.MatPaginator)],e.prototype,"matFrontendPaginator",void 0),we([t.ViewChild("backendPaginator",{static:!1}),Ce("design:type",a.MatPaginator)],e.prototype,"matBackendPaginator",void 0),we([t.ViewChild("matHeaderRow",{static:!0}),Ce("design:type",t.TemplateRef)],e.prototype,"_matHeaderRowRef",void 0),we([t.ViewChild("frontendPaginator",{static:!0}),Ce("design:type",t.TemplateRef)],e.prototype,"_matFrontendPaginatorRowRef",void 0),we([t.ViewChild("backendPaginator",{static:!0}),Ce("design:type",t.TemplateRef)],e.prototype,"_matBackendPaginatorRowRef",void 0),we([t.ContentChild("actions",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"actionsRef",void 0),we([t.ContentChild("actionsPopover",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"actionsPopoverRef",void 0),we([t.ContentChild("footer",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"footerRef",void 0),we([t.ContentChild("expanded",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"expandedRef",void 0),we([t.ContentChild("groupHeader",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"groupHeaderRef",void 0),we([t.ContentChild("groupFooter",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"groupFooterRef",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"shadow",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"columns",void 0),we([t.Input(),Ce("design:type",Array),Ce("design:paramtypes",[Array])],e.prototype,"data",null),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"paginator",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"backendPagination",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"paginatorPageIndex",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"paginatorLength",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"paginatorPageSize",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"paginatorPageSizeOptions",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showPageSizeOptions",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"expandable",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showHeader",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"columnInitial",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"columnFinal",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"headerSticky",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"groupByColumn",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"groupHeaderSticky",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"groupStartExpanded",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"highlightRowFn",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"infiniteScroll",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"scrollDelay",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"scrollOffset",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"scrollHeigth",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"isFiltering",void 0),we([t.Input("columnExpandableFixed"),Ce("design:type",Boolean)],e.prototype,"showColumnExpandableFixed",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"expandableOneRow",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"ignoreChildrenExpandRow",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"sort",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"clearSort",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"sortActive",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"sortDirection",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"rowExpanded",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"dataChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"page",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"rowHover",void 0),e=we([t.Component({selector:"itss-table",template:'<div [class.box-shadow]="shadow"\n [style.height]="(matTableHeigth | async)"\n style="background: transparent !important;"\n fxLayout="column"\n fxFlex>\n\n <itss-table-scrolled [more]="hasMore()"\n [scrollOffset]="scrollOffset"\n [scrollDelay]="scrollDelay"\n (scrolled)="handleScroll($event)"\n [ngStyle]="{\'flex-basis\': scrollHeigth ? scrollHeigth + \'px\' : _scrollHeightCalc + \'px\' }"\n *ngIf="infiniteScroll; else table">\n <ng-template *ngTemplateOutlet="table"> </ng-template>\n </itss-table-scrolled>\n\n <ng-template #table>\n <mat-table matSort\n multiTemplateDataRows\n [dataSource]="_dataSource"\n [matSortDisabled]="!sort"\n [matSortDisableClear]="!clearSort"\n [matSortActive]="sortActive"\n [matSortDirection]="sortDirection?.toLocaleLowerCase()"\n (matSortChange)="sortData($event)"\n (mouseleave)="_isPopoverHover = false; closePopover(0)">\n\n <ng-container *ngIf="expandedRef"\n cdkColumnDef="expandedColumn">\n <mat-header-cell fxFlex="5"\n fxLayoutAlign="end center"\n *cdkHeaderCellDef>\n </mat-header-cell>\n <mat-cell fxFlex="5"\n fxLayoutAlign="end center"\n *cdkCellDef="let row">\n <itss-button tooltip="Expandir | Retrair"\n color="primary"\n type="icon"\n *ngIf="((row?.children) && (row.children.length > 0)) || (row?.expandable) || showColumnExpandableFixed"\n [icon]="(isExpandedRow(row) | async) ? \'expand_more\' : \'chevron_right\'"\n (click)="toggleExpandRow(row)">\n </itss-button>\n </mat-cell>\n </ng-container>\n\n <ng-container *ngFor="let column of columns"\n [cdkColumnDef]="column.property">\n <div *ngIf="column.sortable">\n <mat-header-cell [fxFlex]="column.width | async"\n [fxLayoutAlign]="column.align"\n [ngStyle]="{\'padding-left\': column.sortable && column.align !== \'\' && (column.align.toLowerCase() === \'center\' || column.align.toLowerCase() === \'center center\') ? \'15px\' : \'\' }"\n [style.padding-left.px]="column.marginLeft | async"\n [style.padding-right.px]="column.marginRight | async"\n *cdkHeaderCellDef\n mat-sort-header>\n {{ column.name }}\n </mat-header-cell>\n </div>\n <div *ngIf="!column.sortable">\n <mat-header-cell [fxFlex]="column.width | async"\n [fxHide.lt-md]="column.hiddenSm"\n [fxLayoutAlign]="column.align"\n [style.padding-left.px]="column.marginLeft | async"\n [style.padding-right.px]="column.marginRight | async"\n *cdkHeaderCellDef>\n <ng-container *ngIf="column.name; else templateHeader">\n {{ column.name }}\n </ng-container>\n\n <ng-template #templateHeader>\n <ng-container *ngIf="column.templateHeader">\n <ng-container [ngTemplateOutlet]="column.templateHeader"\n [ngTemplateOutletContext]="{$implicit: data}">\n </ng-container>\n </ng-container>\n </ng-template>\n </mat-header-cell>\n </div>\n <mat-cell [fxFlex]="column.width | async"\n [fxHide.lt-md]="column.hiddenSm"\n [fxHide]="!column.visible"\n [fxLayoutAlign]="column.align"\n [class.mat-cell-pointer]="column.action"\n [style.padding-left.px]="column.marginLeft | async"\n [style.padding-right.px]="column.marginRight | async"\n (click)="column.action ? column.action(row) : null"\n *cdkCellDef="let row">\n <ng-container *ngIf="column.value; else template">\n {{ (column.value(row) && (column.value(row).length > (column.sliceLength ? column.sliceLength :\n 50)))\n ? (column.value(row) | slice:0:(column.sliceLength ? column.sliceLength : 50)) + \'...\'\n : column.value(row) }}\n </ng-container>\n\n <ng-template #template>\n <ng-container *ngIf="column.template">\n <ng-container [ngTemplateOutlet]="column.template"\n [ngTemplateOutletContext]="{$implicit: row}">\n </ng-container>\n </ng-container>\n </ng-template>\n </mat-cell>\n </ng-container>\n\n <ng-container *ngIf="actionsRef"\n cdkColumnDef="actionsColumn">\n <mat-header-cell fxFlex.gt-md="15"\n fxLayoutAlign="center center"\n *cdkHeaderCellDef>\n Ações\n </mat-header-cell>\n <mat-cell fxFlex="15"\n fxLayoutAlign="center center"\n *cdkCellDef="let row">\n <ng-template [ngTemplateOutlet]="actionsRef"\n [ngTemplateOutletContext]="{$implicit: row}">\n </ng-template>\n </mat-cell>\n </ng-container>\n\n <ng-container *ngIf="expandedRef"\n matColumnDef="expandedDetail">\n <mat-cell *matCellDef="let row"\n fxFlexFill\n class="cell-element-detail">\n <div class="element-detail"\n *ngIf="!ignoreChildrenExpandRow ? (row.children.length > 0) : ignoreChildrenExpandRow"\n [class.collapsed]="!(isExpandedRow(row) | async)"\n [class.expanded]="(isExpandedRow(row) | async)">\n <ng-template [ngTemplateOutlet]="expandedRef"\n [ngTemplateOutletContext]="{$implicit: row}">\n </ng-template>\n </div>\n </mat-cell>\n </ng-container>\n\n <ng-container *ngIf="groupByColumn && groupHeaderRef"\n matColumnDef="groupHeader">\n <mat-cell fxFlex\n [attr.colspan]="columns.length"\n *matCellDef="let rowGroup"\n style="cursor: pointer;"\n [class.group-header-cell-collapsed]="!(isExpandedRow(rowGroup) | async)"\n [class.group-header-cell-expanded]="(isExpandedRow(rowGroup) | async)"\n (click)="toggleExpandRow(rowGroup)">\n <div class="group-header-cell">\n <itss-button *ngIf="rowGroup.childrenGroup.length > 0"\n [icon]="(isExpandedRow(rowGroup) | async) ? \'expand_more\' : \'chevron_right\'"\n style.margin-right="1.25rem"\n color="primary"\n type="icon"\n tooltip="Expandir | Retrair">\n </itss-button>\n\n <ng-template [ngTemplateOutlet]="groupHeaderRef"\n [ngTemplateOutletContext]="{$implicit: rowGroup}">\n </ng-template>\n </div>\n </mat-cell>\n </ng-container>\n\n <ng-container *ngIf="groupByColumn && groupHeaderRef"\n matColumnDef="expandedGroupHeader">\n <mat-cell *matCellDef="let rowGroup"\n fxFlexFill>\n <div class="element-detail"\n *ngIf="rowGroup.childrenGroup.length > 0"\n [class.collapsed]="!(isExpandedRow(rowGroup) | async)"\n [class.expanded]="(isExpandedRow(rowGroup) | async)">\n\n <itss-table *ngIf="rowGroup.childrenGroup.length > 0; else noChildrenGroup"\n [paginator]="false"\n [shadow]="false"\n [showHeader]="false"\n [columns]="columns"\n [data]="rowGroup.childrenGroup"\n class="table-level-1"\n fxFlexFill>\n <ng-template #footer\n *ngIf="groupByColumn && groupHeaderRef && groupFooterRef">\n <ng-template [ngTemplateOutlet]="groupFooterRef"\n [ngTemplateOutletContext]="{$implicit: rowGroup}">\n </ng-template>\n </ng-template>\n </itss-table>\n\n <ng-template #noChildrenGroup>\n <div *ngIf="!loading"\n class="no-records">\n <mat-icon>sentiment_very_dissatisfied</mat-icon>\n <span>Nenhum registro foi encontrado</span>\n </div>\n </ng-template>\n </div>\n </mat-cell>\n </ng-container>\n\n <mat-header-row #matHeaderRow\n (mouseenter)="_isPopoverHover = false; closePopover(0)"\n *matHeaderRowDef="_displayedColumns; sticky: headerSticky || groupHeaderSticky"\n [ngClass]="{ \'hidden-header\': !showHeader }">\n </mat-header-row>\n\n <div *ngIf="!loading && !expandable && !actionsPopoverRef && !groupByColumn && !groupHeaderRef">\n <mat-row (mouseover)="rowHover.emit(row)"\n *matRowDef="let row; columns: _displayedColumns;"\n [ngClass]="{ \'hoversimulator\': row.isMouseHover === true }"\n [class.highlight]="getHighlightRow(row)"\n [attr.id]="\'row_\'+ getIndexRow(row)">\n </mat-row>\n </div>\n\n <div *ngIf="!loading && !expandable && actionsPopoverRef && !groupByColumn && !groupHeaderRef">\n <mat-row #rowTemplate\n *matRowDef="let row; columns: _displayedColumns;"\n class="element-row"\n (mousemove)="showPopover($event, row)"\n [class.hoversimulator]="_contextPopover === row"\n [class.highlight]="getHighlightRow(row)"\n [attr.id]="\'row_\'+ getIndexRow(row)">\n </mat-row>\n </div>\n\n <div *ngIf="!loading && expandable && !actionsPopoverRef && !groupByColumn && !groupHeaderRef">\n <mat-row *matRowDef="let row; columns: _displayedColumns;"\n class="element-row"\n [class.expanded-row]="(isExpandedRow(row) | async)"\n [ngClass]="{ \'hoversimulator\': row.isMouseHover === true }"\n [class.highlight]="getHighlightRow(row)"\n [attr.id]="\'row_\'+ getIndexRow(row)"\n (mouseover)="rowHover.emit(row)"\n (click)="toggleExpandRow(row)">\n </mat-row>\n\n <mat-row *matRowDef="let row; columns: [\'expandedDetail\'];"\n class="detail-row"\n [attr.id]="\'row_expand\'+ getIndexRow(row)">\n </mat-row>\n </div>\n\n <div *ngIf="!loading && expandable && actionsPopoverRef && !groupByColumn && !groupHeaderRef">\n <mat-row #rowTemplate\n *matRowDef="let row; columns: _displayedColumns;"\n class="element-row"\n [class.hoversimulator]="_contextPopover === row"\n [class.expanded-row]="(isExpandedRow(row) | async)"\n [class.highlight]="getHighlightRow(row)"\n [attr.id]="\'row_\'+ getIndexRow(row)"\n (mousemove)="showPopover($event, row)"\n (click)="toggleExpandRow(row)">\n </mat-row>\n\n <mat-row *matRowDef="let row; columns: [\'expandedDetail\'];"\n class="detail-row"\n [attr.id]="\'row_expand\'+ getIndexRow(row)">\n </mat-row>\n </div>\n\n <div *ngIf="!loading && !expandable && !actionsPopoverRef && groupByColumn && groupHeaderRef">\n <mat-row *matRowDef="let row; columns: [\'groupHeader\'];"\n class="element-row"\n [class.expanded-row]="(isExpandedRow(row) | async)"\n [class.group-header-sticky]="groupHeaderSticky"\n [ngClass]="{ \'hoversimulator\': row.isMouseHover === true }"\n [class.highlight]="getHighlightRow(row)"\n [attr.id]="\'row_\'+ getIndexRow(row)"\n (mouseover)="rowHover.emit(row)"\n (click)="toggleExpandRow(row)">\n </mat-row>\n\n <mat-row *matRowDef="let row; columns: [\'expandedGroupHeader\'];"\n class="detail-row"\n [attr.id]="\'row_group\'+ getIndexRow(row)">\n </mat-row>\n </div>\n </mat-table>\n\n <mat-progress-bar mode="indeterminate"\n color="accent"\n *ngIf="loading">\n </mat-progress-bar>\n\n <div *ngIf="!loading && (data && (data.length > 0)) && footerRef"\n class="footer-row"\n fxLayout="column"\n fxLayoutGap="10px">\n <ng-template [ngTemplateOutlet]="footerRef"\n [ngTemplateOutletContext]="{$implicit: data}">\n </ng-template>\n </div>\n\n <div *ngIf="!loading && (data && (data.length <= 0))"\n class="no-records">\n <mat-icon>sentiment_very_dissatisfied</mat-icon>\n <span>Nenhum registro foi encontrado</span>\n </div>\n\n <ng-container *ngIf="!loading && paginator && (data && (data.length > 0))">\n <ng-container #backendPaginatorTemplate\n *ngIf="backendPagination && !infiniteScroll">\n <mat-paginator #backendPaginator\n [hidePageSize]="!showPageSizeOptions || (paginatorPageSizeOptions && (paginatorPageSizeOptions.length <= 0))"\n [length]="paginatorLength"\n [pageIndex]="paginatorPageIndex"\n [pageSize]="paginatorPageSize"\n [pageSizeOptions]="paginatorPageSizeOptions"\n (page)="onPage($event)"\n (mouseenter)="closePopover(0)"\n showFirstLastButtons>\n </mat-paginator>\n </ng-container>\n\n <ng-container #frontendPaginatorTemplate\n *ngIf="!backendPagination && !infiniteScroll">\n <mat-paginator #frontendPaginator\n [hidePageSize]="!showPageSizeOptions || (paginatorPageSizeOptions && (paginatorPageSizeOptions.length <= 0))"\n [length]="paginatorLength"\n [pageIndex]="paginatorPageIndex"\n [pageSize]="paginatorPageSize"\n [pageSizeOptions]="paginatorPageSizeOptions"\n (page)="onPage($event)"\n showFirstLastButtons>\n </mat-paginator>\n </ng-container>\n </ng-container>\n\n <ng-container #infiniteScrollPaginatorTemplate\n *ngIf="infiniteScroll && (data && (data.length > 0))">\n <span class="infinite-scroll-paginator">\n 1 - {{ data.length }} de {{ paginatorLength }}\n </span>\n </ng-container>\n </ng-template>\n</div>\n\n<div id="table-popover"\n class="table-popover"\n (mouseover)="_isPopoverHover = true"\n (mouseout)="_isPopoverHover = false; closePopover(0)"\n *ngIf="!loading && actionsPopoverRef">\n <ng-container [ngTemplateOutlet]="actionsPopoverRef"\n [ngTemplateOutletContext]="{ $implicit: _contextPopover }">\n </ng-container>\n</div>',animations:[ae.trigger("detailExpand",[ae.state("collapsed",ae.style({height:"0px",minHeight:"0",display:"none"})),ae.state("expanded",ae.style({height:"*"})),ae.transition("expanded <=> collapsed",ae.animate("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])],styles:[".box-shadow{border-radius:2px;box-shadow:0 3px 1px -2px rgba(0,0,0,.14),0 2px 2px 0 rgba(0,0,0,.098),0 1px 5px 0 rgba(0,0,0,.084)}table{width:100%}itss-loading{margin:25px;opacity:.7}.no-records{height:48px;display:flex;align-items:center;justify-content:center;flex-direction:column;margin:30px;font-size:14px!important;font-weight:600!important;color:#b3afb3!important;text-transform:initial!important}.no-records mat-icon{font-size:32px;height:32px;width:32px;margin-bottom:5px}.footer-row{min-height:57px;font-weight:700;padding:15px 24px;display:flex;align-items:flex-end;justify-content:center;flex-direction:column;color:rgba(0,0,0,.67);border-bottom:1px solid rgba(0,0,0,.12)}.mat-cell-pointer{cursor:pointer}.detail-row{min-height:0!important;border-bottom-width:0}element-row:not(.expanded-row):hover{background:#f5f5f5}element-row:not(.expanded-row):active{background:#efefef}.hoversimulator:not(.highlight){background:#f5f5f5}.hoversimulator:has(.highlight){background-color:rgba(255,217,0,.212)!important}.highlight{background-color:rgba(255,217,0,.102)!important}::ng-deep mat-cell.cell-element-detail{font-weight:400!important}.element-detail{width:100%;overflow:hidden;display:flex;min-height:45px!important}.element-detail.collapsed{height:0!important;min-height:0!important;display:none!important}.element-detail.expanded{height:auto!important}.hidden-header,.hidden-header .mat-header-cell{height:0!important;min-height:0!important}.actions-popover.mat-card{min-width:auto!important;padding:5px!important;background:#f5f5f5;border-radius:5px!important}.actions-popover.mat-card .mat-card-content itss-button .mat-icon-button mat-icon{height:18px!important;width:18px!important}.table-level-1 .mat-table .mat-header-row{border-bottom:unset!important}.mat-column-expandedGroupHeader{padding:0!important}.group-header-cell{display:flex;flex-direction:row;align-items:center;width:100%}.group-header-sticky{position:-webkit-sticky;position:sticky;top:54px}.infinite-scroll-paginator{color:#696969;font-size:14px;display:flex;align-items:center;justify-content:center;height:56px;position:-webkit-sticky;position:sticky;bottom:0;background:#fff;border-top:1px solid #f3465c}.table-popover{position:fixed;display:inline-flex;background-color:#f5f5f5;width:auto;border-radius:0 0 10px 10px;border:1px solid #ddd;border-top-width:0;padding:2px 5px;z-index:1;visibility:hidden}"]}),Ce("design:paramtypes",[t.NgZone])],e)}(),jt=function(){function e(){this.maxlength=250,this.rows=2,this.appearance="outline",this.upperCase=!1,this.mentionConfiguration={},this._minHeight="60px",this._height="60px",this._maxHeight="auto",this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"value",{get:function(){return this.val},set:function(e){this.val=this.checkUppercase(e),this.onChange(this.val),this.onTouch()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minHeight",{get:function(){return this._minHeight},set:function(e){"AUTO"===e.trim().toUpperCase()?this._minHeight="auto":this._minHeight=le.coerceCssPixelValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(e){"AUTO"===e.trim().toUpperCase()?this._height="auto":this._height=le.coerceCssPixelValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxHeight",{get:function(){return this._maxHeight},set:function(e){"AUTO"===e.trim().toUpperCase()?this._maxHeight="auto":this._maxHeight=le.coerceCssPixelValue(e)},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.value=this.checkUppercase(e)},e.prototype.checkUppercase=function(e){return this.upperCase&&e?e.toUpperCase():e},we([t.ViewChild("input",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"_elementRef",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"maxlength",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"rows",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"appearance",void 0),we([t.Input("value"),Ce("design:type",Object)],e.prototype,"val",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"upperCase",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"mentionConfiguration",void 0),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"minHeight",null),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"height",null),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"maxHeight",null),e=n=we([t.Component({selector:"itss-textarea",template:'<div fxLayout="column">\n <mat-label *ngIf="label">\n {{ label }}\n <span *ngIf="required && label">*</span>\n </mat-label>\n <mat-form-field [appearance]="appearance">\n <textarea matInput\n #input\n upperCase\n autocomplete="off"\n [style.min-height.px]="height"\n [style.height.px]="height"\n [style.max-height.px]="height"\n [name]="name"\n [placeholder]="placeholder"\n [required]="required"\n [disabled]="disabled"\n [(ngModel)]="value"\n [maxlength]="maxlength"\n [enabledUpperCase]="upperCase"\n [rows]="rows"\n [mentionConfig]="mentionConfiguration"\n (blur)="onTouch()">\n </textarea>\n </mat-form-field>\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:[":host{display:block;min-width:0;max-width:100%;flex:1}mat-label span{color:#f44336!important}"]}),Ce("design:paramtypes",[])],e)}(),Lt=function(){function e(e){this.template=e}return e.prototype.getType=function(){return this.name},e.ctorParameters=function(){return[{type:t.TemplateRef}]},we([t.Input(),Ce("design:type",String)],e.prototype,"type",void 0),we([t.Input("pTemplate"),Ce("design:type",String)],e.prototype,"name",void 0),e=we([t.Directive({selector:"[pTemplate]",host:{}}),Ce("design:paramtypes",[t.TemplateRef])],e)}(),Bt=function(){function e(e,n){this.matSelect=e,this.ngZone=n,this.threshold="15%",this.debounceTime=100,this.infiniteScroll=new t.EventEmitter,this._thrPx=0,this._thrPc=0,this._singleOptionHeight=3,this._destroyed$=new ie.Subject}return e.prototype.ngOnInit=function(){this.evaluateThreshold()},e.prototype.ngAfterViewInit=function(){var e=this;this.matSelect.openedChange.pipe(oe.takeUntil(this._destroyed$)).subscribe((function(t){t&&(e._panel=e.matSelect.panel.nativeElement,e._singleOptionHeight=e.getSelectItemHeightPx(),e.registerScrollListener())}))},e.prototype.ngOnDestroy=function(){this._destroyed$.next(!0),this._destroyed$.complete()},e.prototype.evaluateThreshold=function(){this.threshold.lastIndexOf("%")>-1?(this._thrPx=0,this._thrPc=parseFloat(this.threshold)/100):(this._thrPx=parseFloat(this.threshold),this._thrPc=0)},e.prototype.registerScrollListener=function(){var e=this;ie.fromEvent(this._panel,"scroll").pipe(oe.takeUntil(this._destroyed$),oe.debounceTime(this.debounceTime),oe.tap((function(t){e.handleScrollEvent(t)}))).subscribe()},e.prototype.handleScrollEvent=function(e){var t=this;this.ngZone.runOutsideAngular((function(){if(!t.complete){var n=t.matSelect.options.length,i=t._singleOptionHeight*n,o=0!==t._thrPc?i*t._thrPc:t._thrPx;t._panel.clientHeight+e.target.scrollTop+o>=i&&t.ngZone.run((function(){return t.infiniteScroll.emit()}))}}))},e.prototype.getSelectItemHeightPx=function(){return 3*parseFloat(getComputedStyle(this._panel).fontSize)},e.ctorParameters=function(){return[{type:H.MatSelect},{type:t.NgZone}]},we([t.Input(),Ce("design:type",String)],e.prototype,"threshold",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"debounceTime",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"complete",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"infiniteScroll",void 0),e=we([t.Directive({selector:"[itssInfiniteScroll]"}),Ce("design:paramtypes",[H.MatSelect,t.NgZone])],e)}(),Yt=function(){function e(e){this.ngControl=e,this.enabledLowerCase=!1}return e.prototype.ngModelChange=function(e){this.onInputChange(e)},e.prototype.keydown=function(e){this.onInputChange(e.target.value)},e.prototype.onInputChange=function(e){this.enabledLowerCase&&this.ngControl.valueAccessor.writeValue(e.toLowerCase())},e.ctorParameters=function(){return[{type:r.NgControl}]},we([t.Input(),Ce("design:type",Object)],e.prototype,"enabledLowerCase",void 0),we([t.HostListener("ngModelChange",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"ngModelChange",null),we([t.HostListener("keydown",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"keydown",null),e=we([t.Directive({selector:"[lowerCase]"}),Ce("design:paramtypes",[r.NgControl])],e)}(),zt=function(){function e(e){this.ngControl=e}return e.prototype.onModelChange=function(e){this.onInputChange(e,!1)},e.prototype.keydownBackspace=function(e){this.onInputChange(e.target.value,!0)},e.prototype.onInputChange=function(e,t){var n=e.replace(/\D/g,"");t&&n.length<=6&&(n=n.substring(0,n.length-1)),n=0===n.length?"":n.length<=3?n.replace(/^(\d{0,2})/,"($1)"):n.length<=6?n.replace(/^(\d{0,2})(\d{0,4})/,"($1) $2"):n.length<=10?n.replace(/^(\d{0,2})(\d{0,4})(\d{0,4})/,"($1) $2-$3"):(n=n.substring(0,11)).replace(/^(\d{0,2})(\d{0,5})(\d{0,4})/,"($1) $2-$3"),this.ngControl.valueAccessor.writeValue(n)},e.ctorParameters=function(){return[{type:r.NgControl}]},we([t.HostListener("ngModelChange",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"onModelChange",null),we([t.HostListener("keydown.backspace",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"keydownBackspace",null),e=we([t.Directive({selector:"[phoneMask]"}),Ce("design:paramtypes",[r.NgControl])],e)}(),Ht=function(){function e(e){this.ngControl=e,this.spaceDrop=!1}return e.prototype.ngModelChange=function(e){this.onInputChange(e)},e.prototype.keydown=function(e){this.onInputChange(e.target.value)},e.prototype.onInputChange=function(e){this.spaceDrop&&this.ngControl.valueAccessor.writeValue(e.replace(/\s/g,""))},e.ctorParameters=function(){return[{type:r.NgControl}]},we([t.Input(),Ce("design:type",Object)],e.prototype,"spaceDrop",void 0),we([t.HostListener("ngModelChange",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"ngModelChange",null),we([t.HostListener("keydown",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"keydown",null),e=we([t.Directive({selector:"[spaceDrop]"}),Ce("design:paramtypes",[r.NgControl])],e)}(),Gt=function(){function e(e){this.ngControl=e,this.enabledUpperCase=!1}return e.prototype.ngModelChange=function(e){this.onInputChange(e)},e.prototype.keydown=function(e){this.onInputChange(e.target.value)},e.prototype.onInputChange=function(e){this.enabledUpperCase&&this.ngControl.valueAccessor.writeValue(e.toUpperCase())},e.ctorParameters=function(){return[{type:r.NgControl}]},we([t.Input(),Ce("design:type",Object)],e.prototype,"enabledUpperCase",void 0),we([t.HostListener("ngModelChange",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"ngModelChange",null),we([t.HostListener("keydown",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"keydown",null),e=we([t.Directive({selector:"[upperCase]"}),Ce("design:paramtypes",[r.NgControl])],e)}(),Ut=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1001},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 767.98px)",priority:1001},{alias:"md",mediaQuery:"screen and (min-width: 768px) and (max-width: 1365.98px)",priority:1001},{alias:"lg",mediaQuery:"screen and (min-width: 1366px) and (max-width: 1919.98px)",priority:1001},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:1001},{alias:"lt-xs",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:1001},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 767.98px)",priority:1001},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 1365.98px)",priority:1001},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1919.98px)",priority:1001},{alias:"lt-xl",overlapping:!0,priority:1001,mediaQuery:"screen and (max-width: 4999.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:1001},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 768px)",priority:1001},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1366px)",priority:1001},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:1001}],qt={provide:o.BREAKPOINT,useValue:Ut,multi:!0},Wt=function(){function e(){this.filesChangeEmiter=new t.EventEmitter,this.disabled=!1,this.background="transparent",this.borderStyle="2px dashed",this.borderColor="#595959",this.borderRadius="5px"}return e.prototype.onDragOver=function(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this.background="transparent",this.borderColor="#595959",this.borderStyle="2px solid")},e.prototype.onDragLeave=function(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this.background="#f5f5f6",this.borderColor="#262626",this.borderStyle="2px dashed")},e.prototype.onDrop=function(e){if(!this.disabled){e.preventDefault(),e.stopPropagation(),this.background="transparent",this.borderColor="#595959",this.borderStyle="2px dashed";var t=e.dataTransfer.files;this.filesChangeEmiter.emit(t)}},we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"filesChangeEmiter",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.HostBinding("style.background"),Ce("design:type",String)],e.prototype,"background",void 0),we([t.HostBinding("style.border"),Ce("design:type",String)],e.prototype,"borderStyle",void 0),we([t.HostBinding("style.border-color"),Ce("design:type",String)],e.prototype,"borderColor",void 0),we([t.HostBinding("style.border-radius"),Ce("design:type",String)],e.prototype,"borderRadius",void 0),we([t.HostListener("dragover",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"onDragOver",null),we([t.HostListener("dragleave",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"onDragLeave",null),we([t.HostListener("drop",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"onDrop",null),e=we([t.Directive({selector:"[fileDragAndDrop]"}),Ce("design:paramtypes",[])],e)}(),$t=function(){function e(e,n){this._cdkVirtualScrollViewport=e,this._ngZone=n,this._thrPx=0,this._thrPc=0,this._destroyed$=new ie.Subject,this.infiniteScrollDistance="15%",this.infiniteScrollThrottle=150,this.infiniteScrollDisabled=!1,this.infiniteScrollOptionHeight=48,this.scrolled=new t.EventEmitter}return e.prototype.ngOnInit=function(){this.evaluateThreshold()},e.prototype.ngAfterViewInit=function(){this.infiniteScrollDisabled||(this._panel=this._cdkVirtualScrollViewport.getElementRef().nativeElement,this.registerScrollListener())},e.prototype.ngOnDestroy=function(){this._destroyed$.next(!0),this._destroyed$.complete()},e.prototype.evaluateThreshold=function(){"string"==typeof this.infiniteScrollDistance&&this.infiniteScrollDistance.lastIndexOf("%")>-1?(this._thrPx=0,this._thrPc=parseFloat(this.infiniteScrollDistance)/100):(this._thrPx=parseFloat(this.infiniteScrollDistance),this._thrPc=0)},e.prototype.registerScrollListener=function(){var e=this;this._cdkVirtualScrollViewport.elementScrolled,ie.fromEvent(this._panel,"scroll").pipe(oe.takeUntil(this._destroyed$),oe.debounceTime(this.infiniteScrollThrottle),oe.tap((function(t){return e.handleScrollEvent(t)}))).subscribe()},e.prototype.handleScrollEvent=function(e){var t=this;this._ngZone.runOutsideAngular((function(){if(!t.infiniteScrollcomplete){var n=t._cdkVirtualScrollViewport.getDataLength(),i=t.infiniteScrollOptionHeight*n,o=0!==t._thrPc?i*t._thrPc:t._thrPx;t._panel.clientHeight+e.target.scrollTop+o>=i&&t._ngZone.run((function(){return t.scrolled.emit()}))}}))},e.ctorParameters=function(){return[{type:v.CdkVirtualScrollViewport},{type:t.NgZone}]},we([t.Input(),Ce("design:type",String)],e.prototype,"infiniteScrollDistance",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"infiniteScrollThrottle",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"infiniteScrollDisabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"infiniteScrollcomplete",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"infiniteScrollOptionHeight",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"scrolled",void 0),e=we([t.Directive({selector:"[GIPIInfiniteScroll]"}),Ce("design:paramtypes",[v.CdkVirtualScrollViewport,t.NgZone])],e)}(),Kt=function(){},Xt=function(){function e(e,t){var n=this;this.ngZone=e,this.rendererFactory2=t,this.resizeSource$=new ie.Subject,this.listeners=0,this.disposeHandle=Kt,this.handler=function(){n.ngZone.run((function(){n.resizeSource$.next()}))},this.renderer=this.rendererFactory2.createRenderer(null,null)}return e.prototype.ngOnDestroy=function(){this.handler=Kt},e.prototype.subscribe=function(){var e=this;return this.registerListener(),this.resizeSource$.pipe(oe.auditTime(16),oe.finalize((function(){return e.unregisterListener()})))},e.prototype.unsubscribe=function(){this.unregisterListener()},e.prototype.registerListener=function(){var e=this;0===this.listeners&&this.ngZone.runOutsideAngular((function(){e.disposeHandle=e.renderer.listen("window","resize",e.handler)})),this.listeners+=1},e.prototype.unregisterListener=function(){this.listeners-=1,0===this.listeners&&(this.disposeHandle(),this.disposeHandle=Kt)},e.ctorParameters=function(){return[{type:t.NgZone},{type:t.RendererFactory2}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(t.NgZone),t.ɵɵinject(t.RendererFactory2))},token:e,providedIn:"root"}),e=we([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[t.NgZone,t.RendererFactory2])],e)}();(Tt=e.BreakpointEnum||(e.BreakpointEnum={})).xl="xl",Tt.lg="lg",Tt.md="md",Tt.sm="sm",Tt.xs="xs";var Zt={xs:"(max-width: 419px)",sm:"(min-width: 420px)",md:"(min-width: 600px)",lg:"(min-width: 768px)",xl:"(min-width: 1366px)"},Jt=function(){function n(e,t){this.resizeService=e,this.mediaMatcher=t,this.destroy$=new ie.Subject,this.resizeService.subscribe().pipe(oe.takeUntil(this.destroy$)).subscribe((function(){}))}return n.prototype.ngOnDestroy=function(){this.destroy$.next()},n.prototype.subscribe=function(e,t){var n=this;if(t){var i=function(){return n.matchMedia(e,!0)};return this.resizeService.subscribe().pipe(oe.map(i),oe.startWith(i()),oe.distinctUntilChanged((function(e,t){return e[0]===t[0]})),oe.map((function(e){return e[1]})))}i=function(){return n.matchMedia(e)};return this.resizeService.subscribe().pipe(oe.map(i),oe.startWith(i()),oe.distinctUntilChanged())},n.prototype.matchMedia=function(t,n){var i=this,o=e.BreakpointEnum.md,r={};return Object.keys(t).map((function(e){var t=e,n=i.mediaMatcher.matchMedia(Zt[t]).matches;r[e]=n,n&&(o=t)})),n?[o,r]:o},n.ctorParameters=function(){return[{type:Xt},{type:pe.MediaMatcher}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(Xt),t.ɵɵinject(pe.MediaMatcher))},token:n,providedIn:"root"}),n=we([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[Xt,pe.MediaMatcher])],n)}(),Qt=function(){function e(e,t,n,i,o,r){this.elementRef=e,this.renderer=t,this.mediaMatcher=n,this.ngZone=i,this.platform=o,this._breakpointService=r,this._destroy$=new ie.Subject,this.actualGap$=new ie.ReplaySubject(1),this.GIPIAlign=null,this.GIPIJustify=null,this.GIPIGap=null}return e.prototype.ngOnInit=function(){this._setGapStyle()},e.prototype.ngOnChanges=function(e){e.GIPIGap&&this._setGapStyle()},e.prototype.ngAfterViewInit=function(){var e=this;this.platform.isBrowser&&this._breakpointService.subscribe(Zt).pipe(oe.takeUntil(this._destroy$)).subscribe((function(){e._setGapStyle()}))},e.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete()},e.prototype._setGapStyle=function(){var e=Oe(this._getGap(),2),t=e[0],n=e[1];null===t&&null!==n&&(t=0),null===n&&(n=0),this.actualGap$.next([t,n]);var i=this.elementRef.nativeElement;null!==t&&null!==n&&this.renderer.setStyle(i,"gap",n+"px "+t+"px")},e.prototype._getGap=function(){var e=this,t=[null,null],n=this.GIPIGap||0;return(Array.isArray(n)?n:[n,null]).forEach((function(n,i){"object"==typeof n&&null!==n?(t[i]=null,Object.keys(Zt).map((function(o){var r=o;e.mediaMatcher.matchMedia(Zt[r]).matches&&n[r]&&(t[i]=n[r])}))):t[i]=Number(n)||null})),t},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Renderer2},{type:pe.MediaMatcher},{type:t.NgZone},{type:de.Platform},{type:Jt}]},we([t.Input(),Ce("design:type",String)],e.prototype,"GIPIAlign",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"GIPIJustify",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIGap",void 0),e=we([t.Directive({selector:"[gipi-row],gipi-row,GIPIRow",exportAs:"gipiRow",host:{class:"grid-row","[class.grid-row-top]":"GIPIAlign === 'top'","[class.grid-row-middle]":"GIPIAlign === 'middle'","[class.grid-row-bottom]":"GIPIAlign === 'bottom'","[class.grid-row-start]":"GIPIJustify === 'start'","[class.grid-row-end]":"GIPIJustify === 'end'","[class.grid-row-center]":"GIPIJustify === 'center'","[class.grid-row-space-around]":"GIPIJustify === 'space-around'","[class.grid-row-space-between]":"GIPIJustify === 'space-between'","[class.grid-row-space-evenly]":"GIPIJustify === 'space-evenly'"}}),Ce("design:paramtypes",[t.ElementRef,t.Renderer2,pe.MediaMatcher,t.NgZone,de.Platform,Jt])],e)}(),en=function(){function e(e,t,n){this.elementRef=e,this.GIPIRowDirective=t,this.renderer=n,this._classMap={},this._destroy$=new ie.Subject,this.hostFlexStyle=null,this.GIPIFlex=null,this.GIPISpan=null,this.GIPIOrder=null,this.GIPIOffset=null,this.GIPIPush=null,this.GIPIPull=null,this.GIPIXs=null,this.GIPISm=null,this.GIPIMd=null,this.GIPILg=null,this.GIPIXl=null,this.GIPIXXl=null}return e.prototype.ngOnInit=function(){this._setHostClassMap(),this._setHostFlexStyle()},e.prototype.ngOnChanges=function(e){this._setHostClassMap(),e.GIPIFlex&&this._setHostFlexStyle()},e.prototype.ngAfterViewInit=function(){},e.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete()},e.prototype._setHostClassMap=function(){var e,t=_e(((e={})["grid-col"]=!0,e["grid-col-"+this.GIPISpan]=!ze.isNull(this.GIPISpan),e["grid-col-order-"+this.GIPIOrder]=!ze.isNull(this.GIPIOrder),e["grid-col-offset-"+this.GIPIOffset]=!ze.isNull(this.GIPIOffset),e["grid-col-pull-"+this.GIPIPull]=!ze.isNull(this.GIPIPull),e["grid-col-push-"+this.GIPIPush]=!ze.isNull(this.GIPIPush),e),this._generateClass());for(var n in this._classMap)this._classMap.hasOwnProperty(n)&&this.renderer.removeClass(this.elementRef.nativeElement,n);for(var n in this._classMap=_e({},t),this._classMap)this._classMap.hasOwnProperty(n)&&this._classMap[n]&&this.renderer.addClass(this.elementRef.nativeElement,n)},e.prototype._setHostFlexStyle=function(){this.hostFlexStyle=this._parseFlex(this.GIPIFlex)},e.prototype._parseFlex=function(e){return"number"==typeof e?e+" "+e+" auto":"string"==typeof e&&/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 "+e:e},e.prototype._generateClass=function(){var e=this,t={};return["GIPIXs","GIPISm","GIPIMd","GIPILg","GIPIXl","GIPIXXl"].forEach((function(n){var i=n.replace("GIPI","").toLowerCase();if(!ze.isNull(e[n]))if("number"==typeof e[n]||"string"==typeof e[n])t["grid-col-"+i+"-"+e[n]]=!0;else{var o=e[n];["span","pull","push","offset","order"].forEach((function(e){t["grid-col-"+i+("span"===e?"-":"-"+e+"-")+o[e]]=o&&!ze.isNull(o[e])}))}})),t},e.ctorParameters=function(){return[{type:t.ElementRef},{type:Qt,decorators:[{type:t.Optional},{type:t.Host}]},{type:t.Renderer2}]},we([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIFlex",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"GIPISpan",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIOrder",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIOffset",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIPush",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIPull",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIXs",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"GIPISm",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIMd",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"GIPILg",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIXl",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIXXl",void 0),e=we([t.Directive({selector:"[gipi-col],gipi-col,GIPICol",exportAs:"gipiCol",host:{class:"grid-col","[style.flex]":"hostFlexStyle"}}),xe(1,t.Optional()),xe(1,t.Host()),Ce("design:paramtypes",[t.ElementRef,Qt,t.Renderer2])],e)}(),tn=function(){function e(e){this.elementRef=e}var n;return n=e,e.prototype.ngOnInit=function(){var e,t,n=this.elementRef.nativeElement;Be.isEmpty(this.className)||n.classList.add(this.className),n.style.setProperty("--skeleton-rect-width",null!==(e=this.width)&&void 0!==e?e:"100%"),n.style.setProperty("--skeleton-rect-height",null!==(t=this.height)&&void 0!==t?t:"20px")},e.ctorParameters=function(){return[{type:t.ElementRef}]},e=n=we([t.Component({selector:"gipi-skeleton",exportAs:"gipiSkeleton",template:"",providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-skeleton"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:block;width:var(--skeleton-rect-width);height:var(--skeleton-rect-height);background:no-repeat #eff1f6}.gipi-skeleton{-webkit-animation:1.5s cubic-bezier(.4,0,.2,1) infinite pulse;animation:1.5s cubic-bezier(.4,0,.2,1) infinite pulse;-webkit-animation-delay:.5s;animation-delay:.5s}@-webkit-keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}}@keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}}"]}),Ce("design:paramtypes",[t.ElementRef])],e)}();var nn=function(){function e(e,t,n,i){this._templateRef=e,this._viewContainerRef=t,this._componentFactoryResolver=n,this._elementRef=i,this.loading=!1,this.size=1}return e.prototype.ngOnChanges=function(e){e.loading&&(this._viewContainerRef.clear(),e.loading.currentValue?this._createSkeletons():this._viewContainerRef.createEmbeddedView(this._templateRef))},e.prototype._createSkeletons=function(){var e,t,n=this,i=this._elementRef.nativeElement.getBoundingClientRect(),o="rand"===this.width?(e=30,t=90,Math.floor(Math.random()*(t-e+1))+e+"%"):this.width||i.width+"px",r=this.height||i.height+"px";Array.from({length:this.size}).forEach((function(){var e=n._componentFactoryResolver.resolveComponentFactory(tn),t=n._viewContainerRef.createComponent(e);Object.assign(t.instance,{width:o,height:r,className:n.className})}))},e.ctorParameters=function(){return[{type:t.TemplateRef},{type:t.ViewContainerRef},{type:t.ComponentFactoryResolver},{type:t.ElementRef}]},we([t.Input("skeleton"),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input("skeletonRepeat"),Ce("design:type",Number)],e.prototype,"size",void 0),we([t.Input("skeletonWidth"),Ce("design:type",String)],e.prototype,"width",void 0),we([t.Input("skeletonHeight"),Ce("design:type",String)],e.prototype,"height",void 0),we([t.Input("skeletonClassName"),Ce("design:type",String)],e.prototype,"className",void 0),e=we([t.Directive({selector:"[skeleton]"}),Ce("design:paramtypes",[t.TemplateRef,t.ViewContainerRef,t.ComponentFactoryResolver,t.ElementRef])],e)}(),on=function(){function e(){this._instances={},this._DEFAULT_ID="DEFAULT_PAGINATION_ID",this.change=new t.EventEmitter}return e.prototype.defaultId=function(){return this._DEFAULT_ID},e.prototype.register=function(e){return null==e.id&&(e.id=this._DEFAULT_ID),this._instances[e.id]?this.updateInstance(e):(this._instances[e.id]=e,!0)},e.prototype.updateInstance=function(e){var t=!1;for(var n in this._instances[e.id])e[n]!==this._instances[e.id][n]&&(this._instances[e.id][n]=e[n],t=!0);return t},e.prototype.getCurrentPage=function(e){return this._instances[e]?this._instances[e].currentPage:1},e.prototype.setCurrentPage=function(e,t){if(this._instances[e]){var n=this._instances[e];t<=Math.ceil(n.totalItems/n.itemsPerPage)&&1<=t&&(this._instances[e].currentPage=t,this.change.emit(e))}},e.prototype.setTotalItems=function(e,t){this._instances[e]&&0<=t&&(this._instances[e].totalItems=t,this.change.emit(e))},e.prototype.setItemsPerPage=function(e,t){this._instances[e]&&(this._instances[e].itemsPerPage=t,this.change.emit(e))},e.prototype.getInstance=function(e){return void 0===e&&(e=this._DEFAULT_ID),this._instances[e]?this.clone(this._instances[e]):{}},e.prototype.clone=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},e}(),rn=function(){function e(e,n){var i=this;this._service=e,this._changeDetectorRef=n,this.pages=[],this.maxSize=5,this.pageChange=new t.EventEmitter,this.pageBoundsCorrection=new t.EventEmitter,this.changeSub=this._service.change.subscribe((function(e){i.id===e&&(i.updatePageLinks(),i._changeDetectorRef.markForCheck(),i._changeDetectorRef.detectChanges())}))}return e.prototype.ngOnInit=function(){void 0===this.id&&(this.id=this._service.defaultId()),this.updatePageLinks()},e.prototype.ngOnChanges=function(e){this.updatePageLinks()},e.prototype.ngOnDestroy=function(){this.changeSub.unsubscribe()},e.prototype.previous=function(){this.checkValidId(),this.setCurrent(this.getCurrent()-1)},e.prototype.next=function(){this.checkValidId(),this.setCurrent(this.getCurrent()+1)},e.prototype.isFirstPage=function(){return 1===this.getCurrent()},e.prototype.isLastPage=function(){return this.getLastPage()===this.getCurrent()},e.prototype.setCurrent=function(e){this.pageChange.emit(e)},e.prototype.getCurrent=function(){return this._service.getCurrentPage(this.id)},e.prototype.getLastPage=function(){var e=this._service.getInstance(this.id);return e.totalItems<1?1:Math.ceil(e.totalItems/e.itemsPerPage)},e.prototype.getTotalItems=function(){return this._service.getInstance(this.id).totalItems},e.prototype.checkValidId=function(){null==this._service.getInstance(this.id).id&&console.warn('PaginationControlsDirective: O id especificado "'+this.id+'" não corresponde a nenhuma PaginationInstance registrada')},e.prototype.updatePageLinks=function(){var e=this,t=this._service.getInstance(this.id),n=this.outOfBoundCorrection(t);n!==t.currentPage?setTimeout((function(){e.pageBoundsCorrection.emit(n),e.pages=e.createPageArray(t.currentPage,t.itemsPerPage,t.totalItems,e.maxSize)})):this.pages=this.createPageArray(t.currentPage,t.itemsPerPage,t.totalItems,this.maxSize)},e.prototype.outOfBoundCorrection=function(e){var t=Math.ceil(e.totalItems/e.itemsPerPage);return t<e.currentPage&&0<t?t:e.currentPage<1?1:e.currentPage},e.prototype.createPageArray=function(e,t,n,i){i=+i;for(var o=[],r=Math.max(Math.ceil(n/t),1),a=Math.ceil(i/2),s=e<=a,l=r-a<e,p=!s&&!l,d=i<r,c=1;c<=r&&c<=i;){var u=void 0,h=this.calculatePageNumber(c,e,i,r);u=d&&(2===c&&(p||l)||c===i-1&&(p||s))?"...":String(h),o.push({label:u,value:h}),c++}return o},e.prototype.calculatePageNumber=function(e,t,n,i){var o=Math.ceil(n/2);return e===n?i:1===e?e:n<i?i-o<t?i-n+e:o<t?t-o+e:e:e},e.ctorParameters=function(){return[{type:on},{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"maxSize",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"pageChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"pageBoundsCorrection",void 0),e=we([t.Directive({selector:"pagination-template,[pagination-template]",exportAs:"paginationApi"}),Ce("design:paramtypes",[on,t.ChangeDetectorRef])],e)}(),an=function(){function e(e){this.viewContainer=e}return e.ctorParameters=function(){return[{type:t.ViewContainerRef}]},e=we([t.Directive({selector:"[GIPIDynamicTab]"}),Ce("design:paramtypes",[t.ViewContainerRef])],e)}(),sn=function(){function e(e){this.template=e}return e.prototype.getType=function(){return this.name},e.ctorParameters=function(){return[{type:t.TemplateRef}]},we([t.Input(),Ce("design:type",String)],e.prototype,"type",void 0),we([t.Input("gipi-template"),Ce("design:type",String)],e.prototype,"name",void 0),e=we([t.Directive({selector:"[GIPItemplate]",exportAs:"GIPITemplate",host:{class:"gipi-template"}}),Ce("design:paramtypes",[t.TemplateRef])],e)}(),ln=Number.MAX_SAFE_INTEGER,pn=function(){function e(e){this._service=e,this._state={}}return e.prototype.transform=function(e,t){if(!(e instanceof Array)){var n=t.id||this._service.defaultId();return this._state[n]?this._state[n].slice:e}var i,o,r=t.totalItems&&t.totalItems!==e.length,a=this.createInstance(e,t),s=a.id,l=a.itemsPerPage,p=this._service.register(a);if(!r&&e instanceof Array){if(l=+l||ln,o=(i=(a.currentPage-1)*l)+l,this.stateIsIdentical(s,e,i,o))return this._state[s].slice;var d=e.slice(i,o);return this.saveState(s,e,d,i,o),this._service.change.emit(s),d}return p&&this._service.change.emit(s),this.saveState(s,e,e,i,o),e},e.prototype.createInstance=function(e,t){return this.checkConfig(t),{id:null!=t.id?t.id:this._service.defaultId(),itemsPerPage:+t.itemsPerPage||0,currentPage:+t.currentPage||1,totalItems:+t.totalItems||e.length}},e.prototype.checkConfig=function(e){var t=["itemsPerPage","currentPage"].filter((function(t){return!(t in e)}));if(0<t.length)throw new Error("PaginatePipe: Argumento está faltando as seguintes propriedades necessárias: "+t.join(", "))},e.prototype.saveState=function(e,t,n,i,o){this._state[e]={collection:t,size:t.length,slice:n,start:i,end:o}},e.prototype.stateIsIdentical=function(e,t,n,i){var o=this._state[e];return!!o&&(!(o.size!==t.length||o.start!==n||o.end!==i)&&o.slice.every((function(e,i){return e===t[n+i]})))},e.ctorParameters=function(){return[{type:on}]},e=we([t.Pipe({name:"paginate",pure:!1}),Ce("design:paramtypes",[on])],e)}(),dn=function(){function e(){}var n;return n=e,e.prototype.ngOnInit=function(){},e=n=we([t.Component({selector:"gipi-action-row",exportAs:"gipiActionRow",template:"<ng-content> </ng-content>\n",providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-action-row"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{width:100%;display:flex;flex-direction:row;align-items:center;justify-content:flex-end;padding:16px 0;gap:16px;background-color:#fff;border-top:1px solid #e0e1e2;box-shadow:0 11px 8px -10px #e0e1e2,0 -11px 8px -10px #e0e1e2}"]}),Ce("design:paramtypes",[])],e)}(),cn=function(){function e(){this.flexDirection="column",this.gap=32,this.alignItems="stretch",this.justifyContent="flex-start",this.padding=16,this.dialog=!1,this.loading=!1}var n;return n=e,Object.defineProperty(e.prototype,"attrMargin",{get:function(){return this.dialog?"0":"0 auto"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{set:function(e){e||(this.attrId=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{set:function(e){e&&(this.attrName=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getPadding",{get:function(){return"string"==typeof this.padding&&this.padding.includes("px")?this.padding:this.padding+"px"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"getGap",{get:function(){return"string"==typeof this.gap&&this.gap.includes("px")?this.gap:this.gap+"px"},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){var e=this;if(this.dialog&&!ze.isNull(this.matDialogContent)){var t=this.matDialogContent.nativeElement;!ze.isNull(t)&&this._hasScroll(t)?(t.scrollTop=0,this.matDialogActions.nativeElement.style.boxShadow="0px -10px 15px -3px rgba(0,0,0,0.1)",t.addEventListener("scroll",(function(){return e._onScroll(t)}))):this._removeShadows()}},e.prototype._onScroll=function(e){var t=e.scrollTop||0,n=e.scrollHeight-36||0,i=e.clientHeight||0;0===t?(this.matDialogTitle.nativeElement.style.boxShadow="",this.matDialogActions.nativeElement.style.boxShadow="0px -10px 15px -3px rgba(0,0,0,0.1)"):t+i>=n?(this.matDialogTitle.nativeElement.style.boxShadow="0px 10px 15px -3px rgba(0,0,0,0.1)",this.matDialogActions.nativeElement.style.boxShadow=""):(this.matDialogTitle.nativeElement.style.boxShadow="0px 10px 15px -3px rgba(0,0,0,0.1)",this.matDialogActions.nativeElement.style.boxShadow="0px -10px 15px -3px rgba(0,0,0,0.1)")},e.prototype._hasScroll=function(e){return!ze.isNull(e)&&e.scrollHeight>e.clientHeight},e.prototype._removeShadows=function(){ze.isNull(this.matDialogTitle)||(this.matDialogTitle.nativeElement.style.boxShadow=""),ze.isNull(this.matDialogActions)||(this.matDialogActions.nativeElement.style.boxShadow="")},we([t.HostBinding("attr.id"),Ce("design:type",String)],e.prototype,"attrId",void 0),we([t.HostBinding("attr.name"),Ce("design:type",String)],e.prototype,"attrName",void 0),we([t.HostBinding("style.margin"),Ce("design:type",Object),Ce("design:paramtypes",[])],e.prototype,"attrMargin",null),we([t.ContentChildren(dn),Ce("design:type",dn)],e.prototype,"GIPIActionRowComponent",void 0),we([t.ContentChild(a.MatDialogTitle,{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"matDialogTitle",void 0),we([t.ContentChild(a.MatDialogContent,{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"matDialogContent",void 0),we([t.ContentChild(a.MatDialogActions,{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"matDialogActions",void 0),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"id",null),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"name",null),we([t.Input(),Ce("design:type",String)],e.prototype,"flexDirection",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"gap",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"alignItems",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"justifyContent",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"padding",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"dialog",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"class",void 0),e=n=we([t.Component({selector:"gipi-abstract-form",exportAs:"gipiAbstractForm",template:'<div [class]="class"\n [class.form-content]="true"\n [class.form-dialog]="dialog"\n [class.space-bottom]="!dialog"\n [style.flex-direction]="flexDirection"\n [style.align-items]="alignItems"\n [style.justify-content]="justifyContent"\n [style.gap]="getGap"\n [style.padding]="getPadding">\n <ng-content> </ng-content>\n</div>\n<div class="form-footer"\n [style.margin-inline]="getPadding"\n *ngIf="GIPIActionRowComponent">\n <ng-content select="gipi-action-row"> </ng-content>\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-abstract-form"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:flex;flex-direction:column;width:100%;max-width:1920px;background:#fff;padding-bottom:0!important;position:relative;margin:0 auto!important;box-shadow:10px 0 25px -5px rgba(0,0,0,.1),-10px 0 25px -5px rgba(0,0,0,.1);min-height:100%}.form-content{display:flex;height:100%;width:100%;flex:1;place-content:flex-start;overflow-y:auto;overflow-x:hidden}.form-content.space-bottom{margin-bottom:16px}.form-footer{position:-webkit-sticky;position:sticky;bottom:0}"]}),Ce("design:paramtypes",[])],e)}(),un=function(){function e(){this.color="primary",this.textColor="#ffffff"}var n;return n=e,e.prototype.ngOnInit=function(){},we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"color",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"textColor",void 0),e=n=we([t.Component({selector:"gipi-badge",template:'<span class="badge"\n [style.background-color]="color"\n [style.color]="textColor">\n <span>{{ label }}</span>\n</span>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-badge"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host .badge{display:flex;align-items:center;justify-content:center;padding:.5rem 1.5rem;border-radius:10rem;text-align:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;pointer-events:none;color:#fff;font-weight:500;font-size:1.2rem;min-width:7rem}"]}),Ce("design:paramtypes",[])],e)}(),hn=function(){function e(){}return e.addClass=function(e,t){e&&t&&(e.classList?e.classList.add(t):e.className+=" "+t)},e.addMultipleClasses=function(e,t){if(e&&t)if(e.classList)for(var n=t.trim().split(" "),i=0;i<n.length;i++)e.classList.add(n[i]);else for(n=t.split(" "),i=0;i<n.length;i++)e.className+=" "+n[i]},e.removeClass=function(e,t){e&&t&&(e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," "))},e.hasClass=function(e,t){return!(!e||!t)&&(e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className))},e.siblings=function(e){return Array.prototype.filter.call(e.parentNode.children,(function(t){return t!==e}))},e.find=function(e,t){return Array.from(e.querySelectorAll(t))},e.findSingle=function(e,t){return e?e.querySelector(t):null},e.index=function(e){for(var t=e.parentNode.childNodes,n=0,i=0;i<t.length;i++){if(t[i]==e)return n;1==t[i].nodeType&&n++}return-1},e.indexWithinGroup=function(e,t){for(var n=e.parentNode?e.parentNode.childNodes:[],i=0,o=0;o<n.length;o++){if(n[o]==e)return i;n[o].attributes&&n[o].attributes[t]&&1==n[o].nodeType&&i++}return-1},e.appendOverlay=function(e,t,n){void 0===n&&(n="self"),"self"!==n&&e&&t&&this.appendChild(e,t)},e.alignOverlay=function(t,n,i,o){void 0===i&&(i="self"),void 0===o&&(o=!0),t&&n&&(o&&(t.style.minWidth||(t.style.minWidth=e.getOuterWidth(n)+"px")),"self"===i?this.relativePosition(t,n):this.absolutePosition(t,n))},e.relativePosition=function(e,t){var n,i,o=function(e){if(e)return"relative"===getComputedStyle(e).getPropertyValue("position")?e:o(e.parentElement)},r=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),a=t.offsetHeight,s=t.getBoundingClientRect(),l=this.getWindowScrollTop(),p=this.getWindowScrollLeft(),d=this.getViewport(),c=o(e),u=(null==c?void 0:c.getBoundingClientRect())||{top:-1*l,left:-1*p};s.top+a+r.height>d.height?(n=s.top-u.top-r.height,e.style.transformOrigin="bottom",s.top+n<0&&(n=-1*s.top)):(n=a+s.top-u.top,e.style.transformOrigin="top"),i=r.width>d.width?-1*(s.left-u.left):s.left-u.left+r.width>d.width?-1*(s.left-u.left+r.width-d.width):s.left-u.left,e.style.top=n+"px",e.style.left=i+"px"},e.absolutePosition=function(e,t){var n,i,o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),r=o.height,a=o.width,s=t.offsetHeight,l=t.offsetWidth,p=t.getBoundingClientRect(),d=this.getWindowScrollTop(),c=this.getWindowScrollLeft(),u=this.getViewport();p.top+s+r>u.height?(n=p.top+d-r,e.style.transformOrigin="bottom",n<0&&(n=d)):(n=s+p.top+d,e.style.transformOrigin="top"),i=p.left+a>u.width?Math.max(0,p.left+c+l-a):p.left+c,e.style.top=n+"px",e.style.left=i+"px"},e.getParents=function(e,t){return void 0===t&&(t=[]),null===e.parentNode?t:this.getParents(e.parentNode,t.concat([e.parentNode]))},e.getScrollableParents=function(e){var t,n,i,o,r=[];if(e){var a=this.getParents(e),s=/(auto|scroll)/,l=function(e){var t=window.getComputedStyle(e,null);return s.test(t.getPropertyValue("overflow"))||s.test(t.getPropertyValue("overflowX"))||s.test(t.getPropertyValue("overflowY"))};try{for(var p=ke(a),d=p.next();!d.done;d=p.next()){var c=d.value,u=1===c.nodeType&&c.dataset.scrollselectors;if(u){var h=u.split(",");try{for(var g=(i=void 0,ke(h)),m=g.next();!m.done;m=g.next()){var f=m.value,y=this.findSingle(c,f);y&&l(y)&&r.push(y)}}catch(e){i={error:e}}finally{try{m&&!m.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}}9!==c.nodeType&&l(c)&&r.push(c)}}catch(e){t={error:e}}finally{try{d&&!d.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}}return r},e.getHiddenElementOuterHeight=function(e){e.style.visibility="hidden",e.style.display="block";var t=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",t},e.getHiddenElementOuterWidth=function(e){e.style.visibility="hidden",e.style.display="block";var t=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",t},e.getHiddenElementDimensions=function(e){var t={};return e.style.visibility="hidden",e.style.display="block",t.width=e.offsetWidth,t.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",t},e.scrollInView=function(e,t){var n=getComputedStyle(e).getPropertyValue("borderTopWidth"),i=n?parseFloat(n):0,o=getComputedStyle(e).getPropertyValue("paddingTop"),r=o?parseFloat(o):0,a=e.getBoundingClientRect(),s=t.getBoundingClientRect().top+document.body.scrollTop-(a.top+document.body.scrollTop)-i-r,l=e.scrollTop,p=e.clientHeight,d=this.getOuterHeight(t);s<0?e.scrollTop=l+s:s+d>p&&(e.scrollTop=l+s-p+d)},e.fadeIn=function(e,t){e.style.opacity=0;var n=+new Date,i=0,o=function(){i=+e.style.opacity.replace(",",".")+((new Date).getTime()-n)/t,e.style.opacity=i,n=+new Date,+i<1&&(window.requestAnimationFrame&&requestAnimationFrame(o)||setTimeout(o,16))};o()},e.fadeOut=function(e,t){var n=1,i=50/t,o=setInterval((function(){(n-=i)<=0&&(n=0,clearInterval(o)),e.style.opacity=n}),50)},e.getWindowScrollTop=function(){var e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)},e.getWindowScrollLeft=function(){var e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)},e.matches=function(e,t){var n=Element.prototype;return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||function(e){return-1!==[].indexOf.call(document.querySelectorAll(e),this)}).call(e,t)},e.getOuterWidth=function(e,t){var n=e.offsetWidth;if(t){var i=getComputedStyle(e);n+=parseFloat(i.marginLeft)+parseFloat(i.marginRight)}return n},e.getHorizontalPadding=function(e){var t=getComputedStyle(e);return parseFloat(t.paddingLeft)+parseFloat(t.paddingRight)},e.getHorizontalMargin=function(e){var t=getComputedStyle(e);return parseFloat(t.marginLeft)+parseFloat(t.marginRight)},e.innerWidth=function(e){var t=e.offsetWidth,n=getComputedStyle(e);return t+=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)},e.width=function(e){var t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)},e.getInnerHeight=function(e){var t=e.offsetHeight,n=getComputedStyle(e);return t+=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)},e.getOuterHeight=function(e,t){var n=e.offsetHeight;if(t){var i=getComputedStyle(e);n+=parseFloat(i.marginTop)+parseFloat(i.marginBottom)}return n},e.getHeight=function(e){var t=e.offsetHeight,n=getComputedStyle(e);return t-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)},e.getWidth=function(e){var t=e.offsetWidth,n=getComputedStyle(e);return t-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth)},e.getViewport=function(){var e=window,t=document,n=t.documentElement,i=t.getElementsByTagName("body")[0];return{width:e.innerWidth||n.clientWidth||i.clientWidth,height:e.innerHeight||n.clientHeight||i.clientHeight}},e.getOffset=function(e){var t=e.getBoundingClientRect();return{top:t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:t.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}},e.replaceElementWith=function(e,t){var n=e.parentNode;if(!n)throw new Error("Can't replace element");return n.replaceChild(t,e)},e.getUserAgent=function(){return navigator.userAgent},e.isIE=function(){var e=window.navigator.userAgent;if(e.indexOf("MSIE ")>0)return!0;if(e.indexOf("Trident/")>0){e.indexOf("rv:");return!0}return e.indexOf("Edge/")>0},e.isIOS=function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream},e.isAndroid=function(){return/(android)/i.test(navigator.userAgent)},e.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0},e.appendChild=function(e,t){if(this.isElement(t))t.appendChild(e);else{if(!t.el||!t.el.nativeElement)throw new Error("Cannot append "+t+" to "+e);t.el.nativeElement.appendChild(e)}},e.removeChild=function(e,t){if(this.isElement(t))t.removeChild(e);else{if(!t.el||!t.el.nativeElement)throw new Error("Cannot remove "+e+" from "+t);t.el.nativeElement.removeChild(e)}},e.removeElement=function(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)},e.isElement=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName},e.calculateScrollbarWidth=function(e){if(e){var t=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(t.borderLeftWidth)-parseFloat(t.borderRightWidth)}if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;var n=document.createElement("div");n.className="p-scrollbar-measure",document.body.appendChild(n);var i=n.offsetWidth-n.clientWidth;return document.body.removeChild(n),this.calculatedScrollbarWidth=i,i},e.calculateScrollbarHeight=function(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;var e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);var t=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=t,t},e.invokeElementMethod=function(e,t,n){e[t].apply(e,n)},e.clearSelection=function(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch(e){}},e.getBrowser=function(){if(!this.browser){var e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser},e.resolveUserAgent=function(){var e=navigator.userAgent.toLowerCase(),t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e.isInteger=function(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},e.isHidden=function(e){return!e||null===e.offsetParent},e.isVisible=function(e){return e&&null!=e.offsetParent},e.isExist=function(e){return null!=e&&e.nodeName&&e.parentNode},e.focus=function(e,t){e&&document.activeElement!==e&&e.focus(t)},e.getFocusableElements=function(t){var n,i,o=e.find(t,"button:not([tabindex = '-1']):not([disabled]):not([style*='display:none']):not([hidden]),\n [href]:not([tabindex = '-1']):not([disabled]):not([style*='display:none']):not([hidden]),\n input:not([tabindex = '-1']):not([disabled]):not([style*='display:none']):not([hidden]),\n select:not([tabindex = '-1']):not([disabled]):not([style*='display:none']):not([hidden]),\n textarea:not([tabindex = '-1']):not([disabled]):not([style*='display:none']):not([hidden]),\n [tabIndex]:not([tabIndex = '-1']):not([disabled]):not([style*='display:none']):not([hidden]),\n [contenteditable]:not([tabIndex = '-1']):not([disabled]):not([style*='display:none']):not([hidden])"),r=[];try{for(var a=ke(o),s=a.next();!s.done;s=a.next()){var l=s.value;(l.offsetWidth||l.offsetHeight||l.getClientRects().length)&&r.push(l)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return r},e.getNextFocusableElement=function(t,n){void 0===n&&(n=!1);var i=e.getFocusableElements(t),o=0;if(i&&i.length>0){var r=i.indexOf(i[0].ownerDocument.activeElement);n?o=-1==r||0===r?i.length-1:r-1:-1!=r&&r!==i.length-1&&(o=r+1)}return i[o]},e.generateZIndex=function(){return this.zIndex=this.zIndex||999,++this.zIndex},e.getSelection=function(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null},e.getTargetElement=function(e,t){if(!e)return null;switch(e){case"document":return document;case"window":return window;case"@next":return null==t?void 0:t.nextElementSibling;case"@prev":return null==t?void 0:t.previousElementSibling;case"@parent":return null==t?void 0:t.parentElement;case"@grandparent":return null==t?void 0:t.parentElement.parentElement;default:var n=typeof e;if("string"===n)return document.querySelector(e);if("object"===n&&e.hasOwnProperty("nativeElement"))return this.isExist(e.nativeElement)?e.nativeElement:void 0;var i=(o=e)&&o.constructor&&o.call&&o.apply?e():e;return i&&9===i.nodeType||this.isExist(i)?i:null}var o},e.zIndex=1e3,e.calculatedScrollbarWidth=null,e.calculatedScrollbarHeight=null,e}();var gn=function(){function e(e,n,i,o,r){this._overlay=e,this._elementRef=n,this._viewContainerRef=i,this._dir=o,this._changeDetectorRef=r,this.ariaHaspopup=!0,this.popoverOpened=new ie.Subject,this.popoverClosed=new ie.Subject,this._overlayRef=null,this._popoverOpen=!1,this._halt=!1,this._openedByMouse=!1,this._onDestroy=new ie.Subject,this.backdropCloseOnClick=!0,this.opened=new t.EventEmitter,this.closed=new t.EventEmitter}return e.prototype.ngAfterViewInit=function(){var e=this;this._checkPopover(),this._setCurrentConfig(),this.popover.close.subscribe((function(){return e.closePopover()}))},e.prototype.ngOnDestroy=function(){this.destroyPopover()},e.prototype._setCurrentConfig=function(){"before"!==this.positionX&&"after"!==this.positionX||(this.popover.positionX=this.positionX),"above"!==this.positionY&&"below"!==this.positionY||(this.popover.positionY=this.positionY),this.triggerEvent&&(this.popover.triggerEvent=this.triggerEvent),this.enterDelay&&(this.popover.enterDelay=this.enterDelay),this.leaveDelay&&(this.popover.leaveDelay=this.leaveDelay),!0!==this.overlapTrigger&&!1!==this.overlapTrigger||(this.popover.overlapTrigger=this.overlapTrigger),this.targetOffsetX&&(this.popover.targetOffsetX=this.targetOffsetX),this.targetOffsetY&&(this.popover.targetOffsetY=this.targetOffsetY),this.arrowOffsetX&&(this.popover.arrowOffsetX=this.arrowOffsetX),this.arrowWidth&&(this.popover.arrowWidth=this.arrowWidth),this.arrowColor&&(this.popover.arrowColor=this.arrowColor),!0!==this.closeOnClick&&!1!==this.closeOnClick||(this.popover.closeOnClick=this.closeOnClick),this.popover.setCurrentStyles()},Object.defineProperty(e.prototype,"popoverOpen",{get:function(){return this._popoverOpen},enumerable:!1,configurable:!0}),e.prototype.onClick=function(e){"click"===this.popover.triggerEvent&&this.togglePopover()},e.prototype.onMouseEnter=function(e){var t=this;this._halt=!1,"hover"===this.popover.triggerEvent&&(this._mouseoverTimer=setTimeout((function(){t.openPopover()}),this.popover.enterDelay))},e.prototype.onMouseLeave=function(e){var t=this;"hover"===this.popover.triggerEvent&&(this._mouseoverTimer&&(clearTimeout(this._mouseoverTimer),this._mouseoverTimer=null),this._popoverOpen?setTimeout((function(){t.popover.closeDisabled||t.closePopover()}),this.popover.leaveDelay):this._halt=!0)},e.prototype.togglePopover=function(){return this._popoverOpen?this.closePopover():this.openPopover()},e.prototype.openPopover=function(){if(!this._popoverOpen&&!this._halt){if(this._createOverlay().attach(this._portal),!ze.isNull(this._viewContainerRef)&&!ze.isNull(this._viewContainerRef.element)){var e=hn.getWidth(this._viewContainerRef.element.nativeElement);(Be.isEmpty(this.popover.popoverWidth)||"auto"===this.popover.popoverWidth)&&(this.popover.popoverWidth=e+"px")}this._subscribeToBackdrop(),this._subscribeToDetachments(),this._initPopover()}},e.prototype.closePopover=function(){this._overlayRef&&(this._overlayRef.detach(),this._resetPopover())},e.prototype.destroyPopover=function(){this._mouseoverTimer&&(clearTimeout(this._mouseoverTimer),this._mouseoverTimer=null),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null,this._cleanUpSubscriptions()),this._onDestroy.next(),this._onDestroy.complete()},e.prototype.focus=function(){this._elementRef.nativeElement.focus()},Object.defineProperty(e.prototype,"dir",{get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},enumerable:!1,configurable:!0}),e.prototype._subscribeToBackdrop=function(){var e=this;this._overlayRef&&"hover"!==this.triggerEvent&&this.backdropCloseOnClick&&this._overlayRef.backdropClick().pipe(oe.takeUntil(this.popoverClosed),oe.takeUntil(this._onDestroy)).subscribe((function(){e.popover._emitCloseEvent()}))},e.prototype._subscribeToDetachments=function(){var e=this;this._overlayRef&&this._overlayRef.detachments().pipe(oe.takeUntil(this.popoverClosed),oe.takeUntil(this._onDestroy)).subscribe((function(){e._setPopoverClosed()}))},e.prototype._initPopover=function(){this._setPopoverOpened()},e.prototype._resetPopover=function(){this._setPopoverClosed(),this._openedByMouse||this.focus(),this._openedByMouse=!1},e.prototype._setPopoverOpened=function(){this._popoverOpen||(this._popoverOpen=!0,this.popoverOpened.next(),this.opened.emit())},e.prototype._setPopoverClosed=function(){this._popoverOpen&&(this._popoverOpen=!1,this.popoverClosed.next(),this.closed.emit())},e.prototype._checkPopover=function(){this.popover||function(){throw Error('popover-trigger: deve passar em uma instância popover.\n\n Example:\n <gipi-popover #popover="popover"> </gipi-popover>\n <button [popoverTriggerFor]="popover"> </button>')}()},e.prototype._createOverlay=function(){if(!this._overlayRef){this._portal=new y.TemplatePortal(this.popover.templateRef,this._viewContainerRef);var e=this._getOverlayConfig();this._subscribeToPositions(e.positionStrategy),this._overlayRef=this._overlay.create(e)}return this._overlayRef},e.prototype._getOverlayConfig=function(){var e=new ue.OverlayConfig;return e.positionStrategy=this._getPosition(),"hover"!==this.triggerEvent&&(e.hasBackdrop=!0,e.backdropClass="cdk-overlay-transparent-backdrop"),e.direction=this.dir,e.scrollStrategy=this._getOverlayScrollStrategy(this.popover.scrollStrategy),e},e.prototype._getOverlayScrollStrategy=function(e){switch(e){case"noop":return this._overlay.scrollStrategies.noop();case"close":return this._overlay.scrollStrategies.close();case"block":return this._overlay.scrollStrategies.block();case"reposition":default:return this._overlay.scrollStrategies.reposition()}},e.prototype._subscribeToPositions=function(e){var t=this;this._positionSubscription=e.positionChanges.subscribe((function(e){var n="start"===e.connectionPair.overlayX?"after":"before",i="top"===e.connectionPair.overlayY?"below":"above";t.popover.overlapTrigger||(i="below"===i?"above":"below"),t._changeDetectorRef.markForCheck(),t.popover.zone.run((function(){t.popover.positionX=n,t.popover.positionY=i,t.popover.setCurrentStyles(),t.popover.setPositionClasses(n,i)}))}))},e.prototype._getPosition=function(){var e=Oe("before"===this.popover.positionX?["end","start"]:["start","end"],2),t=e[0],n=e[1],i=Oe("above"===this.popover.positionY?["bottom","top"]:["top","bottom"],2),o=i[0],r=i[1],a=o,s=r,l=t,p=n;this.popover.overlapTrigger||(a="top"===o?"bottom":"top",s="top"===r?"bottom":"top");var d=0,c=0;this.popover.targetOffsetX&&!isNaN(Number(this.popover.targetOffsetX))&&(d=Number(this.popover.targetOffsetX)),this.popover.targetOffsetY&&!isNaN(Number(this.popover.targetOffsetY))&&(c=Number(this.popover.targetOffsetY));var u=this._elementRef;return void 0!==this.targetElement&&(this.popover.containerPositioning=!0,u=this.targetElement._elementRef),this._overlay.position().flexibleConnectedTo(u).withLockedPosition(!0).withPositions([{originX:t,originY:a,overlayX:l,overlayY:o,offsetY:c},{originX:n,originY:a,overlayX:p,overlayY:o,offsetY:c},{originX:t,originY:s,overlayX:l,overlayY:r,offsetY:-c},{originX:n,originY:s,overlayX:p,overlayY:r,offsetY:-c}]).withDefaultOffsetX(d).withDefaultOffsetY(c)},e.prototype._cleanUpSubscriptions=function(){this._backdropSubscription&&this._backdropSubscription.unsubscribe(),this._positionSubscription&&this._positionSubscription.unsubscribe(),this._detachmentsSubscription&&this._detachmentsSubscription.unsubscribe()},e.prototype._handleMousedown=function(e){e&&!m.isFakeMousedownFromScreenReader(e)&&(this._openedByMouse=!0)},e.ctorParameters=function(){return[{type:ue.Overlay},{type:t.ElementRef},{type:t.ViewContainerRef},{type:ce.Directionality,decorators:[{type:t.Optional}]},{type:t.ChangeDetectorRef}]},we([t.HostBinding("attr.aria-haspopup"),Ce("design:type",Boolean)],e.prototype,"ariaHaspopup",void 0),we([t.Input("popoverTriggerFor"),Ce("design:type",Object)],e.prototype,"popover",void 0),we([t.Input("popoverTargetAt"),Ce("design:type",Object)],e.prototype,"targetElement",void 0),we([t.Input("popoverPositionX"),Ce("design:type",String)],e.prototype,"positionX",void 0),we([t.Input("popoverPositionY"),Ce("design:type",String)],e.prototype,"positionY",void 0),we([t.Input("popoverTriggerOn"),Ce("design:type",String)],e.prototype,"triggerEvent",void 0),we([t.Input("popoverEnterDelay"),Ce("design:type",Number)],e.prototype,"enterDelay",void 0),we([t.Input("popoverLeaveDelay"),Ce("design:type",Number)],e.prototype,"leaveDelay",void 0),we([t.Input("popoverOverlapTrigger"),Ce("design:type",Boolean)],e.prototype,"overlapTrigger",void 0),we([t.Input("popoverOffsetX"),Ce("design:type",Number)],e.prototype,"targetOffsetX",void 0),we([t.Input("popoverOffsetY"),Ce("design:type",Number)],e.prototype,"targetOffsetY",void 0),we([t.Input("popoverArrowOffsetX"),Ce("design:type",Number)],e.prototype,"arrowOffsetX",void 0),we([t.Input("popoverArrowWidth"),Ce("design:type",Number)],e.prototype,"arrowWidth",void 0),we([t.Input("popoverArrowColor"),Ce("design:type",String)],e.prototype,"arrowColor",void 0),we([t.Input("popoverCloseOnClick"),Ce("design:type",Boolean)],e.prototype,"closeOnClick",void 0),we([t.Input("popoverBackdropCloseOnClick"),Ce("design:type",Boolean)],e.prototype,"backdropCloseOnClick",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"opened",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"closed",void 0),we([t.HostListener("click",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[MouseEvent]),Ce("design:returntype",void 0)],e.prototype,"onClick",null),we([t.HostListener("mouseenter",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[MouseEvent]),Ce("design:returntype",void 0)],e.prototype,"onMouseEnter",null),we([t.HostListener("mouseleave",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[MouseEvent]),Ce("design:returntype",void 0)],e.prototype,"onMouseLeave",null),we([t.HostListener("mousedown",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[MouseEvent]),Ce("design:returntype",void 0)],e.prototype,"_handleMousedown",null),e=we([t.Directive({selector:"[popoverTriggerFor]",exportAs:"popoverTrigger"}),xe(3,t.Optional()),Ce("design:paramtypes",[ue.Overlay,t.ElementRef,t.ViewContainerRef,ce.Directionality,t.ChangeDetectorRef])],e)}(),mn=function(){function e(e){this._elementRef=e,this.isButtonPrimary=this._hasHostAttributes("gipi-primary"),this.isButtonPrimaryIcon=this._hasHostAttributes("gipi-primary-icon"),this.isButtonSecondary=this._hasHostAttributes("gipi-secondary"),this.isButtonSecondaryIcon=this._hasHostAttributes("gipi-secondary-icon"),this.isButtonTertiary=this._hasHostAttributes("gipi-tertiary"),this.isButtonTertiaryIcon=this._hasHostAttributes("gipi-tertiary-icon"),this.isButtonLink=this._hasHostAttributes("gipi-link"),this.isButtonIcon=this._hasHostAttributes("gipi-icon"),this.isButtonAction=this._hasHostAttributes("gipi-action"),this._overlayVisible=!1,this.type="button",this.ariaLabel="",this.title="",this.label="",this.icon=null,this.svgIcon=null,this.iconPos="left",this.disabled=!1,this.loading=!1,this.notification=!1,this.tooltip="",this.popover=!1,this.overlay=!1,this.isForInput=!1,this.onShowOverlay=new t.EventEmitter,this.onOpenPopover=new t.EventEmitter,this.onClosePopover=new t.EventEmitter,this.onClick=new t.EventEmitter(!0),this.onFocus=new t.EventEmitter(!0),this.onBlur=new t.EventEmitter(!0)}var n;return n=e,Object.defineProperty(e.prototype,"internalButtonClass",{get:function(){return{"button-base":!0,"button-primary":this.isButtonPrimary||this.isButtonPrimaryIcon,"button-primary-icon":this.isButtonPrimaryIcon,"button-secondary":this.isButtonSecondary||this.isButtonSecondaryIcon,"button-secondary-icon":this.isButtonSecondaryIcon,"button-tertiary":this.isButtonTertiary||this.isButtonTertiaryIcon,"button-tertiary-icon":this.isButtonTertiaryIcon,"button-link":this.isButtonLink,"button-only-icon":this.isButtonIcon,"button-for-input":this.isForInput,"button-notification":this.notification,"button-action":this.isButtonAction}},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.ngOnDestroy=function(){this.popoverTrigger&&this.popoverTrigger.destroyPopover()},e.prototype.getHostElement=function(){return this._elementRef.nativeElement},e.prototype._hasHostAttributes=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.some((function(t){return e.getHostElement().hasAttribute(t)}))},e.prototype.toggleOverlay=function(){this.disabled||this.loading||(this._overlayVisible=!this._overlayVisible)},e.prototype.showPopover=function(){this.disabled||this.loading||this.popoverTrigger.openPopover()},e.prototype.closePopover=function(){this.disabled||this.loading||this.popoverTrigger.closePopover()},e.prototype.handleClick=function(e){this.disabled||this.loading||(this.overlay&&this.toggleOverlay(),this.onClick.emit(e),e.stopPropagation())},e.prototype.handleFocus=function(e){this.disabled||this.loading||(this.onFocus.emit(e),e.stopPropagation())},e.prototype.handleBlur=function(e){this.disabled||this.loading||(this.onBlur.emit(e),e.stopPropagation())},e.prototype.onResize=function(e){this.popoverTrigger&&(this.popoverTrigger.closePopover(),e.stopPropagation())},e.ctorParameters=function(){return[{type:t.ElementRef}]},we([t.ViewChild(gn,{static:!1}),Ce("design:type",gn)],e.prototype,"popoverTrigger",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"type",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"title",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"buttonClass",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"buttonPadding",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"iconWidth",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"iconHeight",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"icon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"iconPos",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"notification",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"popover",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"overlay",void 0),we([t.Input("forInput"),Ce("design:type",Boolean)],e.prototype,"isForInput",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onShowOverlay",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onOpenPopover",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClosePopover",void 0),we([t.Output("click"),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),we([t.Output("focus"),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),we([t.Output("blur"),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),we([t.HostListener("window:resize",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[UIEvent]),Ce("design:returntype",void 0)],e.prototype,"onResize",null),e=n=we([t.Component({selector:"gipi-button[gipi-primary], gipi-button[gipi-primary-icon], gipi-button[gipi-secondary], gipi-button[gipi-secondary-icon],\n gipi-button[gipi-tertiary], gipi-button[gipi-link], gipi-button[gipi-icon], gipi-button[gipi-action]",exportAs:"gipiButton",template:'<button [attr.id]="id"\n [attr.name]="name"\n [attr.type]="type"\n [attr.aria-label]="ariaLabel ? ariaLabel : label"\n [attr.title]="title ? title : label"\n [disabled]="disabled || loading"\n [matTooltip]="tooltip"\n matTooltipClass="mattooltip-line-break"\n role="button"\n [class]="buttonClass"\n [ngClass]="internalButtonClass"\n [style.padding.px]="buttonPadding"\n #popoverTrigger="popoverTrigger"\n [popoverTriggerFor]="btnPopover"\n [popoverTriggerOn]="popover ? \'click\' : \'none\'"\n [popoverBackdropCloseOnClick]="true"\n (opened)="onOpenPopover.emit()"\n (closed)="onClosePopover.emit()"\n (click)="handleClick($event)"\n (focus)="handleFocus($event)"\n (blur)="handleBlur($event)">\n <span [ngClass]="{\'button-content\': true,\n \'button-disabled\': disabled,\n \'button-icon-left\': ((iconPos === \'left\') && label),\n \'button-icon-right\': ((iconPos === \'right\') && label),\n \'button-icon-top\': ((iconPos === \'top\') && label),\n \'button-icon-bottom\': ((iconPos === \'bottom\') && label),\n \'button-icon-center\': (iconPos === \'center\')}">\n <mat-icon *ngIf="svgIcon || icon"\n [svgIcon]="svgIcon"\n [style.width.px]="iconWidth"\n [style.height.px]="iconHeight"\n [style.font-size.px]="iconWidth || iconHeight">\n {{ (!svgIcon && icon) ? icon : \'\' }}\n </mat-icon>\n\n <span class="button-label"\n [attr.aria-hidden]="(icon || svgIcon) && !label"\n *ngIf="!isButtonIcon && label">\n {{ label }}\n </span>\n </span>\n</button>\n\n<gipi-overlay *ngIf="overlay && !popover"\n [(visible)]="_overlayVisible"\n [appendTo]="\'body\'"\n (onShow)="onShowOverlay.emit()">\n <ng-content> </ng-content>\n</gipi-overlay>\n\n<gipi-popover #btnPopover="gipiPopover"\n [popoverOverlapTrigger]="false"\n [popoverCloseOnClick]="false"\n [popoverArrowWidth]="0"\n [popoverOffsetY]="3"\n [fxHide]="!popover">\n <div class="btn-popover-content">\n <ng-content> </ng-content>\n </div>\n</gipi-popover>\n',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-button"},styles:[".button-base{display:flex;flex-direction:row;justify-content:center;padding:12px 16px;border-radius:4px;font-weight:600;font-size:1.4rem;line-height:1.6rem;cursor:pointer;outline:0;white-space:nowrap;text-decoration:none;vertical-align:middle;text-align:center;box-shadow:1px 1px 5px 0 rgba(0,0,0,.1);transition:.2s;width:100%;max-height:4rem;border:1px solid transparent;position:relative}.button-base:disabled,.button-base[disabled]{cursor:not-allowed!important;box-shadow:none}.button-base:not(:disabled):active{opacity:.8}.button-base .button-content{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:.8rem;font-size:1.4rem}.button-base .button-content.button-icon-right{flex-direction:row-reverse!important}.button-base .button-content.button-icon-top{flex-direction:column!important}.button-base .button-content.button-icon-bottom{flex-direction:column-reverse!important}.button-base .button-content>mat-icon{width:1.6rem;height:1.6rem;font-size:1.6rem;background-color:transparent!important}.button-base.button-notification:after{content:'';background-color:#d6a000;width:10px;height:10px;border-radius:50%;position:absolute;top:-2.5px;right:-2.5px}.button-primary-icon,.button-secondary-icon,.button-tertiary-icon{width:-webkit-fit-content!important;width:-moz-fit-content!important;width:fit-content!important}.button-primary:not(:disabled),.button-primary:not(:disabled) .button-content>mat-icon{background-color:#e0313e;color:#fff;fill:#fff}.button-primary:not(:disabled) .button-content>mat-icon svg,.button-primary:not(:disabled) .button-content>mat-icon svg g path,.button-primary:not(:disabled) .button-content>mat-icon svg path,.button-primary:not(:disabled) svg,.button-primary:not(:disabled) svg g path,.button-primary:not(:disabled) svg path{color:#fff;fill:#fff}.button-primary:disabled,.button-primary:disabled .button-content>mat-icon{background-color:#d1d2d4;color:#9a9da2;fill:#9a9da2}.button-primary:disabled .button-content>mat-icon svg,.button-primary:disabled .button-content>mat-icon svg g path,.button-primary:disabled .button-content>mat-icon svg path,.button-primary:disabled svg,.button-primary:disabled svg g path,.button-primary:disabled svg path{color:#9a9da2;fill:#9a9da2}.button-primary:not(:disabled):hover,.button-primary:not(:disabled):hover .button-content>mat-icon{background-color:#cc2d38;color:#fff;fill:#fff}.button-primary:not(:disabled):hover .button-content>mat-icon svg,.button-primary:not(:disabled):hover .button-content>mat-icon svg g path,.button-primary:not(:disabled):hover .button-content>mat-icon svg path,.button-primary:not(:disabled):hover svg,.button-primary:not(:disabled):hover svg g path,.button-primary:not(:disabled):hover svg path{color:#fff;fill:#fff}.button-secondary{background-color:transparent}.button-secondary:not(:disabled),.button-secondary:not(:disabled) .button-content>mat-icon{border-color:#595959;color:#595959;fill:#595959}.button-secondary:not(:disabled) .button-content>mat-icon svg,.button-secondary:not(:disabled) .button-content>mat-icon svg g path,.button-secondary:not(:disabled) .button-content>mat-icon svg path,.button-secondary:not(:disabled) svg,.button-secondary:not(:disabled) svg g path,.button-secondary:not(:disabled) svg path{color:#595959;fill:#595959}.button-secondary:disabled,.button-secondary:disabled .button-content>mat-icon{border-color:#d1d2d4;background-color:#d1d2d4;color:#9a9da2;fill:#9a9da2}.button-secondary:disabled .button-content>mat-icon svg,.button-secondary:disabled .button-content>mat-icon svg g path,.button-secondary:disabled .button-content>mat-icon svg path,.button-secondary:disabled svg,.button-secondary:disabled svg g path,.button-secondary:disabled svg path{color:#9a9da2;fill:#9a9da2}.button-secondary:not(:disabled):hover,.button-secondary:not(:disabled):hover .button-content>mat-icon{border-color:#595959;background-color:#e0e1e2;color:#595959;fill:#595959}.button-secondary:not(:disabled):hover .button-content>mat-icon svg,.button-secondary:not(:disabled):hover .button-content>mat-icon svg g path,.button-secondary:not(:disabled):hover .button-content>mat-icon svg path,.button-secondary:not(:disabled):hover svg,.button-secondary:not(:disabled):hover svg g path,.button-secondary:not(:disabled):hover svg path{color:#595959;fill:#595959}.button-tertiary{background-color:#e7ebee;box-shadow:none}.button-tertiary:not(:disabled),.button-tertiary:not(:disabled) .button-content>mat-icon,.button-tertiary:not(:disabled) .button-content>mat-icon svg,.button-tertiary:not(:disabled) .button-content>mat-icon svg g path,.button-tertiary:not(:disabled) .button-content>mat-icon svg path,.button-tertiary:not(:disabled) svg,.button-tertiary:not(:disabled) svg g path,.button-tertiary:not(:disabled) svg path{color:#595959;fill:#595959}.button-tertiary:disabled,.button-tertiary:disabled .button-content>mat-icon{background-color:#d1d2d4;color:#9a9da2;fill:#9a9da2}.button-tertiary:disabled .button-content>mat-icon svg,.button-tertiary:disabled .button-content>mat-icon svg g path,.button-tertiary:disabled .button-content>mat-icon svg path,.button-tertiary:disabled svg,.button-tertiary:disabled svg g path,.button-tertiary:disabled svg path{color:#9a9da2;fill:#9a9da2}.button-tertiary:not(:disabled):hover,.button-tertiary:not(:disabled):hover .button-content>mat-icon{background-color:#e0e1e2;color:#595959;fill:#595959}.button-tertiary:not(:disabled):hover .button-content>mat-icon svg,.button-tertiary:not(:disabled):hover .button-content>mat-icon svg g path,.button-tertiary:not(:disabled):hover .button-content>mat-icon svg path,.button-tertiary:not(:disabled):hover svg,.button-tertiary:not(:disabled):hover svg g path,.button-tertiary:not(:disabled):hover svg path{color:#595959;fill:#595959}.button-link{background-color:transparent;box-shadow:none}.button-link:not(:disabled),.button-link:not(:disabled) .button-content>mat-icon,.button-link:not(:disabled) .button-content>mat-icon svg,.button-link:not(:disabled) .button-content>mat-icon svg g path,.button-link:not(:disabled) .button-content>mat-icon svg path,.button-link:not(:disabled) svg,.button-link:not(:disabled) svg g path,.button-link:not(:disabled) svg path{color:#131313;fill:#131313}.button-link:disabled,.button-link:disabled .button-content>mat-icon,.button-link:disabled .button-content>mat-icon svg,.button-link:disabled .button-content>mat-icon svg g path,.button-link:disabled .button-content>mat-icon svg path,.button-link:disabled svg,.button-link:disabled svg g path,.button-link:disabled svg path{color:#9a9da2;fill:#9a9da2}.button-link:not(:disabled):hover .button-content .button-label{text-decoration:underline;-webkit-text-decoration-color:#131313;text-decoration-color:#131313;color:#131313;fill:#131313}.button-link:not(:disabled):hover .button-content>mat-icon,.button-link:not(:disabled):hover .button-content>mat-icon svg,.button-link:not(:disabled):hover .button-content>mat-icon svg g path,.button-link:not(:disabled):hover .button-content>mat-icon svg path{color:#131313;fill:#131313}.button-only-icon{background-color:transparent;box-shadow:none}.button-only-icon.button-for-input{padding:6px!important;border-radius:50%!important}.button-only-icon:not(:disabled),.button-only-icon:not(:disabled) .button-content>mat-icon,.button-only-icon:not(:disabled) .button-content>mat-icon svg,.button-only-icon:not(:disabled) .button-content>mat-icon svg g path,.button-only-icon:not(:disabled) .button-content>mat-icon svg path,.button-only-icon:not(:disabled) svg,.button-only-icon:not(:disabled) svg g path,.button-only-icon:not(:disabled) svg path{color:#131313;fill:#131313}.button-only-icon:disabled,.button-only-icon:disabled .button-content>mat-icon,.button-only-icon:disabled .button-content>mat-icon svg,.button-only-icon:disabled .button-content>mat-icon svg g path,.button-only-icon:disabled .button-content>mat-icon svg path,.button-only-icon:disabled svg,.button-only-icon:disabled svg g path,.button-only-icon:disabled svg path{color:#9a9da2;fill:#9a9da2}.button-only-icon:not(:disabled):hover,.button-only-icon:not(:disabled):hover .button-content>mat-icon{background-color:#e0e1e2;color:#131313;fill:#131313}.button-only-icon:not(:disabled):hover .button-content>mat-icon svg,.button-only-icon:not(:disabled):hover .button-content>mat-icon svg g path,.button-only-icon:not(:disabled):hover .button-content>mat-icon svg path,.button-only-icon:not(:disabled):hover svg,.button-only-icon:not(:disabled):hover svg g path,.button-only-icon:not(:disabled):hover svg path{color:#131313;fill:#131313}.button-action{background-color:transparent;box-shadow:none;display:flex;justify-content:flex-start!important}.button-action:not(:disabled),.button-action:not(:disabled) .button-content>mat-icon,.button-action:not(:disabled) .button-content>mat-icon svg,.button-action:not(:disabled) .button-content>mat-icon svg g path,.button-action:not(:disabled) .button-content>mat-icon svg path,.button-action:not(:disabled) svg,.button-action:not(:disabled) svg g path,.button-action:not(:disabled) svg path{color:#262626;fill:#262626}.button-action:disabled,.button-action:disabled .button-content>mat-icon,.button-action:disabled .button-content>mat-icon svg,.button-action:disabled .button-content>mat-icon svg g path,.button-action:disabled .button-content>mat-icon svg path,.button-action:disabled svg,.button-action:disabled svg g path,.button-action:disabled svg path{color:#9a9da2;fill:#9a9da2}.button-action:not(:disabled):hover,.button-action:not(:disabled):hover .button-content>mat-icon{background-color:#f5f5f6;color:#262626;fill:#262626}.button-action:not(:disabled):hover .button-content>mat-icon svg,.button-action:not(:disabled):hover .button-content>mat-icon svg g path,.button-action:not(:disabled):hover .button-content>mat-icon svg path,.button-action:not(:disabled):hover svg,.button-action:not(:disabled):hover svg g path,.button-action:not(:disabled):hover svg path{color:#262626;fill:#262626}.button-disabled{pointer-events:none!important}.btn-popover-content{background-color:#fff;border-radius:4px;box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);padding:8px}"]}),Ce("design:paramtypes",[t.ElementRef])],e)}(),fn=0,yn=function(){function e(e,t){this.elementRef=e,this._changeDetectorRef=t,this._uniqueId="gipi-card-"+ ++fn,this._id="",this._name="",this._loading=!1,this._shadow=!0,this._padding=!0}var n;return n=e,Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e||this._uniqueId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(e){this._name=e||this._uniqueId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loading",{get:function(){return this._loading},set:function(e){e!==this.loading&&(this._loading=e,this._changeDetectorRef.markForCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shadow",{get:function(){return this._shadow},set:function(e){e!==this.shadow&&(this._shadow=e,this._changeDetectorRef.markForCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"padding",{get:function(){return this._padding},set:function(e){e!==this.padding&&(this._padding=e,this._changeDetectorRef.markForCheck())},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"id",null),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"name",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"loading",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"shadow",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"padding",null),e=n=we([t.Component({selector:"gipi-card",exportAs:"gipiCard",template:"<ng-content></ng-content>",providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-card","[attr.id]":"id","[attr.name]":"name","[class.shadow-none]":"!shadow","[class.padding-none]":"!padding","[class.loading]":"loading"},styles:[":host{display:block;flex:1;border-radius:.2rem;box-shadow:0 3px 1px -2px rgba(0,0,0,.14),0 2px 2px 0 rgba(0,0,0,.098),0 1px 5px 0 rgba(0,0,0,.084);padding:1.6rem}.padding-none{padding:0!important}.shadow-none{box-shadow:none!important}"]}),Ce("design:paramtypes",[t.ElementRef,t.ChangeDetectorRef])],e)}(),vn=0,bn=function(){function e(e,n){this._changeDetectorRef=e,this.elementRef=n,this._name="gipi-chips-"+vn++,this.id=this._name,this.name=this._name,this.label="Selecionados",this.labelRemoveAll="Limpar",this.disabled=!1,this.showRemovableAll=!1,this.showRemovable=!1,this.property="description",this.onFocus=new t.EventEmitter,this.onClick=new t.EventEmitter,this.removeChange=new t.EventEmitter,this.removeAllChange=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.onChange(e),this.onTouch(),this._changeDetectorRef.markForCheck()},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},e.prototype.removeChip=function(e,t){!this.disabled&&this.showRemovable&&(this.value.splice(t,1),this._changeDetectorRef.detectChanges(),this.removeChange.emit({chip:e,index:t}))},e.prototype.removeAllChips=function(){!this.disabled&&this.showRemovableAll&&(this.value=[],this._changeDetectorRef.detectChanges(),this.removeAllChange.emit())},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef}]},we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"labelRemoveAll",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showRemovableAll",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showRemovable",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"property",void 0),we([t.Input(),Ce("design:type",Array),Ce("design:paramtypes",[Array])],e.prototype,"value",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"removeChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"removeAllChange",void 0),e=n=we([t.Component({selector:"gipi-chips",exportAs:"gipiChips",template:'<mat-chip-list [attr.id]="id"\n [attr.name]="name"\n [attr.aria-label]="ariaLabel"\n class="chip-list">\n {{ label }}\n\n <mat-chip *ngFor="let val of value; let i = index;"\n [disabled]="disabled"\n (removed)="removeChip(val, i)">\n {{ val[property] }}\n\n <mat-icon matChipRemove\n *ngIf="!disabled && showRemovable">\n cancel\n </mat-icon>\n </mat-chip>\n\n <mat-chip *ngIf="!disabled && showRemovableAll && (value && (value.length > 0))"\n class="chip-clear-all"\n (click)="removeAllChips()">\n {{ labelRemoveAll }}\n\n <svg width="14"\n height="14"\n viewBox="0 0 14 14"\n fill="none"\n xmlns="http://www.w3.org/2000/svg">\n <path d="M3.0625 3.0625L3.60938 11.8125C3.63535 12.3181 4.00312 12.6875 4.48438 12.6875H9.51562C9.99879 12.6875 10.3597 12.3181 10.3906 11.8125L10.9375 3.0625"\n stroke="#fff"\n stroke-width="0.875"\n stroke-linecap="round"\n stroke-linejoin="round" />\n <path d="M2.1875 3.0625H11.8125Z"\n fill="#fff" />\n <path d="M2.1875 3.0625H11.8125"\n stroke="#fff"\n stroke-width="0.875"\n stroke-miterlimit="10"\n stroke-linecap="round" />\n <path d="M5.25 3.0625V1.96875C5.24975 1.8825 5.26655 1.79705 5.29944 1.71732C5.33233 1.63758 5.38066 1.56514 5.44165 1.50415C5.50264 1.44316 5.57508 1.39483 5.65482 1.36194C5.73455 1.32905 5.82 1.31225 5.90625 1.3125H8.09375C8.18 1.31225 8.26545 1.32905 8.34518 1.36194C8.42492 1.39483 8.49736 1.44316 8.55835 1.50415C8.61934 1.56514 8.66767 1.63758 8.70056 1.71732C8.73345 1.79705 8.75025 1.8825 8.75 1.96875V3.0625M7 4.8125V10.9375M5.03125 4.8125L5.25 10.9375M8.96875 4.8125L8.75 10.9375"\n stroke="#fff"\n stroke-width="0.875"\n stroke-linecap="round"\n stroke-linejoin="round" />\n </svg>\n </mat-chip>\n</mat-chip-list>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-chips"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:["::ng-deep .chip-list{outline:0!important}::ng-deep .chip-list .mat-chip-list-wrapper{margin:0!important;gap:8px!important;outline:0!important}::ng-deep .chip-list .mat-chip-list-wrapper .mat-standard-chip{outline:0!important;margin:0!important;padding:4px 8px!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:1.4rem!important;font-weight:400!important;line-height:1.8rem!important;min-height:auto!important;height:-webkit-fit-content!important;height:-moz-fit-content!important;height:fit-content!important}.chip-clear-all{display:flex;align-items:center;gap:4px;background:#e0313e;color:#fff;cursor:pointer;transition:.2s}.chip-clear-all:hover{background:#cc2d38}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef,t.ElementRef])],e)}(),_n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return be(t,e),t}(qe),wn=function(){function e(e,t,n){this.dialogRef=e,this.confirmation=t,this.messages=n}var n;return n=e,e.prototype.ngOnInit=function(){},e.ctorParameters=function(){return[{type:a.MatDialogRef},{type:_n,decorators:[{type:t.Inject,args:[a.MAT_DIALOG_DATA]}]},{type:void 0,decorators:[{type:t.Inject,args:[De]}]}]},e=n=we([t.Component({selector:"gipi-confirmation-dialog",exportAs:"gipiConfirmationDialog",template:'<div mat-dialog-title\n class="dialog-title">\n \x3c!-- Confirmation --\x3e\n <ng-container *ngIf="!confirmation.type || (confirmation?.type === \'confirmation\')">\n <svg width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n xmlns="http://www.w3.org/2000/svg">\n <g clip-path="url(#clip0_522_3414)">\n <path fill-rule="evenodd"\n clip-rule="evenodd"\n d="M24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM15.3941 6.19196C16.0206 6.81534 16.4617 7.60056 16.668 8.45999C16.9468 9.60963 16.7901 10.8218 16.2282 11.8627C15.6663 12.9037 14.7389 13.6998 13.6248 14.0976C13.3788 14.1852 13.2048 14.4036 13.2048 14.664V15.6024C13.2048 15.9213 13.0781 16.2271 12.8526 16.4526C12.6271 16.6781 12.3213 16.8048 12.0024 16.8048C11.6835 16.8048 11.3777 16.6781 11.1522 16.4526C10.9267 16.2271 10.8 15.9213 10.8 15.6024V13.1856C10.8041 12.87 10.9323 12.5688 11.1569 12.3471C11.3815 12.1255 11.6843 12.0012 11.9998 12.0012H11.9916C13.3176 12.0012 14.3952 10.9236 14.3952 9.60119C14.3809 8.97286 14.1211 8.37512 13.6715 7.93592C13.222 7.49673 12.6183 7.25098 11.9898 7.25129C11.3613 7.25161 10.7579 7.49796 10.3088 7.9376C9.85969 8.37725 9.60052 8.97525 9.5868 9.60359C9.5844 10.2648 9.0468 10.8012 8.3844 10.8012C8.08823 10.7994 7.80337 10.6872 7.58547 10.4866C7.36757 10.286 7.23227 10.0114 7.206 9.71639L7.2 9.53999C7.2204 6.53519 9.9852 4.21679 13.1196 4.92959C13.9801 5.13153 14.7675 5.56857 15.3941 6.19196ZM13.2 19.2C13.2 19.8627 12.6627 20.4 12 20.4C11.3373 20.4 10.8 19.8627 10.8 19.2C10.8 18.5373 11.3373 18 12 18C12.6627 18 13.2 18.5373 13.2 19.2Z"\n fill="#E0313E" />\n </g>\n </svg>\n </ng-container>\n\n \x3c!-- Warning --\x3e\n <ng-container *ngIf="confirmation?.type === \'warning\'">\n <svg width="24"\n height="24"\n viewBox="0 0 24 24"\n fill="none"\n xmlns="http://www.w3.org/2000/svg">\n <g clip-path="url(#clip0_522_3358)">\n <path fill-rule="evenodd"\n clip-rule="evenodd"\n d="M13.1255 0.223975C13.4823 0.371842 13.8065 0.58857 14.0795 0.861777L23.1376 9.91952C23.411 10.1926 23.6279 10.5169 23.7759 10.8739C23.9238 11.2309 24 11.6136 24 12C24 12.3864 23.9238 12.7691 23.7759 13.1261C23.6279 13.4831 23.411 13.8074 23.1376 14.0805L14.0795 23.1382C13.8065 23.4114 13.4823 23.6282 13.1255 23.776C12.7687 23.9239 12.3862 24 12 24C11.6138 24 11.2313 23.9239 10.8745 23.776C10.5177 23.6282 10.1935 23.4114 9.92051 23.1382L0.862407 14.0805C0.589013 13.8074 0.372125 13.4831 0.224146 13.1261C0.0761672 12.7691 0 12.3864 0 12C0 11.6136 0.0761672 11.2309 0.224146 10.8739C0.372125 10.5169 0.589013 10.1926 0.862407 9.91952L9.92051 0.861777C10.1935 0.58857 10.5177 0.371842 10.8745 0.223975C11.2313 0.0761077 11.6138 0 12 0C12.3862 0 12.7687 0.0761077 13.1255 0.223975ZM10.9616 14.5066C11.237 14.782 11.6105 14.9367 12 14.9367C12.3895 14.9367 12.763 14.782 13.0384 14.5066C13.3138 14.2311 13.4686 13.8575 13.4686 13.468V6.12428C13.4686 5.73475 13.3138 5.36116 13.0384 5.08572C12.763 4.81028 12.3895 4.65554 12 4.65554C11.6105 4.65554 11.237 4.81028 10.9616 5.08572C10.6862 5.36116 10.5314 5.73475 10.5314 6.12428V13.468C10.5314 13.8575 10.6862 14.2311 10.9616 14.5066ZM10.9616 18.9128C11.237 19.1882 11.6105 19.343 12 19.343C12.3895 19.343 12.763 19.1882 13.0384 18.9128C13.3138 18.6374 13.4686 18.2638 13.4686 17.8742C13.4686 17.4847 13.3138 17.1111 13.0384 16.8357C12.763 16.5602 12.3895 16.4055 12 16.4055C11.6105 16.4055 11.237 16.5602 10.9616 16.8357C10.6862 17.1111 10.5314 17.4847 10.5314 17.8742C10.5314 18.2638 10.6862 18.6374 10.9616 18.9128Z"\n fill="#E0313E" />\n </g>\n </svg>\n </ng-container>\n\n <strong> {{ confirmation?.title }} </strong>\n</div>\n<div mat-dialog-content\n class="dialog-content">\n <p *ngIf="confirmation?.message">\n {{ confirmation?.message }}\n </p>\n\n <li *ngFor="let message of confirmation?.listMessage">\n {{ message }}\n </li>\n</div>\n<div mat-dialog-actions\n class="dialog-actions">\n <ng-container *ngIf="confirmation?.type !== \'warning\'">\n <button class="dialog-button-base cancel"\n [mat-dialog-close]="false">\n Cancelar\n </button>\n <button class="dialog-button-base confirm"\n [mat-dialog-close]="true">\n Confirmar\n </button>\n </ng-container>\n\n <button class="dialog-button-base confirm"\n *ngIf="confirmation?.type === \'warning\'"\n [mat-dialog-close]="true">\n Ok\n </button>\n</div>\n\n\x3c!-- <gipi-abstract-form id="dialogConfirmation"\n name="dialogConfirmation"\n [dialog]="true">\n <gipi-toolbar id="toolbarDialogConfirmation"\n mat-dialog-title>\n {{ confirmation.title }}\n </gipi-toolbar>\n\n <div mat-dialog-content>\n <p>{{ confirmation.message }}</p>\n <li *ngFor="let message of confirmation.listMessage"> {{ message }} </li>\n </div>\n\n <div mat-dialog-actions\n *ngIf="!confirmation.isWarningScreen"\n class="screen-confirmation"\n fxLayout="row"\n fxLayoutGap="16px">\n <gipi-button [label]="messages.BUTTON_OK_CONFIRMATION"\n [mat-dialog-close]="true"\n gipi-primary\n fxFlex="30">\n </gipi-button>\n\n <gipi-button [label]="messages.BUTTON_CANCEL_CONFIRMATION"\n [mat-dialog-close]="false"\n gipi-secondary\n fxFlex="30">\n </gipi-button>\n </div>\n\n <div mat-dialog-actions\n *ngIf="confirmation.isWarningScreen"\n class="screen-warning"\n fxLayout="row"\n fxLayoutGap="16px">\n <gipi-button label="OK"\n [mat-dialog-close]="true"\n gipi-primary\n fxFlex="30">\n </gipi-button>\n </div>\n</gipi-abstract-form> --\x3e',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-confirmation-dialog"},styles:[":host{display:flex;flex-direction:column;gap:1.6rem;padding:2rem;height:100%}.dialog-title{display:flex;align-items:center;gap:1rem}.dialog-title>strong{color:#262626}.dialog-content{display:flex;flex-direction:column;min-height:6rem!important;height:16rem!important;max-height:16rem!important;overflow-y:auto!important;overflow-x:hidden!important}.dialog-content>p{color:#595959}.dialog-content>li{margin:1rem 0;font-size:1.4rem;color:#595959}.dialog-content>li::marker{font-size:1.6rem;color:#e0313e}.dialog-actions{display:flex;justify-content:flex-end;flex-wrap:nowrap!important;gap:1.6rem;width:100%}.dialog-actions .cancel{color:#595959}.dialog-actions .cancel:hover{border-color:#595959;background-color:#e0e1e2}.dialog-actions .confirm{background-color:#e0313e;color:#fff}.dialog-actions .confirm:hover{background-color:#cc2d38}.dialog-button-base{height:3.2rem;padding-inline:1.2rem;border-radius:4px;outline:0;border:1px solid transparent;background-color:transparent;text-align:center;font-weight:500;font-size:1.4rem;cursor:pointer;transition:.2s}.dialog-button-base:active{transform:scale(.98)}"]}),xe(1,t.Inject(a.MAT_DIALOG_DATA)),xe(2,t.Inject(De)),Ce("design:paramtypes",[a.MatDialogRef,_n,Object])],e)}(),xn=0,Cn=function(){function e(e,n){this._changeDetectorRef=e,this.elementRef=n,this._name="gipi-dropdown-menu-"+xn++,this.id=this._name,this.name=this._name,this.label="",this.ariaLabel="",this.placeholder="",this.disabled=!1,this.required=!1,this.showTrigger=!0,this._trigger=0,this.onKeydown=new t.EventEmitter,this.onFocus=new t.EventEmitter,this.onBlur=new t.EventEmitter,this.onClick=new t.EventEmitter,this.onOpenPopover=new t.EventEmitter,this.onClosePopover=new t.EventEmitter}var n;return n=e,Object.defineProperty(e.prototype,"trigger",{get:function(){return this._trigger},set:function(e){this._trigger=e},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.ngOnDestroy=function(){this.popoverTrigger&&this.popoverTrigger.destroyPopover()},e.prototype.onInputKeydown=function(e){this.disabled||this.onKeydown.emit(e)},e.prototype.onInputFocus=function(e){this.disabled||this.onFocus.emit(e)},e.prototype.onInputBlur=function(e){this.disabled||this.onBlur.emit(e)},e.prototype.onInputClick=function(e){this.disabled||(this.onClick.emit(e),e.stopPropagation())},e.prototype.togglePopover=function(){this.disabled||this.popoverTrigger.togglePopover()},e.prototype.showPopover=function(){this.disabled||this.popoverTrigger.openPopover()},e.prototype.closePopover=function(){this.disabled||this.popoverTrigger.closePopover()},e.prototype.onResize=function(e){this.popoverTrigger&&this.popoverTrigger.closePopover()},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef}]},we([t.ViewChild(gn,{static:!1}),Ce("design:type",gn)],e.prototype,"popoverTrigger",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showTrigger",void 0),we([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"trigger",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onKeydown",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onOpenPopover",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClosePopover",void 0),we([t.HostListener("window:resize",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[UIEvent]),Ce("design:returntype",void 0)],e.prototype,"onResize",null),e=n=we([t.Component({selector:"gipi-dropdown-menu",exportAs:"gipiDropdownMenu",template:'<label class="dropdown-menu-container"\n [attr.for]="id">\n <span class="dropdown-menu-label"\n *ngIf="label">\n {{ label }}\n <span *ngIf="required && label"> * </span>\n </span>\n\n <div class="dropdown-menu-content"\n (click)="onInputClick($event)"\n #popoverTrigger="popoverTrigger"\n [popoverTriggerFor]="dropdownMenuPopover"\n [popoverTriggerOn]="\'click\'"\n [popoverBackdropCloseOnClick]="true"\n (opened)="onOpenPopover.emit()"\n (closed)="onClosePopover.emit()">\n\n <input class="dropdown-menu-input"\n autocomplete="off"\n type="text"\n readonly="true"\n [attr.id]="id"\n [attr.aria-label]="ariaLabel"\n [name]="name"\n [required]="required"\n [placeholder]="placeholder"\n [disabled]="disabled"\n (keydown)="onInputKeydown($event)"\n (focus)="onInputFocus($event)"\n (blur)="onInputBlur($event)"\n (click)="togglePopover(); onInputClick($event)">\n\n <div class="dropdown-menu-suffix">\n <div class="dropdown-menu-trigger"\n *ngIf="showTrigger && (trigger && trigger > 1)">\n + {{ trigger >= 99 ? 99 : trigger }}\n </div>\n\n <mat-icon class="dropdown-menu-icon">\n keyboard_arrow_down\n </mat-icon>\n </div>\n </div>\n</label>\n\n<gipi-popover #dropdownMenuPopover="gipiPopover"\n [popoverOverlapTrigger]="false"\n [popoverCloseOnClick]="false"\n [popoverArrowWidth]="0"\n [popoverOffsetY]="3">\n <div class="btn-popover-content">\n <ng-content> </ng-content>\n </div>\n</gipi-popover>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-dropdown-menu"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".dropdown-menu-container{display:flex;flex-direction:column;gap:1rem;width:100%}.dropdown-menu-container .dropdown-menu-label{color:#131313;font-size:1.4rem;line-height:100%}.dropdown-menu-container .dropdown-menu-label>span{color:#d14014;font-size:inherit;line-height:inherit}.dropdown-menu-container .dropdown-menu-content{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:12px;gap:1rem;width:100%;max-height:4rem;border-radius:5px;cursor:pointer;background-color:#fff;border:1px solid #0000001f;color:#696969;transition:.2s}.dropdown-menu-container .dropdown-menu-content:focus-within,.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:active),.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:focus){box-shadow:0 0 0 .2rem #f0f0f0}.dropdown-menu-container .dropdown-menu-content:focus-within,.dropdown-menu-container .dropdown-menu-content:hover{border-color:#bfbfbf!important;background-color:#f5f5f5}.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:disabled){background-color:#e0e1e2!important;border-color:#e0e1e2!important;color:#d1d2d4!important;box-shadow:none!important;cursor:not-allowed!important;pointer-events:none!important}.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:disabled) .dropdown-menu-input,.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:disabled) .dropdown-menu-suffix .dropdown-menu-button{cursor:not-allowed!important;pointer-events:none!important}.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:disabled) .dropdown-menu-suffix .dropdown-menu-trigger{border-color:#e0e1e2!important;pointer-events:none!important}.dropdown-menu-container .dropdown-menu-content:has(.dropdown-menu-input:disabled) mat-icon{color:#d1d2d4!important;fill:#d1d2d4!important;cursor:not-allowed!important;pointer-events:none!important}.dropdown-menu-container .dropdown-menu-content .dropdown-menu-input{cursor:pointer;height:16px;outline:0;border:none;background-color:transparent;color:inherit;flex:1;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dropdown-menu-container .dropdown-menu-content .dropdown-menu-suffix{display:flex;flex-direction:row;align-items:center;gap:16px}.dropdown-menu-container .dropdown-menu-content .dropdown-menu-suffix .dropdown-menu-trigger{display:flex;flex-direction:column;align-items:center;justify-content:center;padding-inline:8px;border-radius:40px;border:1px solid transparent;color:#131313;background-color:#f0f0f0;font-size:1.2rem;line-height:1.4rem}.dropdown-menu-container .dropdown-menu-content .dropdown-menu-suffix .dropdown-menu-button{display:flex;align-items:center;justify-content:center;outline:0;border:none;cursor:pointer;background-color:transparent}.dropdown-menu-container .dropdown-menu-content .dropdown-menu-suffix .dropdown-menu-button:hover:not(:disabled)>mat-icon{transform:scale(1.08)}.dropdown-menu-icon{width:1.6rem;height:1.6rem;font-size:1.6rem;color:#131313;fill:#131313}.btn-popover-content{background-color:#fff;border-radius:4px;box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);padding:8px}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef,t.ElementRef])],e)}(),In=function(){function e(){}var n;return n=e,e.prototype.ngOnInit=function(){},e=n=we([t.Component({selector:"gipi-empty-state",exportAs:"gipiEmptyState",template:"<mat-icon>sentiment_very_dissatisfied</mat-icon>\nNenhum registro foi encontrado",providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-empty-state"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:1.4rem;font-weight:600;color:#131313;padding:2.4rem 0}:host>mat-icon{font-size:3.2rem;height:3.2rem;width:3.2rem;margin-bottom:5px}"]}),Ce("design:paramtypes",[])],e)}(),Sn=function(){function e(e,n){this.elementRef=e,this._changeDetectorRef=n,this.isExpanded=!1,this.startExpanded=!1,this.disabled=!1,this.expanded=new t.EventEmitter}var n;return n=e,e.prototype.ngOnInit=function(){this.startExpanded&&(this.isExpanded=this.startExpanded)},e.prototype.emitExpanded=function(e){this.expanded.emit(e)},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",String)],e.prototype,"icon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIcon",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"iconSize",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"panelTitle",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"isExpanded",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"startExpanded",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"expanded",void 0),e=n=we([t.Component({selector:"gipi-expansion-panel",exportAs:"gipiExpansionPanel",template:'<mat-accordion #accordion\n fxFlex>\n <mat-expansion-panel #expansionPanel\n togglePosition="before"\n [expanded]="isExpanded"\n (afterExpand)="emitExpanded(true)"\n (afterCollapse)="emitExpanded(false)"\n [disabled]="disabled">\n <mat-expansion-panel-header #expansionPanelHeader>\n <mat-panel-title>\n <span *ngIf="panelTitle">\n {{ panelTitle }}\n </span>\n <div *ngIf="icon || svgIcon">\n <itss-icon *ngIf="icon"\n [icon]="icon"\n [iconSize]="iconSize">\n </itss-icon>\n <itss-icon *ngIf="svgIcon"\n [svgIcon]="svgIcon"\n [iconSize]="iconSize">\n </itss-icon>\n </div>\n </mat-panel-title>\n </mat-expansion-panel-header>\n\n <ng-content> </ng-content>\n </mat-expansion-panel>\n</mat-accordion>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-expansion-panel"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:["::ng-deep .mat-expansion-panel:not([class*=mat-elevation-z]){border-radius:3px!important;box-shadow:none!important}::ng-deep .mat-expansion-panel-header{color:#696969!important;padding:0 24px!important;border:1px solid #e0e1e2!important;background:#f5f5f6!important;border-radius:3px!important;transition:box-shadow .2s!important;height:48px!important}::ng-deep .mat-expansion-panel-header-title{color:#696969!important;font-weight:700!important;margin:0!important}::ng-deep .mat-expansion-panel-header-title>span{width:100%!important;-ms-grid-row-align:center!important;align-self:center!important;line-height:15px!important}::ng-deep .mat-expansion-panel-indicator{margin:-8px 16px 0 0!important;align-self:center!important;display:flex!important;align-items:center!important;justify-content:center!important}::ng-deep .mat-expansion-indicator::before{margin-top:-5px!important}::ng-deep .mat-expansion-indicator::after{margin-top:-5px!important}::ng-deep .mat-expansion-panel-body{border:1px solid #e0e1e2!important;border-top:none!important;padding:1.6rem!important}"]}),Ce("design:paramtypes",[t.ElementRef,t.ChangeDetectorRef])],e)}(),kn=function(e){function n(t){var n=e.call(this)||this;return n.dialog=t,n}return be(n,e),n.prototype.confirm=function(e){return Ie(this,void 0,void 0,(function(){var t,n;return Se(this,(function(i){switch(i.label){case 0:return t=!1,(n=new a.MatDialogConfig).disableClose=!0,n.autoFocus=!0,n.data=e,n.minWidth="20%",e.width?n.width=e.width:n.maxWidth="40%",[4,this.dialog.open(wn,n).afterClosed().pipe(oe.tap((function(n){n?null!==e.accept&&void 0!==e.accept&&e.accept():null!==e.cancel&&void 0!==e.cancel&&e.cancel(),t=n}))).toPromise()];case 1:return i.sent(),[2,t]}}))}))},n.ctorParameters=function(){return[{type:a.MatDialog}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(P.MatDialog))},token:n,providedIn:"root"}),n=we([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[a.MatDialog])],n)}(Ke),On=function(){function e(e,n){this._messageService=e,this._confirmationService=n,this.files=[],this.iconSize=0,this.iconSizeFile=0,this.multiple=!1,this.verifyHasAdded=!1,this.legendFieldset="",this.listFileVisible=!1,this.removingFiles=!1,this.fileChange=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,e.prototype.ngOnInit=function(){},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.files=e},e.prototype.onFileChange=function(e){this._validateCountFiles(e)&&this._validateExtensionFile(e)&&this._validateHasAdded(e)&&(this.files=Object.keys(e).map((function(t){return e[t]})),this.fileChange.emit(this.files)),this._elementRef.nativeElement.value=""},e.prototype.onDeleteFile=function(e){var t=this.files;this.files=[],t=this.files.filter((function(t){return t.name!==e.name})),this.files=t,this.fileChange.emit(this.files),this._elementRef.nativeElement.value=""},e.prototype.onClearInputFile=function(e){return this._elementRef.nativeElement.value="",this.files=[],e&&this.fileChange.emit(this.files),this.files.length<=0&&Be.isEmpty(this._elementRef.nativeElement.value)},e.prototype.openConfirmDialogRemoveFile=function(e,t){var n=this;try{this._confirmationService.confirm({title:"Confirmação",message:"Deseja realmente remover o arquivo "+e.name+" da lista?",accept:function(){var e=n.files;e.splice(t,1),n.files=[],n.files=e},cancel:function(){}})}catch(e){this.addErrorMessage(e)}},e.prototype._validateCountFiles=function(e){return!(!this.multiple&&e.length>1)||(this.addErrorMessage("Não é possível selecionar mais de um arquivo por vez"),!1)},e.prototype._validateHasAdded=function(e){if(!this.verifyHasAdded||Ot.isEmpty(this.files))return!0;for(var t=!0,n=function(n){if(i.files.filter((function(t){return t.name.toUpperCase()===e[n].name.toUpperCase()})).length>0)return i.addErrorMessage("O arquivo "+e[n].name+" já foi adicionado"),t=!1,"break"},i=this,o=0;o<e.length;o++){if("break"===n(o))break}return t},e.prototype._validateExtensionFile=function(e){if(!this.onlyExtensions||0===this.onlyExtensions.length)return!0;for(var t=this.onlyExtensions.filter((function(e){return e.includes("*")})).map((function(e){return e.slice(0,e.indexOf("*"))})),n=function(n){var o=e[n].name,r=o.substring(o.lastIndexOf(".")).toLowerCase(),a=i.onlyExtensions.includes(r);if(!a&&t.length>0&&(a=t.some((function(e){return r.startsWith(e)}))),!a)return i.addErrorMessage("Informe somente arquivos com extensão "+i.onlyExtensions.join(", ")),{value:!1}},i=this,o=0;o<e.length;o++){var r=n(o);if("object"==typeof r)return r.value}return!0},e.prototype.addSuccessMessage=function(e){this._messageService.add({icon:"check_circle",title:"Sucesso",message:e,type:"success"})},e.prototype.addErrorMessage=function(e){this._messageService.add({icon:"cancel",title:"Ocorreu um erro",message:e,type:"error"})},e.ctorParameters=function(){return[{type:Xe},{type:kn}]},we([t.ViewChild("inputFile",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"_elementRef",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"files",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"color",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"icon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"iconFile",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"iconDeleteFile",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIconFile",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIconDeleteFile",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"iconSize",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"iconSizeFile",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"multiple",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"onlyExtensions",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"verifyHasAdded",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"legendFieldset",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"listFileVisible",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"removingFiles",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"fileChange",void 0),e=n=we([t.Component({selector:"gipi-file-drag-and-drop",exportAs:"gipiFileDragAndDrop",template:'<div>\n <div class="dropzone"\n fileDragAndDrop\n [disabled]="disabled"\n (filesChangeEmiter)="onFileChange($event)"\n [class.dropzone-disabled]="disabled">\n <div class="text-wrapper">\n <div class="centered">\n <mat-icon *ngIf="icon"\n [style.color]="color"\n [style.width.px]="iconSize"\n [style.height.px]="iconSize"\n matSuffix>\n {{ icon }}\n </mat-icon>\n <mat-icon *ngIf="svgIcon"\n [svgIcon]="svgIcon"\n [style.color]="color"\n [style.width.px]="iconSize"\n [style.height.px]="iconSize"\n matSuffix>\n </mat-icon>\n\n <h3> Arraste e solte o arquivo aqui </h3>\n <h3> ou </h3>\n\n <div class="select-file"\n [class.select-file-disabled]="disabled">\n <input #inputFile\n type="file"\n [accept]="onlyExtensions.join(\',\')"\n [multiple]="multiple"\n [disabled]="disabled"\n (change)="onFileChange($event.target.files)">\n <label>Procure o arquivo</label>\n </div>\n </div>\n </div>\n </div>\n\n <fieldset class="list-files"\n *ngIf="listFileVisible">\n <legend>\n {{ legendFieldset.length <= 0\n ? \'Arquivos selecionados\'\n :\n legendFieldset\n }}\n </legend>\n\n <div class="file-item"\n [class.file-item-disabled]="disabled"\n *ngFor="let file of files; let ind = index"\n (click)="removingFiles ? openConfirmDialogRemoveFile(file, ind) : null">\n\n <div class="file-item-icon"\n *ngIf="removingFiles">\n <itss-icon class="not-hover"\n [icon]="iconFile"\n [svgIcon]="svgIconFile"\n [iconSize]="iconSizeFile"></itss-icon>\n <itss-icon class="hovering"\n [icon]="iconDeleteFile"\n [svgIcon]="svgIconDeleteFile"\n [iconSize]="iconSizeFile"></itss-icon>\n </div>\n\n <div class="file-item-icon"\n *ngIf="!removingFiles">\n <itss-icon [icon]="iconFile"\n [svgIcon]="svgIconFile"\n [iconSize]="iconSizeFile"></itss-icon>\n </div>\n\n <div class="file-item-text">\n <span *ngIf="files.length > 0">\n {{ (file.name.length > 20) ? (file.name | slice:0:20) + \'...\' : file.name }}\n </span>\n <span *ngIf="(files.length <= 0) "></span>\n </div>\n </div>\n </fieldset>\n</div>\n',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-file-drag-and-drop"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host ::ng-deep .dropzone{width:100%;height:100%;min-height:25rem;display:flex;align-items:center;justify-content:center;position:relative}:host ::ng-deep .dropzone .text-wrapper{display:flex;align-items:center;justify-content:center;height:100%}:host ::ng-deep .dropzone .centered{display:flex;align-items:center;gap:8px;justify-content:center;flex-direction:column}:host ::ng-deep .dropzone .centered>mat-icon{color:#595959;fill:#595959}:host ::ng-deep .dropzone .centered>mat-icon svg path{color:#595959!important;fill:#595959!important}:host ::ng-deep .dropzone .centered>h3{font-size:1.8rem;font-weight:700;color:#595959}:host ::ng-deep .dropzone .centered .select-file{padding:12px 30px;text-align:center;background-color:#e0313e;color:#fff;border-radius:30px;font-size:1.4rem;transition:.3s;position:relative;cursor:pointer}:host ::ng-deep .dropzone .centered .select-file>input[type=file]{width:100%;opacity:0;position:absolute;z-index:2;height:100%;top:0;left:0;cursor:pointer}:host ::ng-deep .dropzone .centered .select-file>input[type=file]:disabled{cursor:not-allowed}:host ::ng-deep .dropzone .centered .select-file>label{cursor:pointer}:host ::ng-deep .dropzone .centered .select-file:hover{background-color:#cc2d38}:host ::ng-deep .dropzone .centered .select-file-disabled{background-color:#d1d2d4!important;color:#f5f5f6!important;cursor:not-allowed!important}.dropzone-disabled{cursor:not-allowed;opacity:.4}:host ::ng-deep .list-files{margin-top:20px;border:1px solid #b6b6b6;color:#696969;font-size:14px;font-weight:700;padding:20px;display:-ms-grid;display:grid;grid-template-columns:repeat(auto-fill,minmax(60px,150px));justify-content:space-evenly;gap:15px;min-height:140px;border-radius:5px}:host ::ng-deep .list-files .file-item{height:100px;border-radius:20px;border:2px dashed #b6b6b6;background:0 0;padding:10px;font-size:11px;text-transform:uppercase;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer}:host ::ng-deep .list-files .file-item:hover{border:1px solid #f3465c;background-color:#f3465c26;color:#f3465c;font-weight:700}:host ::ng-deep .list-files .file-item:hover .not-hover{display:none}:host ::ng-deep .list-files .file-item:hover .hovering{display:block}:host ::ng-deep .list-files .file-item .not-hover{display:block}:host ::ng-deep .list-files .file-item .hovering{display:none}:host ::ng-deep .list-files .file-item-icon{width:100%;height:150px;display:flex;align-items:center;justify-content:center}:host ::ng-deep .list-files .file-item-text{text-align:center}.file-item-disabled{opacity:.4;border:1px solid;cursor:not-allowed}"]}),Ce("design:paramtypes",[Xe,kn])],e)}(),En=function(){function e(){}var n;return n=e,e.prototype.ngOnInit=function(){},e=n=we([t.Component({selector:"gipi-footer",exportAs:"gipiFooter",template:"<footer>\n <ng-content></ng-content>\n</footer>\n",providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-footer"},styles:[":host footer{all:unset;display:block;width:100%;height:8px;background-color:#e0313e;position:fixed;bottom:0;z-index:1}"]}),Ce("design:paramtypes",[])],e)}(),Dn=0,Pn=function(){function e(e,n){this._changeDetectorRef=e,this.elementRef=n,this._name="gipi-form-field-"+Dn++,this.id=this._name,this.name=this._name,this.label="",this.tooltip="",this.ariaLabel="",this.placeholder="",this.readonly=!1,this.disabled=!1,this.required=!1,this.showClear=!1,this.showSearch=!1,this.showTrigger=!1,this.type="text",this._trigger=0,this.onKeydown=new t.EventEmitter,this.onKeydownEnter=new t.EventEmitter,this.onFocus=new t.EventEmitter,this.onBlur=new t.EventEmitter,this.onClick=new t.EventEmitter,this.onClear=new t.EventEmitter,this.onSearch=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"model",{get:function(){return this._model},set:function(e){this._model=e,this.onChange(e),this.onTouch(),this._changeDetectorRef.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trigger",{get:function(){return this._trigger},set:function(e){this._trigger=e},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.writeValue=function(e){this.model=e},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},e.prototype.onInputKeydown=function(e){this.disabled||("ENTER"===e.key.toUpperCase()&&this.onKeydownEnter.emit(e),this.onKeydown.emit(e))},e.prototype.onInputFocus=function(e){this.disabled||this.onFocus.emit(e)},e.prototype.onInputBlur=function(e){this.disabled||(this.onBlur.emit(e),this.onTouch())},e.prototype.onInputClick=function(e){this.disabled||(this.onClick.emit(e),this.focus())},e.prototype.onButtonClearClick=function(e){this.disabled||("search"===this.type&&(this.model=""),this.onClear.emit(e))},e.prototype.onButtonSearchClick=function(e){this.disabled||"search"!==this.type||this.onSearch.emit(e)},e.prototype.focus=function(){ze.isNull(this.inputRef)||this.inputRef.nativeElement.focus()},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef}]},we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"readonly",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showClear",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showSearch",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showTrigger",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"type",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"min",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"max",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"maxLength",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"mask",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"pattern",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"optionsCurrency",void 0),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"model",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"value",null),we([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"trigger",null),we([t.ViewChild("inputRef",{static:!0,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"inputRef",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onKeydown",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onKeydownEnter",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClear",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onSearch",void 0),e=n=we([t.Component({selector:"gipi-form-field",exportAs:"gipiFormField",template:'<label class="form-field-container"\n [attr.for]="id">\n <span class="form-field-label"\n *ngIf="label">\n {{ label }}\n <span *ngIf="required && label"> * </span>\n <gipi-helpful-tip *ngIf="tooltip && label"\n [tooltip]="tooltip">\n </gipi-helpful-tip>\n </span>\n\n <div class="form-field-content"\n [class.form-field-select]="type === \'select\'"\n (click)="onInputClick($event)">\n \x3c!-- Input others --\x3e\n <input class="form-field-input"\n *ngIf="type && type !== \'currency\'"\n #inputRef\n autocomplete="off"\n [attr.id]="id"\n [attr.aria-label]="ariaLabel"\n [name]="name"\n [type]="type"\n [min]="min"\n [max]="max ? max : 250"\n [maxlength]="maxLength ? maxLength : 250"\n [mask]="mask"\n [required]="required"\n [placeholder]="placeholder"\n [readonly]="readonly"\n [disabled]="disabled"\n [pattern]="pattern"\n [(ngModel)]="model"\n [value]="value"\n (keydown)="onInputKeydown($event)"\n (focus)="onInputFocus($event)"\n (blur)="onInputBlur($event)"\n (click)="onInputClick($event)">\n\n \x3c!-- Input currency --\x3e\n <input class="form-field-input"\n *ngIf="type && type === \'currency\'"\n #inputRef\n currencyMask\n autocomplete="off"\n [attr.id]="id"\n [attr.aria-label]="ariaLabel"\n [name]="name + \'currency\'"\n [type]="type"\n [min]="min"\n [max]="max"\n [maxlength]="maxLength"\n [mask]="mask"\n [required]="required"\n [placeholder]="placeholder"\n [readonly]="readonly"\n [disabled]="disabled"\n [pattern]="pattern"\n [(ngModel)]="model"\n [value]="value"\n [options]="optionsCurrency"\n (keydown)="onInputKeydown($event)"\n (focus)="onInputFocus($event)"\n (blur)="onInputBlur($event)"\n (click)="onInputClick($event)">\n\n <div class="form-field-suffix"\n *ngIf="type === \'select\'">\n <div class="form-field-trigger"\n *ngIf="showTrigger && (trigger && trigger > 1)">\n + {{ trigger >= 99 ? 99 : trigger }}\n </div>\n\n <button ariaLabel="Limpar opções"\n class="form-field-button"\n *ngIf="showClear"\n (click)="onButtonClearClick($event)">\n <mat-icon class="form-field-icon"> clear </mat-icon>\n </button>\n\n <div class="form-field-icon-arrow"> </div>\n </div>\n\n <div class="form-field-suffix"\n *ngIf="type === \'search\'">\n <button ariaLabel="Limpar"\n class="form-field-button"\n *ngIf="showClear"\n (click)="onButtonClearClick($event)">\n <mat-icon class="form-field-icon"> clear </mat-icon>\n </button>\n\n <button ariaLabel="Pesquisar"\n class="form-field-button"\n *ngIf="showSearch"\n (click)="onButtonSearchClick($event)">\n <mat-icon class="form-field-icon">\n search\n </mat-icon>\n </button>\n\n <mat-icon class="form-field-icon"\n *ngIf="!showSearch">\n search\n </mat-icon>\n </div>\n </div>\n</label>\n',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-form-field"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:block;min-width:0;max-width:100%;flex:1}.form-field-container{display:flex;flex-direction:column;gap:1rem;width:100%}.form-field-container .form-field-label{color:#131313;font-size:1.4rem;line-height:100%}.form-field-container .form-field-label>span{color:#d14014;font-size:inherit;line-height:inherit}.form-field-container .form-field-content{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:1.2rem;gap:1rem;width:100%;max-height:4rem;border-radius:5px;cursor:text;background-color:#fff;border:1px solid #0000001f;color:#696969;caret-color:#9a9da2;transition:.2s}.form-field-container .form-field-content:focus-within,.form-field-container .form-field-content:has(.form-field-input:active),.form-field-container .form-field-content:has(.form-field-input:focus){box-shadow:0 0 0 .2rem #f0f0f0}.form-field-container .form-field-content:focus-within,.form-field-container .form-field-content:hover{border-color:#bfbfbf!important}.form-field-container .form-field-content:has(.form-field-input:invalid){border-color:#d14014!important;color:#d14014!important;caret-color:#d14014!important}.form-field-container .form-field-content:has(.form-field-input:invalid):focus-within{box-shadow:0 0 0 .2rem #f1c4b6!important}.form-field-container .form-field-content:has(.form-field-input:disabled){border-color:#e0e1e2!important;color:#d1d2d4!important;box-shadow:none!important;cursor:not-allowed!important;caret-color:#d1d2d4!important;background-color:#f5f5f6!important}.form-field-container .form-field-content:has(.form-field-input:disabled) .form-field-input,.form-field-container .form-field-content:has(.form-field-input:disabled) .form-field-suffix .form-field-button{cursor:not-allowed!important;pointer-events:none!important}.form-field-container .form-field-content:has(.form-field-input:disabled) .form-field-suffix .form-field-trigger{border-color:#e0e1e2!important;pointer-events:none!important}.form-field-container .form-field-content:has(.form-field-input:disabled) mat-icon{color:#d1d2d4!important;fill:#d1d2d4!important;cursor:not-allowed!important;pointer-events:none!important}.form-field-container .form-field-content.form-field-select,.form-field-container .form-field-content.form-field-select .form-field-input{box-shadow:none!important;cursor:pointer!important}.form-field-container .form-field-content .form-field-input{height:16px;outline:0;border:none;background-color:transparent;color:inherit;flex:1;max-width:85%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.form-field-container .form-field-content .form-field-suffix{display:flex;flex-direction:row;align-items:center;gap:1.6rem}.form-field-container .form-field-content .form-field-suffix .form-field-trigger{display:flex;flex-direction:column;align-items:center;justify-content:center;padding-inline:8px;border-radius:40px;border:1px solid transparent;color:#131313;background-color:#f0f0f0;font-size:1.2rem;line-height:1.4rem}.form-field-container .form-field-content .form-field-suffix .form-field-button{display:flex;align-items:center;justify-content:center;outline:0;border:none;cursor:pointer;background-color:transparent}.form-field-container .form-field-content .form-field-suffix .form-field-button:hover:not(:disabled)>mat-icon{transform:scale(1.08)}.form-field-icon{width:1.6rem;height:1.6rem;font-size:1.6rem;color:#131313;fill:#131313}.form-field-icon-arrow{border:solid #131313;border-width:0 2px 2px 0;display:inline-block;padding:3px;transform:rotate(45deg);margin:-5px 4px 0}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef,t.ElementRef])],e)}(),An=0,Rn=function(){function e(e,t){this._changeDetectorRef=e,this.elementRef=t,this._name="gipi-form-field-"+An++,this.id=this._name,this.name=this._name,this._tooltip=""}var n;return n=e,Object.defineProperty(e.prototype,"tooltip",{get:function(){return this._tooltip},set:function(e){this._tooltip=e},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef}]},we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"tooltip",null),e=n=we([t.Component({selector:"gipi-helpful-tip",exportAs:"gipiHelpfulTip",template:'<itss-icon *ngIf="tooltip"\n icon="help"\n color="#8C8F93"\n class="helpful-tip-icon"\n [tooltip]="tooltip"\n [iconSize]="12">\n</itss-icon>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-helpful-tip"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:["::ng-deep .helpful-tip-icon mat-icon{height:100%;width:1.4rem;font-size:1.4rem;line-height:1rem;text-align:center;cursor:pointer}::ng-deep .helpful-tip-icon mat-icon:hover{color:#6d6f73!important}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef,t.ElementRef])],e)}(),Mn=0,Tn=function(){function e(e){this._changeDetectorRef=e,this._name="gipi-input-checkbox-"+Mn++,this.id=this._name,this.name=this._name,this.disabled=!1,this.disableRipple=!1,this.labelPosition="after",this.change=new t.EventEmitter,this.indeterminateChange=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.onChange(e),this.onTouch()},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.value=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disableRipple",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"labelPosition",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"indeterminate",void 0),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"value",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"change",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"indeterminateChange",void 0),e=n=we([t.Component({selector:"gipi-input-checkbox",exportAs:"gipiInputCheckbox",template:'<mat-checkbox [attr.id]="id"\n [name]="name"\n [(ngModel)]="value"\n [required]="required"\n [disabled]="disabled"\n [disableRipple]="disableRipple"\n [labelPosition]="labelPosition"\n [(indeterminate)]="indeterminate"\n (change)="change.emit($event)"\n (indeterminateChange)="indeterminateChange.emit($event)">\n {{ label }}\n</mat-checkbox>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-input-checkbox"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:block;min-width:0;max-width:100%;flex:1}::ng-deep .mat-checkbox-disabled{cursor:not-allowed!important}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef])],e)}(),Fn=0,Vn=function(){function e(e,n){this._changeDetectorRef=e,this.elementRef=n,this._name="gipi-input-currency-"+Fn++,this.id=this._name,this.name=this._name,this.placeholder="",this.readonly=!1,this.disabled=!1,this.required=!1,this.onKeydown=new t.EventEmitter,this.onKeydownEnter=new t.EventEmitter,this.onFocus=new t.EventEmitter,this.onBlur=new t.EventEmitter,this.onClick=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"model",{get:function(){return this._model},set:function(e){this._model=e,this.onChange(e),this.onTouch(),this._changeDetectorRef.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.writeValue=function(e){this.model=e},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},e.prototype.onInputKeydown=function(e){this.disabled||("ENTER"===e.key.toUpperCase()&&this.onKeydownEnter.emit(e),this.onKeydown.emit(e))},e.prototype.onInputFocus=function(e){this.disabled||this.onFocus.emit(e)},e.prototype.onInputBlur=function(e){this.disabled||(this.onBlur.emit(e),this.onTouch())},e.prototype.onInputClick=function(e){this.disabled||(this.onClick.emit(e),this.focus())},e.prototype.focus=function(){ze.isNull(this.inputCurrencyRef)||this.inputCurrencyRef.nativeElement.focus()},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef}]},we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"readonly",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"min",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"max",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"maxLength",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"options",void 0),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"model",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"value",null),we([t.ViewChild("inputCurrencyRef",{static:!0,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"inputCurrencyRef",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onKeydown",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onKeydownEnter",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),e=n=we([t.Component({selector:"gipi-input-currency",exportAs:"gipiInputCurrency",template:'<label class="input-currency-container"\n [attr.for]="id">\n <span class="input-currency-label"\n *ngIf="label">\n {{ label }}\n <span *ngIf="required && label"> * </span>\n </span>\n\n <div class="input-currency-content"\n (click)="onInputClick($event)">\n <input class="input-currency-input"\n #inputCurrencyRef\n currencyMask\n autocomplete="off"\n type="currency"\n [attr.id]="id"\n [attr.aria-label]="ariaLabel"\n [name]="name"\n [min]="min"\n [max]="max"\n [maxlength]="maxLength"\n [required]="required"\n [placeholder]="placeholder"\n [readonly]="readonly"\n [disabled]="disabled"\n [(ngModel)]="model"\n [value]="value"\n [options]="options"\n (keydown)="onInputKeydown($event)"\n (focus)="onInputFocus($event)"\n (blur)="onInputBlur($event)"\n (click)="onInputClick($event)">\n </div>\n</label>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-input-currency"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:block;min-width:0;max-width:100%;flex:1}.input-currency-container{display:flex;flex-direction:column;gap:1rem;width:100%}.input-currency-container .input-currency-label{color:#131313;font-size:1.4rem;line-height:100%}.input-currency-container .input-currency-label>span{color:#d14014;font-size:inherit;line-height:inherit}.input-currency-container .input-currency-content{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:12px;width:100%;max-height:4rem;border-radius:5px;cursor:text;background-color:#fff;border:1px solid #0000001f;color:#696969;caret-color:#9a9da2;transition:.2s}.input-currency-container .input-currency-content:focus-within,.input-currency-container .input-currency-content:has(.input-currency-input:active),.input-currency-container .input-currency-content:has(.input-currency-input:focus){box-shadow:0 0 0 .2rem #f0f0f0}.input-currency-container .input-currency-content:focus-within,.input-currency-container .input-currency-content:hover{border-color:#bfbfbf!important}.input-currency-container .input-currency-content:has(.input-currency-input:invalid){border-color:#d14014!important;color:#d14014!important;caret-color:#d14014!important}.input-currency-container .input-currency-content:has(.input-currency-input:invalid):focus-within{box-shadow:0 0 0 .2rem #f1c4b6!important}.input-currency-container .input-currency-content:has(.input-currency-input:disabled){color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;cursor:not-allowed!important;box-shadow:none!important;pointer-events:none!important}.input-currency-container .input-currency-content .input-currency-input{height:16px;outline:0;border:none;background-color:transparent;color:inherit;flex:1}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef,t.ElementRef])],e)}(),Nn=0,jn=function(){function e(e,n){this._changeDetectorRef=e,this._config=n,this._name="gipi-input-monthpicker-"+Nn++,this._yearArrays=[],this._now=new Date,this._currentMonth=this._now.getMonth(),this._currentYear=this._now.getFullYear(),this._overlayVisible=!1,this.monthArrays=Array.from(Array(12).keys()),this.monthNames=["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],this.internalCalendarView="month",this.id=this._name,this.name=this._name,this.ariaLabel="",this.label="",this.placeholder="",this.disabled=!1,this.loading=!1,this.required=!1,this.showOnFocus=!0,this._calendarView="month",this.onClose=new t.EventEmitter,this.onMonthChange=new t.EventEmitter,this.onYearChange=new t.EventEmitter,this.onKeydown=new t.EventEmitter,this.onKeydownEnter=new t.EventEmitter,this.onFocus=new t.EventEmitter,this.onBlur=new t.EventEmitter,this.onClick=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"initialYear",{get:function(){return this._initialYear},set:function(e){e>1900&&(this._initialYear=e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearArrays",{get:function(){return this._yearArrays},set:function(e){this._yearArrays=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"calendarView",{get:function(){return this._calendarView},set:function(e){this._calendarView=e,ze.isNull(this.value)||("month"===e?this.monthChanged(this.value.getMonth()):"year"===e&&this.yearChanged(this.value.getFullYear()),this.internalCalendarView=e,this._changeDetectorRef.markForCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){if(this._value=e,e)if(e.setDate(1),this._value=e,"month"===this.calendarView){var t=this.value.getMonth()+1;this.inputFieldValue=(t<=9?"0"+t:t)+"/"+this.value.getFullYear()}else"year"===this.calendarView&&(this.inputFieldValue=""+this.value.getFullYear());this.onChange(e),this._changeDetectorRef.markForCheck()},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this._generateYears()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.value=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},e.prototype._generateYears=function(){var e=this._now.getFullYear();if(this.initialYear||(this.initialYear=this.value?this.value.getFullYear():this._now.getFullYear()),this.yearArrays=[],this.initialYear===e)for(var t=this.initialYear-this.initialYear%12,n=0;n<24;n++)this.yearArrays.push(t+n);else for(n=this.initialYear;n<this.initialYear+24;n++)this.yearArrays.push(n)},e.prototype.clickToggleCalendar=function(e){e?this.internalCalendarView=e:"month"===this.internalCalendarView&&(this.internalCalendarView="year"),this._changeDetectorRef.detectChanges()},e.prototype.clickPrev=function(){"month"===this.internalCalendarView?(this.value=new Date(this.value.getFullYear()-1,this.value.getMonth(),1),this.initialYear=this.value.getFullYear()-7):"year"===this.internalCalendarView&&(this.initialYear=this.yearArrays[0]-23),this._generateYears(),this._changeDetectorRef.detectChanges()},e.prototype.clickNext=function(){"month"===this.internalCalendarView?(this.value=new Date(this.value.getFullYear()+1,this.value.getMonth(),1),this.initialYear=this.value.getFullYear()-7+1):"year"===this.internalCalendarView&&(this.initialYear=this.yearArrays[23]),this._generateYears(),this._changeDetectorRef.detectChanges()},e.prototype.monthChanged=function(e){var t=this.value.getFullYear();this._monthOrYearChanged(e,t),this._hideOverlay()},e.prototype.yearChanged=function(e){var t=this.value.getMonth();this._monthOrYearChanged(t,e),"month"===this.calendarView?this.clickToggleCalendar("month"):"year"===this.calendarView&&this._hideOverlay()},e.prototype._monthOrYearChanged=function(e,t){var n=e,i=t;this.minDate&&(i<this.minDate.getFullYear()||i===this.minDate.getFullYear()&&n<this.minDate.getMonth())&&(n=this.minDate.getMonth(),i=this.minDate.getFullYear()),this.maxDate&&(i>this.maxDate.getFullYear()||i===this.maxDate.getFullYear()&&n>this.maxDate.getMonth())&&(n=this.maxDate.getMonth(),i=this.maxDate.getFullYear()),this.value=new Date(i,n,1),this._changeDetectorRef.detectChanges()},e.prototype.isMonthSelected=function(e){return!!this.value&&this.value.getMonth()===e},e.prototype.isMonthDisabled=function(e){return!!(this.value&&this.minDate&&this.maxDate)&&(this.value.getFullYear()===this.minDate.getFullYear()&&e<this.minDate.getMonth()||this.value.getFullYear()===this.maxDate.getFullYear()&&e>this.maxDate.getMonth())},e.prototype.isYearSelected=function(e){return!!this.value&&this.value.getFullYear()===e},e.prototype.isYearDisabled=function(e){return!!(this.value&&this.minDate&&this.maxDate)&&(this.value.getFullYear()===this.minDate.getFullYear()&&e<this.minDate.getFullYear()||this.value.getFullYear()===this.maxDate.getFullYear()&&e>this.maxDate.getFullYear())},e.prototype.onInputKeydown=function(e){this.disabled||("ENTER"===e.key.toUpperCase()&&this.onKeydownEnter.emit(e),this.onKeydown.emit(e))},e.prototype.onInputKeyup=function(e){this.disabled||("ESC"!==e.key.toUpperCase()&&"ESCAPE"!==e.key.toUpperCase()||this._hideOverlay(),this.onKeydown.emit(e))},e.prototype.onInputFocus=function(e){!this.disabled&&this.showOnFocus&&(this._showOverlay(),this.onFocus.emit(e))},e.prototype.onInputBlur=function(e){this.disabled||(this.onBlur.emit(e),this.onTouch())},e.prototype.onInputClick=function(e){this.disabled||(this._showOverlay(),this.onClick.emit(e))},e.prototype.onButtonShowMonthpicker=function(){this.toogleOverlay(),this._changeDetectorRef.markForCheck()},e.prototype._showOverlay=function(){this._overlayVisible||(this._overlayVisible=!0)},e.prototype._hideOverlay=function(){this._overlayVisible=!1,this._changeDetectorRef.markForCheck()},e.prototype.toogleOverlay=function(){this.disabled||this.loading||(this._overlayVisible?this._hideOverlay():this._showOverlay())},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:lt}]},we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showOnFocus",void 0),we([t.Input(),Ce("design:type",Date)],e.prototype,"minDate",void 0),we([t.Input(),Ce("design:type",Date)],e.prototype,"maxDate",void 0),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"calendarView",null),we([t.Input(),Ce("design:type",Date),Ce("design:paramtypes",[Date])],e.prototype,"value",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClose",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onMonthChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onYearChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onKeydown",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onKeydownEnter",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),we([t.ViewChild("inputMonthPicker",{static:!0,read:HTMLInputElement}),Ce("design:type",HTMLInputElement)],e.prototype,"inputMonthPickerRef",void 0),e=n=we([t.Component({selector:"gipi-input-monthpicker",exportAs:"gipiInputMonthPicker",template:'<label class="input-monthpicker-container"\n [attr.for]="id">\n <span class="input-monthpicker-label"\n *ngIf="label">\n {{ label }}\n <span *ngIf="required && label"> * </span>\n </span>\n\n <div class="input-monthpicker-content"\n (click)="onInputClick($event)"\n #inputMonthPickerTarget>\n <input class="input-monthpicker-input"\n #inputMonthPicker\n autocomplete="off"\n [attr.id]="id"\n [attr.aria-label]="ariaLabel"\n [name]="name"\n type="text"\n [required]="required"\n [placeholder]="placeholder"\n [readonly]="true"\n [disabled]="disabled"\n [(ngModel)]="inputFieldValue"\n (keydown)="onInputKeydown($event)"\n (focus)="onInputFocus($event)"\n (blur)="onInputBlur($event);"\n (click)="onInputClick($event)"\n (keyup)="onInputKeyup($event)" />\n\n <div class="input-monthpicker-suffix">\n <button ariaLabel="Exibir calendário"\n class="input-monthpicker-button"\n [disabled]="disabled"\n (click)="onButtonShowMonthpicker()">\n <svg class="input-monthpicker-icon"\n viewBox="0 0 24 24"\n width="24px"\n height="24px"\n fill="currentColor"\n focusable="false">\n <path\n d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z" />\n </svg>\n </button>\n </div>\n </div>\n</label>\n\n<gipi-overlay *ngIf="!disabled && !loading"\n [(visible)]="_overlayVisible"\n [appendTo]="\'body\'">\n <div class="calendar">\n <div class="calendar-header">\n <div class="calendar-title"\n [class.month]="internalCalendarView === \'month\'"\n (click)="clickToggleCalendar()">\n <ng-container *ngIf="internalCalendarView === \'month\'">\n {{ value ? value.getFullYear() : _currentYear }}\n </ng-container>\n\n <ng-container *ngIf="internalCalendarView === \'year\'">\n {{ yearArrays[0] + \' - \' + yearArrays[yearArrays.length - 1] }}\n </ng-container>\n\n <mat-icon *ngIf="internalCalendarView === \'month\'">arrow_drop_down</mat-icon>\n </div>\n <div class="calendar-controls">\n <button aria-label="Voltar a data"\n (click)="clickPrev()">\n <mat-icon>navigate_before</mat-icon>\n </button>\n <button aria-label="Avançar a data"\n (click)="clickNext()">\n <mat-icon>navigate_next</mat-icon>\n </button>\n </div>\n </div>\n\n <div class="table-months"\n *ngIf="internalCalendarView === \'month\'">\n <div *ngFor="let month of monthArrays"\n class="month"\n [class.selected]="isMonthSelected(month)"\n [class.disabled]="isMonthDisabled(month)"\n (click)="monthChanged(month)">\n {{ monthNames[month] }}\n </div>\n </div>\n\n <div class="table-years"\n *ngIf="internalCalendarView === \'year\'">\n <div *ngFor="let year of yearArrays"\n class="year"\n [class.selected]="isYearSelected(year)"\n [class.disabled]="isYearDisabled(year)"\n (click)="yearChanged(year)">\n {{ year }}\n </div>\n </div>\n </div>\n</gipi-overlay>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-input-monthpicker"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:block;min-width:0;max-width:100%;flex:1}.input-monthpicker-container{display:flex;flex-direction:column;gap:1rem;width:100%}.input-monthpicker-container .input-monthpicker-label{color:#131313;font-size:1.4rem;line-height:100%}.input-monthpicker-container .input-monthpicker-label>span{color:#d14014;font-size:inherit;line-height:inherit}.input-monthpicker-container .input-monthpicker-content{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:12px;width:100%;max-height:4rem;border-radius:5px;cursor:text;background-color:#fff;border:1px solid #0000001f;color:#696969;caret-color:#9a9da2;transition:.2s;position:relative}.input-monthpicker-container .input-monthpicker-content:focus-within,.input-monthpicker-container .input-monthpicker-content:has(.input-monthpicker-input:active),.input-monthpicker-container .input-monthpicker-content:has(.input-monthpicker-input:focus){box-shadow:0 0 0 .2rem #f0f0f0}.input-monthpicker-container .input-monthpicker-content:focus-within,.input-monthpicker-container .input-monthpicker-content:hover{border-color:#bfbfbf!important}.input-monthpicker-container .input-monthpicker-content:has(.input-monthpicker-input:disabled){color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;box-shadow:none!important;caret-color:#d1d2d4!important;pointer-events:none!important;cursor:not-allowed!important}.input-monthpicker-container .input-monthpicker-content:has(.input-monthpicker-input:disabled) .input-monthpicker-input,.input-monthpicker-container .input-monthpicker-content:has(.input-monthpicker-input:disabled) .input-monthpicker-suffix .input-monthpicker-button{cursor:not-allowed!important;pointer-events:none!important}.input-monthpicker-container .input-monthpicker-content:has(.input-monthpicker-input:disabled) .input-monthpicker-suffix .input-monthpicker-trigger{border-color:#e0e1e2!important;pointer-events:none!important}.input-monthpicker-container .input-monthpicker-content:has(.input-monthpicker-input:disabled) mat-icon{color:#d1d2d4!important;fill:#d1d2d4!important;cursor:not-allowed!important;pointer-events:none!important}.input-monthpicker-container .input-monthpicker-content .input-monthpicker-input{height:16px;max-width:84%;outline:0;border:none;background-color:transparent;color:inherit;flex:1}.input-monthpicker-container .input-monthpicker-content .input-monthpicker-suffix{display:flex;flex-direction:row;align-items:center;gap:16px}.input-monthpicker-container .input-monthpicker-content .input-monthpicker-suffix .input-monthpicker-button{display:flex;align-items:center;justify-content:center;outline:0;border:none;cursor:pointer;background-color:transparent}.input-monthpicker-container .input-monthpicker-content .input-monthpicker-suffix .input-monthpicker-button:hover:not(:disabled)>mat-icon{transform:scale(1.08)}.input-monthpicker-icon{width:1.6rem;height:1.6rem;font-size:1.6rem;color:#131313;fill:#131313}::ng-deep .calendar{width:100%;display:flex;flex-direction:column}::ng-deep .calendar .calendar-header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid #aeb1b5;margin-bottom:8px}::ng-deep .calendar .calendar-header .calendar-title{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:1.6rem;line-height:1.8rem;font-weight:600;cursor:default;border-radius:8px;padding:8px;white-space:nowrap}::ng-deep .calendar .calendar-header .calendar-title>mat-icon{font-size:2rem;width:20px;height:20px}::ng-deep .calendar .calendar-header .calendar-title.month:hover{cursor:pointer;background-color:#f0f0f0}::ng-deep .calendar .calendar-header .calendar-controls{display:flex;flex-direction:row;align-items:center;gap:8px}::ng-deep .calendar .calendar-header .calendar-controls>button{display:flex;align-items:center;justify-content:center;padding:8px;border-radius:8px;background-color:#e0313e;cursor:pointer;transition:.3s;border:0;outline:0;color:#fff}::ng-deep .calendar .calendar-header .calendar-controls>button:hover{background-color:#cc2d38}::ng-deep .calendar .calendar-header .calendar-controls>button>mat-icon{font-size:1.8rem;width:18px;height:18px}::ng-deep .calendar .table-months{display:-ms-grid;display:grid;-ms-grid-columns:(1fr)[3];grid-template-columns:repeat(3,1fr);gap:4px}::ng-deep .calendar .table-months .month{display:flex;align-items:center;justify-content:center;padding:8px;border-radius:8px;font-size:1.4rem;line-height:1.7rem;color:#555659;background-color:#f0f0f0;transition:background-color .1s;cursor:pointer}::ng-deep .calendar .table-months .month.disabled{color:#bbbdc1;background-color:#e0e1e2}::ng-deep .calendar .table-months .month:not(.disabled).selected,::ng-deep .calendar .table-months .month:not(.disabled):hover{color:#fff;background-color:#e0313e}::ng-deep .calendar .table-months .month:not(.disabled).selected:hover{background-color:#cc2d38}::ng-deep .calendar .table-years{display:-ms-grid;display:grid;-ms-grid-columns:(1fr)[4];grid-template-columns:repeat(4,1fr);gap:4px}::ng-deep .calendar .table-years .year{display:flex;align-items:center;justify-content:center;padding:8px;border-radius:8px;font-size:1.4rem;line-height:1.7rem;color:#555659;background-color:#f0f0f0;transition:background-color .1s;cursor:pointer}::ng-deep .calendar .table-years .year.disabled{color:#bbbdc1;background-color:#e0e1e2}::ng-deep .calendar .table-years .year:not(.disabled).selected,::ng-deep .calendar .table-years .year:not(.disabled):hover{color:#fff;background-color:#e0313e}::ng-deep .calendar .table-years .year:not(.disabled).selected:hover{background-color:#cc2d38}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef,lt])],e)}(),Ln=0,Bn=function(){function e(e,n){this.elementRef=e,this._changeDetectorRef=n,this._name="gipi-input-phone-"+Ln++,this._inputEnter$=new ie.BehaviorSubject(!1),this.maskPhone$=new ie.BehaviorSubject("0*"),this.id=this._name,this.name=this._name,this.label="",this.tooltip="",this.placeholder="",this.disabled=!1,this.loading=!1,this.required=!1,this.foreign=!1,this.appearance="outline",this._value="",this.focus=new t.EventEmitter,this.blur=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this._inputEnter$.getValue()||this._changeDetectorRef.detectChanges(),this.onChange(this._value),this.onTouch()},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.writeValue=function(e){this.value=e,Be.isEmpty(this.value)||this.foreign||this.onInputExit()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.detectChanges()},e.prototype.onFocus=function(e){this.disabled||this.focus.emit(e)},e.prototype.onBlur=function(e){this.disabled||(this.blur.emit(e),this.onTouch())},e.prototype.onInputEnter=function(){var e=this;if(!this.foreign){this._inputEnter$.next(!0);var t=this.value;this.value="",this._changeDetectorRef.detectChanges(),this.maskPhone$.next("0*"),setTimeout((function(n){return e.value=t}))}},e.prototype.onInputExit=function(){if(!this.foreign)if(this._inputEnter$.next(!1),this.value){var e=Qe.mask(this.value);this.maskPhone$.next(e)}else this.maskPhone$.next("0*")},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},we([t.ViewChild("input",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"_elementRef",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"foreign",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"appearance",void 0),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"value",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"focus",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"blur",void 0),e=n=we([t.Component({selector:"gipi-input-phone",template:'<div fxLayout="column">\n <mat-label *ngIf="label">\n {{ label }}\n <span *ngIf="required && label"> * </span>\n <gipi-helpful-tip *ngIf="tooltip && label"\n [tooltip]="tooltip">\n </gipi-helpful-tip>\n </mat-label>\n\n <mat-form-field [appearance]="appearance">\n <input #input\n matInput\n type="text"\n autocomplete="off"\n [attr.id]="id"\n [name]="name"\n [placeholder]="placeholder"\n [required]="required"\n [disabled]="disabled"\n [min]="0"\n [max]="!foreign ? 12 : 15"\n [maxlength]="!foreign ? 12 : 15"\n [mask]="!foreign ? (maskPhone$ | async) : \'0*\'"\n [(ngModel)]="value"\n (focus)="onInputEnter(); onFocus($event)"\n (blur)="onInputExit(); onBlur($event)">\n </mat-form-field>\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:[":host{display:block;min-width:0;max-width:100%;flex:1}mat-label span{color:#d14014!important}"]}),Ce("design:paramtypes",[t.ElementRef,t.ChangeDetectorRef])],e)}(),Yn=0,zn=function(){function e(e,n){this.elementRef=e,this._changeDetectorRef=n,this._name="gipi-input-select-enum-"+Yn++,this._enumList=[],this._itemSizeScrollViewport=5,this._lastOptionSelected=null,this.id=this._name,this.name=this._name,this.tooltip="",this.placeholder="Selecionar",this._disabled=!1,this._loading=!1,this._multiple=!1,this._showOnFocus=!0,this._hideOnEscape=!0,this.selectionChange=new t.EventEmitter,this.onFocus=new t.EventEmitter,this.onBlur=new t.EventEmitter,this.onOpenedChange=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loading",{get:function(){return this._loading},set:function(e){this._loading=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"multiple",{get:function(){return this._multiple},set:function(e){this._multiple=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showOnFocus",{get:function(){return this._showOnFocus},set:function(e){this._showOnFocus=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hideOnEscape",{get:function(){return this._hideOnEscape},set:function(e){this._hideOnEscape=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.onChange(e),this.onTouch()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"optionSelectedValue",{get:function(){var e=this;if(this.value&&!Ot.isEmpty(this._enumList)){var t=this._enumList.find((function(t){return t.key===e.value}));if(t)return t.value}return""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"optionSelectedKey",{get:function(){var e=this;if(this.value&&!Ot.isEmpty(this._enumList)){var t=this._enumList.find((function(t){return t.key===e.value}));if(t)return t.key}return""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollViewportHeight",{get:function(){var e=0;return this._enumList&&this._enumList.length&&(e=40*this._enumList.length),e},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this,t=Object.keys(this.enum).map((function(t){return{key:t,value:e.enum[t]}})).sort(this.sort);if(ze.isNull(this.valuesExclud))this._enumList=t;else for(var n=function(e){i.valuesExclud.some((function(n){return n===t[e].key}))||i._enumList.push(t[e])},i=this,o=0;o<t.length;o++)n(o);this._changeDetectorRef.detectChanges()},e.prototype.ngOnDestroy=function(){ze.isNull(this.popoverTrigger)||this.popoverTrigger.destroyPopover()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.value=e},e.prototype.validateOmitByKey=function(e){return!!ze.isNull(this.valuesOmit)||!this.valuesOmit.some((function(t){return t===e}))},e.prototype.showPopover=function(){this.disabled||this.loading||this.popoverTrigger.openPopover()},e.prototype.closePopover=function(){this.disabled||this.loading||this.popoverTrigger.closePopover()},e.prototype.onInputFocus=function(e){this.showOnFocus&&!this.disabled&&this.showPopover(),this.disabled||(this.onFocus.emit(e),e.stopPropagation())},e.prototype.onInputClick=function(e){this.disabled||(this.showPopover(),ze.isNull(this.popoverTrigger)||this.popoverTrigger.popoverOpen||this.formFieldSelectEnum.focus(),e.stopPropagation())},e.prototype.onInputBlur=function(e){this.disabled||(this.onBlur.emit(e),this.onTouch())},e.prototype.onInputKeydown=function(e){this.disabled?e.stopImmediatePropagation():("ESCAPE"===e.code.toUpperCase()&&this.hideOnEscape||"ENTER"===e.code.toUpperCase()||"NUMPADENTER"===e.code.toUpperCase()||"TAB"===e.code.toUpperCase())&&!ze.isNull(this.popoverTrigger)&&this.popoverTrigger.popoverOpen&&(this.closePopover(),e.preventDefault())},e.prototype.onButtonSelectOptionClick=function(e){this.value=e,this.closePopover(),this._changeDetectorRef.detectChanges()},e.prototype.onWindowResize=function(e){!ze.isNull(this.popoverTrigger)&&this.popoverTrigger.popoverOpen&&(this.closePopover(),this._changeDetectorRef.detectChanges(),e.stopPropagation())},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},we([t.ViewChild("formFieldSelectEnum",{read:Pn,static:!1}),Ce("design:type",Pn)],e.prototype,"formFieldSelectEnum",void 0),we([t.ViewChild(gn,{static:!1}),Ce("design:type",gn)],e.prototype,"popoverTrigger",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"disabled",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"loading",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"multiple",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"showOnFocus",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"hideOnEscape",null),we([t.Input(),Ce("design:type",Object)],e.prototype,"enum",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"sort",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"valuesExclud",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"valuesOmit",void 0),we([t.Input("value"),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"value",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectionChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onOpenedChange",void 0),we([t.HostListener("window:resize",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[UIEvent]),Ce("design:returntype",void 0)],e.prototype,"onWindowResize",null),e=n=we([t.Component({selector:"gipi-input-select-enum",exportAs:"gipiInputSelectEnum",template:'<gipi-form-field #formFieldSelectEnum\n [id]="id"\n [name]="name"\n [type]="\'select\'"\n [readonly]="true"\n [disabled]="disabled"\n [required]="required"\n [label]="label"\n [tooltip]="tooltip"\n [placeholder]="placeholder"\n [showClear]="false"\n [showTrigger]="false"\n [trigger]="0"\n [ariaLabel]="ariaLabel"\n [value]="optionSelectedValue"\n #popoverTrigger="popoverTrigger"\n [popoverTriggerFor]="selectEnumPopover"\n [popoverTriggerOn]="!disabled ? \'click\' : \'none\'"\n [popoverBackdropCloseOnClick]="true"\n (opened)="onOpenedChange.emit(true)"\n (closed)="onOpenedChange.emit(false)"\n (onKeydown)="onInputKeydown($event)"\n (onFocus)="onInputFocus($event)"\n (onBlur)="onInputBlur($event)"\n (onClick)="onInputClick($event)">\n</gipi-form-field>\n\n<gipi-popover #selectEnumPopover="gipiPopover"\n [popoverOverlapTrigger]="false"\n [popoverCloseOnClick]="false"\n [popoverArrowWidth]="0"\n [popoverOffsetY]="3">\n <div class="select-enum-popover-content">\n <cdk-virtual-scroll-viewport *ngIf="(_enumList && _enumList.length) && !loading"\n class="select-virtual-scroll-viewport"\n [style.height.px]="scrollViewportHeight"\n [itemSize]="_itemSizeScrollViewport">\n <div *cdkVirtualFor="let e of _enumList"\n class="select-row"\n [style.height.px]="40"\n [class.active]="optionSelectedKey === e.key"\n [class.disabled]="!validateOmitByKey(e.key) && (disabled || loading)"\n (click)="onButtonSelectOptionClick(e.key)">\n {{ e.value }}\n </div>\n </cdk-virtual-scroll-viewport>\n\n <div *ngIf="loading"\n class="select-loading">\n <div class="dot-pulse"> </div>\n </div>\n\n <div *ngIf="(!_enumList || (_enumList && _enumList.length <= 0)) && !loading"\n class="select-not-found">\n <mat-icon>sentiment_very_dissatisfied</mat-icon>\n Nenhum registro foi encontrado\n </div>\n </div>\n</gipi-popover>\n\n\x3c!-- <gipi-overlay *ngIf="!disabled && !loading"\n contentStyleClass="overlay-select"\n #overlaySelectEnum\n [(visible)]="_overlayVisible"\n [appendTo]="\'body\'"\n (onShow)="onOpenedChange.emit(true)"\n (onHide)="onOpenedChange.emit(false)">\n <cdk-virtual-scroll-viewport *ngIf="(_enumList && _enumList.length) && !loading"\n class="select-virtual-scroll-viewport"\n [style.height.px]="scrollViewportHeight"\n [itemSize]="_itemSizeScrollViewport">\n <div *cdkVirtualFor="let e of _enumList"\n class="select-row"\n [style.height.px]="40"\n [class.disabled]="!validateOmitByKey(e.key) && (disabled || loading)"\n (click)="onButtonSelectOptionClick(e.key)">\n {{ e.value }}\n </div>\n </cdk-virtual-scroll-viewport>\n\n <div *ngIf="loading"\n class="select-loading">\n <div class="dot-pulse"> </div>\n </div>\n\n <div *ngIf="(!_enumList || (_enumList && _enumList.length <= 0)) && !loading"\n class="select-not-found">\n <mat-icon>sentiment_very_dissatisfied</mat-icon>\n Nenhum registro foi encontrado\n </div>\n</gipi-overlay> --\x3e\n',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-input-select-enum"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:block;min-width:0;max-width:100%;flex:1}::ng-deep .overlay-select{padding:0!important;overflow:hidden!important}::ng-deep .select-virtual-scroll-viewport{width:100%!important;max-height:240px;overflow:auto}::ng-deep .select-virtual-scroll-viewport .cdk-virtual-scroll-content-wrapper{width:100%!important;position:relative!important}::ng-deep .select-virtual-scroll-viewport::-webkit-scrollbar{width:15px}::ng-deep .select-virtual-scroll-viewport::-webkit-scrollbar-thumb{background-color:#e0e1e2;border-radius:10px;border:4px solid transparent;background-clip:padding-box}::ng-deep .select-row{display:flex;align-items:center;gap:1rem;padding:0 16px;cursor:pointer;font-size:1.4rem;line-height:100%;border-left:2px solid transparent}::ng-deep .select-row.active{background-color:#fceaec;border-color:#e0313e}::ng-deep .select-row:not(.active):hover{background-color:#f5f5f6}::ng-deep .select-row:not(.active):active{background-color:#e0e1e2}.select-not-found{display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:600;font-size:1.2rem;gap:8px;color:#131313;cursor:default;padding:0 0 16px}.select-not-found>mat-icon{width:2.8rem;height:2.8rem;font-size:2.8rem;line-height:2.8rem;color:#131313}.select-loading{height:4.8rem;width:100%;background-color:#fff;display:flex;align-items:center;justify-content:center}.select-loading .dot-pulse{position:relative;left:-9999px;width:5px;height:5px;border-radius:50%;background-color:#e0313e;color:#e0313e;box-shadow:9999px 0 0 -5px;-webkit-animation:1.5s linear .25s infinite dot-pulse;animation:1.5s linear .25s infinite dot-pulse}.select-loading .dot-pulse::after,.select-loading .dot-pulse::before{content:'';display:inline-block;position:absolute;top:0;width:5px;height:5px;border-radius:50%;background-color:#e0313e;color:#e0313e}.select-loading .dot-pulse::before{box-shadow:9984px 0 0 -5px;-webkit-animation:1.5s linear infinite dot-pulse-before;animation:1.5s linear infinite dot-pulse-before}.select-loading .dot-pulse::after{box-shadow:10014px 0 0 -5px;-webkit-animation:1.5s linear .5s infinite dot-pulse-after;animation:1.5s linear .5s infinite dot-pulse-after}@-webkit-keyframes dot-pulse-before{0%,100%,60%{box-shadow:9984px 0 0 -5px}30%{box-shadow:9984px 0 0 2px}}@keyframes dot-pulse-before{0%,100%,60%{box-shadow:9984px 0 0 -5px}30%{box-shadow:9984px 0 0 2px}}@-webkit-keyframes dot-pulse{0%,100%,60%{box-shadow:9999px 0 0 -5px}30%{box-shadow:9999px 0 0 2px}}@keyframes dot-pulse{0%,100%,60%{box-shadow:9999px 0 0 -5px}30%{box-shadow:9999px 0 0 2px}}@-webkit-keyframes dot-pulse-after{0%,100%,60%{box-shadow:10014px 0 0 -5px}30%{box-shadow:10014px 0 0 2px}}@keyframes dot-pulse-after{0%,100%,60%{box-shadow:10014px 0 0 -5px}30%{box-shadow:10014px 0 0 2px}}.select-enum-popover-content{overflow:hidden;background-color:#fff;border-radius:4px;box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}"]}),Ce("design:paramtypes",[t.ElementRef,t.ChangeDetectorRef])],e)}(),Hn=function(){function e(e,t){void 0===t&&(t=function(){}),this.element=e,this.listener=t}return e.prototype.bindScrollListener=function(){this.scrollableParents=hn.getScrollableParents(this.element);for(var e=0;e<this.scrollableParents.length;e++)this.scrollableParents[e].addEventListener("scroll",this.listener)},e.prototype.unbindScrollListener=function(){if(this.scrollableParents)for(var e=0;e<this.scrollableParents.length;e++)this.scrollableParents[e].removeEventListener("scroll",this.listener)},e.prototype.destroy=function(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null},e}(),Gn=ae.animation([ae.style({transform:"{{transform}}",opacity:0}),ae.animate("{{showTransitionParams}}")]),Un=ae.animation([ae.animate("{{hideTransitionParams}}",ae.style({transform:"{{transform}}",opacity:0}))]),qn=function(){function e(e,n,i,o,r,a){this._document=e,this._config=n,this._zone=i,this.elementRef=o,this.renderer=r,this.overlayService=a,this.modalVisible=!1,this.isOverlayClicked=!1,this.isOverlayContentClicked=!1,this.transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"},this._visible=!1,this.visibleChange=new t.EventEmitter,this.onBeforeShow=new t.EventEmitter,this.onShow=new t.EventEmitter,this.onBeforeHide=new t.EventEmitter,this.onHide=new t.EventEmitter,this.onAnimationStart=new t.EventEmitter,this.onAnimationDone=new t.EventEmitter,this._window=this._document.defaultView}var n;return n=e,Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible=e,this._visible&&!this.modalVisible&&(this.modalVisible=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mode",{get:function(){var e;return this._mode||(null===(e=this.overlayOptions)||void 0===e?void 0:e.mode)},set:function(e){this._mode=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){var e,t;return ze.merge(this._style,this.modal?null===(e=this.overlayResponsiveOptions)||void 0===e?void 0:e.style:null===(t=this.overlayOptions)||void 0===t?void 0:t.style)},set:function(e){this._style=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"styleClass",{get:function(){var e,t;return ze.merge(this._styleClass,this.modal?null===(e=this.overlayResponsiveOptions)||void 0===e?void 0:e.styleClass:null===(t=this.overlayOptions)||void 0===t?void 0:t.styleClass)},set:function(e){this._styleClass=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentStyle",{get:function(){var e,t;return ze.merge(this._contentStyle,this.modal?null===(e=this.overlayResponsiveOptions)||void 0===e?void 0:e.contentStyle:null===(t=this.overlayOptions)||void 0===t?void 0:t.contentStyle)},set:function(e){this._contentStyle=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentStyleClass",{get:function(){var e,t;return ze.merge(this._contentStyleClass,this.modal?null===(e=this.overlayResponsiveOptions)||void 0===e?void 0:e.contentStyleClass:null===(t=this.overlayOptions)||void 0===t?void 0:t.contentStyleClass)},set:function(e){this._contentStyleClass=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var e,t=this._target||(null===(e=this.overlayOptions)||void 0===e?void 0:e.target);return void 0===t?"@prev":t},set:function(e){this._target=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"appendTo",{get:function(){var e;return this._appendTo||(null===(e=this.overlayOptions)||void 0===e?void 0:e.appendTo)},set:function(e){this._appendTo=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"autoZIndex",{get:function(){var e,t=this._autoZIndex||(null===(e=this.overlayOptions)||void 0===e?void 0:e.autoZIndex);return void 0===t||t},set:function(e){this._autoZIndex=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseZIndex",{get:function(){var e,t=this._baseZIndex||(null===(e=this.overlayOptions)||void 0===e?void 0:e.baseZIndex);return void 0===t?0:t},set:function(e){this._baseZIndex=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showTransitionOptions",{get:function(){var e,t=this._showTransitionOptions||(null===(e=this.overlayOptions)||void 0===e?void 0:e.showTransitionOptions);return void 0===t?".12s cubic-bezier(0, 0, 0.2, 1)":t},set:function(e){this._showTransitionOptions=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hideTransitionOptions",{get:function(){var e,t=this._hideTransitionOptions||(null===(e=this.overlayOptions)||void 0===e?void 0:e.hideTransitionOptions);return void 0===t?".1s linear":t},set:function(e){this._hideTransitionOptions=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"listener",{get:function(){var e;return this._listener||(null===(e=this.overlayOptions)||void 0===e?void 0:e.listener)},set:function(e){this._listener=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responsive",{get:function(){var e;return this._responsive||(null===(e=this.overlayOptions)||void 0===e?void 0:e.responsive)},set:function(e){this._responsive=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(e){this._options=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"documentClick",{get:function(){return this._documentClick},set:function(e){this._documentClick=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"modal",{get:function(){var e,t;return"modal"===this.mode||this.overlayResponsiveOptions&&(null===(e=this._window)||void 0===e?void 0:e.matchMedia((null===(t=this.overlayResponsiveOptions.media)||void 0===t?void 0:t.replace("@media",""))||"(max-width: "+this.overlayResponsiveOptions.breakpoint+")").matches)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlayMode",{get:function(){return this.mode||(this.modal?"modal":"overlay")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlayOptions",{get:function(){var e;return _e(_e({},null===(e=this._config)||void 0===e?void 0:e.overlayOptions),this.options)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlayResponsiveOptions",{get:function(){var e;return _e(_e({},null===(e=this.overlayOptions)||void 0===e?void 0:e.responsive),this.responsive)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlayResponsiveDirection",{get:function(){var e;return(null===(e=this.overlayResponsiveOptions)||void 0===e?void 0:e.direction)||"center"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlayEl",{get:function(){var e;return null===(e=this.overlayViewChild)||void 0===e?void 0:e.nativeElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentEl",{get:function(){var e;return null===(e=this.contentViewChild)||void 0===e?void 0:e.nativeElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"targetEl",{get:function(){var e;return hn.getTargetElement(this.target,null===(e=this.elementRef)||void 0===e?void 0:e.nativeElement)},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.ngAfterContentInit=function(){var e=this;ze.isNull(this.templates)||this.templates.forEach((function(t){switch(t.getType()){case"content":default:e.contentTemplate=t.template}}))},e.prototype.ngOnDestroy=function(){this.hide(this.overlayEl,!0),this.overlayEl&&(hn.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),st.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()},e.prototype.show=function(e,t){var n;void 0===t&&(t=!1),this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),t&&hn.focus(this.targetEl),this.modal&&hn.addClass(null===(n=this._document)||void 0===n?void 0:n.body,"overflow-hidden")},e.prototype.hide=function(e,t){var n;void 0===t&&(t=!1),this.visible&&(this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),t&&hn.focus(this.targetEl),this.modal&&hn.removeClass(null===(n=this._document)||void 0===n?void 0:n.body,"overflow-hidden"))},e.prototype.alignOverlay=function(){!this.modal&&hn.alignOverlay(this.overlayEl,this.targetEl,this.appendTo)},e.prototype.onVisibleChange=function(e){this._visible=e,this.visibleChange.emit(e)},e.prototype.onOverlayClick=function(e){this.isOverlayClicked=!0},e.prototype.onOverlayContentClick=function(e){this.overlayService.add({originalEvent:e,target:this.targetEl}),this.isOverlayContentClicked=!0},e.prototype.onOverlayContentAnimationStart=function(e){var t;switch(e.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&st.set(this.overlayMode,this.overlayEl,this.baseZIndex+(null===(t=this._config)||void 0===t?void 0:t.zIndex[this.overlayMode])),hn.appendOverlay(this.overlayEl,"body"===this.appendTo?this._document.body:this.appendTo,this.appendTo),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&hn.addClass(this.overlayEl,"component-overlay-leave")}this.handleEvents("onAnimationStart",e)},e.prototype.onOverlayContentAnimationDone=function(e){var t=this.overlayEl||e.element.parentElement;switch(e.toState){case"visible":this.show(t,!0),this.bindListeners();break;case"void":this.hide(t,!0),this.unbindListeners(),hn.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),st.clear(t),this.modalVisible=!1}this.handleEvents("onAnimationDone",e)},e.prototype.handleEvents=function(e,t){var n,i,o;this[e].emit(t),this.options&&this.options[e]&&this.options[e](t),(null===(n=this._config)||void 0===n?void 0:n.overlayOptions)&&(null===(i=this._config)||void 0===i?void 0:i.overlayOptions)[e]&&(null===(o=this._config)||void 0===o?void 0:o.overlayOptions)[e](t)},e.prototype.bindListeners=function(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindDocumentKeyboardListener()},e.prototype.unbindListeners=function(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()},e.prototype.bindScrollListener=function(){var e=this;this.scrollHandler||(this.scrollHandler=new Hn(this.targetEl,(function(t){(!e.listener||e.listener(t,{type:"scroll",mode:e.overlayMode,valid:!0}))&&e.hide(t,!0)}))),this.scrollHandler.bindScrollListener()},e.prototype.unbindScrollListener=function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},e.prototype.bindDocumentClickListener=function(){var e=this;this.documentClickListener||(this.documentClickListener=this.renderer.listen(this._document,"click",(function(t){var n=e.targetEl&&(e.targetEl.isSameNode(t.target)||!e.isOverlayClicked&&e.targetEl.contains(t.target)),i=!!e.documentClick&&e.documentClick(),o=!n&&!e.isOverlayContentClicked&&!i;(e.listener?e.listener(t,{type:"outside",mode:e.overlayMode,valid:3!==t.which&&o}):o)&&e.hide(t),e.isOverlayClicked=e.isOverlayContentClicked=!1})))},e.prototype.unbindDocumentClickListener=function(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)},e.prototype.bindDocumentResizeListener=function(){var e=this;this.documentResizeListener||(this.documentResizeListener=this.renderer.listen(this._window,"resize",(function(t){(e.listener?e.listener(t,{type:"resize",mode:e.overlayMode,valid:!hn.isTouchDevice()}):!hn.isTouchDevice())&&e.hide(t,!0)})))},e.prototype.unbindDocumentResizeListener=function(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)},e.prototype.bindDocumentKeyboardListener=function(){var e=this;this.documentKeyboardListener||this._zone.runOutsideAngular((function(){e.documentKeyboardListener=e.renderer.listen(e._window,"keydown",(function(t){e.overlayOptions.hideOnEscape&&27===t.keyCode&&((e.listener?e.listener(t,{type:"keydown",mode:e.overlayMode,valid:!hn.isTouchDevice()}):!hn.isTouchDevice())&&e._zone.run((function(){e.hide(t,!0)})))}))}))},e.prototype.unbindDocumentKeyboardListener=function(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)},e.ctorParameters=function(){return[{type:Document,decorators:[{type:t.Inject,args:[i.DOCUMENT]}]},{type:lt},{type:t.NgZone},{type:t.ElementRef},{type:t.Renderer2},{type:pt}]},we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"visible",null),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"mode",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"style",null),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"styleClass",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"contentStyle",null),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"contentStyleClass",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"target",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"appendTo",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"autoZIndex",null),we([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"baseZIndex",null),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"showTransitionOptions",null),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"hideTransitionOptions",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"listener",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"responsive",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"options",null),we([t.Input(),Ce("design:type",Function),Ce("design:paramtypes",[Function])],e.prototype,"documentClick",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"visibleChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBeforeShow",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onShow",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBeforeHide",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onHide",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onAnimationStart",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onAnimationDone",void 0),we([t.ContentChildren(sn),Ce("design:type",t.QueryList)],e.prototype,"templates",void 0),we([t.ViewChild("overlay",{static:!1}),Ce("design:type",t.ElementRef)],e.prototype,"overlayViewChild",void 0),we([t.ViewChild("content",{static:!1}),Ce("design:type",t.ElementRef)],e.prototype,"contentViewChild",void 0),e=n=we([t.Component({selector:"gipi-overlay",exportAs:"gipiOverlay",template:"<div *ngIf=\"modalVisible\"\n #overlay\n [ngStyle]=\"style\"\n [class]=\"styleClass\"\n role=\"menu\"\n [ngClass]=\"{\n 'overlay': true,\n 'overlay-modal component-overlay component-overlay-enter': modal,\n 'overlay-center': modal && overlayResponsiveDirection === 'center',\n 'overlay-top': modal && overlayResponsiveDirection === 'top',\n 'overlay-top-start': modal && overlayResponsiveDirection === 'top-start',\n 'overlay-top-end': modal && overlayResponsiveDirection === 'top-end',\n 'overlay-bottom': modal && overlayResponsiveDirection === 'bottom',\n 'overlay-bottom-start': modal && overlayResponsiveDirection === 'bottom-start',\n 'overlay-bottom-end': modal && overlayResponsiveDirection === 'bottom-end',\n 'overlay-left': modal && overlayResponsiveDirection === 'left',\n 'overlay-left-start': modal && overlayResponsiveDirection === 'left-start',\n 'overlay-left-end': modal && overlayResponsiveDirection === 'left-end',\n 'overlay-right': modal && overlayResponsiveDirection === 'right',\n 'overlay-right-start': modal && overlayResponsiveDirection === 'right-start',\n 'overlay-right-end': modal && overlayResponsiveDirection === 'right-end'\n }\"\n (click)=\"onOverlayClick($event)\">\n <div *ngIf=\"visible\"\n #content\n [ngStyle]=\"contentStyle\"\n [class]=\"contentStyleClass\"\n [ngClass]=\"'overlay-content'\"\n (click)=\"onOverlayContentClick($event)\"\n [@overlayContentAnimation]=\"{ value: 'visible', params: { showTransitionParams: showTransitionOptions, hideTransitionParams: hideTransitionOptions, transform: transformOptions[modal ? overlayResponsiveDirection : 'default'] } }\"\n (@overlayContentAnimation.start)=\"onOverlayContentAnimationStart($event)\"\n (@overlayContentAnimation.done)=\"onOverlayContentAnimationDone($event)\">\n <ng-content> </ng-content>\n <ng-container *ngTemplateOutlet=\"contentTemplate; context: { $implicit: { mode: overlayMode } }\"></ng-container>\n </div>\n</div>\n",changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,animations:[ae.trigger("overlayContentAnimation",[ae.transition(":enter",[ae.useAnimation(Gn)]),ae.transition(":leave",[ae.useAnimation(Un)])])],providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-overlay"},styles:[".overlay{position:absolute;top:0;left:0;margin-top:2px}.overlay-modal{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%}.component-overlay{background-color:rgba(0,0,0,.4);transition-duration:.15s}.overlay-content{transform-origin:inherit;padding:12px;background-color:#fff;border-radius:4px;box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.overlay-modal>.overlay-content{z-index:1;width:90%}.overlay-top{align-items:flex-start}.overlay-top-start{align-items:flex-start;justify-content:flex-start}.overlay-top-end{align-items:flex-start;justify-content:flex-end}.overlay-bottom{align-items:flex-end}.overlay-bottom-start{align-items:flex-end;justify-content:flex-start}.overlay-bottom-end{align-items:flex-end;justify-content:flex-end}.overlay-left{justify-content:flex-start}.overlay-left-start{justify-content:flex-start;align-items:flex-start}.overlay-left-end{justify-content:flex-start;align-items:flex-end}.overlay-right{justify-content:flex-end}.overlay-right-start{justify-content:flex-end;align-items:flex-start}.overlay-right-end{justify-content:flex-end;align-items:flex-end}.overflow-hidden{overflow:hidden}.component-overlay-enter{-webkit-animation:150ms forwards component-overlay-enter-animation;animation:150ms forwards component-overlay-enter-animation}.component-overlay-leave{-webkit-animation:150ms forwards component-overlay-leave-animation;animation:150ms forwards component-overlay-leave-animation}@-webkit-keyframes component-overlay-enter-animation{from{background-color:transparent}to{background-color:#00000066}}@keyframes component-overlay-enter-animation{from{background-color:transparent}to{background-color:#00000066}}@-webkit-keyframes component-overlay-leave-animation{from{background-color:#00000066}to{background-color:transparent}}@keyframes component-overlay-leave-animation{from{background-color:#00000066}to{background-color:transparent}}"]}),xe(0,t.Inject(i.DOCUMENT)),Ce("design:paramtypes",[Document,lt,t.NgZone,t.ElementRef,t.Renderer2,pt])],e)}(),Wn=0,$n=function(){function e(e){var n=this;this._changeDetectorRef=e,this._name="gipi-input-select-"+Wn++,this._onDestroy=new ie.Subject,this._itemSizeScrollViewport=5,this._overlayVisible=!1,this._formControlSearch=new r.FormControl({value:"",disabled:!1}),this.inputFieldValue="",this.inputFieldValueSelected=0,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.isLoading=0,this.id=this._name,this.name=this._name,this.placeholder="Selecionar",this.labelSelectAll="Selecionar todos",this.multiple=!1,this.showClear=!1,this.showOnFocus=!0,this.hideOnEscape=!0,this.showSelectAll=!1,this.showFooter=!1,this.infiniteScroll=!0,this.showSearch=!1,this.required=!1,this.pageSize=5,this.enableClearOnEscapePressed=!0,this._disabled=!1,this._loading=!1,this.onFocus=new t.EventEmitter,this.onBlur=new t.EventEmitter,this.onClose=new t.EventEmitter,this.onSelectChange=new t.EventEmitter,this.onOpenedChange=new t.EventEmitter,this.onSearchChange=new t.EventEmitter,this.onAddChange=new t.EventEmitter,this.trackByOption=function(e,t){return t&&n.trackBy&&t[n.trackBy]?t[n.trackBy]:t},this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=e,this._disableInputSearch()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loading",{get:function(){return this._loading},set:function(e){this._loading=e,this._disableInputSearch()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paramNextBatch",{get:function(){return this._paramNextBatch},set:function(e){this._paramNextBatch=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){if(this._value=e,this.multiple)if(Array.isArray(e)&&e&&e.length){var t=e[0];this.inputFieldValue=this.property?t[this.property]:this.getPropertyValue(t),this.inputFieldValueSelected=e.length}else this.inputFieldValue="",this.inputFieldValueSelected=0;else!Array.isArray(e)&&e?(this.inputFieldValue=this.property?e[this.property]:this.getPropertyValue(e),this.inputFieldValueSelected=0):(this.inputFieldValue="",this.inputFieldValueSelected=0);this.onChange(e),this.onSelectChange.emit(e),this.onTouch(),this._changeDetectorRef.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(e){this._options=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"optionHeight",{get:function(){return 44},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollViewportHeight",{get:function(){var e=0;return this.options&&this.options.length&&(e=44*this.options.length-(this.pageSize===this.options.length?44:0)),ze.isNull(this.overlaySelect)||this.overlaySelect.alignOverlay(),e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"valueSearch",{get:function(){return this._formControlSearch.value},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this._formControlSearch.valueChanges.pipe(oe.map((function(e){return e})),oe.debounceTime(1e3),oe.distinctUntilChanged(),oe.takeUntil(this._onDestroy)).subscribe((function(t){return e._searchChange(t)})),this.indeterminateAllCheckbox()},e.prototype.ngOnDestroy=function(){this._onDestroy.next(),this._onDestroy.complete()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.value=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},e.prototype.compareFn=function(e,t){if(!this.property&&!this.propertyFn)throw new Error("O parâmetro property ou propertyFn deve conter um valor");return!this.property&&this.propertyFn&&e&&t?this.getPropertyValue(e)===this.getPropertyValue(t):e&&t&&e[this.property]===t[this.property]},e.prototype.getPropertyValue=function(e){if(!ze.isNull(e)){if(!ze.isNull(this.propertyFn))return this.propertyFn(e);if(this.property)return this._getValue(e,this.property)}return""},e.prototype._getValue=function(e,t){for(var n=t.split("."),i=e,o=0;o<n.length;o++)if((i=Reflect.get(i,n[o]))&&o===n.length-1)return i},e.prototype.onInputFocus=function(e){this.showOnFocus&&!this.disabled&&(this.showOverlay(),this.onFocus.emit(e))},e.prototype.onInputClick=function(){this.disabled||(this.showOverlay(),this._overlayVisible||this.formFieldSelect.focus())},e.prototype.onInputBlur=function(e){this.disabled||(this.onBlur.emit(e),this.onTouch())},e.prototype.onInputKeydown=function(e){this.disabled?e.stopImmediatePropagation():("ESCAPE"===e.code.toUpperCase()&&this.hideOnEscape||"ENTER"===e.code.toUpperCase()||"NUMPADENTER"===e.code.toUpperCase()||"TAB"===e.code.toUpperCase())&&this._overlayVisible&&(this.hideOverlay(),e.preventDefault())},e.prototype.onClearOptionsClick=function(e){this.disabled?e.stopImmediatePropagation():(this.multiple&&Array.isArray(this.value)?this.value=[]:this.value=null,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this._changeDetectorRef.detectChanges(),this.onSelectChange.emit(this.value),this._searchSelectInputFocus(),e.stopImmediatePropagation())},e.prototype.showOverlay=function(){this._overlayVisible||(this._overlayVisible=!0,this.indeterminateAllCheckbox(),this.onOpenedChange.emit(this._overlayVisible),this._changeDetectorRef.detectChanges(),ze.isNull(this._cache)&&this.onScroll())},e.prototype.hideOverlay=function(){this._overlayVisible=!1,this.onOpenedChange.emit(this._overlayVisible),this._cache={},this._changeDetectorRef.markForCheck()},e.prototype.toggleOverlay=function(){this.disabled||this.loading||(this._overlayVisible?this.hideOverlay():this.showOverlay())},e.prototype.onScroll=function(){return Ie(this,void 0,void 0,(function(){var e,t=this;return Se(this,(function(n){switch(n.label){case 0:return this.infiniteScroll?ze.isNull(this.nextBatchFn)?(console.error('A função "nextBatchFn" é obrigatória e não foi informada'),[2]):ze.isNull(this._pageModel)||this._pageModel.totalPages!==this._pageModel.number?(e=ze.isNull(this._pageModel)?0:this._pageModel.number+1,ze.isNull(this._cache)&&(this._cache={}),this._cache[e]?[2]:(this._cache[e]=!0,this.isLoading++,[4,this.nextBatchFn(this._formControlSearch.value,e,this.paramNextBatch).then((function(e){t._pageModel=e,t._totalOptions=e.totalElements,t.options||(t.options=[]);var n=t._pageModel.number*t.pageSize,i=Ee(t.options);i.splice.apply(i,Ee([n,t.pageSize],e.content)),t.options=i,t.toggleAllCheckboxChecked?t.onChangeToggleAllCheckbox():t.indeterminateAllCheckbox(),t.isLoading--}),(function(e){t.isLoading=0}))])):[2]:[2];case 1:return n.sent(),!ze.isNull(this.cdkVirtualScrollViewPort)&&this.options&&this.options.length&&(this.cdkVirtualScrollViewPort.scrollToIndex(this.options.length,"smooth"),this.cdkVirtualScrollViewPort.checkViewportSize()),this._changeDetectorRef.detectChanges(),[2]}}))}))},e.prototype.onButtonSelectOptionClick=function(e){if(this.multiple){if(this.value||(this.value=[]),Array.isArray(this.value)){var t=this.value.findIndex((function(t){return ze.equals(t,e)}));if(t>=0){var n=this.value;n.splice(t,1),this.value=Ee(n)}else this.value=Ee(this.value,[e])}}else Array.isArray(this.value)||(this.value=e);this.indeterminateAllCheckbox(),this.onSelectChange.emit(this.value),this._changeDetectorRef.detectChanges()},e.prototype.indeterminateAllCheckbox=function(){this.multiple&&this.showSelectAll&&((!Array.isArray(this.value)||!this.value||this.value&&!this.value.length||!this.options||this.options&&!this.options.length)&&(this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1),Array.isArray(this.value)&&(this.infiniteScroll?(this.toggleAllCheckboxChecked=this.value&&this._pageModel&&this.value.length>0&&this._totalOptions>0&&this.value.length===this._totalOptions,this.toggleAllCheckboxIndeterminate=this.value.length>0&&this.value.length<this._totalOptions):(this.toggleAllCheckboxChecked=this.value&&this.value.length>0&&this.options&&this.options.length>0&&this.value.length===this.options.length,this.toggleAllCheckboxIndeterminate=this.value.length>0&&this.options.length>0&&this.value.length<this.options.length)),this._changeDetectorRef.detectChanges())},e.prototype.optionCheckboxIsChecked=function(e){return!!this.multiple&&(Array.isArray(this.value)&&this.value&&this.value.length?(this._changeDetectorRef.markForCheck(),this.value.findIndex((function(t){return ze.equals(t,e)}))>-1):void 0)},e.prototype.onClickSelectAllByOption=function(){this.disabled||this.loading||(this.toggleAllCheckboxChecked=!this.toggleAllCheckboxChecked,this.onChangeToggleAllCheckbox())},e.prototype.onChangeToggleAllCheckbox=function(){this.multiple&&(this.toggleAllCheckboxChecked?this.value=Ee(this.options):this.value=[],this.indeterminateAllCheckbox())},e.prototype.onClickAddOptions=function(){if(this.multiple&&!this.showSelectAll){var e={values:this.value,selectedAll:!1};this.onAddChange.emit(e)}},e.prototype._disableInputSearch=function(){this.disabled||this.loading?this._formControlSearch.disable():this._formControlSearch.enable()},e.prototype._searchChange=function(e){this._overlayVisible&&(this.loading=!0,this.onSearchChange.emit(e),this._pageModel=null,this.options=[],this._cache={},this.onScroll(),this.loading=!1,this._changeDetectorRef.detectChanges())},e.prototype._searchSelectInputFocus=function(){!ze.isNull(this.formfieldSelectSearchInput)&&this._overlayVisible&&this.formfieldSelectSearchInput.focus()},e.prototype._searchSelectInputReset=function(e){this._formControlSearch.setValue(""),e&&this._searchSelectInputFocus()},e.prototype.onInputSearchKeydown=function(e){var t=this;(e.key&&1===e.key.length||e.keyCode>=se.A&&e.keyCode<=se.Z||e.keyCode>=se.ZERO&&e.keyCode<=se.NINE||e.keyCode===se.SPACE)&&e.stopPropagation(),this.multiple&&e.key&&e.keyCode===se.ENTER&&setTimeout((function(){return t._searchSelectInputFocus()})),this.enableClearOnEscapePressed&&e.keyCode===se.ESCAPE&&this._formControlSearch.value&&(this._searchSelectInputReset(!0),e.stopPropagation())},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},we([t.ViewChild("formfieldSelectSearchInput",{read:Pn,static:!0}),Ce("design:type",Pn)],e.prototype,"formfieldSelectSearchInput",void 0),we([t.ViewChild("formFieldSelect",{read:Pn,static:!1}),Ce("design:type",Pn)],e.prototype,"formFieldSelect",void 0),we([t.ViewChild("overlaySelect",{read:qn,static:!1}),Ce("design:type",qn)],e.prototype,"overlaySelect",void 0),we([t.ViewChild(v.CdkVirtualScrollViewport,{static:!1}),Ce("design:type",v.CdkVirtualScrollViewport)],e.prototype,"cdkVirtualScrollViewPort",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"labelSelectAll",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"multiple",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showClear",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showOnFocus",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideOnEscape",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showSelectAll",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showFooter",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"infiniteScroll",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showSearch",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"property",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"trackBy",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"appendTo",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"propertyFn",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"nextBatchFn",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"pageSize",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"enableClearOnEscapePressed",void 0),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disabled",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"loading",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"paramNextBatch",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"value",null),we([t.Input(),Ce("design:type",Array),Ce("design:paramtypes",[Array])],e.prototype,"options",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClose",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onSelectChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onOpenedChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onSearchChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onAddChange",void 0),e=n=we([t.Component({selector:"gipi-input-select",exportAs:"gipiInputSelect",template:'<gipi-form-field #formFieldSelect\n [id]="id"\n [name]="name"\n [type]="\'select\'"\n [readonly]="true"\n [disabled]="disabled"\n [required]="required"\n [label]="label"\n [placeholder]="placeholder"\n [showClear]="inputFieldValue && showClear && !disabled && !loading"\n [showTrigger]="inputFieldValueSelected && (inputFieldValueSelected > 1)"\n [trigger]="inputFieldValueSelected"\n [ariaLabel]="ariaLabel"\n [(ngModel)]="inputFieldValue"\n (onKeydown)="onInputKeydown($event)"\n (onClear)="onClearOptionsClick($event)"\n (onFocus)="onInputFocus($event)"\n (onBlur)="onInputBlur($event)"\n (onClick)="onInputClick()">\n</gipi-form-field>\n\n<gipi-overlay *ngIf="!disabled && !loading"\n contentStyleClass="overlay-select"\n #overlaySelect\n [(visible)]="_overlayVisible"\n [autoZIndex]="true"\n [appendTo]="appendTo ? appendTo : \'body\'"\n (onShow)="onOpenedChange.emit(true)"\n (onHide)="onOpenedChange.emit(false)">\n <div class="select-search"\n *ngIf="showSearch"\n [class.disabled]="showSelectAll && (disabled || loading || (isLoading > 0))">\n <mat-checkbox *ngIf="multiple && showSelectAll"\n class="select-search-toggle-all-checkbox"\n [disabled]="disabled || loading || !options || (options && !options.length)"\n [(ngModel)]="toggleAllCheckboxChecked"\n [indeterminate]="toggleAllCheckboxIndeterminate"\n (change)="onChangeToggleAllCheckbox()">\n </mat-checkbox>\n\n <gipi-form-field #formfieldSelectSearchInput\n placeholder="Pesquisar"\n type="search"\n [style.width]="\'100%\'"\n [formControl]="_formControlSearch"\n [showClear]="valueSearch && !disabled && !loading && isLoading <= 0"\n (onKeydown)="onInputSearchKeydown($event)">\n </gipi-form-field>\n </div>\n\n <div class="select-row select-option-all"\n [style.height.px]="40"\n [class.disabled]="disabled || loading"\n *ngIf="(!showSearch && multiple && showSelectAll)"\n (click)="onClickSelectAllByOption()">\n <mat-pseudo-checkbox *ngIf="multiple"\n class="select-mat-option-pseudo-checkbox"\n [state]="toggleAllCheckboxIndeterminate ? \'indeterminate\' : toggleAllCheckboxChecked ? \'checked\' : \'\'">\n </mat-pseudo-checkbox>\n\n <span> {{ labelSelectAll ? labelSelectAll : \'Selecionar todos\' }} </span>\n </div>\n\n <cdk-virtual-scroll-viewport *ngIf="(options && options.length) && (!loading || isLoading <= 0)"\n class="select-virtual-scroll-viewport"\n [style.height.px]="scrollViewportHeight"\n [itemSize]="_itemSizeScrollViewport"\n GIPIInfiniteScroll\n [infiniteScrollDistance]="\'30%\'"\n [infiniteScrollThrottle]="50"\n [infiniteScrollcomplete]="options && _totalOptions && options.length === _totalOptions"\n (scrolled)="onScroll()">\n <div *cdkVirtualFor="let option of options; trackBy: trackByOption"\n class="select-row"\n [style.height.px]="optionHeight"\n [class.disabled]="disabled || loading"\n (click)="onButtonSelectOptionClick(option)">\n <mat-pseudo-checkbox *ngIf="multiple && option"\n class="select-mat-option-pseudo-checkbox"\n [state]="optionCheckboxIsChecked(option) ? \'checked\' : \'\'">\n </mat-pseudo-checkbox>\n\n <span> {{ option ? getPropertyValue(option) : \'\' }} </span>\n </div>\n </cdk-virtual-scroll-viewport>\n\n <div *ngIf="loading || isLoading > 0"\n class="select-loading">\n <div class="dot-pulse"> </div>\n </div>\n\n <div *ngIf="(!options || (options && options.length <= 0)) && !loading && (isLoading <= 0)"\n class="select-not-found">\n <mat-icon>sentiment_very_dissatisfied</mat-icon>\n Nenhum registro foi encontrado\n </div>\n\n <div class="select-footer"\n *ngIf="multiple && !showSelectAll && showFooter">\n <gipi-button label="Adicionar"\n gipi-primary\n id="btnAddOptions"\n [style.width]="\'100%\'"\n [disabled]="disabled || loading || (!value || (value && !value.length))"\n (click)="onClickAddOptions()">\n </gipi-button>\n </div>\n</gipi-overlay>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-input-select"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[':host{display:block;min-width:0;max-width:100%;flex:1}::ng-deep .overlay-select{padding:0!important;overflow:hidden!important}::ng-deep .select-virtual-scroll-viewport{width:100%!important;max-height:240px;overflow:auto}::ng-deep .select-virtual-scroll-viewport .cdk-virtual-scroll-content-wrapper{width:100%!important;position:relative!important}::ng-deep .select-virtual-scroll-viewport::-webkit-scrollbar{width:15px}::ng-deep .select-virtual-scroll-viewport::-webkit-scrollbar-thumb{background-color:#e0e1e2;border-radius:10px;border:4px solid transparent;background-clip:padding-box}::ng-deep .select-row{display:flex;align-items:center;padding:0 16px;cursor:pointer;font-size:1.3rem;line-height:100%;gap:1rem}::ng-deep .select-row:hover{background:#f5f5f6}::ng-deep .select-row:active{background:#e0e1e2}::ng-deep .select-row.disabled{background-color:#d1d2d4!important;color:#9a9da2!important;cursor:not-allowed!important;pointer-events:none!important}::ng-deep .select-row>span{display:-webkit-box;line-clamp:2;box-orient:vertical;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis;overflow:hidden}.select-search{display:flex;align-items:center;font-size:1.4rem;line-height:100%;gap:1rem;padding:8px 12px}.select-option-all{border-bottom:1px solid #0000001f}.select-not-found{display:flex;flex-direction:column;align-items:center;justify-content:center;font-weight:600;font-size:1.2rem;gap:8px;color:#131313;cursor:default;padding:1.6rem 0}.select-not-found>mat-icon{width:2.8rem;height:2.8rem;font-size:2.8rem;line-height:2.8rem;color:#131313}.select-loading{height:4rem;width:100%;background-color:#fff;display:flex;align-items:center;justify-content:center}.select-loading .dot-pulse{position:relative;left:-9999px;width:5px;height:5px;border-radius:50%;background-color:#e0313e;color:#e0313e;box-shadow:9999px 0 0 -5px;-webkit-animation:1.5s linear .25s infinite dot-pulse;animation:1.5s linear .25s infinite dot-pulse}.select-loading .dot-pulse::after,.select-loading .dot-pulse::before{content:"";display:inline-block;position:absolute;top:0;width:5px;height:5px;border-radius:50%;background-color:#e0313e;color:#e0313e}.select-loading .dot-pulse::before{box-shadow:9984px 0 0 -5px;-webkit-animation:1.5s linear infinite dot-pulse-before;animation:1.5s linear infinite dot-pulse-before}.select-loading .dot-pulse::after{box-shadow:10014px 0 0 -5px;-webkit-animation:1.5s linear .5s infinite dot-pulse-after;animation:1.5s linear .5s infinite dot-pulse-after}@-webkit-keyframes dot-pulse-before{0%,100%,60%{box-shadow:9984px 0 0 -5px}30%{box-shadow:9984px 0 0 2px}}@keyframes dot-pulse-before{0%,100%,60%{box-shadow:9984px 0 0 -5px}30%{box-shadow:9984px 0 0 2px}}@-webkit-keyframes dot-pulse{0%,100%,60%{box-shadow:9999px 0 0 -5px}30%{box-shadow:9999px 0 0 2px}}@keyframes dot-pulse{0%,100%,60%{box-shadow:9999px 0 0 -5px}30%{box-shadow:9999px 0 0 2px}}@-webkit-keyframes dot-pulse-after{0%,100%,60%{box-shadow:10014px 0 0 -5px}30%{box-shadow:10014px 0 0 2px}}@keyframes dot-pulse-after{0%,100%,60%{box-shadow:10014px 0 0 -5px}30%{box-shadow:10014px 0 0 2px}}.select-footer{display:flex;align-items:center;gap:1rem;padding:8px 12px;border-top:1px solid #bfbfbf}::ng-deep .select-mat-option-pseudo-checkbox{margin:0!important}']}),Ce("design:paramtypes",[t.ChangeDetectorRef])],e)}(),Kn=0,Xn=function(){function e(e,n,i){var o=this;this._changeDetectorRef=e,this._elementRef=n,this._renderer=i,this._name="gipi-input-select-listbox-"+Kn++,this._isOverlayChildrenClicked=!1,this._overlayVisible=!1,this._selectEntityOpened=!1,this._radioValue="ALL",this.id=this._name,this.name=this._name,this.placeholder="Selecionar",this.placeholderSelected="Opções selecionadas",this.placeholderSearch="Selecionar",this.multiple=!1,this.disabled=!1,this.loading=!1,this.hideFilterType=!1,this.showOnFocus=!0,this.hideOnEscape=!0,this.showSearch=!0,this.onFocus=new t.EventEmitter,this.onBlur=new t.EventEmitter,this.onClose=new t.EventEmitter,this.onOpenedChange=new t.EventEmitter,this.onSelectChange=new t.EventEmitter,this.onApply=new t.EventEmitter,this.trackByOption=function(e,t){return o.trackBy?t[o.trackBy]:t},this.onChange=function(){},this.onTouch=function(){},this.documentClick=function(){return o._selectEntityOpened}}var n;return n=e,Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.onChange(e),this.onTouch(),ze.isNull(this.overlaySelectListbox)||this.overlaySelectListbox.alignOverlay()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(e){this._options=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"valueInput",{get:function(){return"ALL"===this._radioValue?"Todas as opções selecionadas":Ot.isEmpty(this.value)?Be.isEmpty(this.placeholder)?"":this.placeholder:this.placeholderSelected},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.value=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},e.prototype.getPropertyValue=function(e){if(!ze.isNull(e)){if(!ze.isNull(this.propertyFn))return this.propertyFn(e);if(this.property)return this._getValue(e,this.property)}return""},e.prototype._getValue=function(e,t){for(var n=t.split("."),i=e,o=0;o<n.length;o++)if((i=Reflect.get(i,n[o]))&&o===n.length-1)return i},e.prototype.onInputFocus=function(e){this.showOnFocus&&!this.disabled&&this.showOverlay(),this.onFocus.emit(e)},e.prototype.onInputClick=function(){this.disabled||(this.showOverlay(),this._overlayVisible||this.formFieldSelectListbox.focus())},e.prototype.onInputBlur=function(e){this.disabled||(this.onBlur.emit(e),this.onTouch())},e.prototype.onInputKeydown=function(e){this.disabled?e.stopImmediatePropagation():("ESCAPE"===e.code.toUpperCase()&&this.hideOnEscape||"ENTER"===e.code.toUpperCase()||"NUMPADENTER"===e.code.toUpperCase()||"TAB"===e.code.toUpperCase())&&this._overlayVisible&&this.hideOverlay()},e.prototype.showOverlay=function(){this._overlayVisible||(this._overlayVisible=!0,this.onOpenedChange.emit(this._overlayVisible),this._changeDetectorRef.detectChanges())},e.prototype.hideOverlay=function(){this._overlayVisible=!1,this._changeDetectorRef.markForCheck()},e.prototype.toggleOverlay=function(){this.disabled||this.loading||(this._overlayVisible?this.hideOverlay():this.showOverlay())},e.prototype.onSelectEntityOpened=function(e){this._selectEntityOpened=e,ze.isNull(this.overlaySelectListbox)||this.overlaySelectListbox.alignOverlay(),this._changeDetectorRef.markForCheck()},e.prototype.onChangeInputSelect=function(e,t){Ot.isEmpty(e)||"ALL"!==this._radioValue||this.onClickRadioButton("BY_SELECTION",t)},e.prototype.resizeOverlay=function(e){this._overlayVisible&&(this.hideOverlay(),this._changeDetectorRef.detectChanges())},e.prototype.onRemoveOptionsSelected=function(e,t){var n=Ee(this.value),i=n.findIndex((function(t){return t===e}));i>=0&&(n.splice(i,1),this.value=Ee(n),Ot.isEmpty(n)?(t.toggleAllCheckboxChecked=!1,t.toggleAllCheckboxIndeterminate=!1):t.indeterminateAllCheckbox(),this._changeDetectorRef.detectChanges())},e.prototype.onChangeRadioGroup=function(e,t){e.value===this._radioValue||"BY_SELECTION"===this._radioValue?(t.reset(),this._radioValue="BY_SELECTION"):"ALL"!==e.value||Ot.isEmpty(this.value)?this._radioValue=e.value:(t.reset(),this._radioValue="BY_SELECTION"),ze.isNull(this.overlaySelectListbox)||this.overlaySelectListbox.alignOverlay(),this._changeDetectorRef.markForCheck()},e.prototype.onClickRadioButton=function(e,t){e===this._radioValue?(t.reset(),this._radioValue="BY_SELECTION"):"ALL"!==e||Ot.isEmpty(this.value)?this._radioValue=e:(t.reset(),this._radioValue="BY_SELECTION"),ze.isNull(this.overlaySelectListbox)||this.overlaySelectListbox.alignOverlay(),this._changeDetectorRef.markForCheck()},e.prototype.onClickClear=function(e){this.value=[],ze.isNull(this.inputSelect)||(e=this.inputSelect),ze.isNull(e)||(e.toggleAllCheckboxChecked=!1,e.toggleAllCheckboxIndeterminate=!1),this._radioValue=this.hideFilterType?"BY_SELECTION":"ALL",ze.isNull(this.overlaySelectListbox)||this.overlaySelectListbox.alignOverlay(),this._changeDetectorRef.markForCheck()},e.prototype.onClickApply=function(){var e={filterType:this._radioValue,values:this.value};this.onApply.emit(e),this.hideOverlay()},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef},{type:t.Renderer2}]},we([t.ViewChild("formFieldSelectListbox",{read:Pn,static:!1}),Ce("design:type",Pn)],e.prototype,"formFieldSelectListbox",void 0),we([t.ViewChild("overlaySelectListbox",{read:qn,static:!1}),Ce("design:type",qn)],e.prototype,"overlaySelectListbox",void 0),we([t.ViewChild("inputSelect",{read:$n,static:!1}),Ce("design:type",$n)],e.prototype,"inputSelect",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholderSelected",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholderSearch",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"multiple",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"readonly",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideFilterType",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showOnFocus",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideOnEscape",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showSearch",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"property",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"trackBy",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"propertyFn",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"nextBatchFn",void 0),we([t.Input(),Ce("design:type",Array),Ce("design:paramtypes",[Array])],e.prototype,"value",null),we([t.Input(),Ce("design:type",Array),Ce("design:paramtypes",[Array])],e.prototype,"options",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClose",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onOpenedChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onSelectChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onApply",void 0),we([t.HostListener("window:resize",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[UIEvent]),Ce("design:returntype",void 0)],e.prototype,"resizeOverlay",null),e=n=we([t.Component({selector:"gipi-input-select-listbox",exportAs:"gipiInputSelectListbox",template:'<gipi-form-field #formFieldSelectListbox\n [id]="id"\n [name]="name"\n [type]="\'select\'"\n [readonly]="true"\n [disabled]="disabled"\n [required]="required"\n [label]="label"\n [placeholder]="placeholder"\n [showClear]="false"\n [showTrigger]="value && (value.length > 1)"\n [trigger]="value ? value.length : 0"\n [ariaLabel]="ariaLabel"\n [value]="valueInput"\n (onKeydown)="onInputKeydown($event)"\n (onFocus)="onInputFocus($event)"\n (onBlur)="onInputBlur($event)"\n (onClick)="onInputClick()"\n (onClear)="onClickClear($event)">\n</gipi-form-field>\n\n<gipi-overlay *ngIf="!disabled && !loading"\n contentStyleClass="overlay-select-listbox"\n appendTo="body"\n [(visible)]="_overlayVisible"\n [documentClick]="documentClick"\n (onShow)="onOpenedChange.emit(true)"\n (onHide)="onOpenedChange.emit(false)">\n <div class="overlay-select-listbox-content">\n <div *ngIf="_selectEntityOpened"\n class="overlay-select-listbox-backdrop">\n </div>\n\n <gipi-input-select style="z-index: 2;"\n #inputSelect\n [placeholder]="placeholderSearch"\n [required]="true"\n [showSearch]="showSearch"\n [property]="property"\n [propertyFn]="propertyFn"\n [trackBy]="trackBy"\n [options]="options"\n [multiple]="true"\n [disabled]="disabled"\n [nextBatchFn]="nextBatchFn"\n [(ngModel)]="value"\n (onOpenedChange)="onSelectEntityOpened($event)"\n (onSelectChange)="onChangeInputSelect($event, matRadioGroup)">\n </gipi-input-select>\n\n <div class="listbox-selected"\n *ngIf="(_radioValue !== \'ALL\') || hideFilterType">\n <span> Opções selecionadas </span>\n\n <div class="list">\n <div class="option"\n *ngFor="let option of value; trackBy: trackByOption">\n {{\n (getPropertyValue(option).length > 50)\n ? (getPropertyValue(option) | slice:0:47) + \'...\'\n : getPropertyValue(option)\n }}\n\n <button aria-label="Remover"\n matTooltip="Remover"\n (click)="onRemoveOptionsSelected(option, inputSelect)">\n <svg width="14"\n height="14"\n viewBox="0 0 14 14"\n fill="none"\n xmlns="http://www.w3.org/2000/svg">\n <path d="M11.8125 2.625H9.1875V1.96875C9.1875 1.67867 9.07227 1.40047 8.86715 1.19535C8.66203 0.990234 8.38383 0.875 8.09375 0.875H5.90625C5.61617 0.875 5.33797 0.990234 5.13285 1.19535C4.92773 1.40047 4.8125 1.67867 4.8125 1.96875V2.625H2.1875C2.07147 2.625 1.96019 2.67109 1.87814 2.75314C1.79609 2.83519 1.75 2.94647 1.75 3.0625C1.75 3.17853 1.79609 3.28981 1.87814 3.37186C1.96019 3.45391 2.07147 3.5 2.1875 3.5H2.65234L3.17188 11.8377C3.2107 12.5718 3.77344 13.125 4.48438 13.125H9.51562C10.2301 13.125 10.7816 12.5841 10.8281 11.8398L11.3477 3.5H11.8125C11.9285 3.5 12.0398 3.45391 12.1219 3.37186C12.2039 3.28981 12.25 3.17853 12.25 3.0625C12.25 2.94647 12.2039 2.83519 12.1219 2.75314C12.0398 2.67109 11.9285 2.625 11.8125 2.625ZM5.26559 11.375H5.25C5.13662 11.3751 5.02764 11.3311 4.94602 11.2524C4.86441 11.1737 4.81654 11.0664 4.8125 10.9531L4.59375 4.82809C4.58962 4.71205 4.63175 4.59913 4.71087 4.51416C4.78999 4.42919 4.89963 4.37913 5.01566 4.375C5.1317 4.37087 5.24462 4.413 5.32959 4.49212C5.41456 4.57124 5.46462 4.68088 5.46875 4.79691L5.6875 10.9219C5.68958 10.9794 5.68032 11.0367 5.66024 11.0906C5.64016 11.1444 5.60965 11.1938 5.57046 11.2359C5.53128 11.278 5.48418 11.3119 5.43187 11.3358C5.37956 11.3597 5.32305 11.373 5.26559 11.375ZM7.4375 10.9375C7.4375 11.0535 7.39141 11.1648 7.30936 11.2469C7.22731 11.3289 7.11603 11.375 7 11.375C6.88397 11.375 6.77269 11.3289 6.69064 11.2469C6.60859 11.1648 6.5625 11.0535 6.5625 10.9375V4.8125C6.5625 4.69647 6.60859 4.58519 6.69064 4.50314C6.77269 4.42109 6.88397 4.375 7 4.375C7.11603 4.375 7.22731 4.42109 7.30936 4.50314C7.39141 4.58519 7.4375 4.69647 7.4375 4.8125V10.9375ZM8.3125 2.625H5.6875V1.96875C5.68717 1.93993 5.6926 1.91134 5.70348 1.88465C5.71436 1.85796 5.73046 1.83371 5.75084 1.81334C5.77121 1.79296 5.79546 1.77686 5.82215 1.76598C5.84884 1.7551 5.87743 1.74967 5.90625 1.75H8.09375C8.12257 1.74967 8.15116 1.7551 8.17785 1.76598C8.20454 1.77686 8.22879 1.79296 8.24917 1.81334C8.26954 1.83371 8.28564 1.85796 8.29652 1.88465C8.3074 1.91134 8.31283 1.93993 8.3125 1.96875V2.625ZM9.1875 10.9531C9.18346 11.0664 9.13559 11.1737 9.05398 11.2524C8.97236 11.3311 8.86338 11.3751 8.75 11.375H8.73414C8.6767 11.373 8.62022 11.3596 8.56794 11.3357C8.51566 11.3118 8.4686 11.2779 8.42944 11.2358C8.39028 11.1937 8.3598 11.1444 8.33974 11.0905C8.31967 11.0366 8.31042 10.9794 8.3125 10.9219L8.53125 4.79691C8.5333 4.73946 8.54664 4.68297 8.57052 4.63068C8.59439 4.57838 8.62834 4.5313 8.67041 4.49212C8.71248 4.45294 8.76186 4.42243 8.81573 4.40234C8.86959 4.38224 8.92688 4.37295 8.98434 4.375C9.04179 4.37705 9.09828 4.39039 9.15057 4.41427C9.20287 4.43814 9.24995 4.47209 9.28913 4.51416C9.32831 4.55623 9.35882 4.60561 9.37891 4.65948C9.39901 4.71334 9.4083 4.77063 9.40625 4.82809L9.1875 10.9531Z"\n fill="#595959" />\n </svg>\n </button>\n </div>\n </div>\n </div>\n\n <mat-radio-group class="listbox-radio-group"\n [fxHide]="hideFilterType"\n [required]="false"\n [ngModel]="_radioValue"\n #matRadioGroup="ngModel"\n (change)="onChangeRadioGroup($event, matRadioGroup)">\n <mat-radio-button value="TO_OMIT"\n (click)="onClickRadioButton(\'TO_OMIT\', matRadioGroup)">\n Omitir\n </mat-radio-button>\n <mat-radio-button value="ALL"\n [disabled]="value && (value.length > 0)"\n (click)="onClickRadioButton(\'ALL\', matRadioGroup)">\n Selecionar todos\n </mat-radio-button>\n </mat-radio-group>\n\n <div class="footer"\n [ngStyle]="hideFilterType && {\'border-top-color\': \'transparent\'}">\n <gipi-button label="Limpar"\n gipi-secondary\n id="btnClear"\n [style.width]="\'100%\'"\n [disabled]="disabled || loading"\n (click)="onClickClear(inputSelect)">\n </gipi-button>\n <gipi-button label="Aplicar"\n gipi-primary\n id="btnApply"\n [style.width]="\'100%\'"\n [disabled]="disabled || loading || ((!value || (value && !value.length)) && _radioValue !== \'ALL\')"\n (click)="onClickApply()">\n </gipi-button>\n </div>\n </div>\n</gipi-overlay>\n',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-input-select-listbox"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:block;min-width:0;max-width:100%;flex:1}::ng-deep .overlay-select-listbox{padding:0!important}::ng-deep .listbox-radio-group{display:flex;align-items:center;justify-content:center;flex-direction:row;gap:16px}.overlay-select-listbox-content{display:flex;flex-direction:column;align-items:stretch;justify-content:center;padding:12px;width:100%;gap:1rem;position:relative}.overlay-select-listbox-content .overlay-select-listbox-backdrop{background:rgba(0,0,0,.32);opacity:1;position:absolute;top:0;bottom:0;left:0;right:0;z-index:1;border-radius:4px;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.overlay-select-listbox-content .listbox-selected{display:flex;flex-direction:column;gap:16px;background-color:#f5f5f6;border-radius:4px;padding:8px;overflow:hidden;width:100%}.overlay-select-listbox-content .listbox-selected>span{font-size:1.4rem;font-weight:600;line-height:100%;color:#131313}.overlay-select-listbox-content .listbox-selected .list{display:flex;flex-direction:column;gap:4px;width:100%;height:9rem;overflow-x:hidden;overflow-y:auto}.overlay-select-listbox-content .listbox-selected .list::-webkit-scrollbar{width:15px}.overlay-select-listbox-content .listbox-selected .list::-webkit-scrollbar-thumb{background-color:#d1d2d4;border-radius:10px;border:4px solid transparent;background-clip:padding-box}.overlay-select-listbox-content .listbox-selected .list .option{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:4px 12px;gap:8px;font-weight:400;font-size:1.4rem;line-height:1.6rem;color:#595959;transition:.1s;border-radius:4px}.overlay-select-listbox-content .listbox-selected .list .option:hover{background-color:#e0e1e2}.overlay-select-listbox-content .listbox-selected .list .option:hover>button{visibility:visible!important}.overlay-select-listbox-content .listbox-selected .list .option>button{display:flex;align-items:center;justify-content:center;outline:0;border:none;padding:2px;border-radius:4px;cursor:pointer;background-color:transparent;visibility:hidden}.overlay-select-listbox-content .listbox-selected .list .option>button>svg{width:1.4rem;height:1.4rem;line-height:1.6rem}.overlay-select-listbox-content .listbox-selected .list .option>button:hover>svg{transform:scale(1.08)}.overlay-select-listbox-content .footer{border-top:1px solid #bfbfbf;padding-top:12px;display:flex;align-items:center;gap:1rem}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef,t.ElementRef,t.Renderer2])],e)}(),Zn=function(){function e(e,t,n,i,o){var a=this;void 0===i&&(i=null),void 0===o&&(o=null),this.matSelect=e,this.changeDetectorRef=t,this._viewportRuler=n,this.matOption=i,this.matFormField=o,this._options$=new ie.BehaviorSubject(null),this.optionsList$=this._options$.pipe(oe.switchMap((function(e){return e?e.changes.pipe(oe.map((function(e){return e.toArray()})),oe.startWith(e.toArray())):ie.of(null)}))),this.optionsLength$=this.optionsList$.pipe(oe.map((function(e){return e?e.length:0}))),this._formControl=new r.FormControl(""),this._showNoEntriesFound$=ie.combineLatest([this._formControl.valueChanges,this.optionsLength$]).pipe(oe.map((function(e){var t=Oe(e,2),n=t[0],i=t[1];return n&&i===a.getOptionsLengthOffset()}))),this._onDestroy=new ie.Subject,this.placeholderLabel="Pesquisar",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.hideClearSearchButton=!1,this.onTouched=function(e){}}var n;return n=e,Object.defineProperty(e.prototype,"value",{get:function(){return this._formControl.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_options",{get:function(){return this._options$.getValue()},set:function(e){this._options$.next(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isInsideMatOption",{get:function(){return!!this.matOption},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("aria-hidden","true")):console.error("<gipi-select-search> deve ser colocado dentro de um elemento <mat-option>"),this.matSelect.openedChange.pipe(oe.delay(1),oe.takeUntil(this._onDestroy)).subscribe((function(t){t?(e.updateInputWidth(),e.disableInitialFocus||e._focus()):e.clearSearchInput&&e._reset()})),this.matSelect.openedChange.pipe(oe.take(1),oe.switchMap((function(){e._options=e.matSelect.options;var t=e._options.toArray()[e.getOptionsLengthOffset()];return e._options.changes.pipe(oe.tap((function(){setTimeout((function(){var n=e._options.toArray(),i=n[e.getOptionsLengthOffset()],o=e.matSelect._keyManager;o&&e.matSelect.panelOpen&&(!!e.matSelect.compareWith(t,i)&&o.activeItem&&n.find((function(t){return e.matSelect.compareWith(t,o.activeItem)}))||o.setFirstItemActive(),setTimeout((function(){e.updateInputWidth()})));t=i}))})))}))).pipe(oe.takeUntil(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(oe.takeUntil(this._onDestroy)).subscribe((function(t){e.matOption&&(t?e.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):e.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))})),this._viewportRuler.change().pipe(oe.takeUntil(this._onDestroy)).subscribe((function(){e.matSelect.panelOpen&&e.updateInputWidth()})),this.optionsList$.pipe(oe.takeUntil(this._onDestroy)).subscribe((function(){e.changeDetectorRef.markForCheck()}))},e.prototype.ngOnChanges=function(e){this.searching?this._formControl.disable():(this._formControl.enable(),this._focus())},e.prototype.ngOnDestroy=function(){this._onDestroy.next(),this._onDestroy.complete()},e.prototype.registerOnChange=function(e){var t=this;this._formControl.valueChanges.pipe(oe.filter((function(e){return e!==t._lastExternalInputValue})),oe.tap((function(){return t._lastExternalInputValue=void 0})),oe.takeUntil(this._onDestroy)).subscribe(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.writeValue=function(e){this._lastExternalInputValue=e,this._formControl.setValue(e),this.changeDetectorRef.markForCheck()},e.prototype._handleKeydown=function(e){var t=this;(e.key&&1===e.key.length||e.keyCode>=se.A&&e.keyCode<=se.Z||e.keyCode>=se.ZERO&&e.keyCode<=se.NINE||e.keyCode===se.SPACE||this.preventHomeEndKeyPropagation&&(e.keyCode===se.HOME||e.keyCode===se.END))&&e.stopPropagation(),this.matSelect.multiple&&e.key&&e.keyCode===se.ENTER&&setTimeout((function(){return t._focus()})),!0===this.enableClearOnEscapePressed&&e.keyCode===se.ESCAPE&&this.value&&(this._reset(!0),e.stopPropagation())},e.prototype._handleKeyup=function(e){if(e.keyCode===se.UP_ARROW||e.keyCode===se.DOWN_ARROW){var t=this.matSelect._getAriaActiveDescendant(),n=this._options.toArray().findIndex((function(e){return e.id===t}));-1!==n&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[n]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",t))}},e.prototype.onBlur=function(){this.unselectActiveDescendant(),this.onTouched()},e.prototype._focus=function(){if(this.searchSelectInput&&this.matSelect.panel){var e=this.matSelect.panel.nativeElement,t=e.scrollTop;this.searchSelectInput.nativeElement.focus(),e.scrollTop=t}},e.prototype._reset=function(e){this._formControl.setValue(""),e&&this._focus()},e.prototype.updateInputWidth=function(){if(this.innerSelectSearch&&this.innerSelectSearch.nativeElement){for(var e,t=this.innerSelectSearch.nativeElement;t=t.parentElement;)if(t.classList.contains("mat-select-panel")){e=t;break}e&&(this.innerSelectSearch.nativeElement.style.width=e.clientWidth+"px")}},e.prototype.getOptionsLengthOffset=function(){return this.matOption?1:0},e.prototype.unselectActiveDescendant=function(){this.activeDescendant&&this.activeDescendant.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")},e.ctorParameters=function(){return[{type:a.MatSelect,decorators:[{type:t.Inject,args:[a.MatSelect]}]},{type:t.ChangeDetectorRef},{type:v.ViewportRuler},{type:a.MatOption,decorators:[{type:t.Optional},{type:t.Inject,args:[a.MatOption]}]},{type:a.MatFormField,decorators:[{type:t.Optional},{type:t.Inject,args:[a.MatFormField]}]}]},we([t.Input(),Ce("design:type",String)],e.prototype,"placeholderLabel",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"clearSearchInput",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"searching",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disableInitialFocus",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"enableClearOnEscapePressed",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"preventHomeEndKeyPropagation",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disableScrollToActiveOnOptionsChanged",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideClearSearchButton",void 0),we([t.ViewChild("searchSelectInput",{read:t.ElementRef,static:!0}),Ce("design:type",t.ElementRef)],e.prototype,"searchSelectInput",void 0),we([t.ViewChild("innerSelectSearch",{read:t.ElementRef,static:!0}),Ce("design:type",t.ElementRef)],e.prototype,"innerSelectSearch",void 0),we([t.HostBinding("class.mat-select-search-inside-mat-option"),Ce("design:type",Boolean),Ce("design:paramtypes",[])],e.prototype,"isInsideMatOption",null),e=n=we([t.Component({selector:"gipi-input-search",exportAs:"gipiInputSearch",template:'\x3c!-- Espaço reservado para ajustar o deslocamento vertical dos elementos mat-option --\x3e\n<input matInput\n class="mat-select-search-input mat-select-search-hidden" />\n\n\x3c!-- Note: o mat-datepicker-content mat-tab-header é necessário para herdar as cores do tema do material, consulte PR nº 22 --\x3e\n<div #innerSelectSearch\n class="mat-select-search-inner mat-typography mat-datepicker-content mat-tab-header">\n\n <input class="mat-select-search-input mat-input-element"\n autocomplete="off"\n type="text"\n #searchSelectInput\n [placeholder]="placeholderLabel"\n [formControl]="_formControl"\n (keydown)="_handleKeydown($event)"\n (keyup)="_handleKeyup($event)"\n (blur)="onBlur()">\n\n <mat-spinner *ngIf="searching"\n class="mat-select-search-spinner"\n diameter="16">\n </mat-spinner>\n\n <button *ngIf="!hideClearSearchButton && value && !searching"\n class="mat-select-search-clear"\n aria-label="Limpar"\n mat-icon-button\n (click)="_reset(true)">\n <mat-icon> close </mat-icon>\n </button>\n\n <mat-divider> </mat-divider>\n</div>\n\n<div *ngIf="(_showNoEntriesFound$ | async) && !searching"\n class="mat-select-search-no-entries-found">\n <mat-icon>sentiment_very_dissatisfied</mat-icon>\n Nenhum registro foi encontrado\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-input-search"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:['@charset "UTF-8";.mat-select-search-hidden{visibility:hidden}.mat-select-search-inner{position:absolute;top:0;left:0;width:100%;height:3em;border-bottom:none!important;z-index:100;font-size:inherit;box-shadow:none;border-radius:4px 4px 0 0}.mat-select-search-inner.mat-select-search-inner-multiple{width:100%}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all{display:flex;align-items:center}.mat-select-search-inner .mat-input-element{flex-basis:auto}.mat-select-search-inner .mat-input-element:-ms-input-placeholder{-ms-user-select:text}::ng-deep .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input{padding:16px 44px 16px 16px;box-sizing:border-box;width:100%}:host-context([dir=rtl]) .mat-select-search-input{padding-right:16px;padding-left:44px}.mat-select-search-no-entries-found{padding:16px}.mat-select-search-clear{position:absolute;right:4px;top:0}:host-context([dir=rtl]) .mat-select-search-clear{right:auto;left:4px}.mat-select-search-spinner{position:absolute;right:16px;top:calc(50% - 8px)}:host-context([dir=rtl]) .mat-select-search-spinner{right:auto;left:16px}:host.mat-select-search-inside-mat-option .mat-select-search-input{padding-top:0;padding-bottom:0;height:3em;line-height:3em}:host.mat-select-search-inside-mat-option .mat-select-search-clear{top:0}::ng-deep .mat-option[aria-disabled=true].contains-mat-select-search{position:-webkit-sticky;position:sticky;top:0;padding:0;left:0;z-index:1;border-bottom:1px solid rgba(0,0,0,.12)}::ng-deep .mat-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0}::ng-deep .mat-option[aria-disabled=true].contains-mat-select-search.mat-select-search-no-entries-found{height:6em}.mat-select-search-loading{height:3em;width:100%;padding:0;display:flex;flex-direction:row;align-items:center;justify-content:center}.dot-pulse{position:relative;left:-9999px;width:5px;height:5px;border-radius:50%;background-color:#e0313e;color:#e0313e;box-shadow:9999px 0 0 -5px;-webkit-animation:1.5s linear .25s infinite dot-pulse;animation:1.5s linear .25s infinite dot-pulse}.dot-pulse::after,.dot-pulse::before{content:"";display:inline-block;position:absolute;top:0;width:5px;height:5px;border-radius:50%;background-color:#e0313e;color:#e0313e}.dot-pulse::before{box-shadow:9984px 0 0 -5px;-webkit-animation:1.5s linear infinite dot-pulse-before;animation:1.5s linear infinite dot-pulse-before}.dot-pulse::after{box-shadow:10014px 0 0 -5px;-webkit-animation:1.5s linear .5s infinite dot-pulse-after;animation:1.5s linear .5s infinite dot-pulse-after}@-webkit-keyframes dot-pulse-before{0%,100%,60%{box-shadow:9984px 0 0 -5px}30%{box-shadow:9984px 0 0 2px}}@keyframes dot-pulse-before{0%,100%,60%{box-shadow:9984px 0 0 -5px}30%{box-shadow:9984px 0 0 2px}}@-webkit-keyframes dot-pulse{0%,100%,60%{box-shadow:9999px 0 0 -5px}30%{box-shadow:9999px 0 0 2px}}@keyframes dot-pulse{0%,100%,60%{box-shadow:9999px 0 0 -5px}30%{box-shadow:9999px 0 0 2px}}@-webkit-keyframes dot-pulse-after{0%,100%,60%{box-shadow:10014px 0 0 -5px}30%{box-shadow:10014px 0 0 2px}}@keyframes dot-pulse-after{0%,100%,60%{box-shadow:10014px 0 0 -5px}30%{box-shadow:10014px 0 0 2px}}']}),xe(0,t.Inject(a.MatSelect)),xe(3,t.Optional()),xe(3,t.Inject(a.MatOption)),xe(4,t.Optional()),xe(4,t.Inject(a.MatFormField)),Ce("design:paramtypes",[a.MatSelect,t.ChangeDetectorRef,v.ViewportRuler,a.MatOption,a.MatFormField])],e)}(),Jn=0,Qn=function(){function e(e){var n=this;this._changeDetectorRef=e,this._name="gipi-input-select-paged-"+Jn++,this.valueSearchCtrl=new r.FormControl(""),this.totalOptions=0,this.subscriptions=[],this.searching=!1,this.id=this._name,this.name=this._name,this.placeholder="Selecionar",this.hideFieldSearch=!1,this.showClear=!1,this.debounceTime=1e3,this.valuesExclud=[],this.trackyBy="id",this.infiniteScroll=!0,this.property="description",this._options=[],this.modelChange=new t.EventEmitter,this.selectionChange=new t.EventEmitter,this.searchChange=new t.EventEmitter,this.openedChange=new t.EventEmitter,this.trackByOption=function(e,t){return t&&n.trackyBy?t[n.trackyBy]:t},this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"paramNextBatch",{get:function(){return this._paramNextBatch},set:function(e){this._paramNextBatch=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"model",{get:function(){return this._model},set:function(e){this._model=e,this.modelChange.emit(this._model),this.onChange(this._model),this.onTouch(this._model),this._changeDetectorRef.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(e){this._options=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollViewportHeight",{get:function(){return Ot.isEmpty(this.options)?0:3*this.options.length},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.subscriptions.push(this.valueSearchCtrl.valueChanges.pipe(oe.map((function(e){return e})),oe.debounceTime(this.debounceTime),oe.distinctUntilChanged()).subscribe((function(t){e.onSearchChange(t)})))},e.prototype.ngOnChanges=function(e){ze.isNull(e.model)||e.model.isFirstChange()||Ot.isEmpty(this.options)&&!ze.isNull(this.model)&&this.options.push(this.model)},e.prototype.ngOnDestroy=function(){this.subscriptions.forEach((function(e){return e.unsubscribe()}))},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.model=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},e.prototype.compareFn=function(e,t){return e&&t&&e.id===t.id},e.prototype.getPropertyValue=function(e){return ze.isNewModel(e)?Be.EMPTY:ze.isNull(this.propertyFn)?this.getValue(e,this.property):this.propertyFn(e)},e.prototype.getValue=function(e,t){if(ze.isNull(e))return"";for(var n=t.split("."),i=e,o=0;o<n.length;o++)if((i=Reflect.get(i,n[o]))&&o===n.length-1)return i},e.prototype.onSelectionChange=function(e){this.selectionChange.emit(e)},e.prototype.onSearchChange=function(e){this.matSelect.panelOpen&&(this.searchChange.emit(e),this.model=null,this.onSelectionChange(this.model),this.page=null,this.options=[],this.onLoadMoreOptions(!1))},e.prototype.onLoadMoreOptions=function(e,t){return void 0===t&&(t=!0),Ie(this,void 0,void 0,(function(){var n,i=this;return Se(this,(function(o){switch(o.label){case 0:return this.infiniteScroll&&t?ze.isNull(this.nextBatchFn)?(console.error("A função nextBatchFn é obrigatória e não foi informada"),[2]):this.searching?[2]:Ot.isEmpty(this.options)||ze.isNull(this.page)||this.options.length!==this.page.totalElements?(this.cdkVirtualScrollViewPort.scrollToIndex(0,"smooth"),this.cdkVirtualScrollViewPort.checkViewportSize(),this.searching=!0,n=0,e?n=ze.isNull(this.page)?1:this.page.number+1:(this.page=null,this.options=[]),[4,this.nextBatchFn(this.valueSearchCtrl.value,n,this.paramNextBatch).then((function(e){if(i.page=e,!ze.isNull(i.page)&&!Ot.isEmpty(i.page.content)){if(!Ot.isEmpty(i.valuesExclud))for(var t=function(e){var t=i.page.content.findIndex((function(t){return i.valuesExclud[e][i.trackyBy]===t[i.trackyBy]}));i.page.content.splice(t,1)},n=0;n<i.valuesExclud.length;n++)t(n);i.options=Ee(i.options,i.page.content)}if(!ze.isNull(i.model)){var o=i.options.find((function(e){return ze.equals(e,i.model)}));ze.isNull(o)&&i.options.push(i.model)}i.searching=!1})).finally((function(){i.searching=!1}))]):[2]:[2];case 1:return o.sent(),this._changeDetectorRef.detectChanges(),[2]}}))}))},e.prototype.showClearOptionButton=function(){var e=!0;return ze.isNull(this.model)||(e=ze.isNewModel(this.model)),this.showClear&&!e&&!this.disabled&&!this.searching},e.prototype.haveSelected=function(){var e=this.model;return!!e&&(e.id&&e.id>0)},e.prototype.removeOption=function(){this.model=null,this.onSelectionChange(this.model),this.options=[]},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},we([t.ViewChild("matSelect",{static:!1}),Ce("design:type",H.MatSelect)],e.prototype,"matSelect",void 0),we([t.ViewChild(v.CdkVirtualScrollViewport,{static:!1}),Ce("design:type",v.CdkVirtualScrollViewport)],e.prototype,"cdkVirtualScrollViewPort",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideFieldSearch",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showClear",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"debounceTime",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"valuesExclud",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"classSelectPanel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"trackyBy",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"infiniteScroll",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"property",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"propertyFn",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"nextBatchFn",void 0),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"paramNextBatch",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"model",null),we([t.Input(),Ce("design:type",Array),Ce("design:paramtypes",[Array])],e.prototype,"options",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"modelChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectionChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"searchChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"openedChange",void 0),e=n=we([t.Component({selector:"gipi-input-select-paged",exportAs:"gipiInputSelectPaged",template:'<div [attr.id]="id"\n [attr.name]="name"\n [attr.aria-label]="ariaLabel"\n role="group"\n class="input-select-paged-content">\n\n <label *ngIf="label">\n {{ label }}\n <span *ngIf="required && label">*</span>\n </label>\n\n <mat-form-field #formFieldSelect\n appearance="outline"\n class="mat-form-field-select"\n [class.field-diasabled]="disabled">\n\n <mat-select #matSelect\n [placeholder]="placeholder"\n [compareWith]="compareFn"\n [(ngModel)]="model"\n [required]="required"\n [disabled]="disabled"\n [multiple]="false"\n disableOptionCentering="true"\n [panelClass]="\'select-position \' + classSelectPanel"\n itssInfiniteScroll\n (infiniteScroll)="onLoadMoreOptions(true)"\n [complete]="options?.length === page?.totalElements"\n (selectionChange)="onSelectionChange($event.value)"\n (openedChange)="onLoadMoreOptions(false, $event); openedChange.emit($event)">\n <mat-option *ngIf="!hideFieldSearch">\n <gipi-input-search placeholderLabel="Pesquisar"\n [enableClearOnEscapePressed]="true"\n [disableScrollToActiveOnOptionsChanged]="true"\n [preventHomeEndKeyPropagation]="true"\n [disableScrollToActiveOnOptionsChanged]="true"\n [enableClearOnEscapePressed]="true"\n [clearSearchInput]="true"\n [formControl]="valueSearchCtrl"\n [searching]="searching">\n </gipi-input-search>\n </mat-option>\n\n <mat-option [value]="model"\n [style.height.px]="0">\n {{ getPropertyValue(model) }}\n </mat-option>\n\n <cdk-virtual-scroll-viewport itemSize="5"\n [style.height.em]="scrollViewportHeight"\n class="virtual-scroll-viewport">\n <mat-option *cdkVirtualFor="let option of options; trackBy: trackByOption"\n [value]="option">\n {{ getPropertyValue(option) }}\n </mat-option>\n </cdk-virtual-scroll-viewport>\n\n <div *ngIf="searching"\n class="mat-select-search-loading">\n <div class="dot-pulse"> </div>\n </div>\n </mat-select>\n\n <mat-icon *ngIf="showClearOptionButton()"\n matSuffix\n (click)="removeOption(); $event.stopPropagation()"\n matTooltip="Remover selecionado">\n close\n </mat-icon>\n </mat-form-field>\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-input-select-paged"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[':host{display:block;min-width:0;max-width:100%;flex:1}.input-select-paged-content{display:flex;flex-direction:column;gap:1rem}.input-select-paged-content>label{font-weight:400;font-size:1.4rem;line-height:100%;color:#131313}.input-select-paged-content>label>span{color:#d14014}.field-diasabled{cursor:not-allowed}:host ::ng-deep .mat-form-field-appearance-outline .mat-form-field-suffix{position:absolute!important;right:35px!important;top:34%!important}:host ::ng-deep .mat-form-field-appearance-outline .mat-form-field-suffix .mat-icon{height:1.6rem!important;width:1.6rem!important;font-size:1.6rem!important;color:#131313!important}:host ::ng-deep .mat-select-value{padding-right:30px!important}::ng-deep .virtual-scroll-viewport{width:100%!important;overflow:hidden}::ng-deep .virtual-scroll-viewport .cdk-virtual-scroll-content-wrapper{width:100%!important}.mat-select-additional-selection{opacity:.75;font-size:.75em;margin-left:16px}.mat-select-search-loading{background-color:#fff;display:flex;align-items:center;justify-content:center;height:3em}.dot-pulse{position:relative;left:-9999px;width:5px;height:5px;border-radius:50%;background-color:#f3465c;color:#f3465c;box-shadow:9999px 0 0 -5px;-webkit-animation:1.5s linear .25s infinite dot-pulse;animation:1.5s linear .25s infinite dot-pulse}.dot-pulse::after,.dot-pulse::before{content:"";display:inline-block;position:absolute;top:0;width:5px;height:5px;border-radius:50%;background-color:#f3465c;color:#f3465c}.dot-pulse::before{box-shadow:9984px 0 0 -5px;-webkit-animation:1.5s linear infinite dot-pulse-before;animation:1.5s linear infinite dot-pulse-before}.dot-pulse::after{box-shadow:10014px 0 0 -5px;-webkit-animation:1.5s linear .5s infinite dot-pulse-after;animation:1.5s linear .5s infinite dot-pulse-after}@-webkit-keyframes dot-pulse-before{0%,100%,60%{box-shadow:9984px 0 0 -5px}30%{box-shadow:9984px 0 0 2px}}@keyframes dot-pulse-before{0%,100%,60%{box-shadow:9984px 0 0 -5px}30%{box-shadow:9984px 0 0 2px}}@-webkit-keyframes dot-pulse{0%,100%,60%{box-shadow:9999px 0 0 -5px}30%{box-shadow:9999px 0 0 2px}}@keyframes dot-pulse{0%,100%,60%{box-shadow:9999px 0 0 -5px}30%{box-shadow:9999px 0 0 2px}}@-webkit-keyframes dot-pulse-after{0%,100%,60%{box-shadow:10014px 0 0 -5px}30%{box-shadow:10014px 0 0 2px}}@keyframes dot-pulse-after{0%,100%,60%{box-shadow:10014px 0 0 -5px}30%{box-shadow:10014px 0 0 2px}}::ng-deep .mat-select-arrow{border:solid #131313!important;border-width:0 2px 2px 0!important;display:inline-block!important;padding:3px!important;transform:rotate(45deg)!important;margin:0 4px!important}::ng-deep .mat-option-button-add{position:absolute;bottom:0;left:0;width:100%;z-index:100;background-color:#fff;border-radius:4px}']}),Ce("design:paramtypes",[t.ChangeDetectorRef])],e)}(),ei=0,ti=function(){function e(e,n){this.elementRef=e,this._changeDetectorRef=n,this._name="gipi-input-select-radio-"+ei++,this._enumList=[],this.id=this._name,this.name=this._name,this.placeholder="Selecionar",this.disabled=!1,this.loading=!1,this.showOnFocus=!0,this.hideOnEscape=!0,this.hideOnClick=!0,this.selectionChange=new t.EventEmitter,this.onFocus=new t.EventEmitter,this.onBlur=new t.EventEmitter,this.onOpenedChange=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.onChange(e),this.onTouch()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"optionSelected",{get:function(){var e=this;if(this.value&&!Ot.isEmpty(this._enumList)){var t=this._enumList.find((function(t){return t.key===e.value}));if(t)return t.value}return""},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this,t=Object.keys(this.enum).map((function(t){return{key:t,value:e.enum[t]}})).sort(this.sort);if(ze.isNull(this.valuesExclud))this._enumList=t;else for(var n=function(e){i.valuesExclud.some((function(n){return n===t[e].key}))||i._enumList.push(t[e])},i=this,o=0;o<t.length;o++)n(o);this._changeDetectorRef.detectChanges()},e.prototype.ngOnDestroy=function(){ze.isNull(this.popoverTrigger)||this.popoverTrigger.destroyPopover()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.value=e},e.prototype.changeRadioGroup=function(e){var t=e.value;this.selectionChange.emit(t),this.hideOnClick&&this.popoverTrigger.closePopover()},e.prototype.validateOmitByKey=function(e){return!!ze.isNull(this.valuesOmit)||!this.valuesOmit.some((function(t){return t===e}))},e.prototype.showPopover=function(){this.disabled||this.loading||this.popoverTrigger.openPopover()},e.prototype.closePopover=function(){this.disabled||this.loading||this.popoverTrigger.closePopover()},e.prototype.onInputFocus=function(e){this.showOnFocus&&!this.disabled&&(this.showPopover(),this.onFocus.emit(e),e.stopPropagation())},e.prototype.onInputClick=function(e){this.disabled||(this.showPopover(),ze.isNull(this.popoverTrigger)||this.popoverTrigger.popoverOpen||this.formFieldSelectRadio.focus(),e.stopPropagation())},e.prototype.onInputBlur=function(e){this.disabled||(this.onBlur.emit(e),this.onTouch())},e.prototype.onInputKeydown=function(e){this.disabled?e.stopImmediatePropagation():("ESCAPE"===e.code.toUpperCase()&&this.hideOnEscape||"ENTER"===e.code.toUpperCase()||"NUMPADENTER"===e.code.toUpperCase()||"TAB"===e.code.toUpperCase())&&!ze.isNull(this.popoverTrigger)&&this.popoverTrigger.popoverOpen&&(this.closePopover(),e.preventDefault())},e.prototype.onWindowResize=function(e){!ze.isNull(this.popoverTrigger)&&this.popoverTrigger.popoverOpen&&(this.closePopover(),e.stopPropagation(),this._changeDetectorRef.detectChanges())},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},we([t.ViewChild("formFieldSelectRadio",{read:Pn,static:!1}),Ce("design:type",Pn)],e.prototype,"formFieldSelectRadio",void 0),we([t.ViewChild(gn,{static:!1}),Ce("design:type",gn)],e.prototype,"popoverTrigger",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showOnFocus",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideOnEscape",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideOnClick",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"enum",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"sort",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"valuesExclud",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"valuesOmit",void 0),we([t.Input("value"),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"value",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectionChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onOpenedChange",void 0),we([t.HostListener("window:resize",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[UIEvent]),Ce("design:returntype",void 0)],e.prototype,"onWindowResize",null),e=n=we([t.Component({selector:"gipi-input-select-radio",exportAs:"gipiInputSelectRadio",template:'<gipi-form-field #formFieldSelectRadio\n [id]="id"\n [name]="name"\n [type]="\'select\'"\n [readonly]="true"\n [disabled]="disabled"\n [required]="required"\n [label]="label"\n [placeholder]="placeholder"\n [showClear]="false"\n [showTrigger]="false"\n [trigger]="0"\n [ariaLabel]="ariaLabel"\n [value]="optionSelected"\n #popoverTrigger="popoverTrigger"\n [popoverTriggerFor]="selectRadioPopover"\n [popoverTriggerOn]="\'click\'"\n [popoverBackdropCloseOnClick]="true"\n (opened)="onOpenedChange.emit(true)"\n (closed)="onOpenedChange.emit(false)"\n (onKeydown)="onInputKeydown($event)"\n (onFocus)="onInputFocus($event)"\n (onBlur)="onInputBlur($event)"\n (onClick)="onInputClick($event)">\n</gipi-form-field>\n\n<gipi-popover #selectRadioPopover="gipiPopover"\n [popoverOverlapTrigger]="false"\n [popoverCloseOnClick]="false"\n [popoverArrowWidth]="0"\n [popoverOffsetY]="3">\n <div class="select-radio-popover-content">\n <mat-radio-group class="radio-group"\n [(ngModel)]="value"\n [required]="required"\n [disabled]="disabled"\n (change)="changeRadioGroup($event)">\n <mat-radio-button *ngFor="let e of _enumList"\n [disabled]="!validateOmitByKey(e.key)"\n [value]="e.key">\n {{ e.value }}\n </mat-radio-button>\n </mat-radio-group>\n </div>\n</gipi-popover>\n\n\x3c!-- <gipi-overlay *ngIf="!disabled && !loading && _overlayVisible"\n [(visible)]="_overlayVisible"\n [appendTo]="\'body\'"\n (onShow)="onOpenedChange.emit(true)"\n (onHide)="onOpenedChange.emit(false)">\n <mat-radio-group class="radio-group"\n [(ngModel)]="value"\n [required]="required"\n [disabled]="disabled"\n (change)="changeRadioGroup($event)">\n <mat-radio-button *ngFor="let e of _enumList"\n [disabled]="!validateOmitByKey(e.key)"\n [value]="e.key">\n {{ e.value }}\n </mat-radio-button>\n </mat-radio-group>\n</gipi-overlay> --\x3e',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-input-select-radio"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:block;min-width:0;max-width:100%;flex:1}::ng-deep .radio-group{display:flex;flex-direction:column;gap:16px}.select-radio-popover-content{background-color:#fff;border-radius:4px;box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);padding:8px}"]}),Ce("design:paramtypes",[t.ElementRef,t.ChangeDetectorRef])],e)}(),ni=function(){function e(){this.buttonPadding=4,this.iconWidth=24,this.iconHeight=24,this.icon=null,this.svgIcon=null,this.notification=!1,this.onShowOverlay=new t.EventEmitter,this.onClick=new t.EventEmitter,this.onFocus=new t.EventEmitter,this.onBlur=new t.EventEmitter}var n;return n=e,e.prototype.ngOnInit=function(){},we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"buttonPadding",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"iconWidth",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"iconHeight",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"icon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"notification",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onShowOverlay",void 0),we([t.Output("click"),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),we([t.Output("focus"),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),we([t.Output("blur"),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),e=n=we([t.Component({selector:"gipi-notification",exportAs:"gipiNotification",template:'<gipi-button gipi-icon\n [id]="id"\n [name]="name"\n [ariaLabel]="ariaLabel"\n [buttonPadding]="buttonPadding"\n [iconWidth]="iconWidth"\n [iconHeight]="iconHeight"\n [icon]="icon"\n [svgIcon]="svgIcon"\n [disabled]="disabled"\n [loading]="loading"\n [tooltip]="tooltip"\n [popover]="true"\n [overlay]="false"\n [notification]="notification"\n (onShowOverlay)="onShowOverlay.emit()"\n (click)="onClick.emit($event)"\n (focus)="onFocus.emit($event)"\n (blur)="onBlur.emit($event)">\n <ng-content> </ng-content>\n</gipi-button>\n',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-notification"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".button-only-icon{padding:4px!important}.button-only-icon .button-content>mat-icon{width:24px!important;height:24px!important}"]}),Ce("design:paramtypes",[])],e)}(),ii=function(){function e(){this.buttonPadding=4,this.iconWidth=24,this.iconHeight=24,this.icon=null,this.svgIcon=null,this.hasNovelties=!1,this.onShowOverlay=new t.EventEmitter,this.onClick=new t.EventEmitter,this.onFocus=new t.EventEmitter,this.onBlur=new t.EventEmitter}var n;return n=e,e.prototype.ngOnInit=function(){},we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"buttonPadding",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"iconWidth",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"iconHeight",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"icon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"hasNovelties",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onShowOverlay",void 0),we([t.Output("click"),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),we([t.Output("focus"),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),we([t.Output("blur"),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),e=n=we([t.Component({selector:"gipi-novelties",exportAs:"gipiNovelties",template:'<gipi-button gipi-icon\n [id]="id"\n [name]="name"\n [ariaLabel]="ariaLabel"\n [buttonPadding]="buttonPadding"\n [iconWidth]="iconWidth"\n [iconHeight]="iconHeight"\n [icon]="icon"\n [svgIcon]="svgIcon"\n [disabled]="disabled"\n [loading]="loading"\n [tooltip]="tooltip"\n [overlay]="false"\n [buttonClass]="hasNovelties ? \'has-novelties\' : \'\'"\n (onShowOverlay)="onShowOverlay.emit()"\n (click)="onClick.emit($event)"\n (focus)="onFocus.emit($event)"\n (blur)="onBlur.emit($event)">\n</gipi-button>\n',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-novelties"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".button-only-icon{padding:4px!important}.button-only-icon .button-content>mat-icon{width:24px!important;height:24px!important}::ng-deep .has-novelties:not(:disabled):hover,::ng-deep .has-novelties:not(:disabled):hover .button-content>mat-icon{background-color:#f2e2b0!important}::ng-deep .has-novelties .button-content>mat-icon{color:#d6a000!important;fill:#d6a000!important}::ng-deep .has-novelties .button-content>mat-icon svg,::ng-deep .has-novelties .button-content>mat-icon svg g path,::ng-deep .has-novelties .button-content>mat-icon svg path{color:#d6a000!important;fill:#d6a000!important}.novelties{max-width:30rem}.novelties>footer,.novelties>header{display:none}.novelties>main{width:20rem;text-align:center;font-size:1.6rem;font-weight:600;color:#262626}"]}),Ce("design:paramtypes",[])],e)}(),oi=function(){function e(){}return e.isValid=function(e){return!Be.isEmpty(e)&&(this.isValidMinLength(e)&&this.isValidMaxLength(e)&&this.hasUppercase(e)&&this.hasLowercase(e)&&this.hasNumber(e)&&this.hasSpecialChar(e)&&!this.hasBackspace(e))},e.isValidMinLength=function(e){return e.trim().length>0&&e.trim().length>=6},e.isValidMaxLength=function(e){return e.trim().length>0&&e.trim().length<=15},e.hasUppercase=function(e){return e.trim().length>0&&e.toLowerCase()!==e},e.hasLowercase=function(e){return e.trim().length>0&&e.toUpperCase()!==e},e.hasNumber=function(e){return e.trim().length>0&&/\d/.test(e)},e.hasSpecialChar=function(e){return e.trim().length>0&&/[!@#$%^&*()_={};':"|,.<>?~]/g.test(e)},e.hasBackspace=function(e){return e.trim.length>0&&/\s/g.test(e)},e}(),ri=0,ai=function(){function e(e){this._changeDetectorRef=e,this._name="gipi-password-requeriments-"+ri++,this.id=this._name,this.name=this._name,this.disabled=!1,this._password="",this.onValid=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"password",{get:function(){return this._password},set:function(e){ze.isNull(e)?this._password="":this._password=e,Be.isEmpty(this._password)?this.onValid.emit(!1):this.onValid.emit(this.isValidMinLength&&this.isValidMaxLength&&this.hasUppercase&&this.hasLowercase&&this.hasNumber&&!this.hasBackspace),this.onChange(this._password),this.onTouch()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isValidMinLength",{get:function(){return this.password.trim().length>0&&oi.isValidMinLength(this.password)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isValidMaxLength",{get:function(){return this.password.trim().length>0&&oi.isValidMaxLength(this.password)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasUppercase",{get:function(){return this.password.trim().length>0&&oi.hasUppercase(this.password)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasLowercase",{get:function(){return this.password.trim().length>0&&oi.hasLowercase(this.password)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasNumber",{get:function(){return this.password.trim().length>0&&oi.hasNumber(this.password)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasBackspace",{get:function(){return this.password.trim().length>0&&oi.hasBackspace(this.password)},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.writeValue=function(e){this.password=e},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"password",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onValid",void 0),e=n=we([t.Component({selector:"gipi-password-requeriments",exportAs:"gipiPasswordRequeriments",template:'<div class="password-requeriments">\n <div class="requirement"\n [class.invalid]="!isValidMinLength">\n <label class="title"> 6+ </label>\n <label class="subtitle">Caracteres</label>\n </div>\n\n <div class="requirement"\n [class.invalid]="!hasUppercase">\n <label class="title"> AA </label>\n <label class="subtitle">Maiúsculas</label>\n </div>\n\n <div class="requirement"\n [class.invalid]="!hasLowercase">\n <label class="title"> aa </label>\n <label class="subtitle">Minúsculas</label>\n </div>\n\n <div class="requirement"\n [class.invalid]="!hasNumber">\n <label class="title"> 123 </label>\n <label class="subtitle">Números</label>\n </div>\n\n \x3c!-- <div class="requirement"\n [class.invalid]="(password.length > 0) && !hasSpecialChar">\n <label class="title"> @$# </label>\n <label class="subtitle">Símbolos</label>\n </div> --\x3e\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-password-requeriments"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".password-requeriments{width:100%;padding:4px 0;display:flex;gap:50px;flex-direction:row;align-items:stretch;justify-content:center}.password-requeriments .requirement{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.password-requeriments .requirement.invalid .subtitle,.password-requeriments .requirement.invalid .title{color:#e0313e!important}.password-requeriments .requirement .title{font-weight:700;font-size:1.4rem;line-height:1.9rem;color:#262626;text-align:center}.password-requeriments .requirement .subtitle{font-weight:400;font-size:1.1rem;line-height:1.9rem;color:#595959;text-align:center}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef])],e)}(),si=ae.trigger("transformPopover",[ae.state("enter",ae.style({opacity:1,transform:"scale(1)"})),ae.transition("void => *",[ae.style({opacity:0,transform:"scale(0)"}),ae.animate("200ms cubic-bezier(0.25, 0.8, 0.25, 1)")]),ae.transition("* => void",[ae.animate("50ms 100ms linear",ae.style({opacity:0}))])]),li=function(){function e(e,n){this._elementRef=e,this.zone=n,this.role="dialog",this._popoverWidth="auto",this._positionX="after",this._positionY="below",this._triggerEvent="hover",this._scrollStrategy="reposition",this._enterDelay=200,this._leaveDelay=200,this._overlapTrigger=!0,this._disableAnimation=!1,this._targetOffsetX=0,this._targetOffsetY=0,this._arrowOffsetX=20,this._arrowWidth=8,this._arrowColor="rgba(0, 0, 0, 0.12)",this._closeOnClick=!0,this._focusTrapEnabled=!0,this._focusTrapAutoCaptureEnabled=!0,this._classList={},this.containerPositioning=!1,this.closeDisabled=!1,this._onAnimationStateChange=new t.EventEmitter,this.close=new t.EventEmitter,this.setPositionClasses()}var n;return n=e,Object.defineProperty(e.prototype,"popoverWidth",{get:function(){return this._popoverWidth},set:function(e){this._popoverWidth=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"positionX",{get:function(){return this._positionX},set:function(e){"before"!==e&&"after"!==e&&function(){throw Error('O valor popoverPositionX deve ser \'before\' ou after\'.\n Example: <gipi-popover popoverPositionX="before" #popover="popover"> </gipi-popover>')}(),this._positionX=e,this.setPositionClasses()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"positionY",{get:function(){return this._positionY},set:function(e){"above"!==e&&"below"!==e&&function(){throw Error('O valor popoverPositionY deve ser \'above\' ou below\'.\n Example: <gipi-popover popoverPositionY="above" #popover="popover"> </gipi-popover>')}(),this._positionY=e,this.setPositionClasses()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"triggerEvent",{get:function(){return this._triggerEvent},set:function(e){this._triggerEvent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scrollStrategy",{get:function(){return this._scrollStrategy},set:function(e){this._scrollStrategy=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"enterDelay",{get:function(){return this._enterDelay},set:function(e){this._enterDelay=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leaveDelay",{get:function(){return this._leaveDelay},set:function(e){this._leaveDelay=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlapTrigger",{get:function(){return this._overlapTrigger},set:function(e){this._overlapTrigger=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"targetOffsetX",{get:function(){return this._targetOffsetX},set:function(e){this._targetOffsetX=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"targetOffsetY",{get:function(){return this._targetOffsetY},set:function(e){this._targetOffsetY=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arrowOffsetX",{get:function(){return this._arrowOffsetX},set:function(e){this._arrowOffsetX=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arrowWidth",{get:function(){return this._arrowWidth},set:function(e){this._arrowWidth=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"arrowColor",{get:function(){return this._arrowColor},set:function(e){this._arrowColor=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"closeOnClick",{get:function(){return this._closeOnClick},set:function(e){this._closeOnClick=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disableAnimation",{get:function(){return this._disableAnimation},set:function(e){this._disableAnimation=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"focusTrapEnabled",{get:function(){return this._focusTrapEnabled},set:function(e){this._focusTrapEnabled=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"focusTrapAutoCaptureEnabled",{get:function(){return this._focusTrapAutoCaptureEnabled},set:function(e){this._focusTrapAutoCaptureEnabled=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"panelClass",{set:function(e){e&&e.length&&(this._classList=e.split(" ").reduce((function(e,t){return e[t]=!0,e}),{}),this._elementRef.nativeElement.className="",this.setPositionClasses())},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.ngOnDestroy=function(){this._emitCloseEvent(),this.close.complete()},e.prototype._handleKeydown=function(e){switch(e.keyCode){case se.ESCAPE:return void this._emitCloseEvent()}},e.prototype._emitCloseEvent=function(){this.close.emit()},e.prototype.onClick=function(){this.closeOnClick&&this._emitCloseEvent()},e.prototype.onMouseOver=function(){"hover"===this.triggerEvent&&(this.closeDisabled=!0)},e.prototype.onMouseLeave=function(){"hover"===this.triggerEvent&&(this.closeDisabled=!1,this._emitCloseEvent())},e.prototype.setCurrentStyles=function(){this.popoverArrowStyles={right:"before"===this.positionX?this.arrowOffsetX-this.arrowWidth+"px":"",left:"after"===this.positionX?this.arrowOffsetX-this.arrowWidth+"px":"","border-top":"below"===this.positionY?this.arrowWidth+"px solid "+this.arrowColor:"0px solid transparent","border-right":this.arrowWidth+"px solid transparent","border-bottom":"above"===this.positionY?this.arrowWidth+"px solid "+this.arrowColor:this.arrowWidth+"px solid transparent","border-left":this.arrowWidth+"px solid transparent"},this.popoverContentStyles={"padding-top":!0===this.overlapTrigger?"0px":this.arrowWidth+"px","padding-bottom":!0===this.overlapTrigger?"0px":this.arrowWidth+"px","margin-top":!1===this.overlapTrigger&&"below"===this.positionY&&!1===this.containerPositioning?-2*this.arrowWidth+"px":"0px"}},e.prototype.setPositionClasses=function(e,t){void 0===e&&(e=this.positionX),void 0===t&&(t=this.positionY),this._classList["popover-before"]="before"===e,this._classList["popover-after"]="after"===e,this._classList["popover-above"]="above"===t,this._classList["popover-below"]="below"===t},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.NgZone}]},we([t.HostBinding("attr.role"),Ce("design:type",String)],e.prototype,"role",void 0),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"popoverWidth",null),we([t.Input("popoverPositionX"),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"positionX",null),we([t.Input("popoverPositionY"),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"positionY",null),we([t.Input("popoverTriggerOn"),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"triggerEvent",null),we([t.Input("popoverScrollStrategy"),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"scrollStrategy",null),we([t.Input("popoverEnterDelay"),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"enterDelay",null),we([t.Input("popoverLeaveDelay"),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"leaveDelay",null),we([t.Input("popoverOverlapTrigger"),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"overlapTrigger",null),we([t.Input("popoverOffsetX"),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"targetOffsetX",null),we([t.Input("popoverOffsetY"),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"targetOffsetY",null),we([t.Input("popoverArrowOffsetX"),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"arrowOffsetX",null),we([t.Input("popoverArrowWidth"),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"arrowWidth",null),we([t.Input("popoverArrowColor"),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"arrowColor",null),we([t.Input("popoverCloseOnClick"),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"closeOnClick",null),we([t.Input("popoverDisableAnimation"),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disableAnimation",null),we([t.Input("focusTrapEnabled"),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"focusTrapEnabled",null),we([t.Input("focusTrapAutoCaptureEnabled"),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"focusTrapAutoCaptureEnabled",null),we([t.Input("class"),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"panelClass",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"close",void 0),we([t.ViewChild(t.TemplateRef,{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"templateRef",void 0),e=n=we([t.Component({selector:"gipi-popover",exportAs:"gipiPopover",template:'<ng-template>\n\n <div class="popover-panel"\n role="dialog"\n [class.popover-overlap]="overlapTrigger"\n [ngClass]="_classList"\n [style.min-width]="popoverWidth"\n [ngStyle]="popoverPanelStyles"\n [@.disabled]="disableAnimation"\n [@transformPopover]="\'enter\'"\n (mouseover)="onMouseOver()"\n (mouseleave)="onMouseLeave()"\n (keydown)="_handleKeydown($event)"\n (click)="onClick()">\n\n <div class="popover-direction-arrow"\n [ngStyle]="popoverArrowStyles"\n *ngIf="!overlapTrigger">\n </div>\n\n <div class="popover-content"\n [ngStyle]="popoverContentStyles"\n [cdkTrapFocus]="focusTrapEnabled"\n [cdkTrapFocusAutoCapture]="focusTrapAutoCaptureEnabled">\n <ng-content> </ng-content>\n </div>\n\n </div>\n\n</ng-template>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-popover"},changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,animations:[si],styles:[".popover-panel{display:flex;flex-direction:column;max-height:calc(100vh + 48px)}.popover-ripple{position:absolute;top:0;left:0;bottom:0;right:0}.popover-below .popover-direction-arrow{position:absolute;bottom:0;width:0;height:0;border-bottom-width:0!important;z-index:99999}.popover-above .popover-direction-arrow{position:absolute;top:0;width:0;height:0;border-top-width:0!important;z-index:99999}.popover-after .popover-direction-arrow{left:20px}.popover-before .popover-direction-arrow{right:20px}"]}),Ce("design:paramtypes",[t.ElementRef,t.NgZone])],e)}(),pi=function(){function e(e){this._elementRef=e}return e.ctorParameters=function(){return[{type:t.ElementRef}]},e=we([t.Directive({selector:"popover-target, [popoverTarget]",exportAs:"popoverTarget"}),Ce("design:paramtypes",[t.ElementRef])],e)}(),di=0,ci=function(){function e(e){this._changeDetectorRef=e,this._name="gipi-radio-group-"+di++,this._enumList=[],this.id=this._name,this.name=this._name,this.disabled=!1,this.required=!1,this.fieldset=!1,this.direction="row",this.selectionChange=new t.EventEmitter,this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"value",{get:function(){return this.val},set:function(e){this.val=e,this.onChange(e),this.onTouch()},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this,t=Object.keys(this.enum).map((function(t){return{key:t,value:e.enum[t]}})).sort(this.sort);if(ze.isNull(this.valuesExclud))this._enumList=t;else for(var n=function(e){i.valuesExclud.some((function(n){return n===t[e].key}))||i._enumList.push(t[e])},i=this,o=0;o<t.length;o++)n(o);this._changeDetectorRef.detectChanges()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.writeValue=function(e){this.value=e},e.prototype.changeRadioGroup=function(e){var t=e.value;this.selectionChange.emit(t)},e.prototype.validateOmitByKey=function(e){return!!ze.isNull(this.valuesOmit)||!this.valuesOmit.some((function(t){return t===e}))},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"fieldset",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"direction",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"enum",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"sort",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"valuesExclud",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"valuesOmit",void 0),we([t.Input("value"),Ce("design:type",Object)],e.prototype,"val",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectionChange",void 0),e=n=we([t.Component({selector:"gipi-radio-group",exportAs:"gipiRadioGroup",template:'<div [attr.id]="id"\n [attr.name]="name"\n [attr.aria-label]="ariaLabel"\n role="group"\n class="radiogroup-content"\n *ngIf="!fieldset">\n <label *ngIf="label">\n {{ label }}\n <span *ngIf="required && label">*</span>\n </label>\n\n <mat-radio-group class="radiogroup"\n [style.flex-direction]="direction"\n [style.justify-content]="(_enumList && (_enumList.length <= 2)) ? \'space-around\' : \'space-between\'"\n [(ngModel)]="value"\n [required]="required"\n [disabled]="disabled"\n (change)="changeRadioGroup($event)">\n <mat-radio-button *ngFor="let e of _enumList"\n [disabled]="!validateOmitByKey(e.key)"\n [value]="e.key">\n {{ e.value }}\n </mat-radio-button>\n </mat-radio-group>\n</div>\n\n<fieldset [attr.id]="id"\n [attr.name]="name"\n [attr.aria-label]="ariaLabel"\n [disabled]="disabled"\n class="radiogroup-content fieldset-radio-content"\n *ngIf="fieldset">\n <legend *ngIf="label">\n {{ label }}\n <span *ngIf="required && label">*</span>\n </legend>\n\n <mat-radio-group class="radiogroup"\n [style.flex-direction]="direction"\n [(ngModel)]="value"\n [required]="required"\n [disabled]="disabled"\n (change)="changeRadioGroup($event)">\n <mat-radio-button *ngFor="let e of _enumList"\n [disabled]="!validateOmitByKey(e.key)"\n [value]="e.key">\n {{ e.value }}\n </mat-radio-button>\n </mat-radio-group>\n</fieldset>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-radio-group"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".radiogroup-content{display:flex;flex-direction:column;gap:1rem}.radiogroup-content>label,.radiogroup-content>legend{font-weight:400;font-size:1.4rem;line-height:100%;color:#131313}.radiogroup-content>label>span,.radiogroup-content>legend>span{color:#d14014}.radiogroup-content .radiogroup{display:flex;align-items:center;gap:1rem;padding:8px 0}.fieldset-radio-content{height:6.6rem;border-color:#0000001f;border-radius:5px}.fieldset-radio-content .radiogroup{width:100%;height:100%;justify-content:space-around}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef])],e)}(),ui=0,hi=function(){function e(e,t){this.start=e,this.end=t}return e.prototype.getTotalCount=function(){return this.end-this.start+1},e.prototype.getRange=function(){var e=this;return Array.from({length:this.getTotalCount()},(function(t,n){return e.start-1+n}))},e}(),gi=function(){function e(e,t){this.elementRef=e,this._changeDetectorRef=t,this._name="gipi-range-page-"+ui++,this._startPage=1,this._endPage=1,this.id=this._name,this.name=this._name,this.label="",this.tooltip="",this.placeholderStart="",this.placeholderEnd="",this.help="",this._min=1,this._max=100,this._step=1,this._required=!1,this._disabled=!1,this.onChange=function(e){},this.onTouched=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"min",{get:function(){return Je.isNumber(this._min)?this._min:1},set:function(e){this._min=e,this._initPage()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return Je.isNumber(this._max)?this._max:100},set:function(e){this._max=e,this._initPage()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"step",{get:function(){return Je.isNumber(this._step)?this._step:1},set:function(e){this._step=e,this._initPage()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"formattedValue",{get:function(){return""},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this._initPage()},e.prototype.ngOnDestroy=function(){},e.prototype.writeValue=function(e){ze.isNull(e)||(this._startPage=e.start||this._startPage,this._endPage=e.end||this._endPage),this._changeDetectorRef.detectChanges()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},e.prototype._initPage=function(){this._startPage=this.min,this._endPage=Math.min(this._startPage+this.step-1,this.max)},e.prototype.updateEndPage=function(){this.disabled||(this._startPage<this.min?this._startPage=this.min:this._startPage>this.max&&(this._startPage=this.max),this._endPage<this._startPage?this._endPage=this._startPage:this._endPage>this._startPage+(this.step-1)&&(this._endPage=Math.min(this._startPage+this.step-1,this.max)),this._propagateChange())},e.prototype.updateStartPage=function(){this.disabled||(this._endPage>this.max?this._endPage=this.max:this._endPage>this.max&&(this._endPage=this.max),this._startPage>this._endPage?this._startPage=this._endPage:this._startPage<this._endPage-(this.step+1)&&(this._startPage=Math.max(this._endPage-this.step+1,this.min)),this._propagateChange())},e.prototype.previous=function(){if(!this.disabled){var e=Math.max(this._startPage-this.step+1,this.min),t=Math.min(e+this.step-1,this.max);t>=this.min&&(this._startPage=e,this._endPage=t,this._propagateChange())}},e.prototype.next=function(){if(!this.disabled){var e=Math.min(this._startPage+this.step,this.max),t=Math.min(e+this.step-1,this.max);(e===this.max||t>this.max)&&(t=e),t<=this.max&&(this._startPage=e,this._endPage=t,this._propagateChange())}},e.prototype.selectText=function(e){!this.disabled&&e&&setTimeout((function(){return e.select()}),0)},e.prototype._propagateChange=function(){this.onChange(new hi(this._startPage,this._endPage)),this.onTouched()},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholderStart",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholderEnd",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"help",void 0),we([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"min",null),we([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"max",null),we([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"step",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"required",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disabled",null),e=n=we([t.Component({selector:"gipi-range-page",template:'<label *ngIf="label"\n class="input-label"\n [attr.for]="id">\n {{ label }}\n <span *ngIf="required"> * </span>\n <gipi-helpful-tip *ngIf="tooltip && label"\n [tooltip]="tooltip">\n </gipi-helpful-tip>\n</label>\n\n<div class="input-content">\n <div class="prefix"\n [class.disabled]="disabled"\n (click)="previous()">\n <mat-icon>chevron_left</mat-icon>\n </div>\n <input #startInput\n matInput\n class="input-element"\n type="number"\n [attr.id]="id"\n [attr.name]="name"\n [min]="min"\n [max]="max"\n [maxlength]="10"\n [placeholder]="placeholderStart"\n [disabled]="disabled"\n [required]="required"\n [readOnly]="false"\n [autocomplete]="\'off\'"\n [autofocus]="false"\n [(ngModel)]="_startPage"\n (keyup)="updateEndPage()"\n (focus)="selectText(startInput)"\n (click)="selectText(startInput)" />\n <div class="infix">\n a\n </div>\n <input #endInput\n matInput\n class="input-element"\n type="number"\n [attr.id]="id"\n [attr.name]="name"\n [min]="_startPage"\n [max]="max"\n [maxlength]="10"\n [placeholder]="placeholderEnd"\n [disabled]="disabled"\n [required]="required"\n [readOnly]="false"\n [autocomplete]="\'off\'"\n [autofocus]="false"\n [(ngModel)]="_endPage"\n (keyup)="updateStartPage()"\n (focus)="selectText(endInput)"\n (click)="selectText(endInput)" />\n <div class="suffix"\n [class.disabled]="disabled"\n (click)="next()">\n <mat-icon>chevron_right</mat-icon>\n </div>\n</div>\n\n<small *ngIf="help"\n class="input-help">\n {{ help }}\n</small>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:[":host{display:flex;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}:host .input-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}:host .input-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}:host .input-content{display:flex;font-family:inherit;font-size:inherit;color:inherit;height:4rem;background:#fff;border:1px solid #0000001f;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.6rem}:host .input-content .input-element{padding:.75rem .8rem;border:none;outline:0;background-color:transparent;flex:1;color:inherit;caret-color:#696969;min-width:0;text-align:center;margin:0!important}:host .input-content .input-element::-webkit-inner-spin-button,:host .input-content .input-element::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;opacity:0}:host .input-content:has(.input-element:disabled){color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;cursor:not-allowed}:host .input-content:has(.input-element:disabled) .suffix>mat-icon{color:#bbbdc1!important}:host .input-content .input-element:disabled{cursor:not-allowed}:host .input-content .infix,:host .input-content .prefix,:host .input-content .suffix{display:flex;align-items:center;justify-content:center;padding-block:.75rem;padding-inline:.8rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:.2s;background-color:#e0313e}:host .input-content .infix>mat-icon,:host .input-content .prefix>mat-icon,:host .input-content .suffix>mat-icon{width:2rem;height:2rem;font-size:2rem;color:#fff}:host .input-content .infix:not(.infix):not(.disabled):hover,:host .input-content .prefix:not(.infix):not(.disabled):hover,:host .input-content .suffix:not(.infix):not(.disabled):hover{background-color:#cc2d38}:host .input-content .infix:not(.infix):not(.disabled):active,:host .input-content .prefix:not(.infix):not(.disabled):active,:host .input-content .suffix:not(.infix):not(.disabled):active{background-color:#9f232c}:host .input-content .prefix.disabled,:host .input-content .suffix.disabled{background-color:#d1d2d4}:host .input-content .prefix.disabled>mat-icon,:host .input-content .suffix.disabled>mat-icon{color:#9a9da2}:host .input-content .prefix{border-right:1px solid #0000001f;border-radius:.6rem 0 0 .6rem;cursor:pointer}:host .input-content .infix{width:1rem;padding:0;background-color:transparent}:host .input-content .suffix{border-left:1px solid #0000001f;border-radius:0 .6rem .6rem 0;cursor:pointer}:host .input-help{flex:1;font-size:1rem;font-weight:500;margin-top:-.4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}::-webkit-input-placeholder{color:#bbbdc1}:-moz-placeholder{color:#bbbdc1}::-moz-placeholder{color:#bbbdc1}:-ms-input-placeholder{color:#bbbdc1}"]}),Ce("design:paramtypes",[t.ElementRef,t.ChangeDetectorRef])],e)}(),mi=0,fi=function(){function e(e,t){this.elementRef=e,this._changeDetectorRef=t,this._name="gipi-range-slider-"+mi++,this.id=this._name,this.name=this._name,this.label="",this.help="",this.min=1,this.max=100,this._maxRange=5,this._fromValue=1,this._toValue=1,this._step=1,this._disabled=!1,this._required=!1,this.onChange=function(){},this.onTouched=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"maxRange",{get:function(){return this._maxRange||5},set:function(e){if(!e||e<=0)throw new Error('Minimum value for "maxRange" must be 1');this._maxRange=e||5},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fromValue",{get:function(){return this._fromValue||1},set:function(e){if(!e||e<=0)throw new Error('Minimum value for "from" must be 1');this._fromValue=e||1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"toValue",{get:function(){return this._toValue||1},set:function(e){if(!e||e<=0)throw new Error('Minimum value for "to" must be 1');this._toValue=e||1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"step",{get:function(){return this._step||1},set:function(e){if(!e||e<=0)throw new Error('Minimum value for "step" must be 1');this._step=e||1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){this._fillSlider(),this._setToggleAccessible()},e.prototype.ngOnDestroy=function(){},e.prototype.writeValue=function(e){e&&(this.fromValue=e.from,this.toValue=e.to,this.fromSlider&&this.toSlider&&(this.fromSlider.nativeElement.value=this.fromValue.toString(),this.toSlider.nativeElement.value=this.toValue.toString(),this._fillSlider(),this._setToggleAccessible()))},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},e.prototype.controlFromInput=function(e){var t=Oe(e?[this.fromValue,this.toValue]:this._getParsed(this.fromSlider.nativeElement,this.toSlider.nativeElement),2),n=t[0],i=t[1];n=this._roundToStep(n),i=this._roundToStep(i),this._fillSlider(),this._setToggleAccessible(),n>i&&(this.fromValue=i),this.fromSlider.nativeElement.value=this.fromValue.toString(),this._notifyValueChange()},e.prototype.controlToInput=function(e){var t=Oe(e?[this.fromValue,this.toValue]:this._getParsed(this.fromSlider.nativeElement,this.toSlider.nativeElement),2),n=t[0],i=t[1];n=this._roundToStep(n),i=this._roundToStep(i),this._fillSlider(),this._setToggleAccessible(),this.toValue=n<=i?i:n,this.toSlider.nativeElement.value=this.toValue.toString(),this._notifyValueChange()},e.prototype.controlFromSlider=function(){var e=Oe(this._getParsed(this.fromSlider.nativeElement,this.toSlider.nativeElement),2),t=e[0],n=e[1];if(t=this._roundToStep(t),(n=this._roundToStep(n))-t>this.maxRange&&(t=n-this.maxRange),this._fillSlider(),this._setToggleAccessible(),n-t===this.maxRange){var i=Oe(this._getParsed(this.fromSlider.nativeElement,this.toSlider.nativeElement),2),o=i[0],r=i[1];o=this._roundToStep(o),(r=this._roundToStep(r))-o>this.maxRange&&(r=o+this.maxRange),this._fillSlider(),this.toValue=o<=r?r:o,this.toSlider.nativeElement.value=this.toValue.toString()}this.fromValue=t>=n?n:t,this.fromSlider.nativeElement.value=this.fromValue.toString(),this._notifyValueChange()},e.prototype.controlToSlider=function(){var e=Oe(this._getParsed(this.fromSlider.nativeElement,this.toSlider.nativeElement),2),t=e[0],n=e[1];if(t=this._roundToStep(t),(n=this._roundToStep(n))-t>this.maxRange&&(n=t+this.maxRange),this._fillSlider(),this._setToggleAccessible(),n-t===this.maxRange){var i=Oe(this._getParsed(this.fromSlider.nativeElement,this.toSlider.nativeElement),2),o=i[0],r=i[1];o=this._roundToStep(o),(r=this._roundToStep(r))-o>this.maxRange&&(o=r-this.maxRange),this._fillSlider(),this.fromValue=o>=r?r:o,this.fromSlider.nativeElement.value=this.fromValue.toString()}this.toValue=t<=n?n:t,this.toSlider.nativeElement.value=this.toValue.toString(),this._notifyValueChange()},e.prototype._getParsed=function(e,t){return[parseInt(e.value,10),parseInt(t.value,10)]},e.prototype._fillSlider=function(){var e=this.fromSlider.nativeElement,t=this.toSlider.nativeElement,n=Number(t.max)-Number(t.min),i=this.fromValue-Number(e.min),o=this.toValue-Number(t.min);t.style.background="linear-gradient(\n to right,\n #e0e1e2 0%,\n #e0e1e2 "+i/n*100+"%,\n #f1a0a6 "+i/n*100+"%,\n #f1a0a6 "+o/n*100+"%,\n #e0e1e2 "+o/n*100+"%,\n #e0e1e2 100%)"},e.prototype._setToggleAccessible=function(){var e=this.fromSlider.nativeElement,t=this.toSlider.nativeElement,n=parseInt(e.value,10),i=parseInt(t.value,10);n<=parseInt(e.min,10)&&i<=parseInt(t.min,10)?(e.style.zIndex="1",t.style.zIndex="2"):(n>=parseInt(e.max,10)&&parseInt(t.max,10),e.style.zIndex="2",t.style.zIndex="1")},e.prototype._roundToStep=function(e){return Math.round(e/this.step)*this.step},e.prototype._notifyValueChange=function(){this.onChange({from:this.fromValue,to:this.toValue})},e.prototype.onBlur=function(){this.onTouched()},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},we([t.ViewChild("fromSlider",{static:!1}),Ce("design:type",t.ElementRef)],e.prototype,"fromSlider",void 0),we([t.ViewChild("toSlider",{static:!1}),Ce("design:type",t.ElementRef)],e.prototype,"toSlider",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"help",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"min",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"max",void 0),we([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"maxRange",null),we([t.Input("from"),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"fromValue",null),we([t.Input("to"),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"toValue",null),we([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"step",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disabled",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"required",null),e=n=we([t.Component({selector:"gipi-range-slider",exportAs:"gipiRangeSlider",template:'<label *ngIf="label"\n class="input-label"\n [attr.for]="id">\n {{ label }}\n <span *ngIf="required"> * </span>\n</label>\n\n<div class="slider-wrapper">\n \x3c!-- <input type="number"\n [min]="min"\n [max]="max"\n [step]="step"\n [(ngModel)]="fromValue"\n (ngModelChange)="controlFromInput(true)"\n (input)="controlFromInput(false)"\n (blur)="onBlur()" /> --\x3e\n <span class="value min">\n {{ min }}\n </span>\n <div class="sliders-control">\n <input #fromSlider\n id="fromSlider"\n type="range"\n class="from-value"\n [min]="min"\n [max]="max"\n [value]="fromValue"\n (input)="controlFromSlider()"\n (mouseup)="controlFromSlider()"\n (blur)="onBlur()" />\n <input #toSlider\n id="toSlider"\n type="range"\n class="to-value"\n [min]="min"\n [max]="max"\n [value]="toValue"\n (input)="controlToSlider()"\n (mouseup)="controlToSlider()"\n (blur)="onBlur()" />\n </div>\n <span class="value max">\n {{ max }}\n </span>\n \x3c!-- <input type="number"\n [min]="min"\n [max]="max"\n [step]="step"\n [(ngModel)]="toValue"\n (ngModelChange)="controlToInput(true)"\n (input)="controlToInput(false)"\n (blur)="onBlur()" /> --\x3e\n</div>\n<span class="value min">\n {{ fromValue }} - {{ toValue }}\n</span>\n<small *ngIf="help"\n class="input-help">\n {{ help }}\n</small>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-range-slider"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:flex;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}:host .input-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}:host .input-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}:host .slider-wrapper{display:flex;align-items:center;justify-content:space-between;gap:1.6rem}:host .slider-wrapper>input{display:flex;font-family:inherit;font-size:inherit;color:inherit;text-align:center;padding:.75rem .8rem;background:#fff;border:1px solid #0000001f;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.6rem;outline:0}:host .sliders-control{display:flex;align-items:center;justify-content:center;padding:2rem;position:relative;flex:1}:host .from-value,:host .to-value{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:.6rem;border-radius:.4rem;width:100%;position:absolute;background-color:#e0e1e2;pointer-events:none;outline:0}:host .from-value::-webkit-slider-thumb,:host .to-value::-webkit-slider-thumb{-webkit-appearance:none;display:block;width:1.4rem;height:1.4rem;border-radius:50%;background-color:#e0313e;pointer-events:all;box-shadow:0 .5px 0 0 rgba(0,0,0,.08),0 1px 1px 0 rgba(0,0,0,.14);cursor:-webkit-grab;cursor:grab;outline:0}:host .from-value::-webkit-slider-thumb:hover,:host .to-value::-webkit-slider-thumb:hover{background-color:#cc2d38}:host .from-value::-webkit-slider-thumb:active,:host .to-value::-webkit-slider-thumb:active{box-shadow:inset 0 0 3px #e0313e,0 0 9px #e0313e;-webkit-box-shadow:inset 0 0 3px #e0313e,0 0 9px #e0313e;cursor:-webkit-grabbing;cursor:grabbing}:host input[type=number]{border:1px solid #0000001f;color:#131313;width:50px;height:30px;font-size:20px;outline:0}:host input[type=number]::-webkit-inner-spin-button,:host input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;opacity:0}:host #fromSlider{height:0;z-index:1}"]}),Ce("design:paramtypes",[t.ElementRef,t.ChangeDetectorRef])],e)}(),yi=function(){function e(e,n){this._elementRef=e,this._changeDetectorRef=n,this.isButtonPrimary=this._hasHostAttributes("gipi-primary"),this.isButtonSecondary=this._hasHostAttributes("gipi-secondary"),this.required=!1,this.multiple=!1,this.disabled=!1,this.onOptionClick=new t.EventEmitter,this.onChange=new t.EventEmitter,this.onModelChange=function(){},this.onModelTouched=function(){}}var n;return n=e,e.prototype.ngOnInit=function(){},e.prototype.writeValue=function(e){this.value=e,this._changeDetectorRef.markForCheck()},e.prototype.registerOnChange=function(e){this.onModelChange=e},e.prototype.registerOnTouched=function(e){this.onModelTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},e.prototype.getOptionLabel=function(e){return this.optionLabel?ze.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e},e.prototype.getOptionValue=function(e){return this.optionValue?ze.resolveFieldData(e,this.optionValue):this.optionLabel||void 0===e.value?e:e.value},e.prototype.isOptionDisabled=function(e){return this.optionDisabled?ze.resolveFieldData(e,this.optionDisabled):void 0!==e.disabled&&e.disabled},e.prototype.onItemClick=function(e,t,n){if(!this.disabled&&!this.isOptionDisabled(t)){if(this.multiple)this.isSelected(t)?this.removeOption(t):this.value=Ee(this.value||[],[this.getOptionValue(t)]),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value});else{var i=this.getOptionValue(t);this.value!==i&&(this.value=this.getOptionValue(t),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}this.onOptionClick.emit({originalEvent:e,option:t,index:n})}},e.prototype.isSelected=function(e){var t,n,i=!1,o=this.getOptionValue(e);if(this.multiple){if(this.value&&Array.isArray(this.value))try{for(var r=ke(this.value),a=r.next();!a.done;a=r.next()){var s=a.value;if(ze.equals(s,o,this.dataKey)){i=!0;break}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}}else i=ze.equals(this.getOptionValue(e),this.value,this.dataKey);return i},e.prototype.removeOption=function(e){var t=this;this.value=this.value.filter((function(n){return!ze.equals(n,t.getOptionValue(e),t.dataKey)}))},e.prototype.onBlur=function(){this.onModelTouched()},e.prototype._getHostElement=function(){return this._elementRef.nativeElement},e.prototype._hasHostAttributes=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.some((function(t){return e._getHostElement().hasAttribute(t)}))},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"arialLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"dataKey",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"options",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"optionLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"optionValue",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"optionDisabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"multiple",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onOptionClick",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onChange",void 0),e=n=we([t.Component({selector:"gipi-select-button[gipi-primary], gipi-select-button[gipi-secondary]",exportAs:"gipiSelectButton",template:'<div class="select-button-content"\n [attr.id]="id"\n [attr.aria-label]="arialLabel">\n\n <span *ngIf="label"\n class="label">\n {{ label }}\n <span *ngIf="required && label">*</span>\n </span>\n\n <div class="select-button"\n role="group">\n\n <div *ngFor="let option of options; let i = index"\n role="button"\n #btn\n class="button"\n [attr.aria-pressed]="isSelected(option)"\n [ngClass]="{\'selected\': isSelected(option),\n \'disabled\': disabled || isOptionDisabled(option),\n \'button-primary\': isButtonPrimary,\n \'button-secondary\': isButtonSecondary}"\n (click)="onItemClick($event, option, i)"\n (keydown.enter)="onItemClick($event, option, i)"\n [attr.title]="option.title"\n [attr.aria-label]="option.label"\n (blur)="onBlur()"\n [attr.aria-labelledby]="this.getOptionLabel(option)">\n {{ getOptionLabel(option) }}\n </div>\n\n </div>\n</div>\n',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-select-button"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".select-button-content{display:flex;flex-direction:column;gap:1rem}.select-button-content .label{font-weight:400;font-size:1.4rem;line-height:100%;color:#131313}.select-button-content .label>span{color:#d14014}.select-button-content .select-button{display:flex;flex-direction:row}.select-button-content .select-button .button{width:100%;padding:1.2rem 1.6rem;font-weight:700;font-size:1.3rem;line-height:100%;text-align:center;cursor:pointer;background-color:#fff;border:1px solid #0000001f;color:#696969;height:4rem;display:flex;align-items:center;justify-content:center}.select-button-content .select-button .button:hover{background-color:#f5f5f6}.select-button-content .select-button .button:first-child{border-top-left-radius:5px;border-bottom-left-radius:5px}.select-button-content .select-button .button:last-child{border-top-right-radius:5px;border-bottom-right-radius:5px}.select-button-content .select-button .button.disabled{pointer-events:none!important;cursor:not-allowed!important;border-color:#e0e1e2!important;color:#d1d2d4!important}.select-button-content .select-button .button.disabled.selected{background-color:#e0e1e2!important}.select-button-content .select-button .button.button-primary.selected{background-color:#e0313e;border-color:#e0313e;color:#fff}.select-button-content .select-button .button.button-primary:hover.selected{background-color:#cc2d38}.select-button-content .select-button .button.button-secondary.selected{background-color:#9a9da2;border-color:#9a9da2;color:#fff}.select-button-content .select-button .button.button-secondary:hover.selected{background-color:#8c8f93}"]}),Ce("design:paramtypes",[t.ElementRef,t.ChangeDetectorRef])],e)}(),vi=function(){function e(){var e=this;this._overlayVisible=!1,this.disabled=!1,this.required=!1,this.property="description",this.options=[],this.trackyBy="id",this.onClick=new t.EventEmitter,this.onShowOverlay=new t.EventEmitter,this.onModelChange=new t.EventEmitter,this.onSelectionChange=new t.EventEmitter,this.trackByOption=function(t,n){return e.trackyBy?n[e.trackyBy]:n},this.onChange=function(){},this.onTouch=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"model",{get:function(){return this._modelValue},set:function(e){this._modelValue=e,this.onModelChange.emit(this._modelValue),this.onChange(this._modelValue),this.onTouch(this._modelValue)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"optionSelectedText",{get:function(){return ze.isNull(this.model)&&!Be.isEmpty(this.placeholder)?this.placeholder:ze.isNull(this.model)?"":this.getPropertyValue(this.model)},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.writeValue=function(e){this.model=e},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouch=e},e.prototype.toggleOverlay=function(){this.disabled||(this._overlayVisible=!this._overlayVisible)},e.prototype.getPropertyValue=function(e){return ze.isNewModel(e)?Be.EMPTY:ze.isNull(this.propertyFn)?this._getValue(e,this.property):this.propertyFn(e)},e.prototype._getValue=function(e,t){for(var n=t.split("."),i=e,o=0;o<n.length;o++)if((i=Reflect.get(i,n[o]))&&o===n.length-1)return i},e.prototype.isOptionActive=function(e){return!ze.isNull(this._modelValue)&&(Be.isEmpty(this.property)?e===this._modelValue:e[this.property]===this._modelValue[this.property])},e.prototype.onClickOption=function(e){this.model=e,this.onSelectionChange.emit(e)},we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"iconPrefix",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"iconPrefixWidth",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"iconPrefixHeight",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIconPrefix",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"iconSuffix",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"iconSuffixWidth",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"iconSuffixHeight",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIconSuffix",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"property",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"propertyFn",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"options",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"trackyBy",void 0),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"model",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onShowOverlay",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onModelChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onSelectionChange",void 0),e=n=we([t.Component({selector:"gipi-select",exportAs:"gipiSelect",template:'<div [attr.id]="id"\n [attr.name]="name"\n [attr.aria-label]="ariaLabel"\n role="group"\n class="select-content">\n <mat-label *ngIf="label">\n {{ label }}\n <span *ngIf="required && label">*</span>\n </mat-label>\n\n <div role="menu"\n class="select"\n [class.disabled]="disabled"\n (click)="onClick.emit($event); toggleOverlay()">\n\n <mat-icon *ngIf="svgIconPrefix || iconPrefix"\n [svgIcon]="svgIconPrefix"\n [style.width.px]="iconPrefixWidth"\n [style.height.px]="iconPrefixHeight">\n {{ (!svgIconPrefix && iconPrefix) ? iconPrefix : \'\' }}\n </mat-icon>\n\n <span role="text"> {{ optionSelectedText }} </span>\n\n <mat-icon *ngIf="svgIconSuffix || iconSuffix"\n [svgIcon]="svgIconSuffix"\n [style.width.px]="iconSuffixWidth"\n [style.height.px]="iconSuffixHeight">\n {{ (!svgIconSuffix && iconSuffix) ? iconSuffix : \'\' }}\n </mat-icon>\n\n <mat-icon class="icon-select"> {{ _overlayVisible ? \'expand_less\' : \'expand_more\' }} </mat-icon>\n </div>\n\n</div>\n\n<gipi-overlay [(visible)]="_overlayVisible"\n (onShow)="onShowOverlay.emit()"\n [appendTo]="\'body\'">\n <ul class="select-overlay-content"\n role="menu">\n <li *ngFor="let option of options; trackBy: trackByOption"\n role="menuitem"\n [value]="option"\n (click)="onClickOption(option)"\n [class.active]="isOptionActive(option)">\n {{ getPropertyValue(option) }}\n </li>\n </ul>\n</gipi-overlay>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-select"},changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,styles:[":host{display:block;min-width:0;max-width:100%;flex:1}.select-content{display:flex;flex-direction:column;gap:1rem}.select-content .label{font-weight:400;font-size:1.4rem;line-height:100%;color:#131313}.select-content .label>span{color:#d14014}.select-content .select{background-color:#fff;border:1px solid #e0e1e2;color:#6d6f73;border-radius:16px;padding:12px;gap:8px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;transition:.2s}.select-content .select>span{font-weight:600;font-size:1.4rem;line-height:100%;flex:1}.select-content .select>mat-icon{color:#6d6f73;fill:#6d6f73;max-height:16px}.select-content .select .icon-select{width:16px;height:16px;font-size:1.6rem}.select-overlay-content{list-style:none;max-height:256px;display:flex;flex-direction:column;gap:.8px}.select-overlay-content>li{height:3em;line-height:3em;border-radius:4px;padding:0 16px;text-align:left;cursor:pointer;color:#8c8f93;font-size:1.3rem}.select-overlay-content>li:hover{background-color:#e0e1e2;color:#6d6f73;font-weight:600}.active{background-color:#f3e7e7;color:#e0313e}.disabled{border:1px solid #d1d2d4!important;color:#f5f5f6!important;cursor:not-allowed!important}"]}),Ce("design:paramtypes",[])],e)}(),bi=["xl","lg","md","sm","xs"],_i=new Map([[bi[0],"(min-width: 1920px)"],[bi[1],"(min-width: 1366px)"],[bi[2],"(min-width: 768px)"],[bi[3],"(min-width: 600px)"],[bi[4],"(min-width: 0px)"]]),wi=function(e){function n(){var t=e.call(this)||this;return t._size$=ie.fromEvent(window,"resize").pipe(oe.startWith(t._getScreenSize()),oe.map((function(e){return t._getScreenSize()})),oe.distinctUntilChanged(),oe.shareReplay(1)),t}return be(n,e),Object.defineProperty(n.prototype,"size$",{get:function(){return this._size$},enumerable:!1,configurable:!0}),n.prototype._getScreenSize=function(){var e=Oe(Array.from(_i.entries()).filter((function(e){var t=Oe(e,2),n=(t[0],t[1]);return window.matchMedia(n).matches})),1),t=Oe(e[0],1)[0];return void 0===t?"never":t},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n},token:n,providedIn:"root"}),n=we([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[])],n)}(Ke),xi=function(e){function n(t){var n=e.call(this)||this;return n.router=t,n.menuItems=[],n.isOpened=!1,n.currentUrl=new ie.BehaviorSubject(void 0),n.router.events.subscribe((function(e){e instanceof s.NavigationEnd&&n.currentUrl.next(e.url)})),n}return be(n,e),n.prototype.close=function(){this.isOpened=!1,this._collapseAllMenu()},n.prototype.open=function(){this.isOpened=!0,this._collapseAllMenu()},n.prototype.toggle=function(){this.isOpened=!this.isOpened,this._collapseAllMenu()},n.prototype._collapseAllMenu=function(){this.menuItems.forEach((function(e){return e.expanded=!1}))},n.ctorParameters=function(){return[{type:s.Router}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(s.Router))},token:n,providedIn:"root"}),n=we([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[s.Router])],n)}(Ke),Ci=function(){function e(e,t){this._navService=e,this._breakpointObserverService=t}var n;return n=e,e.prototype.ngOnInit=function(){},e.prototype.ngAfterContentInit=function(){var e=this;this.isScreenLarge.subscribe((function(t){t&&e._navService.open()}))},Object.defineProperty(e.prototype,"isOpened",{get:function(){return ie.of(this._navService.isOpened)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isScreenLarge",{get:function(){return this._breakpointObserverService.size$.pipe(oe.map((function(e){return"xs"!==e&&"sm"!==e&&"md"!==e})))},enumerable:!1,configurable:!0}),e.prototype.onClickBackdrop=function(){var e=this;this._navService.isOpened&&this.isScreenLarge.subscribe((function(t){t||e._navService.close()}))},e.prototype.onResize=function(e){var t=this;this.isScreenLarge.subscribe((function(e){e?t._navService.open():t._navService.close()}))},e.ctorParameters=function(){return[{type:xi},{type:wi}]},we([t.HostListener("window:resize",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[UIEvent]),Ce("design:returntype",void 0)],e.prototype,"onResize",null),e=n=we([t.Component({selector:"gipi-sidenav-container",exportAs:"gipiSidenavContainer",template:'<mat-sidenav-container class="sidenav-container"\n (backdropClick)="onClickBackdrop()">\n <ng-content select="gipi-sidenav"> </ng-content>\n\n <div [class.small-container]="((isScreenLarge | async) && (isOpened | async))"\n [class.large-container]="!((isScreenLarge | async) && (isOpened | async))"\n (click)="onClickBackdrop()">\n <ng-content> </ng-content>\n </div>\n</mat-sidenav-container>\n',encapsulation:t.ViewEncapsulation.None,providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-sidenav-container"},styles:[".sidenav-container{height:calc(100vh - 66px - 8px);width:100vw;overflow:hidden;background-color:#fff}.sidenav-container .small-container{margin-left:248px;height:100%;position:relative}.sidenav-container .large-container{margin-left:76px;height:100%;position:relative}@media screen and (max-width:1365px){.large-container,.small-container{margin-left:76px!important}}"]}),Ce("design:paramtypes",[xi,wi])],e)}(),Ii=function(){function e(e,n,i){this._navService=e,this._breakpointObserverService=n,this._router=i,this._levelOneMenuCollapsableSelected=null,this._levelTwoMenuCollapsableSelected=null,this._mouseEnter=!1,this._menuItems=[],this.labelToggle="Retrair menu",this.showTagNewIntegration=!1,this.showIntegration=!1,this.showConfiguration=!1,this.onClickMenuItem=new t.EventEmitter,this.onClickMenuIntegration=new t.EventEmitter,this.onClickMenuConfiguration=new t.EventEmitter}var n;return n=e,Object.defineProperty(e.prototype,"menuItems",{get:function(){return this._menuItems},set:function(e){this._menuItems=e},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){this._navService.sidenav=this.sidenav,this._navService.menuItems=this.menuItems},Object.defineProperty(e.prototype,"isOpened",{get:function(){return ie.of(this._navService.isOpened)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isScreenLarge",{get:function(){return this._breakpointObserverService.size$.pipe(oe.map((function(e){return"xs"!==e&&"sm"!==e&&"md"!==e})))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"submenuBackButtonName",{get:function(){return ze.isNull(this._levelOneMenuCollapsableSelected)&&ze.isNull(this._levelTwoMenuCollapsableSelected)?ie.of("Voltar"):!ze.isNull(this._levelOneMenuCollapsableSelected)&&ze.isNull(this._levelTwoMenuCollapsableSelected)?ie.of(this._levelOneMenuCollapsableSelected.name):ze.isNull(this._levelOneMenuCollapsableSelected)||ze.isNull(this._levelTwoMenuCollapsableSelected)?void 0:ie.of(this._levelOneMenuCollapsableSelected.name+" / "+this._levelTwoMenuCollapsableSelected.name)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"levelMenuSelected",{get:function(){var e=this,t=[];return ze.isNull(this._levelOneMenuCollapsableSelected)&&ze.isNull(this._levelTwoMenuCollapsableSelected)?t=this.menuItems:!ze.isNull(this._levelOneMenuCollapsableSelected)&&ze.isNull(this._levelTwoMenuCollapsableSelected)?t=this._levelOneMenuCollapsableSelected.menuList:ze.isNull(this._levelOneMenuCollapsableSelected)||ze.isNull(this._levelTwoMenuCollapsableSelected)||(t=this._levelTwoMenuCollapsableSelected.menuList),Ot.isEmpty(t)||t.forEach((function(t){return t.id=e._toCamelCase(t.route)})),ie.of(t)},enumerable:!1,configurable:!0}),e.prototype.toggleSidenav=function(){this._levelOneMenuCollapsableSelected=null,this._levelTwoMenuCollapsableSelected=null,this.onMenuCollapsableReset(this.menuItems),this._navService.toggle()},e.prototype.onMenuCollapsableSelected=function(e){var t=this;setTimeout((function(){t._navService.isOpened||t._navService.open(),t._navService.isOpened&&(e.expanded=!0,!Ot.isEmpty(e.menuList)&&ze.isNull(t._levelOneMenuCollapsableSelected)?t._levelOneMenuCollapsableSelected=ze.clone(e):!Ot.isEmpty(e.menuList)&&ze.isNull(t._levelTwoMenuCollapsableSelected)&&(t._levelTwoMenuCollapsableSelected=ze.clone(e)))}))},e.prototype.onMenuCollapsableReset=function(e){var t=this;setTimeout((function(){for(var n=0;n<e.length;n++)e[n].expanded=!1,Ot.isEmpty(e[n].menuList)||t.onMenuCollapsableReset(e[n].menuList)}))},e.prototype.onMenuCollapsableGoBack=function(){var e=this;setTimeout((function(){ze.isNull(e._levelTwoMenuCollapsableSelected)?ze.isNull(e._levelOneMenuCollapsableSelected)?e.onMenuCollapsableReset(e.menuItems):e._levelOneMenuCollapsableSelected=null:e._levelTwoMenuCollapsableSelected=null}))},e.prototype.isMenuActive=function(e){return this._router.url.startsWith(e.route)},e.prototype.isMenuCollapsableActive=function(e){var t=this;if(Be.isEmpty(e.route))return!1;var n=this._router.url.includes(e.route),i=Ot.clone(this.menuItems);!ze.isNull(this._levelOneMenuCollapsableSelected)&&ze.isNull(this._levelTwoMenuCollapsableSelected)?i=Ot.clone(this._levelOneMenuCollapsableSelected.menuList):ze.isNull(this._levelTwoMenuCollapsableSelected)||(i=Ot.clone(this._levelTwoMenuCollapsableSelected.menuList));var o=i.filter((function(e){return!Ot.isEmpty(e.menuList)})).find((function(t){return t.route===e.route&&t.index===e.index&&t.type&&e.type}));if(n&&!ze.isNull(o)&&!Ot.isEmpty(o.menuList)){var r=o.menuList.find((function(e){return t._router.url.includes(e.route)}));if(ze.isNull(r)||Ot.isEmpty(r.menuList))return!ze.isNull(r);var a=r.menuList.find((function(e){return t._router.url.includes(e.route)}));return!ze.isNull(a)}return!1},e.prototype.onMenuItemSelected=function(e,t){var n=this;void 0===e&&(e=null),void 0===t&&(t=!0),t&&(this._levelOneMenuCollapsableSelected=null,this._levelTwoMenuCollapsableSelected=null,this.onMenuCollapsableReset(this.menuItems),this.isScreenLarge.subscribe((function(e){e||n._navService.close()}))),this.onClickMenuItem.emit(e)},e.prototype.getMenuName=function(e){return e.length<=35?e:e.slice(0,35)+"..."},e.prototype.onMouseEnter=function(){var e=this;this.isOpened.toPromise().then((function(t){t||(e._mouseEnter=!0,e.toggleSidenav())}))},e.prototype.onMouseLeave=function(){var e=this;this.isOpened.toPromise().then((function(t){t&&e._mouseEnter&&(e._mouseEnter=!1,e.toggleSidenav())}))},e.prototype._toCamelCase=function(e){return Be.isEmpty(e)?"":Be.replaceAccents(e).split(/[/\-]/).filter(Boolean).map((function(e,t){return 0===t?e.toLowerCase():e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()})).join("")},e.ctorParameters=function(){return[{type:xi},{type:wi},{type:s.Router}]},we([t.ViewChild("sidenav",{static:!1}),Ce("design:type",G.MatSidenav)],e.prototype,"sidenav",void 0),we([t.Input(),Ce("design:type",Array),Ce("design:paramtypes",[Array])],e.prototype,"menuItems",null),we([t.Input(),Ce("design:type",String)],e.prototype,"labelToggle",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showTagNewIntegration",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"iconIntegration",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIconIntegration",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"labelIntegration",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showIntegration",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"iconConfiguration",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIconConfiguration",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"labelConfiguration",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"showConfiguration",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClickMenuItem",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClickMenuIntegration",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClickMenuConfiguration",void 0),e=n=we([t.Component({selector:"gipi-sidenav",exportAs:"gipiSidenav",template:'<mat-sidenav #sidenav\n class="sidenav"\n opened="true"\n [class.large-sidenav]="(isOpened | async)"\n [class.small-sidenav]="!(isOpened | async)"\n [disableClose]="(isScreenLarge | async)"\n [mode]="(isScreenLarge | async) ? \'side\' : \'over\'">\n\n \x3c!-- <div [ngClass]="{\'sidenav-content-menu\': true,\n \'show-bottom\': (showConfiguration || showIntegration)}"> --\x3e\n <div class="sidenav-content-menu">\n\n \x3c!-- Botão expandir e retrair o menu --\x3e\n <button [attr.id]="\'buttonToogleSidenav\'"\n [attr.name]="\'buttonToogleSidenav\'"\n class="toggle-sidenav"\n (click)="toggleSidenav(); _mouseEnter = false;">\n <mat-icon [@indicatorRotate]="(isOpened | async) ? \'opened\': \'closed\'">\n chevron_right\n </mat-icon>\n\n {{ ((labelToggle) && (isOpened | async)) ? labelToggle : \'\' }}\n </button>\n\n \x3c!-- Botão voltar do submenu --\x3e\n <div class="sidenav-action-menu sidenav-menu-collapsable">\n <a [attr.id]="\'buttonSubmenuBack\'"\n [attr.name]="\'buttonSubmenuBack\'"\n *ngIf="(isOpened | async) && (_levelOneMenuCollapsableSelected || _levelTwoMenuCollapsableSelected)"\n (click)="onMenuCollapsableGoBack()"\n (mouseenter)="!_mouseEnter && onMouseEnter()"\n (mouseleave)="_mouseEnter && onMouseLeave()">\n <mat-icon>\n arrow_back\n </mat-icon>\n <span>\n {{ (submenuBackButtonName | async) }}\n </span>\n </a>\n </div>\n\n \x3c!-- Se o menu item for do tipo submenu --\x3e\n <mat-nav-list class="sidenav-menu-list"\n (mouseenter)="onMouseEnter()"\n (mouseleave)="onMouseLeave()">\n <div class="sidenav-action-menu"\n *ngFor="let menu of (levelMenuSelected | async)">\n <a [attr.id]="menu.id"\n [attr.name]="menu.id"\n [class.menu-active]="isMenuActive(menu)"\n [routerLink]="menu.route"\n *ngIf="menu.type === \'ITEM\'"\n (click)="onMenuItemSelected(menu)">\n <mat-icon *ngIf="menu.icon">\n {{ menu.icon }}\n </mat-icon>\n <mat-icon *ngIf="menu.svgIcon"\n [svgIcon]="menu.svgIcon">\n </mat-icon>\n <span *ngIf="(isOpened | async)">\n {{ getMenuName(menu.name) }}\n </span>\n </a>\n\n <a [attr.id]="menu.id"\n [attr.name]="menu.id"\n [class.menu-active]="isMenuCollapsableActive(menu)"\n *ngIf="menu.type === \'COLLAPSABLE\'"\n (click)="onMenuCollapsableSelected(menu); onMenuItemSelected(menu, false)">\n <mat-icon *ngIf="menu.icon">\n {{ menu.icon }}\n </mat-icon>\n <mat-icon *ngIf="menu.svgIcon"\n [svgIcon]="menu.svgIcon">\n </mat-icon>\n <span *ngIf="(isOpened | async)">\n {{ getMenuName(menu.name) }}\n </span>\n <mat-icon *ngIf="(isOpened | async)">\n chevron_right\n </mat-icon>\n </a>\n </div>\n </mat-nav-list>\n </div>\n\n <div class="sidenav-action-menu sidenav-bottom-menu">\n <a [attr.id]="\'integracoes\'"\n [attr.name]="\'integracoes\'"\n *ngIf="showIntegration"\n (click)="onMenuItemSelected(null); onClickMenuIntegration.emit()">\n <mat-icon *ngIf="iconIntegration">\n {{ iconIntegration }}\n </mat-icon>\n <mat-icon *ngIf="svgIconIntegration"\n [svgIcon]="svgIconIntegration">\n </mat-icon>\n <span *ngIf="(labelIntegration) && (isOpened | async)">\n {{ labelIntegration }}\n </span>\n <div class="tag-new"\n [class.closed]="!(isOpened | async)"\n *ngIf="showTagNewIntegration">\n Novo\n </div>\n </a>\n\n <a [attr.id]="\'configuracoes\'"\n [attr.name]="\'configuracoes\'"\n *ngIf="showConfiguration"\n (click)="onMenuItemSelected(null); onClickMenuConfiguration.emit()">\n <mat-icon *ngIf="iconConfiguration">\n {{ iconConfiguration }}\n </mat-icon>\n <mat-icon *ngIf="svgIconConfiguration"\n [svgIcon]="svgIconConfiguration">\n </mat-icon>\n <span *ngIf="(labelConfiguration) && (isOpened | async)">\n {{ labelConfiguration }}\n </span>\n </a>\n </div>\n</mat-sidenav>',encapsulation:t.ViewEncapsulation.None,providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-sidenav"},animations:[ae.trigger("indicatorRotate",[ae.state("closed",ae.style({transform:"rotate(0deg)"})),ae.state("opened",ae.style({transform:"rotate(180deg)"})),ae.transition("expanded <=> collapsed",ae.animate("225ms cubic-bezier(0.4,0.0,0.2,1)"))])],styles:[".sidenav{padding:.8rem 1.2rem;border-radius:5px;background-color:#fff;position:fixed!important;top:66px!important;bottom:8px!important;border:0!important}.sidenav.small-sidenav{overflow-y:auto;width:76px}.sidenav.small-sidenav .sidenav-bottom-menu,.sidenav.small-sidenav .sidenav-content-menu .sidenav-menu-list .action-sidenav,.sidenav.small-sidenav .sidenav-content-menu .toggle-sidenav{text-align:center!important}.sidenav.large-sidenav{overflow-y:auto;width:248px}.sidenav .sidenav-content-menu{width:100%;background-color:#f5f5f6;border-radius:4px;display:flex;flex-direction:column;align-items:stretch;height:100%;flex:1}.sidenav .sidenav-content-menu .toggle-sidenav{all:unset;border-radius:4px;border:none;text-align:left;cursor:pointer;background-color:#e0313e;color:#fff;display:flex;align-items:center;gap:8px;padding:10px 16px}.sidenav .sidenav-content-menu .toggle-sidenav>mat-icon{width:2rem;height:2rem;font-size:2rem}.sidenav .sidenav-content-menu .toggle-sidenav:hover{background-color:#cc2d38}.sidenav .sidenav-content-menu .sidenav-menu-list{overflow-y:scroll;-ms-overflow-style:none;scrollbar-width:none;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.sidenav .sidenav-content-menu .sidenav-menu-list::-webkit-scrollbar{display:none}.menu-active{color:#e0313e!important;background-color:#e0e1e2!important}.menu-active>mat-icon,.menu-active>mat-icon svg,.menu-active>mat-icon svg path{color:#e0313e!important;fill:#e0313e!important}.sidenav-action-menu{cursor:pointer;display:flex}.sidenav-action-menu.sidenav-bottom-menu{flex-direction:column;gap:1rem;margin-top:1rem}.sidenav-action-menu a{flex:1;padding:16px;background-color:#f5f5f6;display:flex;align-items:center;gap:8px;cursor:pointer;font-size:1.4rem;font-weight:600;position:relative;overflow:hidden}.sidenav-action-menu a:hover{background-color:#e0e1e2}.sidenav-action-menu a>span{flex:1;line-height:2rem}.sidenav-action-menu a>mat-icon{width:2rem;height:2rem;font-size:2rem;line-height:2rem;color:#595959;fill:#595959}.sidenav-action-menu a>mat-icon svg,.sidenav-action-menu a>mat-icon svg path{color:#595959;fill:#595959}.sidenav-bottom-menu a{border-radius:4px}.sidenav-menu-collapsable a{background-color:#e0e1e2}.sidenav-menu-collapsable a:hover{background-color:#d1d2d4}.mat-list-base{padding-top:0!important}.mat-drawer-inner-container{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;overflow:hidden!important}.mat-drawer:not(.mat-drawer-side){box-shadow:none!important}.tag-new{display:flex;align-items:center;justify-content:center;background-color:#e0313e;color:#fff;padding:.2rem .6rem;font-size:1rem;line-height:1rem;border-radius:.4rem}.tag-new.closed{position:absolute;top:15px;right:20px;width:52px;z-index:1;transform:translateX(70%) translateY(-85%) rotate(45deg);transform-origin:center;overflow:hidden;font-size:.8rem!important;line-height:.8rem!important}"]}),Ce("design:paramtypes",[xi,wi,s.Router])],e)}(),Si=0,ki=function(){function e(e){this._changeDetectorRef=e,this._name="gipi-slide-toggle-"+Si++,this._slideToggleValue=!1,this.id=this._name,this.name=this._name,this.label="",this.help="",this._required=!1,this._disabled=!1,this.onChange=function(){},this.onTouched=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"slideToggleValue",{get:function(){return this._slideToggleValue},set:function(e){this._slideToggleValue=e,this.onChange(e),this.onTouched()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this.required!==e&&(this._required=le.coerceBooleanProperty(e),this._changeDetectorRef.markForCheck())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this.disabled!==e&&(this._disabled=le.coerceBooleanProperty(e),this._changeDetectorRef.markForCheck())},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.writeValue=function(e){this.slideToggleValue=e,this._changeDetectorRef.markForCheck()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"help",void 0),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"required",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disabled",null),e=n=we([t.Component({selector:"gipi-slide-toggle",exportAs:"gipiSlideToggle",template:'<input class="toggle toggle-light"\n type="checkbox"\n [attr.id]="id"\n [attr.name]="name"\n [(ngModel)]="slideToggleValue" />\n<label class="toggle-btn"\n [attr.for]="id">\n</label>\n<label class="toggle-label"\n *ngIf="label"\n [attr.for]="id">\n {{ label }}\n</label>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],changeDetection:t.ChangeDetectionStrategy.OnPush,host:{class:"gipi-slide-toggle"},styles:[':host{display:flex;align-items:center;cursor:pointer}.toggle-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-left:1rem;cursor:pointer}.toggle{display:none}.toggle ::-moz-selection,.toggle :after::-moz-selection,.toggle :before::-moz-selection,.toggle+.toggle-btn::-moz-selection,.toggle::-moz-selection,.toggle:after::-moz-selection,.toggle:before::-moz-selection{background:0 0}.toggle ::selection,.toggle :after::selection,.toggle :before::selection,.toggle+.toggle-btn::selection,.toggle::selection,.toggle:after::selection,.toggle:before::selection{background:0 0}.toggle+.toggle-btn{display:block;width:40px;height:24px;outline:0;background:#e0e1e2;border-radius:22px;padding:4px;transition:.4s;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.toggle+.toggle-btn:after,.toggle+.toggle-btn:before{content:"";display:block;width:16px;height:16px;position:relative}.toggle+.toggle-btn:after{left:0;background:#8c8f93;border-radius:50%;transition:.2s}.toggle+.toggle-btn:before{display:none}.toggle:checked+.toggle-btn:after{left:50%;background:#414244}']}),Ce("design:paramtypes",[t.ChangeDetectorRef])],e)}(),Oi=0,Ei=function(){function e(e){this.elementRef=e,this._uniqueId=Oi++,this._name="gipi-split-button-"+this._uniqueId,this.idBtnDefault="gipi-split-button-default-"+this._uniqueId,this.idBtnMenu="gipi-split-button-menu-"+this._uniqueId,this.isSplitButtonPrimary=this._hasHostAttributes("gipi-primary"),this.isSplitButtonSecondary=this._hasHostAttributes("gipi-secondary"),this.isSplitButtonTertiary=this._hasHostAttributes("gipi-tertiary"),this.isSplitButtonAction=this._hasHostAttributes("gipi-action"),this.id=this._name,this.name=this._name,this.type="button",this.ariaLabel="",this.title="",this.label="",this.disabled=!1,this.loading=!1,this.tooltip="",this.splitOptions=[],this.onOpenPopover=new t.EventEmitter,this.onClosePopover=new t.EventEmitter,this.onClick=new t.EventEmitter(!0),this.onFocus=new t.EventEmitter(!0),this.onBlur=new t.EventEmitter(!0)}var n;return n=e,e.prototype.ngOnInit=function(){},e.prototype.ngOnDestroy=function(){this.popoverTrigger&&this.popoverTrigger.destroyPopover()},e.prototype.getHostElement=function(){return this.elementRef.nativeElement},e.prototype._hasHostAttributes=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.some((function(t){return e.getHostElement().hasAttribute(t)}))},e.prototype.btnIdAndName=function(){var e=Oi++;return{btnDefault:"gipi-split-button-default-"+e,btnMenu:"gipi-split-button-menu-"+e}},e.prototype.getInternalButtonClass=function(e){return{"button-default":e,"button-menu":!e,"button-primary":this.isSplitButtonPrimary,"button-secondary":this.isSplitButtonSecondary,"button-tertiary":this.isSplitButtonTertiary,"button-action":this.isSplitButtonAction}},e.prototype.showPopover=function(){this.disabled||this.loading||this.popoverTrigger.openPopover()},e.prototype.closePopover=function(){this.disabled||this.loading||this.popoverTrigger.closePopover()},e.prototype.handleClick=function(e){this.disabled||this.loading||(this.onClick.emit(e),this.closePopover(),e.stopPropagation())},e.prototype.handleFocus=function(e){this.disabled||this.loading||(this.onFocus.emit(e),e.stopPropagation())},e.prototype.handleBlur=function(e){this.disabled||this.loading||(this.onBlur.emit(e),e.stopPropagation())},e.prototype.handleClickBtnMenu=function(e){this.disabled||this.loading||(ze.isNull(this.popoverTrigger)||this.popoverTrigger.togglePopover(),e.stopPropagation())},e.prototype.handleClickBtnSplitOption=function(e){this.disabled||this.loading||!e||e.disabled||!e.clickFn||(e.clickFn(),this.closePopover())},e.prototype.onResize=function(e){this.popoverTrigger&&(this.popoverTrigger.closePopover(),e.stopPropagation())},e.ctorParameters=function(){return[{type:t.ElementRef}]},we([t.ViewChild(gn,{static:!1}),Ce("design:type",gn)],e.prototype,"popoverTrigger",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"type",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"title",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"buttonClass",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),we([t.Input("options"),Ce("design:type",Array)],e.prototype,"splitOptions",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onOpenPopover",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClosePopover",void 0),we([t.Output("click"),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),we([t.Output("focus"),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),we([t.Output("blur"),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),we([t.HostListener("window:resize",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[UIEvent]),Ce("design:returntype",void 0)],e.prototype,"onResize",null),e=n=we([t.Component({selector:"gipi-split-button[gipi-primary], gipi-split-button[gipi-secondary],\n gipi-split-button[gipi-tertiary], gipi-split-button[gipi-action]",exportAs:"gipiSplitButton",template:'<div [matTooltip]="tooltip"\n matTooltipClass="mattooltip-line-break"\n [class]="buttonClass || \'\'"\n [class.button-base]="true"\n [class.disabled]="disabled || loading"\n #popoverTrigger="popoverTrigger"\n [popoverTriggerFor]="btnPopover"\n [popoverTriggerOn]="\'none\'"\n [popoverBackdropCloseOnClick]="true"\n (opened)="onOpenPopover.emit()"\n (closed)="onClosePopover.emit()">\n <button [attr.id]="idBtnDefault"\n [attr.name]="idBtnDefault"\n [attr.type]="type"\n [attr.aria-label]="ariaLabel ? ariaLabel : label"\n [attr.title]="title ? title : label"\n [disabled]="disabled || loading"\n [ngClass]="getInternalButtonClass(true)"\n role="button"\n (click)="handleClick($event)"\n (focus)="handleFocus($event)"\n (blur)="handleBlur($event)">\n {{ label ? label : \'\' }}\n </button>\n <button [attr.id]="idBtnMenu"\n [attr.name]="idBtnMenu"\n [attr.type]="type"\n [attr.aria-label]="ariaLabel ? ariaLabel : label"\n [attr.title]="title ? title : label"\n [disabled]="disabled || loading"\n [ngClass]="getInternalButtonClass(false)"\n role="button"\n (click)="handleClickBtnMenu($event)">\n <mat-icon [@indicatorRotate]="popoverTrigger?.popoverOpen ? \'opened\': \'closed\'"> expand_more </mat-icon>\n </button>\n</div>\n\n<gipi-popover #btnPopover="gipiPopover"\n [popoverOverlapTrigger]="false"\n [popoverCloseOnClick]="false"\n [popoverArrowWidth]="0"\n [popoverOffsetY]="3">\n <div class="btn-popover-content">\n <button class="btn-split-option"\n *ngFor="let option of splitOptions"\n [disabled]="option?.disabled"\n (click)="handleClickBtnSplitOption(option)">\n {{ option.label }}\n </button>\n </div>\n</gipi-popover>\n',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-split-button","[attr.id]":"id","[attr.name]":"name"},animations:[ae.trigger("indicatorRotate",[ae.state("closed",ae.style({transform:"rotate(0deg)"})),ae.state("opened",ae.style({transform:"rotate(-180deg)"})),ae.transition("opened <=> closed",ae.animate("225ms cubic-bezier(0.4,0.0,0.2,1)"))])],styles:[".button-base{display:flex;flex-direction:row;justify-content:center;border-radius:4px;font-weight:600;font-size:1.4rem;line-height:1.6rem;cursor:pointer;outline:0;white-space:nowrap;text-decoration:none;vertical-align:middle;text-align:center;box-shadow:1px 1px 5px 0 rgba(0,0,0,.1);transition:.2s;width:100%;max-height:4rem;border:1px solid transparent;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.button-base.disabled{cursor:not-allowed!important;box-shadow:none}.button-base>button{display:flex;align-items:center;justify-content:center;border:none;outline:0;box-shadow:none;width:100%;height:40px;padding:12px 16px;overflow:hidden;border-radius:inherit;cursor:inherit;font-size:inherit;font-weight:inherit;white-space:nowrap;text-decoration:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative}.button-base>button:not(.disabled):active{opacity:.8}.button-base .button-default{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.button-base .button-menu{max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content;border-top-left-radius:0!important;border-bottom-left-radius:0!important}.button-primary:not(:disabled),.button-primary:not(:disabled)>mat-icon{background-color:#e0313e;color:#fff;fill:#fff}.button-primary:not(:disabled).button-default,.button-primary:not(:disabled)>mat-icon.button-default{border-right:1px solid #9f232c}.button-primary:not(:disabled) svg,.button-primary:not(:disabled) svg g path,.button-primary:not(:disabled) svg path,.button-primary:not(:disabled)>mat-icon svg,.button-primary:not(:disabled)>mat-icon svg g path,.button-primary:not(:disabled)>mat-icon svg path{color:#fff;fill:#fff}.button-primary:disabled,.button-primary:disabled>mat-icon{background-color:#d1d2d4;color:#9a9da2;fill:#9a9da2}.button-primary:disabled.button-default,.button-primary:disabled>mat-icon.button-default{border-right:1px solid #9a9da2}.button-primary:disabled svg,.button-primary:disabled svg g path,.button-primary:disabled svg path,.button-primary:disabled>mat-icon svg,.button-primary:disabled>mat-icon svg g path,.button-primary:disabled>mat-icon svg path{color:#9a9da2;fill:#9a9da2}.button-primary:not(:disabled):hover,.button-primary:not(:disabled):hover>mat-icon{background-color:#cc2d38;color:#fff;fill:#fff}.button-primary:not(:disabled):hover svg,.button-primary:not(:disabled):hover svg g path,.button-primary:not(:disabled):hover svg path,.button-primary:not(:disabled):hover>mat-icon svg,.button-primary:not(:disabled):hover>mat-icon svg g path,.button-primary:not(:disabled):hover>mat-icon svg path{color:#fff;fill:#fff}.button-secondary{background-color:transparent}.button-secondary:not(:disabled),.button-secondary:not(:disabled)>mat-icon{border-color:#595959;color:#595959;fill:#595959}.button-secondary:not(:disabled).button-default,.button-secondary:not(:disabled)>mat-icon.button-default{border-right:1px solid #595959}.button-secondary:not(:disabled) svg,.button-secondary:not(:disabled) svg g path,.button-secondary:not(:disabled) svg path,.button-secondary:not(:disabled)>mat-icon svg,.button-secondary:not(:disabled)>mat-icon svg g path,.button-secondary:not(:disabled)>mat-icon svg path{color:#595959;fill:#595959}.button-secondary:disabled,.button-secondary:disabled>mat-icon{border-color:#d1d2d4;background-color:#d1d2d4;color:#9a9da2;fill:#9a9da2}.button-secondary:disabled.button-default,.button-secondary:disabled>mat-icon.button-default{border-right:1px solid #9a9da2}.button-secondary:disabled svg,.button-secondary:disabled svg g path,.button-secondary:disabled svg path,.button-secondary:disabled>mat-icon svg,.button-secondary:disabled>mat-icon svg g path,.button-secondary:disabled>mat-icon svg path{color:#9a9da2;fill:#9a9da2}.button-secondary:not(:disabled):hover,.button-secondary:not(:disabled):hover>mat-icon{border-color:#595959;background-color:#e0e1e2;color:#595959;fill:#595959}.button-secondary:not(:disabled):hover svg,.button-secondary:not(:disabled):hover svg g path,.button-secondary:not(:disabled):hover svg path,.button-secondary:not(:disabled):hover>mat-icon svg,.button-secondary:not(:disabled):hover>mat-icon svg g path,.button-secondary:not(:disabled):hover>mat-icon svg path{color:#595959;fill:#595959}.button-tertiary{background-color:#e7ebee;box-shadow:none}.button-tertiary:not(:disabled),.button-tertiary:not(:disabled)>mat-icon{color:#595959;fill:#595959}.button-tertiary:not(:disabled).button-default,.button-tertiary:not(:disabled)>mat-icon.button-default{border-right:1px solid #595959}.button-tertiary:not(:disabled) svg,.button-tertiary:not(:disabled) svg g path,.button-tertiary:not(:disabled) svg path,.button-tertiary:not(:disabled)>mat-icon svg,.button-tertiary:not(:disabled)>mat-icon svg g path,.button-tertiary:not(:disabled)>mat-icon svg path{color:#595959;fill:#595959}.button-tertiary:disabled,.button-tertiary:disabled>mat-icon{background-color:#d1d2d4;color:#9a9da2;fill:#9a9da2}.button-tertiary:disabled.button-default,.button-tertiary:disabled>mat-icon.button-default{border-right:1px solid #9a9da2}.button-tertiary:disabled svg,.button-tertiary:disabled svg g path,.button-tertiary:disabled svg path,.button-tertiary:disabled>mat-icon svg,.button-tertiary:disabled>mat-icon svg g path,.button-tertiary:disabled>mat-icon svg path{color:#9a9da2;fill:#9a9da2}.button-tertiary:not(:disabled):hover,.button-tertiary:not(:disabled):hover>mat-icon{background-color:#e0e1e2;color:#595959;fill:#595959}.button-tertiary:not(:disabled):hover svg,.button-tertiary:not(:disabled):hover svg g path,.button-tertiary:not(:disabled):hover svg path,.button-tertiary:not(:disabled):hover>mat-icon svg,.button-tertiary:not(:disabled):hover>mat-icon svg g path,.button-tertiary:not(:disabled):hover>mat-icon svg path{color:#595959;fill:#595959}.button-action{background-color:transparent;box-shadow:none;display:flex;justify-content:flex-start!important}.button-action:not(:disabled),.button-action:not(:disabled)>mat-icon{color:#262626;fill:#262626}.button-action:not(:disabled).button-default,.button-action:not(:disabled)>mat-icon.button-default{border-right:1px solid #262626}.button-action:not(:disabled) svg,.button-action:not(:disabled) svg g path,.button-action:not(:disabled) svg path,.button-action:not(:disabled)>mat-icon svg,.button-action:not(:disabled)>mat-icon svg g path,.button-action:not(:disabled)>mat-icon svg path{color:#262626;fill:#262626}.button-action:disabled,.button-action:disabled>mat-icon{color:#9a9da2;fill:#9a9da2}.button-action:disabled.button-default,.button-action:disabled>mat-icon.button-default{border-right:1px solid #9a9da2}.button-action:disabled svg,.button-action:disabled svg g path,.button-action:disabled svg path,.button-action:disabled>mat-icon svg,.button-action:disabled>mat-icon svg g path,.button-action:disabled>mat-icon svg path{color:#9a9da2;fill:#9a9da2}.button-action:not(:disabled):hover,.button-action:not(:disabled):hover>mat-icon{background-color:#f5f5f6;color:#262626;fill:#262626}.button-action:not(:disabled):hover svg,.button-action:not(:disabled):hover svg g path,.button-action:not(:disabled):hover svg path,.button-action:not(:disabled):hover>mat-icon svg,.button-action:not(:disabled):hover>mat-icon svg g path,.button-action:not(:disabled):hover>mat-icon svg path{color:#262626;fill:#262626}.disabled,:disabled{pointer-events:none!important}.btn-popover-content{display:flex;flex-direction:column;gap:.8rem;background-color:#fff;border-radius:4px;box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);padding:8px}.btn-split-option{width:100%;padding:.8rem;border-radius:.4rem;border:1px solid transparent;text-align:left;outline:0;background-color:transparent;cursor:pointer}.btn-split-option:not(:disabled){color:#595959}.btn-split-option:disabled{border-color:#d1d2d4;background-color:#d1d2d4;color:#9a9da2;cursor:not-allowed}.btn-split-option:not(:disabled):hover{border-color:#595959;background-color:#e0e1e2;color:#595959}"]}),Ce("design:paramtypes",[t.ElementRef])],e)}(),Di=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}var o;return be(i,e),o=i,i.prototype.ngOnInit=function(){},i.prototype.onClick=function(e){this.selectedIndex=e},we([t.Input(),Ce("design:type",String)],i.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],i.prototype,"name",void 0),i=o=we([t.Component({selector:"gipi-stepper",exportAs:"gipiStepper",template:'<div class="stepper-content">\n <div *ngFor="let step of steps; let i = index;"\n class="step-content">\n\n <button disabled="true"\n (click)="onClick(i)">\n <span class="step-icon"\n [class.active]="selectedIndex === i"\n [class.completed]="step.completed">\n\n {{ step.completed ? \'\' : i + 1 }}\n\n <mat-icon *ngIf="step.completed">\n check\n </mat-icon>\n </span>\n\n <span class="step-text">\n {{ step.label }}\n </span>\n </button>\n\n <div *ngIf="i !== steps.length - 1"\n class="step-horizontal-line"\n [class.completed]="step.completed">\n </div>\n </div>\n</div>\n\n<div [style.display]="selected ? \'block\' : \'none\'"\n class="stepper-container">\n <ng-container [ngTemplateOutlet]="selected.content"> </ng-container>\n</div>\n',providers:[{provide:n.CdkStepper,useExisting:o}],host:{class:"gipi-stepper"},styles:[".stepper-content{width:100%;padding:16px;max-width:1366px;position:relative;overflow:hidden;display:flex;flex-direction:row;align-items:center;justify-content:center;margin:0 auto}.stepper-container{flex:1}.stepper-content .step-content{display:flex;flex-direction:row;align-items:center}.stepper-content .step-content>button{display:flex;flex-direction:column;align-items:center;gap:8px;outline:0;border:none;background-color:transparent}.stepper-content .step-content>button .step-icon{display:flex;align-items:center;justify-content:center;width:5rem;height:5rem;font-size:1.4rem;border:2px solid #e0e1e2;border-radius:50%;color:#8c8f93;font-weight:600}.stepper-content .step-content>button .step-text{font-size:1.4rem;line-height:100%;color:#8c8f93}.step-horizontal-line{height:2px;border-radius:4px;min-width:5rem;max-width:10rem;background-color:#e0e1e2;border:none;position:relative;top:-10px;margin:0 16px}.active{border-color:#e0313e!important;color:#e0313e!important}.completed{background-color:#e0313e!important;border-color:#e0313e!important;color:#fff!important}"]})],i)}(n.CdkStepper),Pi=function(){function e(e){this._changeDetectorRef=e,this._rowsExpanded=[],this.loading=!1,this.loadingDetail=!1,this.disabled=!1,this.clickOnRow=!1,this.expandable=!1,this.expandOnlyOneRow=!1,this.columns=[],this.trackBy="id",this.rowsExpandedChange=new t.EventEmitter,this.rowDetailToggleChange=new t.EventEmitter}var n;return n=e,Object.defineProperty(e.prototype,"rows",{get:function(){return this._rows},set:function(e){this._rows=e},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.columnTrackingFn=function(e,t){return t.property},e.prototype.rowTrackingFn=function(e,t){return t[this.trackBy]},e.prototype.getShowHighlightRow=function(e){return!ze.isNull(e)&&!ze.isNull(this.highlightRowFn)&&this.highlightRowFn(e)},e.prototype.getIdentifierRow=function(e){return"row-"+e},e.prototype.getShowExpandable=function(e){return ze.isNull(this.rowExpandableFn)?this.expandable:this.expandable&&this.rowExpandableFn(e)},e.prototype.getColumnValue=function(e,t){var n="";if(this.rows&&this.columns){var i=t.value;"function"==typeof t.value&&(i=t.value(e));var o=t.pipe;o?n=o.transform(i):void 0!==n&&(n=i)}else n="";return n},e.prototype.getRowExpanded=function(e){return!Ot.isEmpty(this._rowsExpanded)&&this._rowsExpanded.includes(e)},e.prototype.onRowExpandedChange=function(e){if(this.getShowExpandable(e)){if(this.expandOnlyOneRow)Ot.isEmpty(this._rowsExpanded)?this._rowsExpanded.push(e):this.getRowExpanded(e)?this._rowsExpanded.splice(0,this._rowsExpanded.length):this._rowsExpanded.splice(0,this._rowsExpanded.length,e);else if(this.getRowExpanded(e)){var t=this._rowsExpanded.findIndex((function(t){return t===e}));this._rowsExpanded.splice(t,1)}else this._rowsExpanded.push(e);this.rowsExpandedChange.emit(this._rowsExpanded),this.rowDetailToggleChange.emit({row:e,isExpanded:this.getRowExpanded(e)}),this._changeDetectorRef.detectChanges()}},e.prototype.onClickCell=function(e,t){ze.isNull(t.action)||t.action(e)},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loadingDetail",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"clickOnRow",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"expandable",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"expandOnlyOneRow",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"rowExpandableFn",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"highlightRowFn",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"columns",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"trackBy",void 0),we([t.Input(),Ce("design:type",t.TemplateRef)],e.prototype,"rowDetailRef",void 0),we([t.Input(),Ce("design:type",Array),Ce("design:paramtypes",[Array])],e.prototype,"rows",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"rowsExpandedChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"rowDetailToggleChange",void 0),e=n=we([t.Component({selector:"gipi-table-body",exportAs:"gipiTableBody",template:'<gipi-table-progress-bar *ngIf="loading"> </gipi-table-progress-bar>\n\n<div class="table-body-content"\n role="rowgroup"\n #contentBody>\n\n <div *ngFor="let row of rows; trackBy: rowTrackingFn; let i = index;"\n gipi-row\n role="row"\n class="table-body-row"\n [attr.id]="getIdentifierRow(i)"\n [class.highlight]="getShowHighlightRow(row)"\n (click)="clickOnRow ? onRowExpandedChange(row) : null">\n\n <div *ngIf="getShowExpandable(row)"\n role="cell"\n class="table-body-cell-expandable noselect"\n (click)="!clickOnRow ? onRowExpandedChange(row) : null">\n <mat-icon>\n {{ getRowExpanded(row) ? \'expand_more\' : \'chevron_right\' }}\n </mat-icon>\n </div>\n\n <div *ngFor="let column of columns; trackBy: columnTrackingFn; let i = index;"\n class="table-body-row-cell noselect"\n role="cell"\n gipi-col\n [GIPISpan]="column.columnSpan"\n [attr.id]="column.property"\n [style.align-items]="\'center\'"\n [style.padding-inline.px]="column.paddingInline"\n [style.justify-content]="column.align"\n [style.cursor]="expandable && clickOnRow ? \'pointer\' : \'default\'"\n (click)="onClickCell(row, column)">\n <span class="table-row-label"\n *ngIf="row">\n {{ getColumnValue(row, column) }}\n </span>\n </div>\n\n <div *ngIf="rowDetailRef"\n class="table-body-row-detail"\n [@detailExpand]="getRowExpanded(row) ? \'expanded\' : \'collapsed\'"\n role="row"\n gipi-col\n [GIPISpan]="12"\n (click)="$event.stopPropagation()">\n <gipi-table-progress-bar *ngIf="loadingDetail"> </gipi-table-progress-bar>\n\n <ng-template *ngIf="!loadingDetail"\n [ngTemplateOutlet]="rowDetailRef"\n [ngTemplateOutletContext]="{$implicit: row}">\n </ng-template>\n </div>\n\n </div>\n\n <div *ngIf="!loading && (rows && (rows.length <= 0))"\n class="no-records">\n <mat-icon>sentiment_very_dissatisfied</mat-icon>\n <span>Nenhum registro foi encontrado</span>\n </div>\n\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-table-body"},animations:[ae.trigger("detailExpand",[ae.state("collapsed",ae.style({height:"0px",minHeight:"0",display:"none"})),ae.state("expanded",ae.style({height:"*"})),ae.transition("expanded <=> collapsed",ae.animate("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])],changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".table-body-row{color:#131313;position:relative;background-color:inherit}.table-body-row.highlight{background-color:#fbf6e6}.table-body-row:not(:last-child){border-bottom:1px solid #e0e1e2}.table-body-row:hover .table-body-row-cell{background-color:#f5f5f6}.table-body-cell-expandable{width:1.6rem;height:1.6rem;background-color:#f5f5f6;border-radius:50%;z-index:1;position:absolute;text-align:center;left:3.8rem;margin:24px 0;cursor:pointer}.table-body-cell-expandable:hover{background-color:#e0e1e2}.table-body-cell-expandable>mat-icon{width:1.6rem;height:1.6rem;font-size:1.6rem}.table-body-row-cell{padding:24px 0;font-weight:400;font-size:1.4rem;line-height:100%;display:flex}.table-body-row-detail{width:100%;min-height:10rem;max-height:90rem;overflow-x:hidden;overflow-y:auto;background-color:#fff}.no-records{display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:1.4rem;font-weight:600;color:#131313;padding:24px 0;box-shadow:inset 0 5px 13px -5px rgba(0,0,0,.1)}.no-records>mat-icon{font-size:3.2rem;height:3.2rem;width:3.2rem;margin-bottom:5px}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef])],e)}(),Ai=function(){function e(){}var n;return n=e,e.prototype.ngOnInit=function(){},e=n=we([t.Component({selector:"gipi-table-footer",exportAs:"gipiTableFooter",template:"<p>\n table-footer works!\n</p>\n",providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-table-footer"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[""]}),Ce("design:paramtypes",[])],e)}(),Ri=function(){function e(e,t){this.property=e,this.direction=t}return Object.defineProperty(e.prototype,"property",{get:function(){return this._property},set:function(e){this._property=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"direction",{get:function(){return this._direction},set:function(e){this._direction=e},enumerable:!1,configurable:!0}),e}(),Mi=function(){function e(e){this._changeDetectorRef=e,this._sortedColumn=null,this.columns=[],this.loading=!1,this.disabled=!1,this.sortStart="asc",this.sortDisableClear=!0,this.sortLocked=!1,this.sortAscendingIcon="keyboard_arrow_up",this.sortDescendingIcon="keyboard_arrow_down",this.sortUnsetIcon="unfold_more",this.sortChange=new t.EventEmitter}var n;return n=e,e.prototype.ngOnInit=function(){var e=this;if(this.columns&&this.columns.length&&this.sortActive){var t=this.columns.find((function(t){return t.property===e.sortActive}));if(ze.isNull(t)||!t.sortable||!ze.isNull(this._sortedColumn))throw new Error('There is no column with the property indicated in "sortActive"');this._sortedColumn={},this._sortedColumn.column=t,this._sortedColumn.sortDirection=this.sortStart,this.sortChange.emit(new Ri(t.property,this._sortedColumn.sortDirection))}},e.prototype.columnTrackingFn=function(e,t){return t.property},e.prototype.onSortChange=function(e){e.sortable&&!this.sortLocked&&(ze.isNull(this._sortedColumn)&&(this._sortedColumn={}),this._sortedColumn.column=e,this._sortedColumn.sortDirection=this._getNextSortDirection(e),this.sortChange.emit(new Ri(e.property,this._sortedColumn.sortDirection)),this._changeDetectorRef.markForCheck())},e.prototype._getNextSortDirection=function(e){return e.sortable?this.sortDisableClear?"asc"===this._sortedColumn.sortDirection?"desc":"asc":this._sortedColumn.sortDirection?"asc"===this._sortedColumn.sortDirection?"desc":(this._sortedColumn.sortDirection,""):"asc":""},e.prototype.isEqualsColumns=function(e){return!ze.isNull(this._sortedColumn)&&!ze.isNull(this._sortedColumn.column)&&ze.shallowEqual(this._sortedColumn.column,e)},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",Array)],e.prototype,"columns",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"sortActive",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"sortStart",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"sortDisableClear",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"sortLocked",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"sortAscendingIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"sortDescendingIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"sortUnsetIcon",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"sortChange",void 0),e=n=we([t.Component({selector:"gipi-table-header",exportAs:"gipiTableHeader",template:'<div class="table-header-content"\n role="rowheader"\n #contentHeader\n gipi-row>\n\n <div *ngFor="let column of columns; trackBy: columnTrackingFn; let i = index;"\n class="table-header-cell noselect"\n role="cell"\n gipi-col\n [GIPISpan]="column.columnSpan"\n [attr.id]="column.property"\n [style.align-items]="\'center\'"\n [style.padding-inline.px]="column.paddingInline"\n [style.justify-content]="column.align"\n [style.cursor]="column.sortable && !sortLocked ? \'pointer\' : \'default\'"\n (click)="onSortChange(column)">\n <span class="table-header-label"\n *ngIf="column.name">\n {{ column.name }}\n </span>\n\n <ng-container *ngIf="column.sortable && _sortedColumn && (column.property === _sortedColumn?.column?.property)">\n <mat-icon *ngIf="(_sortedColumn?.sortDirection === \'asc\')"\n class="table-header-sort">\n {{ sortAscendingIcon }}\n </mat-icon>\n <mat-icon *ngIf="(_sortedColumn?.sortDirection === \'desc\')"\n class="table-header-sort">\n {{ sortDescendingIcon }}\n </mat-icon>\n <mat-icon *ngIf="(_sortedColumn?.sortDirection === \'\')"\n class="table-header-sort">\n {{ sortUnsetIcon }}\n </mat-icon>\n </ng-container>\n </div>\n\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-table-header"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".table-header-content{position:relative;white-space:nowrap;border-bottom:1px solid #e0e1e2;overflow:hidden;text-overflow:ellipsis;font-weight:600;font-size:1.4rem;line-height:100%;color:#131313}.table-header-content .table-header-cell{padding:2.4rem 0;gap:1.6rem;display:flex}.table-header-content .table-header-sort{color:#131313;fill:#131313;width:1.4rem;height:1.4rem;font-size:1.4rem}.table-header-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef])],e)}(),Ti=function(){function e(){this.maxSize=5,this._directionLinks=!0,this._autoHide=!1,this._responsive=!1,this.previousTooltip="Voltar",this.nextTooltip="Avançar",this.pageChange=new t.EventEmitter,this.pageBoundsCorrection=new t.EventEmitter}var n;return n=e,Object.defineProperty(e.prototype,"directionLinks",{get:function(){return this._directionLinks},set:function(e){this._directionLinks=Fi(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"autoHide",{get:function(){return this._autoHide},set:function(e){this._autoHide=Fi(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responsive",{get:function(){return this._responsive},set:function(e){this._responsive=Fi(e)},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.trackByIndex=function(e){return e},we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"maxSize",void 0),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"directionLinks",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"autoHide",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"responsive",null),we([t.Input(),Ce("design:type",String)],e.prototype,"previousTooltip",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"nextTooltip",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"pageChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"pageBoundsCorrection",void 0),e=n=we([t.Component({selector:"gipi-table-pagination",exportAs:"gipiTablePagination",template:'<pagination-template #pageAPI="paginationApi"\n [id]="id"\n [maxSize]="maxSize"\n (pageChange)="pageChange.emit($event)"\n (pageBoundsCorrection)="pageBoundsCorrection.emit($event)">\n\n <nav role="navigation">\n\n <ul class="pagination-content"\n [class.responsive]="responsive"\n *ngIf="!(autoHide && pageAPI.pages.length <= 1)">\n\n <li class="pagination-previous"\n [class.disabled]="pageAPI.isFirstPage()"\n [matTooltip]="!pageAPI.isFirstPage() ? previousTooltip : \'\'"\n *ngIf="directionLinks"\n (keyup.enter)="pageAPI.previous()"\n (click)="1 < pageAPI.getCurrent() ? pageAPI.previous() : null">\n <a tabindex="0">\n <mat-icon> chevron_left </mat-icon>\n </a>\n </li>\n\n <li class="small-screen">\n {{ pageAPI.getCurrent() }} / {{ pageAPI.getLastPage() }}\n </li>\n\n <li [class.current]="pageAPI.getCurrent() === page.value"\n [class.ellipsis]="page.label === \'...\'"\n *ngFor="let page of pageAPI.pages; trackBy: trackByIndex"\n (keyup.enter)="pageAPI.setCurrent(page.value)"\n (click)="pageAPI.setCurrent(page.value)">\n <a tabindex="0"\n *ngIf="pageAPI.getCurrent() !== page.value">\n {{ (page.label === \'...\') ? page.label : (page.label | number:\'\') }}\n </a>\n <ng-container *ngIf="pageAPI.getCurrent() === page.value">\n <span aria-live="polite">\n {{ (page.label === \'...\') ? page.label : (page.label | number:\'\') }}\n </span>\n </ng-container>\n </li>\n\n <li class="pagination-next"\n [class.disabled]="pageAPI.isLastPage()"\n [matTooltip]="!pageAPI.isLastPage() ? nextTooltip : \'\'"\n *ngIf="directionLinks"\n (keyup.enter)="pageAPI.next()"\n (click)="!pageAPI.isLastPage() ? pageAPI.next() : null">\n <a tabindex="0">\n <mat-icon> chevron_right </mat-icon>\n </a>\n </li>\n\n </ul>\n\n </nav>\n\n</pagination-template>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-table-pagination"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".pagination-content{display:flex;align-items:center;gap:4px}.pagination-content>li{display:flex;align-items:center;justify-content:center;list-style:none;width:2.8rem;height:2.8rem;padding:.8rem;border-radius:4px;border:1px solid transparent;font-size:1.2rem;line-height:1.8rem;font-weight:500;color:#595959;transition:.2s;cursor:pointer}.pagination-content>li.pagination-next,.pagination-content>li.pagination-previous{border-color:#595959}.pagination-content>li.pagination-next>a,.pagination-content>li.pagination-next>a>mat-icon,.pagination-content>li.pagination-next>span,.pagination-content>li.pagination-next>span>mat-icon,.pagination-content>li.pagination-previous>a,.pagination-content>li.pagination-previous>a>mat-icon,.pagination-content>li.pagination-previous>span,.pagination-content>li.pagination-previous>span>mat-icon{width:1.8rem;height:1.8rem;font-size:1.8rem}.pagination-content>li:not(.current):not(.disabled):not(.pagination-previous):not(.pagination-next):hover{background-color:#f5f5f6;border-color:#e0e1e2}.pagination-content>li.pagination-next:hover,.pagination-content>li.pagination-previous:hover{background-color:#f5f5f6}.pagination-content>li.current:hover{background-color:#cc2d38}.pagination-content>li.current{background-color:#e0313e;border-color:transparent;color:#fff;cursor:default}.pagination-content>li.pagination-next.disabled,.pagination-content>li.pagination-previous.disabled{color:#d1d2d4!important;border-color:#d1d2d4!important;cursor:not-allowed!important}.pagination-content>li.disabled{color:#d1d2d4!important;cursor:not-allowed!important}.pagination-content .small-screen{display:none}@media screen and (max-width:601px){.pagination-content.responsive .small-screen{display:inline-block}.pagination-content.responsive li:not(.small-screen):not(.pagination-previous):not(.pagination-next){display:none}}"]}),Ce("design:paramtypes",[])],e)}();function Fi(e){return!!e&&"false"!==e}var Vi=function(){function e(){}var n;return n=e,e.prototype.ngOnInit=function(){},e=n=we([t.Component({selector:"gipi-table-progress-bar",exportAs:"gipiTableProgressBar",template:'<div class="progress-linear"\n role="progressbar">\n <div class="indeterminate-progress-bar">\n <div class="bar"> </div>\n </div>\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-table-progress-bar"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".progress-linear{display:block;position:-webkit-sticky;position:sticky;width:100%;height:5px;padding:0;margin:0;top:0}.progress-linear .indeterminate-progress-bar{background-color:#f5bfc3;height:5px;position:relative;overflow:hidden}.progress-linear .indeterminate-progress-bar .bar{background-color:#e0313e;border-radius:9999px;position:absolute;bottom:0;top:0;width:100%;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:indeterminate-progress-bar;animation-name:indeterminate-progress-bar}@-webkit-keyframes indeterminate-progress-bar{from{left:-50%}to{left:100%}}@keyframes indeterminate-progress-bar{from{left:-50%}to{left:100%}}"]}),Ce("design:paramtypes",[])],e)}(),Ni=function(){function e(){this.columns=[],this.loading=!1,this.disabled=!1,this.sortStart="asc",this.sortDisableClear=!0,this.sortLocked=!1,this.sortAscendingIcon="keyboard_arrow_up",this.sortDescendingIcon="keyboard_arrow_down",this.sortUnsetIcon="unfold_more",this.sortChange=new t.EventEmitter,this.loadingDetail=!1,this.clickOnRow=!1,this.expandable=!1,this.expandOnlyOneRow=!1,this.trackBy="id",this.rowsExpandedChange=new t.EventEmitter,this.rowDetailToggleChange=new t.EventEmitter,this.tableShowBorder=!0,this.hideHeader=!1,this.hideFooter=!1}var n;return n=e,e.prototype.ngOnInit=function(){},e.prototype.ngOnDestroy=function(){},we([t.Input(),Ce("design:type",Array)],e.prototype,"columns",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"sortActive",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"sortStart",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"sortDisableClear",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"sortLocked",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"sortAscendingIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"sortDescendingIcon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"sortUnsetIcon",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"sortChange",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"loadingDetail",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"clickOnRow",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"expandable",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"expandOnlyOneRow",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"rowExpandableFn",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"highlightRowFn",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"trackBy",void 0),we([t.ContentChild("rowDetail",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"rowDetailRef",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"rows",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"rowsExpandedChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"rowDetailToggleChange",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"tableShowBorder",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideHeader",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideFooter",void 0),e=n=we([t.Component({selector:"gipi-table",exportAs:"gipiTable",template:'<div role="table"\n class="table">\n <gipi-table-header [columns]="columns"\n [loading]="loading"\n [disabled]="disabled"\n [sortActive]="sortActive"\n [sortStart]="sortStart"\n [sortLocked]="sortLocked"\n [sortDisableClear]="sortDisableClear"\n [sortAscendingIcon]="sortAscendingIcon"\n [sortDescendingIcon]="sortDescendingIcon"\n [sortUnsetIcon]="sortUnsetIcon"\n (sortChange)="sortChange.emit($event)">\n </gipi-table-header>\n <gipi-table-body [columns]="columns"\n [loading]="loading"\n [loadingDetail]="loadingDetail"\n [disabled]="disabled"\n [clickOnRow]="clickOnRow"\n [expandable]="expandable"\n [expandOnlyOneRow]="expandOnlyOneRow"\n [rowExpandableFn]="rowExpandableFn"\n [highlightRowFn]="highlightRowFn"\n [trackBy]="trackBy"\n [rowDetailRef]="rowDetailRef"\n [rows]="rows"\n (rowsExpandedChange)="rowsExpandedChange.emit($event)"\n (rowDetailToggleChange)="rowDetailToggleChange.emit($event)">\n </gipi-table-body>\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-table"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".table{border:1px solid #e0e1e2;border-radius:4px}"]}),Ce("design:paramtypes",[])],e)}(),ji=function(){this.active=!1,this.closeable=!1,this.disabled=!1},Li=0,Bi=function(){function e(){this._name="gipi-tab-"+Li++,this.id=this._name,this.name=this._name,this.active=!1,this.closeable=!1,this.disabled=!1,this.selectionChange=new t.EventEmitter}return e.prototype.ngOnInit=function(){},we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"index",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"active",void 0),we([t.Input(),Ce("design:type",t.TemplateRef)],e.prototype,"template",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"closeable",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"data",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"icon",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIcon",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectionChange",void 0),e=we([t.Component({selector:"gipi-tab",exportAs:"gipiTab",template:'<ng-container *ngIf="active">\n <ng-content> </ng-content>\n <ng-container *ngIf="template"\n [ngTemplateOutlet]="template"\n [ngTemplateOutletContext]="{$implicit: data}">\n </ng-container>\n</ng-container>',host:{class:"gipi-tab","[style.display]":'!active ? "none" : "block"'},styles:[":host{padding:1.6rem}"]}),Ce("design:paramtypes",[])],e)}(),Yi=0,zi=function(){function e(e,t){this.elementRef=e,this._componentFactoryResolver=t,this._name="gipi-tab-"+Yi++,this.id=this._name,this.name=this._name,this.dynamicTabs=[]}return e.prototype.ngOnInit=function(){},e.prototype.ngAfterContentInit=function(){0===this.tabQueryList.filter((function(e){return e.active})).length&&this.tabQueryList.length>0&&this.selectTab(this.tabQueryList.first)},e.prototype.openTab=function(e,t,n,i,o,r){void 0===i&&(i=!1),void 0===o&&(o=!1);var a=new ji;a.label=e,a.template=t,a.data=n,a.closeable=i,a.disabled=o,a.action=r,this._openTabs(Array(a))},e.prototype._openTabs=function(e){var t,n=this,i=e.map((function(e){return n._getTabComponent(e.label,e.template,e.data,e.closeable,e.disabled,e.action)}));(t=this.dynamicTabs).push.apply(t,Ee(i)),this.selectTab(this.dynamicTabs[0])},e.prototype._getTabComponent=function(e,t,n,i,o,r){void 0===i&&(i=!1),void 0===o&&(o=!1);var a=this._componentFactoryResolver.resolveComponentFactory(Bi),s=this.dynamicTabPlaceholder.viewContainer.createComponent(a),l=s.instance;return l.label=e,l.template=t,l.data=n,l.closeable=i,l.disabled=o,l.action=r,s.instance},e.prototype.selectTab=function(e){e.disabled||(this.tabQueryList.toArray().forEach((function(e){return e.active=!1})),this.dynamicTabs.forEach((function(e){return e.active=!1})),e.active=!0,e.selectionChange.emit(),e.action&&e.action(e.data))},e.prototype.closeTab=function(e){var t=this.dynamicTabs.indexOf(e);this.dynamicTabs.splice(t,1),this.dynamicTabPlaceholder.viewContainer.remove(t),this.tabQueryList.length>0&&this.selectTab(this.tabQueryList.first)},e.prototype.closeActiveTab=function(){var e=this.dynamicTabs.filter((function(e){return e.active}));e.length>0&&this.closeTab(e[0])},e.prototype.closeAllTabs=function(){var e=this,t=Object.assign([],this.dynamicTabs);t.length>0&&t.forEach((function(t){return e.closeTab(t)}))},e.prototype.nextTab=function(){var e=this.tabQueryList.toArray().find((function(e){return e.active})),t=this.tabQueryList.toArray()[this.tabQueryList.toArray().indexOf(e)+1];null!=t&&(this.tabQueryList.toArray().forEach((function(e){return e.active=!1})),this.dynamicTabs.forEach((function(e){return e.active=!1})),t.active=!0,t.selectionChange.emit())},e.prototype.previousTab=function(){var e=this.tabQueryList.toArray().find((function(e){return e.active})),t=this.tabQueryList.toArray()[this.tabQueryList.toArray().indexOf(e)-1];null!=t&&(this.tabQueryList.toArray().forEach((function(e){return e.active=!1})),this.dynamicTabs.forEach((function(e){return e.active=!1})),t.active=!0,t.selectionChange.emit())},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ComponentFactoryResolver}]},we([t.ContentChildren(Bi),Ce("design:type",t.QueryList)],e.prototype,"tabQueryList",void 0),we([t.ViewChild(an,{static:!1}),Ce("design:type",an)],e.prototype,"dynamicTabPlaceholder",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),e=we([t.Component({selector:"gipi-tab-group",exportAs:"gipiTabGroup",template:'<nav mat-tab-nav-bar>\n <a mat-tab-link\n *ngFor="let tab of tabQueryList"\n [attr.id]="tab.id"\n [attr.name]="tab.name"\n [class.active]="tab.active"\n [disabled]="tab.disabled"\n (click)="selectTab(tab)">\n <mat-icon *ngIf="tab.icon || tab.svgIcon"\n [svgIcon]="tab.svgIcon ? tab.svgIcon : \'\'">\n {{ !tab.svgIcon && tab.icon ? tab.icon : \'\' }}\n </mat-icon>\n\n {{ tab.label }}\n </a>\n\n <a mat-tab-link\n *ngFor="let tab of dynamicTabs"\n [attr.id]="tab.id"\n [attr.name]="tab.name"\n [class.active]="tab.active"\n [disabled]="tab.disabled"\n (click)="selectTab(tab)">\n <mat-icon *ngIf="tab.icon || tab.svgIcon"\n [svgIcon]="tab.svgIcon ? tab.svgIcon : \'\'">\n {{ !tab.svgIcon && tab.icon ? tab.icon : \'\' }}\n </mat-icon>\n\n {{ tab.label }}\n </a>\n</nav>\n\n<ng-content> </ng-content>\n<ng-template dynamicTab\n #container>\n</ng-template>',host:{class:"gipi-tab-group","[attr.id]":"id","[attr.name]":"name"},styles:[":host{display:block;flex:1;width:100%;box-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1)}:host ::ng-deep .mat-tab-nav-bar{background:#f5f5f6;border:none;border-radius:.4rem;padding:.4rem;box-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1)}:host ::ng-deep .mat-tab-links{display:flex;gap:1rem}:host ::ng-deep .mat-tab-link{height:auto!important;padding:1rem!important;opacity:1!important;border:none!important;border-radius:4px!important;transition:.2s!important;color:#595959!important;gap:1rem}:host ::ng-deep .mat-tab-link>mat-icon{width:2rem!important;height:2rem!important;font-size:2rem!important;color:#595959!important}:host ::ng-deep .mat-tab-link>mat-icon svg,:host ::ng-deep .mat-tab-link>mat-icon svg g path,:host ::ng-deep .mat-tab-link>mat-icon svg path{color:#595959!important;fill:#595959!important}:host ::ng-deep .mat-tab-link:not(.active):not(.mat-tab-disabled):hover{background:#e0e1e2!important}:host ::ng-deep .mat-tab-link.active{background:#e0313e!important;color:#fff!important}:host ::ng-deep .mat-tab-link.active>mat-icon{color:#fff!important}:host ::ng-deep .mat-tab-link.active>mat-icon svg,:host ::ng-deep .mat-tab-link.active>mat-icon svg g path,:host ::ng-deep .mat-tab-link.active>mat-icon svg path{color:#fff!important;fill:#fff!important}:host ::ng-deep .mat-tab-link.mat-tab-disabled,:host ::ng-deep .mat-tab-link:disabled,:host ::ng-deep .mat-tab-link:disabled>mat-icon{color:#d1d2d4!important;fill:#d1d2d4!important;text-decoration:line-through!important;pointer-events:all!important;cursor:not-allowed!important}:host ::ng-deep .mat-tab-link.mat-tab-disabled svg,:host ::ng-deep .mat-tab-link.mat-tab-disabled svg g path,:host ::ng-deep .mat-tab-link.mat-tab-disabled svg path,:host ::ng-deep .mat-tab-link:disabled svg,:host ::ng-deep .mat-tab-link:disabled svg g path,:host ::ng-deep .mat-tab-link:disabled svg path,:host ::ng-deep .mat-tab-link:disabled>mat-icon svg,:host ::ng-deep .mat-tab-link:disabled>mat-icon svg g path,:host ::ng-deep .mat-tab-link:disabled>mat-icon svg path{color:#d1d2d4!important;fill:#d1d2d4!important}:host ::ng-deep .mat-ink-bar{display:none!important}:host ::ng-deep .mat-tab-header-pagination{box-shadow:none!important}:host ::ng-deep .mat-tab-header-pagination.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:#d1d2d4!important;cursor:not-allowed!important}:host ::ng-deep .mat-tab-header-pagination .mat-tab-header-pagination-chevron{border-color:#595959!important}:host ::ng-deep .mat-tab-header-pagination:hover{transform:scale(.98)!important}"]}),Ce("design:paramtypes",[t.ElementRef,t.ComponentFactoryResolver])],e)}(),Hi=0,Gi=function(){function e(e,t){this.elementRef=e,this._changeDetectorRef=t,this._name="gipi-textarea-"+Hi++,this.id=this._name,this.name=this._name,this.label="",this.placeholder="",this.cols=20,this.rows=4,this.help="",this.maxlength=254,this.minlength=0,this._resize="horizontal",this._minHeight="60px",this._height="60px",this._maxHeight="auto",this._autocomplete="off",this._autofocus=!1,this._readOnly=!1,this._required=!1,this._disabled=!1,this._lowerCase=!1,this._upperCase=!1,this._spaceDrop=!1,this.onChange=function(){},this.onTouched=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"resize",{get:function(){return this._resize},set:function(e){e!==this.resize&&(this._resize=e.toLowerCase(),this._changeDetectorRef.detectChanges())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minHeight",{get:function(){return this._minHeight},set:function(e){"AUTO"===e.trim().toUpperCase()?this._minHeight="auto":this._minHeight=le.coerceCssPixelValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(e){"AUTO"===e.trim().toUpperCase()?this._height="auto":this._height=le.coerceCssPixelValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxHeight",{get:function(){return this._maxHeight},set:function(e){"AUTO"===e.trim().toUpperCase()?this._maxHeight="auto":this._maxHeight=le.coerceCssPixelValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"autocomplete",{get:function(){return this._autocomplete},set:function(e){this._autocomplete=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"autofocus",{get:function(){return this._autofocus},set:function(e){this._autofocus=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"readOnly",{get:function(){return this._readOnly},set:function(e){this._readOnly=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lowerCase",{get:function(){return this._lowerCase},set:function(e){this._lowerCase=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"upperCase",{get:function(){return this._upperCase},set:function(e){this._upperCase=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"spaceDrop",{get:function(){return this._spaceDrop},set:function(e){this._spaceDrop=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){var t=e;t=this._checkSpaceDrop(t),t=this._checkLowercase(t),t=this._checkUppercase(t),this._value=t,this.onChange(this._value),this.onTouched(this._value)},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.writeValue=function(e){this._value=e},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},e.prototype._checkSpaceDrop=function(e){return this.spaceDrop&&e?e.replace(/\s/g,""):e},e.prototype._checkUppercase=function(e){return this.upperCase&&e?e.toUpperCase():e},e.prototype._checkLowercase=function(e){return this.lowerCase&&e?e.toLowerCase():e},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"cols",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"rows",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"help",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"maxlength",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"minlength",void 0),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"resize",null),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"minHeight",null),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"height",null),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"maxHeight",null),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"autocomplete",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"autofocus",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"readOnly",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"required",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disabled",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"lowerCase",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"upperCase",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"spaceDrop",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"value",null),e=n=we([t.Component({selector:"gipi-textarea",exportAs:"gipiTextarea",template:'<label class="textarea-label"\n *ngIf="label"\n [attr.for]="id">\n {{ label }}\n <span *ngIf="required"> * </span>\n</label>\n\n<textarea class="textarea-element"\n [attr.id]="id"\n [attr.name]="name"\n [placeholder]="placeholder"\n [cols]="cols"\n [rows]="rows"\n [class.resize-none]="resize === \'none\'"\n [class.resize-both]="resize === \'both\'"\n [class.resize-horizontal]="resize === \'horizontal\'"\n [class.resize-vertical]="resize === \'vertical\'"\n [style.min-height.px]="minHeight"\n [style.height.px]="height"\n [style.max-height.px]="maxHeight"\n [minlength]="minlength"\n [maxlength]="maxlength"\n [disabled]="disabled"\n [required]="required"\n [readOnly]="readOnly"\n [attr.autocomplete]="autocomplete"\n [autofocus]="autofocus"\n [(ngModel)]="value"\n [value]="value">\n </textarea>\n\n<small *ngIf="help"\n class="textarea-help">\n {{ help }}\n</small>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-textarea"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:flex;min-width:0;max-width:100%;flex:1;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}:host .textarea-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}:host .textarea-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}:host .textarea-element{display:flex;font-family:inherit;font-size:inherit;color:inherit;padding:.75rem .8rem;background:#fff;border:1px solid #0000001f;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:6px;caret-color:#696969;max-height:12rem;min-height:6rem;resize:vertical;outline:0;overflow:auto}:host .textarea-element:not(:disabled):hover{border-color:#6d6f73}:host .textarea-element:not(:disabled).ng-dirty.ng-invalid:enabled:hover,:host .textarea-element:not(:disabled):invalid:enabled:hover{border-color:#e07f62}:host .textarea-element:not(:disabled):enabled:focus{outline:0;outline-offset:0;box-shadow:0 0 0 .2rem #e0e1e2;border-color:#6d6f73}:host .textarea-element:not(:disabled).ng-dirty.ng-invalid:enabled,:host .textarea-element:not(:disabled):invalid:enabled{border-color:#d14014}:host .textarea-element:not(:disabled).ng-dirty.ng-invalid:enabled:focus,:host .textarea-element:not(:disabled):invalid:enabled:focus{outline:0;outline-offset:0;box-shadow:0 0 0 .2rem #f1c4b6;border-color:#d14014}:host .textarea-element:disabled{color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;cursor:not-allowed}:host .textarea-element.resize-none{resize:none}:host .textarea-element.resize-both{resize:both}:host .textarea-element.resize-horizontal{resize:horizontal}:host .textarea-element.resize-vertical{resize:vertical}:host .textarea-help{flex:1;font-size:1rem;font-weight:500;margin-top:-.4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}::-webkit-input-placeholder{color:#bbbdc1}:-moz-placeholder{color:#bbbdc1}::-moz-placeholder{color:#bbbdc1}:-ms-input-placeholder{color:#bbbdc1}"]}),Ce("design:paramtypes",[t.ElementRef,t.ChangeDetectorRef])],e)}(),Ui=function(){function e(){}var n;return n=e,e.prototype.ngOnInit=function(){},we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"style",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"class",void 0),e=n=we([t.Component({selector:"gipi-toolbar",exportAs:"gipiToolbar",template:'<div [attr.id]="id"\n [attr.aria-label]="ariaLabel ? ariaLabel : label"\n [ngStyle]="style"\n [class]="class">\n <h5 *ngIf="label"> {{ label }} </h5>\n <ng-content> </ng-content>\n</div>\n',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-toolbar"},styles:[":host>div{width:100%;color:#131313;display:flex;align-items:center}:host>div>h5{font-weight:600;font-size:2rem;line-height:150%}"]}),Ce("design:paramtypes",[])],e)}(),qi=function(){function e(e){this._navService=e}var n;return n=e,e.prototype.ngOnInit=function(){},e.prototype.toggle=function(){this._navService.toggle()},e.ctorParameters=function(){return[{type:xi}]},e=n=we([t.Component({selector:"[gipi-top-nav], gipi-top-nav",exportAs:"gipiTopNav",template:"<ng-content> </ng-content>\n",providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-top-nav"},styles:[":host{height:66px;max-height:66px;background-color:#f5f5f6;border-bottom:2px solid #e0313e;display:flex;align-items:center;padding:12px}"]}),Ce("design:paramtypes",[xi])],e)}(),Wi=he,$i=function(){function e(){}return e.format=function(e,t){return ze.isNull(e)?Be.EMPTY:i.formatDate(e,t,"pt")},e.isValid=function(t){return!ze.isNull(t)&&(t=new Date(t),!isNaN(t.getTime())&&e.isGreaterThan(t,new Date("1900-01-01Z00:00:00:000")))},e.isEqual=function(e,t,n){if(void 0===n&&(n="date"),!ze.isNull(e)&&!ze.isNull(t)){var i=Wi(e),o=Wi(t);return i.startOf("day").isSame(o.startOf("day"),n)}return!1},e.isGreaterThan=function(e,t,n){if(void 0===n&&(n="date"),!ze.isNull(e)&&!ze.isNull(t)){var i=Wi(e),o=Wi(t);return i.isAfter(o,n)}return!1},e.isLessThan=function(e,t,n){if(void 0===n&&(n="date"),!ze.isNull(e)&&!ze.isNull(t)){var i=Wi(e),o=Wi(t);return i.isBefore(o,n)}return!1},e.isLessThanOrEqual=function(e,t,n){return void 0===n&&(n="date"),this.isLessThan(e,t,n)||this.isEqual(e,t,n)},e.isGreaterThanOrEqual=function(e,t,n){return void 0===n&&(n="date"),this.isGreaterThan(e,t,n)||this.isEqual(e,t,n)},e.isBetween=function(e,t,n,i){return void 0===i&&(i="date"),this.isGreaterThanOrEqual(e,t,i)&&this.isLessThanOrEqual(e,n,i)},e.diffBetweenDates=function(e,t,n){var i=new Date(e),o=new Date(t),r=Wi(i,"DD/MM/YYYY HH:mm:ss").diff(Wi(o,"DD/MM/YYYY HH:mm:ss")),a=0;switch(n){case"MILLISECONDS":a=Wi.duration(r).asMilliseconds();break;case"SECONDS":a=Wi.duration(r).asSeconds();break;case"MINUTES":a=Wi.duration(r).asMinutes();break;case"HOURS":a=Wi.duration(r).asHours();break;case"DAYS":a=Wi.duration(r).asDays();break;case"MONTHS":a=Wi.duration(r).asMonths()}return a<0?-1*a:a},e.getDayOfWeek=function(e){switch(e.getDay()+1){case 1:return"SUNDAY";case 2:return"MONDAY";case 3:return"TUESDAY";case 4:return"WEDNESDAY";case 5:return"THURSDAY";case 6:return"FRIDAY";case 7:return"SATURDAY"}return null},e.isValidWithString=function(e,t){if(Be.isEmpty(e)||e.length<t.length)return!1;var n=this.stringToDate(e,t);return!isNaN(n.getTime())},e.stringToDate=function(e,t,n){void 0===n&&(n=!1);var i=e.replace(/[^a-zA-Z0-9]/g,"-").split("-"),o=t.toLowerCase().replace(/[^a-zA-Z0-9]/g,"-").split("-"),r=o.indexOf("yyyy"),a=o.indexOf("mm"),s=o.indexOf("dd"),l=o.indexOf("hh"),p=o.indexOf("ii"),d=o.indexOf("ss");return n?new Date(Date.UTC(r>-1?+i[r]:0,a>-1?+i[a]-1:0,s>-1?+i[s]:1,l>-1?+i[l]:0,p>-1?+i[p]:0,d>-1?+i[d]:0)):new Date((r>-1?i[r]:"1970")+"-"+(a>-1?i[a]:"01")+"-"+(s>-1?i[s]:"01")+"T"+(l>-1?i[l]:"00")+":"+(p>-1?i[p]:"00")+":"+(d>-1?i[d]:"00")+".000Z")},e.dateAndStringHourToDate=function(e,t){var n=String(e).split(" "),i=n[0]+" "+n[1]+" "+n[2]+" "+n[3]+" "+t+":00";return new Date(i)},e.stringFormattedToDate=function(e){var t=e.split("/").map((function(e){return Number(e)}));return new Date(t[2],t[1]-1,t[0])},e.getLastDayMonth=function(e){var t=new Date;new Date;return(e?new Date(t.getFullYear(),e+1,0):new Date(t.getFullYear(),t.getMonth()+1,0)).getDate()},e.isValidMonth=function(e){var t=(e=new Date(e)).getFullYear(),n=e.getMonth();return!(Je.isNegative(t)||Je.isNegative(n)||n<0||n>12||t<=1900)},e.isEqualMonth=function(e,t){return e=new Date(e),t=new Date(t),!(ze.isNull(e)||ze.isNull(t)||!this.isValidMonth(e)||!this.isValidMonth(t))&&e.getMonth()===t.getMonth()},e.isGreaterThanMonth=function(e,t){return e=new Date(e),t=new Date(t),!(ze.isNull(e)||ze.isNull(t)||!this.isValidMonth(e)||!this.isValidMonth(t))&&(e.getFullYear()>t.getFullYear()||e.getFullYear()>=t.getFullYear()&&e.getMonth()>t.getMonth())},e.isLessThanMonth=function(e,t){return e=new Date(e),t=new Date(t),!(ze.isNull(e)||ze.isNull(t)||!this.isValidMonth(e)||!this.isValidMonth(t))&&(e.getFullYear()<t.getFullYear()||e.getFullYear()<=t.getFullYear()&&e.getMonth()<t.getMonth())},e.isLessThanOrEqualMonth=function(e,t){return e=new Date(e),t=new Date(t),this.isLessThanMonth(e,t)||this.isEqualMonth(e,t)},e.isGreaterThanOrEqualMonth=function(e,t){return e=new Date(e),t=new Date(t),this.isGreaterThanMonth(e,t)||this.isEqualMonth(e,t)},e.isBetweenMonth=function(e,t,n){return e=new Date(e),t=new Date(t),n=new Date(n),this.isGreaterThanOrEqualMonth(e,t)&&this.isLessThanOrEqualMonth(e,n)},e.getNameWeekTranslation=function(e,t){void 0===t&&(t="LONG");var n=new lt;switch(t){case"MIN":return n.translation.dayNamesMin[e];case"SHORT":return n.translation.dayNamesShort[e];case"LONG":return n.translation.dayNames[e]}},e.getNameMonthTranslation=function(e,t){void 0===t&&(t="LONG");var n=new lt;switch(t){case"SHORT":return n.translation.monthNamesShort[e];case"LONG":return n.translation.monthNames[e]}},e.isDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)},e.isEmpty=function(e){return null==e||""===e||Array.isArray(e)&&0===e.length||!this.isDate(e)&&"object"==typeof e&&0===Object.keys(e).length},e.isNotEmpty=function(e){return!this.isEmpty(e)},e.DATE_FORMAT="dd/MM/yyyy",e.DATE_TIME_FORMAT="dd/MM/yyyy HH:mm",e}(),Ki=function(){function e(){this._overlayVisible=!1,this.click=new t.EventEmitter,this.showOverlay=new t.EventEmitter,this.clickEdit=new t.EventEmitter,this.clickExit=new t.EventEmitter}var n;return n=e,Object.defineProperty(e.prototype,"lastAccessText",{get:function(){return"Último acesso "+$i.format(this.lastAccess,$i.DATE_FORMAT)+" às "+$i.format(this.lastAccess,"HH:mm")},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.toggleOverlay=function(){this._overlayVisible=!this._overlayVisible},we([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"imgSrc",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"text",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"username",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"email",void 0),we([t.Input(),Ce("design:type",Date)],e.prototype,"lastAccess",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"iconEdit",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIconEdit",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"iconExit",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"svgIconExit",void 0),we([t.Output("onClick"),Ce("design:type",t.EventEmitter)],e.prototype,"click",void 0),we([t.Output("onShowOverlay"),Ce("design:type",t.EventEmitter)],e.prototype,"showOverlay",void 0),we([t.Output("onClickEdit"),Ce("design:type",t.EventEmitter)],e.prototype,"clickEdit",void 0),we([t.Output("onClickExit"),Ce("design:type",t.EventEmitter)],e.prototype,"clickExit",void 0),e=n=we([t.Component({selector:"gipi-user-profile",exportAs:"gipiUserProfile",template:'<div [attr.id]="id"\n [attr.name]="name"\n [attr.aria-label]="ariaLabel"\n role="menu"\n class="user-profile-content"\n (click)="click.emit($event); toggleOverlay()">\n <img [src]="imgSrc"\n alt="Foto do usuário"\n class="user-photo"\n width="24"\n height="24">\n\n <span role="text"> {{ text }} </span>\n\n <mat-icon> {{ _overlayVisible ? \'expand_less\' : \'expand_more\' }} </mat-icon>\n</div>\n\n<gipi-overlay [(visible)]="_overlayVisible"\n [appendTo]="\'body\'"\n (onShow)="showOverlay.emit()">\n <div class="profile-overlay-content">\n <section role="group"\n class="section-top">\n <img [src]="imgSrc"\n alt="Foto do usuário"\n class="user-photo"\n width="28"\n height="28">\n\n <div role="group"\n class="details">\n <span role="text"\n class="name">\n {{ username }}\n </span>\n <span role="text"\n class="email">\n {{ email }}\n </span>\n </div>\n </section>\n\n <section role="group"\n class="section-bottom">\n <span *ngIf="lastAccess"\n role="text"\n class="last-access">\n {{ lastAccessText }}\n </span>\n\n <button class="button-profile"\n (click)="clickEdit.emit($event)">\n <mat-icon *ngIf="svgIconEdit || iconEdit"\n [svgIcon]="svgIconEdit">\n {{ (!svgIconEdit && iconEdit) ? iconEdit : \'\' }}\n </mat-icon>\n <span role="text">Editar perfil</span>\n </button>\n\n <button class="button-profile"\n (click)="clickExit.emit($event)">\n <mat-icon *ngIf="svgIconExit || iconExit"\n [svgIcon]="svgIconExit">\n {{ (!svgIconExit && iconExit) ? iconExit : \'\' }}\n </mat-icon>\n <span role="text">Sair</span>\n </button>\n </section>\n </div>\n</gipi-overlay>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-user-profile"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".user-profile-content{background-color:#fff;border:1px solid #e0e1e2;border-radius:16px;padding:8px;display:flex;align-items:center;color:#6d6f73;font-size:1.4rem;cursor:pointer;transition:.2s}.user-profile-content:hover{background-color:#fcfcfc;border-color:#d1d2d4}.user-profile-content>span{font-weight:600;line-height:100%;margin-left:8px}.user-profile-content>mat-icon{width:1.6rem;height:1.6rem;font-size:1.6rem;text-align:center;margin-left:4px}.profile-overlay-content{display:flex;flex-direction:column;gap:8px}.profile-overlay-content .section-top{display:flex;align-items:flex-start;gap:8px}.profile-overlay-content .section-top .details{display:flex;flex-direction:column;gap:4px;border-bottom:1px solid #e0e1e2}.profile-overlay-content .section-top .details .name{color:#8c8f93;font-weight:600;font-size:1.4rem;line-height:100%}.profile-overlay-content .section-top .details .email{color:#9a9da2;font-size:1.2rem;font-weight:400;line-height:100%;margin-bottom:8px}.profile-overlay-content .section-bottom{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.profile-overlay-content .section-bottom .last-access{background-color:#e6f2fa;color:#8c8f93;border-radius:4px;padding:4px;text-align:center;font-weight:400;font-size:1.2rem;line-height:100%;width:100%}.profile-overlay-content .section-bottom .button-profile{all:unset;display:flex;align-items:center;gap:8px;color:#595959;font-size:1.3rem;font-weight:400;line-height:100%;cursor:pointer}.profile-overlay-content .section-bottom .button-profile:hover{font-weight:600}.profile-overlay-content .section-bottom .button-profile>mat-icon{width:14px;height:14px;font-size:1.4rem}.user-photo{border-radius:50%;-o-object-fit:cover;object-fit:cover}"]}),Ce("design:paramtypes",[])],e)}(),Xi=new t.InjectionToken("MAT_DATE_LOCALE",{providedIn:"root",factory:Zi});function Zi(){return t.inject(t.LOCALE_ID)}var Ji={provide:Xi,useExisting:t.LOCALE_ID},Qi=function(){function e(){this._localeChanges=new ie.Subject,this.localeChanges=this._localeChanges}return e.prototype.getValidDateOrNull=function(e){return this.isDateInstance(e)&&this.isValid(e)?e:null},e.prototype.deserialize=function(e){return null==e||this.isDateInstance(e)&&this.isValid(e)?e:this.invalid()},e.prototype.setLocale=function(e){this.locale=e,this._localeChanges.next()},e.prototype.compareDate=function(e,t){return this.getYear(e)-this.getYear(t)||this.getMonth(e)-this.getMonth(t)||this.getDate(e)-this.getDate(t)},e.prototype.sameDate=function(e,t){if(e&&t){var n=this.isValid(e),i=this.isValid(t);return n&&i?!this.compareDate(e,t):n==i}return e==t},e.prototype.clampDate=function(e,t,n){return t&&this.compareDate(e,t)<0?t:n&&this.compareDate(e,n)>0?n:e},e}(),eo=function(e,t){this.start=e,this.end=t},to=function(){function e(e,t){this.selection=e,this._adapter=t,this._selectionChanged=new ie.Subject,this.selectionChanged=this._selectionChanged,this.selection=e}return e.prototype.updateSelection=function(e,t){this.selection=e,this._selectionChanged.next({selection:e,source:t})},e.prototype.ngOnDestroy=function(){this._selectionChanged.complete()},e.prototype._isValidDateInstance=function(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)},e}(),no=function(e){function n(t){return e.call(this,null,t)||this}return be(n,e),n.prototype.add=function(t){e.prototype.updateSelection.call(this,t,this)},n.prototype.isValid=function(){return null!=this.selection&&this._isValidDateInstance(this.selection)},n.prototype.isComplete=function(){return null!=this.selection},n.ctorParameters=function(){return[{type:Qi}]},n=we([t.Injectable(),Ce("design:paramtypes",[Qi])],n)}(to),io=function(e){function n(t){return e.call(this,new eo(null,null),t)||this}return be(n,e),n.prototype.add=function(t){var n=this.selection,i=n.start,o=n.end;null==i?i=t:null==o?o=t:(i=t,o=null),e.prototype.updateSelection.call(this,new eo(i,o),this)},n.prototype.isValid=function(){var e=this.selection,t=e.start,n=e.end;return null==t&&null==n||(null!=t&&null!=n?this._isValidDateInstance(t)&&this._isValidDateInstance(n)&&this._adapter.compareDate(t,n)<=0:(null==t||this._isValidDateInstance(t))&&(null==n||this._isValidDateInstance(n)))},n.prototype.isComplete=function(){return null!=this.selection.start&&null!=this.selection.end},n.ctorParameters=function(){return[{type:Qi}]},n=we([t.Injectable(),Ce("design:paramtypes",[Qi])],n)}(to);function oo(e,t){return e||new no(t)}var ro={provide:to,deps:[[new t.Optional,new t.SkipSelf,to],Qi],useFactory:oo};function ao(e,t){return e||new io(t)}var so={provide:to,deps:[[new t.Optional,new t.SkipSelf,to],Qi],useFactory:ao};
|
17
17
|
/**
|
18
18
|
* @license
|
19
19
|
* Copyright Google LLC All Rights Reserved.
|