@gipisistemas/ng-core 1.1.11 → 1.1.13
Sign up to get free protection for your applications and to get access to all the features.
- package/assets/styles/colors.scss +228 -211
- package/assets/styles/styles.scss +54 -5
- package/bundles/gipisistemas-ng-core.umd.js +3516 -146
- package/bundles/gipisistemas-ng-core.umd.js.map +1 -1
- package/bundles/gipisistemas-ng-core.umd.min.js +9 -9
- package/bundles/gipisistemas-ng-core.umd.min.js.map +1 -1
- package/core/gipi-components/components/abstract-find.component.d.ts +1 -0
- package/core/gipi-components/components/abstract.component.d.ts +1 -0
- package/esm2015/core/gipi-components/components/abstract-find.component.js +22 -1
- package/esm2015/core/gipi-components/components/abstract.component.js +5 -2
- package/esm2015/gipi-components.js +19 -6
- package/esm2015/gipisistemas-ng-core.js +3 -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/datepicker/date-range-picker/date-range-picker.component.js +1 -1
- package/esm2015/shared/gipi-components/datepicker/datepicker/datepicker.component.js +3 -3
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/calendar-body.js +1 -1
- package/esm2015/shared/gipi-components/datepicker/mat-datepicker/date-range-input.js +1 -1
- package/esm2015/shared/gipi-components/datetime-picker/datetime-picker/datetime-picker.component.js +158 -0
- package/esm2015/shared/gipi-components/datetime-picker/datetime-picker.module.js +82 -0
- package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/calendar-body.js +116 -0
- package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/calendar.js +676 -0
- package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/clock.js +306 -0
- package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-animations.js +30 -0
- package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-errors.js +7 -0
- package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-filtertype.js +7 -0
- package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-input.js +346 -0
- package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-toggle.js +83 -0
- package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-type.js +1 -0
- package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker.js +451 -0
- package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/month-view.js +151 -0
- package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/multi-year-view.js +230 -0
- package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/adapter.module.js +43 -0
- package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/datetime-adapter.js +139 -0
- package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/datetime-formats.js +3 -0
- package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/native-datetime-adapter.js +138 -0
- package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/native-datetime-formats.js +20 -0
- package/esm2015/shared/gipi-components/datetime-picker/mat-datetime-picker/year-view.js +141 -0
- package/esm2015/shared/gipi-components/dropdown-menu/dropdown-menu.component.js +1 -1
- package/esm2015/shared/gipi-components/form-field/form-field.component.js +8 -3
- package/esm2015/shared/gipi-components/input-currency/input-currency.component.js +1 -1
- package/esm2015/shared/gipi-components/input-monthpicker/input-monthpicker.component.js +1 -1
- package/esm2015/shared/gipi-components/input-select/input-select.component.js +1 -1
- package/esm2015/shared/gipi-components/input-select-enum/input-select-enum.component.js +20 -6
- package/esm2015/shared/gipi-components/month-year-picker/month-year-picker.component.js +1 -1
- package/esm2015/shared/gipi-components/radio-group/radio-group.component.js +1 -1
- package/esm2015/shared/gipi-components/range-page/range-page.component.js +1 -1
- package/esm2015/shared/gipi-components/range-slider/range-slider.component.js +1 -1
- package/esm2015/shared/gipi-components/select-button/select-button.component.js +1 -1
- 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/esm2015/shared/gipi-components/textarea/textarea.component.js +1 -1
- package/esm2015/shared/shared.module.js +51 -3
- package/esm5/core/gipi-components/components/abstract-find.component.js +22 -1
- package/esm5/core/gipi-components/components/abstract.component.js +5 -2
- package/esm5/gipi-components.js +19 -6
- package/esm5/gipisistemas-ng-core.js +3 -1
- 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/datepicker/date-range-picker/date-range-picker.component.js +1 -1
- package/esm5/shared/gipi-components/datepicker/datepicker/datepicker.component.js +3 -3
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/calendar-body.js +1 -1
- package/esm5/shared/gipi-components/datepicker/mat-datepicker/date-range-input.js +1 -1
- package/esm5/shared/gipi-components/datetime-picker/datetime-picker/datetime-picker.component.js +176 -0
- package/esm5/shared/gipi-components/datetime-picker/datetime-picker.module.js +85 -0
- package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/calendar-body.js +119 -0
- package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/calendar.js +747 -0
- package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/clock.js +332 -0
- package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-animations.js +30 -0
- package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-errors.js +7 -0
- package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-filtertype.js +7 -0
- package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-input.js +377 -0
- package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-toggle.js +89 -0
- package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-type.js +1 -0
- package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker.js +495 -0
- package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/month-view.js +160 -0
- package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/multi-year-view.js +248 -0
- package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/adapter.module.js +49 -0
- package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/datetime-adapter.js +145 -0
- package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/datetime-formats.js +3 -0
- package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/native-datetime-adapter.js +141 -0
- package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/native-datetime-formats.js +20 -0
- package/esm5/shared/gipi-components/datetime-picker/mat-datetime-picker/year-view.js +151 -0
- package/esm5/shared/gipi-components/dropdown-menu/dropdown-menu.component.js +1 -1
- package/esm5/shared/gipi-components/form-field/form-field.component.js +8 -3
- package/esm5/shared/gipi-components/input-currency/input-currency.component.js +1 -1
- package/esm5/shared/gipi-components/input-monthpicker/input-monthpicker.component.js +1 -1
- package/esm5/shared/gipi-components/input-select/input-select.component.js +1 -1
- package/esm5/shared/gipi-components/input-select-enum/input-select-enum.component.js +25 -6
- package/esm5/shared/gipi-components/month-year-picker/month-year-picker.component.js +1 -1
- package/esm5/shared/gipi-components/radio-group/radio-group.component.js +1 -1
- package/esm5/shared/gipi-components/range-page/range-page.component.js +1 -1
- package/esm5/shared/gipi-components/range-slider/range-slider.component.js +1 -1
- package/esm5/shared/gipi-components/select-button/select-button.component.js +1 -1
- 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/esm5/shared/gipi-components/textarea/textarea.component.js +1 -1
- package/esm5/shared/shared.module.js +51 -3
- package/fesm2015/gipisistemas-ng-core.js +3244 -157
- package/fesm2015/gipisistemas-ng-core.js.map +1 -1
- package/fesm5/gipisistemas-ng-core.js +3494 -152
- package/fesm5/gipisistemas-ng-core.js.map +1 -1
- package/gipi-components.d.ts +16 -0
- package/gipisistemas-ng-core.d.ts +2 -0
- package/gipisistemas-ng-core.metadata.json +1 -1
- package/package.json +4 -4
- package/shared/components/icon/icon.component.d.ts +1 -3
- package/shared/gipi-components/datetime-picker/datetime-picker/datetime-picker.component.d.ts +40 -0
- package/shared/gipi-components/datetime-picker/datetime-picker.module.d.ts +2 -0
- package/shared/gipi-components/datetime-picker/mat-datetime-picker/calendar-body.d.ts +50 -0
- package/shared/gipi-components/datetime-picker/mat-datetime-picker/calendar.d.ts +140 -0
- package/shared/gipi-components/datetime-picker/mat-datetime-picker/clock.d.ts +66 -0
- package/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-animations.d.ts +8 -0
- package/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-errors.d.ts +2 -0
- package/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-filtertype.d.ts +5 -0
- package/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-input.d.ts +98 -0
- package/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-toggle.d.ts +20 -0
- package/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker-type.d.ts +1 -0
- package/shared/gipi-components/datetime-picker/mat-datetime-picker/datetimepicker.d.ts +133 -0
- package/shared/gipi-components/datetime-picker/mat-datetime-picker/month-view.d.ts +53 -0
- package/shared/gipi-components/datetime-picker/mat-datetime-picker/multi-year-view.d.ts +80 -0
- package/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/adapter.module.d.ts +4 -0
- package/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/datetime-adapter.d.ts +46 -0
- package/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/datetime-formats.d.ts +20 -0
- package/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/native-datetime-adapter.d.ts +36 -0
- package/shared/gipi-components/datetime-picker/mat-datetime-picker/shared/adapter/native-datetime-formats.d.ts +2 -0
- package/shared/gipi-components/datetime-picker/mat-datetime-picker/year-view.d.ts +52 -0
- 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
@@ -1,4 +1,4 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/cdk/stepper"),require("@angular/common"),require("@angular/flex-layout"),require("@angular/forms"),require("@angular/material"),require("@angular/router"),require("@material-extended/mde"),require("angular-mentions"),require("ngx-currency"),require("ngx-infinite-scroll"),require("ngx-mask"),require("ngx-material-timepicker"),require("@angular/cdk-experimental/popover-edit"),require("@angular/cdk/a11y"),require("@angular/cdk/drag-drop"),require("@angular/cdk/portal"),require("@angular/cdk/scrolling"),require("@angular/cdk/table"),require("@angular/cdk/tree"),require("@angular/material/autocomplete"),require("@angular/material/badge"),require("@angular/material/bottom-sheet"),require("@angular/material/button"),require("@angular/material/button-toggle"),require("@angular/material/card"),require("@angular/material/checkbox"),require("@angular/material/chips"),require("@angular/material/core"),require("@angular/material/dialog"),require("@angular/material/divider"),require("@angular/material/expansion"),require("@angular/material/form-field"),require("@angular/material/grid-list"),require("@angular/material/icon"),require("@angular/material/input"),require("@angular/material/list"),require("@angular/material/menu"),require("@angular/material/paginator"),require("@angular/material/progress-bar"),require("@angular/material/progress-spinner"),require("@angular/material/radio"),require("@angular/material/select"),require("@angular/material/sidenav"),require("@angular/material/slide-toggle"),require("@angular/material/slider"),require("@angular/material/snack-bar"),require("@angular/material/sort"),require("@angular/material/stepper"),require("@angular/material/table"),require("@angular/material/tabs"),require("@angular/material/toolbar"),require("@angular/material/tooltip"),require("@angular/material/tree"),require("rfdc"),require("@angular/common/http"),require("rxjs"),require("rxjs/operators"),require("libphonenumber-js"),require("@angular/animations"),require("@angular/cdk/keycodes"),require("@angular/cdk/coercion"),require("@angular/cdk/layout"),require("@angular/cdk/platform"),require("@angular/cdk/bidi"),require("@angular/cdk/overlay"),require("moment"),require("@angular/material/datepicker"),require("@angular/platform-browser/animations"),require("@angular/platform-browser"),require("@brazilian-utils/brazilian-utils")):"function"==typeof define&&define.amd?define("@gipisistemas/ng-core",["exports","@angular/core","@angular/cdk/stepper","@angular/common","@angular/flex-layout","@angular/forms","@angular/material","@angular/router","@material-extended/mde","angular-mentions","ngx-currency","ngx-infinite-scroll","ngx-mask","ngx-material-timepicker","@angular/cdk-experimental/popover-edit","@angular/cdk/a11y","@angular/cdk/drag-drop","@angular/cdk/portal","@angular/cdk/scrolling","@angular/cdk/table","@angular/cdk/tree","@angular/material/autocomplete","@angular/material/badge","@angular/material/bottom-sheet","@angular/material/button","@angular/material/button-toggle","@angular/material/card","@angular/material/checkbox","@angular/material/chips","@angular/material/core","@angular/material/dialog","@angular/material/divider","@angular/material/expansion","@angular/material/form-field","@angular/material/grid-list","@angular/material/icon","@angular/material/input","@angular/material/list","@angular/material/menu","@angular/material/paginator","@angular/material/progress-bar","@angular/material/progress-spinner","@angular/material/radio","@angular/material/select","@angular/material/sidenav","@angular/material/slide-toggle","@angular/material/slider","@angular/material/snack-bar","@angular/material/sort","@angular/material/stepper","@angular/material/table","@angular/material/tabs","@angular/material/toolbar","@angular/material/tooltip","@angular/material/tree","rfdc","@angular/common/http","rxjs","rxjs/operators","libphonenumber-js","@angular/animations","@angular/cdk/keycodes","@angular/cdk/coercion","@angular/cdk/layout","@angular/cdk/platform","@angular/cdk/bidi","@angular/cdk/overlay","moment","@angular/material/datepicker","@angular/platform-browser/animations","@angular/platform-browser","@brazilian-utils/brazilian-utils"],t):t(((e=e||self).gipisistemas=e.gipisistemas||{},e.gipisistemas["ng-core"]={}),e.ng.core,e.ng.cdk.stepper,e.ng.common,e.ng["flex-layout"],e.ng.forms,e.ng.material,e.ng.router,e.mde,e.angularMentions,e.ngxCurrency,e.ngxInfiniteScroll,e.ngxMask,e.ngxMaterialTimepicker,e.ng["cdk-experimental"]["popover-edit"],e.ng.cdk.a11y,e.ng.cdk["drag-drop"],e.ng.cdk.portal,e.ng.cdk.scrolling,e.ng.cdk.table,e.ng.cdk.tree,e.ng.material.autocomplete,e.ng.material.badge,e.ng.material["bottom-sheet"],e.ng.material.button,e.ng.material["button-toggle"],e.ng.material.card,e.ng.material.checkbox,e.ng.material.chips,e.ng.material.core,e.ng.material.dialog,e.ng.material.divider,e.ng.material.expansion,e.ng.material["form-field"],e.ng.material["grid-list"],e.ng.material.icon,e.ng.material.input,e.ng.material.list,e.ng.material.menu,e.ng.material.paginator,e.ng.material["progress-bar"],e.ng.material["progress-spinner"],e.ng.material.radio,e.ng.material.select,e.ng.material.sidenav,e.ng.material["slide-toggle"],e.ng.material.slider,e.ng.material["snack-bar"],e.ng.material.sort,e.ng.material.stepper,e.ng.material.table,e.ng.material.tabs,e.ng.material.toolbar,e.ng.material.tooltip,e.ng.material.tree,e.rfdc_,e.ng.common.http,e.rxjs,e.rxjs.operators,e.libphonenumberJs,e.ng.animations,e.ng.cdk.keycodes,e.ng.cdk.coercion,e.ng.cdk.layout,e.ng.cdk.platform,e.ng.cdk.bidi,e.ng.cdk.overlay,e.moment_,e.ng.material.datepicker,e.ng.platformBrowser.animations,e.ng.platformBrowser,e.brazilianUtils)}(this,(function(e,t,n,i,o,r,a,s,l,p,d,c,u,h,g,m,f,y,v,b,
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/cdk/stepper"),require("@angular/common"),require("@angular/flex-layout"),require("@angular/forms"),require("@angular/material"),require("@angular/router"),require("@material-extended/mde"),require("angular-mentions"),require("ngx-currency"),require("ngx-infinite-scroll"),require("ngx-mask"),require("ngx-material-timepicker"),require("@angular/cdk-experimental/popover-edit"),require("@angular/cdk/a11y"),require("@angular/cdk/drag-drop"),require("@angular/cdk/portal"),require("@angular/cdk/scrolling"),require("@angular/cdk/table"),require("@angular/cdk/tree"),require("@angular/material/autocomplete"),require("@angular/material/badge"),require("@angular/material/bottom-sheet"),require("@angular/material/button"),require("@angular/material/button-toggle"),require("@angular/material/card"),require("@angular/material/checkbox"),require("@angular/material/chips"),require("@angular/material/core"),require("@angular/material/dialog"),require("@angular/material/divider"),require("@angular/material/expansion"),require("@angular/material/form-field"),require("@angular/material/grid-list"),require("@angular/material/icon"),require("@angular/material/input"),require("@angular/material/list"),require("@angular/material/menu"),require("@angular/material/paginator"),require("@angular/material/progress-bar"),require("@angular/material/progress-spinner"),require("@angular/material/radio"),require("@angular/material/select"),require("@angular/material/sidenav"),require("@angular/material/slide-toggle"),require("@angular/material/slider"),require("@angular/material/snack-bar"),require("@angular/material/sort"),require("@angular/material/stepper"),require("@angular/material/table"),require("@angular/material/tabs"),require("@angular/material/toolbar"),require("@angular/material/tooltip"),require("@angular/material/tree"),require("rfdc"),require("@angular/common/http"),require("rxjs"),require("rxjs/operators"),require("libphonenumber-js"),require("@angular/animations"),require("@angular/cdk/keycodes"),require("@angular/cdk/coercion"),require("@angular/cdk/layout"),require("@angular/cdk/platform"),require("@angular/cdk/bidi"),require("@angular/cdk/overlay"),require("moment"),require("@angular/material/datepicker"),require("@angular/platform-browser/animations"),require("@angular/platform-browser"),require("@brazilian-utils/brazilian-utils")):"function"==typeof define&&define.amd?define("@gipisistemas/ng-core",["exports","@angular/core","@angular/cdk/stepper","@angular/common","@angular/flex-layout","@angular/forms","@angular/material","@angular/router","@material-extended/mde","angular-mentions","ngx-currency","ngx-infinite-scroll","ngx-mask","ngx-material-timepicker","@angular/cdk-experimental/popover-edit","@angular/cdk/a11y","@angular/cdk/drag-drop","@angular/cdk/portal","@angular/cdk/scrolling","@angular/cdk/table","@angular/cdk/tree","@angular/material/autocomplete","@angular/material/badge","@angular/material/bottom-sheet","@angular/material/button","@angular/material/button-toggle","@angular/material/card","@angular/material/checkbox","@angular/material/chips","@angular/material/core","@angular/material/dialog","@angular/material/divider","@angular/material/expansion","@angular/material/form-field","@angular/material/grid-list","@angular/material/icon","@angular/material/input","@angular/material/list","@angular/material/menu","@angular/material/paginator","@angular/material/progress-bar","@angular/material/progress-spinner","@angular/material/radio","@angular/material/select","@angular/material/sidenav","@angular/material/slide-toggle","@angular/material/slider","@angular/material/snack-bar","@angular/material/sort","@angular/material/stepper","@angular/material/table","@angular/material/tabs","@angular/material/toolbar","@angular/material/tooltip","@angular/material/tree","rfdc","@angular/common/http","rxjs","rxjs/operators","libphonenumber-js","@angular/animations","@angular/cdk/keycodes","@angular/cdk/coercion","@angular/cdk/layout","@angular/cdk/platform","@angular/cdk/bidi","@angular/cdk/overlay","moment","@angular/material/datepicker","@angular/platform-browser/animations","@angular/platform-browser","@brazilian-utils/brazilian-utils"],t):t(((e=e||self).gipisistemas=e.gipisistemas||{},e.gipisistemas["ng-core"]={}),e.ng.core,e.ng.cdk.stepper,e.ng.common,e.ng["flex-layout"],e.ng.forms,e.ng.material,e.ng.router,e.mde,e.angularMentions,e.ngxCurrency,e.ngxInfiniteScroll,e.ngxMask,e.ngxMaterialTimepicker,e.ng["cdk-experimental"]["popover-edit"],e.ng.cdk.a11y,e.ng.cdk["drag-drop"],e.ng.cdk.portal,e.ng.cdk.scrolling,e.ng.cdk.table,e.ng.cdk.tree,e.ng.material.autocomplete,e.ng.material.badge,e.ng.material["bottom-sheet"],e.ng.material.button,e.ng.material["button-toggle"],e.ng.material.card,e.ng.material.checkbox,e.ng.material.chips,e.ng.material.core,e.ng.material.dialog,e.ng.material.divider,e.ng.material.expansion,e.ng.material["form-field"],e.ng.material["grid-list"],e.ng.material.icon,e.ng.material.input,e.ng.material.list,e.ng.material.menu,e.ng.material.paginator,e.ng.material["progress-bar"],e.ng.material["progress-spinner"],e.ng.material.radio,e.ng.material.select,e.ng.material.sidenav,e.ng.material["slide-toggle"],e.ng.material.slider,e.ng.material["snack-bar"],e.ng.material.sort,e.ng.material.stepper,e.ng.material.table,e.ng.material.tabs,e.ng.material.toolbar,e.ng.material.tooltip,e.ng.material.tree,e.rfdc_,e.ng.common.http,e.rxjs,e.rxjs.operators,e.libphonenumberJs,e.ng.animations,e.ng.cdk.keycodes,e.ng.cdk.coercion,e.ng.cdk.layout,e.ng.cdk.platform,e.ng.cdk.bidi,e.ng.cdk.overlay,e.moment_,e.ng.material.datepicker,e.ng.platformBrowser.animations,e.ng.platformBrowser,e.brazilianUtils)}(this,(function(e,t,n,i,o,r,a,s,l,p,d,c,u,h,g,m,f,y,v,b,_,w,x,C,I,S,k,O,E,D,P,A,R,M,T,F,V,N,j,L,B,Y,z,H,G,U,q,W,$,K,X,Z,J,Q,ee,te,ne,ie,oe,re,ae,se,le,pe,de,ce,ue,he,ge,me,fe,ye){"use strict";te=te&&te.hasOwnProperty("default")?te.default:te;
|
2
2
|
/*! *****************************************************************************
|
3
3
|
Copyright (c) Microsoft Corporation.
|
4
4
|
|
@@ -13,35 +13,35 @@
|
|
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 xe=function(){return(xe=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 _e(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 we(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 Ee(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 ke(){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"},Re=new t.InjectionToken("mat-date-formats"),Ae=[m.A11yModule,g.CdkPopoverEditModule,b.CdkTableModule,x.CdkTreeModule,n.CdkStepperModule,f.DragDropModule,_.MatAutocompleteModule,w.MatBadgeModule,C.MatBottomSheetModule,I.MatButtonModule,S.MatButtonToggleModule,E.MatCardModule,O.MatCheckboxModule,k.MatChipsModule,P.MatDialogModule,R.MatDividerModule,A.MatExpansionModule,T.MatFormFieldModule,M.MatGridListModule,F.MatIconModule,N.MatInputModule,L.MatListModule,V.MatMenuModule,j.MatPaginatorModule,B.MatProgressBarModule,z.MatProgressSpinnerModule,Y.MatRadioModule,D.MatRippleModule,H.MatSelectModule,U.MatSidenavModule,G.MatSlideToggleModule,q.MatSliderModule,$.MatSnackBarModule,W.MatSortModule,K.MatStepperModule,X.MatTableModule,Z.MatTabsModule,J.MatToolbarModule,Q.MatTooltipModule,ee.MatTreeModule,v.ScrollingModule,y.PortalModule],Te=function(){function e(){}return e=_e([t.NgModule({imports:ke(Ae),exports:ke(Ae)})],e)}(),Me=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())},_e([t.ContentChild("popover",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"popoverRef",void 0),_e([t.ViewChild("popoverTrigger",{static:!1}),Ce("design:type",l.MdePopoverTrigger)],e.prototype,"popoverTrigger",void 0),_e([t.ViewChild("button",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"_elementRef",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"icon",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"rightIcon",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"svgIcon",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"color",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"type",void 0),_e([t.Input(),Ce("design:type",a.MatMenu)],e.prototype,"menu",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"badge",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"badgeColor",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"download",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"stylePopover",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"styleClassPopover",void 0),_e([t.Output("click"),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),e=_e([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)}(),Fe=function(){function e(){this.loading=!1,this.shadow=!0,this.margin=!0}return e.prototype.ngOnInit=function(){},_e([t.Input(),Ce("design:type",Object)],e.prototype,"cardTitle",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"cardSubtitle",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"icon",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"loading",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"shadow",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"margin",void 0),e=_e([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},_e([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"indeterminate",void 0),_e([t.Input("value"),Ce("design:type",Object)],e.prototype,"val",void 0),_e([t.Output(),Ce("design:type",Object)],e.prototype,"indeterminateChange",void 0),_e([t.Output(),Ce("design:type",Object)],e.prototype,"change",void 0),e=n=_e([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)}(),Le=function(){function e(){}return e.prototype.ngOnInit=function(){},_e([t.Input(),Ce("design:type",String)],e.prototype,"color",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"icon",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"svgIcon",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"iconSize",void 0),e=_e([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)}(),Ve=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},_e([t.ViewChild("input",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"_elementRef",void 0),_e([t.ContentChild("suffix",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"suffixRef",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"maxlength",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"type",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"appearance",void 0),_e([t.Input("value"),Ce("design:type",Object)],e.prototype,"val",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"prefix",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"styleClassFormField",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"styleClassSuffix",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"options",void 0),e=n=_e([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)}(),je=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}(),Be=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),!Ye.isValid(n)},e.clone=function(t){return e.isNull(t)?new Object:Be(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(" "):xe(xe({},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)&&!je.isEmpty(n)&&Object.prototype.hasOwnProperty.call(t,n)},e}(),Ye=function(){function e(){}return e.isValid=function(e){return!ze.isNull(e)&&("number"==typeof e?e&&e>0:"string"==typeof e?!je.isEmpty(e)&&e.length>0:void 0)},e}(),He=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 Ye.isValid(e)},_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"loadingChange",void 0),e}(),Ue=function(){},Ge=function(){},qe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return be(t,e),t}(Ge),$e=function(){function e(e){this.message=e}return e.prototype.ngOnInit=function(){},e.ctorParameters=function(){return[{type:qe,decorators:[{type:t.Inject,args:[a.MAT_SNACK_BAR_DATA]}]}]},e=_e([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:[""]}),we(0,t.Inject(a.MAT_SNACK_BAR_DATA)),Ce("design:paramtypes",[qe])],e)}(),We=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}(),Ke=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($.MatSnackBar))},token:n,providedIn:"root"}),n=_e([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[a.MatSnackBar])],n)}(We),Xe=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=je.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=je.EMPTY,this.archiveChange.emit(null)},n.ctorParameters=function(){return[{type:Ke},{type:s.Router},{type:s.ActivatedRoute}]},_e([t.ViewChild("input",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],n.prototype,"_elementRef",void 0),_e([t.ViewChild("fileInput",{static:!0}),Ce("design:type",t.ElementRef)],n.prototype,"fileInput",void 0),_e([t.Input(),Ce("design:type",String)],n.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],n.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],n.prototype,"tooltip",void 0),_e([t.Input(),Ce("design:type",String)],n.prototype,"placeholder",void 0),_e([t.Input(),Ce("design:type",Boolean)],n.prototype,"required",void 0),_e([t.Input(),Ce("design:type",Boolean)],n.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",Object)],n.prototype,"appearance",void 0),_e([t.Input(),Ce("design:type",Object)],n.prototype,"loading",void 0),_e([t.Input(),Ce("design:type",Array)],n.prototype,"extensions",void 0),_e([t.Input(),Ce("design:type",Object)],n.prototype,"maximumSize",void 0),_e([t.Output(),Ce("design:type",Object)],n.prototype,"archiveChange",void 0),_e([t.Input(),Ce("design:type",Ue)],n.prototype,"archive",void 0),_e([t.Output(),Ce("design:type",Object)],n.prototype,"nativeFileChange",void 0),n=_e([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",[Ke,s.Router,s.ActivatedRoute])],n)}(He),Ze=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?je.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}(),Je=function(){function e(){}return e.removeCharacters=function(e){return je.isEmpty(e)?"":e.replace(/\D/g,"")},e.maskLib=function(e,t,n){var i;if(void 0===n&&(n="BR"),je.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=Ze.onlyNumbers(e),i="";if(je.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}(),Qe=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){je.isEmpty(t)||e._maskPhone$.next(Je.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&&!je.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=Je.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}]},_e([t.ViewChild("input",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"_elementRef",void 0),_e([t.ContentChild("suffix",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"suffixRef",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"styleClassFormField",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"styleClassSuffix",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"readonly",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"hidePasswordManager",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"maxlength",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"type",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"min",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"max",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"autocomplete",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"appearance",void 0),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"value",null),_e([t.Input(),Ce("design:type",String)],e.prototype,"mask",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"phone",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"dropSpecialCharacters",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"upperCase",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"lowerCase",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"patterns",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"spaceDrop",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"focus",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"blur",void 0),e=n=_e([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)}(),et=function(){function e(){}return e.prototype.ngOnInit=function(){},_e([t.Input(),Ce("design:type",String)],e.prototype,"message",void 0),e=_e([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)}(),tt=function(){function e(){}return e.prototype.ngOnInit=function(){},e=_e([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 nt,it,ot,rt,at=(nt=[],{get:it=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=nt.length>0?nt[nt.length-1]:{key:e,value:t},i=n.value+(n.key===e?0:t)+1;return nt.push({key:e,value:i}),i}(e,n)))},clear:function(e){var t;e&&(t=it(e),nt=nt.filter((function(e){return e.value!==t})),e.style.zIndex="")},getCurrent:function(){return nt.length>0?nt[nt.length-1].value:0}}),st=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=xe(xe({},this.translation),e),this.translationSource.next(this.translation)},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e=_e([t.Injectable({providedIn:"root"})],e)}(),lt=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=_e([t.Injectable({providedIn:"root"})],e)}(),pt=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=Ee(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,Ee(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=Ee(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}(),dt=function(){function e(e,t){void 0===t&&(t=function(){}),this.element=e,this.listener=t}return e.prototype.bindScrollListener=function(){this.scrollableParents=pt.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}(),ct=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=pt.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):pt.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&&at.set("overlay",this.container,this.baseZIndex+this.config.zIndex.overlay),pt.absolutePosition(this.container,this.target);var e=pt.getOffset(this.container),t=pt.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&&pt.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&&at.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=pt.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&&!pt.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 dt(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&&at.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:st},{type:lt}]},_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"dismissable",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"showCloseIcon",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"closeIconSize",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"style",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"styleClass",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"appendTo",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"autoZIndex",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"ariaCloseLabel",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"baseZIndex",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"focusOnShow",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"showTransitionOptions",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"hideTransitionOptions",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onShow",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onHide",void 0),_e([t.ContentChild("overlayContent",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"overlayContentRef",void 0),_e([t.ContentChild("overlayFooter",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"overlayFooterRef",void 0),e=_e([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,st,lt])],e)}(),ut=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}(),ht=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:ut}]},e=_e([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",[ut])],e)}(),gt=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},_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"property",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"entities",void 0),_e([t.Input("value"),Ce("design:type",Object)],e.prototype,"val",void 0),e=n=_e([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)}(),mt=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}(),ft=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 mt.uniqueId(e)},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),_e([t.Input("groupbox"),Ce("design:type",Boolean)],e.prototype,"isGroupbox",void 0),_e([t.Input("input"),Ce("design:type",Boolean)],e.prototype,"isInput",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"enum",void 0),_e([t.Input("value"),Ce("design:type",Object)],e.prototype,"val",void 0),_e([t.Input(),Ce("design:type",Function)],e.prototype,"sort",void 0),_e([t.Input(),Ce("design:type",Array)],e.prototype,"valuesExclud",void 0),_e([t.Input(),Ce("design:type",Array)],e.prototype,"valuesOmit",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectionChange",void 0),e=n=_e([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)}(),yt=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 Et.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()||Et.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)?je.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]:Et.isEmpty(this.options)||ze.isNull(this.page)||!Et.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)&&!Et.isEmpty(i.page.content)){if(!Et.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=ke(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&&Ye.isValid(e.id)},e.prototype.onClickAdd=function(){Array.isArray(this.model)&&!Et.isEmpty(this.model)?this.addChange.emit(this.model):this.addChange.emit([])},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},_e([t.ViewChild("matSelect",{static:!1}),Ce("design:type",H.MatSelect)],e.prototype,"matSelect",void 0),_e([t.ViewChild(v.CdkVirtualScrollViewport,{static:!1}),Ce("design:type",v.CdkVirtualScrollViewport)],e.prototype,"cdkVirtualScrollViewPort",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"initAllCheckboxChecked",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"closeIcon",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"closeSvgIcon",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"showButtonAdd",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"multiple",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"iconPrefix",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"svgIconPrefix",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideFieldSearch",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"showClear",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"debounceTime",void 0),_e([t.Input(),Ce("design:type",Array)],e.prototype,"valuesExclud",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"appearance",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"classSelectPanel",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"property",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"trackyBy",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"initLoaded",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"infiniteScroll",void 0),_e([t.Input(),Ce("design:type",Function)],e.prototype,"propertyFn",void 0),_e([t.Input(),Ce("design:type",Function)],e.prototype,"nextBatchFn",void 0),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"paramNextBatch",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"model",null),_e([t.Input(),Ce("design:type",Array),Ce("design:paramtypes",[Array])],e.prototype,"options",null),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"modelChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectionChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"searchChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"addChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"openedChange",void 0),e=n=_e([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)}(),vt=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]}]}]},_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"addIcon",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"addSvgIcon",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),_e([t.Output("click"),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),e=_e([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:[""]}),we(0,t.Inject(a.MatSelect)),we(3,t.Optional()),we(3,t.Inject(a.MatOption)),we(4,t.Optional()),we(4,t.Inject(a.MatFormField)),Ce("design:paramtypes",[a.MatSelect,t.ChangeDetectorRef,v.ViewportRuler,a.MatOption,a.MatFormField])],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="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]}]}]},_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),_e([t.Output("click"),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),e=_e([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:[""]}),we(0,t.Inject(a.MatSelect)),we(3,t.Optional()),we(3,t.Inject(a.MatOption)),we(4,t.Optional()),we(4,t.Inject(a.MatFormField)),Ce("design:paramtypes",[a.MatSelect,t.ChangeDetectorRef,v.ViewportRuler,a.MatOption,a.MatFormField])],e)}(),xt=function(){function e(){}return e=_e([t.Directive({selector:"[itssSelectNoEntriesFound]"})],e)}(),_t=function(){function e(){}return e=_e([t.Directive({selector:"[itssSelectSearchClear]"})],e)}(),wt=["clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],Ct=new t.InjectionToken("itss-select_search-default-options"),It=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=Ee(wt),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:[Ct]}]}]},_e([t.HostBinding("class.mat-select-search-inside-mat-option"),Ce("design:type",Boolean),Ce("design:paramtypes",[])],e.prototype,"isInsideMatOption",null),_e([t.Input(),Ce("design:type",String)],e.prototype,"placeholderLabel",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"type",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"closeIcon",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"closeSvgIcon",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"noEntriesFoundLabel",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"clearSearchInput",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"searching",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disableInitialFocus",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"enableClearOnEscapePressed",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"preventHomeEndKeyPropagation",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disableScrollToActiveOnOptionsChanged",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"showToggleAllCheckbox",void 0),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"toggleAllCheckboxChecked",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"toggleAllCheckboxIndeterminate",null),_e([t.Input(),Ce("design:type",String)],e.prototype,"toggleAllCheckboxTooltipMessage",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"toggleAllCheckboxTooltipPosition",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideClearSearchButton",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"alwaysRestoreSelectedOptionsMulti",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"toggleAll",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"toggleAllIndeterminate",void 0),_e([t.ViewChild("searchSelectInput",{read:t.ElementRef,static:!0}),Ce("design:type",t.ElementRef)],e.prototype,"searchSelectInput",void 0),_e([t.ViewChild("innerSelectSearch",{read:t.ElementRef,static:!0}),Ce("design:type",t.ElementRef)],e.prototype,"innerSelectSearch",void 0),_e([t.ContentChild(_t,{static:!1}),Ce("design:type",_t)],e.prototype,"clearIcon",void 0),_e([t.ContentChild(xt,{static:!1}),Ce("design:type",xt)],e.prototype,"noEntriesFound",void 0),e=n=_e([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}}']}),we(0,t.Inject(a.MatSelect)),we(3,t.Optional()),we(3,t.Inject(a.MatOption)),we(4,t.Optional()),we(4,t.Inject(a.MatFormField)),we(5,t.Optional()),we(5,t.Inject(Ct)),Ce("design:paramtypes",[a.MatSelect,t.ChangeDetectorRef,v.ViewportRuler,a.MatOption,a.MatFormField,Object])],e)}(),St=te(),Et=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:St(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}(),Ot=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)&&!Et.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)?je.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 je.replaceAccents(t.getPropertyValue(n)).toLowerCase().includes(je.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(){Et.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&&!je.isEmpty(this.getPropertyValue(this.model))&&!ze.isNull(this.model)&&!this.disabled&&!this.loading&&!Et.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}]},_e([t.ViewChild("select",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"_elementRef",void 0),_e([t.ViewChild("select",{static:!1}),Ce("design:type",a.MatSelect)],e.prototype,"select",void 0),_e([t.ViewChild("search",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"search",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"multiple",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"displayCheckboxAll",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"showClear",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"upperCase",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"property",void 0),_e([t.Input(),Ce("design:type",Function)],e.prototype,"propertyFn",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"propertyEnum",void 0),_e([t.Input(),Ce("design:type",Function)],e.prototype,"map",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"nullValue",void 0),_e([t.Input(),Ce("design:type",Array)],e.prototype,"valuesExclud",void 0),_e([t.Input(),Ce("design:type",Array)],e.prototype,"entities",void 0),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"model",null),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"modelChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectionChange",void 0),e=_e([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)}(),kt=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}))},_e([t.ViewChild("select",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"_elementRef",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"multiple",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"enum",void 0),_e([t.Output(),Ce("design:type",Object)],e.prototype,"selectionChange",void 0),_e([t.Input("value"),Ce("design:type",Object)],e.prototype,"val",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"loading",void 0),_e([t.Input(),Ce("design:type",Function)],e.prototype,"sort",void 0),_e([t.Input(),Ce("design:type",Array)],e.prototype,"valuesExclud",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"nullValue",void 0),e=n=_e([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)}(),Dt=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:st}]},_e([t.ViewChild("datePeriodDropdown",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"_elementRef",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),_e([t.Input(),Ce("design:type",Date)],e.prototype,"bootPeriod",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"dateChange",void 0),e=n=_e([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",[st])],e)}(),Pt=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},_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"color",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),_e([t.Input("value"),Ce("design:type",Object)],e.prototype,"val",void 0),_e([t.Output(),Ce("design:type",Object)],e.prototype,"change",void 0),e=n=_e([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},_e([t.Input(),Ce("design:type",Object)],i.prototype,"isDisableClick",void 0),i=o=_e([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 At(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"}(ot||(ot={})),function(e){e.HOST="scroll",e.WINDOW="window:scroll"}(rt||(rt={}));var Tt,Mt=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=At(this.handleScroll,this.scrollDelay)},e.prototype.getListener=function(){return this._elementRef.nativeElement.clientHeight===this._elementRef.nativeElement.scrollHeight?rt.WINDOW:rt.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?ot.DOWN:ot.UP},e.prototype.canScroll=function(e){var t=this.more&&this.getScrollDirection(e.scrollTop)===ot.DOWN&&this.roundTo(e.clientHeight)===this.roundTo(e.scrollHeight-e.scrollTop);return this.scrollTop=e.scrollTop,t},e.prototype.handleScroll=function(){this.getListener()===rt.HOST?this.scrolled.emit(this.canScroll(this._element)):this.scrolled.emit(this.canScroll(this._window))},e.ctorParameters=function(){return[{type:t.ElementRef}]},_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"more",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"scrollDelay",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"scrollOffset",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"scrolled",void 0),_e([t.HostListener(rt.HOST),Ce("design:type",Function)],e.prototype,"_scroll",void 0),_e([t.HostListener(rt.WINDOW),Ce("design:type",Function)],e.prototype,"_windowScroll",void 0),e=_e([t.Component({selector:"itss-table-scrolled",template:"<ng-content> </ng-content>",styles:[":host{overflow-y:auto;position:relative}"]}),Ce("design:paramtypes",[t.ElementRef])],e)}(),Ft=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}(Ge),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=ke(["expandedColumn"],e)),ze.isNull(this.actionsRef)||(e=ke(e,["actionsColumn"])),this._displayedColumns=e,this.infiniteScroll){var t=[];this.isFiltering||ze.isNull(this._dataSource)||(t=Et.clone(this._dataSource.data)),Et.isEmpty(this.data)||t.push.apply(t,ke(this.data)),this._dataSource=new a.MatTableDataSource([]),je.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([]),je.isEmpty(this.groupByColumn)||ze.isNull(this.groupHeaderRef)?this._dataSource.data=this.data:this._dataSource.data=this.genereteGroupsByColumn(this.data);Et.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=Et.isEmpty(e.paginatorPageSizeOptions)?this.paginatorPageSizeOptions:e.paginatorPageSizeOptions,this.page.emit(e)},e.prototype.isExpandedRow=function(e){if(Et.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=ke(this._expandedRows);n.splice(t,1),this._expandedRows=ke(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 Ft(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)&&!Et.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}]},_e([t.ViewChild(a.MatSort,{static:!0}),Ce("design:type",a.MatSort)],e.prototype,"matSort",void 0),_e([t.ViewChild(a.MatPaginator,{static:!0}),Ce("design:type",a.MatPaginator)],e.prototype,"matPaginator",void 0),_e([t.ViewChild("frontendPaginator",{static:!1}),Ce("design:type",a.MatPaginator)],e.prototype,"matFrontendPaginator",void 0),_e([t.ViewChild("backendPaginator",{static:!1}),Ce("design:type",a.MatPaginator)],e.prototype,"matBackendPaginator",void 0),_e([t.ViewChild("matHeaderRow",{static:!0}),Ce("design:type",t.TemplateRef)],e.prototype,"_matHeaderRowRef",void 0),_e([t.ViewChild("frontendPaginator",{static:!0}),Ce("design:type",t.TemplateRef)],e.prototype,"_matFrontendPaginatorRowRef",void 0),_e([t.ViewChild("backendPaginator",{static:!0}),Ce("design:type",t.TemplateRef)],e.prototype,"_matBackendPaginatorRowRef",void 0),_e([t.ContentChild("actions",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"actionsRef",void 0),_e([t.ContentChild("actionsPopover",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"actionsPopoverRef",void 0),_e([t.ContentChild("footer",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"footerRef",void 0),_e([t.ContentChild("expanded",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"expandedRef",void 0),_e([t.ContentChild("groupHeader",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"groupHeaderRef",void 0),_e([t.ContentChild("groupFooter",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"groupFooterRef",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"shadow",void 0),_e([t.Input(),Ce("design:type",Array)],e.prototype,"columns",void 0),_e([t.Input(),Ce("design:type",Array),Ce("design:paramtypes",[Array])],e.prototype,"data",null),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"paginator",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"backendPagination",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"paginatorPageIndex",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"paginatorLength",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"paginatorPageSize",void 0),_e([t.Input(),Ce("design:type",Array)],e.prototype,"paginatorPageSizeOptions",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"showPageSizeOptions",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"expandable",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"showHeader",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"columnInitial",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"columnFinal",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"headerSticky",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"groupByColumn",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"groupHeaderSticky",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"groupStartExpanded",void 0),_e([t.Input(),Ce("design:type",Function)],e.prototype,"highlightRowFn",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"infiniteScroll",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"scrollDelay",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"scrollOffset",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"scrollHeigth",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"isFiltering",void 0),_e([t.Input("columnExpandableFixed"),Ce("design:type",Boolean)],e.prototype,"showColumnExpandableFixed",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"expandableOneRow",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"ignoreChildrenExpandRow",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"sort",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"clearSort",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"sortActive",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"sortDirection",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"rowExpanded",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"dataChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"page",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"rowHover",void 0),e=_e([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)}(),Lt=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},_e([t.ViewChild("input",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"_elementRef",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"maxlength",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"rows",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"appearance",void 0),_e([t.Input("value"),Ce("design:type",Object)],e.prototype,"val",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"upperCase",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"mentionConfiguration",void 0),_e([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"minHeight",null),_e([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"height",null),_e([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"maxHeight",null),e=n=_e([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)}(),Vt=function(){function e(e){this.template=e}return e.prototype.getType=function(){return this.name},e.ctorParameters=function(){return[{type:t.TemplateRef}]},_e([t.Input(),Ce("design:type",String)],e.prototype,"type",void 0),_e([t.Input("pTemplate"),Ce("design:type",String)],e.prototype,"name",void 0),e=_e([t.Directive({selector:"[pTemplate]",host:{}}),Ce("design:paramtypes",[t.TemplateRef])],e)}(),jt=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}]},_e([t.Input(),Ce("design:type",String)],e.prototype,"threshold",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"debounceTime",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"complete",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"infiniteScroll",void 0),e=_e([t.Directive({selector:"[itssInfiniteScroll]"}),Ce("design:paramtypes",[H.MatSelect,t.NgZone])],e)}(),Bt=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}]},_e([t.Input(),Ce("design:type",Object)],e.prototype,"enabledLowerCase",void 0),_e([t.HostListener("ngModelChange",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"ngModelChange",null),_e([t.HostListener("keydown",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"keydown",null),e=_e([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}]},_e([t.HostListener("ngModelChange",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"onModelChange",null),_e([t.HostListener("keydown.backspace",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"keydownBackspace",null),e=_e([t.Directive({selector:"[phoneMask]"}),Ce("design:paramtypes",[r.NgControl])],e)}(),Yt=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}]},_e([t.Input(),Ce("design:type",Object)],e.prototype,"spaceDrop",void 0),_e([t.HostListener("ngModelChange",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"ngModelChange",null),_e([t.HostListener("keydown",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"keydown",null),e=_e([t.Directive({selector:"[spaceDrop]"}),Ce("design:paramtypes",[r.NgControl])],e)}(),Ht=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}]},_e([t.Input(),Ce("design:type",Object)],e.prototype,"enabledUpperCase",void 0),_e([t.HostListener("ngModelChange",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"ngModelChange",null),_e([t.HostListener("keydown",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"keydown",null),e=_e([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}],Gt={provide:o.BREAKPOINT,useValue:Ut,multi:!0},qt=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)}},_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"filesChangeEmiter",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.HostBinding("style.background"),Ce("design:type",String)],e.prototype,"background",void 0),_e([t.HostBinding("style.border"),Ce("design:type",String)],e.prototype,"borderStyle",void 0),_e([t.HostBinding("style.border-color"),Ce("design:type",String)],e.prototype,"borderColor",void 0),_e([t.HostBinding("style.border-radius"),Ce("design:type",String)],e.prototype,"borderRadius",void 0),_e([t.HostListener("dragover",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"onDragOver",null),_e([t.HostListener("dragleave",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"onDragLeave",null),_e([t.HostListener("drop",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[Object]),Ce("design:returntype",void 0)],e.prototype,"onDrop",null),e=_e([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}]},_e([t.Input(),Ce("design:type",String)],e.prototype,"infiniteScrollDistance",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"infiniteScrollThrottle",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"infiniteScrollDisabled",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"infiniteScrollcomplete",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"infiniteScrollOptionHeight",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"scrolled",void 0),e=_e([t.Directive({selector:"[GIPIInfiniteScroll]"}),Ce("design:paramtypes",[v.CdkVirtualScrollViewport,t.NgZone])],e)}(),Wt=function(){},Kt=function(){function e(e,t){var n=this;this.ngZone=e,this.rendererFactory2=t,this.resizeSource$=new ie.Subject,this.listeners=0,this.disposeHandle=Wt,this.handler=function(){n.ngZone.run((function(){n.resizeSource$.next()}))},this.renderer=this.rendererFactory2.createRenderer(null,null)}return e.prototype.ngOnDestroy=function(){this.handler=Wt},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=Wt)},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=_e([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 Xt={xs:"(max-width: 419px)",sm:"(min-width: 420px)",md:"(min-width: 600px)",lg:"(min-width: 768px)",xl:"(min-width: 1366px)"},Zt=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(Xt[t]).matches;r[e]=n,n&&(o=t)})),n?[o,r]:o},n.ctorParameters=function(){return[{type:Kt},{type:pe.MediaMatcher}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(Kt),t.ɵɵinject(pe.MediaMatcher))},token:n,providedIn:"root"}),n=_e([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[Kt,pe.MediaMatcher])],n)}(),Jt=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(Xt).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(Xt).map((function(o){var r=o;e.mediaMatcher.matchMedia(Xt[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:Zt}]},_e([t.Input(),Ce("design:type",String)],e.prototype,"GIPIAlign",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"GIPIJustify",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIGap",void 0),e=_e([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,Zt])],e)}(),Qt=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=xe(((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=xe({},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:Jt,decorators:[{type:t.Optional},{type:t.Host}]},{type:t.Renderer2}]},_e([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIFlex",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"GIPISpan",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIOrder",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIOffset",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIPush",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIPull",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIXs",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"GIPISm",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIMd",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"GIPILg",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIXl",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"GIPIXXl",void 0),e=_e([t.Directive({selector:"[gipi-col],gipi-col,GIPICol",exportAs:"gipiCol",host:{class:"grid-col","[style.flex]":"hostFlexStyle"}}),we(1,t.Optional()),we(1,t.Host()),Ce("design:paramtypes",[t.ElementRef,Jt,t.Renderer2])],e)}(),en=function(){function e(e){this.elementRef=e}var n;return n=e,e.prototype.ngOnInit=function(){var e,t,n=this.elementRef.nativeElement;je.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=_e([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 tn=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(en),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}]},_e([t.Input("skeleton"),Ce("design:type",Boolean)],e.prototype,"loading",void 0),_e([t.Input("skeletonRepeat"),Ce("design:type",Number)],e.prototype,"size",void 0),_e([t.Input("skeletonWidth"),Ce("design:type",String)],e.prototype,"width",void 0),_e([t.Input("skeletonHeight"),Ce("design:type",String)],e.prototype,"height",void 0),_e([t.Input("skeletonClassName"),Ce("design:type",String)],e.prototype,"className",void 0),e=_e([t.Directive({selector:"[skeleton]"}),Ce("design:paramtypes",[t.TemplateRef,t.ViewContainerRef,t.ComponentFactoryResolver,t.ElementRef])],e)}(),nn=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}(),on=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:nn},{type:t.ChangeDetectorRef}]},_e([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"maxSize",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"pageChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"pageBoundsCorrection",void 0),e=_e([t.Directive({selector:"pagination-template,[pagination-template]",exportAs:"paginationApi"}),Ce("design:paramtypes",[nn,t.ChangeDetectorRef])],e)}(),rn=function(){function e(e){this.viewContainer=e}return e.ctorParameters=function(){return[{type:t.ViewContainerRef}]},e=_e([t.Directive({selector:"[GIPIDynamicTab]"}),Ce("design:paramtypes",[t.ViewContainerRef])],e)}(),an=function(){function e(e){this.template=e}return e.prototype.getType=function(){return this.name},e.ctorParameters=function(){return[{type:t.TemplateRef}]},_e([t.Input(),Ce("design:type",String)],e.prototype,"type",void 0),_e([t.Input("gipi-template"),Ce("design:type",String)],e.prototype,"name",void 0),e=_e([t.Directive({selector:"[GIPItemplate]",exportAs:"GIPITemplate",host:{class:"gipi-template"}}),Ce("design:paramtypes",[t.TemplateRef])],e)}(),sn=Number.MAX_SAFE_INTEGER,ln=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||sn,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:nn}]},e=_e([t.Pipe({name:"paginate",pure:!1}),Ce("design:paramtypes",[nn])],e)}(),pn=function(){function e(){}var n;return n=e,e.prototype.ngOnInit=function(){},e=n=_e([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)}(),dn=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="")},_e([t.HostBinding("attr.id"),Ce("design:type",String)],e.prototype,"attrId",void 0),_e([t.HostBinding("attr.name"),Ce("design:type",String)],e.prototype,"attrName",void 0),_e([t.HostBinding("style.margin"),Ce("design:type",Object),Ce("design:paramtypes",[])],e.prototype,"attrMargin",null),_e([t.ContentChildren(pn),Ce("design:type",pn)],e.prototype,"GIPIActionRowComponent",void 0),_e([t.ContentChild(a.MatDialogTitle,{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"matDialogTitle",void 0),_e([t.ContentChild(a.MatDialogContent,{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"matDialogContent",void 0),_e([t.ContentChild(a.MatDialogActions,{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"matDialogActions",void 0),_e([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"id",null),_e([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"name",null),_e([t.Input(),Ce("design:type",String)],e.prototype,"flexDirection",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"gap",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"alignItems",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"justifyContent",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"padding",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"dialog",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"class",void 0),e=n=_e([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)}(),cn=function(){function e(){this.color="primary",this.textColor="#ffffff"}var n;return n=e,e.prototype.ngOnInit=function(){},_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"color",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"textColor",void 0),e=n=_e([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)}(),un=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=Ee(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,Ee(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=Ee(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 hn=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=un.getWidth(this._viewContainerRef.element.nativeElement);(je.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}]},_e([t.HostBinding("attr.aria-haspopup"),Ce("design:type",Boolean)],e.prototype,"ariaHaspopup",void 0),_e([t.Input("popoverTriggerFor"),Ce("design:type",Object)],e.prototype,"popover",void 0),_e([t.Input("popoverTargetAt"),Ce("design:type",Object)],e.prototype,"targetElement",void 0),_e([t.Input("popoverPositionX"),Ce("design:type",String)],e.prototype,"positionX",void 0),_e([t.Input("popoverPositionY"),Ce("design:type",String)],e.prototype,"positionY",void 0),_e([t.Input("popoverTriggerOn"),Ce("design:type",String)],e.prototype,"triggerEvent",void 0),_e([t.Input("popoverEnterDelay"),Ce("design:type",Number)],e.prototype,"enterDelay",void 0),_e([t.Input("popoverLeaveDelay"),Ce("design:type",Number)],e.prototype,"leaveDelay",void 0),_e([t.Input("popoverOverlapTrigger"),Ce("design:type",Boolean)],e.prototype,"overlapTrigger",void 0),_e([t.Input("popoverOffsetX"),Ce("design:type",Number)],e.prototype,"targetOffsetX",void 0),_e([t.Input("popoverOffsetY"),Ce("design:type",Number)],e.prototype,"targetOffsetY",void 0),_e([t.Input("popoverArrowOffsetX"),Ce("design:type",Number)],e.prototype,"arrowOffsetX",void 0),_e([t.Input("popoverArrowWidth"),Ce("design:type",Number)],e.prototype,"arrowWidth",void 0),_e([t.Input("popoverArrowColor"),Ce("design:type",String)],e.prototype,"arrowColor",void 0),_e([t.Input("popoverCloseOnClick"),Ce("design:type",Boolean)],e.prototype,"closeOnClick",void 0),_e([t.Input("popoverBackdropCloseOnClick"),Ce("design:type",Boolean)],e.prototype,"backdropCloseOnClick",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"opened",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"closed",void 0),_e([t.HostListener("click",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[MouseEvent]),Ce("design:returntype",void 0)],e.prototype,"onClick",null),_e([t.HostListener("mouseenter",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[MouseEvent]),Ce("design:returntype",void 0)],e.prototype,"onMouseEnter",null),_e([t.HostListener("mouseleave",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[MouseEvent]),Ce("design:returntype",void 0)],e.prototype,"onMouseLeave",null),_e([t.HostListener("mousedown",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[MouseEvent]),Ce("design:returntype",void 0)],e.prototype,"_handleMousedown",null),e=_e([t.Directive({selector:"[popoverTriggerFor]",exportAs:"popoverTrigger"}),we(3,t.Optional()),Ce("design:paramtypes",[ue.Overlay,t.ElementRef,t.ViewContainerRef,ce.Directionality,t.ChangeDetectorRef])],e)}(),gn=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}]},_e([t.ViewChild(hn,{static:!1}),Ce("design:type",hn)],e.prototype,"popoverTrigger",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"type",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"title",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"buttonClass",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"buttonPadding",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"iconWidth",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"iconHeight",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"icon",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"svgIcon",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"iconPos",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"notification",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"popover",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"overlay",void 0),_e([t.Input("forInput"),Ce("design:type",Boolean)],e.prototype,"isForInput",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onShowOverlay",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onOpenPopover",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClosePopover",void 0),_e([t.Output("click"),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),_e([t.Output("focus"),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),_e([t.Output("blur"),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),_e([t.HostListener("window:resize",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[UIEvent]),Ce("design:returntype",void 0)],e.prototype,"onResize",null),e=n=_e([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)}(),mn=0,fn=function(){function e(e,t){this.elementRef=e,this._changeDetectorRef=t,this._uniqueId="gipi-card-"+ ++mn,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}]},_e([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"id",null),_e([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"name",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"loading",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"shadow",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"padding",null),e=n=_e([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)}(),yn=0,vn=function(){function e(e,n){this._changeDetectorRef=e,this.elementRef=n,this._name="gipi-chips-"+yn++,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}]},_e([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"labelRemoveAll",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"showRemovableAll",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"showRemovable",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"property",void 0),_e([t.Input(),Ce("design:type",Array),Ce("design:paramtypes",[Array])],e.prototype,"value",null),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"removeChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"removeAllChange",void 0),e=n=_e([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)}(),bn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return be(t,e),t}(Ge),xn=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:bn,decorators:[{type:t.Inject,args:[a.MAT_DIALOG_DATA]}]},{type:void 0,decorators:[{type:t.Inject,args:[De]}]}]},e=n=_e([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)}"]}),we(1,t.Inject(a.MAT_DIALOG_DATA)),we(2,t.Inject(De)),Ce("design:paramtypes",[a.MatDialogRef,bn,Object])],e)}(),_n=0,wn=function(){function e(e,n){this._changeDetectorRef=e,this.elementRef=n,this._name="gipi-dropdown-menu-"+_n++,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}]},_e([t.ViewChild(hn,{static:!1}),Ce("design:type",hn)],e.prototype,"popoverTrigger",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"showTrigger",void 0),_e([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"trigger",null),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onKeydown",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onOpenPopover",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClosePopover",void 0),_e([t.HostListener("window:resize",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[UIEvent]),Ce("design:returntype",void 0)],e.prototype,"onResize",null),e=n=_e([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 rgba(0,0,0,.12);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)}(),Cn=function(){function e(){}var n;return n=e,e.prototype.ngOnInit=function(){},e=n=_e([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)}(),In=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}]},_e([t.Input(),Ce("design:type",String)],e.prototype,"icon",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"svgIcon",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"iconSize",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"panelTitle",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"isExpanded",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"startExpanded",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"expanded",void 0),e=n=_e([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)}(),Sn=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(xn,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=_e([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[a.MatDialog])],n)}(We),En=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&&je.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||Et.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:Ke},{type:Sn}]},_e([t.ViewChild("inputFile",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"_elementRef",void 0),_e([t.Input(),Ce("design:type",Array)],e.prototype,"files",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"color",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"icon",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"iconFile",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"iconDeleteFile",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"svgIcon",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"svgIconFile",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"svgIconDeleteFile",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"iconSize",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"iconSizeFile",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"multiple",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",Array)],e.prototype,"onlyExtensions",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"verifyHasAdded",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"legendFieldset",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"listFileVisible",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"removingFiles",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"fileChange",void 0),e=n=_e([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",[Ke,Sn])],e)}(),On=function(){function e(){}var n;return n=e,e.prototype.ngOnInit=function(){},e=n=_e([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)}(),kn=0,Dn=function(){function e(e,n){this._changeDetectorRef=e,this.elementRef=n,this._name="gipi-form-field-"+kn++,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}]},_e([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"readonly",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"showClear",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"showSearch",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"showTrigger",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"type",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"min",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"max",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"maxLength",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"mask",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"pattern",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"optionsCurrency",void 0),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"model",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"value",null),_e([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"trigger",null),_e([t.ViewChild("inputRef",{static:!0,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"inputRef",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onKeydown",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onKeydownEnter",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClear",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onSearch",void 0),e=n=_e([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 rgba(0,0,0,.12);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)}(),Pn=0,Rn=function(){function e(e,t){this._changeDetectorRef=e,this.elementRef=t,this._name="gipi-form-field-"+Pn++,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}]},_e([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"tooltip",null),e=n=_e([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)}(),An=0,Tn=function(){function e(e){this._changeDetectorRef=e,this._name="gipi-input-checkbox-"+An++,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}]},_e([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disableRipple",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"labelPosition",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"indeterminate",void 0),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"value",null),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"change",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"indeterminateChange",void 0),e=n=_e([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)}(),Mn=0,Fn=function(){function e(e,n){this._changeDetectorRef=e,this.elementRef=n,this._name="gipi-input-currency-"+Mn++,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}]},_e([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"readonly",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"min",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"max",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"maxLength",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"options",void 0),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"model",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"value",null),_e([t.ViewChild("inputCurrencyRef",{static:!0,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"inputCurrencyRef",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onKeydown",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onKeydownEnter",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),e=n=_e([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 rgba(0,0,0,.12);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,Ln=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:st}]},_e([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"showOnFocus",void 0),_e([t.Input(),Ce("design:type",Date)],e.prototype,"minDate",void 0),_e([t.Input(),Ce("design:type",Date)],e.prototype,"maxDate",void 0),_e([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"calendarView",null),_e([t.Input(),Ce("design:type",Date),Ce("design:paramtypes",[Date])],e.prototype,"value",null),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClose",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onMonthChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onYearChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onKeydown",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onKeydownEnter",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),_e([t.ViewChild("inputMonthPicker",{static:!0,read:HTMLInputElement}),Ce("design:type",HTMLInputElement)],e.prototype,"inputMonthPickerRef",void 0),e=n=_e([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 rgba(0,0,0,.12);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,st])],e)}(),Vn=0,jn=function(){function e(e,n){this.elementRef=e,this._changeDetectorRef=n,this._name="gipi-input-phone-"+Vn++,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,je.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=Je.mask(this.value);this.maskPhone$.next(e)}else this.maskPhone$.next("0*")},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},_e([t.ViewChild("input",{static:!1,read:t.ElementRef}),Ce("design:type",t.ElementRef)],e.prototype,"_elementRef",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"foreign",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"appearance",void 0),_e([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"value",null),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"focus",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"blur",void 0),e=n=_e([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)}(),Bn=0,zn=function(){function e(e,n){this.elementRef=e,this._changeDetectorRef=n,this._name="gipi-input-select-enum-"+Bn++,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&&!Et.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}]},_e([t.ViewChild("formFieldSelectEnum",{read:Dn,static:!1}),Ce("design:type",Dn)],e.prototype,"formFieldSelectEnum",void 0),_e([t.ViewChild(hn,{static:!1}),Ce("design:type",hn)],e.prototype,"popoverTrigger",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"disabled",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"loading",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"multiple",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"showOnFocus",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"hideOnEscape",null),_e([t.Input(),Ce("design:type",Object)],e.prototype,"enum",void 0),_e([t.Input(),Ce("design:type",Function)],e.prototype,"sort",void 0),_e([t.Input(),Ce("design:type",Array)],e.prototype,"valuesExclud",void 0),_e([t.Input(),Ce("design:type",Array)],e.prototype,"valuesOmit",void 0),_e([t.Input("value"),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"value",null),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectionChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onOpenedChange",void 0),_e([t.HostListener("window:resize",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[UIEvent]),Ce("design:returntype",void 0)],e.prototype,"onWindowResize",null),e=n=_e([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)}(),Yn=function(){function e(e,t){void 0===t&&(t=function(){}),this.element=e,this.listener=t}return e.prototype.bindScrollListener=function(){this.scrollableParents=un.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}(),Hn=ae.animation([ae.style({transform:"{{transform}}",opacity:0}),ae.animate("{{showTransitionParams}}")]),Un=ae.animation([ae.animate("{{hideTransitionParams}}",ae.style({transform:"{{transform}}",opacity:0}))]),Gn=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 xe(xe({},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 xe(xe({},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 un.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&&(un.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),at.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&&un.focus(this.targetEl),this.modal&&un.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&&un.focus(this.targetEl),this.modal&&un.removeClass(null===(n=this._document)||void 0===n?void 0:n.body,"overflow-hidden"))},e.prototype.alignOverlay=function(){!this.modal&&un.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&&at.set(this.overlayMode,this.overlayEl,this.baseZIndex+(null===(t=this._config)||void 0===t?void 0:t.zIndex[this.overlayMode])),un.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&&un.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(),un.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),at.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 Yn(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:!un.isTouchDevice()}):!un.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:!un.isTouchDevice()}):!un.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:st},{type:t.NgZone},{type:t.ElementRef},{type:t.Renderer2},{type:lt}]},_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"visible",null),_e([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"mode",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"style",null),_e([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"styleClass",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"contentStyle",null),_e([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"contentStyleClass",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"target",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"appendTo",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"autoZIndex",null),_e([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"baseZIndex",null),_e([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"showTransitionOptions",null),_e([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"hideTransitionOptions",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"listener",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"responsive",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"options",null),_e([t.Input(),Ce("design:type",Function),Ce("design:paramtypes",[Function])],e.prototype,"documentClick",null),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"visibleChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBeforeShow",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onShow",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBeforeHide",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onHide",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onAnimationStart",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onAnimationDone",void 0),_e([t.ContentChildren(an),Ce("design:type",t.QueryList)],e.prototype,"templates",void 0),_e([t.ViewChild("overlay",{static:!1}),Ce("design:type",t.ElementRef)],e.prototype,"overlayViewChild",void 0),_e([t.ViewChild("content",{static:!1}),Ce("design:type",t.ElementRef)],e.prototype,"contentViewChild",void 0),e=n=_e([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(Hn)]),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}}"]}),we(0,t.Inject(i.DOCUMENT)),Ce("design:paramtypes",[Document,st,t.NgZone,t.ElementRef,t.Renderer2,lt])],e)}(),qn=0,$n=function(){function e(e){var n=this;this._changeDetectorRef=e,this._name="gipi-input-select-"+qn++,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=ke(t.options);i.splice.apply(i,ke([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=ke(n)}else this.value=ke(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=ke(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}]},_e([t.ViewChild("formfieldSelectSearchInput",{read:Dn,static:!0}),Ce("design:type",Dn)],e.prototype,"formfieldSelectSearchInput",void 0),_e([t.ViewChild("formFieldSelect",{read:Dn,static:!1}),Ce("design:type",Dn)],e.prototype,"formFieldSelect",void 0),_e([t.ViewChild("overlaySelect",{read:Gn,static:!1}),Ce("design:type",Gn)],e.prototype,"overlaySelect",void 0),_e([t.ViewChild(v.CdkVirtualScrollViewport,{static:!1}),Ce("design:type",v.CdkVirtualScrollViewport)],e.prototype,"cdkVirtualScrollViewPort",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"labelSelectAll",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"multiple",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"showClear",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"showOnFocus",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideOnEscape",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"showSelectAll",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"showFooter",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"infiniteScroll",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"showSearch",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"property",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"trackBy",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"appendTo",void 0),_e([t.Input(),Ce("design:type",Function)],e.prototype,"propertyFn",void 0),_e([t.Input(),Ce("design:type",Function)],e.prototype,"nextBatchFn",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"pageSize",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"enableClearOnEscapePressed",void 0),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disabled",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"loading",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"paramNextBatch",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"value",null),_e([t.Input(),Ce("design:type",Array),Ce("design:paramtypes",[Array])],e.prototype,"options",null),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClose",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onSelectChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onOpenedChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onSearchChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onAddChange",void 0),e=n=_e([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 rgba(0,0,0,.12)}.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)}(),Wn=0,Kn=function(){function e(e,n,i){var o=this;this._changeDetectorRef=e,this._elementRef=n,this._renderer=i,this._name="gipi-input-select-listbox-"+Wn++,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":Et.isEmpty(this.value)?je.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){Et.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=ke(this.value),i=n.findIndex((function(t){return t===e}));i>=0&&(n.splice(i,1),this.value=ke(n),Et.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||Et.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||Et.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}]},_e([t.ViewChild("formFieldSelectListbox",{read:Dn,static:!1}),Ce("design:type",Dn)],e.prototype,"formFieldSelectListbox",void 0),_e([t.ViewChild("overlaySelectListbox",{read:Gn,static:!1}),Ce("design:type",Gn)],e.prototype,"overlaySelectListbox",void 0),_e([t.ViewChild("inputSelect",{read:$n,static:!1}),Ce("design:type",$n)],e.prototype,"inputSelect",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"placeholderSelected",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"placeholderSearch",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"multiple",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"readonly",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideFilterType",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"showOnFocus",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideOnEscape",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"showSearch",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"property",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"trackBy",void 0),_e([t.Input(),Ce("design:type",Function)],e.prototype,"propertyFn",void 0),_e([t.Input(),Ce("design:type",Function)],e.prototype,"nextBatchFn",void 0),_e([t.Input(),Ce("design:type",Array),Ce("design:paramtypes",[Array])],e.prototype,"value",null),_e([t.Input(),Ce("design:type",Array),Ce("design:paramtypes",[Array])],e.prototype,"options",null),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClose",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onOpenedChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onSelectChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onApply",void 0),_e([t.HostListener("window:resize",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[UIEvent]),Ce("design:returntype",void 0)],e.prototype,"resizeOverlay",null),e=n=_e([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)}(),Xn=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]}]}]},_e([t.Input(),Ce("design:type",String)],e.prototype,"placeholderLabel",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"clearSearchInput",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"searching",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disableInitialFocus",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"enableClearOnEscapePressed",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"preventHomeEndKeyPropagation",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disableScrollToActiveOnOptionsChanged",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideClearSearchButton",void 0),_e([t.ViewChild("searchSelectInput",{read:t.ElementRef,static:!0}),Ce("design:type",t.ElementRef)],e.prototype,"searchSelectInput",void 0),_e([t.ViewChild("innerSelectSearch",{read:t.ElementRef,static:!0}),Ce("design:type",t.ElementRef)],e.prototype,"innerSelectSearch",void 0),_e([t.HostBinding("class.mat-select-search-inside-mat-option"),Ce("design:type",Boolean),Ce("design:paramtypes",[])],e.prototype,"isInsideMatOption",null),e=n=_e([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}}']}),we(0,t.Inject(a.MatSelect)),we(3,t.Optional()),we(3,t.Inject(a.MatOption)),we(4,t.Optional()),we(4,t.Inject(a.MatFormField)),Ce("design:paramtypes",[a.MatSelect,t.ChangeDetectorRef,v.ViewportRuler,a.MatOption,a.MatFormField])],e)}(),Zn=0,Jn=function(){function e(e){var n=this;this._changeDetectorRef=e,this._name="gipi-input-select-paged-"+Zn++,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 Et.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()||Et.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)?je.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]:Et.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)&&!Et.isEmpty(i.page.content)){if(!Et.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=ke(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}]},_e([t.ViewChild("matSelect",{static:!1}),Ce("design:type",H.MatSelect)],e.prototype,"matSelect",void 0),_e([t.ViewChild(v.CdkVirtualScrollViewport,{static:!1}),Ce("design:type",v.CdkVirtualScrollViewport)],e.prototype,"cdkVirtualScrollViewPort",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideFieldSearch",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"showClear",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"debounceTime",void 0),_e([t.Input(),Ce("design:type",Array)],e.prototype,"valuesExclud",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"classSelectPanel",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"trackyBy",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"infiniteScroll",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"property",void 0),_e([t.Input(),Ce("design:type",Function)],e.prototype,"propertyFn",void 0),_e([t.Input(),Ce("design:type",Function)],e.prototype,"nextBatchFn",void 0),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"paramNextBatch",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"model",null),_e([t.Input(),Ce("design:type",Array),Ce("design:paramtypes",[Array])],e.prototype,"options",null),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"modelChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectionChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"searchChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"openedChange",void 0),e=n=_e([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)}(),Qn=0,ei=function(){function e(e,n){this.elementRef=e,this._changeDetectorRef=n,this._name="gipi-input-select-radio-"+Qn++,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&&!Et.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}]},_e([t.ViewChild("formFieldSelectRadio",{read:Dn,static:!1}),Ce("design:type",Dn)],e.prototype,"formFieldSelectRadio",void 0),_e([t.ViewChild(hn,{static:!1}),Ce("design:type",hn)],e.prototype,"popoverTrigger",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"showOnFocus",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideOnEscape",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideOnClick",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"enum",void 0),_e([t.Input(),Ce("design:type",Function)],e.prototype,"sort",void 0),_e([t.Input(),Ce("design:type",Array)],e.prototype,"valuesExclud",void 0),_e([t.Input(),Ce("design:type",Array)],e.prototype,"valuesOmit",void 0),_e([t.Input("value"),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"value",null),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectionChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onOpenedChange",void 0),_e([t.HostListener("window:resize",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[UIEvent]),Ce("design:returntype",void 0)],e.prototype,"onWindowResize",null),e=n=_e([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)}(),ti=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(){},_e([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"buttonPadding",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"iconWidth",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"iconHeight",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"icon",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"svgIcon",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"loading",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"notification",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onShowOverlay",void 0),_e([t.Output("click"),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),_e([t.Output("focus"),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),_e([t.Output("blur"),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),e=n=_e([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)}(),ni=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(){},_e([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"buttonPadding",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"iconWidth",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"iconHeight",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"icon",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"svgIcon",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"loading",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"hasNovelties",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onShowOverlay",void 0),_e([t.Output("click"),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),_e([t.Output("focus"),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),_e([t.Output("blur"),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),e=n=_e([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)}(),ii=function(){function e(){}return e.isValid=function(e){return!je.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}(),oi=0,ri=function(){function e(e){this._changeDetectorRef=e,this._name="gipi-password-requeriments-"+oi++,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,je.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&&ii.isValidMinLength(this.password)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isValidMaxLength",{get:function(){return this.password.trim().length>0&&ii.isValidMaxLength(this.password)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasUppercase",{get:function(){return this.password.trim().length>0&&ii.hasUppercase(this.password)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasLowercase",{get:function(){return this.password.trim().length>0&&ii.hasLowercase(this.password)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasNumber",{get:function(){return this.password.trim().length>0&&ii.hasNumber(this.password)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasBackspace",{get:function(){return this.password.trim().length>0&&ii.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}]},_e([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"password",null),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onValid",void 0),e=n=_e([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)}(),ai=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}))])]),si=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}]},_e([t.HostBinding("attr.role"),Ce("design:type",String)],e.prototype,"role",void 0),_e([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"popoverWidth",null),_e([t.Input("popoverPositionX"),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"positionX",null),_e([t.Input("popoverPositionY"),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"positionY",null),_e([t.Input("popoverTriggerOn"),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"triggerEvent",null),_e([t.Input("popoverScrollStrategy"),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"scrollStrategy",null),_e([t.Input("popoverEnterDelay"),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"enterDelay",null),_e([t.Input("popoverLeaveDelay"),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"leaveDelay",null),_e([t.Input("popoverOverlapTrigger"),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"overlapTrigger",null),_e([t.Input("popoverOffsetX"),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"targetOffsetX",null),_e([t.Input("popoverOffsetY"),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"targetOffsetY",null),_e([t.Input("popoverArrowOffsetX"),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"arrowOffsetX",null),_e([t.Input("popoverArrowWidth"),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"arrowWidth",null),_e([t.Input("popoverArrowColor"),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"arrowColor",null),_e([t.Input("popoverCloseOnClick"),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"closeOnClick",null),_e([t.Input("popoverDisableAnimation"),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disableAnimation",null),_e([t.Input("focusTrapEnabled"),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"focusTrapEnabled",null),_e([t.Input("focusTrapAutoCaptureEnabled"),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"focusTrapAutoCaptureEnabled",null),_e([t.Input("class"),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"panelClass",null),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"close",void 0),_e([t.ViewChild(t.TemplateRef,{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"templateRef",void 0),e=n=_e([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:[ai],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)}(),li=function(){function e(e){this._elementRef=e}return e.ctorParameters=function(){return[{type:t.ElementRef}]},e=_e([t.Directive({selector:"popover-target, [popoverTarget]",exportAs:"popoverTarget"}),Ce("design:paramtypes",[t.ElementRef])],e)}(),pi=0,di=function(){function e(e){this._changeDetectorRef=e,this._name="gipi-radio-group-"+pi++,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}]},_e([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"fieldset",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"direction",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"enum",void 0),_e([t.Input(),Ce("design:type",Function)],e.prototype,"sort",void 0),_e([t.Input(),Ce("design:type",Array)],e.prototype,"valuesExclud",void 0),_e([t.Input(),Ce("design:type",Array)],e.prototype,"valuesOmit",void 0),_e([t.Input("value"),Ce("design:type",Object)],e.prototype,"val",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectionChange",void 0),e=n=_e([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:rgba(0,0,0,.12);border-radius:5px}.fieldset-radio-content .radiogroup{width:100%;height:100%;justify-content:space-around}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef])],e)}(),ci=0,ui=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}(),hi=function(){function e(e,t){this.elementRef=e,this._changeDetectorRef=t,this._name="gipi-range-page-"+ci++,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 Ze.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 Ze.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 Ze.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 ui(this._startPage,this._endPage)),this.onTouched()},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},_e([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"placeholderStart",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"placeholderEnd",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"help",void 0),_e([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"min",null),_e([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"max",null),_e([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"step",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"required",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disabled",null),e=n=_e([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 rgba(0,0,0,.12);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 rgba(0,0,0,.12);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 rgba(0,0,0,.12);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)}(),gi=0,mi=function(){function e(e,t){this.elementRef=e,this._changeDetectorRef=t,this._name="gipi-range-slider-"+gi++,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}]},_e([t.ViewChild("fromSlider",{static:!1}),Ce("design:type",t.ElementRef)],e.prototype,"fromSlider",void 0),_e([t.ViewChild("toSlider",{static:!1}),Ce("design:type",t.ElementRef)],e.prototype,"toSlider",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"help",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"min",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"max",void 0),_e([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"maxRange",null),_e([t.Input("from"),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"fromValue",null),_e([t.Input("to"),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"toValue",null),_e([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"step",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disabled",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"required",null),e=n=_e([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 rgba(0,0,0,.12);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 rgba(0,0,0,.12);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)}(),fi=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=ke(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=Ee(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}]},_e([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"arialLabel",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"dataKey",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),_e([t.Input(),Ce("design:type",Array)],e.prototype,"options",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"optionLabel",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"optionValue",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"optionDisabled",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"multiple",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onOptionClick",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onChange",void 0),e=n=_e([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 rgba(0,0,0,.12);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)}(),yi=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)&&!je.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)?je.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)&&(je.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)},_e([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"required",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"iconPrefix",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"iconPrefixWidth",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"iconPrefixHeight",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"svgIconPrefix",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"iconSuffix",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"iconSuffixWidth",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"iconSuffixHeight",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"svgIconSuffix",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"property",void 0),_e([t.Input(),Ce("design:type",Function)],e.prototype,"propertyFn",void 0),_e([t.Input(),Ce("design:type",Array)],e.prototype,"options",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"trackyBy",void 0),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"model",null),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onShowOverlay",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onModelChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onSelectionChange",void 0),e=n=_e([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)}(),vi=["xl","lg","md","sm","xs"],bi=new Map([[vi[0],"(min-width: 1920px)"],[vi[1],"(min-width: 1366px)"],[vi[2],"(min-width: 768px)"],[vi[3],"(min-width: 600px)"],[vi[4],"(min-width: 0px)"]]),xi=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(bi.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=_e([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[])],n)}(We),_i=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=_e([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[s.Router])],n)}(We),wi=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:_i},{type:xi}]},_e([t.HostListener("window:resize",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[UIEvent]),Ce("design:returntype",void 0)],e.prototype,"onResize",null),e=n=_e([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",[_i,xi])],e)}(),Ci=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),Et.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,!Et.isEmpty(e.menuList)&&ze.isNull(t._levelOneMenuCollapsableSelected)?t._levelOneMenuCollapsableSelected=ze.clone(e):!Et.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,Et.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(je.isEmpty(e.route))return!1;var n=this._router.url.includes(e.route),i=Et.clone(this.menuItems);!ze.isNull(this._levelOneMenuCollapsableSelected)&&ze.isNull(this._levelTwoMenuCollapsableSelected)?i=Et.clone(this._levelOneMenuCollapsableSelected.menuList):ze.isNull(this._levelTwoMenuCollapsableSelected)||(i=Et.clone(this._levelTwoMenuCollapsableSelected.menuList));var o=i.filter((function(e){return!Et.isEmpty(e.menuList)})).find((function(t){return t.route===e.route&&t.index===e.index&&t.type&&e.type}));if(n&&!ze.isNull(o)&&!Et.isEmpty(o.menuList)){var r=o.menuList.find((function(e){return t._router.url.includes(e.route)}));if(ze.isNull(r)||Et.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 je.isEmpty(e)?"":je.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:_i},{type:xi},{type:s.Router}]},_e([t.ViewChild("sidenav",{static:!1}),Ce("design:type",U.MatSidenav)],e.prototype,"sidenav",void 0),_e([t.Input(),Ce("design:type",Array),Ce("design:paramtypes",[Array])],e.prototype,"menuItems",null),_e([t.Input(),Ce("design:type",String)],e.prototype,"labelToggle",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"showTagNewIntegration",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"iconIntegration",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"svgIconIntegration",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"labelIntegration",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"showIntegration",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"iconConfiguration",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"svgIconConfiguration",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"labelConfiguration",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"showConfiguration",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClickMenuItem",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClickMenuIntegration",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClickMenuConfiguration",void 0),e=n=_e([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",[_i,xi,s.Router])],e)}(),Ii=0,Si=function(){function e(e){this._changeDetectorRef=e,this._name="gipi-slide-toggle-"+Ii++,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}]},_e([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"help",void 0),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"required",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disabled",null),e=n=_e([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)}(),Ei=0,Oi=function(){function e(e){this.elementRef=e,this._uniqueId=Ei++,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=Ei++;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}]},_e([t.ViewChild(hn,{static:!1}),Ce("design:type",hn)],e.prototype,"popoverTrigger",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"type",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"title",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"buttonClass",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"tooltip",void 0),_e([t.Input("options"),Ce("design:type",Array)],e.prototype,"splitOptions",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onOpenPopover",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"onClosePopover",void 0),_e([t.Output("click"),Ce("design:type",t.EventEmitter)],e.prototype,"onClick",void 0),_e([t.Output("focus"),Ce("design:type",t.EventEmitter)],e.prototype,"onFocus",void 0),_e([t.Output("blur"),Ce("design:type",t.EventEmitter)],e.prototype,"onBlur",void 0),_e([t.HostListener("window:resize",["$event"]),Ce("design:type",Function),Ce("design:paramtypes",[UIEvent]),Ce("design:returntype",void 0)],e.prototype,"onResize",null),e=n=_e([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)}(),ki=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},_e([t.Input(),Ce("design:type",String)],i.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],i.prototype,"name",void 0),i=o=_e([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),Di=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!Et.isEmpty(this._rowsExpanded)&&this._rowsExpanded.includes(e)},e.prototype.onRowExpandedChange=function(e){if(this.getShowExpandable(e)){if(this.expandOnlyOneRow)Et.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}]},_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"loadingDetail",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"clickOnRow",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"expandable",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"expandOnlyOneRow",void 0),_e([t.Input(),Ce("design:type",Function)],e.prototype,"rowExpandableFn",void 0),_e([t.Input(),Ce("design:type",Function)],e.prototype,"highlightRowFn",void 0),_e([t.Input(),Ce("design:type",Array)],e.prototype,"columns",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"trackBy",void 0),_e([t.Input(),Ce("design:type",t.TemplateRef)],e.prototype,"rowDetailRef",void 0),_e([t.Input(),Ce("design:type",Array),Ce("design:paramtypes",[Array])],e.prototype,"rows",null),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"rowsExpandedChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"rowDetailToggleChange",void 0),e=n=_e([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)}(),Pi=function(){function e(){}var n;return n=e,e.prototype.ngOnInit=function(){},e=n=_e([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}(),Ai=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}]},_e([t.Input(),Ce("design:type",Array)],e.prototype,"columns",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"sortActive",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"sortStart",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"sortDisableClear",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"sortLocked",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"sortAscendingIcon",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"sortDescendingIcon",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"sortUnsetIcon",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"sortChange",void 0),e=n=_e([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=Mi(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"autoHide",{get:function(){return this._autoHide},set:function(e){this._autoHide=Mi(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responsive",{get:function(){return this._responsive},set:function(e){this._responsive=Mi(e)},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.trackByIndex=function(e){return e},_e([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"maxSize",void 0),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"directionLinks",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"autoHide",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"responsive",null),_e([t.Input(),Ce("design:type",String)],e.prototype,"previousTooltip",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"nextTooltip",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"pageChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"pageBoundsCorrection",void 0),e=n=_e([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 Mi(e){return!!e&&"false"!==e}var Fi=function(){function e(){}var n;return n=e,e.prototype.ngOnInit=function(){},e=n=_e([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(){},_e([t.Input(),Ce("design:type",Array)],e.prototype,"columns",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"loading",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"sortActive",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"sortStart",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"sortDisableClear",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"sortLocked",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"sortAscendingIcon",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"sortDescendingIcon",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"sortUnsetIcon",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"sortChange",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"loadingDetail",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"clickOnRow",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"expandable",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"expandOnlyOneRow",void 0),_e([t.Input(),Ce("design:type",Function)],e.prototype,"rowExpandableFn",void 0),_e([t.Input(),Ce("design:type",Function)],e.prototype,"highlightRowFn",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"trackBy",void 0),_e([t.ContentChild("rowDetail",{static:!1}),Ce("design:type",t.TemplateRef)],e.prototype,"rowDetailRef",void 0),_e([t.Input(),Ce("design:type",Array)],e.prototype,"rows",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"rowsExpandedChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"rowDetailToggleChange",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"tableShowBorder",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideHeader",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"hideFooter",void 0),e=n=_e([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)}(),Li=function(){this.active=!1,this.closeable=!1,this.disabled=!1},Vi=0,ji=function(){function e(){this._name="gipi-tab-"+Vi++,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(){},_e([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"index",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"active",void 0),_e([t.Input(),Ce("design:type",t.TemplateRef)],e.prototype,"template",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"closeable",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disabled",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"data",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"icon",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"svgIcon",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectionChange",void 0),e=_e([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)}(),Bi=0,zi=function(){function e(e,t){this.elementRef=e,this._componentFactoryResolver=t,this._name="gipi-tab-"+Bi++,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 Li;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,ke(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(ji),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}]},_e([t.ContentChildren(ji),Ce("design:type",t.QueryList)],e.prototype,"tabQueryList",void 0),_e([t.ViewChild(rn,{static:!1}),Ce("design:type",rn)],e.prototype,"dynamicTabPlaceholder",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),e=_e([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)}(),Yi=0,Hi=function(){function e(e,t){this.elementRef=e,this._changeDetectorRef=t,this._name="gipi-textarea-"+Yi++,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}]},_e([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"cols",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"rows",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"help",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"maxlength",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"minlength",void 0),_e([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"resize",null),_e([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"minHeight",null),_e([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"height",null),_e([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"maxHeight",null),_e([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"autocomplete",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"autofocus",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"readOnly",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"required",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disabled",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"lowerCase",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"upperCase",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"spaceDrop",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"value",null),e=n=_e([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 rgba(0,0,0,.12);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(){},_e([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"style",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"class",void 0),e=n=_e([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)}(),Gi=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:_i}]},e=n=_e([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",[_i])],e)}(),qi=he,$i=function(){function e(){}return e.format=function(e,t){return ze.isNull(e)?je.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=qi(e),o=qi(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=qi(e),o=qi(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=qi(e),o=qi(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=qi(i,"DD/MM/YYYY HH:mm:ss").diff(qi(o,"DD/MM/YYYY HH:mm:ss")),a=0;switch(n){case"MILLISECONDS":a=qi.duration(r).asMilliseconds();break;case"SECONDS":a=qi.duration(r).asSeconds();break;case"MINUTES":a=qi.duration(r).asMinutes();break;case"HOURS":a=qi.duration(r).asHours();break;case"DAYS":a=qi.duration(r).asDays();break;case"MONTHS":a=qi.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(je.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!(Ze.isNegative(t)||Ze.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 st;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 st;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}(),Wi=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},_e([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"ariaLabel",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"imgSrc",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"text",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"username",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"email",void 0),_e([t.Input(),Ce("design:type",Date)],e.prototype,"lastAccess",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"iconEdit",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"svgIconEdit",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"iconExit",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"svgIconExit",void 0),_e([t.Output("onClick"),Ce("design:type",t.EventEmitter)],e.prototype,"click",void 0),_e([t.Output("onShowOverlay"),Ce("design:type",t.EventEmitter)],e.prototype,"showOverlay",void 0),_e([t.Output("onClickEdit"),Ce("design:type",t.EventEmitter)],e.prototype,"clickEdit",void 0),_e([t.Output("onClickExit"),Ce("design:type",t.EventEmitter)],e.prototype,"clickExit",void 0),e=n=_e([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)}(),Ki=new t.InjectionToken("MAT_DATE_LOCALE",{providedIn:"root",factory:Xi});function Xi(){return t.inject(t.LOCALE_ID)}var Zi={provide:Ki,useExisting:t.LOCALE_ID},Ji=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}(),Qi=function(e,t){this.start=e,this.end=t},eo=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}(),to=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:Ji}]},n=_e([t.Injectable(),Ce("design:paramtypes",[Ji])],n)}(eo),no=function(e){function n(t){return e.call(this,new Qi(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 Qi(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:Ji}]},n=_e([t.Injectable(),Ce("design:paramtypes",[Ji])],n)}(eo);function io(e,t){return e||new to(t)}var oo={provide:eo,deps:[[new t.Optional,new t.SkipSelf,eo],Ji],useFactory:io};function ro(e,t){return e||new no(t)}var ao={provide:eo,deps:[[new t.Optional,new t.SkipSelf,eo],Ji],useFactory:ro};
|
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.
|
20
20
|
*
|
21
21
|
* Use of this source code is governed by an MIT-style license that can be
|
22
22
|
* found in the LICENSE file at https://angular.io/license
|
23
|
-
*/function so(e){return Error("MatDatepicker: No provider found for "+e+". You must import one of the following modules at your application root: MatNativeDateModule, MatMomentDateModule, or provide a custom implementation.")}var lo=function(){function e(){this.changes=new ie.Subject,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}return e.prototype.formatYearRange=function(e,t){return e+" – "+t},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e=_e([t.Injectable({providedIn:"root"})],e)}(),po=function(e,t,n,i,o,r,a){void 0===o&&(o={}),void 0===r&&(r=e),this.value=e,this.displayValue=t,this.ariaLabel=n,this.enabled=i,this.cssClasses=o,this.compareValue=r,this.rawValue=a},co=function(){function e(e,n){var i=this;this._elementRef=e,this._ngZone=n,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new t.EventEmitter,this.previewChange=new t.EventEmitter,this._enterHandler=function(e){if(i._skipNextFocus&&"focus"===e.type)i._skipNextFocus=!1;else if(e.target&&i.isRange){var t=i._getCellFromElement(e.target);t&&i._ngZone.run((function(){return i.previewChange.emit({value:t.enabled?t:null,event:e})}))}},this._leaveHandler=function(e){null!==i.previewEnd&&i.isRange&&e.target&&uo(e.target)&&i._ngZone.run((function(){return i.previewChange.emit({value:null,event:e})}))},n.runOutsideAngular((function(){var t=e.nativeElement;t.addEventListener("mouseenter",i._enterHandler,!0),t.addEventListener("focus",i._enterHandler,!0),t.addEventListener("mouseleave",i._leaveHandler,!0),t.addEventListener("blur",i._leaveHandler,!0)}))}return e.prototype._cellClicked=function(e,t){e.enabled&&this.selectedValueChange.emit({value:e.value,event:t})},e.prototype._isSelected=function(e){return this.startValue===e||this.endValue===e},e.prototype.ngOnChanges=function(e){var t=e.numCols,n=this.rows,i=this.numCols;(e.rows||t)&&(this._firstRowOffset=n&&n.length&&n[0].length?i-n[0].length:0),(e.cellAspectRatio||t||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/i+"%"),!t&&this._cellWidth||(this._cellWidth=100/i+"%")},e.prototype.ngOnDestroy=function(){var e=this._elementRef.nativeElement;e.removeEventListener("mouseenter",this._enterHandler,!0),e.removeEventListener("focus",this._enterHandler,!0),e.removeEventListener("mouseleave",this._leaveHandler,!0),e.removeEventListener("blur",this._leaveHandler,!0)},e.prototype._isActiveCell=function(e,t){var n=e*this.numCols+t;return e&&(n-=this._firstRowOffset),n==this.activeCell},e.prototype._focusActiveCell=function(e){var t=this;void 0===e&&(e=!0),this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.pipe(oe.take(1)).subscribe((function(){var n=t._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(e||(t._skipNextFocus=!0),n.focus())}))}))},e.prototype._isRangeStart=function(e){return ho(e,this.startValue,this.endValue)},e.prototype._isRangeEnd=function(e){return go(e,this.startValue,this.endValue)},e.prototype._isInRange=function(e){return mo(e,this.startValue,this.endValue,this.isRange)},e.prototype._isComparisonStart=function(e){return ho(e,this.comparisonStart,this.comparisonEnd)},e.prototype._isComparisonBridgeStart=function(e,t,n){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;var i=this.rows[t][n-1];if(!i){var o=this.rows[t-1];i=o&&o[o.length-1]}return i&&!this._isRangeEnd(i.compareValue)},e.prototype._isComparisonBridgeEnd=function(e,t,n){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;var i=this.rows[t][n+1];if(!i){var o=this.rows[t+1];i=o&&o[0]}return i&&!this._isRangeStart(i.compareValue)},e.prototype._isComparisonEnd=function(e){return go(e,this.comparisonStart,this.comparisonEnd)},e.prototype._isInComparisonRange=function(e){return mo(e,this.comparisonStart,this.comparisonEnd,this.isRange)},e.prototype._isComparisonIdentical=function(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart},e.prototype._isPreviewStart=function(e){return ho(e,this.previewStart,this.previewEnd)},e.prototype._isPreviewEnd=function(e){return go(e,this.previewStart,this.previewEnd)},e.prototype._isInPreview=function(e){return mo(e,this.previewStart,this.previewEnd,this.isRange)},e.prototype._getCellFromElement=function(e){var t;if(uo(e)?t=e:uo(e.parentNode)&&(t=e.parentNode),t){var n=t.getAttribute("data-mat-row"),i=t.getAttribute("data-mat-col");if(n&&i)return this.rows[parseInt(n)][parseInt(i)]}return null},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.NgZone}]},_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",Array)],e.prototype,"rows",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"todayValue",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"startValue",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"endValue",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"labelMinRequiredCells",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"numCols",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"activeCell",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"isRange",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"cellAspectRatio",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"comparisonStart",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"comparisonEnd",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"previewStart",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"previewEnd",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectedValueChange",void 0),_e([t.Output(),Ce("design:type",Object)],e.prototype,"previewChange",void 0),e=_e([t.Component({selector:"[gipi-mat-calendar-body]",template:'\x3c!--\n If there\'s not enough space in the first row, create a separate label row. We mark this row as\n aria-hidden because we don\'t want it to be read out as one of the weeks in the month.\n--\x3e\n<tr *ngIf="_firstRowOffset < labelMinRequiredCells"\n aria-hidden="true">\n <td class="mat-calendar-body-label"\n [attr.colspan]="numCols"\n [style.paddingTop]="_cellPadding"\n [style.paddingBottom]="_cellPadding">\n {{label}}\n </td>\n</tr>\n\n\x3c!-- Create the first row separately so we can include a special spacer cell. --\x3e\n<tr *ngFor="let row of rows; let rowIndex = index"\n role="row">\n \x3c!--\n We mark this cell as aria-hidden so it doesn\'t get read out as one of the days in the week.\n The aspect ratio of the table cells is maintained by setting the top and bottom padding as a\n percentage of the width (a variant of the trick described here:\n https://www.w3schools.com/howto/howto_css_aspect_ratio.asp).\n --\x3e\n <td *ngIf="rowIndex === 0 && _firstRowOffset"\n aria-hidden="true"\n class="mat-calendar-body-label"\n [attr.colspan]="_firstRowOffset"\n [style.paddingTop]="_cellPadding"\n [style.paddingBottom]="_cellPadding">\n {{_firstRowOffset >= labelMinRequiredCells ? label : \'\'}}\n </td>\n <td *ngFor="let item of row; let colIndex = index"\n role="gridcell"\n class="mat-calendar-body-cell"\n [ngClass]="item.cssClasses"\n [tabindex]="_isActiveCell(rowIndex, colIndex) ? 0 : -1"\n [attr.data-mat-row]="rowIndex"\n [attr.data-mat-col]="colIndex"\n [class.mat-calendar-body-disabled]="!item.enabled"\n [class.mat-calendar-body-active]="_isActiveCell(rowIndex, colIndex)"\n [class.mat-calendar-body-range-start]="_isRangeStart(item.compareValue)"\n [class.mat-calendar-body-range-end]="_isRangeEnd(item.compareValue)"\n [class.mat-calendar-body-in-range]="_isInRange(item.compareValue)"\n [class.mat-calendar-body-comparison-bridge-start]="_isComparisonBridgeStart(item.compareValue, rowIndex, colIndex)"\n [class.mat-calendar-body-comparison-bridge-end]="_isComparisonBridgeEnd(item.compareValue, rowIndex, colIndex)"\n [class.mat-calendar-body-comparison-start]="_isComparisonStart(item.compareValue)"\n [class.mat-calendar-body-comparison-end]="_isComparisonEnd(item.compareValue)"\n [class.mat-calendar-body-in-comparison-range]="_isInComparisonRange(item.compareValue)"\n [class.mat-calendar-body-preview-start]="_isPreviewStart(item.compareValue)"\n [class.mat-calendar-body-preview-end]="_isPreviewEnd(item.compareValue)"\n [class.mat-calendar-body-in-preview]="_isInPreview(item.compareValue)"\n [attr.aria-label]="item.ariaLabel"\n [attr.aria-disabled]="!item.enabled || null"\n [attr.aria-selected]="_isSelected(item.compareValue)"\n (click)="_cellClicked(item, $event)"\n [style.width]="_cellWidth"\n [style.paddingTop]="_cellPadding"\n [style.paddingBottom]="_cellPadding">\n <div class="mat-calendar-body-cell-content mat-focus-indicator"\n [class.mat-calendar-body-selected]="_isSelected(item.compareValue)"\n [class.mat-calendar-body-comparison-identical]="_isComparisonIdentical(item.compareValue)"\n [class.mat-calendar-body-today]="todayValue === item.compareValue">\n {{item.displayValue}}\n </div>\n <div class="mat-calendar-body-cell-preview"></div>\n </td>\n</tr>',host:{class:"mat-calendar-body",role:"grid","aria-readonly":"true"},exportAs:"gipiMatCalendarBody",encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.71429%;padding-right:4.71429%}.mat-calendar-body-cell{position:relative;height:0;line-height:0;text-align:center;outline:0;cursor:pointer}.mat-calendar-body-cell-preview,.mat-calendar-body-cell::after,.mat-calendar-body-cell::before{content:'';position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;height:90%;width:100%}.mat-calendar-body-comparison-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview,.mat-calendar-body-range-start::after,.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before{left:0;border-radius:0 999px 999px 0}.mat-calendar-body-comparison-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview,.mat-calendar-body-range-end::after,.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before{left:5%;border-radius:999px 0 0 999px}[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:1px dashed;border-bottom:1px dashed}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:1px dashed}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:1px dashed}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:1px dashed}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:1px dashed}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-calendar-body-selected,.cdk-high-contrast-active .mat-datepicker-popup:not(:empty){outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media (hover:none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}"]}),Ce("design:paramtypes",[t.ElementRef,t.NgZone])],e)}();
|
23
|
+
*/function lo(e){return Error("MatDatepicker: No provider found for "+e+". You must import one of the following modules at your application root: MatNativeDateModule, MatMomentDateModule, or provide a custom implementation.")}var po=function(){function e(){this.changes=new ie.Subject,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}return e.prototype.formatYearRange=function(e,t){return e+" – "+t},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e=we([t.Injectable({providedIn:"root"})],e)}(),co=function(e,t,n,i,o,r,a){void 0===o&&(o={}),void 0===r&&(r=e),this.value=e,this.displayValue=t,this.ariaLabel=n,this.enabled=i,this.cssClasses=o,this.compareValue=r,this.rawValue=a},uo=function(){function e(e,n){var i=this;this._elementRef=e,this._ngZone=n,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new t.EventEmitter,this.previewChange=new t.EventEmitter,this._enterHandler=function(e){if(i._skipNextFocus&&"focus"===e.type)i._skipNextFocus=!1;else if(e.target&&i.isRange){var t=i._getCellFromElement(e.target);t&&i._ngZone.run((function(){return i.previewChange.emit({value:t.enabled?t:null,event:e})}))}},this._leaveHandler=function(e){null!==i.previewEnd&&i.isRange&&e.target&&ho(e.target)&&i._ngZone.run((function(){return i.previewChange.emit({value:null,event:e})}))},n.runOutsideAngular((function(){var t=e.nativeElement;t.addEventListener("mouseenter",i._enterHandler,!0),t.addEventListener("focus",i._enterHandler,!0),t.addEventListener("mouseleave",i._leaveHandler,!0),t.addEventListener("blur",i._leaveHandler,!0)}))}return e.prototype._cellClicked=function(e,t){e.enabled&&this.selectedValueChange.emit({value:e.value,event:t})},e.prototype._isSelected=function(e){return this.startValue===e||this.endValue===e},e.prototype.ngOnChanges=function(e){var t=e.numCols,n=this.rows,i=this.numCols;(e.rows||t)&&(this._firstRowOffset=n&&n.length&&n[0].length?i-n[0].length:0),(e.cellAspectRatio||t||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/i+"%"),!t&&this._cellWidth||(this._cellWidth=100/i+"%")},e.prototype.ngOnDestroy=function(){var e=this._elementRef.nativeElement;e.removeEventListener("mouseenter",this._enterHandler,!0),e.removeEventListener("focus",this._enterHandler,!0),e.removeEventListener("mouseleave",this._leaveHandler,!0),e.removeEventListener("blur",this._leaveHandler,!0)},e.prototype._isActiveCell=function(e,t){var n=e*this.numCols+t;return e&&(n-=this._firstRowOffset),n==this.activeCell},e.prototype._focusActiveCell=function(e){var t=this;void 0===e&&(e=!0),this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.pipe(oe.take(1)).subscribe((function(){var n=t._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(e||(t._skipNextFocus=!0),n.focus())}))}))},e.prototype._isRangeStart=function(e){return go(e,this.startValue,this.endValue)},e.prototype._isRangeEnd=function(e){return mo(e,this.startValue,this.endValue)},e.prototype._isInRange=function(e){return fo(e,this.startValue,this.endValue,this.isRange)},e.prototype._isComparisonStart=function(e){return go(e,this.comparisonStart,this.comparisonEnd)},e.prototype._isComparisonBridgeStart=function(e,t,n){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;var i=this.rows[t][n-1];if(!i){var o=this.rows[t-1];i=o&&o[o.length-1]}return i&&!this._isRangeEnd(i.compareValue)},e.prototype._isComparisonBridgeEnd=function(e,t,n){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;var i=this.rows[t][n+1];if(!i){var o=this.rows[t+1];i=o&&o[0]}return i&&!this._isRangeStart(i.compareValue)},e.prototype._isComparisonEnd=function(e){return mo(e,this.comparisonStart,this.comparisonEnd)},e.prototype._isInComparisonRange=function(e){return fo(e,this.comparisonStart,this.comparisonEnd,this.isRange)},e.prototype._isComparisonIdentical=function(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart},e.prototype._isPreviewStart=function(e){return go(e,this.previewStart,this.previewEnd)},e.prototype._isPreviewEnd=function(e){return mo(e,this.previewStart,this.previewEnd)},e.prototype._isInPreview=function(e){return fo(e,this.previewStart,this.previewEnd,this.isRange)},e.prototype._getCellFromElement=function(e){var t;if(ho(e)?t=e:ho(e.parentNode)&&(t=e.parentNode),t){var n=t.getAttribute("data-mat-row"),i=t.getAttribute("data-mat-col");if(n&&i)return this.rows[parseInt(n)][parseInt(i)]}return null},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.NgZone}]},we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"rows",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"todayValue",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"startValue",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"endValue",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"labelMinRequiredCells",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"numCols",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"activeCell",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"isRange",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"cellAspectRatio",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"comparisonStart",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"comparisonEnd",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"previewStart",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"previewEnd",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectedValueChange",void 0),we([t.Output(),Ce("design:type",Object)],e.prototype,"previewChange",void 0),e=we([t.Component({selector:"[gipi-mat-calendar-body]",template:'\x3c!--\n If there\'s not enough space in the first row, create a separate label row. We mark this row as\n aria-hidden because we don\'t want it to be read out as one of the weeks in the month.\n--\x3e\n<tr *ngIf="_firstRowOffset < labelMinRequiredCells"\n aria-hidden="true">\n <td class="mat-calendar-body-label"\n [attr.colspan]="numCols"\n [style.paddingTop]="_cellPadding"\n [style.paddingBottom]="_cellPadding">\n {{label}}\n </td>\n</tr>\n\n\x3c!-- Create the first row separately so we can include a special spacer cell. --\x3e\n<tr *ngFor="let row of rows; let rowIndex = index"\n role="row">\n \x3c!--\n We mark this cell as aria-hidden so it doesn\'t get read out as one of the days in the week.\n The aspect ratio of the table cells is maintained by setting the top and bottom padding as a\n percentage of the width (a variant of the trick described here:\n https://www.w3schools.com/howto/howto_css_aspect_ratio.asp).\n --\x3e\n <td *ngIf="rowIndex === 0 && _firstRowOffset"\n aria-hidden="true"\n class="mat-calendar-body-label"\n [attr.colspan]="_firstRowOffset"\n [style.paddingTop]="_cellPadding"\n [style.paddingBottom]="_cellPadding">\n {{_firstRowOffset >= labelMinRequiredCells ? label : \'\'}}\n </td>\n <td *ngFor="let item of row; let colIndex = index"\n role="gridcell"\n class="mat-calendar-body-cell"\n [ngClass]="item.cssClasses"\n [tabindex]="_isActiveCell(rowIndex, colIndex) ? 0 : -1"\n [attr.data-mat-row]="rowIndex"\n [attr.data-mat-col]="colIndex"\n [class.mat-calendar-body-disabled]="!item.enabled"\n [class.mat-calendar-body-active]="_isActiveCell(rowIndex, colIndex)"\n [class.mat-calendar-body-range-start]="_isRangeStart(item.compareValue)"\n [class.mat-calendar-body-range-end]="_isRangeEnd(item.compareValue)"\n [class.mat-calendar-body-in-range]="_isInRange(item.compareValue)"\n [class.mat-calendar-body-comparison-bridge-start]="_isComparisonBridgeStart(item.compareValue, rowIndex, colIndex)"\n [class.mat-calendar-body-comparison-bridge-end]="_isComparisonBridgeEnd(item.compareValue, rowIndex, colIndex)"\n [class.mat-calendar-body-comparison-start]="_isComparisonStart(item.compareValue)"\n [class.mat-calendar-body-comparison-end]="_isComparisonEnd(item.compareValue)"\n [class.mat-calendar-body-in-comparison-range]="_isInComparisonRange(item.compareValue)"\n [class.mat-calendar-body-preview-start]="_isPreviewStart(item.compareValue)"\n [class.mat-calendar-body-preview-end]="_isPreviewEnd(item.compareValue)"\n [class.mat-calendar-body-in-preview]="_isInPreview(item.compareValue)"\n [attr.aria-label]="item.ariaLabel"\n [attr.aria-disabled]="!item.enabled || null"\n [attr.aria-selected]="_isSelected(item.compareValue)"\n (click)="_cellClicked(item, $event)"\n [style.width]="_cellWidth"\n [style.paddingTop]="_cellPadding"\n [style.paddingBottom]="_cellPadding">\n <div class="mat-calendar-body-cell-content mat-focus-indicator"\n [class.mat-calendar-body-selected]="_isSelected(item.compareValue)"\n [class.mat-calendar-body-comparison-identical]="_isComparisonIdentical(item.compareValue)"\n [class.mat-calendar-body-today]="todayValue === item.compareValue">\n {{item.displayValue}}\n </div>\n <div class="mat-calendar-body-cell-preview"></div>\n </td>\n</tr>',host:{class:"mat-calendar-body",role:"grid","aria-readonly":"true"},exportAs:"gipiMatCalendarBody",encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.71429%;padding-right:4.71429%}.mat-calendar-body-cell{position:relative;height:0;line-height:0;text-align:center;outline:0;cursor:pointer}.mat-calendar-body-cell-preview,.mat-calendar-body-cell::after,.mat-calendar-body-cell::before{content:'';position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;height:90%;width:100%}.mat-calendar-body-comparison-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview,.mat-calendar-body-range-start::after,.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before{left:0;border-radius:0 999px 999px 0}.mat-calendar-body-comparison-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview,.mat-calendar-body-range-end::after,.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before{left:5%;border-radius:999px 0 0 999px}[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:1px dashed;border-bottom:1px dashed}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:1px dashed}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:1px dashed}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:1px dashed}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:1px dashed}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-calendar-body-selected,.cdk-high-contrast-active .mat-datepicker-popup:not(:empty){outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media (hover:none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}"]}),Ce("design:paramtypes",[t.ElementRef,t.NgZone])],e)}();
|
24
24
|
/**
|
25
25
|
* @license
|
26
26
|
* Copyright Google LLC All Rights Reserved.
|
27
27
|
*
|
28
28
|
* Use of this source code is governed by an MIT-style license that can be
|
29
29
|
* found in the LICENSE file at https://angular.io/license
|
30
|
-
*/function
|
30
|
+
*/function ho(e){return"TD"===e.nodeName}function go(e,t,n){return null!==n&&t!==n&&e<n&&e===t}function mo(e,t,n){return null!==t&&t!==n&&e>=t&&e===n}function fo(e,t,n,i){return i&&null!==t&&null!==n&&t!==n&&e>=t&&e<=n}
|
31
31
|
/**
|
32
32
|
* @license
|
33
33
|
* Copyright Google LLC All Rights Reserved.
|
34
34
|
*
|
35
35
|
* Use of this source code is governed by an MIT-style license that can be
|
36
36
|
* found in the LICENSE file at https://angular.io/license
|
37
|
-
*/var fo=new t.InjectionToken("MAT_DATE_RANGE_SELECTION_STRATEGY"),yo=function(){function e(e){this._dateAdapter=e}return e.prototype.selectionFinished=function(e,t){var n=t.start,i=t.end;return null==n?n=e:null==i&&e&&this._dateAdapter.compareDate(e,n)>=0?i=e:(n=e,i=null),new Qi(n,i)},e.prototype.createPreview=function(e,t){var n=null,i=null;return t.start&&!t.end&&e&&(n=t.start,i=e),new Qi(n,i)},e.ctorParameters=function(){return[{type:Ji}]},e=_e([t.Injectable(),Ce("design:paramtypes",[Ji])],e)}();function vo(e,t){return e||new yo(t)}var bo={provide:fo,deps:[[new t.Optional,new t.SkipSelf,fo],Ji],useFactory:vo},xo=function(){function e(e,n,i,o,r){if(this._changeDetectorRef=e,this._dateFormats=n,this._dateAdapter=i,this._dir=o,this._rangeStrategy=r,this._rerenderSubscription=ie.Subscription.EMPTY,this.selectedChange=new t.EventEmitter,this._userSelection=new t.EventEmitter,this.activeDateChange=new t.EventEmitter,!this._dateAdapter)throw so("DateAdapter");if(!this._dateFormats)throw so("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}return Object.defineProperty(e.prototype,"activeDate",{get:function(){return this._activeDate},set:function(e){var t=this._activeDate,n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._hasSameMonthAndYear(t,this._activeDate)||this._init()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(e){this._selected=e instanceof Qi?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minDate",{get:function(){return this._minDate},set:function(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxDate",{get:function(){return this._maxDate},set:function(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(oe.startWith(null)).subscribe((function(){return e._init()}))},e.prototype.ngOnChanges=function(e){var t=e.comparisonStart||e.comparisonEnd;t&&!t.firstChange&&this._setRanges(this.selected)},e.prototype.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()},e.prototype._dateSelected=function(e){var t,n,i=e.value,o=this._dateAdapter.getYear(this.activeDate),r=this._dateAdapter.getMonth(this.activeDate),a=this._dateAdapter.createDate(o,r,i);this._selected instanceof Qi?(t=this._getDateInCurrentMonth(this._selected.start),n=this._getDateInCurrentMonth(this._selected.end)):t=n=this._getDateInCurrentMonth(this._selected),t===i&&n===i||this.selectedChange.emit(a),this._userSelection.emit({value:a,event:e.event})},e.prototype._handleCalendarBodyKeydown=function(e){var t=this._activeDate,n=this._isRtl();switch(e.keyCode){case se.LEFT_ARROW:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case se.RIGHT_ARROW:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case se.UP_ARROW:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case se.DOWN_ARROW:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case se.HOME:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case se.END:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case se.PAGE_UP:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case se.PAGE_DOWN:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case se.ENTER:case se.SPACE:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),e.preventDefault()));case se.ESCAPE:return void(null!=this._previewEnd&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e}),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()},e.prototype._init=function(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();var e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()},e.prototype._focusActiveCell=function(e){this._matCalendarBody._focusActiveCell(e)},e.prototype._previewChanged=function(e){var t=e.event,n=e.value;if(this._rangeStrategy){var i=n?n.rawValue:null,o=this._rangeStrategy.createPreview(i,this.selected,t);this._previewStart=this._getCellCompareValue(o.start),this._previewEnd=this._getCellCompareValue(o.end),this._changeDetectorRef.detectChanges()}},e.prototype._initWeekdays=function(){var e=this._dateAdapter.getFirstDayOfWeek(),t=this._dateAdapter.getDayOfWeekNames("narrow"),n=this._dateAdapter.getDayOfWeekNames("long").map((function(e,n){return{long:e,narrow:t[n]}}));this._weekdays=n.slice(e).concat(n.slice(0,e))},e.prototype._createWeekCells=function(){var e=this._dateAdapter.getNumDaysInMonth(this.activeDate),t=this._dateAdapter.getDateNames();this._weeks=[[]];for(var n=0,i=this._firstWeekOffset;n<e;n++,i++){7==i&&(this._weeks.push([]),i=0);var o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),n+1),r=this._shouldEnableDate(o),a=this._dateAdapter.format(o,this._dateFormats.display.dateA11yLabel),s=this.dateClass?this.dateClass(o,"month"):void 0;this._weeks[this._weeks.length-1].push(new po(n+1,t[n],a,r,s,this._getCellCompareValue(o),o))}},e.prototype._shouldEnableDate=function(e){return!!e&&(!this.minDate||this._dateAdapter.compareDate(e,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))},e.prototype._getDateInCurrentMonth=function(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null},e.prototype._hasSameMonthAndYear=function(e,t){return!(!e||!t||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(t)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(t))},e.prototype._getCellCompareValue=function(e){if(e){var t=this._dateAdapter.getYear(e),n=this._dateAdapter.getMonth(e),i=this._dateAdapter.getDate(e);return new Date(t,n,i).getTime()}return null},e.prototype._isRtl=function(){return this._dir&&"rtl"===this._dir.value},e.prototype._setRanges=function(e){e instanceof Qi?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[D.MAT_DATE_FORMATS]}]},{type:Ji,decorators:[{type:t.Optional}]},{type:ce.Directionality,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Inject,args:[fo]},{type:t.Optional}]}]},_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"activeDate",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"selected",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"minDate",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"maxDate",null),_e([t.Input(),Ce("design:type",Function)],e.prototype,"dateFilter",void 0),_e([t.Input(),Ce("design:type",Function)],e.prototype,"dateClass",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"comparisonStart",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"comparisonEnd",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectedChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"_userSelection",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"activeDateChange",void 0),_e([t.ViewChild(co,{static:!0}),Ce("design:type",co)],e.prototype,"_matCalendarBody",void 0),e=_e([t.Component({selector:"gipi-mat-month-view",template:'<table class="mat-calendar-table"\n role="presentation">\n <thead class="mat-calendar-table-header">\n <tr>\n <th scope="col"\n *ngFor="let day of _weekdays"\n [attr.aria-label]="day.long">\n {{ day.narrow }}\n </th>\n </tr>\n <tr>\n <th class="mat-calendar-table-header-divider"\n colspan="7"\n aria-hidden="true">\n </th>\n </tr>\n </thead>\n <tbody gipi-mat-calendar-body\n [label]="_monthLabel"\n [rows]="_weeks"\n [todayValue]="_todayDate!"\n [startValue]="_rangeStart!"\n [endValue]="_rangeEnd!"\n [comparisonStart]="_comparisonRangeStart"\n [comparisonEnd]="_comparisonRangeEnd"\n [previewStart]="_previewStart"\n [previewEnd]="_previewEnd"\n [isRange]="_isRange"\n [labelMinRequiredCells]="3"\n [activeCell]="_dateAdapter.getDate(activeDate) - 1"\n (selectedValueChange)="_dateSelected($event)"\n (previewChange)="_previewChanged($event)"\n (keydown)="_handleCalendarBodyKeydown($event)">\n </tbody>\n</table>',exportAs:"gipiMatMonthView",encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush}),we(1,t.Optional()),we(1,t.Inject(D.MAT_DATE_FORMATS)),we(2,t.Optional()),we(3,t.Optional()),we(4,t.Inject(fo)),we(4,t.Optional()),Ce("design:paramtypes",[t.ChangeDetectorRef,Object,Ji,ce.Directionality,Object])],e)}(),_o=function(){function e(e,n,i){if(this._changeDetectorRef=e,this._dateAdapter=n,this._dir=i,this._rerenderSubscription=ie.Subscription.EMPTY,this.selectedChange=new t.EventEmitter,this.yearSelected=new t.EventEmitter,this.activeDateChange=new t.EventEmitter,!this._dateAdapter)throw so("DateAdapter");this._activeDate=this._dateAdapter.today()}return Object.defineProperty(e.prototype,"activeDate",{get:function(){return this._activeDate},set:function(e){var t=this._activeDate,n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),wo(this._dateAdapter,t,this._activeDate,this.minDate,this.maxDate)||this._init()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(e){this._selected=e instanceof Qi?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minDate",{get:function(){return this._minDate},set:function(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxDate",{get:function(){return this._maxDate},set:function(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(oe.startWith(null)).subscribe((function(){return e._init()}))},e.prototype.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()},e.prototype._init=function(){var e=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var t=this._dateAdapter.getYear(this._activeDate)-Co(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var n=0,i=[];n<24;n++)i.push(t+n),4==i.length&&(this._years.push(i.map((function(t){return e._createCellForYear(t)}))),i=[]);this._changeDetectorRef.markForCheck()},e.prototype._yearSelected=function(e){var t=e.value;this.yearSelected.emit(this._dateAdapter.createDate(t,0,1));var n=this._dateAdapter.getMonth(this.activeDate),i=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,n,1));this.selectedChange.emit(this._dateAdapter.createDate(t,n,Math.min(this._dateAdapter.getDate(this.activeDate),i)))},e.prototype._handleCalendarBodyKeydown=function(e){var t=this._activeDate,n=this._isRtl();switch(e.keyCode){case se.LEFT_ARROW:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?1:-1);break;case se.RIGHT_ARROW:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?-1:1);break;case se.UP_ARROW:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case se.DOWN_ARROW:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case se.HOME:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Co(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case se.END:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Co(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case se.PAGE_UP:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case se.PAGE_DOWN:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case se.ENTER:case se.SPACE:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e});break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()},e.prototype._getActiveCell=function(){return Co(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)},e.prototype._focusActiveCell=function(){this._matCalendarBody._focusActiveCell()},e.prototype._createCellForYear=function(e){var t=this._dateAdapter.createDate(e,0,1),n=this._dateAdapter.getYearName(t),i=this.dateClass?this.dateClass(t,"multi-year"):void 0;return new po(e,n,n,this._shouldEnableYear(e),i)},e.prototype._shouldEnableYear=function(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(var t=this._dateAdapter.createDate(e,0,1);this._dateAdapter.getYear(t)==e;t=this._dateAdapter.addCalendarDays(t,1))if(this.dateFilter(t))return!0;return!1},e.prototype._isRtl=function(){return this._dir&&"rtl"===this._dir.value},e.prototype._setSelectedYear=function(e){if(this._selectedYear=null,e instanceof Qi){var t=e.start||e.end;t&&(this._selectedYear=this._dateAdapter.getYear(t))}else e&&(this._selectedYear=this._dateAdapter.getYear(e))},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:Ji,decorators:[{type:t.Optional}]},{type:ce.Directionality,decorators:[{type:t.Optional}]}]},_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"activeDate",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"selected",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"minDate",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"maxDate",null),_e([t.Input(),Ce("design:type",Function)],e.prototype,"dateFilter",void 0),_e([t.Input(),Ce("design:type",Function)],e.prototype,"dateClass",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectedChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"yearSelected",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"activeDateChange",void 0),_e([t.ViewChild(co,{static:!0}),Ce("design:type",co)],e.prototype,"_matCalendarBody",void 0),e=_e([t.Component({selector:"gipi-mat-multi-year-view",template:'<table class="mat-calendar-table"\n role="presentation">\n <thead class="mat-calendar-table-header">\n <tr>\n <th class="mat-calendar-table-header-divider"\n colspan="4">\n </th>\n </tr>\n </thead>\n <tbody gipi-mat-calendar-body\n [rows]="_years"\n [todayValue]="_todayYear"\n [startValue]="_selectedYear!"\n [endValue]="_selectedYear!"\n [numCols]="4"\n [cellAspectRatio]="4 / 7"\n [activeCell]="_getActiveCell()"\n (selectedValueChange)="_yearSelected($event)"\n (keydown)="_handleCalendarBodyKeydown($event)">\n </tbody>\n</table>',exportAs:"gipiMatMultiYearView",encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush}),we(1,t.Optional()),we(2,t.Optional()),Ce("design:paramtypes",[t.ChangeDetectorRef,Ji,ce.Directionality])],e)}();
|
37
|
+
*/var yo=new t.InjectionToken("MAT_DATE_RANGE_SELECTION_STRATEGY"),vo=function(){function e(e){this._dateAdapter=e}return e.prototype.selectionFinished=function(e,t){var n=t.start,i=t.end;return null==n?n=e:null==i&&e&&this._dateAdapter.compareDate(e,n)>=0?i=e:(n=e,i=null),new eo(n,i)},e.prototype.createPreview=function(e,t){var n=null,i=null;return t.start&&!t.end&&e&&(n=t.start,i=e),new eo(n,i)},e.ctorParameters=function(){return[{type:Qi}]},e=we([t.Injectable(),Ce("design:paramtypes",[Qi])],e)}();function bo(e,t){return e||new vo(t)}var _o={provide:yo,deps:[[new t.Optional,new t.SkipSelf,yo],Qi],useFactory:bo},wo=function(){function e(e,n,i,o,r){if(this._changeDetectorRef=e,this._dateFormats=n,this._dateAdapter=i,this._dir=o,this._rangeStrategy=r,this._rerenderSubscription=ie.Subscription.EMPTY,this.selectedChange=new t.EventEmitter,this._userSelection=new t.EventEmitter,this.activeDateChange=new t.EventEmitter,!this._dateAdapter)throw lo("DateAdapter");if(!this._dateFormats)throw lo("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}return Object.defineProperty(e.prototype,"activeDate",{get:function(){return this._activeDate},set:function(e){var t=this._activeDate,n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._hasSameMonthAndYear(t,this._activeDate)||this._init()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(e){this._selected=e instanceof eo?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minDate",{get:function(){return this._minDate},set:function(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxDate",{get:function(){return this._maxDate},set:function(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(oe.startWith(null)).subscribe((function(){return e._init()}))},e.prototype.ngOnChanges=function(e){var t=e.comparisonStart||e.comparisonEnd;t&&!t.firstChange&&this._setRanges(this.selected)},e.prototype.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()},e.prototype._dateSelected=function(e){var t,n,i=e.value,o=this._dateAdapter.getYear(this.activeDate),r=this._dateAdapter.getMonth(this.activeDate),a=this._dateAdapter.createDate(o,r,i);this._selected instanceof eo?(t=this._getDateInCurrentMonth(this._selected.start),n=this._getDateInCurrentMonth(this._selected.end)):t=n=this._getDateInCurrentMonth(this._selected),t===i&&n===i||this.selectedChange.emit(a),this._userSelection.emit({value:a,event:e.event})},e.prototype._handleCalendarBodyKeydown=function(e){var t=this._activeDate,n=this._isRtl();switch(e.keyCode){case se.LEFT_ARROW:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case se.RIGHT_ARROW:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case se.UP_ARROW:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case se.DOWN_ARROW:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case se.HOME:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case se.END:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case se.PAGE_UP:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case se.PAGE_DOWN:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case se.ENTER:case se.SPACE:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),e.preventDefault()));case se.ESCAPE:return void(null!=this._previewEnd&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e}),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()},e.prototype._init=function(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();var e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()},e.prototype._focusActiveCell=function(e){this._matCalendarBody._focusActiveCell(e)},e.prototype._previewChanged=function(e){var t=e.event,n=e.value;if(this._rangeStrategy){var i=n?n.rawValue:null,o=this._rangeStrategy.createPreview(i,this.selected,t);this._previewStart=this._getCellCompareValue(o.start),this._previewEnd=this._getCellCompareValue(o.end),this._changeDetectorRef.detectChanges()}},e.prototype._initWeekdays=function(){var e=this._dateAdapter.getFirstDayOfWeek(),t=this._dateAdapter.getDayOfWeekNames("narrow"),n=this._dateAdapter.getDayOfWeekNames("long").map((function(e,n){return{long:e,narrow:t[n]}}));this._weekdays=n.slice(e).concat(n.slice(0,e))},e.prototype._createWeekCells=function(){var e=this._dateAdapter.getNumDaysInMonth(this.activeDate),t=this._dateAdapter.getDateNames();this._weeks=[[]];for(var n=0,i=this._firstWeekOffset;n<e;n++,i++){7==i&&(this._weeks.push([]),i=0);var o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),n+1),r=this._shouldEnableDate(o),a=this._dateAdapter.format(o,this._dateFormats.display.dateA11yLabel),s=this.dateClass?this.dateClass(o,"month"):void 0;this._weeks[this._weeks.length-1].push(new co(n+1,t[n],a,r,s,this._getCellCompareValue(o),o))}},e.prototype._shouldEnableDate=function(e){return!!e&&(!this.minDate||this._dateAdapter.compareDate(e,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))},e.prototype._getDateInCurrentMonth=function(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null},e.prototype._hasSameMonthAndYear=function(e,t){return!(!e||!t||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(t)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(t))},e.prototype._getCellCompareValue=function(e){if(e){var t=this._dateAdapter.getYear(e),n=this._dateAdapter.getMonth(e),i=this._dateAdapter.getDate(e);return new Date(t,n,i).getTime()}return null},e.prototype._isRtl=function(){return this._dir&&"rtl"===this._dir.value},e.prototype._setRanges=function(e){e instanceof eo?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[D.MAT_DATE_FORMATS]}]},{type:Qi,decorators:[{type:t.Optional}]},{type:ce.Directionality,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Inject,args:[yo]},{type:t.Optional}]}]},we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"activeDate",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"selected",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"minDate",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"maxDate",null),we([t.Input(),Ce("design:type",Function)],e.prototype,"dateFilter",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"dateClass",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"comparisonStart",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"comparisonEnd",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectedChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"_userSelection",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"activeDateChange",void 0),we([t.ViewChild(uo,{static:!0}),Ce("design:type",uo)],e.prototype,"_matCalendarBody",void 0),e=we([t.Component({selector:"gipi-mat-month-view",template:'<table class="mat-calendar-table"\n role="presentation">\n <thead class="mat-calendar-table-header">\n <tr>\n <th scope="col"\n *ngFor="let day of _weekdays"\n [attr.aria-label]="day.long">\n {{ day.narrow }}\n </th>\n </tr>\n <tr>\n <th class="mat-calendar-table-header-divider"\n colspan="7"\n aria-hidden="true">\n </th>\n </tr>\n </thead>\n <tbody gipi-mat-calendar-body\n [label]="_monthLabel"\n [rows]="_weeks"\n [todayValue]="_todayDate!"\n [startValue]="_rangeStart!"\n [endValue]="_rangeEnd!"\n [comparisonStart]="_comparisonRangeStart"\n [comparisonEnd]="_comparisonRangeEnd"\n [previewStart]="_previewStart"\n [previewEnd]="_previewEnd"\n [isRange]="_isRange"\n [labelMinRequiredCells]="3"\n [activeCell]="_dateAdapter.getDate(activeDate) - 1"\n (selectedValueChange)="_dateSelected($event)"\n (previewChange)="_previewChanged($event)"\n (keydown)="_handleCalendarBodyKeydown($event)">\n </tbody>\n</table>',exportAs:"gipiMatMonthView",encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush}),xe(1,t.Optional()),xe(1,t.Inject(D.MAT_DATE_FORMATS)),xe(2,t.Optional()),xe(3,t.Optional()),xe(4,t.Inject(yo)),xe(4,t.Optional()),Ce("design:paramtypes",[t.ChangeDetectorRef,Object,Qi,ce.Directionality,Object])],e)}(),xo=function(){function e(e,n,i){if(this._changeDetectorRef=e,this._dateAdapter=n,this._dir=i,this._rerenderSubscription=ie.Subscription.EMPTY,this.selectedChange=new t.EventEmitter,this.yearSelected=new t.EventEmitter,this.activeDateChange=new t.EventEmitter,!this._dateAdapter)throw lo("DateAdapter");this._activeDate=this._dateAdapter.today()}return Object.defineProperty(e.prototype,"activeDate",{get:function(){return this._activeDate},set:function(e){var t=this._activeDate,n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),Co(this._dateAdapter,t,this._activeDate,this.minDate,this.maxDate)||this._init()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(e){this._selected=e instanceof eo?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minDate",{get:function(){return this._minDate},set:function(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxDate",{get:function(){return this._maxDate},set:function(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(oe.startWith(null)).subscribe((function(){return e._init()}))},e.prototype.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()},e.prototype._init=function(){var e=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var t=this._dateAdapter.getYear(this._activeDate)-Io(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var n=0,i=[];n<24;n++)i.push(t+n),4==i.length&&(this._years.push(i.map((function(t){return e._createCellForYear(t)}))),i=[]);this._changeDetectorRef.markForCheck()},e.prototype._yearSelected=function(e){var t=e.value;this.yearSelected.emit(this._dateAdapter.createDate(t,0,1));var n=this._dateAdapter.getMonth(this.activeDate),i=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,n,1));this.selectedChange.emit(this._dateAdapter.createDate(t,n,Math.min(this._dateAdapter.getDate(this.activeDate),i)))},e.prototype._handleCalendarBodyKeydown=function(e){var t=this._activeDate,n=this._isRtl();switch(e.keyCode){case se.LEFT_ARROW:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?1:-1);break;case se.RIGHT_ARROW:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?-1:1);break;case se.UP_ARROW:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case se.DOWN_ARROW:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case se.HOME:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Io(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case se.END:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-Io(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case se.PAGE_UP:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case se.PAGE_DOWN:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case se.ENTER:case se.SPACE:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e});break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()},e.prototype._getActiveCell=function(){return Io(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)},e.prototype._focusActiveCell=function(){this._matCalendarBody._focusActiveCell()},e.prototype._createCellForYear=function(e){var t=this._dateAdapter.createDate(e,0,1),n=this._dateAdapter.getYearName(t),i=this.dateClass?this.dateClass(t,"multi-year"):void 0;return new co(e,n,n,this._shouldEnableYear(e),i)},e.prototype._shouldEnableYear=function(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(var t=this._dateAdapter.createDate(e,0,1);this._dateAdapter.getYear(t)==e;t=this._dateAdapter.addCalendarDays(t,1))if(this.dateFilter(t))return!0;return!1},e.prototype._isRtl=function(){return this._dir&&"rtl"===this._dir.value},e.prototype._setSelectedYear=function(e){if(this._selectedYear=null,e instanceof eo){var t=e.start||e.end;t&&(this._selectedYear=this._dateAdapter.getYear(t))}else e&&(this._selectedYear=this._dateAdapter.getYear(e))},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:Qi,decorators:[{type:t.Optional}]},{type:ce.Directionality,decorators:[{type:t.Optional}]}]},we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"activeDate",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"selected",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"minDate",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"maxDate",null),we([t.Input(),Ce("design:type",Function)],e.prototype,"dateFilter",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"dateClass",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectedChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"yearSelected",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"activeDateChange",void 0),we([t.ViewChild(uo,{static:!0}),Ce("design:type",uo)],e.prototype,"_matCalendarBody",void 0),e=we([t.Component({selector:"gipi-mat-multi-year-view",template:'<table class="mat-calendar-table"\n role="presentation">\n <thead class="mat-calendar-table-header">\n <tr>\n <th class="mat-calendar-table-header-divider"\n colspan="4">\n </th>\n </tr>\n </thead>\n <tbody gipi-mat-calendar-body\n [rows]="_years"\n [todayValue]="_todayYear"\n [startValue]="_selectedYear!"\n [endValue]="_selectedYear!"\n [numCols]="4"\n [cellAspectRatio]="4 / 7"\n [activeCell]="_getActiveCell()"\n (selectedValueChange)="_yearSelected($event)"\n (keydown)="_handleCalendarBodyKeydown($event)">\n </tbody>\n</table>',exportAs:"gipiMatMultiYearView",encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush}),xe(1,t.Optional()),xe(2,t.Optional()),Ce("design:paramtypes",[t.ChangeDetectorRef,Qi,ce.Directionality])],e)}();
|
38
38
|
/**
|
39
39
|
* @license
|
40
40
|
* Copyright Google LLC All Rights Reserved.
|
41
41
|
*
|
42
42
|
* Use of this source code is governed by an MIT-style license that can be
|
43
43
|
* found in the LICENSE file at https://angular.io/license
|
44
|
-
*/function
|
44
|
+
*/function Co(e,t,n,i,o){var r=e.getYear(t),a=e.getYear(n),s=So(e,i,o);return Math.floor((r-s)/24)===Math.floor((a-s)/24)}function Io(e,t,n,i){var o,r=e.getYear(t);return((r-So(e,n,i))%(o=24)+o)%o}function So(e,t,n){var i=0;n?i=e.getYear(n)-24+1:t&&(i=e.getYear(t));return i}
|
45
45
|
/**
|
46
46
|
* @license
|
47
47
|
* Copyright Google LLC All Rights Reserved.
|
@@ -49,19 +49,19 @@ var ve=function(e,t){return(ve=Object.setPrototypeOf||{__proto__:[]}instanceof A
|
|
49
49
|
* Use of this source code is governed by an MIT-style license that can be
|
50
50
|
* found in the LICENSE file at https://angular.io/license
|
51
51
|
*/
|
52
|
-
var So=function(){function e(e,n,i,o){if(this._changeDetectorRef=e,this._dateFormats=n,this._dateAdapter=i,this._dir=o,this._rerenderSubscription=ie.Subscription.EMPTY,this.selectedChange=new t.EventEmitter,this.monthSelected=new t.EventEmitter,this.activeDateChange=new t.EventEmitter,!this._dateAdapter)throw so("DateAdapter");if(!this._dateFormats)throw so("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}return Object.defineProperty(e.prototype,"activeDate",{get:function(){return this._activeDate},set:function(e){var t=this._activeDate,n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._dateAdapter.getYear(t)!==this._dateAdapter.getYear(this._activeDate)&&this._init()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(e){this._selected=e instanceof Qi?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minDate",{get:function(){return this._minDate},set:function(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxDate",{get:function(){return this._maxDate},set:function(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(oe.startWith(null)).subscribe((function(){return e._init()}))},e.prototype.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()},e.prototype._monthSelected=function(e){var t=e.value,n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1);this.monthSelected.emit(n);var i=this._dateAdapter.getNumDaysInMonth(n);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,Math.min(this._dateAdapter.getDate(this.activeDate),i)))},e.prototype._handleCalendarBodyKeydown=function(e){var t=this._activeDate,n=this._isRtl();switch(e.keyCode){case se.LEFT_ARROW:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?1:-1);break;case se.RIGHT_ARROW:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?-1:1);break;case se.UP_ARROW:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case se.DOWN_ARROW:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case se.HOME:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case se.END:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case se.PAGE_UP:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case se.PAGE_DOWN:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case se.ENTER:case se.SPACE:this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e});break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()},e.prototype._init=function(){var e=this;this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);var t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map((function(n){return n.map((function(n){return e._createCellForMonth(n,t[n])}))})),this._changeDetectorRef.markForCheck()},e.prototype._focusActiveCell=function(){this._matCalendarBody._focusActiveCell()},e.prototype._getMonthInCurrentYear=function(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null},e.prototype._createCellForMonth=function(e,t){var n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),i=this._dateAdapter.format(n,this._dateFormats.display.monthYearA11yLabel),o=this.dateClass?this.dateClass(n,"year"):void 0;return new po(e,t.toLocaleUpperCase(),i,this._shouldEnableMonth(e),o)},e.prototype._shouldEnableMonth=function(e){var t=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(t,e)||this._isYearAndMonthBeforeMinDate(t,e))return!1;if(!this.dateFilter)return!0;for(var n=this._dateAdapter.createDate(t,e,1);this._dateAdapter.getMonth(n)==e;n=this._dateAdapter.addCalendarDays(n,1))if(this.dateFilter(n))return!0;return!1},e.prototype._isYearAndMonthAfterMaxDate=function(e,t){if(this.maxDate){var n=this._dateAdapter.getYear(this.maxDate),i=this._dateAdapter.getMonth(this.maxDate);return e>n||e===n&&t>i}return!1},e.prototype._isYearAndMonthBeforeMinDate=function(e,t){if(this.minDate){var n=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return e<n||e===n&&t<i}return!1},e.prototype._isRtl=function(){return this._dir&&"rtl"===this._dir.value},e.prototype._setSelectedMonth=function(e){this._selectedMonth=e instanceof Qi?this._getMonthInCurrentYear(e.start)||this._getMonthInCurrentYear(e.end):this._getMonthInCurrentYear(e)},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[D.MAT_DATE_FORMATS]}]},{type:Ji,decorators:[{type:t.Optional}]},{type:ce.Directionality,decorators:[{type:t.Optional}]}]},_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"activeDate",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"selected",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"minDate",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"maxDate",null),_e([t.Input(),Ce("design:type",Function)],e.prototype,"dateFilter",void 0),_e([t.Input(),Ce("design:type",Function)],e.prototype,"dateClass",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectedChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"monthSelected",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"activeDateChange",void 0),_e([t.ViewChild(co,{static:!0}),Ce("design:type",co)],e.prototype,"_matCalendarBody",void 0),e=_e([t.Component({selector:"gipi-mat-year-view",template:'<table class="mat-calendar-table"\n role="presentation">\n <thead class="mat-calendar-table-header">\n <tr>\n <th class="mat-calendar-table-header-divider"\n colspan="4">\n </th>\n </tr>\n </thead>\n <tbody gipi-mat-calendar-body\n [label]="_yearLabel"\n [rows]="_months"\n [todayValue]="_todayMonth!"\n [startValue]="_selectedMonth!"\n [endValue]="_selectedMonth!"\n [labelMinRequiredCells]="2"\n [numCols]="4"\n [cellAspectRatio]="4 / 7"\n [activeCell]="_dateAdapter.getMonth(activeDate)"\n (selectedValueChange)="_monthSelected($event)"\n (keydown)="_handleCalendarBodyKeydown($event)">\n </tbody>\n</table>',exportAs:"gipiMatYearView",encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush}),we(1,t.Optional()),we(1,t.Inject(D.MAT_DATE_FORMATS)),we(2,t.Optional()),we(3,t.Optional()),Ce("design:paramtypes",[t.ChangeDetectorRef,Object,Ji,ce.Directionality])],e)}(),Eo=function(){function e(e,n,i,o){var r=this;if(this._dateAdapter=n,this._dateFormats=i,this._changeDetectorRef=o,this.matCalendarRef=this,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new t.EventEmitter,this.yearSelected=new t.EventEmitter,this.monthSelected=new t.EventEmitter,this._userSelection=new t.EventEmitter,this.stateChanges=new ie.Subject,!this._dateAdapter)throw so("DateAdapter");if(!this._dateFormats)throw so("MAT_DATE_FORMATS");this._intlChanges=e.changes.subscribe((function(){o.markForCheck(),r.stateChanges.next()}))}return Object.defineProperty(e.prototype,"startAt",{get:function(){return this._startAt},set:function(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(e){this._selected=e instanceof Qi?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minDate",{get:function(){return this._minDate},set:function(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxDate",{get:function(){return this._maxDate},set:function(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeDate",{get:function(){return this._clampedActiveDate},set:function(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentView",{get:function(){return this._currentView},set:function(e){this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck()},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView},e.prototype.ngAfterViewChecked=function(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())},e.prototype.ngOnDestroy=function(){this._intlChanges.unsubscribe(),this.stateChanges.complete()},e.prototype.ngOnChanges=function(e){var t=e.minDate||e.maxDate||e.dateFilter;if(t&&!t.firstChange){var n=this._getCurrentViewComponent();n&&(this._changeDetectorRef.detectChanges(),n._init())}this.stateChanges.next()},e.prototype.focusActiveCell=function(){this._getCurrentViewComponent()._focusActiveCell(!1)},e.prototype.updateTodaysDate=function(){var e=this.currentView;("month"===e?this.monthView:"year"===e?this.yearView:this.multiYearView)._init()},e.prototype._dateSelected=function(e){var t=e.value;(this.selected instanceof Qi||t&&!this._dateAdapter.sameDate(t,this.selected))&&this.selectedChange.emit(t),this._userSelection.emit(e)},e.prototype._yearSelectedInMultiYearView=function(e){this.yearSelected.emit(e)},e.prototype._monthSelectedInYearView=function(e){this.monthSelected.emit(e)},e.prototype._goToDateInView=function(e,t){this.activeDate=e,this.currentView=t},e.prototype._getCurrentViewComponent=function(){return this.monthView||this.yearView||this.multiYearView},e.ctorParameters=function(){return[{type:lo},{type:Ji,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[Re]}]},{type:t.ChangeDetectorRef}]},_e([t.Input(),Ce("design:type",t.TemplateRef)],e.prototype,"templatePresetRange",void 0),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"startAt",null),_e([t.Input(),Ce("design:type",String)],e.prototype,"startView",void 0),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"selected",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"minDate",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"maxDate",null),_e([t.Input(),Ce("design:type",Function)],e.prototype,"dateFilter",void 0),_e([t.Input(),Ce("design:type",Function)],e.prototype,"dateClass",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"comparisonStart",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"comparisonEnd",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectedChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"yearSelected",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"monthSelected",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"_userSelection",void 0),_e([t.ViewChild(xo,{static:!1}),Ce("design:type",xo)],e.prototype,"monthView",void 0),_e([t.ViewChild(So,{static:!1}),Ce("design:type",So)],e.prototype,"yearView",void 0),_e([t.ViewChild(_o,{static:!1}),Ce("design:type",_o)],e.prototype,"multiYearView",void 0),e=_e([t.Component({selector:"gipi-mat-calendar",template:'<div class="gipi-mat-calendar-wrapper">\n <ng-container *ngIf="templatePresetRange"\n [ngTemplateOutlet]="templatePresetRange"\n [ngTemplateOutletContext]="{$implicit: matCalendarRef}">\n </ng-container>\n\n <div class="gipi-mat-calendar-content">\n \x3c!-- <ng-template [cdkPortalOutlet]="_calendarHeaderPortal"> </ng-template> --\x3e\n <gipi-mat-calendar-header [matCalendar]="matCalendarRef"> </gipi-mat-calendar-header>\n\n <div class="mat-calendar-content"\n [ngSwitch]="currentView"\n cdkMonitorSubtreeFocus\n tabindex="-1">\n <gipi-mat-month-view *ngSwitchCase="\'month\'"\n [(activeDate)]="activeDate"\n [selected]="selected"\n [dateFilter]="dateFilter"\n [maxDate]="maxDate"\n [minDate]="minDate"\n [dateClass]="dateClass"\n [comparisonStart]="comparisonStart"\n [comparisonEnd]="comparisonEnd"\n (_userSelection)="_dateSelected($event)">\n </gipi-mat-month-view>\n\n <gipi-mat-year-view *ngSwitchCase="\'year\'"\n [(activeDate)]="activeDate"\n [selected]="selected"\n [dateFilter]="dateFilter"\n [maxDate]="maxDate"\n [minDate]="minDate"\n [dateClass]="dateClass"\n (monthSelected)="_monthSelectedInYearView($event)"\n (selectedChange)="_goToDateInView($event, \'month\')">\n </gipi-mat-year-view>\n\n <gipi-mat-multi-year-view *ngSwitchCase="\'multi-year\'"\n [(activeDate)]="activeDate"\n [selected]="selected"\n [dateFilter]="dateFilter"\n [maxDate]="maxDate"\n [minDate]="minDate"\n [dateClass]="dateClass"\n (yearSelected)="_yearSelectedInMultiYearView($event)"\n (selectedChange)="_goToDateInView($event, \'year\')">\n </gipi-mat-multi-year-view>\n </div>\n </div>\n</div>',host:{class:"mat-calendar"},exportAs:"gipiMatCalendar",encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush,providers:[oo],styles:[".mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0}.mat-calendar-content{padding:0 8px 8px;outline:0}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-next-button,.mat-calendar-previous-button{position:relative}.mat-calendar-next-button::after,.mat-calendar-previous-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:'';margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-next-button,[dir=rtl] .mat-calendar-previous-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:'';position:absolute;top:0;left:-8px;right:-8px;height:1px}.gipi-mat-calendar-wrapper{display:flex;flex-direction:row}"]}),we(1,t.Optional()),we(2,t.Optional()),we(2,t.Inject(Re)),Ce("design:paramtypes",[lo,Ji,Object,t.ChangeDetectorRef])],e)}(),Oo=function(){function e(e,t,n,i){this._intl=e,this._dateAdapter=t,this._dateFormats=n,this._changeDetectorRef=i}return e.prototype.ngAfterViewInit=function(){var e=this;this.matCalendar.stateChanges.subscribe((function(){return e._changeDetectorRef.markForCheck()}))},Object.defineProperty(e.prototype,"periodButtonText",{get:function(){if("month"==this.matCalendar.currentView)return this._dateAdapter.format(this.matCalendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.matCalendar.currentView)return this._dateAdapter.getYearName(this.matCalendar.activeDate);var e=this._dateAdapter.getYear(this.matCalendar.activeDate)-Co(this._dateAdapter,this.matCalendar.activeDate,this.matCalendar.minDate,this.matCalendar.maxDate),t=e+24-1,n=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1)),i=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return this._intl.formatYearRange(n,i)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"periodButtonLabel",{get:function(){return"month"==this.matCalendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"prevButtonLabel",{get:function(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.matCalendar.currentView]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextButtonLabel",{get:function(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.matCalendar.currentView]},enumerable:!1,configurable:!0}),e.prototype.currentPeriodClicked=function(){this.matCalendar.currentView="month"==this.matCalendar.currentView?"multi-year":"month"},e.prototype.previousClicked=function(){this.matCalendar.activeDate="month"==this.matCalendar.currentView?this._dateAdapter.addCalendarMonths(this.matCalendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.matCalendar.activeDate,"year"==this.matCalendar.currentView?-1:-24)},e.prototype.nextClicked=function(){this.matCalendar.activeDate="month"==this.matCalendar.currentView?this._dateAdapter.addCalendarMonths(this.matCalendar.activeDate,1):this._dateAdapter.addCalendarYears(this.matCalendar.activeDate,"year"==this.matCalendar.currentView?1:24)},e.prototype.previousEnabled=function(){return!this.matCalendar.minDate||(!this.matCalendar.minDate||!this._isSameView(this.matCalendar.activeDate,this.matCalendar.minDate))},e.prototype.nextEnabled=function(){return!this.matCalendar.maxDate||!this._isSameView(this.matCalendar.activeDate,this.matCalendar.maxDate)},e.prototype._isSameView=function(e,t){return"month"==this.matCalendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(t):"year"==this.matCalendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t):wo(this._dateAdapter,e,t,this.matCalendar.minDate,this.matCalendar.maxDate)},e.ctorParameters=function(){return[{type:lo},{type:Ji,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[Re]}]},{type:t.ChangeDetectorRef}]},_e([t.Input(),Ce("design:type",Eo)],e.prototype,"matCalendar",void 0),e=_e([t.Component({selector:"gipi-mat-calendar-header",template:'<div class="mat-calendar-header">\n <div class="mat-calendar-controls">\n <button mat-button\n type="button"\n class="mat-calendar-period-button"\n (click)="currentPeriodClicked()"\n [attr.aria-label]="periodButtonLabel"\n cdkAriaLive="polite">\n {{ periodButtonText }}\n <div class="mat-calendar-arrow"\n [class.mat-calendar-invert]="matCalendar.currentView != \'month\'">\n </div>\n </button>\n\n <div class="mat-calendar-spacer"> </div>\n\n <ng-content> </ng-content>\n\n <button mat-icon-button\n type="button"\n class="mat-calendar-previous-button"\n [disabled]="!previousEnabled()"\n (click)="previousClicked()"\n [attr.aria-label]="prevButtonLabel">\n </button>\n\n <button mat-icon-button\n type="button"\n class="mat-calendar-next-button"\n [disabled]="!nextEnabled()"\n (click)="nextClicked()"\n [attr.aria-label]="nextButtonLabel">\n </button>\n </div>\n</div>',exportAs:"gipiMatCalendarHeader",encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush}),we(1,t.Optional()),we(2,t.Optional()),we(2,t.Inject(Re)),Ce("design:paramtypes",[lo,Ji,Object,t.ChangeDetectorRef])],e)}(),ko=function(e,t){this.target=e,this.targetElement=t,this.value=this.target.value},Do=function(){function e(e,n,i){var o=this;if(this._elementRef=e,this._dateAdapter=n,this._dateFormats=i,this.dateChange=new t.EventEmitter,this.dateInput=new t.EventEmitter,this._valueChange=new t.EventEmitter,this.stateChanges=new ie.Subject,this._onTouched=function(){},this._validatorOnChange=function(){},this._cvaOnChange=function(){},this._valueChangesSubscription=ie.Subscription.EMPTY,this._localeSubscription=ie.Subscription.EMPTY,this._parseValidator=function(){return o._lastValueValid?null:{matDatepickerParse:{text:o._elementRef.nativeElement.value}}},this._filterValidator=function(e){var t=o._dateAdapter.getValidDateOrNull(o._dateAdapter.deserialize(e.value)),n=o._getDateFilter();return n&&t&&!n(t)?{matDatepickerFilter:!0}:null},this._minValidator=function(e){var t=o._dateAdapter.getValidDateOrNull(o._dateAdapter.deserialize(e.value)),n=o._getMinDate();return!n||!t||o._dateAdapter.compareDate(n,t)<=0?null:{matDatepickerMin:{min:n,actual:t}}},this._maxValidator=function(e){var t=o._dateAdapter.getValidDateOrNull(o._dateAdapter.deserialize(e.value)),n=o._getMaxDate();return!n||!t||o._dateAdapter.compareDate(n,t)>=0?null:{matDatepickerMax:{max:n,actual:t}}},this._lastValueValid=!1,!this._dateAdapter)throw so("DateAdapter");if(!this._dateFormats)throw so("MAT_DATE_FORMATS");this._localeSubscription=n.localeChanges.subscribe((function(){o.value=o.value}))}return Object.defineProperty(e.prototype,"value",{get:function(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue},set:function(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e);var t=this.value;this._assignValue(e),this._formatValue(e),this._dateAdapter.sameDate(t,e)||this._valueChange.emit(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return!!this._disabled||this._parentDisabled()},set:function(e){var t=le.coerceBooleanProperty(e),n=this._elementRef.nativeElement;this._disabled!==t&&(this._disabled=t,this.stateChanges.next(void 0)),t&&this._isInitialized&&n.blur&&n.blur()},enumerable:!1,configurable:!0}),e.prototype._getValidators=function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]},e.prototype._registerModel=function(e){var t=this;this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe((function(e){if(e.source!==t){var n=t._getValueFromModel(e.selection);t._lastValueValid=t._isValidValue(n),t._cvaOnChange(n),t._onTouched(),t._formatValue(n),t._canEmitChangeEvent(e)&&(t.dateInput.emit(new ko(t,t._elementRef.nativeElement)),t.dateChange.emit(new ko(t,t._elementRef.nativeElement))),t._outsideValueChanged&&t._outsideValueChanged()}}))},e.prototype.ngAfterViewInit=function(){this._isInitialized=!0},e.prototype.ngOnChanges=function(e){Po(e,this._dateAdapter)&&this.stateChanges.next(void 0)},e.prototype.ngOnDestroy=function(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this.stateChanges.complete()},e.prototype.registerOnValidatorChange=function(e){this._validatorOnChange=e},e.prototype.validate=function(e){return this._validator?this._validator(e):null},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this._cvaOnChange=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype._onKeydown=function(e){e.altKey&&e.keyCode===se.DOWN_ARROW&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())},e.prototype._onInput=function(e){var t=this._lastValueValid,n=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(n),n=this._dateAdapter.getValidDateOrNull(n),this._dateAdapter.sameDate(n,this.value)?(e&&!this.value&&this._cvaOnChange(n),t!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(n),this._cvaOnChange(n),this._valueChange.emit(n),this.dateInput.emit(new ko(this,this._elementRef.nativeElement)))},e.prototype._onChange=function(){this.dateChange.emit(new ko(this,this._elementRef.nativeElement))},e.prototype._onBlur=function(){this.value&&this._formatValue(this.value),this._onTouched()},e.prototype._formatValue=function(e){this._elementRef.nativeElement.value=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""},e.prototype._assignValue=function(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e},e.prototype._isValidValue=function(e){return!e||this._dateAdapter.isValid(e)},e.prototype._parentDisabled=function(){return!1},_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"value",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disabled",null),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"dateChange",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"dateInput",void 0),e=_e([we(1,t.Optional()),we(2,t.Optional()),we(2,t.Inject(Re)),Ce("design:paramtypes",[t.ElementRef,Ji,Object])],e)}();
|
52
|
+
var ko=function(){function e(e,n,i,o){if(this._changeDetectorRef=e,this._dateFormats=n,this._dateAdapter=i,this._dir=o,this._rerenderSubscription=ie.Subscription.EMPTY,this.selectedChange=new t.EventEmitter,this.monthSelected=new t.EventEmitter,this.activeDateChange=new t.EventEmitter,!this._dateAdapter)throw lo("DateAdapter");if(!this._dateFormats)throw lo("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}return Object.defineProperty(e.prototype,"activeDate",{get:function(){return this._activeDate},set:function(e){var t=this._activeDate,n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._dateAdapter.getYear(t)!==this._dateAdapter.getYear(this._activeDate)&&this._init()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(e){this._selected=e instanceof eo?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minDate",{get:function(){return this._minDate},set:function(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxDate",{get:function(){return this._maxDate},set:function(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){var e=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(oe.startWith(null)).subscribe((function(){return e._init()}))},e.prototype.ngOnDestroy=function(){this._rerenderSubscription.unsubscribe()},e.prototype._monthSelected=function(e){var t=e.value,n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1);this.monthSelected.emit(n);var i=this._dateAdapter.getNumDaysInMonth(n);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,Math.min(this._dateAdapter.getDate(this.activeDate),i)))},e.prototype._handleCalendarBodyKeydown=function(e){var t=this._activeDate,n=this._isRtl();switch(e.keyCode){case se.LEFT_ARROW:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?1:-1);break;case se.RIGHT_ARROW:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?-1:1);break;case se.UP_ARROW:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case se.DOWN_ARROW:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case se.HOME:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case se.END:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case se.PAGE_UP:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case se.PAGE_DOWN:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case se.ENTER:case se.SPACE:this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e});break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),e.preventDefault()},e.prototype._init=function(){var e=this;this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);var t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map((function(n){return n.map((function(n){return e._createCellForMonth(n,t[n])}))})),this._changeDetectorRef.markForCheck()},e.prototype._focusActiveCell=function(){this._matCalendarBody._focusActiveCell()},e.prototype._getMonthInCurrentYear=function(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null},e.prototype._createCellForMonth=function(e,t){var n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),i=this._dateAdapter.format(n,this._dateFormats.display.monthYearA11yLabel),o=this.dateClass?this.dateClass(n,"year"):void 0;return new co(e,t.toLocaleUpperCase(),i,this._shouldEnableMonth(e),o)},e.prototype._shouldEnableMonth=function(e){var t=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(t,e)||this._isYearAndMonthBeforeMinDate(t,e))return!1;if(!this.dateFilter)return!0;for(var n=this._dateAdapter.createDate(t,e,1);this._dateAdapter.getMonth(n)==e;n=this._dateAdapter.addCalendarDays(n,1))if(this.dateFilter(n))return!0;return!1},e.prototype._isYearAndMonthAfterMaxDate=function(e,t){if(this.maxDate){var n=this._dateAdapter.getYear(this.maxDate),i=this._dateAdapter.getMonth(this.maxDate);return e>n||e===n&&t>i}return!1},e.prototype._isYearAndMonthBeforeMinDate=function(e,t){if(this.minDate){var n=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return e<n||e===n&&t<i}return!1},e.prototype._isRtl=function(){return this._dir&&"rtl"===this._dir.value},e.prototype._setSelectedMonth=function(e){this._selectedMonth=e instanceof eo?this._getMonthInCurrentYear(e.start)||this._getMonthInCurrentYear(e.end):this._getMonthInCurrentYear(e)},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[D.MAT_DATE_FORMATS]}]},{type:Qi,decorators:[{type:t.Optional}]},{type:ce.Directionality,decorators:[{type:t.Optional}]}]},we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"activeDate",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"selected",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"minDate",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"maxDate",null),we([t.Input(),Ce("design:type",Function)],e.prototype,"dateFilter",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"dateClass",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectedChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"monthSelected",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"activeDateChange",void 0),we([t.ViewChild(uo,{static:!0}),Ce("design:type",uo)],e.prototype,"_matCalendarBody",void 0),e=we([t.Component({selector:"gipi-mat-year-view",template:'<table class="mat-calendar-table"\n role="presentation">\n <thead class="mat-calendar-table-header">\n <tr>\n <th class="mat-calendar-table-header-divider"\n colspan="4">\n </th>\n </tr>\n </thead>\n <tbody gipi-mat-calendar-body\n [label]="_yearLabel"\n [rows]="_months"\n [todayValue]="_todayMonth!"\n [startValue]="_selectedMonth!"\n [endValue]="_selectedMonth!"\n [labelMinRequiredCells]="2"\n [numCols]="4"\n [cellAspectRatio]="4 / 7"\n [activeCell]="_dateAdapter.getMonth(activeDate)"\n (selectedValueChange)="_monthSelected($event)"\n (keydown)="_handleCalendarBodyKeydown($event)">\n </tbody>\n</table>',exportAs:"gipiMatYearView",encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush}),xe(1,t.Optional()),xe(1,t.Inject(D.MAT_DATE_FORMATS)),xe(2,t.Optional()),xe(3,t.Optional()),Ce("design:paramtypes",[t.ChangeDetectorRef,Object,Qi,ce.Directionality])],e)}(),Oo=function(){function e(e,n,i,o){var r=this;if(this._dateAdapter=n,this._dateFormats=i,this._changeDetectorRef=o,this.matCalendarRef=this,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new t.EventEmitter,this.yearSelected=new t.EventEmitter,this.monthSelected=new t.EventEmitter,this._userSelection=new t.EventEmitter,this.stateChanges=new ie.Subject,!this._dateAdapter)throw lo("DateAdapter");if(!this._dateFormats)throw lo("MAT_DATE_FORMATS");this._intlChanges=e.changes.subscribe((function(){o.markForCheck(),r.stateChanges.next()}))}return Object.defineProperty(e.prototype,"startAt",{get:function(){return this._startAt},set:function(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(e){this._selected=e instanceof eo?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minDate",{get:function(){return this._minDate},set:function(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxDate",{get:function(){return this._maxDate},set:function(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeDate",{get:function(){return this._clampedActiveDate},set:function(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentView",{get:function(){return this._currentView},set:function(e){this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck()},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView},e.prototype.ngAfterViewChecked=function(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())},e.prototype.ngOnDestroy=function(){this._intlChanges.unsubscribe(),this.stateChanges.complete()},e.prototype.ngOnChanges=function(e){var t=e.minDate||e.maxDate||e.dateFilter;if(t&&!t.firstChange){var n=this._getCurrentViewComponent();n&&(this._changeDetectorRef.detectChanges(),n._init())}this.stateChanges.next()},e.prototype.focusActiveCell=function(){this._getCurrentViewComponent()._focusActiveCell(!1)},e.prototype.updateTodaysDate=function(){var e=this.currentView;("month"===e?this.monthView:"year"===e?this.yearView:this.multiYearView)._init()},e.prototype._dateSelected=function(e){var t=e.value;(this.selected instanceof eo||t&&!this._dateAdapter.sameDate(t,this.selected))&&this.selectedChange.emit(t),this._userSelection.emit(e)},e.prototype._yearSelectedInMultiYearView=function(e){this.yearSelected.emit(e)},e.prototype._monthSelectedInYearView=function(e){this.monthSelected.emit(e)},e.prototype._goToDateInView=function(e,t){this.activeDate=e,this.currentView=t},e.prototype._getCurrentViewComponent=function(){return this.monthView||this.yearView||this.multiYearView},e.ctorParameters=function(){return[{type:po},{type:Qi,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[Me]}]},{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",t.TemplateRef)],e.prototype,"templatePresetRange",void 0),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"startAt",null),we([t.Input(),Ce("design:type",String)],e.prototype,"startView",void 0),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"selected",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"minDate",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"maxDate",null),we([t.Input(),Ce("design:type",Function)],e.prototype,"dateFilter",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"dateClass",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"comparisonStart",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"comparisonEnd",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"selectedChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"yearSelected",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"monthSelected",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"_userSelection",void 0),we([t.ViewChild(wo,{static:!1}),Ce("design:type",wo)],e.prototype,"monthView",void 0),we([t.ViewChild(ko,{static:!1}),Ce("design:type",ko)],e.prototype,"yearView",void 0),we([t.ViewChild(xo,{static:!1}),Ce("design:type",xo)],e.prototype,"multiYearView",void 0),e=we([t.Component({selector:"gipi-mat-calendar",template:'<div class="gipi-mat-calendar-wrapper">\n <ng-container *ngIf="templatePresetRange"\n [ngTemplateOutlet]="templatePresetRange"\n [ngTemplateOutletContext]="{$implicit: matCalendarRef}">\n </ng-container>\n\n <div class="gipi-mat-calendar-content">\n \x3c!-- <ng-template [cdkPortalOutlet]="_calendarHeaderPortal"> </ng-template> --\x3e\n <gipi-mat-calendar-header [matCalendar]="matCalendarRef"> </gipi-mat-calendar-header>\n\n <div class="mat-calendar-content"\n [ngSwitch]="currentView"\n cdkMonitorSubtreeFocus\n tabindex="-1">\n <gipi-mat-month-view *ngSwitchCase="\'month\'"\n [(activeDate)]="activeDate"\n [selected]="selected"\n [dateFilter]="dateFilter"\n [maxDate]="maxDate"\n [minDate]="minDate"\n [dateClass]="dateClass"\n [comparisonStart]="comparisonStart"\n [comparisonEnd]="comparisonEnd"\n (_userSelection)="_dateSelected($event)">\n </gipi-mat-month-view>\n\n <gipi-mat-year-view *ngSwitchCase="\'year\'"\n [(activeDate)]="activeDate"\n [selected]="selected"\n [dateFilter]="dateFilter"\n [maxDate]="maxDate"\n [minDate]="minDate"\n [dateClass]="dateClass"\n (monthSelected)="_monthSelectedInYearView($event)"\n (selectedChange)="_goToDateInView($event, \'month\')">\n </gipi-mat-year-view>\n\n <gipi-mat-multi-year-view *ngSwitchCase="\'multi-year\'"\n [(activeDate)]="activeDate"\n [selected]="selected"\n [dateFilter]="dateFilter"\n [maxDate]="maxDate"\n [minDate]="minDate"\n [dateClass]="dateClass"\n (yearSelected)="_yearSelectedInMultiYearView($event)"\n (selectedChange)="_goToDateInView($event, \'year\')">\n </gipi-mat-multi-year-view>\n </div>\n </div>\n</div>',host:{class:"mat-calendar"},exportAs:"gipiMatCalendar",encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush,providers:[ro],styles:[".mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0}.mat-calendar-content{padding:0 8px 8px;outline:0}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-next-button,.mat-calendar-previous-button{position:relative}.mat-calendar-next-button::after,.mat-calendar-previous-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:'';margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-next-button,[dir=rtl] .mat-calendar-previous-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:'';position:absolute;top:0;left:-8px;right:-8px;height:1px}.gipi-mat-calendar-wrapper{display:flex;flex-direction:row}"]}),xe(1,t.Optional()),xe(2,t.Optional()),xe(2,t.Inject(Me)),Ce("design:paramtypes",[po,Qi,Object,t.ChangeDetectorRef])],e)}(),Eo=function(){function e(e,t,n,i){this._intl=e,this._dateAdapter=t,this._dateFormats=n,this._changeDetectorRef=i}return e.prototype.ngAfterViewInit=function(){var e=this;this.matCalendar.stateChanges.subscribe((function(){return e._changeDetectorRef.markForCheck()}))},Object.defineProperty(e.prototype,"periodButtonText",{get:function(){if("month"==this.matCalendar.currentView)return this._dateAdapter.format(this.matCalendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.matCalendar.currentView)return this._dateAdapter.getYearName(this.matCalendar.activeDate);var e=this._dateAdapter.getYear(this.matCalendar.activeDate)-Io(this._dateAdapter,this.matCalendar.activeDate,this.matCalendar.minDate,this.matCalendar.maxDate),t=e+24-1,n=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1)),i=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return this._intl.formatYearRange(n,i)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"periodButtonLabel",{get:function(){return"month"==this.matCalendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"prevButtonLabel",{get:function(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.matCalendar.currentView]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextButtonLabel",{get:function(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.matCalendar.currentView]},enumerable:!1,configurable:!0}),e.prototype.currentPeriodClicked=function(){this.matCalendar.currentView="month"==this.matCalendar.currentView?"multi-year":"month"},e.prototype.previousClicked=function(){this.matCalendar.activeDate="month"==this.matCalendar.currentView?this._dateAdapter.addCalendarMonths(this.matCalendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.matCalendar.activeDate,"year"==this.matCalendar.currentView?-1:-24)},e.prototype.nextClicked=function(){this.matCalendar.activeDate="month"==this.matCalendar.currentView?this._dateAdapter.addCalendarMonths(this.matCalendar.activeDate,1):this._dateAdapter.addCalendarYears(this.matCalendar.activeDate,"year"==this.matCalendar.currentView?1:24)},e.prototype.previousEnabled=function(){return!this.matCalendar.minDate||(!this.matCalendar.minDate||!this._isSameView(this.matCalendar.activeDate,this.matCalendar.minDate))},e.prototype.nextEnabled=function(){return!this.matCalendar.maxDate||!this._isSameView(this.matCalendar.activeDate,this.matCalendar.maxDate)},e.prototype._isSameView=function(e,t){return"month"==this.matCalendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(t):"year"==this.matCalendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t):Co(this._dateAdapter,e,t,this.matCalendar.minDate,this.matCalendar.maxDate)},e.ctorParameters=function(){return[{type:po},{type:Qi,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[Me]}]},{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",Oo)],e.prototype,"matCalendar",void 0),e=we([t.Component({selector:"gipi-mat-calendar-header",template:'<div class="mat-calendar-header">\n <div class="mat-calendar-controls">\n <button mat-button\n type="button"\n class="mat-calendar-period-button"\n (click)="currentPeriodClicked()"\n [attr.aria-label]="periodButtonLabel"\n cdkAriaLive="polite">\n {{ periodButtonText }}\n <div class="mat-calendar-arrow"\n [class.mat-calendar-invert]="matCalendar.currentView != \'month\'">\n </div>\n </button>\n\n <div class="mat-calendar-spacer"> </div>\n\n <ng-content> </ng-content>\n\n <button mat-icon-button\n type="button"\n class="mat-calendar-previous-button"\n [disabled]="!previousEnabled()"\n (click)="previousClicked()"\n [attr.aria-label]="prevButtonLabel">\n </button>\n\n <button mat-icon-button\n type="button"\n class="mat-calendar-next-button"\n [disabled]="!nextEnabled()"\n (click)="nextClicked()"\n [attr.aria-label]="nextButtonLabel">\n </button>\n </div>\n</div>',exportAs:"gipiMatCalendarHeader",encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush}),xe(1,t.Optional()),xe(2,t.Optional()),xe(2,t.Inject(Me)),Ce("design:paramtypes",[po,Qi,Object,t.ChangeDetectorRef])],e)}(),Do=function(e,t){this.target=e,this.targetElement=t,this.value=this.target.value},Po=function(){function e(e,n,i){var o=this;if(this._elementRef=e,this._dateAdapter=n,this._dateFormats=i,this.dateChange=new t.EventEmitter,this.dateInput=new t.EventEmitter,this._valueChange=new t.EventEmitter,this.stateChanges=new ie.Subject,this._onTouched=function(){},this._validatorOnChange=function(){},this._cvaOnChange=function(){},this._valueChangesSubscription=ie.Subscription.EMPTY,this._localeSubscription=ie.Subscription.EMPTY,this._parseValidator=function(){return o._lastValueValid?null:{matDatepickerParse:{text:o._elementRef.nativeElement.value}}},this._filterValidator=function(e){var t=o._dateAdapter.getValidDateOrNull(o._dateAdapter.deserialize(e.value)),n=o._getDateFilter();return n&&t&&!n(t)?{matDatepickerFilter:!0}:null},this._minValidator=function(e){var t=o._dateAdapter.getValidDateOrNull(o._dateAdapter.deserialize(e.value)),n=o._getMinDate();return!n||!t||o._dateAdapter.compareDate(n,t)<=0?null:{matDatepickerMin:{min:n,actual:t}}},this._maxValidator=function(e){var t=o._dateAdapter.getValidDateOrNull(o._dateAdapter.deserialize(e.value)),n=o._getMaxDate();return!n||!t||o._dateAdapter.compareDate(n,t)>=0?null:{matDatepickerMax:{max:n,actual:t}}},this._lastValueValid=!1,!this._dateAdapter)throw lo("DateAdapter");if(!this._dateFormats)throw lo("MAT_DATE_FORMATS");this._localeSubscription=n.localeChanges.subscribe((function(){o.value=o.value}))}return Object.defineProperty(e.prototype,"value",{get:function(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue},set:function(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e);var t=this.value;this._assignValue(e),this._formatValue(e),this._dateAdapter.sameDate(t,e)||this._valueChange.emit(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return!!this._disabled||this._parentDisabled()},set:function(e){var t=le.coerceBooleanProperty(e),n=this._elementRef.nativeElement;this._disabled!==t&&(this._disabled=t,this.stateChanges.next(void 0)),t&&this._isInitialized&&n.blur&&n.blur()},enumerable:!1,configurable:!0}),e.prototype._getValidators=function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]},e.prototype._registerModel=function(e){var t=this;this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe((function(e){if(e.source!==t){var n=t._getValueFromModel(e.selection);t._lastValueValid=t._isValidValue(n),t._cvaOnChange(n),t._onTouched(),t._formatValue(n),t._canEmitChangeEvent(e)&&(t.dateInput.emit(new Do(t,t._elementRef.nativeElement)),t.dateChange.emit(new Do(t,t._elementRef.nativeElement))),t._outsideValueChanged&&t._outsideValueChanged()}}))},e.prototype.ngAfterViewInit=function(){this._isInitialized=!0},e.prototype.ngOnChanges=function(e){Ao(e,this._dateAdapter)&&this.stateChanges.next(void 0)},e.prototype.ngOnDestroy=function(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this.stateChanges.complete()},e.prototype.registerOnValidatorChange=function(e){this._validatorOnChange=e},e.prototype.validate=function(e){return this._validator?this._validator(e):null},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this._cvaOnChange=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype._onKeydown=function(e){e.altKey&&e.keyCode===se.DOWN_ARROW&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())},e.prototype._onInput=function(e){var t=this._lastValueValid,n=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(n),n=this._dateAdapter.getValidDateOrNull(n),this._dateAdapter.sameDate(n,this.value)?(e&&!this.value&&this._cvaOnChange(n),t!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(n),this._cvaOnChange(n),this._valueChange.emit(n),this.dateInput.emit(new Do(this,this._elementRef.nativeElement)))},e.prototype._onChange=function(){this.dateChange.emit(new Do(this,this._elementRef.nativeElement))},e.prototype._onBlur=function(){this.value&&this._formatValue(this.value),this._onTouched()},e.prototype._formatValue=function(e){this._elementRef.nativeElement.value=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""},e.prototype._assignValue=function(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e},e.prototype._isValidValue=function(e){return!e||this._dateAdapter.isValid(e)},e.prototype._parentDisabled=function(){return!1},we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"value",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disabled",null),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"dateChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"dateInput",void 0),e=we([xe(1,t.Optional()),xe(2,t.Optional()),xe(2,t.Inject(Me)),Ce("design:paramtypes",[t.ElementRef,Qi,Object])],e)}();
|
53
53
|
/**
|
54
54
|
* @license
|
55
55
|
* Copyright Google LLC All Rights Reserved.
|
56
56
|
*
|
57
57
|
* Use of this source code is governed by an MIT-style license that can be
|
58
58
|
* found in the LICENSE file at https://angular.io/license
|
59
|
-
*/function
|
59
|
+
*/function Ao(e,t){var n,i,o=Object.keys(e);try{for(var r=ke(o),a=r.next();!a.done;a=r.next()){var s=e[a.value],l=s.previousValue,p=s.currentValue;if(!t.isDateInstance(l)||!t.isDateInstance(p))return!0;if(!t.sameDate(l,p))return!0}}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}return!1}
|
60
60
|
/**
|
61
61
|
* @license
|
62
62
|
* Copyright Google LLC All Rights Reserved.
|
63
63
|
*
|
64
64
|
* Use of this source code is governed by an MIT-style license that can be
|
65
65
|
* found in the LICENSE file at https://angular.io/license
|
66
|
-
*/var Ro=new t.InjectionToken("MAT_DATE_RANGE_INPUT_PARENT"),Ao=function(e){function n(t,n,i,o,r,a,s,l){var p=e.call(this,n,s,l)||this;return p._rangeInput=t,p._defaultErrorStateMatcher=i,p._injector=o,p._parentForm=r,p._parentFormGroup=a,p._outsideValueChanged=function(){p._validatorOnChange()},p}return be(n,e),n.prototype.ngOnInit=function(){var e=this._injector.get(r.NgControl,null,t.InjectFlags.Self);this._injector.get(r.NgControl,null),e&&(this.ngControl=e)},n.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState()},n.prototype.isEmpty=function(){return 0===this._elementRef.nativeElement.value.length},n.prototype._getPlaceholder=function(){return this._elementRef.nativeElement.placeholder},n.prototype.focus=function(){this._elementRef.nativeElement.focus()},n.prototype._onInput=function(t){e.prototype._onInput.call(this,t),this._rangeInput._handleChildValueChange()},n.prototype._openPopup=function(){this._rangeInput._openDatepicker()},n.prototype._getMinDate=function(){return this._rangeInput.min},n.prototype._getMaxDate=function(){return this._rangeInput.max},n.prototype._getDateFilter=function(){return this._rangeInput.dateFilter},n.prototype._parentDisabled=function(){return this._rangeInput._groupDisabled},n.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[Ro]}]},{type:t.ElementRef},{type:D.ErrorStateMatcher},{type:t.Injector},{type:r.NgForm,decorators:[{type:t.Optional}]},{type:r.FormGroupDirective,decorators:[{type:t.Optional}]},{type:Ji,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[D.MAT_DATE_FORMATS]}]}]},n=_e([t.Directive({}),we(0,t.Inject(Ro)),we(4,t.Optional()),we(5,t.Optional()),we(6,t.Optional()),we(7,t.Optional()),we(7,t.Inject(D.MAT_DATE_FORMATS)),Ce("design:paramtypes",[Object,t.ElementRef,D.ErrorStateMatcher,t.Injector,r.NgForm,r.FormGroupDirective,Ji,Object])],n)}(Do),To=D.mixinErrorState(Ao),Mo=function(e){function n(t,n,i,o,a,s,l,p){var d=e.call(this,t,n,i,o,a,s,l,p)||this;return d._startValidator=function(e){var t=d._dateAdapter.getValidDateOrNull(d._dateAdapter.deserialize(e.value)),n=d._model?d._model.selection.end:null;return!t||!n||d._dateAdapter.compareDate(t,n)<=0?null:{matStartDateInvalid:{end:n,actual:t}}},d._validator=r.Validators.compose(ke(e.prototype._getValidators.call(d),[d._startValidator])),d._canEmitChangeEvent=function(e){return e.source!==d._rangeInput._endInput},d}var i;return be(n,e),i=n,n.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},n.prototype.ngDoCheck=function(){e.prototype.ngDoCheck.call(this)},n.prototype._getValueFromModel=function(e){return e.start},n.prototype._assignValueToModel=function(e){if(this._model){var t=new Qi(e,this._model.selection.end);this._model.updateSelection(t,this),this._cvaOnChange(e)}},n.prototype._formatValue=function(t){e.prototype._formatValue.call(this,t),this._rangeInput._handleChildValueChange()},n.prototype.getMirrorValue=function(){var e=this._elementRef.nativeElement,t=e.value;return t.length>0?t:e.placeholder},n.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[Ro]}]},{type:t.ElementRef},{type:D.ErrorStateMatcher},{type:t.Injector},{type:r.NgForm,decorators:[{type:t.Optional}]},{type:r.FormGroupDirective,decorators:[{type:t.Optional}]},{type:Ji,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[D.MAT_DATE_FORMATS]}]}]},n=i=_e([t.Directive({selector:"input[gipiMatStartDate]",host:{class:"mat-start-date mat-date-range-input-inner","[disabled]":"disabled","(input)":"_onInput($event.target.value)","(change)":"_onChange()","(keydown)":"_onKeydown($event)","[attr.id]":"_rangeInput.id","[attr.aria-haspopup]":'_rangeInput.rangePicker ? "dialog" : null',"[attr.aria-owns]":"(_rangeInput.rangePicker?.opened && _rangeInput.rangePicker.id) || null","[attr.min]":"_getMinDate() ? _dateAdapter.toIso8601(_getMinDate()) : null","[attr.max]":"_getMaxDate() ? _dateAdapter.toIso8601(_getMaxDate()) : null","(blur)":"_onBlur()",type:"text"},providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:i,multi:!0},{provide:r.NG_VALIDATORS,useExisting:i,multi:!0}]}),we(0,t.Inject(Ro)),we(4,t.Optional()),we(5,t.Optional()),we(6,t.Optional()),we(7,t.Optional()),we(7,t.Inject(D.MAT_DATE_FORMATS)),Ce("design:paramtypes",[Object,t.ElementRef,D.ErrorStateMatcher,t.Injector,r.NgForm,r.FormGroupDirective,Ji,Object])],n)}(To),Fo=function(e){function n(t,n,i,o,a,s,l,p){var d=e.call(this,t,n,i,o,a,s,l,p)||this;return d._endValidator=function(e){var t=d._dateAdapter.getValidDateOrNull(d._dateAdapter.deserialize(e.value)),n=d._model?d._model.selection.start:null;return!t||!n||d._dateAdapter.compareDate(t,n)>=0?null:{matEndDateInvalid:{start:n,actual:t}}},d._validator=r.Validators.compose(ke(e.prototype._getValidators.call(d),[d._endValidator])),d._canEmitChangeEvent=function(e){return e.source!==d._rangeInput._startInput},d}var i;return be(n,e),i=n,n.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},n.prototype.ngDoCheck=function(){e.prototype.ngDoCheck.call(this)},n.prototype._getValueFromModel=function(e){return e.end},n.prototype._assignValueToModel=function(e){if(this._model){var t=new Qi(this._model.selection.start,e);this._model.updateSelection(t,this),this._cvaOnChange(e)}},n.prototype._onKeydown=function(t){t.keyCode!==se.BACKSPACE||this._elementRef.nativeElement.value||this._rangeInput._startInput.focus(),e.prototype._onKeydown.call(this,t)},n.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[Ro]}]},{type:t.ElementRef},{type:D.ErrorStateMatcher},{type:t.Injector},{type:r.NgForm,decorators:[{type:t.Optional}]},{type:r.FormGroupDirective,decorators:[{type:t.Optional}]},{type:Ji,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[D.MAT_DATE_FORMATS]}]}]},n=i=_e([t.Directive({selector:"input[gipiMatEndDate]",host:{class:"mat-end-date mat-date-range-input-inner","[disabled]":"disabled","(input)":"_onInput($event.target.value)","(change)":"_onChange()","(keydown)":"_onKeydown($event)","[attr.aria-haspopup]":'_rangeInput.rangePicker ? "dialog" : null',"[attr.aria-owns]":"(_rangeInput.rangePicker?.opened && _rangeInput.rangePicker.id) || null","[attr.min]":"_getMinDate() ? _dateAdapter.toIso8601(_getMinDate()) : null","[attr.max]":"_getMaxDate() ? _dateAdapter.toIso8601(_getMaxDate()) : null","(blur)":"_onBlur()",type:"text"},providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:i,multi:!0},{provide:r.NG_VALIDATORS,useExisting:i,multi:!0}]}),we(0,t.Inject(Ro)),we(4,t.Optional()),we(5,t.Optional()),we(6,t.Optional()),we(7,t.Optional()),we(7,t.Inject(D.MAT_DATE_FORMATS)),Ce("design:paramtypes",[Object,t.ElementRef,D.ErrorStateMatcher,t.Injector,r.NgForm,r.FormGroupDirective,Ji,Object])],n)}(To),No={transformPanel:ae.trigger("transformPanel",[ae.state("void",ae.style({opacity:0,transform:"scale(1, 0.8)"})),ae.transition("void => enter",ae.animate("120ms cubic-bezier(0, 0, 0.2, 1)",ae.style({opacity:1,transform:"scale(1, 1)"}))),ae.transition("* => void",ae.animate("100ms linear",ae.style({opacity:0})))]),fadeInCalendar:ae.trigger("fadeInCalendar",[ae.state("void",ae.style({opacity:0})),ae.state("enter",ae.style({opacity:1})),ae.transition("void => *",ae.animate("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},Lo=0,Vo=new t.InjectionToken("mat-datepicker-scroll-strategy");function jo(e){return function(){return e.scrollStrategies.reposition()}}var Bo,zo={provide:Vo,deps:[ue.Overlay],useFactory:jo},Yo=function(e){this._elementRef=e},Ho=function(e){function n(t,n,i,o,r){var a=e.call(this,t)||this;return a._changeDetectorRef=n,a._model=i,a._dateAdapter=o,a._rangeSelectionStrategy=r,a._subscriptions=new ie.Subscription,a._animationState="enter",a._animationDone=new ie.Subject,a}return be(n,e),n.prototype.ngAfterViewInit=function(){var e=this;this._changeDetectorRef&&this._subscriptions.add(this.datepicker._stateChanges.subscribe((function(){e._changeDetectorRef.markForCheck()}))),this._calendar.focusActiveCell()},n.prototype.ngOnDestroy=function(){this._subscriptions.unsubscribe(),this._animationDone.complete()},n.prototype._handleUserSelection=function(e){if(this._model&&this._dateAdapter){var t=this._model.selection,n=e.value,i=t instanceof Qi;if(i&&this._rangeSelectionStrategy){var o=this._rangeSelectionStrategy.selectionFinished(n,t,e.event);this._model.updateSelection(o,this)}else!n||!i&&this._dateAdapter.sameDate(n,t)||this._model.add(n)}this._model&&!this._model.isComplete()||this.datepicker.close()},n.prototype._startExitAnimation=function(){this._animationState="void",this._changeDetectorRef&&this._changeDetectorRef.markForCheck()},n.prototype._getSelected=function(){return this._model?this._model.selection:null},n.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef},{type:eo},{type:Ji},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[fo]}]}]},_e([t.ViewChild(Eo,{static:!0}),Ce("design:type",Eo)],n.prototype,"_calendar",void 0),n=_e([t.Component({selector:"gipi-mat-datepicker-content",template:'<gipi-mat-calendar cdkTrapFocus\n [id]="datepicker.id"\n [ngClass]="datepicker.panelClass"\n [startAt]="datepicker.startAt"\n [startView]="datepicker.startView"\n [minDate]="datepicker._getMinDate()"\n [maxDate]="datepicker._getMaxDate()"\n [dateFilter]="datepicker._getDateFilter()"\n [templatePresetRange]="datepicker.templatePresetRange"\n [selected]="_getSelected()"\n [dateClass]="datepicker.dateClass"\n [comparisonStart]="comparisonStart"\n [comparisonEnd]="comparisonEnd"\n [@fadeInCalendar]="\'enter\'"\n (yearSelected)="datepicker._selectYear($event)"\n (monthSelected)="datepicker._selectMonth($event)"\n (_userSelection)="_handleUserSelection($event)">\n</gipi-mat-calendar>',host:{class:"mat-datepicker-content","[@transformPanel]":"_animationState","(@transformPanel.done)":"_animationDone.next()","[class.mat-datepicker-content-touch]":"datepicker.touchUi"},animations:[No.transformPanel,No.fadeInCalendar],exportAs:"gipiMatDatepickerContent",encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush,inputs:["color"],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{min-width:296px;height:365px}.mat-datepicker-content .gipi-mat-calendar-wrapper .gipi-mat-calendar-content{min-width:296px;min-height:365px;border-left:1px solid rgba(0,0,0,.12)}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}@media all and (orientation:landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation:portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}"]}),we(4,t.Optional()),we(4,t.Inject(fo)),Ce("design:paramtypes",[t.ElementRef,t.ChangeDetectorRef,eo,Ji,Object])],n)}(D.mixinColor(Yo)),Uo=function(){function e(e,n,i,o,r,a,s,l,p){if(this._dialog=e,this._overlay=n,this._ngZone=i,this._viewContainerRef=o,this._dateAdapter=a,this._dir=s,this._document=l,this._model=p,this._inputStateChanges=ie.Subscription.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this.yearSelected=new t.EventEmitter,this.monthSelected=new t.EventEmitter,this.openedStream=new t.EventEmitter,this.closedStream=new t.EventEmitter,this._opened=!1,this.id="mat-datepicker-"+Lo++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=this.id+"-backdrop",this._stateChanges=new ie.Subject,!this._dateAdapter)throw so("DateAdapter");this._scrollStrategy=r}return Object.defineProperty(e.prototype,"startAt",{get:function(){return this._startAt||(this._datepickerInput?this._datepickerInput.getStartValue():null)},set:function(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color||(this._datepickerInput?this._datepickerInput.getThemePalette():void 0)},set:function(e){this._color=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"touchUi",{get:function(){return this._touchUi},set:function(e){this._touchUi=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return void 0===this._disabled&&this._datepickerInput?this._datepickerInput.disabled:!!this._disabled},set:function(e){var t=le.coerceBooleanProperty(e);t!==this._disabled&&(this._disabled=t,this._stateChanges.next(void 0))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"opened",{get:function(){return this._opened},set:function(e){le.coerceBooleanProperty(e)?this.open():this.close()},enumerable:!1,configurable:!0}),e.prototype._getMinDate=function(){return this._datepickerInput&&this._datepickerInput.min},e.prototype._getMaxDate=function(){return this._datepickerInput&&this._datepickerInput.max},e.prototype._getDateFilter=function(){return this._datepickerInput&&this._datepickerInput.dateFilter},e.prototype.ngOnChanges=function(e){var t=e.xPosition||e.yPosition;t&&!t.firstChange&&this._popupRef&&(this._setConnectedPositions(this._popupRef.getConfig().positionStrategy),this.opened&&this._popupRef.updatePosition()),this._stateChanges.next(void 0)},e.prototype.ngOnDestroy=function(){this._destroyPopup(),this.close(),this._inputStateChanges.unsubscribe(),this._stateChanges.complete()},e.prototype.select=function(e){this._model.add(e)},e.prototype._selectYear=function(e){this.yearSelected.emit(e)},e.prototype._selectMonth=function(e){this.monthSelected.emit(e)},e.prototype._registerInput=function(e){var t=this;if(this._datepickerInput)throw Error("A MatDatepicker can only be associated with a single input.");return this._inputStateChanges.unsubscribe(),this._datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe((function(){return t._stateChanges.next(void 0)})),this._model},e.prototype.open=function(){if(!this._opened&&!this.disabled){if(!this._datepickerInput)throw Error("Attempted to open an MatDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit()}},e.prototype.close=function(){var e=this;if(this._opened){if(this._popupComponentRef&&this._popupRef){var t=this._popupComponentRef.instance;t._startExitAnimation(),t._animationDone.pipe(oe.take(1)).subscribe((function(){return e._destroyPopup()}))}this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null);var n=function(){e._opened&&(e._opened=!1,e.closedStream.emit(),e._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(n)):n()}},e.prototype._openAsDialog=function(){var e=this;this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(Ho,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:!0,disableClose:!1,backdropClass:"cdk-overlay-dark-backdrop, "+this._backdropHarnessClass,width:"",height:"",minWidth:"",minHeight:"",maxWidth:"80vw",maxHeight:"",position:{},autoFocus:!0,restoreFocus:!1}),this._dialogRef.afterClosed().subscribe((function(){return e.close()})),this._forwardContentValues(this._dialogRef.componentInstance)},e.prototype._openAsPopup=function(){var e=this,t=new y.ComponentPortal(Ho,this._viewContainerRef);this._destroyPopup(),this._createPopup(),this._popupComponentRef=this._popupRef.attach(t),this._forwardContentValues(this._popupComponentRef.instance),this._ngZone.onStable.pipe(oe.take(1)).subscribe((function(){e._popupRef.updatePosition()}))},e.prototype._forwardContentValues=function(e){e.datepicker=this,e.color=this.color},e.prototype._createPopup=function(){var e=this,t=this._overlay.position().flexibleConnectedTo(this._datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition(),n=new ue.OverlayConfig({positionStrategy:this._setConnectedPositions(t),hasBackdrop:!0,backdropClass:["mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(n),this._popupRef.overlayElement.setAttribute("role","dialog"),ie.merge(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(oe.filter((function(t){return t.keyCode===se.ESCAPE||e._datepickerInput&&t.altKey&&t.keyCode===se.UP_ARROW})))).subscribe((function(t){t&&t.preventDefault(),e.close()}))},e.prototype._destroyPopup=function(){this._popupRef&&(this._popupRef.dispose(),this._popupRef=this._popupComponentRef=null)},e.prototype._setConnectedPositions=function(e){var t="end"===this.xPosition?"end":"start",n="start"===t?"end":"start",i="above"===this.yPosition?"bottom":"top",o="top"===i?"bottom":"top";return e.withPositions([{originX:t,originY:o,overlayX:t,overlayY:i},{originX:t,originY:i,overlayX:t,overlayY:o},{originX:n,originY:o,overlayX:n,overlayY:i},{originX:n,originY:i,overlayX:n,overlayY:o}])},_e([t.Input(),Ce("design:type",t.TemplateRef)],e.prototype,"templatePresetRange",void 0),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"startAt",null),_e([t.Input(),Ce("design:type",String)],e.prototype,"startView",void 0),_e([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"color",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"touchUi",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disabled",null),_e([t.Input(),Ce("design:type",String)],e.prototype,"xPosition",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"yPosition",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"yearSelected",void 0),_e([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"monthSelected",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"panelClass",void 0),_e([t.Input(),Ce("design:type",Function)],e.prototype,"dateClass",void 0),_e([t.Output("opened"),Ce("design:type",t.EventEmitter)],e.prototype,"openedStream",void 0),_e([t.Output("closed"),Ce("design:type",t.EventEmitter)],e.prototype,"closedStream",void 0),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"opened",null),e=_e([we(4,t.Inject(Vo)),we(5,t.Optional()),we(6,t.Optional()),we(7,t.Optional()),we(7,t.Inject(i.DOCUMENT)),Ce("design:paramtypes",[P.MatDialog,ue.Overlay,t.NgZone,t.ViewContainerRef,Object,Ji,ce.Directionality,Object,eo])],e)}(),Go=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return be(n,e),n.prototype._forwardContentValues=function(t){e.prototype._forwardContentValues.call(this,t);var n=this._datepickerInput;n&&(t.comparisonStart=n.comparisonStart,t.comparisonEnd=n.comparisonEnd)},n=_e([t.Component({selector:"gipi-mat-date-range-picker",template:"",exportAs:"gipiMatDateRangePicker",changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,providers:[ao,bo]})],n)}(Uo),qo=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return be(n,e),n=_e([t.Component({selector:"gipi-mat-datepicker",template:"",exportAs:"gipiMatDatepicker",changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,providers:[oo]})],n)}(Uo),$o={provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return Xo})),multi:!0},Wo={provide:r.NG_VALIDATORS,useExisting:t.forwardRef((function(){return Xo})),multi:!0},Ko=new t.InjectionToken("MatFormField"),Xo=function(e){function n(t,n,i,o){var a=e.call(this,t,n,i)||this;return a._formField=o,a._validator=r.Validators.compose(e.prototype._getValidators.call(a)),a}var i;return be(n,e),i=n,Object.defineProperty(n.prototype,"gipiMatDatepicker",{set:function(e){e&&(this._datepicker=e,this._registerModel(e._registerInput(this)))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"min",{get:function(){return this._min},set:function(e){var t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._min)||(this._min=t,this._validatorOnChange())},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"max",{get:function(){return this._max},set:function(e){var t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._max)||(this._max=t,this._validatorOnChange())},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"dateFilter",{get:function(){return this._dateFilter},set:function(e){this._dateFilter=e,this._validatorOnChange()},enumerable:!1,configurable:!0}),n.prototype.getConnectedOverlayOrigin=function(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef},n.prototype.getThemePalette=function(){return this._formField?this._formField.color:void 0},n.prototype.getStartValue=function(){return this.value},n.prototype.getPopupConnectionElementRef=function(){return this.getConnectedOverlayOrigin()},n.prototype._openPopup=function(){this._datepicker&&this._datepicker.open()},n.prototype._getValueFromModel=function(e){return e},n.prototype._assignValueToModel=function(e){this._model&&this._model.updateSelection(e,this)},n.prototype._getMinDate=function(){return this._min},n.prototype._getMaxDate=function(){return this._max},n.prototype._getDateFilter=function(){return this._dateFilter},n.prototype._canEmitChangeEvent=function(){return!0},n.ctorParameters=function(){return[{type:t.ElementRef},{type:Ji,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[D.MAT_DATE_FORMATS]}]},{type:T.MatFormField,decorators:[{type:t.Optional},{type:t.Inject,args:[Ko]}]}]},_e([t.Input(),Ce("design:type",qo),Ce("design:paramtypes",[qo])],n.prototype,"gipiMatDatepicker",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],n.prototype,"min",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],n.prototype,"max",null),_e([t.Input("gipiMatDatepickerFilter"),Ce("design:type",Function),Ce("design:paramtypes",[Function])],n.prototype,"dateFilter",null),n=i=_e([t.Directive({selector:"input[gipiMatDatepicker]",providers:[$o,Wo,{provide:N.MAT_INPUT_VALUE_ACCESSOR,useExisting:i}],host:{class:"mat-datepicker-input","[attr.aria-haspopup]":'_datepicker ? "dialog" : null',"[attr.aria-owns]":"(_datepicker?.opened && _datepicker.id) || null","[attr.min]":"min ? _dateAdapter.toIso8601(min) : null","[attr.max]":"max ? _dateAdapter.toIso8601(max) : null","[attr.data-mat-calendar]":"_datepicker ? _datepicker.id : null","[disabled]":"disabled","(input)":"_onInput($event.target.value)","(change)":"_onChange()","(blur)":"_onBlur()","(keydown)":"_onKeydown($event)"},exportAs:"gipiMatDatepickerInput"}),we(1,t.Optional()),we(2,t.Optional()),we(2,t.Inject(D.MAT_DATE_FORMATS)),we(3,t.Optional()),we(3,t.Inject(Ko)),Ce("design:paramtypes",[t.ElementRef,Ji,Object,T.MatFormField])],n)}(Do),Zo=0,Jo=function(){function e(e,t,n,i,o){if(this._changeDetectorRef=e,this._elementRef=t,this._dateAdapter=i,this._formField=o,this.id="mat-date-range-input-"+Zo++,this.focused=!1,this.controlType="gipi-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="–",this.comparisonStart=null,this.comparisonEnd=null,this.stateChanges=new ie.Subject,!i)throw so("DateAdapter");this.ngControl=n}var n;return n=e,Object.defineProperty(e.prototype,"value",{get:function(){return this._model?this._model.selection:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shouldLabelFloat",{get:function(){return this.focused||!this.empty},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){var e=this._startInput?this._startInput._getPlaceholder():"",t=this._endInput?this._endInput._getPlaceholder():"";return e||t?e+" "+this.separator+" "+t:""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rangePicker",{get:function(){return this._rangePicker},set:function(e){e&&(this._model=e._registerInput(this),this._rangePicker=e,this._registerModel(this._model))},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,"dateFilter",{get:function(){return this._dateFilter},set:function(e){this._dateFilter=e,this._revalidate()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){var t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._min)||(this._min=t,this._revalidate())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){var t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._max)||(this._max=t,this._revalidate())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled},set:function(e){var t=le.coerceBooleanProperty(e);t!==this._groupDisabled&&(this._groupDisabled=t,this.stateChanges.next(void 0))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"errorState",{get:function(){return!(!this._startInput||!this._endInput)&&(this._startInput.errorState||this._endInput.errorState)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){var e=!!this._startInput&&this._startInput.isEmpty(),t=!!this._endInput&&this._endInput.isEmpty();return e&&t},enumerable:!1,configurable:!0}),e.prototype.setDescribedByIds=function(e){this._ariaDescribedBy=e.length?e.join(" "):null},e.prototype.onContainerClick=function(){this.focused||this.disabled||(this._model&&this._model.selection.start?this._endInput.focus():this._startInput.focus())},e.prototype.ngAfterContentInit=function(){var e=this;if(!this._startInput)throw Error("mat-date-range-input must contain a matStartDate input");if(!this._endInput)throw Error("mat-date-range-input must contain a matEndDate input");this._model&&this._registerModel(this._model),ie.merge(this._startInput.stateChanges,this._endInput.stateChanges).subscribe((function(){e.stateChanges.next(void 0)}))},e.prototype.ngOnChanges=function(e){Po(e,this._dateAdapter)&&this.stateChanges.next(void 0)},e.prototype.ngOnDestroy=function(){this.stateChanges.complete()},e.prototype.getStartValue=function(){return this.value?this.value.start:null},e.prototype.getThemePalette=function(){return this._formField?this._formField.color:void 0},e.prototype.getConnectedOverlayOrigin=function(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef},e.prototype._getInputMirrorValue=function(){return this._startInput?this._startInput.getMirrorValue():""},e.prototype._shouldHidePlaceholders=function(){return!!this._startInput&&!this._startInput.isEmpty()},e.prototype._handleChildValueChange=function(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()},e.prototype._openDatepicker=function(){this._rangePicker&&this._rangePicker.open()},e.prototype._shouldHideSeparator=function(){return(!this._formField||this._formField._hideControlPlaceholder())&&this.empty},e.prototype._getAriaLabelledby=function(){var e=this._formField;return e&&e._hasFloatingLabel()?e._labelId:null},e.prototype._revalidate=function(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()},e.prototype._registerModel=function(e){this._startInput&&this._startInput._registerModel(e),this._endInput&&this._endInput._registerModel(e)},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef},{type:r.ControlContainer,decorators:[{type:t.Optional},{type:t.Self}]},{type:Ji,decorators:[{type:t.Optional}]},{type:T.MatFormField,decorators:[{type:t.Optional},{type:t.Inject,args:[Ko]}]}]},_e([t.Input(),Ce("design:type",Go),Ce("design:paramtypes",[Go])],e.prototype,"rangePicker",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"required",null),_e([t.Input(),Ce("design:type",Function),Ce("design:paramtypes",[Function])],e.prototype,"dateFilter",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"min",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"max",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disabled",null),_e([t.Input(),Ce("design:type",Object)],e.prototype,"separator",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"comparisonStart",void 0),_e([t.Input(),Ce("design:type",Object)],e.prototype,"comparisonEnd",void 0),_e([t.ContentChild(Mo,{static:!0}),Ce("design:type",Mo)],e.prototype,"_startInput",void 0),_e([t.ContentChild(Fo,{static:!0}),Ce("design:type",Fo)],e.prototype,"_endInput",void 0),e=n=_e([t.Component({selector:"gipi-mat-date-range-input",template:'<div class="mat-date-range-input-container"\n cdkMonitorSubtreeFocus\n (cdkFocusChange)="focused = $event !== null">\n <div class="mat-date-range-input-start-wrapper">\n\n <ng-content select="input[gipiMatStartDate]"> </ng-content>\n\n <span class="mat-date-range-input-mirror"\n aria-hidden="true">\n {{_getInputMirrorValue()}}\n </span>\n </div>\n\n <span class="mat-date-range-input-separator"\n [class.mat-date-range-input-separator-hidden]="_shouldHideSeparator()">\n {{separator}}\n </span>\n\n <div class="mat-date-range-input-end-wrapper">\n <ng-content select="input[gipiMatEndDate]"> </ng-content>\n </div>\n</div>',exportAs:"gipiMatDateRangeInput",host:{class:"mat-date-range-input","[class.mat-date-range-input-hide-placeholders]":"_shouldHidePlaceholders()","[class.mat-date-range-input-required]":"required","[attr.id]":"null",role:"group","[attr.aria-labelledby]":"_getAriaLabelledby()","[attr.aria-describedby]":"_ariaDescribedBy","[attr.data-mat-calendar]":"rangePicker ? rangePicker.id : null"},changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,providers:[{provide:T.MatFormFieldControl,useExisting:n},{provide:Ro,useExisting:n}],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center;padding-bottom:3px}.mat-date-range-input-separator{transition:opacity .4s cubic-bezier(.25,.8,.25,1) .133s;margin:0 4px}.mat-date-range-input-separator-hidden{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-inner{font:inherit;background:0 0;color:currentColor;border:none;outline:0;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%}.mat-date-range-input-inner::-ms-clear,.mat-date-range-input-inner::-ms-reveal{display:none}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::-ms-input-placeholder{transition:color .4s cubic-bezier(.25,.8,.25,1) .133s}.mat-date-range-input-inner::placeholder{transition:color .4s cubic-bezier(.25,.8,.25,1) .133s}.mat-date-range-input-inner::-moz-placeholder{transition:color .4s cubic-bezier(.25,.8,.25,1) .133s}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color .4s cubic-bezier(.25,.8,.25,1) .133s}.mat-date-range-input-inner:-ms-input-placeholder{transition:color .4s cubic-bezier(.25,.8,.25,1) .133s}.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-ms-input-placeholder,.mat-form-field-hide-placeholder .mat-date-range-input-inner::-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent!important;-webkit-text-fill-color:transparent;transition:none}.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder,.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent!important;-webkit-text-fill-color:transparent;transition:none}.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder,.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent!important;-webkit-text-fill-color:transparent;transition:none}.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder,.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent!important;-webkit-text-fill-color:transparent;transition:none}.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder,.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent!important;-webkit-text-fill-color:transparent;transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-date-range-input-start-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-start-wrapper .mat-date-range-input-inner{position:absolute;top:0;left:0}.mat-date-range-input-end-wrapper{flex-grow:1;max-width:calc(50% - 4px)}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}"]}),we(2,t.Optional()),we(2,t.Self()),we(3,t.Optional()),we(4,t.Optional()),we(4,t.Inject(Ko)),Ce("design:paramtypes",[t.ChangeDetectorRef,t.ElementRef,r.ControlContainer,Ji,T.MatFormField])],e)}(),Qo=function(){function e(){}return e=_e([t.Directive({selector:"[gipiDatepickerToggleIcon]"})],e)}(),er=function(){function e(e,t,n){this._intl=e,this._changeDetectorRef=t,this._stateChanges=ie.Subscription.EMPTY;var i=Number(n);this.tabIndex=i||0===i?i:null}return Object.defineProperty(e.prototype,"disabled",{get:function(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled},set:function(e){this._disabled=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),e.prototype.ngOnChanges=function(e){e.datepicker&&this._watchStateChanges()},e.prototype.ngOnDestroy=function(){this._stateChanges.unsubscribe()},e.prototype.ngAfterContentInit=function(){this._watchStateChanges()},e.prototype._open=function(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())},e.prototype._watchStateChanges=function(){var e=this,t=this.datepicker?this.datepicker._stateChanges:ie.of(),n=this.datepicker&&this.datepicker._datepickerInput?this.datepicker._datepickerInput.stateChanges:ie.of(),i=this.datepicker?ie.merge(this.datepicker.openedStream,this.datepicker.closedStream):ie.of();this._stateChanges.unsubscribe(),this._stateChanges=ie.merge(this._intl.changes,t,n,i).subscribe((function(){return e._changeDetectorRef.markForCheck()}))},e.ctorParameters=function(){return[{type:lo},{type:t.ChangeDetectorRef},{type:String,decorators:[{type:t.Attribute,args:["tabindex"]}]}]},_e([t.Input("for"),Ce("design:type",Uo)],e.prototype,"datepicker",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"tabIndex",void 0),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disabled",null),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"disableRipple",void 0),_e([t.ContentChild(Qo,{static:!0}),Ce("design:type",Qo)],e.prototype,"_customIcon",void 0),_e([t.ViewChild("button",{static:!0}),Ce("design:type",I.MatButton)],e.prototype,"_button",void 0),e=_e([t.Component({selector:"gipi-mat-datepicker-toggle",template:'<button #button\n mat-icon-button\n type="button"\n [attr.aria-haspopup]="datepicker ? \'dialog\' : null"\n [attr.aria-label]="_intl.openCalendarLabel"\n [attr.tabindex]="disabled ? -1 : tabIndex"\n [disabled]="disabled"\n [disableRipple]="disableRipple"\n (click)="_open($event)">\n\n <svg *ngIf="!_customIcon"\n class="mat-datepicker-toggle-default-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\n <ng-content select="[gipiMatDatepickerToggleIcon]"> </ng-content>\n</button>',host:{class:"mat-datepicker-toggle","[attr.tabindex]":"disabled ? null : -1","[class.mat-datepicker-toggle-active]":"datepicker && datepicker.opened","[class.mat-accent]":'datepicker && datepicker.color === "accent"',"[class.mat-warn]":'datepicker && datepicker.color === "warn"',"[attr.data-mat-calendar]":"datepicker ? datepicker.id : null","(focus)":"_button.focus()"},exportAs:"gipiMatDatepickerToggle",encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}"]}),we(2,t.Attribute("tabindex")),Ce("design:paramtypes",[lo,t.ChangeDetectorRef,String])],e)}();try{Bo="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(e){Bo=!1}var tr,nr=function(){function e(e){this._platformId=e,this.isBrowser=this._platformId?i.isPlatformBrowser(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Bo)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}return e=_e([we(0,t.Inject(t.PLATFORM_ID)),Ce("design:paramtypes",[Object])],e)}();try{tr="undefined"!=typeof Intl}catch(e){tr=!1}var ir={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},or=sr(31,(function(e){return String(e+1)})),rr={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},ar=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function sr(e,t){for(var n=Array(e),i=0;i<e;i++)n[i]=t(i);return n}var lr=function(e){function n(t,n){var i=e.call(this)||this;i._platformId=n,i.useUtcForDisplay=!0,e.prototype.setLocale.call(i,t);var o=new nr(i._platformId);return o?(i.useUtcForDisplay=!o.TRIDENT,i._clampDate=o.TRIDENT||o.EDGE):(i.useUtcForDisplay=!0,i._clampDate=!1),i}return be(n,e),n.prototype.getYear=function(e){return e.getFullYear()},n.prototype.getMonth=function(e){return e.getMonth()},n.prototype.getDate=function(e){return e.getDate()},n.prototype.getDayOfWeek=function(e){return e.getDay()},n.prototype.getMonthNames=function(e){var t=this;if(tr){var n=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return sr(12,(function(e){return t._stripDirectionalityCharacters(t._format(n,new Date(2017,e,1)))}))}return ir[e]},n.prototype.getDateNames=function(){var e=this;if(tr){var t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return sr(31,(function(n){return e._stripDirectionalityCharacters(e._format(t,new Date(2017,0,n+1)))}))}return or},n.prototype.getDayOfWeekNames=function(e){var t=this;if(tr){var n=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return sr(7,(function(e){return t._stripDirectionalityCharacters(t._format(n,new Date(2017,0,e+1)))}))}return rr[e]},n.prototype.getYearName=function(e){if(tr){var t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(t,e))}return String(this.getYear(e))},n.prototype.getFirstDayOfWeek=function(){return 0},n.prototype.getNumDaysInMonth=function(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))},n.prototype.clone=function(e){return new Date(e.getTime())},n.prototype.createDate=function(e,t,n){if(t<0||t>11)throw Error('Invalid month index "'+t+'". Month index has to be between 0 and 11.');if(n<1)throw Error('Invalid date "'+n+'". Date has to be greater than 0.');var i=this._createDateWithOverflow(e,t,n);if(i.getMonth()!=t)throw Error('Invalid date "'+n+'" for month with index "'+t+'".');return i},n.prototype.today=function(){return new Date},n.prototype.parse=function(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null},n.prototype.format=function(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");if(tr){this._clampDate&&(e.getFullYear()<1||e.getFullYear()>9999)&&(e=this.clone(e)).setFullYear(Math.max(1,Math.min(9999,e.getFullYear()))),t=xe(xe({},t),{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,t);return this._stripDirectionalityCharacters(this._format(n,e))}return this._stripDirectionalityCharacters(e.toDateString())},n.prototype.addCalendarYears=function(e,t){return this.addCalendarMonths(e,12*t)},n.prototype.addCalendarMonths=function(e,t){var n=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(n)!=((this.getMonth(e)+t)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n},n.prototype.addCalendarDays=function(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)},n.prototype.toIso8601=function(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")},n.prototype.deserialize=function(t){if("string"==typeof t){if(!t)return null;if(ar.test(t)){var n=new Date(t);if(this.isValid(n))return n}}return e.prototype.deserialize.call(this,t)},n.prototype.isDateInstance=function(e){return e instanceof Date},n.prototype.isValid=function(e){return!isNaN(e.getTime())},n.prototype.invalid=function(){return new Date(NaN)},n.prototype._createDateWithOverflow=function(e,t,n){var i=new Date;return i.setFullYear(e,t,n),i.setHours(0,0,0,0),i},n.prototype._2digit=function(e){return("00"+e).slice(-2)},n.prototype._stripDirectionalityCharacters=function(e){return e.replace(/[\u200e\u200f]/g,"")},n.prototype._format=function(e,t){var n=new Date;return n.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(n)},n.ctorParameters=function(){return[{type:String,decorators:[{type:t.Optional},{type:t.Inject,args:[Ki]}]},{type:Object,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]},n=_e([t.Injectable(),we(0,t.Optional()),we(0,t.Inject(Ki)),we(1,t.Inject(t.PLATFORM_ID)),Ce("design:paramtypes",[String,Object])],n)}(Ji),pr=function(){function e(){}return e.getBrowser=function(){for(var e=["MSIE","Firefox","Safari","Chrome","Opera"],t=navigator.userAgent,n=e.length-1;n>-1&&-1===t.indexOf(e[n]);n--);return e[n]},e}(),dr=he;e.nextUniqueId=0;var cr=function(){function n(t,n){this.elementRef=t,this._changeDetectorRef=n,this._name="gipi-date-range-"+e.nextUniqueId++,this.idStartDate=this._name+"-start",this.idEndDate=this._name+"-end",this.nameStartDate=this._name+"-start",this.nameEndDate=this._name+"-end",this.label="",this.placeholderStartDate="Inicial",this.placeholderEndDate="Final",this.help="",this.separator="-",this._customRangeLabel="Personalizado",this._maxRange=368,this._minDate=new Date("01/01/2000"),this._required=!1,this._readonly=!1,this._disabled=!1,this._dateFilter=null,this.onChange=function(){},this.onTouched=function(){}}var i;return i=n,Object.defineProperty(n.prototype,"startDate",{get:function(){return this._startDate},set:function(e){this._startDate=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"endDate",{get:function(){return this._endDate},set:function(e){this._endDate=e,this.value=new Qi(this.startDate,e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"customRangeLabel",{get:function(){return this._customRangeLabel},set:function(e){this._customRangeLabel=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ranges",{get:function(){return this._ranges},set:function(e){this._ranges=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"maxRange",{get:function(){return this._maxRange},set:function(e){this._maxRange=le.coerceNumberProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"minDate",{get:function(){return this._minDate},set:function(e){this._minDate=e,this._minDate.setHours(0,0,0,0)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"maxDate",{get:function(){return this._maxDate},set:function(e){this._maxDate=e,this._maxDate.setHours(0,0,0,0)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"required",{get:function(){return this._required},set:function(e){this._required=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"readonly",{get:function(){return this._readonly},set:function(e){this._readonly=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"dateFilter",{get:function(){return this._dateFilter},set:function(e){this._dateFilter=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this._value},set:function(e){var t=null,n=null;e&&e.start&&(t=dr(e.start).startOf("day").toDate()),e&&e.end&&(n=dr(e.end).endOf("day").toDate()),t&&n&&(this._value=new Qi(t,n),this.onChange(this._value),this.onTouched(this._value))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"formattedValue",{get:function(){return""},enumerable:!1,configurable:!0}),n.prototype.ngOnInit=function(){},n.prototype.ngOnDestroy=function(){},n.prototype.writeValue=function(e){e&&e.start?this.startDate=dr(e.start).startOf("day").toDate():this.startDate=null,e&&e.end?this.endDate=dr(e.end).endOf("day").toDate():this.endDate=null,this._changeDetectorRef.detectChanges()},n.prototype.registerOnChange=function(e){this.onChange=e},n.prototype.registerOnTouched=function(e){this.onTouched=e},n.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},n.prototype.onInputContentClick=function(e){this.readonly&&this.matDatepickerToggleRef&&this.matDatepickerToggleRef._open(e)},n.prototype.generatedStartDate=function(e,t){if(t||"Firefox"!==pr.getBrowser()){var n=!1;!e.includes("/")||t&&10!==e.length?e.includes("/")||t&&8!==e.length||(this.startDate=dr(e,"DDMMYYYY").toDate(),n=!0):(this.startDate=dr(e,"DD/MM/YYYY").toDate(),n=!0),"Firefox"!==pr.getBrowser()?n&&!$i.isValid(this.startDate)&&(this.startDate=void 0):n&&!this.startDate&&(this.startDate=void 0)}},n.prototype.generatedEndDate=function(e,t){if(t||"Firefox"!==pr.getBrowser()){var n=!1;!e.includes("/")||t&&10!==e.length?e.includes("/")||t&&8!==e.length||(this.endDate=dr(e,"DDMMYYYY").toDate(),n=!0):(this.endDate=dr(e,"DD/MM/YYYY").toDate(),n=!0),"Firefox"!==pr.getBrowser()?n&&!$i.isValid(this.endDate)&&(this.endDate=void 0):n&&!this.endDate&&(this.endDate=void 0)}},n.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},_e([t.ViewChild(er,{static:!0}),Ce("design:type",er)],n.prototype,"matDatepickerToggleRef",void 0),_e([t.Input("idStart"),Ce("design:type",String)],n.prototype,"idStartDate",void 0),_e([t.Input("idEnd"),Ce("design:type",String)],n.prototype,"idEndDate",void 0),_e([t.Input("nameStart"),Ce("design:type",String)],n.prototype,"nameStartDate",void 0),_e([t.Input("nameEnd"),Ce("design:type",String)],n.prototype,"nameEndDate",void 0),_e([t.Input(),Ce("design:type",String)],n.prototype,"label",void 0),_e([t.Input("placeholderStart"),Ce("design:type",String)],n.prototype,"placeholderStartDate",void 0),_e([t.Input("placeholderEnd"),Ce("design:type",String)],n.prototype,"placeholderEndDate",void 0),_e([t.Input(),Ce("design:type",String)],n.prototype,"help",void 0),_e([t.Input(),Ce("design:type",String)],n.prototype,"separator",void 0),_e([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],n.prototype,"customRangeLabel",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],n.prototype,"ranges",null),_e([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],n.prototype,"maxRange",null),_e([t.Input("min"),Ce("design:type",Date),Ce("design:paramtypes",[Date])],n.prototype,"minDate",null),_e([t.Input("max"),Ce("design:type",Date),Ce("design:paramtypes",[Date])],n.prototype,"maxDate",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],n.prototype,"required",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],n.prototype,"readonly",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],n.prototype,"disabled",null),_e([t.Input(),Ce("design:type",Function),Ce("design:paramtypes",[Function])],n.prototype,"dateFilter",null),_e([t.Input(),Ce("design:type",Qi),Ce("design:paramtypes",[Qi])],n.prototype,"value",null),n=i=_e([t.Component({selector:"gipi-date-range-picker",exportAs:"gipiDateRangePicker",template:'<div class="input-wrapper">\n\n <label *ngIf="label"\n class="input-label"\n [attr.for]="\'dateRangeInput\'">\n {{ label }}\n <span *ngIf="required"> * </span>\n </label>\n\n <div class="input-content"\n (click)="onInputContentClick($event)">\n <gipi-mat-date-range-input #matDateRangeInput\n id="dateRangeInput"\n [min]="minDate"\n [max]="maxDate"\n [disabled]="disabled"\n [required]="required"\n [separator]="separator"\n [rangePicker]="rangepicker">\n <input gipiMatStartDate\n class="input-element"\n [attr.id]="idStartDate"\n [attr.name]="nameStartDate"\n [placeholder]="placeholderStartDate"\n [disabled]="disabled"\n [required]="required"\n [readOnly]="readonly"\n [autocomplete]="\'off\'"\n [autofocus]="false"\n [maxlength]="10"\n [(ngModel)]="startDate"\n (keyup)="generatedStartDate($event.target.value, true)"\n (change)="generatedStartDate($event.target.value, false)" />\n\n <input gipiMatEndDate\n class="input-element"\n [attr.id]="idEndDate"\n [attr.name]="nameEndDate"\n [placeholder]="placeholderEndDate"\n [disabled]="disabled"\n [required]="required"\n [readOnly]="readonly"\n [autocomplete]="\'off\'"\n [autofocus]="false"\n [maxlength]="10"\n [(ngModel)]="endDate"\n (keyup)="generatedEndDate($event.target.value, true)"\n (change)="generatedEndDate($event.target.value, false)" />\n </gipi-mat-date-range-input>\n\n <div class="suffix">\n <gipi-mat-datepicker-toggle matSuffix\n [for]="rangepicker">\n </gipi-mat-datepicker-toggle>\n </div>\n </div>\n\n <small *ngIf="help"\n class="input-help">\n {{ help }}\n </small>\n</div>\n\n<gipi-mat-date-range-picker #rangepicker\n [maxRange]="maxRange"\n [templatePresetRange]="templatePresetRange">\n</gipi-mat-date-range-picker>\n\n<ng-template #templatePresetRange\n let-component>\n <gipi-preset-range [matDateRangeInput]="matDateRangeInput"\n [matCalendar]="component"\n [matDateRangePicker]="rangepicker"\n [customRangeLabel]="\'Personalizado\'"\n [maxRange]="maxRange"\n [ranges]="ranges">\n </gipi-preset-range>\n</ng-template>\n',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return i})),multi:!0}],host:{class:"gipi-date-range-picker"},styles:[":host{display:block;width:100%;min-width:0;max-width:100%;flex:1}.input-wrapper{display:flex;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}.input-wrapper .input-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}.input-wrapper .input-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}.input-wrapper .input-content{display:flex;font-family:inherit;font-size:inherit;color:inherit;height:4rem;background:#fff;border:1px solid rgba(0,0,0,.12);transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.6rem}.input-wrapper .input-content .input-element{padding:.75rem .8rem;border:none;outline:0;background-color:transparent;flex:1;color:inherit;caret-color:#696969;min-width:0}.input-wrapper .input-content:not(.input-element:disabled):has(.input-element:enabled:hover),.input-wrapper .input-content:not(.input-element:disabled):has(.prefix:hover),.input-wrapper .input-content:not(.input-element:disabled):has(.suffix:hover){border-color:#6d6f73}.input-wrapper .input-content:not(.input-element:disabled):has(.input-element:enabled:focus){outline:0;outline-offset:0;box-shadow:0 0 0 .2rem #e0e1e2;border-color:#6d6f73}.input-wrapper .input-content:has(.input-element:disabled){color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;cursor:not-allowed}.input-wrapper .input-content:has(.input-element:disabled) .suffix>mat-icon{color:#bbbdc1!important}.input-wrapper .input-content .input-element:disabled{cursor:not-allowed}.input-wrapper .input-content .suffix{display:flex;align-items:center;justify-content:center;padding-block:.75rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding-right:.8rem}.input-wrapper .input-content .suffix>mat-icon{width:2rem;height:2rem;font-size:2rem;color:#696969}.input-wrapper .input-help{flex:1;font-size:1rem;font-weight:500;margin-top:-.4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}::ng-deep .mat-date-range-input{height:4rem!important;padding-left:.8rem!important}::ng-deep .mat-date-range-input-container,::ng-deep .mat-date-range-input-end-wrapper,::ng-deep .mat-date-range-input-inner,::ng-deep .mat-date-range-input-start-wrapper{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;max-width:100%;min-height:100%;height:100%;padding-bottom:3px}::ng-deep .mat-date-range-input-end-wrapper{padding-bottom:0!important}::ng-deep .mat-date-range-input-inner{padding:0!important}::-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])],n)}(),ur=function(){function e(e){this._dateAdapter=e}return e.prototype.selectionFinished=function(e,t){var n=t.start,i=t.end;if(null==n)n=e;else if(null==i&&e&&this._dateAdapter.compareDate(e,n)>=0){var o=this._dateAdapter.addCalendarDays(n,this.delta-1);i=e>o?o:e}else n=e,i=null;return new Qi(n,i)},e.prototype.createPreview=function(e,t){if(t.start&&!t.end){var n=this._dateAdapter.addCalendarDays(t.start,this.delta-1),i=e?e>n?n:e:null;return new Qi(t.start,i)}return new Qi(null,null)},e.ctorParameters=function(){return[{type:Ji}]},e=_e([t.Injectable(),Ce("design:paramtypes",[Ji])],e)}(),hr=function(){function e(e){this.maxRangeStrategy=e}return Object.defineProperty(e.prototype,"maxRange",{set:function(e){this.maxRangeStrategy.delta=+e||365},enumerable:!1,configurable:!0}),e.ctorParameters=function(){return[{type:ur,decorators:[{type:t.Inject,args:[fo]}]}]},_e([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"maxRange",null),e=_e([t.Directive({selector:"[maxRange]",providers:[{provide:fo,useClass:ur}]}),we(0,t.Inject(fo)),Ce("design:paramtypes",[ur])],e)}(),gr=he,mr=function(){function e(e){this._changeDetectorRef=e,this._destroy$=new ie.Subject,this.rangesArray=[],this.selectedRange="",this.matDateRangeInput=null,this.matCalendar=null,this.matDateRangePicker=null,this._customRangeLabel="Personalizado"}var n;return n=e,Object.defineProperty(e.prototype,"customRangeLabel",{get:function(){return this._customRangeLabel},set:function(e){this._customRangeLabel=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ranges",{get:function(){return this._ranges},set:function(e){this._ranges=e,this._renderRanges()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxRange",{get:function(){return this._maxRange},set:function(e){this._maxRange=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_startDate",{get:function(){return this.matCalendar.selected.start},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_endDate",{get:function(){return this.matCalendar.selected.end},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_minDate",{get:function(){return this.matCalendar.minDate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_maxDate",{get:function(){return this.matCalendar.maxDate},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.matCalendar.stateChanges.pipe(oe.takeUntil(this._destroy$)).subscribe((function(){e._loadSelectedRange(),e._changeDetectorRef.markForCheck()})),this._loadSelectedRange()},e.prototype.ngOnDestroy=function(){this._destroy$.next()},e.prototype._renderRanges=function(){var e,t;if("object"==typeof this.ranges){for(var n in this.ranges)if(this.ranges[n]){e=(this.ranges[n][0],gr(this.ranges[n][0])),t=(this.ranges[n][1],gr(this.ranges[n][1]));var i=gr(this._minDate).clone(),o=gr(this._maxDate).clone();if(i.isValid()&&e.isBefore(i)&&(e=i.clone()),o.isValid()&&e.clone().add(this.maxRange-1,"days").isAfter(o)&&(o=e),o.isValid()&&t.isAfter(o)&&(t=o.clone()),i&&t.isBefore(i,"day")||o&&e.isAfter(o,"day"))continue;this.ranges[n]=[e,t]}for(var n in this.ranges)this.ranges[n]&&this.rangesArray.push(n)}this._loadSelectedRange()},e.prototype._loadSelectedRange=function(){var e=!0,t=0;if(this.rangesArray.length>0){var n=gr(this._startDate).startOf("day"),i=gr(this._endDate).startOf("day");for(var o in this.ranges)if(this.ranges[o]){var r=this.ranges[o][0].startOf("day"),a=this.ranges[o][1].startOf("day");if(n.isSame(r)&&i.isSame(a)){e=!1,this.selectedRange=this.rangesArray[t];break}t++}e&&(this.selectedRange=this.customRangeLabel)}else this.selectedRange=this.customRangeLabel},e.prototype._calculateDateRange=function(e){var t=this._minDate?gr(this._minDate):null,n=this._maxDate?gr(this._maxDate):null,i=Oe([this.ranges[e][0],this.ranges[e][1]],2),o=i[0],r=i[1],a=null,s=null;if(a=t&&o.isBefore(t)?t.clone():o.clone(),s=n&&r.isAfter(n)?n.clone():r.clone(),e===this.customRangeLabel){var l=this.matCalendar.selected;a=l.start,s=l.end}return[this._getValidDateOrNull(a.toDate()),this._getValidDateOrNull(s.toDate())]},e.prototype._getValidDateOrNull=function(e){return this._isDateInstance(e)&&this._isValid(e)?e:null},e.prototype._isDateInstance=function(e){return e instanceof Date},e.prototype._isValid=function(e){return!isNaN(e.getTime())},e.prototype.clickRange=function(e,t){if(t!==this.customRangeLabel){var n=Oe(this._calculateDateRange(t),2),i=n[0],o=n[1];this.matDateRangePicker.select(i),this.matDateRangePicker.select(o),this.matDateRangePicker.close()}},e.prototype.isDisableRange=function(e){var t=this;if(e===this._customRangeLabel)return!1;var n=this._ranges[e],i=n.every((function(e){var n=gr(t.matCalendar.minDate);return!!n&&gr(e).isBefore(n)})),o=n.every((function(e){var n=gr(t.matCalendar.maxDate);return!!n&&gr(e).isAfter(n)}));return i||o},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},_e([t.Input(),Ce("design:type",Jo)],e.prototype,"matDateRangeInput",void 0),_e([t.Input(),Ce("design:type",Eo)],e.prototype,"matCalendar",void 0),_e([t.Input(),Ce("design:type",Go)],e.prototype,"matDateRangePicker",void 0),_e([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"customRangeLabel",null),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"ranges",null),_e([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"maxRange",null),e=n=_e([t.Component({selector:"gipi-preset-range",template:'<div class="preset-range-wrapper">\n <button *ngFor="let range of rangesArray"\n class="preset-range-btn"\n [class.selected]="range === selectedRange"\n [disabled]="isDisableRange(range)"\n (click)="clickRange($event, range)">\n {{ range }}\n </button>\n <button class="preset-range-btn"\n [disabled]="isDisableRange(customRangeLabel)"\n [class.selected]="selectedRange === customRangeLabel">\n {{ customRangeLabel }}\n </button>\n</div>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-preset-range"},styles:[".preset-range-wrapper{display:flex;flex-direction:column;padding:.9rem;height:100%;background:#f0f0f0;border-top-left-radius:.6rem;border-bottom-left-radius:.6rem}.preset-range-btn{display:flex;align-items:center;justify-content:flex-start;padding:.8rem;height:3.6rem;border-radius:.6rem;background-color:transparent;outline:0;cursor:pointer;color:#595959;border:none;transition:.2s}.preset-range-btn.selected{background-color:#e0313e;color:#fff}.preset-range-btn.selected:hover{background-color:#9f232c}.preset-range-btn:hover{background-color:#e0313e;color:#fff}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef])],e)}(),fr=he,yr=0,vr=function(){function e(e,t){this.elementRef=e,this._changeDetectorRef=t,this._name="gipi-date-range-"+yr++,this.id=this._name+"-date",this.name=this._name+"-date",this.label="",this.placeholder="__/__/____",this.help="",this._minDate=new Date("01/01/2000"),this._required=!1,this._readonly=!1,this._disabled=!1,this._dateFilter=null,this.onChange=function(){},this.onTouched=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"minDate",{get:function(){return this._minDate},set:function(e){this._minDate=e,ze.isNull(e)||this._minDate.setHours(0,0,0,0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxDate",{get:function(){return this._maxDate},set:function(e){this._maxDate=e,ze.isNull(e)||this._maxDate.setHours(0,0,0,0)},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,"readonly",{get:function(){return this._readonly},set:function(e){this._readonly=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,"dateFilter",{get:function(){return this._dateFilter},set:function(e){this._dateFilter=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.onChange(this._value),this.onTouched(this._value)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"formattedValue",{get:function(){return""},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.ngOnDestroy=function(){},e.prototype.writeValue=function(e){this.value=e,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.onInputContentClick=function(e){this.readonly&&this.matDatepickerToggleRef},e.prototype.generatedDate=function(e,t){if(t||"Firefox"!==pr.getBrowser()){var n=!1;!e.includes("/")||t&&10!==e.length?e.includes("/")||t&&8!==e.length||(this.value=fr(e,"DDMMYYYY").toDate(),n=!0):(this.value=fr(e,"DD/MM/YYYY").toDate(),n=!0),"Firefox"!==pr.getBrowser()?n&&!$i.isValid(this.value)&&(this.value=void 0):n&&!this.value&&(this.value=void 0)}},e.prototype.validateMinAndMaxDate=function(e){var t=fr(e,"DD/MM/YYYY").toDate();$i.isLessThan(t,this.minDate)?this.value=void 0:this.maxDate&&(this.value=$i.isGreaterThan(t,this.maxDate)?void 0:t)},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},_e([t.ViewChild(er,{static:!0}),Ce("design:type",er)],e.prototype,"matDatepickerToggleRef",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"help",void 0),_e([t.Input("min"),Ce("design:type",Date),Ce("design:paramtypes",[Date])],e.prototype,"minDate",null),_e([t.Input("max"),Ce("design:type",Date),Ce("design:paramtypes",[Date])],e.prototype,"maxDate",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"required",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"readonly",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disabled",null),_e([t.Input(),Ce("design:type",Function),Ce("design:paramtypes",[Function])],e.prototype,"dateFilter",null),_e([t.Input(),Ce("design:type",Date),Ce("design:paramtypes",[Date])],e.prototype,"value",null),e=n=_e([t.Component({selector:"gipi-datepicker",exportAs:"gipiDatePicker",template:'<div class="input-wrapper">\n\n <label *ngIf="label"\n class="input-label"\n [attr.for]="id">\n {{ label }}\n <span *ngIf="required"> * </span>\n </label>\n\n <div class="input-content"\n (click)="onInputContentClick($event)">\n <input matInput\n class="input-element"\n type="text"\n [attr.id]="id"\n [attr.name]="name"\n [gipiMatDatepicker]="picker"\n [min]="minDate"\n [max]="maxDate"\n [maxlength]="10"\n [placeholder]="placeholder"\n [disabled]="disabled"\n [required]="required"\n [readOnly]="readonly"\n [autocomplete]="\'off\'"\n [autofocus]="false"\n [(ngModel)]="value"\n (keyup)="generatedDate($event.target.value, true)"\n (change)="generatedDate($event.target.value, false)"\n (blur)="validateMinAndMaxDate($event.target.value)" />\n\n <div class="suffix">\n <gipi-mat-datepicker-toggle [for]="picker"> </gipi-mat-datepicker-toggle>\n </div>\n </div>\n\n <small *ngIf="help"\n class="input-help">\n {{ help }}\n </small>\n</div>\n\n<gipi-mat-datepicker #picker> </gipi-mat-datepicker>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-datepicker"},styles:[":host{display:block;width:100%;min-width:0;max-width:100%;flex:1}.input-wrapper{display:flex;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}.input-wrapper .input-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}.input-wrapper .input-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}.input-wrapper .input-content{display:flex;font-family:inherit;font-size:inherit;color:inherit;height:4rem;background:#fff;border:1px solid rgba(0,0,0,.12);transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.6rem}.input-wrapper .input-content .input-element{padding:.75rem .8rem;border:none;outline:0;background-color:transparent;flex:1;color:inherit;caret-color:#696969;min-width:0}.input-wrapper .input-content:not(.input-element:disabled):has(.input-element:enabled:hover),.input-wrapper .input-content:not(.input-element:disabled):has(.prefix:hover),.input-wrapper .input-content:not(.input-element:disabled):has(.suffix:hover){border-color:#6d6f73}.input-wrapper .input-content:not(.input-element:disabled):has(.input-element:enabled:focus){outline:0;outline-offset:0;box-shadow:0 0 0 .2rem #e0e1e2;border-color:#6d6f73}.input-wrapper .input-content:has(.input-element:disabled){color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;cursor:not-allowed}.input-wrapper .input-content:has(.input-element:disabled) .suffix>mat-icon{color:#bbbdc1!important}.input-wrapper .input-content .input-element:disabled{cursor:not-allowed}.input-wrapper .input-content .suffix{display:flex;align-items:center;justify-content:center;padding-block:.75rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding-right:.8rem}.input-wrapper .input-content .suffix>mat-icon{width:2rem;height:2rem;font-size:2rem;color:#696969}.input-wrapper .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)}(),br={parse:{dateInput:"DD/MM/YYYY"},display:{dateInput:"DD/MM/YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},xr=function(){function e(){}return e=_e([t.NgModule({imports:[i.CommonModule,I.MatButtonModule,P.MatDialogModule,ue.OverlayModule,m.A11yModule,y.PortalModule,r.FormsModule,r.ReactiveFormsModule,de.PlatformModule,a.MatNativeDateModule],exports:[v.ScrollingModule,r.FormsModule,r.ReactiveFormsModule,de.PlatformModule,Eo,co,qo,Ho,Xo,er,Qo,xo,So,_o,Oo,Jo,Mo,Fo,Go,hr,mr,cr,vr],declarations:[Eo,co,qo,Ho,Xo,er,Qo,xo,So,_o,Oo,Jo,Mo,Fo,Go,hr,mr,cr,vr],providers:[lo,zo,{provide:Ji,useClass:lr,deps:[Ki]},{provide:Ki,useValue:"pt-BR"},{provide:Re,useValue:br}],entryComponents:[Ho]})],e)}(),_r=he,wr=function(){function e(e){this._changeDetectorRef=e,this._subscriptions=new ie.Subscription,this._animationState="enter",this._animationDone=new ie.Subject,this.years=[],this.months=[],this._calendarView="both"}var n;return n=e,e.prototype.ngOnInit=function(){this._locale?_r.locale(this._locale):_r.locale("pt-br"),this.months=ke(this.monthYearPicker.model.months),this._calendarView=this.monthYearPicker.calendarView,"year"===this._calendarView&&this.toggleShowYears(),this.monthYearPicker.onValueChange(this.monthYearPicker.model.selectedMonthIndex,this.monthYearPicker.model.selectedMonthYear)},e.prototype.ngAfterViewInit=function(){var e=this;this._changeDetectorRef&&this._subscriptions.add(this.monthYearPicker._stateChanges.subscribe((function(){e._changeDetectorRef.markForCheck()})))},e.prototype.ngOnDestroy=function(){this._subscriptions.unsubscribe(),this._animationDone.complete()},e.prototype._startExitAnimation=function(){this._animationState="void",this._changeDetectorRef&&this._changeDetectorRef.markForCheck()},e.prototype.decrement=function(){this.monthYearPicker.model.decrementYear(),this.isShowYears&&this._renderYears()},e.prototype.increment=function(){this.monthYearPicker.model.incrementYear(),this.isShowYears&&this._renderYears()},e.prototype.selectMonth=function(e){this.monthYearPicker.model.selectMonth(e),this.monthYearPicker.onValueChange(this.monthYearPicker.model.selectedMonthIndex,this.monthYearPicker.model.selectedMonthYear),this.monthYearPicker.close()},e.prototype.isSelectedMonth=function(e){return this.monthYearPicker.model.selectedMonthIndex==e&&this.monthYearPicker.model.selectedMonthYear==this.monthYearPicker.model.selectedYearMoment.year()},e.prototype.isCurrentMonth=function(e){var t=_r().month(),n=_r().year();return e===t&&this.monthYearPicker.model.selectedYearMoment.year()===n},e.prototype.isDisabledMonth=function(e){var t=!1;if(!ze.isNull(this.monthYearPicker)){var n=ze.isNull(this.monthYearPicker.min)?null:this.monthYearPicker.min.month,i=ze.isNull(this.monthYearPicker.max)?null:this.monthYearPicker.max.month;ze.isNull(n)||ze.isNull(i)?ze.isNull(n)?ze.isNull(i)||(t=e>i):t=e<n:t=e<n||e>i}return t},e.prototype.toggleShowYears=function(){this.isShowYears=!this.isShowYears,this._renderYears()},e.prototype._renderYears=function(){this.years=[];for(var e=11;e>0;e--)this.years.push(this.monthYearPicker.model.selectedYearMoment.year()-e);for(e=0;e<=12;e++)this.years.push(this.monthYearPicker.model.selectedYearMoment.year()+e)},Object.defineProperty(e.prototype,"periodButtonLabel",{get:function(){var e,t;return this.isShowYears?(e=this.years[0],t=this.years[this.years.length-1],e+" – "+t):this.monthYearPicker.model.selectedYearText},enumerable:!1,configurable:!0}),e.prototype.selectYear=function(e){"both"===this._calendarView&&(this.isShowYears=!1),this.monthYearPicker.model.selectedYearMoment=_r().year(e),this.monthYearPicker.model.updateYearText(),"year"===this._calendarView&&(this.monthYearPicker.onValueChange(this.monthYearPicker.model.selectedMonthIndex,e),this.monthYearPicker.close())},e.prototype.isSelectedYear=function(e){return this.monthYearPicker.model.selectedYearMoment.year()===e},e.prototype.isCurrentYear=function(e){return _r().year()===e},e.prototype.isDisabledYear=function(e){var t=!1;if(!ze.isNull(this.monthYearPicker)){var n=ze.isNull(this.monthYearPicker.min)?null:this.monthYearPicker.min.year,i=ze.isNull(this.monthYearPicker.max)?null:this.monthYearPicker.max.year;ze.isNull(n)||ze.isNull(i)?ze.isNull(n)?ze.isNull(i)||(t=e>i):t=e<n:t=e<n||e>i}return t},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},e=n=_e([t.Component({selector:"gipi-calendar-month-year",exportAs:"gipiMonthYearPicker",template:'<div class="month-picker">\n <div class="card-header">\n <button class="month-btn btn-control"\n [class.fixed]="(_calendarView === \'year\')"\n (click)="(_calendarView === \'both\') ? toggleShowYears() : null">\n {{ periodButtonLabel }}\n\n <div *ngIf="(_calendarView === \'both\')"\n class="btn-icon-arrow"\n [class.icon-arrow-invert]="isShowYears">\n </div>\n </button>\n\n <div class="card-prev-next">\n <button class="month-btn btn-decrement"\n (click)="decrement()">\n <mat-icon> chevron_left </mat-icon>\n </button>\n\n <button class="month-btn btn-increment"\n (click)="increment()">\n <mat-icon> chevron_right </mat-icon>\n </button>\n </div>\n </div>\n\n <div class="card-body">\n <ng-container *ngIf="!isShowYears && (_calendarView === \'both\')">\n <div *ngFor="let month of months; let i = index">\n <button class="month-btn btn-block"\n [class.selected]="isSelectedMonth(i)"\n [class.current]="isCurrentMonth(i)"\n [disabled]="isDisabledMonth(i)"\n (click)="selectMonth(i)">\n {{ month }}\n </button>\n </div>\n </ng-container>\n\n <ng-container *ngIf="isShowYears && ((_calendarView === \'both\') || (_calendarView === \'year\'))">\n <div *ngFor="let year of years; let i = index">\n <button class="month-btn btn-block"\n [class.selected]="isSelectedYear(year)"\n [class.current]="isCurrentYear(year)"\n [disabled]="isDisabledYear(year)"\n (click)="selectYear(year)">\n {{ year }}\n </button>\n </div>\n </ng-container>\n </div>\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],animations:[ge.matDatepickerAnimations.transformPanel,ge.matDatepickerAnimations.fadeInCalendar],host:{class:"gipi-calendar-month-year","[@transformPanel]":"_animationState","(@transformPanel.done)":"_animationDone.next()"},styles:[".month-picker{display:flex;flex-direction:column;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);background-color:#fff;color:rgba(0,0,0,.87);padding:1rem;width:30rem;height:36.5rem}.month-picker .card-header{display:flex;justify-content:space-between;gap:1rem;padding-bottom:2rem;border-bottom:1px solid #595959}.month-picker .card-header .card-prev-next{display:flex;gap:1rem;align-items:center}.month-picker .card-body{display:-ms-grid;display:grid;-ms-grid-rows:(1fr)[6];grid-template-rows:repeat(6,1fr);-ms-grid-columns:(1fr)[4];grid-template-columns:repeat(4,1fr);grid-auto-flow:row dense;gap:.6rem;padding-top:1.6rem}.month-btn{display:flex;align-items:center;justify-content:center;gap:.4rem;border-radius:4px;outline:0;border:1px solid transparent;padding:1rem;cursor:pointer;background-color:transparent;transition:.2s;text-transform:uppercase;color:#595959}.month-btn>mat-icon{font-size:2rem;width:2rem;height:2rem;line-height:2rem}.month-btn:not(:disabled).btn-control{height:3.6rem;font-weight:700}.month-btn:not(:disabled).btn-control.fixed{cursor:default}.month-btn:not(:disabled).btn-control:not(.fixed):hover{background-color:#f0f0f0}.month-btn:not(:disabled).btn-decrement,.month-btn:not(:disabled).btn-increment{width:3.6rem;height:3.6rem;background-color:#e0313e;color:#fff}.month-btn:not(:disabled).btn-decrement:hover,.month-btn:not(:disabled).btn-increment:hover{background-color:#cc2d38}.month-btn:not(:disabled).btn-block{width:96%;height:96%;background-color:#f0f0f0;color:#595959;border-radius:.6rem;max-height:3.5rem}.month-btn:not(:disabled).btn-block:hover,.month-btn:not(:disabled).selected{background-color:#e0313e;color:#fff}.month-btn:not(:disabled).selected.current{box-shadow:inset 0 0 0 1px #fff!important}.month-btn:not(:disabled).current{box-shadow:inset 0 0 0 1px #e0313e!important}.month-btn:disabled{cursor:not-allowed;opacity:.6;color:#9a9da2}.btn-icon-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:solid transparent;border-top-width:5PX;border-top-style:solid;margin:0 0 0 5PX;vertical-align:middle}.btn-icon-arrow.icon-arrow-invert{transform:rotate(180deg)}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef])],e)}(),Cr=he,Ir=new t.InjectionToken("gipi-month-year-scroll-strategy");function Sr(e){return function(){return e.scrollStrategies.reposition()}}var Er,Or={provide:Ir,deps:[ue.Overlay],useFactory:Sr},kr=function(){function e(e,t){this._month=e,this._year=t}return Object.defineProperty(e.prototype,"date",{get:function(){return Cr().day(1).month(this.month).year(this.year).startOf("day").toDate()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"month",{get:function(){return this._month},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"year",{get:function(){return this._year},enumerable:!1,configurable:!0}),e}(),Dr=function(){function e(){this.months=[],this.selectedYearMoment=Cr(),this.updateYearText(),this.selectedMonthMoment=Cr(),this.months=["Jan.","Fev.","Mar.","Abr.","Mai.","Jun.","Jul.","Ago.","Set.","Out.","Nov.","Dez."],this.selectedMonthIndex=this.selectedMonthMoment.month(),this.selectedMonthYear=this.selectedYearMoment.year()}return e.prototype.updateYearText=function(){this.selectedYearText=ze.isNull(Cr)?"":Cr(this.selectedYearMoment).format("YYYY")},e.prototype.selectMonth=function(e){this.selectedMonthMoment=Cr().month(e),this.selectedMonthIndex=this.selectedMonthMoment.month(),this.selectedMonthYear=this.selectedYearMoment.year()},e.prototype.incrementYear=function(){this.selectedYearMoment=this.selectedYearMoment.add(1,"year"),this.updateYearText()},e.prototype.decrementYear=function(){this.selectedYearMoment=this.selectedYearMoment.subtract(1,"year"),this.updateYearText()},e}(),Pr=0,Rr=function(){function e(e,n,i,o,r,a,s,l){this.elementRef=e,this._changeDetectorRef=n,this._overlay=i,this._ngZone=o,this._viewContainerRef=r,this._dir=s,this._document=l,this._name="gipi-date-range-"+Pr++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=this._name+"-backdrop",this._stateChanges=new ie.Subject,this.valueLabel="",this.id=this._name+"-date",this.name=this._name+"-date",this.label="",this.placeholder="",this.help="",this.xPosition="start",this.yPosition="below",this.calendarView="both",this._opened=!1,this._required=!1,this._disabled=!1,this._min=null,this._max=null,this.openedStream=new t.EventEmitter,this.closedStream=new t.EventEmitter,this.onChange=function(){},this.onTouched=function(){},this._scrollStrategy=a}var n;return n=e,Object.defineProperty(e.prototype,"opened",{get:function(){return this._opened},set:function(e){le.coerceBooleanProperty(e)?this.open():this.close()},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,"min",{get:function(){return this._min},set:function(e){this._min=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){var t=e;if(e||(t=null),t)switch(this.calendarView){case"both":this.valueLabel=Cr(t.date).format("MM/YYYY");break;case"year":this.valueLabel=Cr(t.date).format("YYYY");break;default:this.valueLabel=Cr(t.date).format("MM/YYYY")}this._value=t,this.onChange(this._value),this.onTouched(this._value)},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this.model=new Dr,this.year&&(this.model.selectedYearMoment=Cr().year(this.year)),this.month&&(this.model.selectedMonthIndex=this.month,this.model.selectedMonthMoment=Cr().month(this.month),this.year&&(this.model.selectedMonthYear=this.year)),this.model.updateYearText(),ze.isNull(this.month)&&ze.isNull(this.year)?(this.value=null,this._changeDetectorRef.detectChanges()):this.onValueChange(this.model.selectedMonthIndex,this.model.selectedMonthYear)},e.prototype.ngOnChanges=function(e){var t=e.xPosition||e.yPosition;t&&!t.firstChange&&this._popupRef&&(this._setConnectedPositions(this._popupRef.getConfig().positionStrategy),this.opened&&this._popupRef.updatePosition()),this._stateChanges.next(void 0)},e.prototype.ngOnDestroy=function(){this._destroyPopup(),this.close(),this._stateChanges.complete()},e.prototype.writeValue=function(e){this.value=e,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.onValueChange=function(e,t){var n=new kr(e,t);this.value=n,this._changeDetectorRef.detectChanges()},e.prototype.open=function(){if(!this._opened&&!this.disabled){if(!this.inputMonthYearContentRef)throw Error("Attempted to open an MonthYearPicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this._openAsPopup(),this._opened=!0,this.openedStream.emit()}},e.prototype.close=function(){var e=this;if(this._opened){if(this._popupComponentRef&&this._popupRef){var t=this._popupComponentRef.instance;t._startExitAnimation(),t._animationDone.pipe(oe.take(1)).subscribe((function(){return e._destroyPopup()}))}var n=function(){e._opened&&(e._opened=!1,e.closedStream.emit(),e._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(n)):n()}},e.prototype._openAsPopup=function(){var e=this,t=new y.ComponentPortal(wr,this._viewContainerRef);this._destroyPopup(),this._createPopup(),this._popupComponentRef=this._popupRef.attach(t),this._popupComponentRef.instance.monthYearPicker=this,this._ngZone.onStable.pipe(oe.take(1)).subscribe((function(){e._popupRef.updatePosition()}))},e.prototype._getConnectedOverlayOrigin=function(){return this.inputMonthYearContentRef?this.inputMonthYearContentRef:this.elementRef},e.prototype._createPopup=function(){var e=this,t=this._overlay.position().flexibleConnectedTo(this._getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition(),n=new ue.OverlayConfig({positionStrategy:this._setConnectedPositions(t),hasBackdrop:!0,backdropClass:["mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:this._scrollStrategy(),panelClass:"mat-month-year-picker-popup"});this._popupRef=this._overlay.create(n),this._popupRef.overlayElement.setAttribute("role","dialog"),ie.merge(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(oe.filter((function(t){return t.keyCode===se.ESCAPE||e.inputMonthYearContentRef&&t.altKey&&t.keyCode===se.UP_ARROW})))).subscribe((function(t){t&&t.preventDefault(),e.close()}))},e.prototype._destroyPopup=function(){this._popupRef&&(this._popupRef.dispose(),this._popupRef=this._popupComponentRef=null)},e.prototype._setConnectedPositions=function(e){var t="end"===this.xPosition?"end":"start",n="start"===t?"end":"start",i="above"===this.yPosition?"bottom":"top",o="top"===i?"bottom":"top";return e.withPositions([{originX:t,originY:o,overlayX:t,overlayY:i},{originX:t,originY:i,overlayX:t,overlayY:o},{originX:n,originY:o,overlayX:n,overlayY:i},{originX:n,originY:i,overlayX:n,overlayY:o}])},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef},{type:ue.Overlay},{type:t.NgZone},{type:t.ViewContainerRef},{type:void 0,decorators:[{type:t.Inject,args:[Ir]}]},{type:ce.Directionality,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[i.DOCUMENT]}]}]},_e([t.ViewChild("inputMonthYearContent",{static:!1}),Ce("design:type",t.ElementRef)],e.prototype,"inputMonthYearContentRef",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"id",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"name",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"placeholder",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"help",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"locale",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"year",void 0),_e([t.Input(),Ce("design:type",Number)],e.prototype,"month",void 0),_e([t.Input(),Ce("design:type",Boolean)],e.prototype,"multiple",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"xPosition",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"yPosition",void 0),_e([t.Input(),Ce("design:type",String)],e.prototype,"calendarView",void 0),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"opened",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"required",null),_e([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disabled",null),_e([t.Input(),Ce("design:type",kr),Ce("design:paramtypes",[kr])],e.prototype,"min",null),_e([t.Input(),Ce("design:type",kr),Ce("design:paramtypes",[kr])],e.prototype,"max",null),_e([t.Input(),Ce("design:type",kr),Ce("design:paramtypes",[kr])],e.prototype,"value",null),_e([t.Output("opened"),Ce("design:type",t.EventEmitter)],e.prototype,"openedStream",void 0),_e([t.Output("closed"),Ce("design:type",t.EventEmitter)],e.prototype,"closedStream",void 0),e=n=_e([t.Component({selector:"gipi-month-year-picker",template:'<div class="input-wrapper">\n\n <label *ngIf="label"\n class="input-label"\n [attr.for]="id">\n {{ label }}\n <span *ngIf="required"> * </span>\n </label>\n\n <div class="input-content"\n #inputMonthYearContent\n (click)="open()">\n <input matInput\n class="input-element"\n type="text"\n [attr.id]="id"\n [attr.name]="name"\n [placeholder]="placeholder"\n [disabled]="disabled"\n [required]="required"\n [readOnly]="true"\n [autocomplete]="\'off\'"\n [autofocus]="false"\n [ngModel]="valueLabel"\n (click)="open()" />\n\n <div class="suffix">\n <button #button\n mat-icon-button\n type="button"\n class="btn-month-year-toggle"\n [attr.aria-label]="\'Abrir calendário mensal\'"\n [disabled]="disabled"\n (click)="open()">\n <svg class="month-year-toggle-default-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\n <small *ngIf="help"\n class="input-help">\n {{ help }}\n </small>\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-month-year-picker"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:block;width:100%;min-width:0;max-width:100%;flex:1}.input-wrapper{display:flex;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}.input-wrapper .input-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}.input-wrapper .input-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}.input-wrapper .input-content{display:flex;font-family:inherit;font-size:inherit;color:inherit;height:4rem;background:#fff;border:1px solid rgba(0,0,0,.12);transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.6rem}.input-wrapper .input-content .input-element{padding:.75rem .8rem;border:none;outline:0;background-color:transparent;flex:1;color:inherit;caret-color:#696969;min-width:0}.input-wrapper .input-content:not(.input-element:disabled):has(.input-element:enabled:hover),.input-wrapper .input-content:not(.input-element:disabled):has(.prefix:hover),.input-wrapper .input-content:not(.input-element:disabled):has(.suffix:hover){border-color:#6d6f73}.input-wrapper .input-content:not(.input-element:disabled):has(.input-element:enabled:focus){outline:0;outline-offset:0;box-shadow:0 0 0 .2rem #e0e1e2;border-color:#6d6f73}.input-wrapper .input-content:has(.input-element:disabled){color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;cursor:not-allowed}.input-wrapper .input-content:has(.input-element:disabled) .suffix>mat-icon{color:#bbbdc1!important}.input-wrapper .input-content .input-element:disabled{cursor:not-allowed}.input-wrapper .input-content .suffix{display:flex;align-items:center;justify-content:center;padding-block:.75rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding-right:.8rem}.input-wrapper .input-content .suffix>mat-icon{width:2rem;height:2rem;font-size:2rem;color:#696969}.input-wrapper .input-help{flex:1;font-size:1rem;font-weight:500;margin-top:-.4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.month-year-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-icon-button .month-year-toggle-default-icon{margin:auto}.btn-month-year-toggle{width:2rem!important;height:2rem!important;line-height:2rem!important}"]}),we(5,t.Inject(Ir)),we(6,t.Optional()),we(7,t.Optional()),we(7,t.Inject(i.DOCUMENT)),Ce("design:paramtypes",[t.ElementRef,t.ChangeDetectorRef,ue.Overlay,t.NgZone,t.ViewContainerRef,Object,ce.Directionality,Object])],e)}(),Ar=function(){function e(){}return e=_e([t.NgModule({imports:[i.CommonModule,I.MatButtonModule,P.MatDialogModule,ue.OverlayModule,m.A11yModule,y.PortalModule,F.MatIconModule,r.FormsModule,r.ReactiveFormsModule],exports:[v.ScrollingModule,wr,Rr],declarations:[wr,Rr],providers:[Or],entryComponents:[wr]})],e)}(),Tr=[Gi,On,gn,wi,Ci,Gn,Ui,fi,Wi,yi,ti,ni,si,hn,li,pn,dn,ki,En,xn,Ln,di,ei,Kn,$n,Dn,Tn,vn,Fn,Xn,Jn,zn,wn,In,ri,Rn,cn,mi,hi,Si,Cn,fn,Hi,Oi,en,jn,zi,ji,Ai,Di,Pi,Ti,Fi,Ni],Mr=[an,Qt,Jt,qt,$t,on,rn,tn],Fr=[ln],Nr=[lt,Zt,Kt,nn],Lr={parse:{dateInput:"DD/MM/YYYY"},display:{dateInput:"DD/MM/YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},Vr=function(){function g(t){this._injector=t,e.INJECTOR=this._injector}return g.ctorParameters=function(){return[{type:t.Injector}]},g=_e([t.NgModule({declarations:[Tr,Mr,Fr,tt,et,Me,Qe,Ot,kt,Nt,Fe,Ne,gt,ft,Pt,Le,Rt,Lt,Ve,Xe,ht,zt,Ht,Bt,Yt,ct,Vt,Dt,jt,Mt,It,yt,xt,_t,vt,bt],imports:[i.CommonModule,s.RouterModule,r.FormsModule,r.ReactiveFormsModule,Te,o.FlexLayoutModule.withConfig({disableDefaultBps:!0},Ut),u.NgxMaskModule.forChild(),d.NgxCurrencyModule,h.NgxMaterialTimepickerModule,l.MdePopoverModule,c.InfiniteScrollModule,p.MentionModule,xr,Ar],exports:[Tr,Mr,Fr,i.CommonModule,s.RouterModule,r.FormsModule,r.ReactiveFormsModule,o.FlexLayoutModule,n.CdkStepperModule,a.MatRippleModule,a.MatDialogModule,c.InfiniteScrollModule,tt,et,Me,Qe,Ot,kt,Nt,Fe,Ne,gt,ft,Pt,Le,Rt,Lt,Ve,Xe,ht,p.MentionModule,ct,Vt,Dt,jt,Mt,It,yt,xt,_t,vt,bt,xr,Ar],entryComponents:[xn,zi,ji,ht],providers:[Nr,Gt,{provide:Ji,useClass:lr,deps:[Ki]},{provide:Ki,useValue:"pt-BR"},{provide:Re,useValue:Lr}]}),Ce("design:paramtypes",[t.Injector])],g)}(),jr=function(e){function t(){var t=e.call(this)||this;return t.content=[],t.number=0,t}return be(t,e),t}(Ge),Br=function(e){function t(t,n){var i=e.call(this)||this;return i.field=t,i.direction=n,i}return be(t,e),t}(Ge);(Er=e.SortDirectionEnum||(e.SortDirectionEnum={})).ASC="ASC",Er.DESC="DESC";var zr,Yr=function(t){function n(e,n,i,o,r){var a=t.call(this,n,o,r)||this;return a.service=e,a.messageService=n,a.confirmationService=i,a.router=o,a.activatedRoute=r,a}return be(n,t),n.prototype.ngOnInit=function(){t.prototype.ngOnInit.call(this),this.service.returnPath=this.getPath(),this.page=this.newPage(),this.filter=this.newFilterDTO(),this.getFilterDTOSessionStorage(),this.columns=this.createTableColumns()},n.prototype.new=function(){var e=this;this.router.navigateByUrl(this.getPath(),{skipLocationChange:!0}).then((function(){return e.router.navigate([e.getPath(),"new"])}))},n.prototype.edit=function(e){var t=this;this.router.navigateByUrl(this.getPath(),{skipLocationChange:!0}).then((function(){return t.router.navigate([t.getPath(),"edit",e.id])}))},n.prototype.view=function(e){var t=this;this.router.navigateByUrl(this.getPath(),{skipLocationChange:!0}).then((function(){return t.router.navigate([t.getPath(),"view",e.id])}))},n.prototype.delete=function(t,n){var i=this;this.confirmationService.confirm({title:"Confirmação",message:e.INJECTOR.get(De).DELETE_CONFIRMATION,accept:function(){try{i.loading=!0,i.loadingChange.emit(i.loading),i.page=i.newPage(),i.preDelete(),i.service.delete(t.id).subscribe((function(){n?i.find():(i.new(),i.loading=!1,i.loadingChange.emit(i.loading)),i.addSuccessMessage(e.INJECTOR.get(De).SUCCESS)}),(function(e){i.isFinding()&&i.clear(),i.handleError(e)}))}catch(e){i.handleError(e)}}})},n.prototype.deleteAll=function(t,n){var i=this;this.confirmationService.confirm({title:"Confirmação",message:e.INJECTOR.get(De).DELETE_ALL_CONFIRMATION,accept:function(){try{i.loading=!0,i.loadingChange.emit(i.loading),i.page=i.newPage(),i.preDelete(),i.service.deleteAll(t).subscribe((function(){n?i.find():(i.new(),i.loading=!1,i.loadingChange.emit(i.loading)),i.addSuccessMessage(e.INJECTOR.get(De).SUCCESS)}),(function(e){i.isFinding()&&i.clear(),i.handleError(e)}))}catch(e){i.handleError(e)}}})},n.prototype.updateStatus=function(t,n){var i=this;this.confirmationService.confirm({title:"Confirmação",message:"Deseja realmente "+(n?"ativar":"inativar")+" este registro?",accept:function(){try{i.loading=!0,i.loadingChange.emit(i.loading),i.service.save(t).subscribe((function(){i.clear(),i.addSuccessMessage(e.INJECTOR.get(De).SUCCESS)}),(function(e){i.clear(),i.handleError(e)}))}catch(e){i.handleError(e)}},cancel:function(){return i.clear()}})},n.prototype.preDelete=function(){},n.prototype.clear=function(){this.page=this.newPage(),this.filter=this.newFilterDTO(),this.find()},n.prototype.getPath=function(){return this.activatedRoute.snapshot.parent.parent.url[0].path+"/"+this.activatedRoute.snapshot.parent.url[0].path},n.prototype.newPage=function(){return new jr},n.prototype.newFilterDTO=function(){return null},n.prototype.getFilterDTOSessionStorage=function(){return Promise.resolve()},n.prototype.createTableColumns=function(){return[]},n.prototype.createSorts=function(){return[]},n.prototype.find=function(t){var n=this;this.loading=!0,this.loadingChange.emit(this.loading),this.page=this.newPage(),ze.isNull(this.filter)&&(this.filter=this.newFilterDTO()),ze.isNull(t)&&!ze.isNull(this.tablePageEventDTO)&&(t=this.tablePageEventDTO,ze.hasPropertyInObj(t,"pageIndex")&&(t.pageIndex=0)),t?(this.tablePageEventDTO=t,this.filter.pageNumber=t.pageIndex,this.filter.pageSize=t.pageSize,this.filter.offset=t.pageIndex*t.pageSize,t.sort&&(this.filter.sorts=[new Br(t.sort.active,je.isEmpty(t.sort.direction)?e.SortDirectionEnum.DESC:t.sort.direction.toUpperCase())])):(this.filter.pageNumber=0,this.filter.offset=0,this.filter.pageSize=10),this.service.find(this.filter).subscribe((function(e){n.page=e,n.loading=!1,n.loadingChange.emit(n.loading)}),(function(e){return n.handleError(e)}))},n.prototype.isFinding=function(){return 0===this.router.url.split("/").filter((function(e){return"new"===e||"edit"===e})).length},n.prototype.isViewing=function(){return this.router.url.split("/").filter((function(e){return"view"===e})).length>0},n.prototype.isCreating=function(){return this.router.url.split("/").filter((function(e){return"new"===e})).length>0},n}(He),Hr=function(n){function i(e,i,o,r,a){var s=n.call(this,e,i,o,r,a)||this;return s.service=e,s.messageService=i,s.confirmationService=o,s.router=r,s.activatedRoute=a,s.entityChange=new t.EventEmitter(!0),s}return be(i,n),Object.defineProperty(i.prototype,"entity",{get:function(){return this.entityValue},set:function(e){this.entityValue=e,this.entityChange.emit(this.entityValue)},enumerable:!1,configurable:!0}),i.prototype.ngOnInit=function(){n.prototype.ngOnInit.call(this),this.entity=this.newEntity(),this.initializeForm()},i.prototype.save=function(t,n){var i=this;try{this.loading=!0,this.loadingChange.emit(this.loading),n&&(this.page=this.newPage()),this.preSave(),this.service.save(this.entity).subscribe((function(o){i.addSuccessMessage(e.INJECTOR.get(De).SUCCESS),t?i.edit(o):n?i.find():i.router.navigateByUrl(i.getPath(),{skipLocationChange:!0}).then((function(){return i.router.navigate([i.getPath()])}))}),(function(e){return i.handleError(e)}))}catch(e){this.handleError(e)}},i.prototype.preSave=function(){},i.prototype.return=function(){var t=this;this.isViewing()?this.router.navigateByUrl(this.service.returnPath,{skipLocationChange:!0}).then((function(){return t.router.navigate([t.service.returnPath])})):this.confirmationService.confirm({title:"Confirmação",message:e.INJECTOR.get(De).RETURN_CONFIRMATION,accept:function(){return t.router.navigateByUrl(t.service.returnPath,{skipLocationChange:!0}).then((function(){return t.router.navigate([t.service.returnPath])}))}})},i.prototype.initializeForm=function(){var e=this;this.loading=!0,this.loadingChange.emit(this.loading);var t=this.activatedRoute.snapshot.params.id;t?this.service.getOne(t).subscribe((function(t){e.entity=t,e.afterInitializeForm(),e.loading=!1,e.loadingChange.emit(e.loading)}),(function(t){return e.handleError(t)})):(this.entity=this.newEntity(),this.loading=!1,this.loadingChange.emit(this.loading))},i.prototype.afterInitializeForm=function(){},_e([t.Output(),Ce("design:type",t.EventEmitter)],i.prototype,"entityChange",void 0),_e([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],i.prototype,"entity",null),i}(Yr),Ur=he,Gr=function(e){function n(t,n,i){var o=e.call(this)||this;return o.router=t,o.http=n,o._matDialog=i,o._tokenSubject$=new ie.BehaviorSubject(JSON.parse(localStorage.getItem("token"))),o.token$=o._tokenSubject$.asObservable(),o}return be(n,e),n.prototype.login=function(e,t){var n=this,i=(new ne.HttpParams).set("grant_type","password").set("username",e).set("password",t);return this.http.post("api/authenticator/oauth/token",i,this.options(this.buildParams(),this.buildHeaders().append("skip",String(!0)))).pipe(oe.map((function(e){return n.isValidToken(e)&&n.setSession(e),e})),oe.takeUntil(this.onDestroy),oe.catchError(this.handleError))},n.prototype.logout=function(){var e=this;this.revokeToken().subscribe((function(t){e.removeSession(),e._matDialog.closeAll(),e.router.navigate(["/oauth/login"],{queryParams:{returnUrl:e.router.routerState.snapshot.url}})}),(function(e){throw new Error(e)}))},n.prototype.refreshToken=function(e){var t=this,n=(new ne.HttpParams).set("grant_type","refresh_token").set("refresh_token",this.token.refreshToken);return ze.isNull(e)||e.forEach((function(e,t){return n=n.append(t,e)})),this.http.post("api/authenticator/oauth/token",n,this.options(this.buildParams(),this.buildHeaders().append("skip","true"))).pipe(oe.map((function(e){return t.setSession(e)})),oe.takeUntil(this.onDestroy),oe.catchError(this.handleError))},n.prototype.revokeToken=function(e){var t=null;return ze.isNull(e)||(t=(new ne.HttpHeaders).append("Authorization",e.accessToken).append("skip","true")),this.http.post("api/authenticator/oauth/token/revoke",{},this.options(null,t)).pipe(oe.takeUntil(this.onDestroy),oe.catchError(this.handleError))},n.prototype.setSession=function(e){return this.isValidToken(e)&&(localStorage.setItem("token",JSON.stringify(e)),this._tokenSubject$.next(e)),e},n.prototype.removeSession=function(){localStorage.removeItem("token"),sessionStorage.clear()},n.prototype.isValidToken=function(e){if(!ze.isNull(e)&&!ze.isNull(e.expiration)){var t=Ur(e.expiration);return Ur().isBefore(t)}return!1},Object.defineProperty(n.prototype,"token",{get:function(){var e=localStorage.getItem("token");return je.isEmpty(e)?null:JSON.parse(e)},enumerable:!1,configurable:!0}),n.prototype.buildHeaders=function(){return(new ne.HttpHeaders).append("Authorization","Basic "+btoa("CONVENANT_MANAGEMENT:123")).append("Content-Type","application/x-www-form-urlencoded").append("accessType","WEB").append("timeZone",Ur(new Date).format("ZZ"))},n.ctorParameters=function(){return[{type:s.Router},{type:ne.HttpClient},{type:a.MatDialog}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(s.Router),t.ɵɵinject(ne.HttpClient),t.ɵɵinject(P.MatDialog))},token:n,providedIn:"root"}),n=_e([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[s.Router,ne.HttpClient,a.MatDialog])],n)}(We),qr=function(){function e(e){this._authenticationService=e}return e.prototype.intercept=function(e,t){var n=this._authenticationService.token;return ze.isNull(n)||je.isEmpty(n.accessToken)||e.headers.get("skip")||(e=e.clone({setHeaders:{Authorization:"Bearer "+n.accessToken}})),t.handle(e)},e.ctorParameters=function(){return[{type:Gr}]},e=_e([t.Injectable(),Ce("design:paramtypes",[Gr])],e)}(),$r=function(){function e(e){this._injector=e}return e.prototype.intercept=function(e,t){var n=this;return t.handle(e).pipe(oe.catchError((function(e){return Ie(n,void 0,void 0,(function(){var t;return Se(this,(function(n){switch(n.label){case 0:return this._router=this._injector.get(s.Router),t=null,e instanceof ne.HttpErrorResponse&&e.error instanceof Blob&&"application/json"===e.error.type?[4,this.blobToJson(e).then((function(e){!ze.isNull(e)&&e instanceof ne.HttpErrorResponse&&(t=e)}))]:[3,2];case 1:return n.sent(),[3,3];case 2:e instanceof ne.HttpErrorResponse&&(t=e),n.label=3;case 3:return[4,this.validateErrors(t)];case 4:return[4,n.sent().toPromise().then((function(e){return e}))];case 5:return[2,n.sent()]}}))}))})))},e.prototype.validateErrors=function(e){return Ie(this,void 0,void 0,(function(){var n=this;return Se(this,(function(i){return[2,new Promise((function(i,o){var r=e.error.message||e.statusText,a=e.error.apierror;if(ze.isNull(a))if(navigator.onLine){if(504===e.status)return void n._injector.get(t.NgZone).run((function(){return n._router.navigate(["/errors/504"])}))}else r="Sem internet";else if("INTERNAL_SERVER_ERROR"===a.status&&a.debugMessage&&a.debugMessage.toUpperCase().includes("QUERY DID NOT RETURN A UNIQUE RESULT"))r="A consulta não retornou resultado único";else if("INTERNAL_SERVER_ERROR"===a.status&&a.message&&a.message.toUpperCase().includes("NENHUM REGISTRO FOI ENCONTRADO"))r="Nenhum registro foi encontrado";else if("INTERNAL_SERVER_ERROR"===a.status&&a.message&&a.message.toUpperCase().includes("OCORREU UM PROBLEMA INESPERADO"))r="Ocorreu um problema inesperado";else{if("FORBIDDEN"===a.status)return void n._injector.get(t.NgZone).run((function(){return n._router.navigate(["/errors/403"])}));"UNAUTHORIZED"===a.status?(r="Sua sessão expirou",n._injector.get(Gr).logout()):r=Et.isEmpty(a.subErrorList)?a.message:a.subErrorList[0].rejectedMessage}return i(ie.throwError(r))}))]}))}))},e.prototype.blobToJson=function(e){return Ie(this,void 0,void 0,(function(){return Se(this,(function(t){return[2,new Promise((function(t,n){try{var i=null,o=new FileReader;o.onload=function(n){var o=JSON.parse(n.target.result);i=new ne.HttpErrorResponse({error:o,headers:e.headers,status:e.status,statusText:e.statusText,url:e.url}),t(i)},o.readAsText(e.error)}catch(e){n(null),ie.throwError(e)}}))]}))}))},e.ctorParameters=function(){return[{type:t.Injector}]},e=_e([t.Injectable(),Ce("design:paramtypes",[t.Injector])],e)}(),Wr=function(e){function n(t,n){var i=e.call(this)||this;return i._breakpointObserver=t,i.dialog=n,i}return be(n,e),n.prototype.open=function(e){var t={panelClass:e.panelClass,disableClose:e.disableClose,width:e.width,height:e.height,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,position:e.position,data:e.data,autoFocus:e.autoFocus||!1,restoreFocus:e.restoreFocus||!1,closeOnNavigation:e.closeOnNavigation||!0};return this.dialog.open(e.componentOrTemplateRef,t)},n.prototype._calcHeightByBody=function(){return(document&&document.body?document.body.getBoundingClientRect():null).height-80+"px"},n.prototype._coerceNumber=function(e){if(je.isEmpty(e))return null;var t=e.match(/\d+/);return t?parseInt(t[0],10):null},n.ctorParameters=function(){return[{type:pe.BreakpointObserver},{type:a.MatDialog}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(pe.BreakpointObserver),t.ɵɵinject(P.MatDialog))},token:n,providedIn:"root"}),n=_e([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[pe.BreakpointObserver,a.MatDialog])],n)}(We),Kr=function(){function e(e,t){this._matIconRegistry=e,this._domSanitizer=t}return e.prototype.registerListSvgIcons=function(e,t){var n,i,o=Object.values(e);try{for(var r=Ee(o),a=r.next();!a.done;a=r.next()){var s=a.value;this.registerSvgIcon(s,t)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}},e.prototype.registerSvgIcon=function(e,t){try{var n=this._domSanitizer.bypassSecurityTrustResourceUrl(t+"/"+e+".svg");this._matIconRegistry.addSvgIcon(e,n)}catch(e){throw new Error(e)}},e.prototype.registerSvgIconLiteral=function(e,t){try{this._matIconRegistry.addSvgIconLiteral(e,t)}catch(e){throw new Error(e)}},e.ctorParameters=function(){return[{type:a.MatIconRegistry},{type:fe.DomSanitizer}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(F.MatIconRegistry),t.ɵɵinject(fe.DomSanitizer))},token:e,providedIn:"root"}),e=_e([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[a.MatIconRegistry,fe.DomSanitizer])],e)}(),Xr=function(){function e(){}return e.format=function(e,t,n){if(void 0===n&&(n=!1),!ze.isNull(e)){var i=null;i=e instanceof Date?{hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds()}:e;var o=this.TIME_FORMAT;return"FULL"===t.trim().toUpperCase()?o="HH:mm:ss"+(n?" AA":""):"SHORT"===t.trim().toUpperCase()?o="HH:mm"+(n?" AA":""):je.isEmpty(t.trim())||(o=t.trim()),this._formatDate(i,o)}return je.EMPTY},e._formatDate=function(e,t){var n=e.hour,i=n>12?n-12:0===n?12:n;t=(t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+this._padToAnyDigits(n))).replace(/(^|[^\\])H/g,"$1"+n)).replace(/(^|[^\\])hh+/g,"$1"+this._padToAnyDigits(i))).replace(/(^|[^\\])h/g,"$1"+i);var o=e.minute;t=(t=t.replace(/(^|[^\\])mm+/g,"$1"+this._padToAnyDigits(o))).replace(/(^|[^\\])m/g,"$1"+o);var r=e.second,a=n<12?"AM":"PM";t=(t=(t=(t=t.replace(/(^|[^\\])ss+/g,"$1"+this._padToAnyDigits(r))).replace(/(^|[^\\])s/g,"$1"+r)).replace(/(^|[^\\])AA+/g,"$1"+a)).replace(/(^|[^\\])A/g,"$1"+a.charAt(0));var s=a.toLowerCase();return t=(t=(t=t.replace(/(^|[^\\])aa+/g,"$1"+s)).replace(/(^|[^\\])a/g,"$1"+s.charAt(0))).replace(/\\(.)/g,"$1")},e._padToAnyDigits=function(e,t){return void 0===t&&(t=2),e.toString().padStart(t,"0")},e.TIME_FORMAT="HH:mm:ss",e}(),Zr=function(){function e(){}var n;return n=e,e.prototype.transform=function(e,i,o){void 0===o&&(o=!1);try{return Xr.format(e,i,o)}catch(e){throw new Error("InvalidPipeArgument: '"+n+"' for pipe '"+t.ɵstringify(e.message)+"'")}},e=n=_e([t.Pipe({name:"localtime"})],e)}(),Jr=function(){function e(e,t){this.path=e,this.version=t,this.handleDestroy=new ie.Subject}return e.prototype.ngOnDestroy=function(){this.handleDestroy.next(),this.handleDestroy.complete()},e.prototype.url=function(e,t){var n="";je.isEmpty(t)?je.isEmpty(t)&&!je.isEmpty(this.version)&&(n="/"+this.version.toLowerCase()):n="/"+t.toLowerCase();var i="";return je.isEmpty(e)||(i="/"+e),"api/"+this.path+n+i},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.handleMapper=function(e){return e},e.prototype.handleError=function(e){return ie.throwError(e)},e}(),Qr=function(e){function t(t,n,i){var o=e.call(this,t,n)||this;return o.path=t,o.version=n,o.baseService=i,o}return be(t,e),t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t.prototype.save=function(e,t){return this.validate(e),this.baseService.httpClient.post(this.url("",t),e,this.options()).pipe(oe.map(this.handleMapper),oe.takeUntil(this.handleDestroy),oe.catchError(this.handleError))},t.prototype.saveAll=function(e,t){for(var n=0;n<e.length;n++)this.validate(e[n]);return this.baseService.httpClient.post(this.url("save-all",t),e,this.options()).pipe(oe.map(this.handleMapper),oe.takeUntil(this.handleDestroy),oe.catchError(this.handleError))},t.prototype.delete=function(e,t){return this.baseService.httpClient.delete(this.url(""+e,t)).pipe(oe.map((function(){return null})),oe.takeUntil(this.handleDestroy),oe.catchError(this.handleError))},t.prototype.deleteAll=function(e,t){for(var n=0;n<e.length;n++)if(!Ye.isValid(e[n]))return ie.of(!1);return this.baseService.httpClient.post(this.url("delete-all",t),e,this.options()).pipe(oe.map((function(){return!0})),oe.takeUntil(this.handleDestroy),oe.catchError(this.handleError))},t.prototype.getOne=function(e,t){return this.baseService.httpClient.get(this.url(""+e,t),this.options()).pipe(oe.map(this.handleMapper),oe.takeUntil(this.handleDestroy),oe.catchError(this.handleError))},t.prototype.find=function(e){return this.baseService.httpClient.get(this.url("",e),this.options()).pipe(oe.map(this.handleMapper),oe.takeUntil(this.handleDestroy),oe.catchError(this.handleError))},t.prototype.findAll=function(e,t){return this.baseService.httpClient.post(this.url("find-all",t),e,this.options()).pipe(oe.map(this.handleMapper),oe.takeUntil(this.handleDestroy),oe.catchError(this.handleError))},t.prototype.findAllEnabled=function(e,t,n){var i=Math.max(e,0),o=Math.max(t,10),r=new URLSearchParams;r.set("page",i.toString()),r.set("size",o.toString());var a=je.isEmpty(r.toString())?"":"?"+r.toString();return this.baseService.httpClient.get(this.url("find-all-enabled"+a,n),this.options()).pipe(oe.map(this.handleMapper),oe.takeUntil(this.handleDestroy),oe.catchError(this.handleError))},t.prototype.findByValue=function(e,t,n,i,o){var r=je.isEmpty(e)?"":e.trim(),a=Math.max(t,0),s=Math.max(n,10),l=new URLSearchParams;l.set("value",r),l.set("page",a.toString()),l.set("size",s.toString()),ze.isNull(i)||je.isEmpty(i.field)||l.set("sort",i.field+","+i.direction);var p=je.isEmpty(l.toString())?"":"?"+l.toString();return this.baseService.httpClient.get(this.url("find-by-value"+p,o),this.options()).pipe(oe.map(this.handleMapper),oe.takeUntil(this.handleDestroy),oe.catchError(this.handleError))},t.prototype.enableOrDisable=function(e,t,n){return Ye.isValid(e)?this.baseService.httpClient.patch(this.url("/enable-or-disable/"+e+"/"+t,n),{},this.options()).pipe(oe.map((function(){return!0})),oe.takeUntil(this.handleDestroy),oe.catchError(this.handleError)):ie.of(!1)},t.prototype.enableOrDisableAll=function(e,t,n){for(var i=0;i<e.length;i++)if(!Ye.isValid(e[i]))return ie.of(!1);return this.baseService.httpClient.patch(this.url("/enable-or-disable-all/"+t,n),e,this.options()).pipe(oe.map((function(){return!0})),oe.takeUntil(this.handleDestroy),oe.catchError(this.handleError))},t.prototype.validate=function(e){return""},t}(Jr),ea=function(){function e(){}return 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.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e=_e([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[])],e)}(),ta=function(){function e(){this._storage=window.sessionStorage}return e.prototype.set=function(e,t){return!!this._storage&&(this._storage.setItem(e,JSON.stringify(t)),!0)},e.prototype.get=function(e){if(this._storage){var t=JSON.parse(this._storage.getItem(e));return ze.isNull(t)?null:t}return null},e.prototype.remove=function(e){return!!this._storage&&(this._storage.removeItem(e),!0)},e.prototype.clear=function(){return!!this._storage&&(this._storage.clear(),!0)},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e=_e([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[])],e)}(),na=function(){function e(e,t){this._injector=e,this._router=t,this._sessionStorageService=null,this._confirmationService=null,this._messageService=null,this._dialogService=null,this._fileService=null,this._matDialog=null,this._httpClient=null,this._changeDetectorRef=null,this._matSnackBar=null}return e.prototype.ngOnDestroy=function(){},Object.defineProperty(e.prototype,"sessionStorageService",{get:function(){return ze.isNull(this._sessionStorageService)&&(this._sessionStorageService=this._injector.get(ta)),this._sessionStorageService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"confirmationService",{get:function(){return ze.isNull(this._confirmationService)&&(this._confirmationService=this._injector.get(Sn)),this._confirmationService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"messageService",{get:function(){return ze.isNull(this._messageService)&&(this._messageService=this._injector.get(Ke)),this._messageService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dialogService",{get:function(){return ze.isNull(this._dialogService)&&(this._dialogService=this._injector.get(Wr)),this._dialogService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fileService",{get:function(){return ze.isNull(this._fileService)&&(this._fileService=this._injector.get(ea)),this._fileService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"matDialog",{get:function(){return ze.isNull(this._matDialog)&&(this._matDialog=this._injector.get(P.MatDialog)),this._matDialog},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"httpClient",{get:function(){return ze.isNull(this._httpClient)&&(this._httpClient=this._injector.get(ne.HttpClient)),this._httpClient},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"router",{get:function(){return ze.isNull(this._router)&&(this._router=this._injector.get(s.Router)),this._router},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"changeDetectorRef",{get:function(){return ze.isNull(this._changeDetectorRef)&&(this._changeDetectorRef=this._injector.get(t.ChangeDetectorRef)),this._changeDetectorRef},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"matSnackBar",{get:function(){return ze.isNull(this._matSnackBar)&&(this._matSnackBar=this._injector.get($.MatSnackBar)),this._matSnackBar},enumerable:!1,configurable:!0}),e.ctorParameters=function(){return[{type:t.Injector},{type:s.Router}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(t.INJECTOR),t.ɵɵinject(s.Router))},token:e,providedIn:"root"}),e=_e([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[t.Injector,s.Router])],e)}(),ia=function(){function e(e,t){this.baseService=e,this.activatedRoute=t,this._loading=!1,this._basePermissionList=null}return Object.defineProperty(e.prototype,"loading",{get:function(){return this._loading},set:function(e){this._loading=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"basePermissionList",{get:function(){return this._basePermissionList},set:function(e){this._basePermissionList=e},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this.onInitForm()},e.prototype.ngAfterViewInit=function(){this.onAfterInitForm()},e.prototype.ngOnDestroy=function(){this.onDestroy()},e.prototype.isCreating=function(){return this.baseService.router.url.split("/").filter((function(e){return"new"===e})).length>0},e.prototype.isEditing=function(){return this.baseService.router.url.split("/").filter((function(e){return"edit"===e})).length>0},e.prototype.isViewing=function(){return this.baseService.router.url.split("/").filter((function(e){return"view"===e})).length>0},e.prototype.isListing=function(){return 0===this.baseService.router.url.split("/").filter((function(e){return"new"===e||"edit"===e||"view"===e})).length},e.prototype.hasPermission=function(e){return!je.isEmpty(e)&&!!JSON.parse(localStorage.getItem("token")).user.authorities.find((function(t){return t.authority.match(e)}))},e.prototype.UUIDIsValid=function(e){return Ye.isValid(e)},e.prototype.onInitForm=function(){},e.prototype.onAfterInitForm=function(){},e.prototype.onDestroy=function(){},e.prototype.getPath=function(){return this.activatedRoute.snapshot.parent.parent.url[0].path+"/"+this.activatedRoute.snapshot.parent.url[0].path},e.prototype.navigateByUrl=function(e,t,n){var i=this;void 0===n&&(n=!0),this.baseService.router.navigateByUrl(e,{skipLocationChange:n}).then((function(){return i.baseService.router.navigate(t)}))},e.prototype.addMessage=function(e){this.baseService.matSnackBar.openFromComponent($e,{verticalPosition:"top",horizontalPosition:"center",duration:5e3,data:e})},e.prototype.addSuccessMessage=function(e){this.baseService.messageService.add({icon:"check_circle",title:"Sucesso",message:e,type:"success"})},e.prototype.addErrorMessage=function(e){this.baseService.messageService.add({icon:"cancel",title:"Erro",message:e,type:"error"})},e.prototype.addWarningMessage=function(e){this.baseService.messageService.add({icon:"error",title:"Atenção",message:e,type:"warning"})},e.prototype.addInfoMessage=function(e){this.baseService.messageService.add({icon:"info",title:"Informação",message:e,type:"info"})},e.prototype.handleError=function(e){throw this.loading=!1,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.getExistInRouterPath=function(e,t){void 0===t&&(t=!1);var n=this.baseService.router.url,i=n.slice(1,n.indexOf("?")+1).split("/"),o=n.slice(n.indexOf("?")+1,n.length).split("=");return t?o.filter((function(t){return t.toUpperCase()===e.toUpperCase()})).length>0:i.filter((function(t){return t.toUpperCase()===e.toUpperCase()})).length>0},e.ctorParameters=function(){return[{type:na},{type:s.ActivatedRoute}]},e=_e([t.Component({template:""}),Ce("design:paramtypes",[na,s.ActivatedRoute])],e)}(),oa=function(n){function i(e,t,i){var o=n.call(this,t,i)||this;return o.abstractCrudService=e,o.baseService=t,o.activatedRoute=i,o._entity=o.newEntity(),o}return be(i,n),Object.defineProperty(i.prototype,"entity",{get:function(){return this._entity},set:function(e){this._entity=e},enumerable:!1,configurable:!0}),i.prototype.ngOnInit=function(){if(n.prototype.ngOnInit.call(this),ze.isNull(this.basePermissionList))throw new Error("basePermissionList is required")},i.prototype.ngAfterViewInit=function(){n.prototype.ngAfterViewInit.call(this)},i.prototype.ngOnDestroy=function(){n.prototype.ngOnDestroy.call(this)},i.prototype.onInitForm=function(e){var t=this;try{this.loading=!0;var n=this.activatedRoute.snapshot.params.id;this.UUIDIsValid(n)?this.abstractCrudService.getOne(n,e).toPromise().then((function(e){t.entity=e,t.onAfterGetOne(),t.loading=!1}),(function(e){throw new Error(e)})):(this.entity=this.newEntity(),this.onAfterGetOne(),this.loading=!1)}catch(e){throw this.loading=!1,new Error(e)}},i.prototype.onAfterGetOne=function(){},i.prototype.preSave=function(e){},i.prototype.save=function(t,n,i){var o=this;void 0===n&&(n=!0);try{this.loading=!0,ze.isNull(t)&&(t=this.entity),this.isValid(t)&&(this.preSave(t),this.abstractCrudService.save(t,i).toPromise().then((function(t){o.addSuccessMessage(e.INJECTOR.get(De).SUCCESS),n&&o.navigateByUrl(o.getPath(),[o.getPath()],!0)}),(function(e){throw new Error(e)})))}catch(e){throw this.loading=!1,new Error(e)}},i.prototype.goBack=function(t){var n=this;void 0===t&&(t=!0),!this.isViewing()||t?this.baseService.confirmationService.confirm({title:"Confirmação",message:e.INJECTOR.get(De).RETURN_CONFIRMATION,accept:function(){return n.navigateByUrl(n.getPath(),[n.getPath()],!0)}}):this.navigateByUrl(this.getPath(),[this.getPath()],!0)},i.ctorParameters=function(){return[{type:Qr},{type:na},{type:s.ActivatedRoute}]},i=_e([t.Component({template:""}),Ce("design:paramtypes",[Qr,na,s.ActivatedRoute])],i)}(ia),ra=function(){this.content=[],this.number=0},aa=function(e,t){this.field=e,this.direction=t},sa=function(n){function i(e,t,i){var o=n.call(this,t,i)||this;return o.abstractCrudService=e,o.baseService=t,o.activatedRoute=i,o._filter=null,o._page=null,o._columns=[],o._appliedFilters=[],o}return be(i,n),Object.defineProperty(i.prototype,"filter",{get:function(){return this._filter},set:function(e){this._filter=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"page",{get:function(){return this._page},set:function(e){this._page=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"tablePageEventDTO",{get:function(){return this._tablePageEventDTO},set:function(e){this._tablePageEventDTO=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"appliedFilters",{get:function(){return this._appliedFilters},set:function(e){this._appliedFilters=e},enumerable:!1,configurable:!0}),i.prototype.ngOnInit=function(){if(n.prototype.ngOnInit.call(this),ze.isNull(this.basePermissionList))throw new Error("basePermissionList is required");this._onInitFilter(),this.columns=this.createTableColumns()},i.prototype.ngAfterViewInit=function(){n.prototype.ngAfterViewInit.call(this)},i.prototype.ngOnDestroy=function(){n.prototype.ngOnDestroy.call(this)},i.prototype.newPage=function(){return new ra},i.prototype.createTableSorts=function(){return[]},i.prototype.preDelete=function(e){},i.prototype.existInAppliedFilters=function(e){return!Et.isEmpty(this.appliedFilters)&&this.appliedFilters.findIndex((function(t){return t.key===e}))>=0},i.prototype._onInitFilter=function(){this.page=this.newPage(),this.filter=this.newFilter(),ze.isNull(this.filter)||this.setAppliedFilters();var e=this.baseService.sessionStorageService.get("filter");ze.isNull(e)||this.handleFilterSessionStorage()},i.prototype.findAll=function(e){var t=this;try{this.loading=!0,this.page=this.newPage(),ze.isNull(this.filter)&&(this.filter=this.newFilter()),ze.isNull(e)&&!ze.isNull(this.tablePageEventDTO)&&(e=this.tablePageEventDTO,ze.hasPropertyInObj(e,"pageIndex")&&(e.pageIndex=0)),e?(this.tablePageEventDTO=e,this.filter.pageNumber=e.pageIndex,this.filter.pageSize=e.pageSize,this.filter.offset=e.pageIndex*e.pageSize,e.sort&&(this.filter.sorts=[new aa(e.sort.active,je.isEmpty(e.sort.direction)?"DESC":e.sort.direction.toUpperCase())])):(this.filter.pageNumber=0,this.filter.offset=0,this.filter.pageSize=10),this.abstractCrudService.findAll(this.filter).toPromise().then((function(e){t.page=e,t.setAppliedFilters(),t.loading=!1}),(function(e){throw t.loading=!1,new Error(e)}))}catch(e){throw this.loading=!1,new Error(e)}},i.prototype.newRegister=function(t){if(je.isEmpty(t)&&ze.isNull(this.basePermissionList))this.setFilterSessionStorage(),this.navigateByUrl(this.getPath(),[this.getPath(),"new"],!0);else{if(je.isEmpty(t)&&!ze.isNull(this.basePermissionList)&&(t=this.basePermissionList.MAKE),!this.hasPermission(t))return void this.addWarningMessage(e.INJECTOR.get(De).NOT_PERMISSION);this.setFilterSessionStorage(),this.navigateByUrl(this.getPath(),[this.getPath(),"new"],!0)}},i.prototype.editRegister=function(t,n){if(t=this.handleEntityId(t),!ze.isNull(t))if(je.isEmpty(n)&&ze.isNull(this.basePermissionList))this.setFilterSessionStorage(),this.navigateByUrl(this.getPath(),[this.getPath(),"edit"],!0);else{if(je.isEmpty(n)&&!ze.isNull(this.basePermissionList)&&(n=this.basePermissionList.UPDATE),!this.hasPermission(n))return void this.addWarningMessage(e.INJECTOR.get(De).NOT_PERMISSION);this.setFilterSessionStorage(),this.navigateByUrl(this.getPath(),[this.getPath(),"edit",t],!0)}},i.prototype.deleteRegister=function(t,n,i,o){void 0===i&&(i=!0);try{if(t=this.handleEntityId(t),ze.isNull(t))return;if(je.isEmpty(n)&&ze.isNull(this.basePermissionList))this._deleteRegister(t,i,o);else{if(je.isEmpty(n)&&!ze.isNull(this.basePermissionList)&&(n=this.basePermissionList.DELETE),!this.hasPermission(n))return void this.addWarningMessage(e.INJECTOR.get(De).NOT_PERMISSION);this._deleteRegister(t,i,o)}}catch(e){throw this.loading=!1,this.isListing()&&this.clear(),new Error(e)}},i.prototype._deleteRegister=function(t,n,i){var o=this;void 0===n&&(n=!0);try{this.baseService.confirmationService.confirm({title:"Confirmação",message:e.INJECTOR.get(De).DELETE_CONFIRMATION,accept:function(){o.setFilterSessionStorage(),o.loading=!0,o.page=o.newPage(),o.preDelete(t),o.abstractCrudService.delete(t,i).toPromise().then((function(){n&&o.findAll(),o.loading=!1,o.addSuccessMessage(e.INJECTOR.get(De).SUCCESS)}),(function(e){throw new Error(e)}))}})}catch(e){throw this.loading=!1,new Error(e)}},i.prototype.deleteAllRegister=function(t,n,i,o){void 0===i&&(i=!0);try{if(t=this.handleEntityIdList(t),ze.isNull(t)||Et.isEmpty(t))return;if(je.isEmpty(n)&&ze.isNull(this.basePermissionList))this._deleteAllRegister(t,i,o);else{if(je.isEmpty(n)&&!ze.isNull(this.basePermissionList)&&(n=this.basePermissionList.DELETE),!this.hasPermission(n))return void this.addWarningMessage(e.INJECTOR.get(De).NOT_PERMISSION);this._deleteAllRegister(t,i,o)}}catch(e){throw this.loading=!1,this.isListing()&&this.clear(),new Error(e)}},i.prototype._deleteAllRegister=function(t,n,i){var o=this;void 0===n&&(n=!0);try{this.baseService.confirmationService.confirm({title:"Confirmação",message:e.INJECTOR.get(De).DELETE_CONFIRMATION,accept:function(){o.setFilterSessionStorage(),o.loading=!0,o.page=o.newPage(),o.preDelete(),o.abstractCrudService.deleteAll(t,i).toPromise().then((function(){n&&o.findAll(),o.loading=!1,o.addSuccessMessage(e.INJECTOR.get(De).SUCCESS)}),(function(e){throw new Error(e)}))}})}catch(e){throw this.loading=!1,new Error(e)}},i.prototype.viewRegister=function(t,n){if(t=this.handleEntityId(t),!ze.isNull(t))if(je.isEmpty(n)&&ze.isNull(this.basePermissionList))this.setFilterSessionStorage(),this.navigateByUrl(this.getPath(),[this.getPath(),"view",t],!0);else{if(je.isEmpty(n)&&!ze.isNull(this.basePermissionList)&&(n=this.basePermissionList.READ),!this.hasPermission(n))return void this.addWarningMessage(e.INJECTOR.get(De).NOT_PERMISSION);this.setFilterSessionStorage(),this.navigateByUrl(this.getPath(),[this.getPath(),"view",t],!0)}},i.prototype.editOrViewRegister=function(e,t){this.hasPermission(t)?this.editRegister(e,t):this.viewRegister(e,t)},i.prototype.enableOrDisableRegister=function(t,n,i,o,r){void 0===o&&(o=!0);try{if(n=this.handleEntityId(n),ze.isNull(n))return;if(je.isEmpty(i)&&ze.isNull(this.basePermissionList))this._enableOrDisableRegister(t,n,o,r);else{if(je.isEmpty(i)&&!ze.isNull(this.basePermissionList)&&(i=this.basePermissionList.UPDATE),!this.hasPermission(i))return void this.addWarningMessage(e.INJECTOR.get(De).NOT_PERMISSION);this._enableOrDisableRegister(t,n,o,r)}}catch(e){throw this.loading=!1,this.isListing()&&this.clear(),new Error(e)}},i.prototype._enableOrDisableRegister=function(t,n,i,o){var r=this;void 0===i&&(i=!0);try{this.baseService.confirmationService.confirm({title:"Confirmação",message:"Deseja realmente "+("DISABLE"===t?"inativar":"ativar")+" este registro?",accept:function(){r.setFilterSessionStorage(),r.loading=!0,r.page=r.newPage(),r.abstractCrudService.enableOrDisable(n,t,o).toPromise().then((function(){i&&r.findAll(),r.loading=!1,r.addSuccessMessage(e.INJECTOR.get(De).SUCCESS)}),(function(e){throw new Error(e)}))}})}catch(e){throw this.loading=!1,new Error(e)}},i.prototype.enableAndDisableAllRegister=function(t,n,i,o,r){void 0===o&&(o=!0);try{if(n=this.handleEntityIdList(n),ze.isNull(n)||Et.isEmpty(n))return;if(je.isEmpty(i)&&ze.isNull(this.basePermissionList))this._enableAndDisableAllRegister(t,n,o,r);else{if(je.isEmpty(i)&&!ze.isNull(this.basePermissionList)&&(i=this.basePermissionList.UPDATE),!this.hasPermission(i))return void this.addWarningMessage(e.INJECTOR.get(De).NOT_PERMISSION);this._enableAndDisableAllRegister(t,n,o,r)}}catch(e){throw this.loading=!1,this.isListing()&&this.clear(),new Error(e)}},i.prototype._enableAndDisableAllRegister=function(t,n,i,o){var r=this;void 0===i&&(i=!0);try{this.baseService.confirmationService.confirm({title:"Confirmação",message:"Deseja realmente "+("DISABLE"===t?"inativar":"ativar")+" os registros selecionados?",accept:function(){r.setFilterSessionStorage(),r.loading=!0,r.page=r.newPage(),r.abstractCrudService.enableOrDisableAll(n,t,o).toPromise().then((function(){i&&r.findAll(),r.loading=!1,r.addSuccessMessage(e.INJECTOR.get(De).SUCCESS)}),(function(e){throw new Error(e)}))}})}catch(e){throw this.loading=!1,new Error(e)}},i.prototype.clear=function(){this.baseService.sessionStorageService.remove("filter"),this.page=this.newPage(),this.filter=this.newFilter(),this.clearAppliedFilters(),this.findAll()},i.prototype.handleEntityId=function(e){if(!this.UUIDIsValid(e))throw new Error("O identificador do registro não é válido");if(ze.isNull(e)&&!ze.isNull(this.page)&&!Et.isEmpty(this.page.content)){var t=this.page.content.filter((function(e){return e.selected}))[0];return ze.isNull(t)?null:t.id}return e},i.prototype.handleEntityIdList=function(e){if(!Et.isEmpty(e))for(var t=0;t<e.length;t++)if(!this.UUIDIsValid(e[t]))throw new Error("O identificador do registro não é válido");if(Et.isEmpty(e)&&!ze.isNull(this.page)&&!Et.isEmpty(this.page.content)){var n=this.page.content.filter((function(e){return e.selected})).map((function(e){return e.id}));return Et.isEmpty(n)?null:n}return e},i.ctorParameters=function(){return[{type:Qr},{type:na},{type:s.ActivatedRoute}]},i=_e([t.Component({template:""}),Ce("design:paramtypes",[Qr,na,s.ActivatedRoute])],i)}(ia),la=[oa,sa,ia],pa={align:"",allowNegative:!0,allowZero:!0,decimal:",",precision:2,prefix:"R$ ",suffix:"",thousands:".",nullable:!0,max:999999999.99},da=function(){function e(){}var n;return n=e,e.setMessages=function(e){return{ngModule:n,providers:[{provide:De,useValue:ze.isNull(e)?Pe:e}]}},e=n=_e([t.NgModule({declarations:[$e,Zr,la],entryComponents:[$e],imports:[me.BrowserAnimationsModule,ue.OverlayModule,ne.HttpClientModule,s.RouterModule,o.FlexLayoutModule.withConfig({disableDefaultBps:!0},Ut),F.MatIconModule,J.MatToolbarModule,U.MatSidenavModule,L.MatListModule,I.MatButtonModule,V.MatMenuModule,u.NgxMaskModule.forRoot(),d.NgxCurrencyModule.forRoot(pa),Vr],exports:[Zr,la],providers:[_i,Kr,Ke,Sn,Wr,Gt,{provide:ne.HTTP_INTERCEPTORS,useClass:qr,multi:!0},{provide:ne.HTTP_INTERCEPTORS,useClass:$r,multi:!0}]})],e)}();(zr=e.LocalTimeEnum||(e.LocalTimeEnum={})).FULL="FULL",zr.SHORT="SHORT";var ca,ua,ha,ga,ma=function(){function e(e,t,n){this._router=e,this._matDialog=t,this._authenticationService=n}return e.prototype.canActivate=function(e,t){var n=this._authenticationService.token;return this._authenticationService.isValidToken(n)?ie.of(!0):(this._authenticationService.removeSession(),this._matDialog.closeAll(),this._router.navigate(["oauth/login"]),ie.of(!1))},e.prototype.canActivateChild=function(e,t){return this.canActivate(e,t)},e.ctorParameters=function(){return[{type:s.Router},{type:P.MatDialog},{type:Gr}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(s.Router),t.ɵɵinject(P.MatDialog),t.ɵɵinject(Gr))},token:e,providedIn:"root"}),e=_e([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[s.Router,P.MatDialog,Gr])],e)}(),fa=function(){function e(e,t,n){this._router=e,this._matDialog=t,this._authenticationService=n}return e.prototype._hasAuthority=function(e,t){return!ze.isNull(e)&&!je.isEmpty(t)&&!!e.authorities.find((function(e){return e.authority.match(t)}))},e.prototype._hasPermission=function(e,t){var n,i;try{for(var o=Ee(e),r=o.next();!r.done;r=o.next()){var a=r.value;if(t.split("/").pop()===a.route)return!0;if(!Et.isEmpty(a.menuList))return this._hasPermission(a.menuList,t)}}catch(e){n={error:e}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return!1},e.prototype.canActivate=function(e,t){var n=this._authenticationService.token;return this._authenticationService.isValidToken(n)?this._hasPermission(n.user.menuList,t.url)&&this._hasAuthority(n.user,e.data.authority)?ie.of(!0):(this._router.navigate(["errors/403"]),ie.of(!1)):(this._authenticationService.removeSession(),this._matDialog.closeAll(),this._router.navigate(["oauth/login"]),ie.of(!1))},e.prototype.canActivateChild=function(e,t){return this.canActivate(e,t)},e.ctorParameters=function(){return[{type:s.Router},{type:P.MatDialog},{type:Gr}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(s.Router),t.ɵɵinject(P.MatDialog),t.ɵɵinject(Gr))},token:e,providedIn:"root"}),e=_e([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[s.Router,P.MatDialog,Gr])],e)}(),ya=function(){},va=function(e){function t(){var t=e.call(this)||this;return t.menuList=[],t}return be(t,e),t}(ya),ba=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return be(t,e),t}(Ge),xa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return be(t,e),t}(Ge),_a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return be(t,e),t}(Ge),wa=function(e,t){void 0===e&&(e="ALL"),void 0===t&&(t=[]),this.radiobuttonSelected=e,this.entitiesSelected=t},Ca=function(e){function t(){var t=e.call(this)||this;return t.menuList=[],t.id="",t.expanded=!1,t}return be(t,e),t}(Ge),Ia=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.active=!1,t.closeable=!1,t.disabled=!1,t}return be(t,e),t}(Ge),Sa=function(e){function t(t,n,i,o,r,a,s,l,p,d,c,u,h,g){var m=e.call(this)||this;return m.sortable=!1,m.hiddenSm=!1,m.visible=!0,m.name=t,m.property=n,m.value=i,m.sortable=o,m.hiddenSm=r,m.visible=a,m.width=s,m.marginLeft=l,m.marginRight=p,m.align=d,m.template=c,m.templateHeader=u,m.sliceLength=h,m.action=g,m}return be(t,e),t}(Ge),Ea=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return be(t,e),t}(Ge);(ca=e.CriteriaOperationEnum||(e.CriteriaOperationEnum={})).EQUALITY="EQUALITY",ca.NEGATION="NEGATION",ca.GREATER_THAN="GREATER_THAN",ca.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",ca.LESS_THAN="LESS_THAN",ca.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",ca.LIKE="LIKE",ca.STARTS_WITH="STARTS_WITH",ca.ENDS_WITH="ENDS_WITH",ca.CONTAINS="CONTAINS",ca.IN="IN",(ua=e.CriteriaSortDirectionEnum||(e.CriteriaSortDirectionEnum={})).ASC="ASC",ua.DESC="DESC",(ha=e.MenuTypeEnum||(e.MenuTypeEnum={})).GROUP="GROUP",ha.COLLAPSABLE="COLLAPSABLE",ha.ITEM="ITEM",(ga=e.RadioButtonEnum||(e.RadioButtonEnum={})).START_AND_END="Inicial/Final",ga.BY_SELECTION="Por seleção",ga.TO_OMIT="Omitir",ga.ALL="Todos";var Oa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return be(t,e),t}(ya),ka=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.make=!0,t.update=!0,t.read=!0,t.delete=!0,t}return be(t,e),t}(ya),Da=function(e){function t(){var t=e.call(this)||this;return t.permissionList=[],t}return be(t,e),t}(ya),Pa=function(e){function t(t,n){var i=e.call(this)||this;return i.path=t,i.http=n,i}return be(t,e),t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t.prototype.url=function(e){var t="api/"+this.path;return e?t.concat("/"+e):t},t.prototype.getOne=function(e){return this.http.get(this.url(""+e),this.options()).pipe(oe.takeUntil(this.onDestroy),oe.map(this.mapper),oe.catchError(this.handleError))},t.prototype.find=function(e){return this.http.post(this.url("find-all"),e,this.options()).pipe(oe.takeUntil(this.onDestroy),oe.map(this.mapper),oe.catchError(this.handleError))},t.prototype.findAll=function(){return this.http.get(this.url(),this.options()).pipe(oe.takeUntil(this.onDestroy),oe.map(this.mapper),oe.catchError(this.handleError))},t.prototype.findAllEnabled=function(e,t){return(!e||e&&e<0)&&(e=0),(!t||t&&t<=0)&&(t=10),this.http.get(this.url("find-all-enabled?page="+e+"&size="+t),this.options()).pipe(oe.takeUntil(this.onDestroy),oe.map(this.mapper),oe.catchError(this.handleError))},t.prototype.findByValue=function(e,t,n,i){void 0===n&&(n=10);var o=e;o=e?je.removeAccents(e).trim():"",(!t||t&&t<0)&&(t=0),(!n||n&&n<=0)&&(n=10);var r="";return ze.isNull(i)||je.isEmpty(i.property)||(r="&sort="+i.property+","+i.direction),this.http.get(this.url("find-by-value?page="+t+"&size="+n+r+"&value="+o),this.options()).pipe(oe.takeUntil(this.onDestroy),oe.map(this.mapper),oe.catchError(this.handleError))},t}(We),Ra=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.path=t,i}return be(t,e),t.prototype.save=function(e){return this.validate(e),this.http.post(this.url(),e,this.options()).pipe(oe.map(this.mapper),oe.catchError(this.handleError))},t.prototype.saveAll=function(e){var t=this;return e.forEach((function(e){return t.validate(e)})),this.http.post(this.url("save-all"),e,this.options()).pipe(oe.map(this.mapper),oe.catchError(this.handleError))},t.prototype.delete=function(e){return this.http.delete(this.url(""+e)).pipe(oe.map((function(){return null})),oe.catchError(this.handleError))},t.prototype.deleteAll=function(e){return this.http.post(this.url("delete-all"),e,this.options()).pipe(oe.map(this.mapper),oe.catchError(this.handleError))},t.prototype.validate=function(e){},t}(Pa);String.prototype.numberFullName=function(e){for(var t,n,i,o,r=[["zero","um","dois","três","quatro","cinco","seis","sete","oito","nove","dez","onze","doze","treze","quatorze","quinze","dezesseis","dezessete","dezoito","dezenove"],["dez","vinte","trinta","quarenta","cinquenta","sessenta","setenta","oitenta","noventa"],["cem","cento","duzentos","trezentos","quatrocentos","quinhentos","seiscentos","setecentos","oitocentos","novecentos"],["mil","milhão","bilhão","trilhão","quadrilhão","quintilhão","sextilhão","setilhão","octilhão","nonilhão","decilhão","undecilhão","dodecilhão","tredecilhão","quatrodecilhão","quindecilhão","sedecilhão","septendecilhão","octencilhão","nonencilhão"]],a=this.replace(e?/[^,\d]/g:/\D/g,"").split(","),s=" e ",l="real",p="centavo",d=a.length-1,c=-1,u=[],h=[],g="";++c<=d;h=[])if(c&&(a[c]=(1*Number("."+a[c])).toFixed(2).slice(2)),(t=(n=a[c]).slice((o=n.length)%3).match(/\d{3}/g),n=o%3?[n.slice(0,o%3)]:[],n=t?n.concat(t):n).length){for(t=-1,o=n.length;++t<o;g="")(i=1*n[t])&&(i%100<20&&(g+=r[0][i%100])||i%100+1&&(g+=r[1][(i%100/10>>0)-1]+(i%10?s+r[0][i%10]:"")),h.push((i<100?g:i%100?r[2][i/100>>0]+s+g:r[2][100==i?0:i/100>>0])+(Number(g=String(o-t-2))>-1?" "+(i>1&&Number(g)>0?r[3][g].replace("ão","ões"):r[3][g]):"")));(t=h.length>1?(t=h.pop(),h.join(" ")+s+t):h.join("")||(!c&&1*Number(a[c+1])>0||u.length?"":r[0][0]))&&u.push(t+(e?" "+(1*n.join("")>1?c?p+"s":(/0{6,}$/.test(a[0])?"de ":"")+l.replace("l","is"):c?p:l):""))}return u.join(s)};var Aa,Ta=function(){function e(){}return e.transform=function(e,t,n){return ze.isNull(e)?je.EMPTY:n?i.formatPercent(e,"pt",t):i.formatCurrency(e,"pt","R$",t)},e.transformNumberFullName=function(e,t){return void 0===t&&(t=!0),this.transform(e,"1.2-2").substring(2).trim().numberFullName(t)},e}(),Ma=function(){function e(){}return e.clearFormat=function(e){return je.isEmpty(e)?"":e.replace(/\D/g,"")},e.isValidCpf=function(e){if(je.isEmpty(e))return!1;if(11!==(e=je.removeAccents(e)).length||"00000000000"===e||"11111111111"===e||"22222222222"===e||"33333333333"===e||"44444444444"===e||"55555555555"===e||"66666666666"===e||"77777777777"===e||"88888888888"===e||"99999999999"===e)return!1;for(var t=0,n=0;n<9;n++)t+=+e.charAt(n)*(10-n);var i=11-t%11;if(10!==i&&11!==i||(i=0),i!==+e.charAt(9))return!1;t=0;for(n=0;n<10;n++)t+=+e.charAt(n)*(11-n);return 10!==(i=11-t%11)&&11!==i||(i=0),i===+e.charAt(10)},e.isValidCnpj=function(e){if(je.isEmpty(e))return!1;if(e=je.removeAccents(e),je.isEmpty(e)||14!==e.length||"00000000000000"===e||"11111111111111"===e||"22222222222222"===e||"33333333333333"===e||"44444444444444"===e||"55555555555555"===e||"66666666666666"===e||"77777777777777"===e||"88888888888888"===e||"99999999999999"===e)return!1;for(var t=e.length-2,n=e.substring(0,t),i=e.substring(t),o=0,r=t-7,a=t;a>=1;a--)o+=+n.charAt(t-a)*r--,r<2&&(r=9);var s=o%11<2?0:11-o%11;if(s!==+i.charAt(0))return!1;t+=1,n=e.substring(0,t),o=0,r=t-7;for(a=t;a>=1;a--)o+=+n.charAt(t-a)*r--,r<2&&(r=9);return(s=o%11<2?0:11-o%11)===+i.charAt(1)},e.isValidStateRegistration=function(e,t){if(je.isEmpty(e)||je.isEmpty(t))return!1;if("ISENTO"===t.toUpperCase())return!0;if("GO"===e){var n=ye.onlyNumbers(t);return this.calcDigit(n)}return ye.isValidIE(e,t)},e.isValidCep=function(e){return!je.isEmpty(e)&&ye.isValidCEP(e)},e.calcDigit=function(e){var t=e.length,n=t-1,i=t,o=e.substring(0,n),r=0;o.split("").forEach((function(e){r+=parseInt(e,10)*i,i--}));var a=11-r%11,s=0;return Number(e)>=101031050&&Number(e)<=101199979&&(s=1),10===a?a=s:11===a&&(a=0),a===parseInt(e.charAt(n),10)},e}(),Fa=function(){function e(){}return e.isValid=function(e){return/^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(e)&&(e.includes("org")||e.includes(".com")||e.includes(".br")||e.includes(".net")||e.includes(".pt")||e.includes(".io")||e.includes(".ru")||e.includes(".uk")||e.includes(".de")||e.includes(".tk")||e.includes(".info")||e.includes(".nl")||e.includes(".eu")||e.includes(".it")||e.includes(".au")||e.includes(".fr")||e.includes(".site"))},e}(),Na=function(){function e(e){this.sortable$=!1,this.hiddenSm$=!1,this.visible$=!0,this.align$="start center",this.breakpointObserverService$=e}return e.instance=function(t){return new e(t)},e.prototype.name=function(e){return this.name$=e,this},e.prototype.property=function(e){return this.property$=e,this},e.prototype.value=function(e){return this.value$=e,this},e.prototype.sortable=function(e){return this.sortable$=e,this},e.prototype.hiddenSm=function(e){return this.hiddenSm$=e,this},e.prototype.visible=function(e){return this.visible$=e,this},e.prototype.width=function(e){return this.width$=ie.of(e),this},e.prototype.marginLeft=function(e){return this.marginLeft$=ie.of(e),this},e.prototype.marginRight=function(e){return this.marginRight$=ie.of(e),this},e.prototype.align=function(e){return this.align$=e,this},e.prototype.breakpointWidth=function(e){return this.width$=this.breakpointObserverService$.size$.pipe(oe.map((function(t){return e.has(t)?e.get(t):"auto"}))),this},e.prototype.template=function(e){return this.template$=e,this},e.prototype.templateHeader=function(e){return this.templateHeader$=e,this},e.prototype.sliceLength=function(e){return this.sliceLength$=e,this},e.prototype.action=function(e){return this.action$=e,this},e.prototype.build=function(){return new Sa(this.name$,this.property$,this.value$,this.sortable$,this.hiddenSm$,this.visible$,this.width$,this.marginLeft$,this.marginRight$,this.align$,this.template$,this.templateHeader$,this.sliceLength$,this.action$)},e}(),La=function(){function e(){}return e.get=function(e){return this._queryParams.get(e)},e.has=function(e){return this._queryParams.has(e)},e._queryParams=new URLSearchParams(window.location.href),e}();function Va(e,t){if(!Reflect.getMetadata)throw new Error("You forgot add \"import 'reflect-metadata';\" to polyfills.ts");return Reflect.getMetadata("design:type",e,t)}(Aa=e.GIPISortDirectionEnum||(e.GIPISortDirectionEnum={})).ASC="ASC",Aa.DESC="DESC";var ja=function(){},Ba=function(){},za=function(){function e(e,t){this.description=e,this.key=t}return Object.defineProperty(e.prototype,"description",{get:function(){return this._description},set:function(e){this._description=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"key",{get:function(){return this._key},set:function(e){this._key=e},enumerable:!1,configurable:!0}),e}(),Ya=function(){},Ha=function(){function e(e,t,n){e&&e>=0&&(this.pageIndex=e),t&&t>=0&&(this.pageSize=t),n&&n>=0&&(this.length=n)}return Object.defineProperty(e.prototype,"pageIndex",{get:function(){return this._pageIndex},set:function(e){this._pageIndex=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageSize",{get:function(){return this._pageSize},set:function(e){this._pageSize=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._length},set:function(e){this._length=e},enumerable:!1,configurable:!0}),e}(),Ua=function(){function e(e,t){this.overlay=e,this.injector=t}return e.prototype.open=function(e){var t=e.origin,n=e.content,i=e.data,o=e.width,r=e.height,a=e.event,s=this.overlay.create(this.getOverlayConfig({origin:t,width:o,height:r,event:a})),l=new ut(s,n,i),p=this.createInjector(l,this.injector);return s.attach(new y.ComponentPortal(ht,null,p)),l},e.prototype.getOverlayConfig=function(e){var t=e.origin,n=e.width,i=e.height,o=e.event;return new ue.OverlayConfig({hasBackdrop:!0,width:n,height:i,backdropClass:"popover-backdrop",positionStrategy:this.getOverlayPosition(t,o),scrollStrategy:this.overlay.scrollStrategies.reposition()})},e.prototype.getOverlayPosition=function(e,t){var n=t.target.offsetTop-document.querySelector(".mat-sidenav-content").scrollTop;return t?this.overlay.position().global().top(n+50+"px").left(t.clientX-30+"px"):this.overlay.position().flexibleConnectedTo(e).withPositions(this.getPositions()).withFlexibleDimensions(!1).withPush(!1)},e.prototype.updatePosition=function(e,t){e.overlay.updatePositionStrategy(this.overlay.position().global().top(t.clientY+"px").left(t.clientX+"px"))},e.prototype.createInjector=function(e,t){var n=new WeakMap([[ut,e]]);return new y.PortalInjector(t,n)},e.prototype.getPositions=function(){return[{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}]},e.ctorParameters=function(){return[{type:ue.Overlay},{type:t.Injector}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(ue.Overlay),t.ɵɵinject(t.INJECTOR))},token:e,providedIn:"root"}),e=_e([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[ue.Overlay,t.Injector])],e)}(),Ga=function(){function e(e,t,n,i,o,r,a,s,l,p,d,c,u,h,g,m,f,y,v,b,x,_){this._sortable=!1,this._visible=!0,this._checkboxable=!1,this._name=e,this._property=t,this._value=n,this._sortable=i,this._visible=o,this._checkboxable=r,this._columnSpan=a,this._columnSpanXs=s,this._columnSpanSm=l,this._columnSpanMd=p,this._columnSpanLg=d,this._columnSpanXl=c,this._minWidth=u,this._maxWidth=h,this._paddingInline=g,this._align=m,this._templateCell=f,this._templateHeader=y,this._sliceLength=v,this._comparator=b,this._pipe=x,this._action=_}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(e){this._name=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"property",{get:function(){return this._property},set:function(e){this._property=e},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,"sortable",{get:function(){return this._sortable},set:function(e){this._sortable=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"checkboxable",{get:function(){return this._checkboxable},set:function(e){this._checkboxable=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnSpan",{get:function(){return this._columnSpan},set:function(e){this._columnSpan=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnSpanXs",{get:function(){return this._columnSpanXs},set:function(e){this._columnSpanXs=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnSpanSm",{get:function(){return this._columnSpanSm},set:function(e){this._columnSpanSm=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnSpanMd",{get:function(){return this._columnSpanMd},set:function(e){this._columnSpanMd=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnSpanLg",{get:function(){return this._columnSpanLg},set:function(e){this._columnSpanLg=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnSpanXl",{get:function(){return this._columnSpanXl},set:function(e){this._columnSpanXl=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minWidth",{get:function(){return this._minWidth},set:function(e){this._minWidth=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxWidth",{get:function(){return this._maxWidth},set:function(e){this._maxWidth=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paddingInline",{get:function(){return this._paddingInline},set:function(e){this._paddingInline=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"align",{get:function(){return this._align},set:function(e){this._align=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"templateCell",{get:function(){return this._templateCell},set:function(e){this._templateCell=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"templateHeader",{get:function(){return this._templateHeader},set:function(e){this._templateHeader=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sliceLength",{get:function(){return this._sliceLength},set:function(e){this._sliceLength=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"comparator",{get:function(){return this._comparator},set:function(e){this._comparator=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pipe",{get:function(){return this._pipe},set:function(e){this._pipe=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"action",{get:function(){return this._action},set:function(e){this._action=e},enumerable:!1,configurable:!0}),e}(),qa=function(){function e(){this._sortable$=!1,this._visible$=!0,this._checkboxable$=!1,this._align$="left"}return e.instance=function(){return new e},e.prototype.name=function(e){return this._name$=e,this},e.prototype.property=function(e){return this._property$=e,this},e.prototype.value=function(e){return this._value$=e,this},e.prototype.sortable=function(e){return this._sortable$=e,this},e.prototype.visible=function(e){return this._visible$=e,this},e.prototype.checkboxable=function(e){return this._checkboxable$=e,this},e.prototype.columnSpan=function(e){return this._columnSpan$=e,this},e.prototype.columnSpanXs=function(e){return this._columnSpanXs$=e,this},e.prototype.columnSpanSm=function(e){return this._columnSpanSm$=e,this},e.prototype.columnSpanMd=function(e){return this._columnSpanMd$=e,this},e.prototype.columnSpanLg=function(e){return this._columnSpanLg$=e,this},e.prototype.columnSpanXl=function(e){return this._columnSpanXl$=e,this},e.prototype.minWidth=function(e){return this._minWidth$=e,this},e.prototype.maxWidth=function(e){return this._maxWidth$=e,this},e.prototype.paddingInline=function(e){return this._paddingInline$=e,this},e.prototype.align=function(e){return this._align$=e,this},e.prototype.templateCell=function(e){return this._templateCell$=e,this},e.prototype.templateHeader=function(e){return this._templateHeader$=e,this},e.prototype.sliceLength=function(e){return this._sliceLength$=e,this},e.prototype.comparator=function(e){return this._comparator$=e,this},e.prototype.pipe=function(e){return this._pipe$=e,this},e.prototype.action=function(e){return this._action$=e,this},e.prototype.build=function(){return new Ga(this._name$,this._property$,this._value$,this._sortable$,this._visible$,this._checkboxable$,this._columnSpan$,this._columnSpanXs$,this._columnSpanSm$,this._columnSpanMd$,this._columnSpanLg$,this._columnSpanXl$,this._minWidth$,this._maxWidth$,this._paddingInline$,this._align$,this._templateCell$,this._templateHeader$,this._sliceLength$,this._comparator$,this._pipe$,this._action$)},e}();e.APP_MESSAGES=De,e.AbstractComponent=He,e.AbstractCrudComponent=Hr,e.AbstractCrudService=Ra,e.AbstractDTO=Ge,e.AbstractFindComponent=Yr,e.AbstractFindService=Pa,e.AbstractModel=ya,e.AbstractService=We,e.AlertComponent=$e,e.Archive=Ue,e.ArrayUtil=Et,e.AuthGuard=ma,e.AuthInterceptor=qr,e.AuthenticationService=Gr,e.BaseUser=va,e.BreakpointObserverService=xi,e.BrowserUtil=pr,e.ButtonComponent=Me,e.CalendarMonthYearComponent=wr,e.CardComponent=Fe,e.ChartDTO=ba,e.CheckboxComponent=Ne,e.ConfirmationDTO=bn,e.ConfirmationService=Sn,e.CoreModule=da,e.CurrencyUtil=Ta,e.DEFAULT_MESSAGES=Pe,e.DateAdapter=Ji,e.DateRange=Qi,e.DateRangePickerComponent=cr,e.DateUtil=$i,e.DatepickerModule=xr,e.DefaultMatCalendarRangeStrategy=yo,e.DialogDTO=xa,e.DialogService=Wr,e.DocumentUtil=Ma,e.EmailUtil=Fa,e.ErrorInterceptor=$r,e.FilterDTO=_a,e.GIPIAbstractComponent=ia,e.GIPIAbstractCrudComponent=oa,e.GIPIAbstractCrudService=Qr,e.GIPIAbstractDTO=Ya,e.GIPIAbstractFilterModel=ja,e.GIPIAbstractFindComponent=sa,e.GIPIAbstractFormComponent=dn,e.GIPIAbstractModel=Ba,e.GIPIAbstractService=Jr,e.GIPIActionRowComponent=pn,e.GIPIAppliedFilter=za,e.GIPIAutowired=function(){return function(e,n){var i=!e.constructor["ɵcmp"],o=Va(e,n),r=function(){var i=e.constructor["ɵcmp"],r=null;r=ze.isNull(i)?e.constructor["ɵfac"]:i.factory,i.factory=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var a=r.apply(void 0,ke(e));return a[n]=t.ɵɵdirectiveInject(o),a}};i?Promise.resolve().then(r).catch((function(){throw new Error("An error occurred while injecting the class: "+o)})):r()}},e.GIPIBadgeComponent=cn,e.GIPIBaseService=na,e.GIPIBreakpointService=Zt,e.GIPIButtonComponent=gn,e.GIPICardComponent=fn,e.GIPIColDirective=Qt,e.GIPIConfirmationDialogComponent=xn,e.GIPIConnectedOverlayScrollHandler=Yn,e.GIPIDomHandler=un,e.GIPIDropdownMenuComponent=wn,e.GIPIDynamicTabDirective=rn,e.GIPIEmptyStateComponent=Cn,e.GIPIExpansionPanelComponent=In,e.GIPIFileDragAndDropComponent=En,e.GIPIFileService=ea,e.GIPIFooterComponent=On,e.GIPIFormFieldComponent=Dn,e.GIPIHelpfulTipComponent=Rn,e.GIPIInfiniteScrollDirective=$t,e.GIPIInputCheckboxComponent=Tn,e.GIPIInputCurrencyComponent=Fn,e.GIPIInputMonthPickerComponent=Ln,e.GIPIInputPhoneComponent=jn,e.GIPIInputSearchComponent=Xn,e.GIPIInputSelectComponent=$n,e.GIPIInputSelectEnumComponent=zn,e.GIPIInputSelectListboxComponent=Kn,e.GIPIInputSelectPagedComponent=Jn,e.GIPIInputSelectRadioComponent=ei,e.GIPINotificationComponent=ti,e.GIPINoveltiesComponent=ni,e.GIPIOverlayComponent=Gn,e.GIPIOverlayService=lt,e.GIPIPageEvent=Ha,e.GIPIPageModel=ra,e.GIPIPaginatePipe=ln,e.GIPIPaginationControlsDirective=on,e.GIPIPaginationService=nn,e.GIPIPasswordRequerimentsComponent=ri,e.GIPIPopoverComponent=si,e.GIPIPopoverTarget=li,e.GIPIPopoverTrigger=hn,e.GIPIRadioGroupComponent=di,e.GIPIRangePageComponent=hi,e.GIPIRangeSliderComponent=mi,e.GIPIResizeService=Kt,e.GIPIRowDirective=Jt,e.GIPISelectButtonComponent=fi,e.GIPISelectComponent=yi,e.GIPISessionStorageService=ta,e.GIPISidenavComponent=Ci,e.GIPISidenavContainerComponent=wi,e.GIPISkeletonComponent=en,e.GIPISkeletonDirective=tn,e.GIPISlideToggleComponent=Si,e.GIPISortModel=aa,e.GIPISplitButtonComponent=Oi,e.GIPIStepperComponent=ki,e.GIPITabComponent=ji,e.GIPITabGroupComponent=zi,e.GIPITableBodyComponent=Di,e.GIPITableComponent=Ni,e.GIPITableFooterComponent=Pi,e.GIPITableHeaderComponent=Ai,e.GIPITablePaginationComponent=Ti,e.GIPITableProgressBarComponent=Fi,e.GIPITemplateDirective=an,e.GIPITextareaComponent=Hi,e.GIPIToolbarComponent=Ui,e.GIPITopNavComponent=Gi,e.GIPIUserProfileComponent=Wi,e.GIPI_BREAKPOINTS=Ut,e.GIPI_CUSTOM_BREAKPOINTS_PROVIDER=Gt,e.GIPI_MONTH_YEAR_SCROLL_STRATEGY=Ir,e.GIPI_MONTH_YEAR_SCROLL_STRATEGY_FACTORY=Sr,e.GIPI_MONTH_YEAR_SCROLL_STRATEGY_FACTORY_PROVIDER=Or,e.IconComponent=Le,e.InputComponent=Qe,e.InputCurrencyComponent=Ve,e.InputFileComponent=Xe,e.InputListboxDTO=wa,e.ItssTemplate=Vt,e.LoadingComponent=tt,e.LoadingOverlayComponent=et,e.LocalTimePipe=Zr,e.MAT_DATEPICKER_SCROLL_STRATEGY=Vo,e.MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY=jo,e.MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER=zo,e.MAT_DATEPICKER_VALIDATORS=Wo,e.MAT_DATEPICKER_VALUE_ACCESSOR=$o,e.MAT_DATE_FORMATS=Re,e.MAT_DATE_LOCALE=Ki,e.MAT_DATE_LOCALE_FACTORY=Xi,e.MAT_DATE_LOCALE_PROVIDER=Zi,e.MAT_DATE_RANGE_SELECTION_STRATEGY=fo,e.MAT_NATIVE_DATE_FORMATS={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},e.MAT_RANGE_DATE_SELECTION_MODEL_FACTORY=ro,e.MAT_RANGE_DATE_SELECTION_MODEL_PROVIDER=ao,e.MAT_SINGLE_DATE_SELECTION_MODEL_FACTORY=io,e.MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER=oo,e.MatCalendar=Eo,e.MatCalendarBody=co,e.MatCalendarCell=po,e.MatCalendarHeader=Oo,e.MatDateRangeInput=Jo,e.MatDateRangePicker=Go,e.MatDateSelectionModel=eo,e.MatDatepicker=qo,e.MatDatepickerContent=Ho,e.MatDatepickerInput=Xo,e.MatDatepickerInputEvent=ko,e.MatDatepickerIntl=lo,e.MatDatepickerToggle=er,e.MatDatepickerToggleIcon=Qo,e.MatEndDate=Fo,e.MatMonthView=xo,e.MatMultiYearView=_o,e.MatRangeDateSelectionModel=no,e.MatSingleDateSelectionModel=to,e.MatStartDate=Mo,e.MatYearView=So,e.MaxRangeDirective=hr,e.MaxRangeSelectionStrategy=ur,e.MenuDTO=Ca,e.MessageDTO=qe,e.MessageService=Ke,e.MonthPickerModel=Dr,e.MonthYear=kr,e.MonthYearPickerComponent=Rr,e.MonthYearPickerModule=Ar,e.MultitenantModel=Oa,e.NativeDateAdapter=lr,e.NavService=_i,e.NumberUtil=Ze,e.ObjectUtil=ze,e.OverlayPanelComponent=ct,e.POINTS_NAME=vi,e.PageDTO=jr,e.PasswordUtil=ii,e.Permission=ka,e.PermissionGuard=fa,e.PhoneMaskDirective=zt,e.PhoneUtil=Je,e.Platform=nr,e.PopoverComponent=ht,e.PopoverRef=ut,e.PopoverService=Ua,e.PresetRangeComponent=mr,e.RadioGroupEntityComponent=gt,e.RadioGroupEnumComponent=ft,e.RangePage=ui,e.Role=Da,e.SelectButtonAddComponent=vt,e.SelectButtonNextBatchComponent=bt,e.SelectEntityComponent=Ot,e.SelectEntityPagedComponent=yt,e.SelectEnumComponent=kt,e.SelectMonthPeriodComponent=Dt,e.SelectNoEntriesFoundDirective=xt,e.SelectSearchClearDirective=_t,e.SelectSearchComponent=It,e.SharedModule=Vr,e.SlideToggleComponent=Pt,e.SortDTO=Br,e.SortModel=Ri,e.StepperComponent=Rt,e.StringUtil=je,e.SvgRegisterService=Kr,e.TabDTO=Ia,e.TabModel=Li,e.TableColumnBuilder=Na,e.TableColumnBuilderModel=qa,e.TableColumnDTO=Sa,e.TableColumnModel=Ga,e.TableComponent=Nt,e.TableScrolledComponent=Mt,e.TimeUtil=Xr,e.TokenDTO=Ea,e.URLParamsUtil=La,e.UUIDUtil=Ye,e.customCurrencyMaskConfig=pa,e.getReflectType=Va,e.gridResponsiveMap=Xt,e.matDatepickerAnimations=No,e.siderResponsiveMap={xs:"(max-width: 420px)",sm:"(max-width: 600px)",md:"(max-width: 768px)",lg:"(max-width: 1366px)",xl:"(max-width: 1920px)"},e.transformPopover=ai,e.yearsPerPage=24,e.yearsPerRow=4,e.ƟCMP="ɵcmp",e.ƟFAC="ɵfac",e.ƟPROV="ɵprov",e.ɵ0=Lr,e.ɵa=Ro,e.ɵb=vo,e.ɵc=bo,e.ɵd=Uo,e.ɵe=Ko,e.ɵf=Do,e.ɵg=st,e.ɵh=vn,e.ɵi=qt,e.ɵj=Lt,e.ɵk=Ht,e.ɵl=Bt,e.ɵm=Yt,e.ɵn=jt,e.ɵo=Ct,e.ɵq=Te,e.ɵr=vr,Object.defineProperty(e,"__esModule",{value:!0})}));
|
66
|
+
*/var Ro=new t.InjectionToken("MAT_DATE_RANGE_INPUT_PARENT"),Mo=function(e){function n(t,n,i,o,r,a,s,l){var p=e.call(this,n,s,l)||this;return p._rangeInput=t,p._defaultErrorStateMatcher=i,p._injector=o,p._parentForm=r,p._parentFormGroup=a,p._outsideValueChanged=function(){p._validatorOnChange()},p}return be(n,e),n.prototype.ngOnInit=function(){var e=this._injector.get(r.NgControl,null,t.InjectFlags.Self);this._injector.get(r.NgControl,null),e&&(this.ngControl=e)},n.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState()},n.prototype.isEmpty=function(){return 0===this._elementRef.nativeElement.value.length},n.prototype._getPlaceholder=function(){return this._elementRef.nativeElement.placeholder},n.prototype.focus=function(){this._elementRef.nativeElement.focus()},n.prototype._onInput=function(t){e.prototype._onInput.call(this,t),this._rangeInput._handleChildValueChange()},n.prototype._openPopup=function(){this._rangeInput._openDatepicker()},n.prototype._getMinDate=function(){return this._rangeInput.min},n.prototype._getMaxDate=function(){return this._rangeInput.max},n.prototype._getDateFilter=function(){return this._rangeInput.dateFilter},n.prototype._parentDisabled=function(){return this._rangeInput._groupDisabled},n.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[Ro]}]},{type:t.ElementRef},{type:D.ErrorStateMatcher},{type:t.Injector},{type:r.NgForm,decorators:[{type:t.Optional}]},{type:r.FormGroupDirective,decorators:[{type:t.Optional}]},{type:Qi,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[D.MAT_DATE_FORMATS]}]}]},n=we([t.Directive({}),xe(0,t.Inject(Ro)),xe(4,t.Optional()),xe(5,t.Optional()),xe(6,t.Optional()),xe(7,t.Optional()),xe(7,t.Inject(D.MAT_DATE_FORMATS)),Ce("design:paramtypes",[Object,t.ElementRef,D.ErrorStateMatcher,t.Injector,r.NgForm,r.FormGroupDirective,Qi,Object])],n)}(Po),To=D.mixinErrorState(Mo),Fo=function(e){function n(t,n,i,o,a,s,l,p){var d=e.call(this,t,n,i,o,a,s,l,p)||this;return d._startValidator=function(e){var t=d._dateAdapter.getValidDateOrNull(d._dateAdapter.deserialize(e.value)),n=d._model?d._model.selection.end:null;return!t||!n||d._dateAdapter.compareDate(t,n)<=0?null:{matStartDateInvalid:{end:n,actual:t}}},d._validator=r.Validators.compose(Ee(e.prototype._getValidators.call(d),[d._startValidator])),d._canEmitChangeEvent=function(e){return e.source!==d._rangeInput._endInput},d}var i;return be(n,e),i=n,n.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},n.prototype.ngDoCheck=function(){e.prototype.ngDoCheck.call(this)},n.prototype._getValueFromModel=function(e){return e.start},n.prototype._assignValueToModel=function(e){if(this._model){var t=new eo(e,this._model.selection.end);this._model.updateSelection(t,this),this._cvaOnChange(e)}},n.prototype._formatValue=function(t){e.prototype._formatValue.call(this,t),this._rangeInput._handleChildValueChange()},n.prototype.getMirrorValue=function(){var e=this._elementRef.nativeElement,t=e.value;return t.length>0?t:e.placeholder},n.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[Ro]}]},{type:t.ElementRef},{type:D.ErrorStateMatcher},{type:t.Injector},{type:r.NgForm,decorators:[{type:t.Optional}]},{type:r.FormGroupDirective,decorators:[{type:t.Optional}]},{type:Qi,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[D.MAT_DATE_FORMATS]}]}]},n=i=we([t.Directive({selector:"input[gipiMatStartDate]",host:{class:"mat-start-date mat-date-range-input-inner","[disabled]":"disabled","(input)":"_onInput($event.target.value)","(change)":"_onChange()","(keydown)":"_onKeydown($event)","[attr.id]":"_rangeInput.id","[attr.aria-haspopup]":'_rangeInput.rangePicker ? "dialog" : null',"[attr.aria-owns]":"(_rangeInput.rangePicker?.opened && _rangeInput.rangePicker.id) || null","[attr.min]":"_getMinDate() ? _dateAdapter.toIso8601(_getMinDate()) : null","[attr.max]":"_getMaxDate() ? _dateAdapter.toIso8601(_getMaxDate()) : null","(blur)":"_onBlur()",type:"text"},providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:i,multi:!0},{provide:r.NG_VALIDATORS,useExisting:i,multi:!0}]}),xe(0,t.Inject(Ro)),xe(4,t.Optional()),xe(5,t.Optional()),xe(6,t.Optional()),xe(7,t.Optional()),xe(7,t.Inject(D.MAT_DATE_FORMATS)),Ce("design:paramtypes",[Object,t.ElementRef,D.ErrorStateMatcher,t.Injector,r.NgForm,r.FormGroupDirective,Qi,Object])],n)}(To),Vo=function(e){function n(t,n,i,o,a,s,l,p){var d=e.call(this,t,n,i,o,a,s,l,p)||this;return d._endValidator=function(e){var t=d._dateAdapter.getValidDateOrNull(d._dateAdapter.deserialize(e.value)),n=d._model?d._model.selection.start:null;return!t||!n||d._dateAdapter.compareDate(t,n)>=0?null:{matEndDateInvalid:{start:n,actual:t}}},d._validator=r.Validators.compose(Ee(e.prototype._getValidators.call(d),[d._endValidator])),d._canEmitChangeEvent=function(e){return e.source!==d._rangeInput._startInput},d}var i;return be(n,e),i=n,n.prototype.ngOnInit=function(){e.prototype.ngOnInit.call(this)},n.prototype.ngDoCheck=function(){e.prototype.ngDoCheck.call(this)},n.prototype._getValueFromModel=function(e){return e.end},n.prototype._assignValueToModel=function(e){if(this._model){var t=new eo(this._model.selection.start,e);this._model.updateSelection(t,this),this._cvaOnChange(e)}},n.prototype._onKeydown=function(t){t.keyCode!==se.BACKSPACE||this._elementRef.nativeElement.value||this._rangeInput._startInput.focus(),e.prototype._onKeydown.call(this,t)},n.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[Ro]}]},{type:t.ElementRef},{type:D.ErrorStateMatcher},{type:t.Injector},{type:r.NgForm,decorators:[{type:t.Optional}]},{type:r.FormGroupDirective,decorators:[{type:t.Optional}]},{type:Qi,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[D.MAT_DATE_FORMATS]}]}]},n=i=we([t.Directive({selector:"input[gipiMatEndDate]",host:{class:"mat-end-date mat-date-range-input-inner","[disabled]":"disabled","(input)":"_onInput($event.target.value)","(change)":"_onChange()","(keydown)":"_onKeydown($event)","[attr.aria-haspopup]":'_rangeInput.rangePicker ? "dialog" : null',"[attr.aria-owns]":"(_rangeInput.rangePicker?.opened && _rangeInput.rangePicker.id) || null","[attr.min]":"_getMinDate() ? _dateAdapter.toIso8601(_getMinDate()) : null","[attr.max]":"_getMaxDate() ? _dateAdapter.toIso8601(_getMaxDate()) : null","(blur)":"_onBlur()",type:"text"},providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:i,multi:!0},{provide:r.NG_VALIDATORS,useExisting:i,multi:!0}]}),xe(0,t.Inject(Ro)),xe(4,t.Optional()),xe(5,t.Optional()),xe(6,t.Optional()),xe(7,t.Optional()),xe(7,t.Inject(D.MAT_DATE_FORMATS)),Ce("design:paramtypes",[Object,t.ElementRef,D.ErrorStateMatcher,t.Injector,r.NgForm,r.FormGroupDirective,Qi,Object])],n)}(To),No={transformPanel:ae.trigger("transformPanel",[ae.state("void",ae.style({opacity:0,transform:"scale(1, 0.8)"})),ae.transition("void => enter",ae.animate("120ms cubic-bezier(0, 0, 0.2, 1)",ae.style({opacity:1,transform:"scale(1, 1)"}))),ae.transition("* => void",ae.animate("100ms linear",ae.style({opacity:0})))]),fadeInCalendar:ae.trigger("fadeInCalendar",[ae.state("void",ae.style({opacity:0})),ae.state("enter",ae.style({opacity:1})),ae.transition("void => *",ae.animate("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},jo=0,Lo=new t.InjectionToken("mat-datepicker-scroll-strategy");function Bo(e){return function(){return e.scrollStrategies.reposition()}}var Yo,zo={provide:Lo,deps:[ue.Overlay],useFactory:Bo},Ho=function(e){this._elementRef=e},Go=function(e){function n(t,n,i,o,r){var a=e.call(this,t)||this;return a._changeDetectorRef=n,a._model=i,a._dateAdapter=o,a._rangeSelectionStrategy=r,a._subscriptions=new ie.Subscription,a._animationState="enter",a._animationDone=new ie.Subject,a}return be(n,e),n.prototype.ngAfterViewInit=function(){var e=this;this._changeDetectorRef&&this._subscriptions.add(this.datepicker._stateChanges.subscribe((function(){e._changeDetectorRef.markForCheck()}))),this._calendar.focusActiveCell()},n.prototype.ngOnDestroy=function(){this._subscriptions.unsubscribe(),this._animationDone.complete()},n.prototype._handleUserSelection=function(e){if(this._model&&this._dateAdapter){var t=this._model.selection,n=e.value,i=t instanceof eo;if(i&&this._rangeSelectionStrategy){var o=this._rangeSelectionStrategy.selectionFinished(n,t,e.event);this._model.updateSelection(o,this)}else!n||!i&&this._dateAdapter.sameDate(n,t)||this._model.add(n)}this._model&&!this._model.isComplete()||this.datepicker.close()},n.prototype._startExitAnimation=function(){this._animationState="void",this._changeDetectorRef&&this._changeDetectorRef.markForCheck()},n.prototype._getSelected=function(){return this._model?this._model.selection:null},n.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef},{type:to},{type:Qi},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[yo]}]}]},we([t.ViewChild(Oo,{static:!0}),Ce("design:type",Oo)],n.prototype,"_calendar",void 0),n=we([t.Component({selector:"gipi-mat-datepicker-content",template:'<gipi-mat-calendar cdkTrapFocus\n [id]="datepicker.id"\n [ngClass]="datepicker.panelClass"\n [startAt]="datepicker.startAt"\n [startView]="datepicker.startView"\n [minDate]="datepicker._getMinDate()"\n [maxDate]="datepicker._getMaxDate()"\n [dateFilter]="datepicker._getDateFilter()"\n [templatePresetRange]="datepicker.templatePresetRange"\n [selected]="_getSelected()"\n [dateClass]="datepicker.dateClass"\n [comparisonStart]="comparisonStart"\n [comparisonEnd]="comparisonEnd"\n [@fadeInCalendar]="\'enter\'"\n (yearSelected)="datepicker._selectYear($event)"\n (monthSelected)="datepicker._selectMonth($event)"\n (_userSelection)="_handleUserSelection($event)">\n</gipi-mat-calendar>',host:{class:"mat-datepicker-content","[@transformPanel]":"_animationState","(@transformPanel.done)":"_animationDone.next()","[class.mat-datepicker-content-touch]":"datepicker.touchUi"},animations:[No.transformPanel,No.fadeInCalendar],exportAs:"gipiMatDatepickerContent",encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush,inputs:["color"],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{min-width:296px;height:365px}.mat-datepicker-content .gipi-mat-calendar-wrapper .gipi-mat-calendar-content{min-width:296px;min-height:365px;border-left:1px solid rgba(0,0,0,.12)}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}@media all and (orientation:landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation:portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}"]}),xe(4,t.Optional()),xe(4,t.Inject(yo)),Ce("design:paramtypes",[t.ElementRef,t.ChangeDetectorRef,to,Qi,Object])],n)}(D.mixinColor(Ho)),Uo=function(){function e(e,n,i,o,r,a,s,l,p){if(this._dialog=e,this._overlay=n,this._ngZone=i,this._viewContainerRef=o,this._dateAdapter=a,this._dir=s,this._document=l,this._model=p,this._inputStateChanges=ie.Subscription.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this.yearSelected=new t.EventEmitter,this.monthSelected=new t.EventEmitter,this.openedStream=new t.EventEmitter,this.closedStream=new t.EventEmitter,this._opened=!1,this.id="mat-datepicker-"+jo++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=this.id+"-backdrop",this._stateChanges=new ie.Subject,!this._dateAdapter)throw lo("DateAdapter");this._scrollStrategy=r}return Object.defineProperty(e.prototype,"startAt",{get:function(){return this._startAt||(this._datepickerInput?this._datepickerInput.getStartValue():null)},set:function(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color||(this._datepickerInput?this._datepickerInput.getThemePalette():void 0)},set:function(e){this._color=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"touchUi",{get:function(){return this._touchUi},set:function(e){this._touchUi=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return void 0===this._disabled&&this._datepickerInput?this._datepickerInput.disabled:!!this._disabled},set:function(e){var t=le.coerceBooleanProperty(e);t!==this._disabled&&(this._disabled=t,this._stateChanges.next(void 0))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"opened",{get:function(){return this._opened},set:function(e){le.coerceBooleanProperty(e)?this.open():this.close()},enumerable:!1,configurable:!0}),e.prototype._getMinDate=function(){return this._datepickerInput&&this._datepickerInput.min},e.prototype._getMaxDate=function(){return this._datepickerInput&&this._datepickerInput.max},e.prototype._getDateFilter=function(){return this._datepickerInput&&this._datepickerInput.dateFilter},e.prototype.ngOnChanges=function(e){var t=e.xPosition||e.yPosition;t&&!t.firstChange&&this._popupRef&&(this._setConnectedPositions(this._popupRef.getConfig().positionStrategy),this.opened&&this._popupRef.updatePosition()),this._stateChanges.next(void 0)},e.prototype.ngOnDestroy=function(){this._destroyPopup(),this.close(),this._inputStateChanges.unsubscribe(),this._stateChanges.complete()},e.prototype.select=function(e){this._model.add(e)},e.prototype._selectYear=function(e){this.yearSelected.emit(e)},e.prototype._selectMonth=function(e){this.monthSelected.emit(e)},e.prototype._registerInput=function(e){var t=this;if(this._datepickerInput)throw Error("A MatDatepicker can only be associated with a single input.");return this._inputStateChanges.unsubscribe(),this._datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe((function(){return t._stateChanges.next(void 0)})),this._model},e.prototype.open=function(){if(!this._opened&&!this.disabled){if(!this._datepickerInput)throw Error("Attempted to open an MatDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit()}},e.prototype.close=function(){var e=this;if(this._opened){if(this._popupComponentRef&&this._popupRef){var t=this._popupComponentRef.instance;t._startExitAnimation(),t._animationDone.pipe(oe.take(1)).subscribe((function(){return e._destroyPopup()}))}this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null);var n=function(){e._opened&&(e._opened=!1,e.closedStream.emit(),e._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(n)):n()}},e.prototype._openAsDialog=function(){var e=this;this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(Go,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:!0,disableClose:!1,backdropClass:"cdk-overlay-dark-backdrop, "+this._backdropHarnessClass,width:"",height:"",minWidth:"",minHeight:"",maxWidth:"80vw",maxHeight:"",position:{},autoFocus:!0,restoreFocus:!1}),this._dialogRef.afterClosed().subscribe((function(){return e.close()})),this._forwardContentValues(this._dialogRef.componentInstance)},e.prototype._openAsPopup=function(){var e=this,t=new y.ComponentPortal(Go,this._viewContainerRef);this._destroyPopup(),this._createPopup(),this._popupComponentRef=this._popupRef.attach(t),this._forwardContentValues(this._popupComponentRef.instance),this._ngZone.onStable.pipe(oe.take(1)).subscribe((function(){e._popupRef.updatePosition()}))},e.prototype._forwardContentValues=function(e){e.datepicker=this,e.color=this.color},e.prototype._createPopup=function(){var e=this,t=this._overlay.position().flexibleConnectedTo(this._datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition(),n=new ue.OverlayConfig({positionStrategy:this._setConnectedPositions(t),hasBackdrop:!0,backdropClass:["mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(n),this._popupRef.overlayElement.setAttribute("role","dialog"),ie.merge(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(oe.filter((function(t){return t.keyCode===se.ESCAPE||e._datepickerInput&&t.altKey&&t.keyCode===se.UP_ARROW})))).subscribe((function(t){t&&t.preventDefault(),e.close()}))},e.prototype._destroyPopup=function(){this._popupRef&&(this._popupRef.dispose(),this._popupRef=this._popupComponentRef=null)},e.prototype._setConnectedPositions=function(e){var t="end"===this.xPosition?"end":"start",n="start"===t?"end":"start",i="above"===this.yPosition?"bottom":"top",o="top"===i?"bottom":"top";return e.withPositions([{originX:t,originY:o,overlayX:t,overlayY:i},{originX:t,originY:i,overlayX:t,overlayY:o},{originX:n,originY:o,overlayX:n,overlayY:i},{originX:n,originY:i,overlayX:n,overlayY:o}])},we([t.Input(),Ce("design:type",t.TemplateRef)],e.prototype,"templatePresetRange",void 0),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"startAt",null),we([t.Input(),Ce("design:type",String)],e.prototype,"startView",void 0),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"color",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"touchUi",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disabled",null),we([t.Input(),Ce("design:type",String)],e.prototype,"xPosition",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"yPosition",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"yearSelected",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"monthSelected",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"panelClass",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"dateClass",void 0),we([t.Output("opened"),Ce("design:type",t.EventEmitter)],e.prototype,"openedStream",void 0),we([t.Output("closed"),Ce("design:type",t.EventEmitter)],e.prototype,"closedStream",void 0),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"opened",null),e=we([xe(4,t.Inject(Lo)),xe(5,t.Optional()),xe(6,t.Optional()),xe(7,t.Optional()),xe(7,t.Inject(i.DOCUMENT)),Ce("design:paramtypes",[P.MatDialog,ue.Overlay,t.NgZone,t.ViewContainerRef,Object,Qi,ce.Directionality,Object,to])],e)}(),qo=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return be(n,e),n.prototype._forwardContentValues=function(t){e.prototype._forwardContentValues.call(this,t);var n=this._datepickerInput;n&&(t.comparisonStart=n.comparisonStart,t.comparisonEnd=n.comparisonEnd)},n=we([t.Component({selector:"gipi-mat-date-range-picker",template:"",exportAs:"gipiMatDateRangePicker",changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,providers:[so,_o]})],n)}(Uo),Wo=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return be(n,e),n=we([t.Component({selector:"gipi-mat-datepicker",template:"",exportAs:"gipiMatDatepicker",changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,providers:[ro]})],n)}(Uo),$o={provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return Zo})),multi:!0},Ko={provide:r.NG_VALIDATORS,useExisting:t.forwardRef((function(){return Zo})),multi:!0},Xo=new t.InjectionToken("MatFormField"),Zo=function(e){function n(t,n,i,o){var a=e.call(this,t,n,i)||this;return a._formField=o,a._validator=r.Validators.compose(e.prototype._getValidators.call(a)),a}var i;return be(n,e),i=n,Object.defineProperty(n.prototype,"gipiMatDatepicker",{set:function(e){e&&(this._datepicker=e,this._registerModel(e._registerInput(this)))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"min",{get:function(){return this._min},set:function(e){var t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._min)||(this._min=t,this._validatorOnChange())},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"max",{get:function(){return this._max},set:function(e){var t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._max)||(this._max=t,this._validatorOnChange())},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"dateFilter",{get:function(){return this._dateFilter},set:function(e){this._dateFilter=e,this._validatorOnChange()},enumerable:!1,configurable:!0}),n.prototype.getConnectedOverlayOrigin=function(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef},n.prototype.getThemePalette=function(){return this._formField?this._formField.color:void 0},n.prototype.getStartValue=function(){return this.value},n.prototype.getPopupConnectionElementRef=function(){return this.getConnectedOverlayOrigin()},n.prototype._openPopup=function(){this._datepicker&&this._datepicker.open()},n.prototype._getValueFromModel=function(e){return e},n.prototype._assignValueToModel=function(e){this._model&&this._model.updateSelection(e,this)},n.prototype._getMinDate=function(){return this._min},n.prototype._getMaxDate=function(){return this._max},n.prototype._getDateFilter=function(){return this._dateFilter},n.prototype._canEmitChangeEvent=function(){return!0},n.ctorParameters=function(){return[{type:t.ElementRef},{type:Qi,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[D.MAT_DATE_FORMATS]}]},{type:M.MatFormField,decorators:[{type:t.Optional},{type:t.Inject,args:[Xo]}]}]},we([t.Input(),Ce("design:type",Wo),Ce("design:paramtypes",[Wo])],n.prototype,"gipiMatDatepicker",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],n.prototype,"min",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],n.prototype,"max",null),we([t.Input("gipiMatDatepickerFilter"),Ce("design:type",Function),Ce("design:paramtypes",[Function])],n.prototype,"dateFilter",null),n=i=we([t.Directive({selector:"input[gipiMatDatepicker]",providers:[$o,Ko,{provide:V.MAT_INPUT_VALUE_ACCESSOR,useExisting:i}],host:{class:"mat-datepicker-input","[attr.aria-haspopup]":'_datepicker ? "dialog" : null',"[attr.aria-owns]":"(_datepicker?.opened && _datepicker.id) || null","[attr.min]":"min ? _dateAdapter.toIso8601(min) : null","[attr.max]":"max ? _dateAdapter.toIso8601(max) : null","[attr.data-mat-calendar]":"_datepicker ? _datepicker.id : null","[disabled]":"disabled","(input)":"_onInput($event.target.value)","(change)":"_onChange()","(blur)":"_onBlur()","(keydown)":"_onKeydown($event)"},exportAs:"gipiMatDatepickerInput"}),xe(1,t.Optional()),xe(2,t.Optional()),xe(2,t.Inject(D.MAT_DATE_FORMATS)),xe(3,t.Optional()),xe(3,t.Inject(Xo)),Ce("design:paramtypes",[t.ElementRef,Qi,Object,M.MatFormField])],n)}(Po),Jo=0,Qo=function(){function e(e,t,n,i,o){if(this._changeDetectorRef=e,this._elementRef=t,this._dateAdapter=i,this._formField=o,this.id="mat-date-range-input-"+Jo++,this.focused=!1,this.controlType="gipi-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="–",this.comparisonStart=null,this.comparisonEnd=null,this.stateChanges=new ie.Subject,!i)throw lo("DateAdapter");this.ngControl=n}var n;return n=e,Object.defineProperty(e.prototype,"value",{get:function(){return this._model?this._model.selection:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shouldLabelFloat",{get:function(){return this.focused||!this.empty},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){var e=this._startInput?this._startInput._getPlaceholder():"",t=this._endInput?this._endInput._getPlaceholder():"";return e||t?e+" "+this.separator+" "+t:""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rangePicker",{get:function(){return this._rangePicker},set:function(e){e&&(this._model=e._registerInput(this),this._rangePicker=e,this._registerModel(this._model))},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,"dateFilter",{get:function(){return this._dateFilter},set:function(e){this._dateFilter=e,this._revalidate()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"min",{get:function(){return this._min},set:function(e){var t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._min)||(this._min=t,this._revalidate())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){var t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._max)||(this._max=t,this._revalidate())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled},set:function(e){var t=le.coerceBooleanProperty(e);t!==this._groupDisabled&&(this._groupDisabled=t,this.stateChanges.next(void 0))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"errorState",{get:function(){return!(!this._startInput||!this._endInput)&&(this._startInput.errorState||this._endInput.errorState)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){var e=!!this._startInput&&this._startInput.isEmpty(),t=!!this._endInput&&this._endInput.isEmpty();return e&&t},enumerable:!1,configurable:!0}),e.prototype.setDescribedByIds=function(e){this._ariaDescribedBy=e.length?e.join(" "):null},e.prototype.onContainerClick=function(){this.focused||this.disabled||(this._model&&this._model.selection.start?this._endInput.focus():this._startInput.focus())},e.prototype.ngAfterContentInit=function(){var e=this;if(!this._startInput)throw Error("mat-date-range-input must contain a matStartDate input");if(!this._endInput)throw Error("mat-date-range-input must contain a matEndDate input");this._model&&this._registerModel(this._model),ie.merge(this._startInput.stateChanges,this._endInput.stateChanges).subscribe((function(){e.stateChanges.next(void 0)}))},e.prototype.ngOnChanges=function(e){Ao(e,this._dateAdapter)&&this.stateChanges.next(void 0)},e.prototype.ngOnDestroy=function(){this.stateChanges.complete()},e.prototype.getStartValue=function(){return this.value?this.value.start:null},e.prototype.getThemePalette=function(){return this._formField?this._formField.color:void 0},e.prototype.getConnectedOverlayOrigin=function(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef},e.prototype._getInputMirrorValue=function(){return this._startInput?this._startInput.getMirrorValue():""},e.prototype._shouldHidePlaceholders=function(){return!!this._startInput&&!this._startInput.isEmpty()},e.prototype._handleChildValueChange=function(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()},e.prototype._openDatepicker=function(){this._rangePicker&&this._rangePicker.open()},e.prototype._shouldHideSeparator=function(){return(!this._formField||this._formField._hideControlPlaceholder())&&this.empty},e.prototype._getAriaLabelledby=function(){var e=this._formField;return e&&e._hasFloatingLabel()?e._labelId:null},e.prototype._revalidate=function(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()},e.prototype._registerModel=function(e){this._startInput&&this._startInput._registerModel(e),this._endInput&&this._endInput._registerModel(e)},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef},{type:r.ControlContainer,decorators:[{type:t.Optional},{type:t.Self}]},{type:Qi,decorators:[{type:t.Optional}]},{type:M.MatFormField,decorators:[{type:t.Optional},{type:t.Inject,args:[Xo]}]}]},we([t.Input(),Ce("design:type",qo),Ce("design:paramtypes",[qo])],e.prototype,"rangePicker",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"required",null),we([t.Input(),Ce("design:type",Function),Ce("design:paramtypes",[Function])],e.prototype,"dateFilter",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"min",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"max",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disabled",null),we([t.Input(),Ce("design:type",Object)],e.prototype,"separator",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"comparisonStart",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"comparisonEnd",void 0),we([t.ContentChild(Fo,{static:!0}),Ce("design:type",Fo)],e.prototype,"_startInput",void 0),we([t.ContentChild(Vo,{static:!0}),Ce("design:type",Vo)],e.prototype,"_endInput",void 0),e=n=we([t.Component({selector:"gipi-mat-date-range-input",template:'<div class="mat-date-range-input-container"\n cdkMonitorSubtreeFocus\n (cdkFocusChange)="focused = $event !== null">\n <div class="mat-date-range-input-start-wrapper">\n\n <ng-content select="input[gipiMatStartDate]"> </ng-content>\n\n <span class="mat-date-range-input-mirror"\n aria-hidden="true">\n {{_getInputMirrorValue()}}\n </span>\n </div>\n\n <span class="mat-date-range-input-separator"\n [class.mat-date-range-input-separator-hidden]="_shouldHideSeparator()">\n {{separator}}\n </span>\n\n <div class="mat-date-range-input-end-wrapper">\n <ng-content select="input[gipiMatEndDate]"> </ng-content>\n </div>\n</div>',exportAs:"gipiMatDateRangeInput",host:{class:"mat-date-range-input","[class.mat-date-range-input-hide-placeholders]":"_shouldHidePlaceholders()","[class.mat-date-range-input-required]":"required","[attr.id]":"null",role:"group","[attr.aria-labelledby]":"_getAriaLabelledby()","[attr.aria-describedby]":"_ariaDescribedBy","[attr.data-mat-calendar]":"rangePicker ? rangePicker.id : null"},changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,providers:[{provide:M.MatFormFieldControl,useExisting:n},{provide:Ro,useExisting:n}],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center;padding-bottom:3px}.mat-date-range-input-separator{transition:opacity .4s cubic-bezier(.25,.8,.25,1) .133s;margin:0 4px}.mat-date-range-input-separator-hidden{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-inner{font:inherit;background:0 0;color:currentColor;border:none;outline:0;padding:0;margin:0;vertical-align:bottom;text-align:inherit;width:100%;-moz-appearance:none;appearance:none;-webkit-appearance:none}.mat-date-range-input-inner::-ms-clear,.mat-date-range-input-inner::-ms-reveal{display:none}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::-ms-input-placeholder{transition:color .4s cubic-bezier(.25,.8,.25,1) .133s}.mat-date-range-input-inner::placeholder{transition:color .4s cubic-bezier(.25,.8,.25,1) .133s}.mat-date-range-input-inner::-moz-placeholder{transition:color .4s cubic-bezier(.25,.8,.25,1) .133s}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color .4s cubic-bezier(.25,.8,.25,1) .133s}.mat-date-range-input-inner:-ms-input-placeholder{transition:color .4s cubic-bezier(.25,.8,.25,1) .133s}.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-ms-input-placeholder,.mat-form-field-hide-placeholder .mat-date-range-input-inner::-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent!important;-webkit-text-fill-color:transparent;transition:none}.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder,.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent!important;-webkit-text-fill-color:transparent;transition:none}.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder,.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent!important;-webkit-text-fill-color:transparent;transition:none}.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder,.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent!important;-webkit-text-fill-color:transparent;transition:none}.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder,.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:transparent!important;-webkit-text-fill-color:transparent;transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-date-range-input-start-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-start-wrapper .mat-date-range-input-inner{position:absolute;top:0;left:0}.mat-date-range-input-end-wrapper{flex-grow:1;max-width:calc(50% - 4px)}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}"]}),xe(2,t.Optional()),xe(2,t.Self()),xe(3,t.Optional()),xe(4,t.Optional()),xe(4,t.Inject(Xo)),Ce("design:paramtypes",[t.ChangeDetectorRef,t.ElementRef,r.ControlContainer,Qi,M.MatFormField])],e)}(),er=function(){function e(){}return e=we([t.Directive({selector:"[gipiDatepickerToggleIcon]"})],e)}(),tr=function(){function e(e,t,n){this._intl=e,this._changeDetectorRef=t,this._stateChanges=ie.Subscription.EMPTY;var i=Number(n);this.tabIndex=i||0===i?i:null}return Object.defineProperty(e.prototype,"disabled",{get:function(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled},set:function(e){this._disabled=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),e.prototype.ngOnChanges=function(e){e.datepicker&&this._watchStateChanges()},e.prototype.ngOnDestroy=function(){this._stateChanges.unsubscribe()},e.prototype.ngAfterContentInit=function(){this._watchStateChanges()},e.prototype._open=function(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())},e.prototype._watchStateChanges=function(){var e=this,t=this.datepicker?this.datepicker._stateChanges:ie.of(),n=this.datepicker&&this.datepicker._datepickerInput?this.datepicker._datepickerInput.stateChanges:ie.of(),i=this.datepicker?ie.merge(this.datepicker.openedStream,this.datepicker.closedStream):ie.of();this._stateChanges.unsubscribe(),this._stateChanges=ie.merge(this._intl.changes,t,n,i).subscribe((function(){return e._changeDetectorRef.markForCheck()}))},e.ctorParameters=function(){return[{type:po},{type:t.ChangeDetectorRef},{type:String,decorators:[{type:t.Attribute,args:["tabindex"]}]}]},we([t.Input("for"),Ce("design:type",Uo)],e.prototype,"datepicker",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"tabIndex",void 0),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disabled",null),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"disableRipple",void 0),we([t.ContentChild(er,{static:!0}),Ce("design:type",er)],e.prototype,"_customIcon",void 0),we([t.ViewChild("button",{static:!0}),Ce("design:type",I.MatButton)],e.prototype,"_button",void 0),e=we([t.Component({selector:"gipi-mat-datepicker-toggle",template:'<button #button\n mat-icon-button\n type="button"\n [attr.aria-haspopup]="datepicker ? \'dialog\' : null"\n [attr.aria-label]="_intl.openCalendarLabel"\n [attr.tabindex]="disabled ? -1 : tabIndex"\n [disabled]="disabled"\n [disableRipple]="disableRipple"\n (click)="_open($event)">\n\n <svg *ngIf="!_customIcon"\n class="mat-datepicker-toggle-default-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\n <ng-content select="[gipiMatDatepickerToggleIcon]"> </ng-content>\n</button>',host:{class:"mat-datepicker-toggle","[attr.tabindex]":"disabled ? null : -1","[class.mat-datepicker-toggle-active]":"datepicker && datepicker.opened","[class.mat-accent]":'datepicker && datepicker.color === "accent"',"[class.mat-warn]":'datepicker && datepicker.color === "warn"',"[attr.data-mat-calendar]":"datepicker ? datepicker.id : null","(focus)":"_button.focus()"},exportAs:"gipiMatDatepickerToggle",encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}"]}),xe(2,t.Attribute("tabindex")),Ce("design:paramtypes",[po,t.ChangeDetectorRef,String])],e)}();try{Yo="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(e){Yo=!1}var nr,ir=function(){function e(e){this._platformId=e,this.isBrowser=this._platformId?i.isPlatformBrowser(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Yo)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}return e=we([xe(0,t.Inject(t.PLATFORM_ID)),Ce("design:paramtypes",[Object])],e)}();try{nr="undefined"!=typeof Intl}catch(e){nr=!1}var or={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},rr=lr(31,(function(e){return String(e+1)})),ar={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},sr=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function lr(e,t){for(var n=Array(e),i=0;i<e;i++)n[i]=t(i);return n}var pr=function(e){function n(t,n){var i=e.call(this)||this;i._platformId=n,i.useUtcForDisplay=!0,e.prototype.setLocale.call(i,t);var o=new ir(i._platformId);return o?(i.useUtcForDisplay=!o.TRIDENT,i._clampDate=o.TRIDENT||o.EDGE):(i.useUtcForDisplay=!0,i._clampDate=!1),i}return be(n,e),n.prototype.getYear=function(e){return e.getFullYear()},n.prototype.getMonth=function(e){return e.getMonth()},n.prototype.getDate=function(e){return e.getDate()},n.prototype.getDayOfWeek=function(e){return e.getDay()},n.prototype.getMonthNames=function(e){var t=this;if(nr){var n=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return lr(12,(function(e){return t._stripDirectionalityCharacters(t._format(n,new Date(2017,e,1)))}))}return or[e]},n.prototype.getDateNames=function(){var e=this;if(nr){var t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return lr(31,(function(n){return e._stripDirectionalityCharacters(e._format(t,new Date(2017,0,n+1)))}))}return rr},n.prototype.getDayOfWeekNames=function(e){var t=this;if(nr){var n=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return lr(7,(function(e){return t._stripDirectionalityCharacters(t._format(n,new Date(2017,0,e+1)))}))}return ar[e]},n.prototype.getYearName=function(e){if(nr){var t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(t,e))}return String(this.getYear(e))},n.prototype.getFirstDayOfWeek=function(){return 0},n.prototype.getNumDaysInMonth=function(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))},n.prototype.clone=function(e){return new Date(e.getTime())},n.prototype.createDate=function(e,t,n){if(t<0||t>11)throw Error('Invalid month index "'+t+'". Month index has to be between 0 and 11.');if(n<1)throw Error('Invalid date "'+n+'". Date has to be greater than 0.');var i=this._createDateWithOverflow(e,t,n);if(i.getMonth()!=t)throw Error('Invalid date "'+n+'" for month with index "'+t+'".');return i},n.prototype.today=function(){return new Date},n.prototype.parse=function(e){return"number"==typeof e?new Date(e):e?new Date(Date.parse(e)):null},n.prototype.format=function(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");if(nr){this._clampDate&&(e.getFullYear()<1||e.getFullYear()>9999)&&(e=this.clone(e)).setFullYear(Math.max(1,Math.min(9999,e.getFullYear()))),t=_e(_e({},t),{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,t);return this._stripDirectionalityCharacters(this._format(n,e))}return this._stripDirectionalityCharacters(e.toDateString())},n.prototype.addCalendarYears=function(e,t){return this.addCalendarMonths(e,12*t)},n.prototype.addCalendarMonths=function(e,t){var n=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(n)!=((this.getMonth(e)+t)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n},n.prototype.addCalendarDays=function(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)},n.prototype.toIso8601=function(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")},n.prototype.deserialize=function(t){if("string"==typeof t){if(!t)return null;if(sr.test(t)){var n=new Date(t);if(this.isValid(n))return n}}return e.prototype.deserialize.call(this,t)},n.prototype.isDateInstance=function(e){return e instanceof Date},n.prototype.isValid=function(e){return!isNaN(e.getTime())},n.prototype.invalid=function(){return new Date(NaN)},n.prototype._createDateWithOverflow=function(e,t,n){var i=new Date;return i.setFullYear(e,t,n),i.setHours(0,0,0,0),i},n.prototype._2digit=function(e){return("00"+e).slice(-2)},n.prototype._stripDirectionalityCharacters=function(e){return e.replace(/[\u200e\u200f]/g,"")},n.prototype._format=function(e,t){var n=new Date;return n.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(n)},n.ctorParameters=function(){return[{type:String,decorators:[{type:t.Optional},{type:t.Inject,args:[Xi]}]},{type:Object,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]},n=we([t.Injectable(),xe(0,t.Optional()),xe(0,t.Inject(Xi)),xe(1,t.Inject(t.PLATFORM_ID)),Ce("design:paramtypes",[String,Object])],n)}(Qi),dr=function(){function e(){}return e.getBrowser=function(){for(var e=["MSIE","Firefox","Safari","Chrome","Opera"],t=navigator.userAgent,n=e.length-1;n>-1&&-1===t.indexOf(e[n]);n--);return e[n]},e}(),cr=he;e.nextUniqueId=0;var ur,hr=function(){function n(t,n){this.elementRef=t,this._changeDetectorRef=n,this._name="gipi-date-range-"+e.nextUniqueId++,this.idStartDate=this._name+"-start",this.idEndDate=this._name+"-end",this.nameStartDate=this._name+"-start",this.nameEndDate=this._name+"-end",this.label="",this.placeholderStartDate="Inicial",this.placeholderEndDate="Final",this.help="",this.separator="-",this._customRangeLabel="Personalizado",this._maxRange=368,this._minDate=new Date("01/01/2000"),this._required=!1,this._readonly=!1,this._disabled=!1,this._dateFilter=null,this.onChange=function(){},this.onTouched=function(){}}var i;return i=n,Object.defineProperty(n.prototype,"startDate",{get:function(){return this._startDate},set:function(e){this._startDate=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"endDate",{get:function(){return this._endDate},set:function(e){this._endDate=e,this.value=new eo(this.startDate,e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"customRangeLabel",{get:function(){return this._customRangeLabel},set:function(e){this._customRangeLabel=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ranges",{get:function(){return this._ranges},set:function(e){this._ranges=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"maxRange",{get:function(){return this._maxRange},set:function(e){this._maxRange=le.coerceNumberProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"minDate",{get:function(){return this._minDate},set:function(e){this._minDate=e,this._minDate.setHours(0,0,0,0)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"maxDate",{get:function(){return this._maxDate},set:function(e){this._maxDate=e,this._maxDate.setHours(0,0,0,0)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"required",{get:function(){return this._required},set:function(e){this._required=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"readonly",{get:function(){return this._readonly},set:function(e){this._readonly=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"dateFilter",{get:function(){return this._dateFilter},set:function(e){this._dateFilter=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this._value},set:function(e){var t=null,n=null;e&&e.start&&(t=cr(e.start).startOf("day").toDate()),e&&e.end&&(n=cr(e.end).endOf("day").toDate()),t&&n&&(this._value=new eo(t,n),this.onChange(this._value),this.onTouched(this._value))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"formattedValue",{get:function(){return""},enumerable:!1,configurable:!0}),n.prototype.ngOnInit=function(){},n.prototype.ngOnDestroy=function(){},n.prototype.writeValue=function(e){e&&e.start?this.startDate=cr(e.start).startOf("day").toDate():this.startDate=null,e&&e.end?this.endDate=cr(e.end).endOf("day").toDate():this.endDate=null,this._changeDetectorRef.detectChanges()},n.prototype.registerOnChange=function(e){this.onChange=e},n.prototype.registerOnTouched=function(e){this.onTouched=e},n.prototype.setDisabledState=function(e){this.disabled=e,this._changeDetectorRef.markForCheck()},n.prototype.onInputContentClick=function(e){this.readonly&&this.matDatepickerToggleRef&&this.matDatepickerToggleRef._open(e)},n.prototype.generatedStartDate=function(e,t){if(t||"Firefox"!==dr.getBrowser()){var n=!1;!e.includes("/")||t&&10!==e.length?e.includes("/")||t&&8!==e.length||(this.startDate=cr(e,"DDMMYYYY").toDate(),n=!0):(this.startDate=cr(e,"DD/MM/YYYY").toDate(),n=!0),"Firefox"!==dr.getBrowser()?n&&!$i.isValid(this.startDate)&&(this.startDate=void 0):n&&!this.startDate&&(this.startDate=void 0)}},n.prototype.generatedEndDate=function(e,t){if(t||"Firefox"!==dr.getBrowser()){var n=!1;!e.includes("/")||t&&10!==e.length?e.includes("/")||t&&8!==e.length||(this.endDate=cr(e,"DDMMYYYY").toDate(),n=!0):(this.endDate=cr(e,"DD/MM/YYYY").toDate(),n=!0),"Firefox"!==dr.getBrowser()?n&&!$i.isValid(this.endDate)&&(this.endDate=void 0):n&&!this.endDate&&(this.endDate=void 0)}},n.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},we([t.ViewChild(tr,{static:!0}),Ce("design:type",tr)],n.prototype,"matDatepickerToggleRef",void 0),we([t.Input("idStart"),Ce("design:type",String)],n.prototype,"idStartDate",void 0),we([t.Input("idEnd"),Ce("design:type",String)],n.prototype,"idEndDate",void 0),we([t.Input("nameStart"),Ce("design:type",String)],n.prototype,"nameStartDate",void 0),we([t.Input("nameEnd"),Ce("design:type",String)],n.prototype,"nameEndDate",void 0),we([t.Input(),Ce("design:type",String)],n.prototype,"label",void 0),we([t.Input("placeholderStart"),Ce("design:type",String)],n.prototype,"placeholderStartDate",void 0),we([t.Input("placeholderEnd"),Ce("design:type",String)],n.prototype,"placeholderEndDate",void 0),we([t.Input(),Ce("design:type",String)],n.prototype,"help",void 0),we([t.Input(),Ce("design:type",String)],n.prototype,"separator",void 0),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],n.prototype,"customRangeLabel",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],n.prototype,"ranges",null),we([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],n.prototype,"maxRange",null),we([t.Input("min"),Ce("design:type",Date),Ce("design:paramtypes",[Date])],n.prototype,"minDate",null),we([t.Input("max"),Ce("design:type",Date),Ce("design:paramtypes",[Date])],n.prototype,"maxDate",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],n.prototype,"required",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],n.prototype,"readonly",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],n.prototype,"disabled",null),we([t.Input(),Ce("design:type",Function),Ce("design:paramtypes",[Function])],n.prototype,"dateFilter",null),we([t.Input(),Ce("design:type",eo),Ce("design:paramtypes",[eo])],n.prototype,"value",null),n=i=we([t.Component({selector:"gipi-date-range-picker",exportAs:"gipiDateRangePicker",template:'<div class="input-wrapper">\n\n <label *ngIf="label"\n class="input-label"\n [attr.for]="\'dateRangeInput\'">\n {{ label }}\n <span *ngIf="required"> * </span>\n </label>\n\n <div class="input-content"\n (click)="onInputContentClick($event)">\n <gipi-mat-date-range-input #matDateRangeInput\n id="dateRangeInput"\n [min]="minDate"\n [max]="maxDate"\n [disabled]="disabled"\n [required]="required"\n [separator]="separator"\n [rangePicker]="rangepicker">\n <input gipiMatStartDate\n class="input-element"\n [attr.id]="idStartDate"\n [attr.name]="nameStartDate"\n [placeholder]="placeholderStartDate"\n [disabled]="disabled"\n [required]="required"\n [readOnly]="readonly"\n [autocomplete]="\'off\'"\n [autofocus]="false"\n [maxlength]="10"\n [(ngModel)]="startDate"\n (keyup)="generatedStartDate($event.target.value, true)"\n (change)="generatedStartDate($event.target.value, false)" />\n\n <input gipiMatEndDate\n class="input-element"\n [attr.id]="idEndDate"\n [attr.name]="nameEndDate"\n [placeholder]="placeholderEndDate"\n [disabled]="disabled"\n [required]="required"\n [readOnly]="readonly"\n [autocomplete]="\'off\'"\n [autofocus]="false"\n [maxlength]="10"\n [(ngModel)]="endDate"\n (keyup)="generatedEndDate($event.target.value, true)"\n (change)="generatedEndDate($event.target.value, false)" />\n </gipi-mat-date-range-input>\n\n <div class="suffix">\n <gipi-mat-datepicker-toggle matSuffix\n [for]="rangepicker">\n </gipi-mat-datepicker-toggle>\n </div>\n </div>\n\n <small *ngIf="help"\n class="input-help">\n {{ help }}\n </small>\n</div>\n\n<gipi-mat-date-range-picker #rangepicker\n [maxRange]="maxRange"\n [templatePresetRange]="templatePresetRange">\n</gipi-mat-date-range-picker>\n\n<ng-template #templatePresetRange\n let-component>\n <gipi-preset-range [matDateRangeInput]="matDateRangeInput"\n [matCalendar]="component"\n [matDateRangePicker]="rangepicker"\n [customRangeLabel]="\'Personalizado\'"\n [maxRange]="maxRange"\n [ranges]="ranges">\n </gipi-preset-range>\n</ng-template>\n',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return i})),multi:!0}],host:{class:"gipi-date-range-picker"},styles:[":host{display:block;width:100%;min-width:0;max-width:100%;flex:1}.input-wrapper{display:flex;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}.input-wrapper .input-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}.input-wrapper .input-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}.input-wrapper .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}.input-wrapper .input-content .input-element{padding:.75rem .8rem;border:none;outline:0;background-color:transparent;flex:1;color:inherit;caret-color:#696969;min-width:0}.input-wrapper .input-content:not(.input-element:disabled):has(.input-element:enabled:hover),.input-wrapper .input-content:not(.input-element:disabled):has(.prefix:hover),.input-wrapper .input-content:not(.input-element:disabled):has(.suffix:hover){border-color:#6d6f73}.input-wrapper .input-content:not(.input-element:disabled):has(.input-element:enabled:focus){outline:0;outline-offset:0;box-shadow:0 0 0 .2rem #e0e1e2;border-color:#6d6f73}.input-wrapper .input-content:has(.input-element:disabled){color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;cursor:not-allowed}.input-wrapper .input-content:has(.input-element:disabled) .suffix>mat-icon{color:#bbbdc1!important}.input-wrapper .input-content .input-element:disabled{cursor:not-allowed}.input-wrapper .input-content .suffix{display:flex;align-items:center;justify-content:center;padding-block:.75rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding-right:.8rem}.input-wrapper .input-content .suffix>mat-icon{width:2rem;height:2rem;font-size:2rem;color:#696969}.input-wrapper .input-help{flex:1;font-size:1rem;font-weight:500;margin-top:-.4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}::ng-deep .mat-date-range-input{height:4rem!important;padding-left:.8rem!important}::ng-deep .mat-date-range-input-container,::ng-deep .mat-date-range-input-end-wrapper,::ng-deep .mat-date-range-input-inner,::ng-deep .mat-date-range-input-start-wrapper{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;max-width:100%;min-height:100%;height:100%;padding-bottom:3px}::ng-deep .mat-date-range-input-end-wrapper{padding-bottom:0!important}::ng-deep .mat-date-range-input-inner{padding:0!important}::-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])],n)}(),gr=function(){function e(e){this._dateAdapter=e}return e.prototype.selectionFinished=function(e,t){var n=t.start,i=t.end;if(null==n)n=e;else if(null==i&&e&&this._dateAdapter.compareDate(e,n)>=0){var o=this._dateAdapter.addCalendarDays(n,this.delta-1);i=e>o?o:e}else n=e,i=null;return new eo(n,i)},e.prototype.createPreview=function(e,t){if(t.start&&!t.end){var n=this._dateAdapter.addCalendarDays(t.start,this.delta-1),i=e?e>n?n:e:null;return new eo(t.start,i)}return new eo(null,null)},e.ctorParameters=function(){return[{type:Qi}]},e=we([t.Injectable(),Ce("design:paramtypes",[Qi])],e)}(),mr=function(){function e(e){this.maxRangeStrategy=e}return Object.defineProperty(e.prototype,"maxRange",{set:function(e){this.maxRangeStrategy.delta=+e||365},enumerable:!1,configurable:!0}),e.ctorParameters=function(){return[{type:gr,decorators:[{type:t.Inject,args:[yo]}]}]},we([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"maxRange",null),e=we([t.Directive({selector:"[maxRange]",providers:[{provide:yo,useClass:gr}]}),xe(0,t.Inject(yo)),Ce("design:paramtypes",[gr])],e)}(),fr=he,yr=function(){function e(e){this._changeDetectorRef=e,this._destroy$=new ie.Subject,this.rangesArray=[],this.selectedRange="",this.matDateRangeInput=null,this.matCalendar=null,this.matDateRangePicker=null,this._customRangeLabel="Personalizado"}var n;return n=e,Object.defineProperty(e.prototype,"customRangeLabel",{get:function(){return this._customRangeLabel},set:function(e){this._customRangeLabel=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ranges",{get:function(){return this._ranges},set:function(e){this._ranges=e,this._renderRanges()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxRange",{get:function(){return this._maxRange},set:function(e){this._maxRange=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_startDate",{get:function(){return this.matCalendar.selected.start},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_endDate",{get:function(){return this.matCalendar.selected.end},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_minDate",{get:function(){return this.matCalendar.minDate},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_maxDate",{get:function(){return this.matCalendar.maxDate},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){var e=this;this.matCalendar.stateChanges.pipe(oe.takeUntil(this._destroy$)).subscribe((function(){e._loadSelectedRange(),e._changeDetectorRef.markForCheck()})),this._loadSelectedRange()},e.prototype.ngOnDestroy=function(){this._destroy$.next()},e.prototype._renderRanges=function(){var e,t;if("object"==typeof this.ranges){for(var n in this.ranges)if(this.ranges[n]){e=(this.ranges[n][0],fr(this.ranges[n][0])),t=(this.ranges[n][1],fr(this.ranges[n][1]));var i=fr(this._minDate).clone(),o=fr(this._maxDate).clone();if(i.isValid()&&e.isBefore(i)&&(e=i.clone()),o.isValid()&&e.clone().add(this.maxRange-1,"days").isAfter(o)&&(o=e),o.isValid()&&t.isAfter(o)&&(t=o.clone()),i&&t.isBefore(i,"day")||o&&e.isAfter(o,"day"))continue;this.ranges[n]=[e,t]}for(var n in this.ranges)this.ranges[n]&&this.rangesArray.push(n)}this._loadSelectedRange()},e.prototype._loadSelectedRange=function(){var e=!0,t=0;if(this.rangesArray.length>0){var n=fr(this._startDate).startOf("day"),i=fr(this._endDate).startOf("day");for(var o in this.ranges)if(this.ranges[o]){var r=this.ranges[o][0].startOf("day"),a=this.ranges[o][1].startOf("day");if(n.isSame(r)&&i.isSame(a)){e=!1,this.selectedRange=this.rangesArray[t];break}t++}e&&(this.selectedRange=this.customRangeLabel)}else this.selectedRange=this.customRangeLabel},e.prototype._calculateDateRange=function(e){var t=this._minDate?fr(this._minDate):null,n=this._maxDate?fr(this._maxDate):null,i=Oe([this.ranges[e][0],this.ranges[e][1]],2),o=i[0],r=i[1],a=null,s=null;if(a=t&&o.isBefore(t)?t.clone():o.clone(),s=n&&r.isAfter(n)?n.clone():r.clone(),e===this.customRangeLabel){var l=this.matCalendar.selected;a=l.start,s=l.end}return[this._getValidDateOrNull(a.toDate()),this._getValidDateOrNull(s.toDate())]},e.prototype._getValidDateOrNull=function(e){return this._isDateInstance(e)&&this._isValid(e)?e:null},e.prototype._isDateInstance=function(e){return e instanceof Date},e.prototype._isValid=function(e){return!isNaN(e.getTime())},e.prototype.clickRange=function(e,t){if(t!==this.customRangeLabel){var n=Oe(this._calculateDateRange(t),2),i=n[0],o=n[1];this.matDateRangePicker.select(i),this.matDateRangePicker.select(o),this.matDateRangePicker.close()}},e.prototype.isDisableRange=function(e){var t=this;if(e===this._customRangeLabel)return!1;var n=this._ranges[e],i=n.every((function(e){var n=fr(t.matCalendar.minDate);return!!n&&fr(e).isBefore(n)})),o=n.every((function(e){var n=fr(t.matCalendar.maxDate);return!!n&&fr(e).isAfter(n)}));return i||o},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",Qo)],e.prototype,"matDateRangeInput",void 0),we([t.Input(),Ce("design:type",Oo)],e.prototype,"matCalendar",void 0),we([t.Input(),Ce("design:type",qo)],e.prototype,"matDateRangePicker",void 0),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"customRangeLabel",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"ranges",null),we([t.Input(),Ce("design:type",Number),Ce("design:paramtypes",[Number])],e.prototype,"maxRange",null),e=n=we([t.Component({selector:"gipi-preset-range",template:'<div class="preset-range-wrapper">\n <button *ngFor="let range of rangesArray"\n class="preset-range-btn"\n [class.selected]="range === selectedRange"\n [disabled]="isDisableRange(range)"\n (click)="clickRange($event, range)">\n {{ range }}\n </button>\n <button class="preset-range-btn"\n [disabled]="isDisableRange(customRangeLabel)"\n [class.selected]="selectedRange === customRangeLabel">\n {{ customRangeLabel }}\n </button>\n</div>\n',changeDetection:t.ChangeDetectionStrategy.OnPush,providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-preset-range"},styles:[".preset-range-wrapper{display:flex;flex-direction:column;padding:.9rem;height:100%;background:#f0f0f0;border-top-left-radius:.6rem;border-bottom-left-radius:.6rem}.preset-range-btn{display:flex;align-items:center;justify-content:flex-start;padding:.8rem;height:3.6rem;border-radius:.6rem;background-color:transparent;outline:0;cursor:pointer;color:#595959;border:none;transition:.2s}.preset-range-btn.selected{background-color:#e0313e;color:#fff}.preset-range-btn.selected:hover{background-color:#9f232c}.preset-range-btn:hover{background-color:#e0313e;color:#fff}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef])],e)}(),vr=he,br=0,_r=function(){function e(e,t){this.elementRef=e,this._changeDetectorRef=t,this._name="gipi-date-range-"+br++,this.id=this._name+"-date",this.name=this._name+"-date",this.label="",this.placeholder="__/__/____",this.help="",this._minDate=new Date("01/01/2000"),this._required=!1,this._readonly=!1,this._disabled=!1,this._dateFilter=null,this.onChange=function(){},this.onTouched=function(){}}var n;return n=e,Object.defineProperty(e.prototype,"minDate",{get:function(){return this._minDate},set:function(e){this._minDate=e,ze.isNull(e)||this._minDate.setHours(0,0,0,0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxDate",{get:function(){return this._maxDate},set:function(e){this._maxDate=e,ze.isNull(e)||this._maxDate.setHours(0,0,0,0)},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,"readonly",{get:function(){return this._readonly},set:function(e){this._readonly=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,"dateFilter",{get:function(){return this._dateFilter},set:function(e){this._dateFilter=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.onChange(this._value),this.onTouched(this._value)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"formattedValue",{get:function(){return""},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){},e.prototype.ngOnDestroy=function(){},e.prototype.writeValue=function(e){this.value=e,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.onInputContentClick=function(e){this.readonly&&this.matDatepickerToggleRef},e.prototype.generatedDate=function(e,t){if(t||"Firefox"!==dr.getBrowser()){var n=!1;!e.includes("/")||t&&10!==e.length?e.includes("/")||t&&8!==e.length||(this.value=vr(e,"DDMMYYYY").toDate(),n=!0):(this.value=vr(e,"DD/MM/YYYY").toDate(),n=!0),"Firefox"!==dr.getBrowser()?n&&!$i.isValid(this.value)&&(this.value=void 0):n&&!this.value&&(this.value=void 0)}},e.prototype.validateMinAndMaxDate=function(e){var t=vr(e,"DD/MM/YYYY").toDate();$i.isLessThan(t,this.minDate)?this.value=void 0:this.maxDate&&(this.value=$i.isGreaterThan(t,this.maxDate)?void 0:t)},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},we([t.ViewChild(tr,{static:!0}),Ce("design:type",tr)],e.prototype,"matDatepickerToggleRef",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",String)],e.prototype,"help",void 0),we([t.Input("min"),Ce("design:type",Date),Ce("design:paramtypes",[Date])],e.prototype,"minDate",null),we([t.Input("max"),Ce("design:type",Date),Ce("design:paramtypes",[Date])],e.prototype,"maxDate",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,"readonly",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disabled",null),we([t.Input(),Ce("design:type",Function),Ce("design:paramtypes",[Function])],e.prototype,"dateFilter",null),we([t.Input(),Ce("design:type",Date),Ce("design:paramtypes",[Date])],e.prototype,"value",null),e=n=we([t.Component({selector:"gipi-datepicker",exportAs:"gipiDatePicker",template:'<div class="input-wrapper">\n\n <label *ngIf="label"\n class="input-label"\n [attr.for]="id">\n {{ label }}\n <span *ngIf="required"> * </span>\n </label>\n\n <div class="input-content"\n (click)="onInputContentClick($event)">\n <input matInput\n class="input-element"\n type="text"\n [attr.id]="id"\n [attr.name]="name"\n [gipiMatDatepicker]="picker"\n [min]="minDate"\n [max]="maxDate"\n [maxlength]="10"\n [placeholder]="placeholder"\n [disabled]="disabled"\n [required]="required"\n [readOnly]="readonly"\n [autocomplete]="\'off\'"\n [autofocus]="false"\n [(ngModel)]="value"\n (keyup)="generatedDate($event.target.value, true)"\n (change)="generatedDate($event.target.value, false)"\n (blur)="validateMinAndMaxDate($event.target.value)" />\n\n <div class="suffix">\n <gipi-mat-datepicker-toggle [for]="picker"> </gipi-mat-datepicker-toggle>\n </div>\n </div>\n\n <small *ngIf="help"\n class="input-help">\n {{ help }}\n </small>\n</div>\n\n<gipi-mat-datepicker #picker> </gipi-mat-datepicker>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-datepicker"},styles:[":host{display:block;width:100%;min-width:0;max-width:100%;flex:1}.input-wrapper{display:flex;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}.input-wrapper .input-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}.input-wrapper .input-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}.input-wrapper .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}.input-wrapper .input-content .input-element{padding:.75rem .8rem;border:none;outline:0;background-color:transparent;flex:1;color:inherit;caret-color:#696969;min-width:0}.input-wrapper .input-content:not(.input-element:disabled):has(.input-element:enabled:hover),.input-wrapper .input-content:not(.input-element:disabled):has(.prefix:hover),.input-wrapper .input-content:not(.input-element:disabled):has(.suffix:hover){border-color:#6d6f73}.input-wrapper .input-content:not(.input-element:disabled):has(.input-element:enabled:focus){outline:0;outline-offset:0;box-shadow:0 0 0 .2rem #e0e1e2;border-color:#6d6f73}.input-wrapper .input-content:has(.input-element:disabled){color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;cursor:not-allowed}.input-wrapper .input-content:has(.input-element:disabled) .suffix>mat-icon{color:#bbbdc1!important}.input-wrapper .input-content .input-element:disabled{cursor:not-allowed}.input-wrapper .input-content .suffix{display:flex;align-items:center;justify-content:center;padding-block:.75rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding-right:.8rem}.input-wrapper .input-content .suffix>mat-icon{width:2rem;height:2rem;font-size:2rem;color:#696969}.input-wrapper .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)}(),wr={parse:{dateInput:"DD/MM/YYYY"},display:{dateInput:"DD/MM/YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},xr=function(){function e(){}return e=we([t.NgModule({imports:[i.CommonModule,I.MatButtonModule,P.MatDialogModule,ue.OverlayModule,m.A11yModule,y.PortalModule,r.FormsModule,r.ReactiveFormsModule,de.PlatformModule,a.MatNativeDateModule],exports:[v.ScrollingModule,r.FormsModule,r.ReactiveFormsModule,de.PlatformModule,Oo,uo,Wo,Go,Zo,tr,er,wo,ko,xo,Eo,Qo,Fo,Vo,qo,mr,yr,hr,_r],declarations:[Oo,uo,Wo,Go,Zo,tr,er,wo,ko,xo,Eo,Qo,Fo,Vo,qo,mr,yr,hr,_r],providers:[po,zo,{provide:Qi,useClass:pr,deps:[Xi]},{provide:Xi,useValue:"pt-BR"},{provide:Me,useValue:wr}],entryComponents:[Go]})],e)}(),Cr=(ae.trigger("fadeInContent",[ae.state("showing",ae.style({opacity:1})),ae.transition("void => showing",[ae.style({opacity:0}),ae.animate("150ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])]),ae.trigger("slideCalendar",[ae.transition("* => left",[ae.animate(180,ae.keyframes([ae.style({transform:"translateX(100%)",offset:.5}),ae.style({transform:"translateX(-100%)",offset:.51}),ae.style({transform:"translateX(0)",offset:1})]))]),ae.transition("* => right",[ae.animate(180,ae.keyframes([ae.style({transform:"translateX(-100%)",offset:.5}),ae.style({transform:"translateX(100%)",offset:.51}),ae.style({transform:"translateX(0)",offset:1})]))])]));function Ir(e){return Error("GIPIDatetimepickerComponent: No provider found for "+e+". You must import one of the following modules at your application root: GIPINativeDatetimeModule, GIPIMomentDatetimeModule, or provide a custom implementation.")}(ur=e.GIPIDatetimepickerFilterType||(e.GIPIDatetimepickerFilterType={}))[ur.DATE=0]="DATE",ur[ur.HOUR=1]="HOUR",ur[ur.MINUTE=2]="MINUTE";var Sr=function(e,t,n,i){this.value=e,this.displayValue=t,this.ariaLabel=n,this.enabled=i},kr=function(){function e(){this.cellAspectRatio=1,this.numCols=7,this.allowDisabledSelection=!1,this.activeCell=0,this.selectedValueChange=new t.EventEmitter}return e.prototype._cellClicked=function(e){(this.allowDisabledSelection||e.enabled)&&this.selectedValueChange.emit(e.value)},e.prototype._isActiveCell=function(e,t){var n=e*this.numCols+t;return e&&(n-=this._firstRowOffset),n===this.activeCell},e.prototype.ngOnChanges=function(e){var t=e.numCols,n=this.rows,i=this.numCols;(e.rows||t)&&(this._firstRowOffset=n&&n.length&&n[0].length?i-n[0].length:0),(e.cellAspectRatio||t||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/i+"%"),!t&&this._cellWidth||(this._cellWidth=100/i+"%")},we([t.Input(),Ce("design:type",Number)],e.prototype,"cellAspectRatio",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"label",void 0),we([t.Input(),Ce("design:type",Array)],e.prototype,"rows",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"todayValue",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"selectedValue",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"labelMinRequiredCells",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"numCols",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"allowDisabledSelection",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"activeCell",void 0),we([t.Output(),Ce("design:type",Object)],e.prototype,"selectedValueChange",void 0),e=we([t.Component({selector:"tbody[gipiMatDatetimePickerCalendarBody]",template:'\x3c!-- Se não houver espaço suficiente na primeira linha, crie uma linha de rótulo separada. Marcamos esta linha\ncomo aria-hidden porque não queremos que seja lido como uma das semanas do mês. --\x3e\n<tr *ngIf="_firstRowOffset < labelMinRequiredCells"\n aria-hidden="true">\n\n <td class="gipi-mat-datetime-picker-calendar-body-label"\n [attr.colspan]="numCols"\n [style.paddingTop]="_cellPadding"\n [style.paddingBottom]="_cellPadding">\n {{ label }}\n </td>\n\n</tr>\n\n\x3c!-- Crie a primeira linha separadamente para que possamos incluir uma célula espaçadora especial. --\x3e\n<tr *ngFor="let row of rows; let rowIndex = index"\n role="row">\n \x3c!-- Marcamos esta célula como oculta por ária para que não seja lida como um dos dias da semana. --\x3e\n <td *ngIf="rowIndex === 0 && _firstRowOffset"\n aria-hidden="true"\n class="gipi-mat-datetime-picker-calendar-body-label"\n [attr.colspan]="_firstRowOffset"\n [style.paddingTop]="_cellPadding"\n [style.paddingBottom]="_cellPadding">\n {{ _firstRowOffset >= labelMinRequiredCells ? label : \'\' }}\n </td>\n\n <td *ngFor="let item of row; let colIndex = index"\n role="button"\n class="gipi-mat-datetime-picker-calendar-body-cell"\n [attr.aria-disabled]="!item.enabled || null"\n [attr.aria-label]="item.ariaLabel"\n [class.gipi-mat-datetime-picker-calendar-body-active]="_isActiveCell(rowIndex, colIndex)"\n [class.gipi-mat-datetime-picker-calendar-body-disabled]="!item.enabled"\n (click)="_cellClicked(item)"\n [style.width]="_cellWidth"\n [style.paddingTop]="_cellPadding"\n [style.paddingBottom]="_cellPadding">\n\n <div class="gipi-mat-datetime-picker-calendar-body-cell-content"\n [class.gipi-mat-datetime-picker-calendar-body-selected]="selectedValue === item.value"\n [class.gipi-mat-datetime-picker-calendar-body-today]="todayValue === item.value"\n [attr.aria-selected]="selectedValue === item.value">\n {{ item.displayValue }}\n </div>\n\n </td>\n</tr>\n',encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush,host:{class:"gipi-mat-datetime-picker-calendar-body"},styles:[".gipi-mat-datetime-picker-calendar-body{font-size:13px;min-width:224px}.gipi-mat-datetime-picker-calendar-body-label{padding:7.14286% 0 7.14286% 7.14286%;height:0;line-height:0;color:rgba(0,0,0,.54);transform:translateX(-6px);text-align:left}.gipi-mat-datetime-picker-calendar-body-cell{position:relative;width:14.28571%;height:0;line-height:0;padding:7.14286% 0;text-align:center;outline:0;cursor:pointer}.gipi-mat-datetime-picker-calendar-body-disabled{cursor:default;pointer-events:none}.gipi-mat-datetime-picker-calendar-body-cell-content{position:absolute;top:5%;left:5%;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;color:rgba(0,0,0,.87);border:1px solid transparent;border-radius:50%}.gipi-mat-datetime-picker-calendar-body-disabled>.gipi-mat-datetime-picker-calendar-body-cell-content:not(.gipi-mat-datetime-picker-calendar-body-selected){color:rgba(0,0,0,.38)}.mat-calendar:focus .gipi-mat-datetime-picker-calendar-body-active>.gipi-mat-datetime-picker-calendar-body-cell-content:not(.gipi-mat-datetime-picker-calendar-body-selected),:not(.gipi-mat-datetime-picker-calendar-body-disabled):hover>.gipi-mat-datetime-picker-calendar-body-cell-content:not(.gipi-mat-datetime-picker-calendar-body-selected){background-color:rgba(0,0,0,.12)}.gipi-mat-datetime-picker-calendar-body-disabled>.gipi-mat-datetime-picker-calendar-body-today:not(.gipi-mat-datetime-picker-calendar-body-selected){border-color:rgba(0,0,0,.18)}[dir=rtl] .gipi-mat-datetime-picker-calendar-body-label{padding:0 7.14286% 0 0;transform:translateX(6px);text-align:right}"]})],e)}(),Or=function(e){function t(t){var n=e.call(this)||this;return n._delegate=t,n}return be(t,e),t.prototype.getValidDateOrNull=function(e){return this.isDateInstance(e)&&this.isValid(e)?e:null},t.prototype.compareDatetime=function(e,t,n){return void 0===n&&(n=!0),this.compareDate(e,t)||this.getHour(e)-this.getHour(t)||n&&this.getMinute(e)-this.getMinute(t)},t.prototype.sameDatetime=function(e,t){if(e&&t){var n=this.isValid(e),i=this.isValid(t);return n&&i?!this.compareDatetime(e,t):n===i}return e===t},t.prototype.sameYear=function(e,t){return e&&t&&this.getYear(e)===this.getYear(t)},t.prototype.sameDay=function(e,t){return e&&t&&this.getDate(e)===this.getDate(t)&&this.sameMonthAndYear(e,t)},t.prototype.sameHour=function(e,t){return e&&t&&this.getHour(e)===this.getHour(t)&&this.sameDay(e,t)},t.prototype.sameMinute=function(e,t){return e&&t&&this.getMinute(e)===this.getMinute(t)&&this.sameHour(e,t)},t.prototype.sameMonthAndYear=function(e,t){if(e&&t){var n=this.isValid(e),i=this.isValid(t);return n&&i?!(this.getYear(e)-this.getYear(t)||this.getMonth(e)-this.getMonth(t)):n===i}return e===t},t.prototype.deserialize=function(e){return this._delegate.deserialize(e)},t.prototype.clone=function(e){return this._delegate.clone(e)},t.prototype.addCalendarYears=function(e,t){return this._delegate.addCalendarYears(e,t)},t.prototype.addCalendarMonths=function(e,t){return this._delegate.addCalendarMonths(e,t)},t.prototype.addCalendarDays=function(e,t){return this._delegate.addCalendarDays(e,t)},t.prototype.getYear=function(e){return this._delegate.getYear(e)},t.prototype.getMonth=function(e){return this._delegate.getMonth(e)},t.prototype.getDate=function(e){return this._delegate.getDate(e)},t.prototype.getDayOfWeek=function(e){return this._delegate.getDayOfWeek(e)},t.prototype.getMonthNames=function(e){return this._delegate.getMonthNames(e)},t.prototype.getDateNames=function(){return this._delegate.getDateNames()},t.prototype.getDayOfWeekNames=function(e){return this._delegate.getDayOfWeekNames(e)},t.prototype.getYearName=function(e){return this._delegate.getYearName(e)},t.prototype.getFirstDayOfWeek=function(){return this._delegate.getFirstDayOfWeek()},t.prototype.getNumDaysInMonth=function(e){return this._delegate.getNumDaysInMonth(e)},t.prototype.createDate=function(e,t,n){return this._delegate.createDate(e,t,n)},t.prototype.today=function(){return this._delegate.today()},t.prototype.parse=function(e,t){return this._delegate.parse(e,t)},t.prototype.format=function(e,t){return this._delegate.format(e,t)},t.prototype.toIso8601=function(e){return this._delegate.toIso8601(e)},t.prototype.isDateInstance=function(e){return this._delegate.isDateInstance(e)},t.prototype.isValid=function(e){return this._delegate.isValid(e)},t.prototype.invalid=function(){return this._delegate.invalid()},t.prototype.clampDate=function(e,t,n){return t&&this.compareDatetime(e,t)<0?t:n&&this.compareDatetime(e,n)>0?n:e},t}(D.DateAdapter),Er=function(){function e(e,n){if(this._adapter=e,this._dateFormats=n,this.type="date",this.selectedChange=new t.EventEmitter,this._userSelection=new t.EventEmitter,!this._adapter)throw Ir("GIPIDatetimeAdapter");if(!this._dateFormats)throw Ir("GIPI_DATETIME_FORMATS");this._activeDate=this._adapter.today()}return Object.defineProperty(e.prototype,"activeDate",{get:function(){return this._activeDate},set:function(e){var t=this._activeDate;this._activeDate=e||this._adapter.today(),t&&this._activeDate&&!Dr(this._adapter,t,this._activeDate,this.minDate,this.maxDate)&&this._init()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(e){this._selected=e,this._selectedYear=this._selected&&this._adapter.getYear(this._selected)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minDate",{get:function(){return this._minDate},set:function(e){this._minDate=this._getValidDateOrNull(this._adapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxDate",{get:function(){return this._maxDate},set:function(e){this._maxDate=this._getValidDateOrNull(this._adapter.deserialize(e))},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){this._init()},e.prototype._yearSelected=function(e){var t=this._adapter.getMonth(this.activeDate),n=this._adapter.createDatetime(e,t,1,0,0);this.selectedChange.emit(this._adapter.createDatetime(e,t,Math.min(this._adapter.getDate(this.activeDate),this._adapter.getNumDaysInMonth(n)),this._adapter.getHour(this.activeDate),this._adapter.getMinute(this.activeDate))),"year"===this.type&&this._userSelection.emit()},e.prototype._getActiveCell=function(){return Pr(this._adapter,this.activeDate,this.minDate,this.maxDate)},e.prototype._calendarStateDone=function(){this._calendarState=""},e.prototype._init=function(){var e=this;this._todayYear=this._adapter.getYear(this._adapter.today()),this._yearLabel=this._adapter.getYearName(this.activeDate);var t=this._adapter.getYear(this.activeDate)-Pr(this._adapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var n=0,i=[];n<24;n++)i.push(t+n),4==i.length&&(this._years.push(i.map((function(t){return e._createCellForYear(t)}))),i=[])},e.prototype._createCellForYear=function(e){var t=this._adapter.getYearName(this._adapter.createDate(e,0,1));return new Sr(e,t,t,this._shouldEnableYear(e))},e.prototype._shouldEnableYear=function(e){if(null==e||this.maxDate&&e>this._adapter.getYear(this.maxDate)||this.minDate&&e<this._adapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(var t=this._adapter.createDate(e,0,1);this._adapter.getYear(t)==e;t=this._adapter.addCalendarDays(t,1))if(this.dateFilter(t))return!0;return!1},e.prototype._getYearInCurrentRange=function(e){var t=this._adapter.getYear(e);return this._isInRange(t)?t:null},e.prototype._isInRange=function(e){return!0},e.prototype._getValidDateOrNull=function(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)?e:null},e.ctorParameters=function(){return[{type:Or,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[Te]}]}]},we([t.Input(),Ce("design:type",String)],e.prototype,"type",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"dateFilter",void 0),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"activeDate",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"selected",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"minDate",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"maxDate",null),we([t.Output(),Ce("design:type",Object)],e.prototype,"selectedChange",void 0),we([t.Output(),Ce("design:type",Object)],e.prototype,"_userSelection",void 0),e=we([t.Component({selector:"gipi-mat-datetime-picker-multi-year-view",template:'<table class="gipi-mat-datetime-picker-calendar-table">\n <thead class="gipi-mat-datetime-picker-calendar-table-header">\n <tr>\n <th class="gipi-mat-datetime-picker-calendar-table-header-divider"\n colspan="4">\n </th>\n </tr>\n </thead>\n <tbody gipiMatDatetimePickerCalendarBody\n role="grid"\n allowDisabledSelection="true"\n [cellAspectRatio]="4 / 7"\n [numCols]="4"\n [rows]="_years"\n [activeCell]="_getActiveCell()"\n [selectedValue]="_selectedYear"\n [todayValue]="_todayYear"\n [@slideCalendar]="_calendarState"\n (@slideCalendar.done)="_calendarStateDone()"\n (selectedValueChange)="_yearSelected($event)">\n </tbody>\n</table>',animations:[Cr],encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush}),xe(0,t.Optional()),xe(1,t.Optional()),xe(1,t.Inject(Te)),Ce("design:paramtypes",[Or,Object])],e)}();function Dr(e,t,n,i,o){var r=e.getYear(t),a=e.getYear(n),s=Ar(e,i,o);return Math.floor((r-s)/24)===Math.floor((a-s)/24)}function Pr(e,t,n,i){var o,r=e.getYear(t);return((r-Ar(e,n,i))%(o=24)+o)%o}function Ar(e,t,n){var i=0;n?i=e.getYear(n)-24+1:t&&(i=e.getYear(t));return i}var Rr=function(){function n(n,i,o,r,a,s){var l=this;if(this._elementRef=n,this._intl=i,this._ngZone=o,this._adapter=r,this._dateFormats=a,this._clockView="hour",this.multiYearSelector=!0,this.startView="month",this.twelvehour=!1,this.timeInterval=1,this.ariaLabel="Use arrow keys to navigate",this.ariaNextMonthLabel="Next month",this.ariaPrevMonthLabel="Previous month",this.ariaNextYearLabel="Next year",this.ariaPrevYearLabel="Previous year",this.ariaNextMultiYearLabel="Next year range",this.ariaPrevMultiYearLabel="Previous year range",this.preventSameDateTimeSelection=!1,this._type="date",this.selectedChange=new t.EventEmitter,this.viewChanged=new t.EventEmitter,this._userSelection=new t.EventEmitter,this._dateFilterForViews=function(t){return!!t&&(!l.dateFilter||l.dateFilter(t,e.GIPIDatetimepickerFilterType.DATE))&&(!l.minDate||l._adapter.compareDate(t,l.minDate)>=0)&&(!l.maxDate||l._adapter.compareDate(t,l.maxDate)<=0)},!this._adapter)throw Ir("GIPIDatetimeAdapter");if(!this._dateFormats)throw Ir("GIPI_DATETIME_FORMATS");this._intlChanges=i.changes.subscribe((function(){return s.markForCheck()}))}return Object.defineProperty(n.prototype,"type",{get:function(){return this._type},set:function(e){this._type=e||"date","year"===this.type&&(this.multiYearSelector=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"startAt",{get:function(){return this._startAt},set:function(e){this._startAt=this._adapter.getValidDateOrNull(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selected",{get:function(){return this._selected},set:function(e){this._selected=this._adapter.getValidDateOrNull(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"minDate",{get:function(){return this._minDate},set:function(e){this._minDate=this._adapter.getValidDateOrNull(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"maxDate",{get:function(){return this._maxDate},set:function(e){this._maxDate=this._adapter.getValidDateOrNull(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_activeDate",{get:function(){return this._clampedActiveDate},set:function(e){var t=this._clampedActiveDate;this._clampedActiveDate=this._adapter.clampDate(e,this.minDate,this.maxDate),t&&this._clampedActiveDate&&"month"===this.currentView&&!this._adapter.sameMonthAndYear(t,this._clampedActiveDate)&&(this._adapter.isInNextMonth(t,this._clampedActiveDate)?this.calendarState("right"):this.calendarState("left"))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"currentView",{get:function(){return this._currentView},set:function(e){this._currentView=e,this.viewChanged.emit(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_yearLabel",{get:function(){return this._adapter.getYearName(this._activeDate)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_monthYearLabel",{get:function(){if("multi-year"===this.currentView){var e=this._adapter.getYear(this._activeDate)-Pr(this._adapter,this._activeDate,this.minDate,this.maxDate),t=e+24-1,n=this._adapter.getYearName(this._adapter.createDate(e,0,1)),i=this._adapter.getYearName(this._adapter.createDate(t,0,1));return this._intl.formatYearRange(n,i)}return"month"===this.currentView?this._adapter.getMonthNames("long")[this._adapter.getMonth(this._activeDate)]:this._adapter.getYearName(this._activeDate)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_dateLabel",{get:function(){switch(this.type){case"month":return this._adapter.getMonthNames("long")[this._adapter.getMonth(this._activeDate)];default:return this._adapter.format(this._activeDate,this._dateFormats.display.popupHeaderDateLabel)}},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"periodButtonLabel",{get:function(){return"month"==this.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"prevButtonLabel",{get:function(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.currentView]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"nextButtonLabel",{get:function(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.currentView]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_hoursLabel",{get:function(){var e=this._adapter.getHour(this._activeDate);return this.twelvehour&&(0===e&&(e=24),e=e>12?e-12:e),this._2digit(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_minutesLabel",{get:function(){return this._2digit(this._adapter.getMinute(this._activeDate))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_ariaLabelNext",{get:function(){switch(this._currentView){case"month":return this.ariaNextMonthLabel;case"year":return this.ariaNextYearLabel;case"multi-year":return this.ariaNextMultiYearLabel;default:return""}},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_ariaLabelPrev",{get:function(){switch(this._currentView){case"month":return this.ariaPrevMonthLabel;case"year":return this.ariaPrevYearLabel;case"multi-year":return this.ariaPrevMultiYearLabel;default:return""}},enumerable:!1,configurable:!0}),n.prototype.ngAfterContentInit=function(){this._activeDate=this.startAt||this._adapter.today(),this._selectAMPM(this._activeDate),this._focusActiveCell(),"year"===this.type?this.currentView="multi-year":"month"===this.type?this.currentView="year":"time"===this.type?this.currentView="clock":this.currentView=this.startView||"month"},n.prototype.ngOnDestroy=function(){this._intlChanges.unsubscribe()},n.prototype._userSelected=function(){this._userSelection.emit()},n.prototype._dateSelected=function(e){"date"===this.type?this._adapter.sameDate(e,this.selected)&&this.preventSameDateTimeSelection||this.selectedChange.emit(e):(this._activeDate=e,this.currentView="clock")},n.prototype._monthSelected=function(e){"month"===this.type?this._adapter.sameMonthAndYear(e,this.selected)&&this.preventSameDateTimeSelection||this.selectedChange.emit(this._adapter.getFirstDateOfMonth(e)):(this._activeDate=e,this.currentView="month",this._clockView="hour")},n.prototype._yearSelected=function(e){if("year"===this.type){if(!this._adapter.sameYear(e,this.selected)||!this.preventSameDateTimeSelection){var t=this._adapter.createDatetime(this._adapter.getYear(e),0,1,0,0);this.selectedChange.emit(t)}}else this._activeDate=e,this.currentView="year"},n.prototype._timeSelected=function(e){"minute"!==this._clockView?(this._activeDate=this._updateDate(e),this._clockView="minute"):this._adapter.sameDatetime(e,this.selected)&&this.preventSameDateTimeSelection||this.selectedChange.emit(e)},n.prototype._onActiveDateChange=function(e){this._activeDate=e},n.prototype._updateDate=function(e){if(this.twelvehour)if(12===this._adapter.getHour(e)){if("AM"===this._AMPM)return this._adapter.addCalendarHours(e,-12)}else if("PM"===this._AMPM)return this._adapter.addCalendarHours(e,12);return e},n.prototype._selectAMPM=function(e){this._adapter.getHour(e)>11?this._AMPM="PM":this._AMPM="AM"},n.prototype._ampmClicked=function(e){e!==this._AMPM&&(this._AMPM=e,"AM"===this._AMPM?this._activeDate=this._adapter.addCalendarHours(this._activeDate,-12):this._activeDate=this._adapter.addCalendarHours(this._activeDate,12))},n.prototype._yearClicked=function(){"year"===this.type||this.multiYearSelector?this.currentView="multi-year":this.currentView="year"},n.prototype._dateClicked=function(){"month"!==this.type&&(this.currentView="month")},n.prototype._hoursClicked=function(){this.currentView="clock",this._clockView="hour"},n.prototype._minutesClicked=function(){this.currentView="clock",this._clockView="minute"},n.prototype._previousClicked=function(){this._activeDate="month"===this.currentView?this._adapter.addCalendarMonths(this._activeDate,-1):this._adapter.addCalendarYears(this._activeDate,"year"===this.currentView?-1:-24)},n.prototype._nextClicked=function(){this._activeDate="month"===this.currentView?this._adapter.addCalendarMonths(this._activeDate,1):this._adapter.addCalendarYears(this._activeDate,"year"===this.currentView?1:24)},n.prototype._previousEnabled=function(){return!this.minDate||(!this.minDate||!this._isSameView(this._activeDate,this.minDate))},n.prototype._nextEnabled=function(){return!this.maxDate||!this._isSameView(this._activeDate,this.maxDate)},n.prototype._handleCalendarBodyKeydown=function(e){"month"===this.currentView?this._handleCalendarBodyKeydownInMonthView(e):"year"===this.currentView?this._handleCalendarBodyKeydownInYearView(e):"multi-year"===this.currentView?this._handleCalendarBodyKeydownInMultiYearView(e):this._handleCalendarBodyKeydownInClockView(e)},n.prototype._focusActiveCell=function(){var e=this;this._ngZone.runOutsideAngular((function(){e._ngZone.onStable.asObservable().pipe(oe.first()).subscribe((function(){return e._elementRef.nativeElement.focus()}))}))},n.prototype._calendarStateDone=function(){this._calendarState=""},n.prototype._isSameView=function(e,t){return"month"===this.currentView?this._adapter.getYear(e)===this._adapter.getYear(t)&&this._adapter.getMonth(e)===this._adapter.getMonth(t):"year"===this.currentView?this._adapter.getYear(e)===this._adapter.getYear(t):Dr(this._adapter,e,t,this.minDate,this.maxDate)},n.prototype._handleCalendarBodyKeydownInMonthView=function(e){switch(e.keyCode){case se.LEFT_ARROW:this._activeDate=this._adapter.addCalendarDays(this._activeDate,-1);break;case se.RIGHT_ARROW:this._activeDate=this._adapter.addCalendarDays(this._activeDate,1);break;case se.UP_ARROW:this._activeDate=this._adapter.addCalendarDays(this._activeDate,-7);break;case se.DOWN_ARROW:this._activeDate=this._adapter.addCalendarDays(this._activeDate,7);break;case se.HOME:this._activeDate=this._adapter.addCalendarDays(this._activeDate,1-this._adapter.getDate(this._activeDate));break;case se.END:this._activeDate=this._adapter.addCalendarDays(this._activeDate,this._adapter.getNumDaysInMonth(this._activeDate)-this._adapter.getDate(this._activeDate));break;case se.PAGE_UP:this._activeDate=e.altKey?this._adapter.addCalendarYears(this._activeDate,-1):this._adapter.addCalendarMonths(this._activeDate,-1);break;case se.PAGE_DOWN:this._activeDate=e.altKey?this._adapter.addCalendarYears(this._activeDate,1):this._adapter.addCalendarMonths(this._activeDate,1);break;case se.ENTER:return void(this._dateFilterForViews(this._activeDate)&&(this._dateSelected(this._activeDate),e.preventDefault()));default:return}e.preventDefault()},n.prototype._handleCalendarBodyKeydownInYearView=function(e){switch(e.keyCode){case se.LEFT_ARROW:this._activeDate=this._adapter.addCalendarMonths(this._activeDate,-1);break;case se.RIGHT_ARROW:this._activeDate=this._adapter.addCalendarMonths(this._activeDate,1);break;case se.UP_ARROW:this._activeDate=this._prevMonthInSameCol(this._activeDate);break;case se.DOWN_ARROW:this._activeDate=this._nextMonthInSameCol(this._activeDate);break;case se.HOME:this._activeDate=this._adapter.addCalendarMonths(this._activeDate,-this._adapter.getMonth(this._activeDate));break;case se.END:this._activeDate=this._adapter.addCalendarMonths(this._activeDate,11-this._adapter.getMonth(this._activeDate));break;case se.PAGE_UP:this._activeDate=this._adapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case se.PAGE_DOWN:this._activeDate=this._adapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case se.ENTER:this._monthSelected(this._activeDate);break;default:return}e.preventDefault()},n.prototype._handleCalendarBodyKeydownInMultiYearView=function(e){switch(e.keyCode){case se.LEFT_ARROW:this._activeDate=this._adapter.addCalendarYears(this._activeDate,-1);break;case se.RIGHT_ARROW:this._activeDate=this._adapter.addCalendarYears(this._activeDate,1);break;case se.UP_ARROW:this._activeDate=this._adapter.addCalendarYears(this._activeDate,-4);break;case se.DOWN_ARROW:this._activeDate=this._adapter.addCalendarYears(this._activeDate,4);break;case se.HOME:this._activeDate=this._adapter.addCalendarYears(this._activeDate,-Pr(this._adapter,this._activeDate,this.minDate,this.maxDate));break;case se.END:this._activeDate=this._adapter.addCalendarYears(this._activeDate,24-Pr(this._adapter,this._activeDate,this.minDate,this.maxDate)-1);break;case se.PAGE_UP:this._activeDate=this._adapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case se.PAGE_DOWN:this._activeDate=this._adapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case se.ENTER:this._yearSelected(this._activeDate);break;default:return}},n.prototype._handleCalendarBodyKeydownInClockView=function(e){switch(e.keyCode){case se.UP_ARROW:this._activeDate="hour"===this._clockView?this._adapter.addCalendarHours(this._activeDate,1):this._adapter.addCalendarMinutes(this._activeDate,1);break;case se.DOWN_ARROW:this._activeDate="hour"===this._clockView?this._adapter.addCalendarHours(this._activeDate,-1):this._adapter.addCalendarMinutes(this._activeDate,-1);break;case se.ENTER:return void this._timeSelected(this._activeDate);default:return}e.preventDefault()},n.prototype._prevMonthInSameCol=function(e){var t=this._adapter.getMonth(e)<=4?-5:this._adapter.getMonth(e)>=7?-7:-12;return this._adapter.addCalendarMonths(e,t)},n.prototype._nextMonthInSameCol=function(e){var t=this._adapter.getMonth(e)<=4?7:this._adapter.getMonth(e)>=7?5:12;return this._adapter.addCalendarMonths(e,t)},n.prototype.calendarState=function(e){this._calendarState=e},n.prototype._2digit=function(e){return("00"+e).slice(-2)},n.ctorParameters=function(){return[{type:t.ElementRef},{type:ge.MatDatepickerIntl},{type:t.NgZone},{type:Or,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[Te]}]},{type:t.ChangeDetectorRef}]},we([t.Input(),Ce("design:type",Boolean)],n.prototype,"multiYearSelector",void 0),we([t.Input(),Ce("design:type",String)],n.prototype,"startView",void 0),we([t.Input(),Ce("design:type",Boolean)],n.prototype,"twelvehour",void 0),we([t.Input(),Ce("design:type",Number)],n.prototype,"timeInterval",void 0),we([t.Input(),Ce("design:type",Function)],n.prototype,"dateFilter",void 0),we([t.Input(),Ce("design:type",Object)],n.prototype,"ariaLabel",void 0),we([t.Input(),Ce("design:type",Object)],n.prototype,"ariaNextMonthLabel",void 0),we([t.Input(),Ce("design:type",Object)],n.prototype,"ariaPrevMonthLabel",void 0),we([t.Input(),Ce("design:type",Object)],n.prototype,"ariaNextYearLabel",void 0),we([t.Input(),Ce("design:type",Object)],n.prototype,"ariaPrevYearLabel",void 0),we([t.Input(),Ce("design:type",Object)],n.prototype,"ariaNextMultiYearLabel",void 0),we([t.Input(),Ce("design:type",Object)],n.prototype,"ariaPrevMultiYearLabel",void 0),we([t.Input(),Ce("design:type",Object)],n.prototype,"preventSameDateTimeSelection",void 0),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],n.prototype,"type",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],n.prototype,"startAt",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],n.prototype,"selected",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],n.prototype,"minDate",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],n.prototype,"maxDate",null),we([t.Output(),Ce("design:type",t.EventEmitter)],n.prototype,"selectedChange",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],n.prototype,"viewChanged",void 0),we([t.Output(),Ce("design:type",Object)],n.prototype,"_userSelection",void 0),n=we([t.Component({selector:"gipi-mat-datetime-picker-calendar",template:'<div class="gipi-mat-datetime-picker-calendar-header">\n <div class="gipi-mat-datetime-picker-calendar-controls">\n <div *ngIf="type !== \'time\'"\n role="button"\n cdkAriaLive="polite"\n class="gipi-mat-datetime-picker-calendar-period-button"\n [class.active]="currentView === \'year\' || currentView === \'multi-year\'"\n [attr.aria-label]="periodButtonLabel"\n (click)="_yearClicked()">\n {{ _yearLabel }}\n\n <div *ngIf="multiYearSelector || type === \'year\'"\n class="gipi-mat-datetime-picker-calendar-arrow"\n [class.gipi-mat-datetime-picker-calendar-invert]="currentView != \'month\'">\n </div>\n </div>\n\n <div class="gipi-mat-datetime-picker-calendar-spacer"> </div>\n\n <button mat-icon-button\n type="button"\n class="gipi-mat-datetime-picker-calendar-previous-button"\n [disabled]="!_previousEnabled()"\n (click)="_previousClicked()"\n [attr.aria-label]="prevButtonLabel">\n </button>\n\n <button mat-icon-button\n type="button"\n class="gipi-mat-datetime-picker-calendar-next-button"\n [disabled]="!_nextEnabled()"\n (click)="_nextClicked()"\n [attr.aria-label]="nextButtonLabel">\n </button>\n </div>\n\n <div class="gipi-mat-datetime-picker-calendar-header-date-time">\n <span *ngIf="type !== \'time\' && type !== \'year\'"\n role="button"\n class="gipi-mat-datetime-picker-calendar-header-date"\n [class.active]="currentView === \'month\'"\n [class.not-clickable]="type === \'month\'"\n (click)="_dateClicked()">\n {{ _dateLabel }}\n </span>\n <span *ngIf="type.endsWith(\'time\')"\n class="gipi-mat-datetime-picker-calendar-header-time"\n [class.active]="currentView === \'clock\'">\n <span role="button"\n class="gipi-mat-datetime-picker-calendar-header-hours"\n [class.active]="currentView === \'clock\' && _clockView === \'hour\'"\n (click)="_hoursClicked()">\n {{ _hoursLabel }}\n </span>\n :\n <span role="button"\n class="gipi-mat-datetime-picker-calendar-header-minutes"\n [class.active]="currentView === \'clock\' && _clockView === \'minute\'"\n (click)="_minutesClicked()">\n {{ _minutesLabel }}\n </span>\n <br />\n <span *ngIf="twelvehour"\n class="gipi-mat-datetime-picker-calendar-header-ampm-container">\n <span class="gipi-mat-datetime-picker-calendar-header-ampm"\n [class.active]="currentView === \'clock\' && _AMPM === \'AM\'"\n (click)="_ampmClicked(\'AM\')">\n AM\n </span>\n /\n <span class="gipi-mat-datetime-picker-calendar-header-ampm"\n [class.active]="currentView === \'clock\' && _AMPM === \'PM\'"\n (click)="_ampmClicked(\'PM\')">\n PM\n </span>\n </span>\n </span>\n </div>\n</div>\n\n<div [ngSwitch]="currentView"\n class="gipi-mat-datetime-picker-calendar-content">\n \x3c!-- <div *ngIf="currentView === \'month\' || currentView === \'year\' || currentView === \'multi-year\'"\n class="mat-month-content">\n <div class="gipi-mat-datetime-picker-calendar-controls">\n <div (click)="_previousClicked()"\n [attr.aria-disabled]="!_previousEnabled()"\n [attr.aria-label]="_ariaLabelPrev"\n [class.disabled]="!_previousEnabled()"\n class="gipi-mat-datetime-picker-calendar-previous-button"\n role="button">\n <svg height="24"\n viewBox="0 0 24 24"\n width="24">\n <path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"></path>\n </svg>\n </div>\n <div (@slideCalendar.done)="_calendarStateDone()"\n [@slideCalendar]="_calendarState"\n class="gipi-mat-datetime-picker-calendar-period-button">\n <strong>{{ _monthYearLabel }}</strong>\n </div>\n <div (click)="_nextClicked()"\n [attr.aria-disabled]="!_nextEnabled()"\n [attr.aria-label]="_ariaLabelNext"\n [class.disabled]="!_nextEnabled()"\n class="gipi-mat-datetime-picker-calendar-next-button"\n role="button">\n <svg height="24"\n viewBox="0 0 24 24"\n width="24">\n <path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"></path>\n </svg>\n </div>\n </div>\n </div> --\x3e\n\n <gipi-mat-datetime-picker-month-view (_userSelection)="_userSelected()"\n (selectedChange)="_dateSelected($event)"\n *ngSwitchCase="\'month\'"\n [activeDate]="_activeDate"\n [dateFilter]="_dateFilterForViews"\n [selected]="selected"\n [type]="type">\n </gipi-mat-datetime-picker-month-view>\n <gipi-mat-datetime-picker-year-view (_userSelection)="_userSelected()"\n (selectedChange)="_monthSelected($event)"\n *ngSwitchCase="\'year\'"\n [activeDate]="_activeDate"\n [dateFilter]="_dateFilterForViews"\n [selected]="selected"\n [type]="type">\n </gipi-mat-datetime-picker-year-view>\n <gipi-mat-datetime-picker-multi-year-view (_userSelection)="_userSelected()"\n (selectedChange)="_yearSelected($event)"\n *ngSwitchCase="\'multi-year\'"\n [activeDate]="_activeDate"\n [dateFilter]="_dateFilterForViews"\n [maxDate]="maxDate"\n [minDate]="minDate"\n [selected]="selected"\n [type]="type">\n </gipi-mat-datetime-picker-multi-year-view>\n <gipi-mat-datetime-picker-clock (_userSelection)="_userSelected()"\n (activeDateChange)="_onActiveDateChange($event)"\n (selectedChange)="_timeSelected($event)"\n *ngSwitchDefault\n [dateFilter]="dateFilter"\n [interval]="timeInterval"\n [maxDate]="maxDate"\n [minDate]="minDate"\n [selected]="_activeDate"\n [startView]="_clockView"\n [twelvehour]="twelvehour">\n </gipi-mat-datetime-picker-clock>\n</div>',animations:[Cr],encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush,host:{"[class.gipi-mat-datetime-picker-calendar]":"true","[attr.aria-label]":"ariaLabel",role:"dialog",tabindex:"0","(keydown)":"_handleCalendarBodyKeydown($event)"},styles:[".gipi-mat-datetime-picker-calendar{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;outline:0}.gipi-mat-datetime-picker-calendar[mode=landscape]{display:flex}.gipi-mat-datetime-picker-calendar-header{padding:8px 8px 0;font-size:14px;box-sizing:border-box}[mode=landscape] .gipi-mat-datetime-picker-calendar-header{width:150px;min-width:150px}.gipi-mat-datetime-picker-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.gipi-mat-datetime-picker-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.gipi-mat-datetime-picker-calendar-spacer{flex:1 1 auto}.gipi-mat-datetime-picker-calendar-period-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:0;line-height:36px;padding:0 16px;border-radius:4px}.gipi-mat-datetime-picker-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.gipi-mat-datetime-picker-calendar-arrow.gipi-mat-datetime-picker-calendar-invert{transform:rotate(180deg)}[dir=rtl] .gipi-mat-datetime-picker-calendar-arrow{margin:0 5px 0 0}.gipi-mat-datetime-picker-calendar-next-button::after,.gipi-mat-datetime-picker-calendar-previous-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:'';margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .gipi-mat-datetime-picker-calendar-next-button,[dir=rtl] .gipi-mat-datetime-picker-calendar-previous-button{transform:rotate(180deg)}.gipi-mat-datetime-picker-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.gipi-mat-datetime-picker-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.gipi-mat-datetime-picker-calendar-header-date-time{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;margin-top:6px;font-weight:500;white-space:nowrap}[mode=landscape] .gipi-mat-datetime-picker-calendar-header-date-time{white-space:normal;word-wrap:break-word;margin-top:0}.gipi-mat-datetime-picker-calendar-header-ampm-container{font-size:.77em}.gipi-mat-datetime-picker-calendar-header-date{display:flex;align-items:center;justify-content:center;border-radius:6px;padding-inline:1rem;font-size:14px;line-height:36px;font-weight:600;transition:.2s}.gipi-mat-datetime-picker-calendar-header-date:not(.active){cursor:pointer;opacity:.6}.gipi-mat-datetime-picker-calendar-header-date:not(.active):hover{background:#f5f5f6;opacity:1}.gipi-mat-datetime-picker-calendar-header-date.active{cursor:pointer;background-color:#f3e7e7;color:#e0313e;opacity:1}.gipi-mat-datetime-picker-calendar-header-date.active:hover{background-color:#e0313e;color:#f3e7e7}.gipi-mat-datetime-picker-calendar-header-date.not-clickable{cursor:initial}.gipi-mat-datetime-picker-calendar-header-ampm,.gipi-mat-datetime-picker-calendar-header-hours,.gipi-mat-datetime-picker-calendar-header-minutes{display:flex;align-items:center;justify-content:center;border-radius:6px;width:36px;height:36px;transition:.2s}.gipi-mat-datetime-picker-calendar-header-ampm:not(.active),.gipi-mat-datetime-picker-calendar-header-hours:not(.active),.gipi-mat-datetime-picker-calendar-header-minutes:not(.active){cursor:pointer;opacity:.6}.gipi-mat-datetime-picker-calendar-header-ampm:not(.active):hover,.gipi-mat-datetime-picker-calendar-header-hours:not(.active):hover,.gipi-mat-datetime-picker-calendar-header-minutes:not(.active):hover{background:#f5f5f6;opacity:1}.gipi-mat-datetime-picker-calendar-header-ampm.active,.gipi-mat-datetime-picker-calendar-header-hours.active,.gipi-mat-datetime-picker-calendar-header-minutes.active{cursor:pointer;background-color:#f3e7e7;color:#e0313e;opacity:1}.gipi-mat-datetime-picker-calendar-header-ampm.active:hover,.gipi-mat-datetime-picker-calendar-header-hours.active:hover,.gipi-mat-datetime-picker-calendar-header-minutes.active:hover{background-color:#e0313e;color:#f3e7e7}.gipi-mat-datetime-picker-calendar-header-ampm.not-clickable,.gipi-mat-datetime-picker-calendar-header-hours.not-clickable,.gipi-mat-datetime-picker-calendar-header-minutes.not-clickable{cursor:initial}.gipi-mat-datetime-picker-calendar-header-time{display:flex;align-items:center;justify-content:center;gap:1px;font-size:24px;line-height:36px;padding-left:8px}.gipi-mat-datetime-picker-calendar-header-time:not(.active){opacity:.6}[mode=landscape] .gipi-mat-datetime-picker-calendar-header-time{display:block;padding-left:0}.gipi-mat-datetime-picker-calendar-content{width:100%;padding:0 8px 8px;outline:0;box-sizing:border-box;overflow:hidden}[mode=landscape] .gipi-mat-datetime-picker-calendar-content{padding-top:8px}.gipi-mat-datetime-picker-calendar-controls{display:flex;justify-content:space-between}.gipi-mat-datetime-picker-calendar-next-button,.gipi-mat-datetime-picker-calendar-previous-button{position:relative;display:inline-block;width:48px;height:48px;padding:12px;outline:0;border:0;cursor:pointer;background:0 0;box-sizing:border-box}.gipi-mat-datetime-picker-calendar-next-button.disabled,.gipi-mat-datetime-picker-calendar-previous-button.disabled{color:rgba(0,0,0,.38);pointer-events:none}.gipi-mat-datetime-picker-calendar-next-button svg,.gipi-mat-datetime-picker-calendar-previous-button svg{fill:currentColor;vertical-align:top}.gipi-mat-datetime-picker-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.gipi-mat-datetime-picker-calendar-table-header{color:rgba(0,0,0,.38)}.gipi-mat-datetime-picker-calendar-table-header th{text-align:center;font-size:11px;padding:0 0 8px}.gipi-mat-datetime-picker-calendar-table-header-divider{position:relative;height:1px}.gipi-mat-datetime-picker-calendar-table-header-divider::after{content:'';position:absolute;top:0;left:-8px;right:-8px;height:1px}@media (min-width:480px){.gipi-mat-datetime-picker-calendar[mode=auto]{display:flex}.gipi-mat-datetime-picker-calendar[mode=auto] .gipi-mat-datetime-picker-calendar-header{width:150px;min-width:150px}.gipi-mat-datetime-picker-calendar[mode=auto] .gipi-mat-datetime-picker-calendar-header-date-time{white-space:normal;word-wrap:break-word}.gipi-mat-datetime-picker-calendar[mode=auto] .gipi-mat-datetime-picker-calendar-header-time{display:block;padding-left:0}.gipi-mat-datetime-picker-calendar[mode=auto] .gipi-mat-datetime-picker-calendar-content{padding-top:8px}}"]}),xe(3,t.Optional()),xe(4,t.Optional()),xe(4,t.Inject(Te)),Ce("design:paramtypes",[t.ElementRef,ge.MatDatepickerIntl,t.NgZone,Or,Object,t.ChangeDetectorRef])],n)}(),Mr=0,Tr=function(){function e(){}return e.prototype.ngAfterContentInit=function(){this._calendar._focusActiveCell()},e.prototype.onSelectionChange=function(e){this.datetimepicker._select(e),this.datetimepicker.close()},e.prototype._handleKeydown=function(e){e.keyCode===se.ESCAPE&&(this.datetimepicker.close(),e.preventDefault(),e.stopPropagation())},we([t.ViewChild(Rr,{static:!0}),Ce("design:type",Rr)],e.prototype,"_calendar",void 0),e=we([t.Component({selector:"gipi-mat-datetime-picker-content",template:'<gipi-mat-datetime-picker-calendar cdkTrapFocus\n class="mat-typography"\n [id]="datetimepicker.id"\n [attr.mode]="datetimepicker.mode"\n [ariaNextMonthLabel]="datetimepicker.ariaNextMonthLabel"\n [ariaNextYearLabel]="datetimepicker.ariaNextYearLabel"\n [ariaPrevMonthLabel]="datetimepicker.ariaPrevMonthLabel"\n [ariaPrevYearLabel]="datetimepicker.ariaPrevYearLabel"\n [preventSameDateTimeSelection]="datetimepicker.preventSameDateTimeSelection"\n [dateFilter]="datetimepicker._dateFilter"\n [maxDate]="datetimepicker._maxDate"\n [minDate]="datetimepicker._minDate"\n [multiYearSelector]="datetimepicker.multiYearSelector"\n [selected]="datetimepicker._selected"\n [startAt]="datetimepicker.startAt"\n [startView]="datetimepicker.startView"\n [timeInterval]="datetimepicker.timeInterval"\n [twelvehour]="datetimepicker.twelvehour"\n [type]="datetimepicker.type"\n (_userSelection)="datetimepicker.close()"\n (selectedChange)="onSelectionChange($event)"\n (viewChanged)="datetimepicker._viewChanged($event)">\n</gipi-mat-datetime-picker-calendar>',encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush,host:{class:"gipi-mat-datetime-picker-content","[class.gipi-mat-datetime-picker-content-touch]":"datetimepicker?.touchUi","(keydown)":"_handleKeydown($event)"},styles:["@use '@angular/material' as mat;.gipi-mat-datetime-picker-content{display:block;background-color:#fff;border-radius:4px!important;overflow:hidden;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)}.gipi-mat-datetime-picker-calendar{width:296px;height:405px}.gipi-mat-datetime-picker-calendar[mode=landscape]{width:446px;height:328px}@media (min-width:480px){.gipi-mat-datetime-picker-calendar[mode=auto]{width:446px;height:328px}}.gipi-mat-datetime-picker-content-touch{display:block;box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12)}.cdk-global-overlay-wrapper,.cdk-overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.48}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.6)}.gipi-mat-datetime-picker-dialog .mat-dialog-container{padding:0}"]})],e)}(),Fr=function(){function e(e,n,i,o,r,a,s,l){if(this._dialog=e,this._overlay=n,this._ngZone=i,this._viewContainerRef=o,this._scrollStrategy=r,this._dateAdapter=a,this._dir=s,this._document=l,this.opened=!1,this.id="gipi-mat-datetime-picker-"+Mr++,this._disabledChange=new ie.Subject,this._validSelected=null,this._focusedElementBeforeOpen=null,this._inputSubscription=ie.Subscription.EMPTY,this.multiYearSelector=!1,this.twelvehour=!1,this.startView="month",this.mode="auto",this.timeInterval=1,this.ariaNextMonthLabel="Next month",this.ariaPrevMonthLabel="Previous month",this.ariaNextYearLabel="Next year",this.ariaPrevYearLabel="Previous year",this.preventSameDateTimeSelection=!1,this._type="date",this._touchUi=!1,this.openedStream=new t.EventEmitter,this.closedStream=new t.EventEmitter,this.viewChanged=new t.EventEmitter,this.selectedChanged=new t.EventEmitter,!this._dateAdapter)throw Ir("DateAdapter")}return Object.defineProperty(e.prototype,"startAt",{get:function(){return this._startAt||(this._datepickerInput?this._datepickerInput.value:null)},set:function(e){this._startAt=this._dateAdapter.getValidDateOrNull(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"openOnFocus",{get:function(){return this._openOnFocus},set:function(e){this._openOnFocus=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(e){this._type=e||"date"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"touchUi",{get:function(){return this._touchUi},set:function(e){this._touchUi=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return void 0===this._disabled&&this._datepickerInput?this._datepickerInput.disabled:!!this._disabled},set:function(e){var t=le.coerceBooleanProperty(e);t!==this._disabled&&(this._disabled=t,this._disabledChange.next(t))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_selected",{get:function(){return this._validSelected},set:function(e){this._validSelected=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_minDate",{get:function(){return this._datepickerInput&&this._datepickerInput.min},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_maxDate",{get:function(){return this._datepickerInput&&this._datepickerInput.max},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_dateFilter",{get:function(){return this._datepickerInput&&this._datepickerInput._dateFilter},enumerable:!1,configurable:!0}),e.prototype._handleFocus=function(){!this.opened&&this.openOnFocus&&this.open()},e.prototype._viewChanged=function(e){this.viewChanged.emit(e)},e.prototype.ngOnDestroy=function(){this.close(),this._inputSubscription.unsubscribe(),this._disabledChange.complete(),this._popupRef&&this._popupRef.dispose()},e.prototype._select=function(e){var t=this._selected;this._selected=e,this._dateAdapter.sameDatetime(t,this._selected)||this.selectedChanged.emit(e)},e.prototype._registerInput=function(e){var t=this;if(this._datepickerInput)throw Error("A MatDatepicker can only be associated with a single input.");this._datepickerInput=e,this._inputSubscription=this._datepickerInput._valueChange.subscribe((function(e){return t._selected=e}))},e.prototype.open=function(){if(!this.opened&&!this.disabled){if(!this._datepickerInput)throw Error("Attempted to open an MatDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this.opened=!0,this.openedStream.emit()}},e.prototype.close=function(){var e=this;if(this.opened){this._popupRef&&this._popupRef.hasAttached()&&this._popupRef.detach(),this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null),this._calendarPortal&&this._calendarPortal.isAttached&&this._calendarPortal.detach();var t=function(){e.opened&&(e.opened=!1,e.closedStream.emit(),e._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(t)):t()}},e.prototype._openAsDialog=function(){var e=this;this._dialogRef=this._dialog.open(Tr,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"gipi-mat-datetime-picker-dialog"}),this._dialogRef.afterClosed().subscribe((function(){return e.close()})),this._dialogRef.componentInstance.datetimepicker=this},e.prototype._openAsPopup=function(){var e=this;(this._calendarPortal||(this._calendarPortal=new y.ComponentPortal(Tr,this._viewContainerRef)),this._popupRef||this._createPopup(),this._popupRef.hasAttached())||(this._popupRef.attach(this._calendarPortal).instance.datetimepicker=this,this._ngZone.onStable.asObservable().pipe(oe.first()).subscribe((function(){return e._popupRef.updatePosition()})));this._popupRef.backdropClick().subscribe((function(){return e.close()}))},e.prototype._createPopup=function(){var e=new ue.OverlayConfig({positionStrategy:this._createPopupPositionStrategy(),hasBackdrop:!0,backdropClass:"mat-overlay-transparent-backdrop",direction:this._dir?this._dir.value:"ltr",scrollStrategy:this._scrollStrategy(),panelClass:"gipi-mat-datetime-picker-popup"});this._popupRef=this._overlay.create(e)},e.prototype._createPopupPositionStrategy=function(){return this._overlay.position().flexibleConnectedTo(this._datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".gipi-mat-datetime-picker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition().withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}])},e.ctorParameters=function(){return[{type:P.MatDialog},{type:ue.Overlay},{type:t.NgZone},{type:t.ViewContainerRef},{type:void 0,decorators:[{type:t.Inject,args:[ge.MAT_DATEPICKER_SCROLL_STRATEGY]}]},{type:Or,decorators:[{type:t.Optional}]},{type:ce.Directionality,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[i.DOCUMENT]}]}]},we([t.Input(),Ce("design:type",Boolean)],e.prototype,"multiYearSelector",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"twelvehour",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"startView",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"mode",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"timeInterval",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"ariaNextMonthLabel",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"ariaPrevMonthLabel",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"ariaNextYearLabel",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"ariaPrevYearLabel",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"preventSameDateTimeSelection",void 0),we([t.Input(),Ce("design:type",Object)],e.prototype,"panelClass",void 0),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"startAt",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"openOnFocus",null),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"type",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"touchUi",null),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disabled",null),we([t.Output("opened"),Ce("design:type",t.EventEmitter)],e.prototype,"openedStream",void 0),we([t.Output("closed"),Ce("design:type",t.EventEmitter)],e.prototype,"closedStream",void 0),we([t.Output(),Ce("design:type",t.EventEmitter)],e.prototype,"viewChanged",void 0),we([t.Output(),Ce("design:type",Object)],e.prototype,"selectedChanged",void 0),e=we([t.Component({selector:"gipi-mat-datetime-picker",exportAs:"gipiDatetimePicker",template:"",changeDetection:t.ChangeDetectionStrategy.OnPush,encapsulation:t.ViewEncapsulation.None,preserveWhitespaces:!1}),xe(4,t.Inject(ge.MAT_DATEPICKER_SCROLL_STRATEGY)),xe(5,t.Optional()),xe(6,t.Optional()),xe(7,t.Optional()),xe(7,t.Inject(i.DOCUMENT)),Ce("design:paramtypes",[P.MatDialog,ue.Overlay,t.NgZone,t.ViewContainerRef,Object,Or,ce.Directionality,Object])],e)}(),Vr=function(){function e(e,t){this._intl=e,this._changeDetectorRef=t,this._stateChanges=ie.Subscription.EMPTY}return Object.defineProperty(e.prototype,"disabled",{get:function(){return void 0===this._disabled?this.datetimepicker.disabled:!!this._disabled},set:function(e){this._disabled=le.coerceBooleanProperty(e)},enumerable:!1,configurable:!0}),e.prototype.ngOnChanges=function(e){e.datepicker&&this._watchStateChanges()},e.prototype.ngOnDestroy=function(){this._stateChanges.unsubscribe()},e.prototype.ngAfterContentInit=function(){this._watchStateChanges()},e.prototype._open=function(e){this.datetimepicker&&!this.disabled&&(this.datetimepicker.open(),e.stopPropagation())},e.prototype._watchStateChanges=function(){var e=this,t=this.datetimepicker?this.datetimepicker._disabledChange:ie.of([],ie.asyncScheduler),n=this.datetimepicker&&this.datetimepicker._datepickerInput?this.datetimepicker._datepickerInput._disabledChange:ie.of([],ie.asyncScheduler);this._stateChanges.unsubscribe(),this._stateChanges=ie.merge(this._intl.changes,t,n).subscribe((function(){return e._changeDetectorRef.markForCheck()}))},e.ctorParameters=function(){return[{type:ge.MatDatepickerIntl},{type:t.ChangeDetectorRef}]},we([t.Input("for"),Ce("design:type",Fr)],e.prototype,"datetimepicker",void 0),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"disabled",null),e=we([t.Component({selector:"gipi-mat-datetime-picker-toggle",exportAs:"gipiDatetimePickerToggle",template:'<button [attr.aria-label]="_intl.openCalendarLabel"\n [disabled]="disabled"\n mat-icon-button\n type="button">\n <mat-icon [ngSwitch]="datetimepicker.type">\n <svg *ngSwitchCase="\'time\'"\n fill="currentColor"\n focusable="false"\n height="100%"\n style="vertical-align: top"\n viewBox="0 0 24 24"\n width="100%">\n <path\n d="M12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22C6.47,22 2,17.5 2,12A10,10 0 0,1 12,2M12.5,7V12.25L17,14.92L16.25,16.15L11,13V7H12.5Z">\n </path>\n </svg>\n <svg *ngSwitchCase="\'datetime\'"\n fill="currentColor"\n focusable="false"\n height="100%"\n style="vertical-align: top"\n viewBox="0 0 24 24"\n width="100%">\n <path\n d="M15,13H16.5V15.82L18.94,17.23L18.19,18.53L15,16.69V13M19,8H5V19H9.67C9.24,18.09 9,17.07 9,16A7,7 0 0,1 16,9C17.07,9 18.09,9.24 19,9.67V8M5,21C3.89,21 3,20.1 3,19V5C3,3.89 3.89,3 5,3H6V1H8V3H16V1H18V3H19A2,2 0 0,1 21,5V11.1C22.24,12.36 23,14.09 23,16A7,7 0 0,1 16,23C14.09,23 12.36,22.24 11.1,21H5M16,11.15A4.85,4.85 0 0,0 11.15,16C11.15,18.68 13.32,20.85 16,20.85A4.85,4.85 0 0,0 20.85,16C20.85,13.32 18.68,11.15 16,11.15Z">\n </path>\n </svg>\n <svg *ngSwitchDefault\n fill="currentColor"\n focusable="false"\n height="100%"\n style="vertical-align: top"\n viewBox="0 0 24 24"\n width="100%">\n <path d="M0 0h24v24H0z"\n fill="none" />\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 </mat-icon>\n</button>',encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush,preserveWhitespaces:!1,host:{class:"gipi-mat-datetime-picker-toggle","(click)":"_open($event)"}}),Ce("design:paramtypes",[ge.MatDatepickerIntl,t.ChangeDetectorRef])],e)}(),Nr=0,jr=function(){function e(e,t){this.elementRef=e,this._changeDetectorRef=t,this._name="gipi-mat-datetime-picker-"+Nr++,this.id=this._name,this.name=this._name,this.label="",this.placeholder="",this.timeInterval=1,this.help="",this._required=!1,this._disabled=!1,this._type="datetime",this.onChange=function(){},this.onTouched=function(){}}var n;return n=e,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,"value",{get:function(){return this._value},set:function(e){e instanceof Date?this._value=e:this._value=new Date(e),this.onChange(this._value),this.onTouched(this._value)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(e){this._type=e||"datetime"},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.toggleDatetimePicker=function(e){ze.isNull(this.GIPIDatetimepickerToggleRef)||this.GIPIDatetimepickerToggleRef._open(e)},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},we([t.ViewChild("dateTimePickerToggle",{static:!0}),Ce("design:type",Vr)],e.prototype,"GIPIDatetimepickerToggleRef",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("min"),Ce("design:type",Date)],e.prototype,"minDate",void 0),we([t.Input("max"),Ce("design:type",Date)],e.prototype,"maxDate",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"timeInterval",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),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"value",null),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],e.prototype,"type",null),e=n=we([t.Component({selector:"gipi-datetime-picker",exportAs:"gipiDatetimePicker",template:'<div class="datetime-wrapper">\n\n <label *ngIf="label"\n class="datetime-label"\n [attr.for]="id">\n {{ label }}\n <span *ngIf="required"> * </span>\n </label>\n\n <div class="datetime-content">\n\n <input inputRef\n class="datetime-element"\n [attr.id]="id"\n [attr.name]="name"\n [placeholder]="placeholder"\n [min]="minDate"\n [max]="maxDate"\n [disabled]="disabled"\n [required]="required"\n [readOnly]="true"\n [autocomplete]="\'off\'"\n [(ngModel)]="value"\n [value]="value"\n [gipiMatDatetimePicker]="datetimePicker"\n (click)="toggleDatetimePicker($event)" />\n\n <div class="suffix">\n <gipi-mat-datetime-picker-toggle #dateTimePickerToggle\n [for]="datetimePicker">\n </gipi-mat-datetime-picker-toggle>\n </div>\n\n <gipi-mat-datetime-picker #datetimePicker\n [openOnFocus]="false"\n [mode]="\'portrait\'"\n [multiYearSelector]="true"\n [disabled]="disabled"\n [timeInterval]="timeInterval"\n [type]="type">\n </gipi-mat-datetime-picker>\n </div>\n\n <small *ngIf="help"\n class="datetime-help">\n {{ help }}\n </small>\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-mat-datetime-picker"},styles:[":host{display:block;width:100%;min-width:0;max-width:100%;flex:1}.datetime-wrapper{display:flex;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}.datetime-wrapper .datetime-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}.datetime-wrapper .datetime-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}.datetime-wrapper .datetime-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:6px;cursor:pointer}.datetime-wrapper .datetime-content .datetime-element{padding:.75rem .8rem;border:none;outline:0;background-color:transparent;flex:1;color:inherit;caret-color:#696969;min-width:0;cursor:pointer}.datetime-wrapper .datetime-content:not(.datetime-element:disabled):has(.datetime-element:enabled:hover),.datetime-wrapper .datetime-content:not(.datetime-element:disabled):has(.suffix:hover){border-color:#6d6f73}.datetime-wrapper .datetime-content:not(.datetime-element:disabled):has(.datetime-element:enabled:focus){outline:0;outline-offset:0;box-shadow:0 0 0 .2rem #e0e1e2;border-color:#6d6f73}.datetime-wrapper .datetime-content:has(.datetime-element:disabled){color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;cursor:not-allowed}.datetime-wrapper .datetime-content .datetime-element:disabled{cursor:not-allowed}.datetime-wrapper .datetime-content .suffix{display:flex;align-items:center;justify-content:center;padding-block:.75rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding-right:.8rem}.datetime-wrapper .datetime-help{flex:1;font-size:1rem;font-weight:500;margin-top:-.4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}::ng-deep .gipi-mat-datetime-picker-toggle{width:2rem!important;height:2rem!important;line-height:2rem!important}::ng-deep .gipi-mat-datetime-picker-toggle>button{width:2rem!important;height:2rem!important;line-height:2rem!important}::ng-deep .gipi-mat-datetime-picker-toggle>button .mat-button-wrapper>mat-icon{width:2rem!important;height:2rem!important;font-size:2rem!important;line-height:2rem!important;color:#696969!important}::ng-deep .gipi-mat-datetime-picker-toggle>button .mat-button-focus-overlay,::ng-deep .gipi-mat-datetime-picker-toggle>button .mat-button-ripple{display:none!important}::ng-deep .gipi-mat-datetime-picker-content{border-radius:6px!important}::ng-deep .gipi-mat-datetime-picker-calendar-header{border-top-left-radius:6px!important;border-top-right-radius:6px!important}::ng-deep .gipi-mat-datetime-picker-calendar-body-active>.gipi-mat-datetime-picker-calendar-body-cell-content:not(.gipi-mat-datetime-picker-calendar-body-selected){background-color:#f3e7e7!important;color:#e0313e!important}::ng-deep .gipi-mat-datetime-picker-calendar-body-cell .gipi-mat-datetime-picker-calendar-body-today{border-color:#e0313e!important}::ng-deep .gipi-mat-datetime-picker-calendar-body-cell .gipi-mat-datetime-picker-calendar-body-today.gipi-mat-datetime-picker-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff!important}::ng-deep .gipi-mat-datetime-picker-calendar-body-cell .gipi-mat-datetime-picker-calendar-body-selected{background-color:#e0313e!important;color:#fff!important}::ng-deep .gipi-mat-datetime-picker-clock{background-color:#f5f5f6!important}::ng-deep .gipi-mat-datetime-picker-clock-center,::ng-deep .gipi-mat-datetime-picker-clock-hand,::ng-deep .gipi-mat-datetime-picker-clock-hand::before{background-color:#e0313e!important}::ng-deep .gipi-mat-datetime-picker-clock-cell.gipi-mat-datetime-picker-clock-cell-selected{color:#fff!important;background-color:#e0313e!important}::-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)}(),Lr=function(){function n(e,n){var i=this;this._element=e,this._adapter=n,this._hours=[],this._minutes=[],this._hourView=!0,this._timeChanged=!1,this.interval=1,this.twelvehour=!1,this.selectedChange=new t.EventEmitter,this.activeDateChange=new t.EventEmitter,this._userSelection=new t.EventEmitter,this.mouseMoveListener=function(e){return i._handleMousemove(e)},this.mouseUpListener=function(){return i._handleMouseup()}}return Object.defineProperty(n.prototype,"activeDate",{get:function(){return this._activeDate},set:function(e){var t=this._activeDate;this._activeDate=this._adapter.clampDate(e,this.minDate,this.maxDate),this._adapter.sameMinute(t,this._activeDate)||this._init()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selected",{get:function(){return this._selected},set:function(e){this._selected=this._adapter.getValidDateOrNull(this._adapter.deserialize(e)),this._selected&&(this.activeDate=this._selected)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"minDate",{get:function(){return this._minDate},set:function(e){this._minDate=this._adapter.getValidDateOrNull(this._adapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"maxDate",{get:function(){return this._maxDate},set:function(e){this._maxDate=this._adapter.getValidDateOrNull(this._adapter.deserialize(e))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"startView",{set:function(e){this._hourView="minute"!=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_hand",{get:function(){var e=this._adapter.getHour(this.activeDate);this.twelvehour?(0===e&&(e=24),this._selectedHour=e>12?e-12:e):this._selectedHour=e,this._selectedMinute=this._adapter.getMinute(this.activeDate);var t=0,n=41.25;this._hourView?(n=this._selectedHour>0&&this._selectedHour<13?41.25:27.5,this.twelvehour&&(n=41.25),t=Math.round(30*this._selectedHour)):t=Math.round(6*this._selectedMinute);return{transform:"rotate("+t+"deg)",height:n+"%","margin-top":50-n+"%"}},enumerable:!1,configurable:!0}),n.prototype.ngAfterContentInit=function(){this.activeDate=this._activeDate||this._adapter.today(),this._init()},n.prototype._handleMousedown=function(e){this._timeChanged=!1,this.setTime(e),document.addEventListener("mousemove",this.mouseMoveListener),document.addEventListener("touchmove",this.mouseMoveListener),document.addEventListener("mouseup",this.mouseUpListener),document.addEventListener("touchend",this.mouseUpListener)},n.prototype._handleMousemove=function(e){e.preventDefault(),this.setTime(e)},n.prototype._handleMouseup=function(){document.removeEventListener("mousemove",this.mouseMoveListener),document.removeEventListener("touchmove",this.mouseMoveListener),document.removeEventListener("mouseup",this.mouseUpListener),document.removeEventListener("touchend",this.mouseUpListener),this._timeChanged&&(this.selectedChange.emit(this.activeDate),this._hourView||this._userSelection.emit())},n.prototype._init=function(){this._hours.length=0,this._minutes.length=0;var t=this._adapter.getHourNames(),n=this._adapter.getMinuteNames();if(this.twelvehour)for(var i=1;i<t.length/2+1;i++){var o=i/6*Math.PI,r=41.25,a=this._adapter.createDatetime(this._adapter.getYear(this.activeDate),this._adapter.getMonth(this.activeDate),this._adapter.getDate(this.activeDate),i+1,0),s=(!this.minDate||this._adapter.compareDatetime(a,this.minDate)>=0)&&(!this.maxDate||this._adapter.compareDatetime(a,this.maxDate)<=0);this._hours.push({value:i,displayValue:0===i?"00":t[i],enabled:s,top:50-Math.cos(o)*r-7.0833,left:50+Math.sin(o)*r-7.0833})}else for(i=0;i<t.length;i++){o=i/6*Math.PI,r=i>0&&i<13?41.25:27.5,a=this._adapter.createDatetime(this._adapter.getYear(this.activeDate),this._adapter.getMonth(this.activeDate),this._adapter.getDate(this.activeDate),i,0),s=(!this.minDate||this._adapter.compareDatetime(a,this.minDate,!1)>=0)&&(!this.maxDate||this._adapter.compareDatetime(a,this.maxDate,!1)<=0)&&(!this.dateFilter||this.dateFilter(a,e.GIPIDatetimepickerFilterType.HOUR));this._hours.push({value:i,displayValue:0===i?"00":t[i],enabled:s,top:50-Math.cos(o)*r-7.0833,left:50+Math.sin(o)*r-7.0833,fontSize:i>0&&i<13?"":"80%"})}for(i=0;i<n.length;i+=5){o=i/30*Math.PI,a=this._adapter.createDatetime(this._adapter.getYear(this.activeDate),this._adapter.getMonth(this.activeDate),this._adapter.getDate(this.activeDate),this._adapter.getHour(this.activeDate),i),s=(!this.minDate||this._adapter.compareDatetime(a,this.minDate)>=0)&&(!this.maxDate||this._adapter.compareDatetime(a,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(a,e.GIPIDatetimepickerFilterType.MINUTE));this._minutes.push({value:i,displayValue:0===i?"00":n[i],enabled:s,top:50-41.25*Math.cos(o)-7.0833,left:50+41.25*Math.sin(o)-7.0833})}},n.prototype.setTime=function(e){var t,n,i=this._element.nativeElement,o=i.getBoundingClientRect(),r=i.offsetWidth,a=i.offsetHeight,s=void 0!==e.pageX?e.pageX:e.touches[0].pageX,l=void 0!==e.pageY?e.pageY:e.touches[0].pageY,p=r/2-(s-o.left-window.pageXOffset),d=a/2-(l-o.top-window.pageYOffset),c=Math.atan2(-p,d),u=Math.PI/(this._hourView?6:this.interval?30/this.interval:30),h=Math.sqrt(p*p+d*d),g=this._hourView&&h>(.4125*r+.275*r)/2;c<0&&(c=2*Math.PI+c);var m,f=Math.round(c/u);if(this._hourView){if(this.twelvehour?f=0===f?12:f:(12===f&&(f=0),f=g?0===f?12:f:0===f?0:f+12),!(null===(t=this._hours.find((function(e){return(null==e?void 0:e.value)===f})))||void 0===t?void 0:t.enabled))return;m=this._adapter.createDatetime(this._adapter.getYear(this.activeDate),this._adapter.getMonth(this.activeDate),this._adapter.getDate(this.activeDate),f,this._adapter.getMinute(this.activeDate))}else{if(this.interval&&(f*=this.interval),60===f&&(f=0),!(null===(n=this._minutes.find((function(e){return(null==e?void 0:e.value)===f})))||void 0===n?void 0:n.enabled))return;m=this._adapter.createDatetime(this._adapter.getYear(this.activeDate),this._adapter.getMonth(this.activeDate),this._adapter.getDate(this.activeDate),this._adapter.getHour(this.activeDate),f)}this._timeChanged=!0,this.activeDate=m,this.activeDateChange.emit(this.activeDate)},n.ctorParameters=function(){return[{type:t.ElementRef},{type:Or}]},we([t.Input(),Ce("design:type",Function)],n.prototype,"dateFilter",void 0),we([t.Input(),Ce("design:type",Number)],n.prototype,"interval",void 0),we([t.Input(),Ce("design:type",Boolean)],n.prototype,"twelvehour",void 0),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],n.prototype,"activeDate",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],n.prototype,"selected",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],n.prototype,"minDate",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],n.prototype,"maxDate",null),we([t.Input(),Ce("design:type",String),Ce("design:paramtypes",[String])],n.prototype,"startView",null),we([t.Output(),Ce("design:type",Object)],n.prototype,"selectedChange",void 0),we([t.Output(),Ce("design:type",Object)],n.prototype,"activeDateChange",void 0),we([t.Output(),Ce("design:type",Object)],n.prototype,"_userSelection",void 0),n=we([t.Component({selector:"gipi-mat-datetime-picker-clock",template:'<div class="gipi-mat-datetime-picker-clock">\n <div class="gipi-mat-datetime-picker-clock-center"></div>\n <div [ngStyle]="_hand"\n class="gipi-mat-datetime-picker-clock-hand"></div>\n <div [class.active]="_hourView"\n class="gipi-mat-datetime-picker-clock-hours">\n <div *ngFor="let item of _hours"\n [class.gipi-mat-datetime-picker-clock-cell-disabled]="!item.enabled"\n [class.gipi-mat-datetime-picker-clock-cell-selected]="_selectedHour === item.value"\n [style.fontSize]="item.fontSize"\n [style.left]="item.left + \'%\'"\n [style.top]="item.top + \'%\'"\n class="gipi-mat-datetime-picker-clock-cell">\n {{ item.displayValue }}\n </div>\n </div>\n <div [class.active]="!_hourView"\n class="gipi-mat-datetime-picker-clock-minutes">\n <div *ngFor="let item of _minutes"\n [class.gipi-mat-datetime-picker-clock-cell-disabled]="!item.enabled"\n [class.gipi-mat-datetime-picker-clock-cell-selected]="_selectedMinute === item.value"\n [style.left]="item.left + \'%\'"\n [style.top]="item.top + \'%\'"\n class="gipi-mat-datetime-picker-clock-cell">\n {{ item.displayValue }}\n </div>\n </div>\n</div>',host:{role:"clock","(mousedown)":"_handleMousedown($event)"},styles:[":host{position:relative;display:block;min-width:224px;margin:8px;font-size:14px;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.gipi-mat-datetime-picker-clock{position:relative;width:100%;height:0;padding-top:100%;background-color:#e0e0e0;border-radius:50%}.gipi-mat-datetime-picker-clock-center{position:absolute;top:50%;left:50%;width:2%;height:2%;margin:-1%;border-radius:50%}.gipi-mat-datetime-picker-clock-hand{position:absolute;top:0;right:0;bottom:0;left:0;width:1px;margin:0 auto;transform-origin:bottom}.gipi-mat-datetime-picker-clock-hand::before{content:'';position:absolute;top:-4px;left:-4px;width:8px;height:8px;border-radius:50%}.gipi-mat-datetime-picker-clock-hours,.gipi-mat-datetime-picker-clock-minutes{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;visibility:hidden;transition:350ms;transform:scale(1.2)}.gipi-mat-datetime-picker-clock-hours.active,.gipi-mat-datetime-picker-clock-minutes.active{opacity:1;visibility:visible;transform:scale(1)}.gipi-mat-datetime-picker-clock-minutes{transform:scale(.8)}.gipi-mat-datetime-picker-clock-cell{position:absolute;display:flex;width:14.1666%;height:14.1666%;color:rgba(0,0,0,.87);justify-content:center;box-sizing:border-box;border-radius:50%;align-items:center;cursor:pointer}.gipi-mat-datetime-picker-clock-cell:not(.gipi-mat-datetime-picker-clock-cell-selected):not(.gipi-mat-datetime-picker-clock-cell-disabled):hover{background-color:rgba(0,0,0,.1)}.gipi-mat-datetime-picker-clock-cell.gipi-mat-datetime-picker-clock-cell-disabled{color:rgba(0,0,0,.38);pointer-events:none}.gipi-mat-datetime-picker-clock-cell.gipi-mat-datetime-picker-clock-cell-selected{color:#fff}"]}),Ce("design:paramtypes",[t.ElementRef,Or])],n)}(),Br={provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return Hr})),multi:!0},Yr={provide:r.NG_VALIDATORS,useExisting:t.forwardRef((function(){return Hr})),multi:!0},zr=function(e,t){this.target=e,this.targetElement=t,this.value=this.target.value},Hr=function(){function n(n,i,o,a){var s=this;if(this._elementRef=n,this._dateAdapter=i,this._dateFormats=o,this._formField=a,this._valueChange=new t.EventEmitter,this._disabledChange=new t.EventEmitter,this._datepickerSubscription=ie.Subscription.EMPTY,this._localeSubscription=ie.Subscription.EMPTY,this._lastValueValid=!1,this.dateChange=new t.EventEmitter,this.dateInput=new t.EventEmitter,this._onTouched=function(){},this._cvaOnChange=function(){},this._validatorOnChange=function(){},this._parseValidator=function(){return s._lastValueValid?null:{matDatepickerParse:{text:s._elementRef.nativeElement.value}}},this._minValidator=function(e){var t=s._dateAdapter.getValidDateOrNull(s._dateAdapter.deserialize(e.value));return!s.min||!t||s._dateAdapter.compareDatetime(s.min,t)<=0?null:{matDatepickerMin:{min:s.min,actual:t}}},this._maxValidator=function(e){var t=s._dateAdapter.getValidDateOrNull(s._dateAdapter.deserialize(e.value));return!s.max||!t||s._dateAdapter.compareDatetime(s.max,t)>=0?null:{matDatepickerMax:{max:s.max,actual:t}}},this._filterValidator=function(t){var n=s._dateAdapter.getValidDateOrNull(s._dateAdapter.deserialize(t.value));return s._dateFilter&&n&&!s._dateFilter(n,e.GIPIDatetimepickerFilterType.DATE)?{matDatepickerFilter:!0}:null},this._validator=r.Validators.compose([this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]),!this._dateAdapter)throw Ir("GIPIDatetimeAdapter");if(!this._dateFormats)throw Ir("GIPI_DATETIME_FORMATS");this._localeSubscription=i.localeChanges.subscribe((function(){return s.value=s.value}))}var i;return i=n,Object.defineProperty(n.prototype,"gipiMatDatetimePicker",{set:function(e){this.registerDatepicker(e)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"matDatepickerFilter",{set:function(e){this._dateFilter=e,this._validatorOnChange()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this._value},set:function(e){var t=this;e=this._dateAdapter.deserialize(e),this._lastValueValid=!e||this._dateAdapter.isValid(e),e=this._dateAdapter.getValidDateOrNull(e);var n=this.value;this._value=e,this._formatValue(e),setTimeout((function(){t._dateAdapter.sameDatetime(n,e)||t._valueChange.emit(e)}))},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"min",{get:function(){return this._min},set:function(e){this._min=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._validatorOnChange()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"max",{get:function(){return this._max},set:function(e){this._max=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._validatorOnChange()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"disabled",{get:function(){return!!this._disabled},set:function(e){var t=le.coerceBooleanProperty(e);this._disabled!==t&&(this._disabled=t,this._disabledChange.emit(t))},enumerable:!1,configurable:!0}),n.prototype.ngAfterContentInit=function(){var e=this;this._datepicker&&(this._datepickerSubscription=this._datepicker.selectedChanged.subscribe((function(t){e.value=t,e._cvaOnChange(t),e._onTouched(),e.dateInput.emit(new zr(e,e._elementRef.nativeElement)),e.dateChange.emit(new zr(e,e._elementRef.nativeElement))})))},n.prototype.ngOnDestroy=function(){this._datepickerSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this._disabledChange.complete()},n.prototype.registerOnValidatorChange=function(e){this._validatorOnChange=e},n.prototype.validate=function(e){return this._validator?this._validator(e):null},n.prototype.getConnectedOverlayOrigin=function(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef},n.prototype.writeValue=function(e){this.value=e},n.prototype.registerOnChange=function(e){this._cvaOnChange=e},n.prototype.registerOnTouched=function(e){this._onTouched=e},n.prototype.setDisabledState=function(e){this.disabled=e},n.prototype._onKeydown=function(e){e.altKey&&e.keyCode===se.DOWN_ARROW&&(this._datepicker.open(),e.preventDefault())},n.prototype._onInput=function(e){var t=this._dateAdapter.parse(e,this.getParseFormat());this._lastValueValid=!t||this._dateAdapter.isValid(t),t=this._dateAdapter.getValidDateOrNull(t),this._value=t,this._cvaOnChange(t),this._valueChange.emit(t),this.dateInput.emit(new zr(this,this._elementRef.nativeElement))},n.prototype._onChange=function(){this.dateChange.emit(new zr(this,this._elementRef.nativeElement))},n.prototype._onBlur=function(){this.value&&this._formatValue(this.value),this._onTouched()},n.prototype.registerDatepicker=function(e){e&&(this._datepicker=e,this._datepicker._registerInput(this))},n.prototype.getDisplayFormat=function(){switch(this._datepicker.type){case"date":return this._dateFormats.display.dateInput;case"datetime":return this._dateFormats.display.datetimeInput;case"time":return this._dateFormats.display.timeInput;case"month":return this._dateFormats.display.monthInput}},n.prototype.getParseFormat=function(){var e;switch(this._datepicker.type){case"date":e=this._dateFormats.parse.dateInput;break;case"datetime":e=this._dateFormats.parse.datetimeInput;break;case"time":e=this._dateFormats.parse.timeInput;break;case"month":e=this._dateFormats.parse.monthInput}return e||(e=this._dateFormats.parse.dateInput),e},n.prototype._formatValue=function(e){this._elementRef.nativeElement.value=e?this._dateAdapter.format(e,this.getDisplayFormat()):""},n.ctorParameters=function(){return[{type:t.ElementRef},{type:Or,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[Te]}]},{type:M.MatFormField,decorators:[{type:t.Optional}]}]},we([t.Input(),Ce("design:type",Fr),Ce("design:paramtypes",[Fr])],n.prototype,"gipiMatDatetimePicker",null),we([t.Input(),Ce("design:type",Function),Ce("design:paramtypes",[Function])],n.prototype,"matDatepickerFilter",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],n.prototype,"value",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],n.prototype,"min",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],n.prototype,"max",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],n.prototype,"disabled",null),we([t.Output(),Ce("design:type",Object)],n.prototype,"dateChange",void 0),we([t.Output(),Ce("design:type",Object)],n.prototype,"dateInput",void 0),n=i=we([t.Directive({selector:"input[gipiMatDatetimePicker]",exportAs:"matDatepickerInput",providers:[Br,Yr,{provide:V.MAT_INPUT_VALUE_ACCESSOR,useExisting:i}],host:{"[attr.aria-haspopup]":"true","[attr.aria-owns]":"(_datepicker?.opened && _datepicker.id) || null","[attr.min]":"min ? _dateAdapter.toIso8601(min) : null","[attr.max]":"max ? _dateAdapter.toIso8601(max) : null","[disabled]":"disabled","(focus)":"_datepicker._handleFocus()","(input)":"_onInput($event.target.value)","(change)":"_onChange()","(blur)":"_onBlur()","(keydown)":"_onKeydown($event)"}}),xe(1,t.Optional()),xe(2,t.Optional()),xe(2,t.Inject(Te)),xe(3,t.Optional()),Ce("design:paramtypes",[t.ElementRef,Or,Object,M.MatFormField])],n)}(),Gr=function(){function e(e,n){if(this._adapter=e,this._dateFormats=n,this.type="date",this.selectedChange=new t.EventEmitter,this._userSelection=new t.EventEmitter,!this._adapter)throw Ir("GIPIDatetimeAdapter");if(!this._dateFormats)throw Ir("GIPI_DATETIME_FORMATS");var i=this._adapter.getFirstDayOfWeek(),o=this._adapter.getDayOfWeekNames("narrow"),r=this._adapter.getDayOfWeekNames("long").map((function(e,t){return{long:e,narrow:o[t]}}));this._weekdays=r.slice(i).concat(r.slice(0,i)),this._activeDate=this._adapter.today()}return Object.defineProperty(e.prototype,"activeDate",{get:function(){return this._activeDate},set:function(e){var t=this._activeDate;this._activeDate=e||this._adapter.today(),t&&this._activeDate&&!this._adapter.sameMonthAndYear(t,this._activeDate)&&(this._init(),this._adapter.isInNextMonth(t,this._activeDate)?this.calendarState("right"):this.calendarState("left"))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(e){this._selected=e,this._selectedDate=this._getDateInCurrentMonth(this.selected)},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){this._init()},e.prototype._dateSelected=function(e){this.selectedChange.emit(this._adapter.createDatetime(this._adapter.getYear(this.activeDate),this._adapter.getMonth(this.activeDate),e,this._adapter.getHour(this.activeDate),this._adapter.getMinute(this.activeDate))),"date"===this.type&&this._userSelection.emit()},e.prototype._calendarStateDone=function(){this._calendarState=""},e.prototype._init=function(){this._selectedDate=this._getDateInCurrentMonth(this.selected),this._todayDate=this._getDateInCurrentMonth(this._adapter.today());var e=this._adapter.createDatetime(this._adapter.getYear(this.activeDate),this._adapter.getMonth(this.activeDate),1,this._adapter.getHour(this.activeDate),this._adapter.getMinute(this.activeDate));this._firstWeekOffset=(7+this._adapter.getDayOfWeek(e)-this._adapter.getFirstDayOfWeek())%7,this._createWeekCells()},e.prototype._createWeekCells=function(){var e=this._adapter.getNumDaysInMonth(this.activeDate),t=this._adapter.getDateNames();this._weeks=[[]];for(var n=0,i=this._firstWeekOffset;n<e;n++,i++){7==i&&(this._weeks.push([]),i=0);var o=this._adapter.createDatetime(this._adapter.getYear(this.activeDate),this._adapter.getMonth(this.activeDate),n+1,this._adapter.getHour(this.activeDate),this._adapter.getMinute(this.activeDate)),r=!this.dateFilter||this.dateFilter(o),a=this._adapter.format(o,this._dateFormats.display.dateA11yLabel);this._weeks[this._weeks.length-1].push(new Sr(n+1,t[n],a,r))}},e.prototype._getDateInCurrentMonth=function(e){return this._adapter.sameMonthAndYear(e,this.activeDate)?this._adapter.getDate(e):null},e.prototype.calendarState=function(e){this._calendarState=e},e.ctorParameters=function(){return[{type:Or,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[Te]}]}]},we([t.Input(),Ce("design:type",String)],e.prototype,"type",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"dateFilter",void 0),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"activeDate",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"selected",null),we([t.Output(),Ce("design:type",Object)],e.prototype,"selectedChange",void 0),we([t.Output(),Ce("design:type",Object)],e.prototype,"_userSelection",void 0),e=we([t.Component({selector:"gipi-mat-datetime-picker-month-view",template:'<table class="gipi-mat-datetime-picker-calendar-table">\n <thead class="gipi-mat-datetime-picker-calendar-table-header">\n <tr>\n <th *ngFor="let day of _weekdays"\n [attr.aria-label]="day.long">\n {{ day.narrow }}\n </th>\n </tr>\n <tr>\n <th class="gipi-mat-datetime-picker-calendar-table-header-divider"\n colspan="7"\n aria-hidden="true">\n </th>\n </tr>\n </thead>\n <tbody gipiMatDatetimePickerCalendarBody\n role="grid"\n [activeCell]="_adapter.getDate(activeDate) - 1"\n [rows]="_weeks"\n [selectedValue]="_selectedDate"\n [todayValue]="_todayDate"\n [@slideCalendar]="_calendarState"\n (@slideCalendar.done)="_calendarStateDone()"\n (selectedValueChange)="_dateSelected($event)">\n </tbody>\n</table>',animations:[Cr],encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush}),xe(0,t.Optional()),xe(1,t.Optional()),xe(1,t.Inject(Te)),Ce("design:paramtypes",[Or,Object])],e)}(),Ur=Wr(24,(function(e){return String(e)})),qr=Wr(60,(function(e){return String(e)}));function Wr(e,t){for(var n=Array(e),i=0;i<e;i++)n[i]=t(i);return n}var $r=function(e){function n(t,n){var i=e.call(this,n)||this;return i.setLocale(t),i}return be(n,e),n.prototype.clone=function(e){return this.createDatetime(this.getYear(e),this.getMonth(e),this.getDate(e),this.getHour(e),this.getMinute(e))},n.prototype.getHour=function(e){return e.getHours()},n.prototype.getMinute=function(e){return e.getMinutes()},n.prototype.isInNextMonth=function(e,t){var n=this.getDateInNextMonth(e);return this.sameMonthAndYear(n,t)},n.prototype.createDatetime=function(e,t,n,i,o){if(t<0||t>11)throw Error('Invalid month index "'+t+'". Month index has to be between 0 and 11.');if(n<1)throw Error('Invalid date "'+n+'". Date has to be greater than 0.');if(i<0||i>23)throw Error('Invalid hour "'+i+'". Hour has to be between 0 and 23.');if(o<0||o>59)throw Error('Invalid minute "'+o+'". Minute has to be between 0 and 59.');var r=this._createDateWithOverflow(e,t,n,i,o);if(r.getMonth()!==t)throw Error('Invalid date "'+n+'" for month with index "'+t+'".');return r},n.prototype.getFirstDateOfMonth=function(e){var t=new Date;return t.setFullYear(e.getFullYear(),e.getMonth(),1),t},n.prototype.getHourNames=function(){return Ur},n.prototype.getMinuteNames=function(){return qr},n.prototype.addCalendarYears=function(e,t){return this.addCalendarMonths(e,12*t)},n.prototype.addCalendarMonths=function(e,t){var n=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e),this.getHour(e),this.getMinute(e));return this.getMonth(n)!==((this.getMonth(e)+t)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0,this.getHour(e),this.getMinute(e))),n},n.prototype.addCalendarDays=function(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t,this.getHour(e),this.getMinute(e))},n.prototype.addCalendarHours=function(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e),this.getHour(e)+t,this.getMinute(e))},n.prototype.addCalendarMinutes=function(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e),this.getHour(e),this.getMinute(e)+t)},n.prototype.toIso8601=function(t){return e.prototype.toIso8601.call(this,t)+"T"+[this._2digit(t.getUTCHours()),this._2digit(t.getUTCMinutes())].join(":")},n.prototype.getDateInNextMonth=function(e){return new Date(e.getFullYear(),e.getMonth()+1,1,e.getHours(),e.getMinutes())},n.prototype._stripDirectionalityCharacters=function(e){return e.replace(/[\u200e\u200f]/g,"")},n.prototype._2digit=function(e){return("00"+e).slice(-2)},n.prototype._createDateWithOverflow=function(e,t,n,i,o){var r=new Date(e,t,n,i,o);return e>=0&&e<100&&r.setFullYear(this.getYear(r)-1900),r},n.ctorParameters=function(){return[{type:String,decorators:[{type:t.Optional},{type:t.Inject,args:[D.MAT_DATE_LOCALE]}]},{type:D.DateAdapter}]},n=we([t.Injectable(),xe(0,t.Optional()),xe(0,t.Inject(D.MAT_DATE_LOCALE)),Ce("design:paramtypes",[String,D.DateAdapter])],n)}(Or),Kr={parse:{},display:{dateInput:{year:"numeric",month:"2-digit",day:"2-digit"},monthInput:{month:"long"},datetimeInput:{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"},timeInput:{hour:"2-digit",minute:"2-digit"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},popupHeaderDateLabel:{weekday:"short",month:"short",day:"2-digit"}}},Xr=function(){function e(){}return e=we([t.NgModule({imports:[D.NativeDateModule],providers:[{provide:Or,useClass:$r}]})],e)}(),Zr=Kr,Jr=function(){function e(){}return e=we([t.NgModule({imports:[Xr,D.MatNativeDateModule],providers:[{provide:Te,useValue:Zr}]})],e)}(),Qr=function(){function e(e,n){if(this._adapter=e,this._dateFormats=n,this.type="date",this.selectedChange=new t.EventEmitter,this._userSelection=new t.EventEmitter,!this._adapter)throw Ir("DatetimeAdapter");if(!this._dateFormats)throw Ir("GIPI_DATETIME_FORMATS");this._activeDate=this._adapter.today()}return Object.defineProperty(e.prototype,"activeDate",{get:function(){return this._activeDate},set:function(e){var t=this._activeDate;this._activeDate=e||this._adapter.today(),t&&this._activeDate&&!this._adapter.sameYear(t,this._activeDate)&&this._init()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(e){this._selected=e,this._selectedMonth=this._getMonthInCurrentYear(this.selected)},enumerable:!1,configurable:!0}),e.prototype.ngAfterContentInit=function(){this._init()},e.prototype._monthSelected=function(e){var t=this._adapter.createDatetime(this._adapter.getYear(this.activeDate),e,1,0,0);this.selectedChange.emit(this._adapter.createDatetime(this._adapter.getYear(this.activeDate),e,Math.min(this._adapter.getDate(this.activeDate),this._adapter.getNumDaysInMonth(t)),this._adapter.getHour(this.activeDate),this._adapter.getMinute(this.activeDate))),"month"===this.type&&this._userSelection.emit()},e.prototype._calendarStateDone=function(){this._calendarState=""},e.prototype._init=function(){var e=this;this._selectedMonth=this._getMonthInCurrentYear(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._adapter.today()),this._yearLabel=this._adapter.getYearName(this.activeDate);var t=this._adapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map((function(n){return n.map((function(n){return e._createCellForMonth(n,t[n])}))}))},e.prototype._getMonthInCurrentYear=function(e){return this._adapter.sameYear(e,this.activeDate)?this._adapter.getMonth(e):null},e.prototype._createCellForMonth=function(e,t){var n=this._adapter.format(this._adapter.createDatetime(this._adapter.getYear(this.activeDate),e,1,this._adapter.getHour(this.activeDate),this._adapter.getMinute(this.activeDate)),this._dateFormats.display.monthYearA11yLabel);return new Sr(e,t.toLocaleUpperCase(),n,this._isMonthEnabled(e))},e.prototype._isMonthEnabled=function(e){if(!this.dateFilter)return!0;for(var t=this._adapter.createDatetime(this._adapter.getYear(this.activeDate),e,1,this._adapter.getHour(this.activeDate),this._adapter.getMinute(this.activeDate));this._adapter.getMonth(t)==e;t=this._adapter.addCalendarDays(t,1))if(this.dateFilter(t))return!0;return!1},e.ctorParameters=function(){return[{type:Or,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[Te]}]}]},we([t.Input(),Ce("design:type",String)],e.prototype,"type",void 0),we([t.Input(),Ce("design:type",Function)],e.prototype,"dateFilter",void 0),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"activeDate",null),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],e.prototype,"selected",null),we([t.Output(),Ce("design:type",Object)],e.prototype,"selectedChange",void 0),we([t.Output(),Ce("design:type",Object)],e.prototype,"_userSelection",void 0),e=we([t.Component({selector:"gipi-mat-datetime-picker-year-view",template:'<table class="gipi-mat-datetime-picker-calendar-table"\n role="presentation">\n <thead class="gipi-mat-datetime-picker-calendar-table-header">\n <tr>\n <th class="gipi-mat-datetime-picker-calendar-table-header-divider"\n colspan="4">\n </th>\n </tr>\n </thead>\n <tbody gipiMatDatetimePickerCalendarBody\n allowDisabledSelection="true"\n role="grid"\n [label]="_yearLabel"\n [rows]="_months"\n [todayValue]="_todayMonth"\n [labelMinRequiredCells]="2"\n [numCols]="4"\n [cellAspectRatio]="4 / 7"\n [activeCell]="_adapter.getMonth(activeDate)"\n [selectedValue]="_selectedMonth"\n [@slideCalendar]="_calendarState"\n (@slideCalendar.done)="_calendarStateDone()"\n (selectedValueChange)="_monthSelected($event)">\n </tbody>\n</table>\n',animations:[Cr],encapsulation:t.ViewEncapsulation.None,changeDetection:t.ChangeDetectionStrategy.OnPush}),xe(0,t.Optional()),xe(1,t.Optional()),xe(1,t.Inject(Te)),Ce("design:paramtypes",[Or,Object])],e)}(),ea=function(){function e(){}return e=we([t.NgModule({imports:[i.CommonModule,r.FormsModule,r.ReactiveFormsModule,I.MatButtonModule,P.MatDialogModule,F.MatIconModule,ue.OverlayModule,m.A11yModule,ge.MatDatepickerModule,Jr],exports:[r.FormsModule,r.ReactiveFormsModule,I.MatButtonModule,P.MatDialogModule,F.MatIconModule,ue.OverlayModule,m.A11yModule,ge.MatDatepickerModule,Jr,Rr,kr,Lr,Fr,Vr,Hr,Tr,Gr,Qr,Er,jr],declarations:[Rr,kr,Lr,Fr,Vr,Hr,Tr,Gr,Qr,Er,jr],entryComponents:[Tr],providers:[ge.MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER]})],e)}(),ta=he,na=function(){function e(e){this._changeDetectorRef=e,this._subscriptions=new ie.Subscription,this._animationState="enter",this._animationDone=new ie.Subject,this.years=[],this.months=[],this._calendarView="both"}var n;return n=e,e.prototype.ngOnInit=function(){this._locale?ta.locale(this._locale):ta.locale("pt-br"),this.months=Ee(this.monthYearPicker.model.months),this._calendarView=this.monthYearPicker.calendarView,"year"===this._calendarView&&this.toggleShowYears(),this.monthYearPicker.onValueChange(this.monthYearPicker.model.selectedMonthIndex,this.monthYearPicker.model.selectedMonthYear)},e.prototype.ngAfterViewInit=function(){var e=this;this._changeDetectorRef&&this._subscriptions.add(this.monthYearPicker._stateChanges.subscribe((function(){e._changeDetectorRef.markForCheck()})))},e.prototype.ngOnDestroy=function(){this._subscriptions.unsubscribe(),this._animationDone.complete()},e.prototype._startExitAnimation=function(){this._animationState="void",this._changeDetectorRef&&this._changeDetectorRef.markForCheck()},e.prototype.decrement=function(){this.monthYearPicker.model.decrementYear(),this.isShowYears&&this._renderYears()},e.prototype.increment=function(){this.monthYearPicker.model.incrementYear(),this.isShowYears&&this._renderYears()},e.prototype.selectMonth=function(e){this.monthYearPicker.model.selectMonth(e),this.monthYearPicker.onValueChange(this.monthYearPicker.model.selectedMonthIndex,this.monthYearPicker.model.selectedMonthYear),this.monthYearPicker.close()},e.prototype.isSelectedMonth=function(e){return this.monthYearPicker.model.selectedMonthIndex==e&&this.monthYearPicker.model.selectedMonthYear==this.monthYearPicker.model.selectedYearMoment.year()},e.prototype.isCurrentMonth=function(e){var t=ta().month(),n=ta().year();return e===t&&this.monthYearPicker.model.selectedYearMoment.year()===n},e.prototype.isDisabledMonth=function(e){var t=!1;if(!ze.isNull(this.monthYearPicker)){var n=ze.isNull(this.monthYearPicker.min)?null:this.monthYearPicker.min.month,i=ze.isNull(this.monthYearPicker.max)?null:this.monthYearPicker.max.month;ze.isNull(n)||ze.isNull(i)?ze.isNull(n)?ze.isNull(i)||(t=e>i):t=e<n:t=e<n||e>i}return t},e.prototype.toggleShowYears=function(){this.isShowYears=!this.isShowYears,this._renderYears()},e.prototype._renderYears=function(){this.years=[];for(var e=11;e>0;e--)this.years.push(this.monthYearPicker.model.selectedYearMoment.year()-e);for(e=0;e<=12;e++)this.years.push(this.monthYearPicker.model.selectedYearMoment.year()+e)},Object.defineProperty(e.prototype,"periodButtonLabel",{get:function(){var e,t;return this.isShowYears?(e=this.years[0],t=this.years[this.years.length-1],e+" – "+t):this.monthYearPicker.model.selectedYearText},enumerable:!1,configurable:!0}),e.prototype.selectYear=function(e){"both"===this._calendarView&&(this.isShowYears=!1),this.monthYearPicker.model.selectedYearMoment=ta().year(e),this.monthYearPicker.model.updateYearText(),"year"===this._calendarView&&(this.monthYearPicker.onValueChange(this.monthYearPicker.model.selectedMonthIndex,e),this.monthYearPicker.close())},e.prototype.isSelectedYear=function(e){return this.monthYearPicker.model.selectedYearMoment.year()===e},e.prototype.isCurrentYear=function(e){return ta().year()===e},e.prototype.isDisabledYear=function(e){var t=!1;if(!ze.isNull(this.monthYearPicker)){var n=ze.isNull(this.monthYearPicker.min)?null:this.monthYearPicker.min.year,i=ze.isNull(this.monthYearPicker.max)?null:this.monthYearPicker.max.year;ze.isNull(n)||ze.isNull(i)?ze.isNull(n)?ze.isNull(i)||(t=e>i):t=e<n:t=e<n||e>i}return t},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},e=n=we([t.Component({selector:"gipi-calendar-month-year",exportAs:"gipiMonthYearPicker",template:'<div class="month-picker">\n <div class="card-header">\n <button class="month-btn btn-control"\n [class.fixed]="(_calendarView === \'year\')"\n (click)="(_calendarView === \'both\') ? toggleShowYears() : null">\n {{ periodButtonLabel }}\n\n <div *ngIf="(_calendarView === \'both\')"\n class="btn-icon-arrow"\n [class.icon-arrow-invert]="isShowYears">\n </div>\n </button>\n\n <div class="card-prev-next">\n <button class="month-btn btn-decrement"\n (click)="decrement()">\n <mat-icon> chevron_left </mat-icon>\n </button>\n\n <button class="month-btn btn-increment"\n (click)="increment()">\n <mat-icon> chevron_right </mat-icon>\n </button>\n </div>\n </div>\n\n <div class="card-body">\n <ng-container *ngIf="!isShowYears && (_calendarView === \'both\')">\n <div *ngFor="let month of months; let i = index">\n <button class="month-btn btn-block"\n [class.selected]="isSelectedMonth(i)"\n [class.current]="isCurrentMonth(i)"\n [disabled]="isDisabledMonth(i)"\n (click)="selectMonth(i)">\n {{ month }}\n </button>\n </div>\n </ng-container>\n\n <ng-container *ngIf="isShowYears && ((_calendarView === \'both\') || (_calendarView === \'year\'))">\n <div *ngFor="let year of years; let i = index">\n <button class="month-btn btn-block"\n [class.selected]="isSelectedYear(year)"\n [class.current]="isCurrentYear(year)"\n [disabled]="isDisabledYear(year)"\n (click)="selectYear(year)">\n {{ year }}\n </button>\n </div>\n </ng-container>\n </div>\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],animations:[ge.matDatepickerAnimations.transformPanel,ge.matDatepickerAnimations.fadeInCalendar],host:{class:"gipi-calendar-month-year","[@transformPanel]":"_animationState","(@transformPanel.done)":"_animationDone.next()"},styles:[".month-picker{display:flex;flex-direction:column;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);background-color:#fff;color:rgba(0,0,0,.87);padding:1rem;width:30rem;height:36.5rem}.month-picker .card-header{display:flex;justify-content:space-between;gap:1rem;padding-bottom:2rem;border-bottom:1px solid #595959}.month-picker .card-header .card-prev-next{display:flex;gap:1rem;align-items:center}.month-picker .card-body{display:-ms-grid;display:grid;-ms-grid-rows:(1fr)[6];grid-template-rows:repeat(6,1fr);-ms-grid-columns:(1fr)[4];grid-template-columns:repeat(4,1fr);grid-auto-flow:row dense;gap:.6rem;padding-top:1.6rem}.month-btn{display:flex;align-items:center;justify-content:center;gap:.4rem;border-radius:4px;outline:0;border:1px solid transparent;padding:1rem;cursor:pointer;background-color:transparent;transition:.2s;text-transform:uppercase;color:#595959}.month-btn>mat-icon{font-size:2rem;width:2rem;height:2rem;line-height:2rem}.month-btn:not(:disabled).btn-control{height:3.6rem;font-weight:700}.month-btn:not(:disabled).btn-control.fixed{cursor:default}.month-btn:not(:disabled).btn-control:not(.fixed):hover{background-color:#f0f0f0}.month-btn:not(:disabled).btn-decrement,.month-btn:not(:disabled).btn-increment{width:3.6rem;height:3.6rem;background-color:#e0313e;color:#fff}.month-btn:not(:disabled).btn-decrement:hover,.month-btn:not(:disabled).btn-increment:hover{background-color:#cc2d38}.month-btn:not(:disabled).btn-block{width:96%;height:96%;background-color:#f0f0f0;color:#595959;border-radius:.6rem;max-height:3.5rem}.month-btn:not(:disabled).btn-block:hover,.month-btn:not(:disabled).selected{background-color:#e0313e;color:#fff}.month-btn:not(:disabled).selected.current{box-shadow:inset 0 0 0 1px #fff!important}.month-btn:not(:disabled).current{box-shadow:inset 0 0 0 1px #e0313e!important}.month-btn:disabled{cursor:not-allowed;opacity:.6;color:#9a9da2}.btn-icon-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:solid transparent;border-top-width:5PX;border-top-style:solid;margin:0 0 0 5PX;vertical-align:middle}.btn-icon-arrow.icon-arrow-invert{transform:rotate(180deg)}"]}),Ce("design:paramtypes",[t.ChangeDetectorRef])],e)}(),ia=he,oa=new t.InjectionToken("gipi-month-year-scroll-strategy");function ra(e){return function(){return e.scrollStrategies.reposition()}}var aa,sa={provide:oa,deps:[ue.Overlay],useFactory:ra},la=function(){function e(e,t){this._month=e,this._year=t}return Object.defineProperty(e.prototype,"date",{get:function(){return ia().day(1).month(this.month).year(this.year).startOf("day").toDate()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"month",{get:function(){return this._month},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"year",{get:function(){return this._year},enumerable:!1,configurable:!0}),e}(),pa=function(){function e(){this.months=[],this.selectedYearMoment=ia(),this.updateYearText(),this.selectedMonthMoment=ia(),this.months=["Jan.","Fev.","Mar.","Abr.","Mai.","Jun.","Jul.","Ago.","Set.","Out.","Nov.","Dez."],this.selectedMonthIndex=this.selectedMonthMoment.month(),this.selectedMonthYear=this.selectedYearMoment.year()}return e.prototype.updateYearText=function(){this.selectedYearText=ze.isNull(ia)?"":ia(this.selectedYearMoment).format("YYYY")},e.prototype.selectMonth=function(e){this.selectedMonthMoment=ia().month(e),this.selectedMonthIndex=this.selectedMonthMoment.month(),this.selectedMonthYear=this.selectedYearMoment.year()},e.prototype.incrementYear=function(){this.selectedYearMoment=this.selectedYearMoment.add(1,"year"),this.updateYearText()},e.prototype.decrementYear=function(){this.selectedYearMoment=this.selectedYearMoment.subtract(1,"year"),this.updateYearText()},e}(),da=0,ca=function(){function e(e,n,i,o,r,a,s,l){this.elementRef=e,this._changeDetectorRef=n,this._overlay=i,this._ngZone=o,this._viewContainerRef=r,this._dir=s,this._document=l,this._name="gipi-date-range-"+da++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=this._name+"-backdrop",this._stateChanges=new ie.Subject,this.valueLabel="",this.id=this._name+"-date",this.name=this._name+"-date",this.label="",this.placeholder="",this.help="",this.xPosition="start",this.yPosition="below",this.calendarView="both",this._opened=!1,this._required=!1,this._disabled=!1,this._min=null,this._max=null,this.openedStream=new t.EventEmitter,this.closedStream=new t.EventEmitter,this.onChange=function(){},this.onTouched=function(){},this._scrollStrategy=a}var n;return n=e,Object.defineProperty(e.prototype,"opened",{get:function(){return this._opened},set:function(e){le.coerceBooleanProperty(e)?this.open():this.close()},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,"min",{get:function(){return this._min},set:function(e){this._min=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"max",{get:function(){return this._max},set:function(e){this._max=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){var t=e;if(e||(t=null),t)switch(this.calendarView){case"both":this.valueLabel=ia(t.date).format("MM/YYYY");break;case"year":this.valueLabel=ia(t.date).format("YYYY");break;default:this.valueLabel=ia(t.date).format("MM/YYYY")}this._value=t,this.onChange(this._value),this.onTouched(this._value)},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this.model=new pa,this.year&&(this.model.selectedYearMoment=ia().year(this.year)),this.month&&(this.model.selectedMonthIndex=this.month,this.model.selectedMonthMoment=ia().month(this.month),this.year&&(this.model.selectedMonthYear=this.year)),this.model.updateYearText(),ze.isNull(this.month)&&ze.isNull(this.year)?(this.value=null,this._changeDetectorRef.detectChanges()):this.onValueChange(this.model.selectedMonthIndex,this.model.selectedMonthYear)},e.prototype.ngOnChanges=function(e){var t=e.xPosition||e.yPosition;t&&!t.firstChange&&this._popupRef&&(this._setConnectedPositions(this._popupRef.getConfig().positionStrategy),this.opened&&this._popupRef.updatePosition()),this._stateChanges.next(void 0)},e.prototype.ngOnDestroy=function(){this._destroyPopup(),this.close(),this._stateChanges.complete()},e.prototype.writeValue=function(e){this.value=e,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.onValueChange=function(e,t){var n=new la(e,t);this.value=n,this._changeDetectorRef.detectChanges()},e.prototype.open=function(){if(!this._opened&&!this.disabled){if(!this.inputMonthYearContentRef)throw Error("Attempted to open an MonthYearPicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this._openAsPopup(),this._opened=!0,this.openedStream.emit()}},e.prototype.close=function(){var e=this;if(this._opened){if(this._popupComponentRef&&this._popupRef){var t=this._popupComponentRef.instance;t._startExitAnimation(),t._animationDone.pipe(oe.take(1)).subscribe((function(){return e._destroyPopup()}))}var n=function(){e._opened&&(e._opened=!1,e.closedStream.emit(),e._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(n)):n()}},e.prototype._openAsPopup=function(){var e=this,t=new y.ComponentPortal(na,this._viewContainerRef);this._destroyPopup(),this._createPopup(),this._popupComponentRef=this._popupRef.attach(t),this._popupComponentRef.instance.monthYearPicker=this,this._ngZone.onStable.pipe(oe.take(1)).subscribe((function(){e._popupRef.updatePosition()}))},e.prototype._getConnectedOverlayOrigin=function(){return this.inputMonthYearContentRef?this.inputMonthYearContentRef:this.elementRef},e.prototype._createPopup=function(){var e=this,t=this._overlay.position().flexibleConnectedTo(this._getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition(),n=new ue.OverlayConfig({positionStrategy:this._setConnectedPositions(t),hasBackdrop:!0,backdropClass:["mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:this._scrollStrategy(),panelClass:"mat-month-year-picker-popup"});this._popupRef=this._overlay.create(n),this._popupRef.overlayElement.setAttribute("role","dialog"),ie.merge(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(oe.filter((function(t){return t.keyCode===se.ESCAPE||e.inputMonthYearContentRef&&t.altKey&&t.keyCode===se.UP_ARROW})))).subscribe((function(t){t&&t.preventDefault(),e.close()}))},e.prototype._destroyPopup=function(){this._popupRef&&(this._popupRef.dispose(),this._popupRef=this._popupComponentRef=null)},e.prototype._setConnectedPositions=function(e){var t="end"===this.xPosition?"end":"start",n="start"===t?"end":"start",i="above"===this.yPosition?"bottom":"top",o="top"===i?"bottom":"top";return e.withPositions([{originX:t,originY:o,overlayX:t,overlayY:i},{originX:t,originY:i,overlayX:t,overlayY:o},{originX:n,originY:o,overlayX:n,overlayY:i},{originX:n,originY:i,overlayX:n,overlayY:o}])},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef},{type:ue.Overlay},{type:t.NgZone},{type:t.ViewContainerRef},{type:void 0,decorators:[{type:t.Inject,args:[oa]}]},{type:ce.Directionality,decorators:[{type:t.Optional}]},{type:void 0,decorators:[{type:t.Optional},{type:t.Inject,args:[i.DOCUMENT]}]}]},we([t.ViewChild("inputMonthYearContent",{static:!1}),Ce("design:type",t.ElementRef)],e.prototype,"inputMonthYearContentRef",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",String)],e.prototype,"help",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"locale",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"year",void 0),we([t.Input(),Ce("design:type",Number)],e.prototype,"month",void 0),we([t.Input(),Ce("design:type",Boolean)],e.prototype,"multiple",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"xPosition",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"yPosition",void 0),we([t.Input(),Ce("design:type",String)],e.prototype,"calendarView",void 0),we([t.Input(),Ce("design:type",Boolean),Ce("design:paramtypes",[Boolean])],e.prototype,"opened",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",la),Ce("design:paramtypes",[la])],e.prototype,"min",null),we([t.Input(),Ce("design:type",la),Ce("design:paramtypes",[la])],e.prototype,"max",null),we([t.Input(),Ce("design:type",la),Ce("design:paramtypes",[la])],e.prototype,"value",null),we([t.Output("opened"),Ce("design:type",t.EventEmitter)],e.prototype,"openedStream",void 0),we([t.Output("closed"),Ce("design:type",t.EventEmitter)],e.prototype,"closedStream",void 0),e=n=we([t.Component({selector:"gipi-month-year-picker",template:'<div class="input-wrapper">\n\n <label *ngIf="label"\n class="input-label"\n [attr.for]="id">\n {{ label }}\n <span *ngIf="required"> * </span>\n </label>\n\n <div class="input-content"\n #inputMonthYearContent\n (click)="open()">\n <input matInput\n class="input-element"\n type="text"\n [attr.id]="id"\n [attr.name]="name"\n [placeholder]="placeholder"\n [disabled]="disabled"\n [required]="required"\n [readOnly]="true"\n [autocomplete]="\'off\'"\n [autofocus]="false"\n [ngModel]="valueLabel"\n (click)="open()" />\n\n <div class="suffix">\n <button #button\n mat-icon-button\n type="button"\n class="btn-month-year-toggle"\n [attr.aria-label]="\'Abrir calendário mensal\'"\n [disabled]="disabled"\n (click)="open()">\n <svg class="month-year-toggle-default-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\n <small *ngIf="help"\n class="input-help">\n {{ help }}\n </small>\n</div>',providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],host:{class:"gipi-month-year-picker"},changeDetection:t.ChangeDetectionStrategy.OnPush,styles:[":host{display:block;width:100%;min-width:0;max-width:100%;flex:1}.input-wrapper{display:flex;flex-direction:column;gap:.8rem;font-size:1.4rem;color:#696969}.input-wrapper .input-label{display:flex;align-items:center;gap:.4rem;color:#131313;line-height:1.6rem}.input-wrapper .input-label>span{font-size:1.6rem;line-height:1.6rem;color:#d14014}.input-wrapper .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}.input-wrapper .input-content .input-element{padding:.75rem .8rem;border:none;outline:0;background-color:transparent;flex:1;color:inherit;caret-color:#696969;min-width:0}.input-wrapper .input-content:not(.input-element:disabled):has(.input-element:enabled:hover),.input-wrapper .input-content:not(.input-element:disabled):has(.prefix:hover),.input-wrapper .input-content:not(.input-element:disabled):has(.suffix:hover){border-color:#6d6f73}.input-wrapper .input-content:not(.input-element:disabled):has(.input-element:enabled:focus){outline:0;outline-offset:0;box-shadow:0 0 0 .2rem #e0e1e2;border-color:#6d6f73}.input-wrapper .input-content:has(.input-element:disabled){color:#bbbdc1!important;border-color:#e0e1e2!important;background-color:#f5f5f6!important;cursor:not-allowed}.input-wrapper .input-content:has(.input-element:disabled) .suffix>mat-icon{color:#bbbdc1!important}.input-wrapper .input-content .input-element:disabled{cursor:not-allowed}.input-wrapper .input-content .suffix{display:flex;align-items:center;justify-content:center;padding-block:.75rem;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding-right:.8rem}.input-wrapper .input-content .suffix>mat-icon{width:2rem;height:2rem;font-size:2rem;color:#696969}.input-wrapper .input-help{flex:1;font-size:1rem;font-weight:500;margin-top:-.4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.month-year-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-icon-button .month-year-toggle-default-icon{margin:auto}.btn-month-year-toggle{width:2rem!important;height:2rem!important;line-height:2rem!important}"]}),xe(5,t.Inject(oa)),xe(6,t.Optional()),xe(7,t.Optional()),xe(7,t.Inject(i.DOCUMENT)),Ce("design:paramtypes",[t.ElementRef,t.ChangeDetectorRef,ue.Overlay,t.NgZone,t.ViewContainerRef,Object,ce.Directionality,Object])],e)}(),ua=function(){function e(){}return e=we([t.NgModule({imports:[i.CommonModule,I.MatButtonModule,P.MatDialogModule,ue.OverlayModule,m.A11yModule,y.PortalModule,F.MatIconModule,r.FormsModule,r.ReactiveFormsModule],exports:[v.ScrollingModule,na,ca],declarations:[na,ca],providers:[sa],entryComponents:[na]})],e)}(),ha=[qi,En,mn,Ci,Ii,qn,Ui,yi,Ki,vi,ni,ii,li,gn,pi,dn,cn,Di,On,wn,jn,ci,ti,Xn,$n,Pn,Tn,bn,Vn,Zn,Qn,zn,Cn,Sn,ai,Rn,un,fi,gi,ki,In,yn,Gi,Ei,tn,Bn,zi,Bi,Mi,Pi,Ai,Ti,Vi,Ni],ga=[sn,en,Qt,Wt,$t,rn,an,nn],ma=[pn],fa=[pt,Jt,Xt,on],ya={parse:{dateInput:"DD/MM/YYYY"},display:{dateInput:"DD/MM/YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},va={parse:{},display:{dateInput:{year:"numeric",month:"2-digit",day:"2-digit"},monthInput:{month:"long"},datetimeInput:{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"},timeInput:{hour:"2-digit",minute:"2-digit"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},popupHeaderDateLabel:{day:"2-digit",month:"short"}}},ba=function(){function g(t){this._injector=t,e.INJECTOR=this._injector}return g.ctorParameters=function(){return[{type:t.Injector}]},g=we([t.NgModule({declarations:[ha,ga,ma,nt,tt,Fe,et,Et,Dt,Nt,Ve,Ne,mt,yt,At,je,Rt,jt,Le,Ze,gt,zt,Gt,Yt,Ht,ut,Lt,Pt,Bt,Ft,St,vt,wt,xt,bt,_t],imports:[i.CommonModule,s.RouterModule,r.FormsModule,r.ReactiveFormsModule,Re,o.FlexLayoutModule.withConfig({disableDefaultBps:!0},Ut),u.NgxMaskModule.forChild(),d.NgxCurrencyModule,h.NgxMaterialTimepickerModule,l.MdePopoverModule,c.InfiniteScrollModule,p.MentionModule,xr,ua,ea],exports:[ha,ga,ma,i.CommonModule,s.RouterModule,r.FormsModule,r.ReactiveFormsModule,o.FlexLayoutModule,n.CdkStepperModule,a.MatRippleModule,a.MatDialogModule,c.InfiniteScrollModule,nt,tt,Fe,et,Et,Dt,Nt,Ve,Ne,mt,yt,At,je,Rt,jt,Le,Ze,gt,p.MentionModule,ut,Lt,Pt,Bt,Ft,St,vt,wt,xt,bt,_t,xr,ua,ea],entryComponents:[wn,zi,Bi,gt],providers:[fa,qt,{provide:Qi,useClass:pr,deps:[Xi]},{provide:Xi,useValue:"pt-BR"},{provide:Me,useValue:ya},{provide:Te,useValue:va}]}),Ce("design:paramtypes",[t.Injector])],g)}(),_a=function(e){function t(){var t=e.call(this)||this;return t.content=[],t.number=0,t}return be(t,e),t}(qe),wa=function(e){function t(t,n){var i=e.call(this)||this;return i.field=t,i.direction=n,i}return be(t,e),t}(qe);(aa=e.SortDirectionEnum||(e.SortDirectionEnum={})).ASC="ASC",aa.DESC="DESC";var xa,Ca=function(t){function n(e,n,i,o,r){var a=t.call(this,n,o,r)||this;return a.service=e,a.messageService=n,a.confirmationService=i,a.router=o,a.activatedRoute=r,a}return be(n,t),n.prototype.ngOnInit=function(){t.prototype.ngOnInit.call(this),this.service.returnPath=this.getPath(),this.page=this.newPage(),this.filter=this.newFilterDTO(),this.getFilterDTOSessionStorage(),this.columns=this.createTableColumns()},n.prototype.new=function(){var e=this;this.router.navigateByUrl(this.getPath(),{skipLocationChange:!0}).then((function(){return e.router.navigate([e.getPath(),"new"])}))},n.prototype.edit=function(e){var t=this;this.router.navigateByUrl(this.getPath(),{skipLocationChange:!0}).then((function(){return t.router.navigate([t.getPath(),"edit",e.id])}))},n.prototype.view=function(e){var t=this;this.router.navigateByUrl(this.getPath(),{skipLocationChange:!0}).then((function(){return t.router.navigate([t.getPath(),"view",e.id])}))},n.prototype.delete=function(t,n){var i=this;this.confirmationService.confirm({title:"Confirmação",message:e.INJECTOR.get(De).DELETE_CONFIRMATION,accept:function(){try{i.loading=!0,i.loadingChange.emit(i.loading),i.page=i.newPage(),i.preDelete(),i.service.delete(t.id).subscribe((function(){n?i.find():(i.new(),i.loading=!1,i.loadingChange.emit(i.loading)),i.addSuccessMessage(e.INJECTOR.get(De).SUCCESS)}),(function(e){i.isFinding()&&i.clear(),i.handleError(e)}))}catch(e){i.handleError(e)}}})},n.prototype.deleteAll=function(t,n){var i=this;this.confirmationService.confirm({title:"Confirmação",message:e.INJECTOR.get(De).DELETE_ALL_CONFIRMATION,accept:function(){try{i.loading=!0,i.loadingChange.emit(i.loading),i.page=i.newPage(),i.preDelete(),i.service.deleteAll(t).subscribe((function(){n?i.find():(i.new(),i.loading=!1,i.loadingChange.emit(i.loading)),i.addSuccessMessage(e.INJECTOR.get(De).SUCCESS)}),(function(e){i.isFinding()&&i.clear(),i.handleError(e)}))}catch(e){i.handleError(e)}}})},n.prototype.updateStatus=function(t,n){var i=this;this.confirmationService.confirm({title:"Confirmação",message:"Deseja realmente "+(n?"ativar":"inativar")+" este registro?",accept:function(){try{i.loading=!0,i.loadingChange.emit(i.loading),i.service.save(t).subscribe((function(){i.clear(),i.addSuccessMessage(e.INJECTOR.get(De).SUCCESS)}),(function(e){i.clear(),i.handleError(e)}))}catch(e){i.handleError(e)}},cancel:function(){return i.clear()}})},n.prototype.preDelete=function(){},n.prototype.clear=function(){this.page=this.newPage(),this.filter=this.newFilterDTO(),this.find()},n.prototype.getPath=function(){return this.activatedRoute.snapshot.parent.parent.url[0].path+"/"+this.activatedRoute.snapshot.parent.url[0].path},n.prototype.newPage=function(){return new _a},n.prototype.newFilterDTO=function(){return null},n.prototype.getFilterDTOSessionStorage=function(){return Promise.resolve()},n.prototype.createTableColumns=function(){return[]},n.prototype.createSorts=function(){return[]},n.prototype.find=function(t){var n=this;this.loading=!0,this.loadingChange.emit(this.loading),this.page=this.newPage(),ze.isNull(this.filter)&&(this.filter=this.newFilterDTO()),ze.isNull(t)&&!ze.isNull(this.tablePageEventDTO)&&(t=this.tablePageEventDTO,ze.hasPropertyInObj(t,"pageIndex")&&(t.pageIndex=0)),t?(this.tablePageEventDTO=t,this.filter.pageNumber=t.pageIndex,this.filter.pageSize=t.pageSize,this.filter.offset=t.pageIndex*t.pageSize,t.sort&&(this.filter.sorts=[new wa(t.sort.active,Be.isEmpty(t.sort.direction)?e.SortDirectionEnum.DESC:t.sort.direction.toUpperCase())])):(this.filter.pageNumber=0,this.filter.offset=0,this.filter.pageSize=10),this.service.find(this.filter).subscribe((function(e){n.page=e,n.loading=!1,n.loadingChange.emit(n.loading)}),(function(e){return n.handleError(e)}))},n.prototype.isFinding=function(){return 0===this.router.url.split("/").filter((function(e){return"new"===e||"edit"===e})).length},n.prototype.isViewing=function(){return this.router.url.split("/").filter((function(e){return"view"===e})).length>0},n.prototype.isCreating=function(){return this.router.url.split("/").filter((function(e){return"new"===e})).length>0},n}(Ge),Ia=function(n){function i(e,i,o,r,a){var s=n.call(this,e,i,o,r,a)||this;return s.service=e,s.messageService=i,s.confirmationService=o,s.router=r,s.activatedRoute=a,s.entityChange=new t.EventEmitter(!0),s}return be(i,n),Object.defineProperty(i.prototype,"entity",{get:function(){return this.entityValue},set:function(e){this.entityValue=e,this.entityChange.emit(this.entityValue)},enumerable:!1,configurable:!0}),i.prototype.ngOnInit=function(){n.prototype.ngOnInit.call(this),this.entity=this.newEntity(),this.initializeForm()},i.prototype.save=function(t,n){var i=this;try{this.loading=!0,this.loadingChange.emit(this.loading),n&&(this.page=this.newPage()),this.preSave(),this.service.save(this.entity).subscribe((function(o){i.addSuccessMessage(e.INJECTOR.get(De).SUCCESS),t?i.edit(o):n?i.find():i.router.navigateByUrl(i.getPath(),{skipLocationChange:!0}).then((function(){return i.router.navigate([i.getPath()])}))}),(function(e){return i.handleError(e)}))}catch(e){this.handleError(e)}},i.prototype.preSave=function(){},i.prototype.return=function(){var t=this;this.isViewing()?this.router.navigateByUrl(this.service.returnPath,{skipLocationChange:!0}).then((function(){return t.router.navigate([t.service.returnPath])})):this.confirmationService.confirm({title:"Confirmação",message:e.INJECTOR.get(De).RETURN_CONFIRMATION,accept:function(){return t.router.navigateByUrl(t.service.returnPath,{skipLocationChange:!0}).then((function(){return t.router.navigate([t.service.returnPath])}))}})},i.prototype.initializeForm=function(){var e=this;this.loading=!0,this.loadingChange.emit(this.loading);var t=this.activatedRoute.snapshot.params.id;t?this.service.getOne(t).subscribe((function(t){e.entity=t,e.afterInitializeForm(),e.loading=!1,e.loadingChange.emit(e.loading)}),(function(t){return e.handleError(t)})):(this.entity=this.newEntity(),this.loading=!1,this.loadingChange.emit(this.loading))},i.prototype.afterInitializeForm=function(){},we([t.Output(),Ce("design:type",t.EventEmitter)],i.prototype,"entityChange",void 0),we([t.Input(),Ce("design:type",Object),Ce("design:paramtypes",[Object])],i.prototype,"entity",null),i}(Ca),Sa=he,ka=function(e){function n(t,n,i){var o=e.call(this)||this;return o.router=t,o.http=n,o._matDialog=i,o._tokenSubject$=new ie.BehaviorSubject(JSON.parse(localStorage.getItem("token"))),o.token$=o._tokenSubject$.asObservable(),o}return be(n,e),n.prototype.login=function(e,t){var n=this,i=(new ne.HttpParams).set("grant_type","password").set("username",e).set("password",t);return this.http.post("api/authenticator/oauth/token",i,this.options(this.buildParams(),this.buildHeaders().append("skip",String(!0)))).pipe(oe.map((function(e){return n.isValidToken(e)&&n.setSession(e),e})),oe.takeUntil(this.onDestroy),oe.catchError(this.handleError))},n.prototype.logout=function(){var e=this;this.revokeToken().subscribe((function(t){e.removeSession(),e._matDialog.closeAll(),e.router.navigate(["/oauth/login"],{queryParams:{returnUrl:e.router.routerState.snapshot.url}})}),(function(e){throw new Error(e)}))},n.prototype.refreshToken=function(e){var t=this,n=(new ne.HttpParams).set("grant_type","refresh_token").set("refresh_token",this.token.refreshToken);return ze.isNull(e)||e.forEach((function(e,t){return n=n.append(t,e)})),this.http.post("api/authenticator/oauth/token",n,this.options(this.buildParams(),this.buildHeaders().append("skip","true"))).pipe(oe.map((function(e){return t.setSession(e)})),oe.takeUntil(this.onDestroy),oe.catchError(this.handleError))},n.prototype.revokeToken=function(e){var t=null;return ze.isNull(e)||(t=(new ne.HttpHeaders).append("Authorization",e.accessToken).append("skip","true")),this.http.post("api/authenticator/oauth/token/revoke",{},this.options(null,t)).pipe(oe.takeUntil(this.onDestroy),oe.catchError(this.handleError))},n.prototype.setSession=function(e){return this.isValidToken(e)&&(localStorage.setItem("token",JSON.stringify(e)),this._tokenSubject$.next(e)),e},n.prototype.removeSession=function(){localStorage.removeItem("token"),sessionStorage.clear()},n.prototype.isValidToken=function(e){if(!ze.isNull(e)&&!ze.isNull(e.expiration)){var t=Sa(e.expiration);return Sa().isBefore(t)}return!1},Object.defineProperty(n.prototype,"token",{get:function(){var e=localStorage.getItem("token");return Be.isEmpty(e)?null:JSON.parse(e)},enumerable:!1,configurable:!0}),n.prototype.buildHeaders=function(){return(new ne.HttpHeaders).append("Authorization","Basic "+btoa("CONVENANT_MANAGEMENT:123")).append("Content-Type","application/x-www-form-urlencoded").append("accessType","WEB").append("timeZone",Sa(new Date).format("ZZ"))},n.ctorParameters=function(){return[{type:s.Router},{type:ne.HttpClient},{type:a.MatDialog}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(s.Router),t.ɵɵinject(ne.HttpClient),t.ɵɵinject(P.MatDialog))},token:n,providedIn:"root"}),n=we([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[s.Router,ne.HttpClient,a.MatDialog])],n)}(Ke),Oa=function(){function e(e){this._authenticationService=e}return e.prototype.intercept=function(e,t){var n=this._authenticationService.token;return ze.isNull(n)||Be.isEmpty(n.accessToken)||e.headers.get("skip")||(e=e.clone({setHeaders:{Authorization:"Bearer "+n.accessToken}})),t.handle(e)},e.ctorParameters=function(){return[{type:ka}]},e=we([t.Injectable(),Ce("design:paramtypes",[ka])],e)}(),Ea=function(){function e(e){this._injector=e}return e.prototype.intercept=function(e,t){var n=this;return t.handle(e).pipe(oe.catchError((function(e){return Ie(n,void 0,void 0,(function(){var t;return Se(this,(function(n){switch(n.label){case 0:return this._router=this._injector.get(s.Router),t=null,e instanceof ne.HttpErrorResponse&&e.error instanceof Blob&&"application/json"===e.error.type?[4,this.blobToJson(e).then((function(e){!ze.isNull(e)&&e instanceof ne.HttpErrorResponse&&(t=e)}))]:[3,2];case 1:return n.sent(),[3,3];case 2:e instanceof ne.HttpErrorResponse&&(t=e),n.label=3;case 3:return[4,this.validateErrors(t)];case 4:return[4,n.sent().toPromise().then((function(e){return e}))];case 5:return[2,n.sent()]}}))}))})))},e.prototype.validateErrors=function(e){return Ie(this,void 0,void 0,(function(){var n=this;return Se(this,(function(i){return[2,new Promise((function(i,o){var r=e.error.message||e.statusText,a=e.error.apierror;if(ze.isNull(a))if(navigator.onLine){if(504===e.status)return void n._injector.get(t.NgZone).run((function(){return n._router.navigate(["/errors/504"])}))}else r="Sem internet";else if("INTERNAL_SERVER_ERROR"===a.status&&a.debugMessage&&a.debugMessage.toUpperCase().includes("QUERY DID NOT RETURN A UNIQUE RESULT"))r="A consulta não retornou resultado único";else if("INTERNAL_SERVER_ERROR"===a.status&&a.message&&a.message.toUpperCase().includes("NENHUM REGISTRO FOI ENCONTRADO"))r="Nenhum registro foi encontrado";else if("INTERNAL_SERVER_ERROR"===a.status&&a.message&&a.message.toUpperCase().includes("OCORREU UM PROBLEMA INESPERADO"))r="Ocorreu um problema inesperado";else{if("FORBIDDEN"===a.status)return void n._injector.get(t.NgZone).run((function(){return n._router.navigate(["/errors/403"])}));"UNAUTHORIZED"===a.status?(r="Sua sessão expirou",n._injector.get(ka).logout()):r=Ot.isEmpty(a.subErrorList)?a.message:a.subErrorList[0].rejectedMessage}return i(ie.throwError(r))}))]}))}))},e.prototype.blobToJson=function(e){return Ie(this,void 0,void 0,(function(){return Se(this,(function(t){return[2,new Promise((function(t,n){try{var i=null,o=new FileReader;o.onload=function(n){var o=JSON.parse(n.target.result);i=new ne.HttpErrorResponse({error:o,headers:e.headers,status:e.status,statusText:e.statusText,url:e.url}),t(i)},o.readAsText(e.error)}catch(e){n(null),ie.throwError(e)}}))]}))}))},e.ctorParameters=function(){return[{type:t.Injector}]},e=we([t.Injectable(),Ce("design:paramtypes",[t.Injector])],e)}(),Da=function(e){function n(t,n){var i=e.call(this)||this;return i._breakpointObserver=t,i.dialog=n,i}return be(n,e),n.prototype.open=function(e){var t={panelClass:e.panelClass,disableClose:e.disableClose,width:e.width,height:e.height,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,position:e.position,data:e.data,autoFocus:e.autoFocus||!1,restoreFocus:e.restoreFocus||!1,closeOnNavigation:e.closeOnNavigation||!0};return this.dialog.open(e.componentOrTemplateRef,t)},n.prototype._calcHeightByBody=function(){return(document&&document.body?document.body.getBoundingClientRect():null).height-80+"px"},n.prototype._coerceNumber=function(e){if(Be.isEmpty(e))return null;var t=e.match(/\d+/);return t?parseInt(t[0],10):null},n.ctorParameters=function(){return[{type:pe.BreakpointObserver},{type:a.MatDialog}]},n.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new n(t.ɵɵinject(pe.BreakpointObserver),t.ɵɵinject(P.MatDialog))},token:n,providedIn:"root"}),n=we([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[pe.BreakpointObserver,a.MatDialog])],n)}(Ke),Pa=function(){function e(e,t){this._matIconRegistry=e,this._domSanitizer=t}return e.prototype.registerListSvgIcons=function(e,t){var n,i,o=Object.values(e);try{for(var r=ke(o),a=r.next();!a.done;a=r.next()){var s=a.value;this.registerSvgIcon(s,t)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}},e.prototype.registerSvgIcon=function(e,t){try{var n=this._domSanitizer.bypassSecurityTrustResourceUrl(t+"/"+e+".svg");this._matIconRegistry.addSvgIcon(e,n)}catch(e){throw new Error(e)}},e.prototype.registerSvgIconLiteral=function(e,t){try{this._matIconRegistry.addSvgIconLiteral(e,t)}catch(e){throw new Error(e)}},e.ctorParameters=function(){return[{type:a.MatIconRegistry},{type:fe.DomSanitizer}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(F.MatIconRegistry),t.ɵɵinject(fe.DomSanitizer))},token:e,providedIn:"root"}),e=we([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[a.MatIconRegistry,fe.DomSanitizer])],e)}(),Aa=function(){function e(){}return e.format=function(e,t,n){if(void 0===n&&(n=!1),!ze.isNull(e)){var i=null;i=e instanceof Date?{hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds()}:e;var o=this.TIME_FORMAT;return"FULL"===t.trim().toUpperCase()?o="HH:mm:ss"+(n?" AA":""):"SHORT"===t.trim().toUpperCase()?o="HH:mm"+(n?" AA":""):Be.isEmpty(t.trim())||(o=t.trim()),this._formatDate(i,o)}return Be.EMPTY},e._formatDate=function(e,t){var n=e.hour,i=n>12?n-12:0===n?12:n;t=(t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+this._padToAnyDigits(n))).replace(/(^|[^\\])H/g,"$1"+n)).replace(/(^|[^\\])hh+/g,"$1"+this._padToAnyDigits(i))).replace(/(^|[^\\])h/g,"$1"+i);var o=e.minute;t=(t=t.replace(/(^|[^\\])mm+/g,"$1"+this._padToAnyDigits(o))).replace(/(^|[^\\])m/g,"$1"+o);var r=e.second,a=n<12?"AM":"PM";t=(t=(t=(t=t.replace(/(^|[^\\])ss+/g,"$1"+this._padToAnyDigits(r))).replace(/(^|[^\\])s/g,"$1"+r)).replace(/(^|[^\\])AA+/g,"$1"+a)).replace(/(^|[^\\])A/g,"$1"+a.charAt(0));var s=a.toLowerCase();return t=(t=(t=t.replace(/(^|[^\\])aa+/g,"$1"+s)).replace(/(^|[^\\])a/g,"$1"+s.charAt(0))).replace(/\\(.)/g,"$1")},e._padToAnyDigits=function(e,t){return void 0===t&&(t=2),e.toString().padStart(t,"0")},e.TIME_FORMAT="HH:mm:ss",e}(),Ra=function(){function e(){}var n;return n=e,e.prototype.transform=function(e,i,o){void 0===o&&(o=!1);try{return Aa.format(e,i,o)}catch(e){throw new Error("InvalidPipeArgument: '"+n+"' for pipe '"+t.ɵstringify(e.message)+"'")}},e=n=we([t.Pipe({name:"localtime"})],e)}(),Ma=function(){function e(e,t){this.path=e,this.version=t,this.handleDestroy=new ie.Subject}return e.prototype.ngOnDestroy=function(){this.handleDestroy.next(),this.handleDestroy.complete()},e.prototype.url=function(e,t){var n="";Be.isEmpty(t)?Be.isEmpty(t)&&!Be.isEmpty(this.version)&&(n="/"+this.version.toLowerCase()):n="/"+t.toLowerCase();var i="";return Be.isEmpty(e)||(i="/"+e),"api/"+this.path+n+i},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.handleMapper=function(e){return e},e.prototype.handleError=function(e){return ie.throwError(e)},e}(),Ta=function(e){function t(t,n,i){var o=e.call(this,t,n)||this;return o.path=t,o.version=n,o.baseService=i,o}return be(t,e),t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t.prototype.save=function(e,t){return this.validate(e),this.baseService.httpClient.post(this.url("",t),e,this.options()).pipe(oe.map(this.handleMapper),oe.takeUntil(this.handleDestroy),oe.catchError(this.handleError))},t.prototype.saveAll=function(e,t){for(var n=0;n<e.length;n++)this.validate(e[n]);return this.baseService.httpClient.post(this.url("save-all",t),e,this.options()).pipe(oe.map(this.handleMapper),oe.takeUntil(this.handleDestroy),oe.catchError(this.handleError))},t.prototype.delete=function(e,t){return this.baseService.httpClient.delete(this.url(""+e,t)).pipe(oe.map((function(){return null})),oe.takeUntil(this.handleDestroy),oe.catchError(this.handleError))},t.prototype.deleteAll=function(e,t){for(var n=0;n<e.length;n++)if(!He.isValid(e[n]))return ie.of(!1);return this.baseService.httpClient.post(this.url("delete-all",t),e,this.options()).pipe(oe.map((function(){return!0})),oe.takeUntil(this.handleDestroy),oe.catchError(this.handleError))},t.prototype.getOne=function(e,t){return this.baseService.httpClient.get(this.url(""+e,t),this.options()).pipe(oe.map(this.handleMapper),oe.takeUntil(this.handleDestroy),oe.catchError(this.handleError))},t.prototype.find=function(e){return this.baseService.httpClient.get(this.url("",e),this.options()).pipe(oe.map(this.handleMapper),oe.takeUntil(this.handleDestroy),oe.catchError(this.handleError))},t.prototype.findAll=function(e,t){return this.baseService.httpClient.post(this.url("find-all",t),e,this.options()).pipe(oe.map(this.handleMapper),oe.takeUntil(this.handleDestroy),oe.catchError(this.handleError))},t.prototype.findAllEnabled=function(e,t,n){var i=Math.max(e,0),o=Math.max(t,10),r=new URLSearchParams;r.set("page",i.toString()),r.set("size",o.toString());var a=Be.isEmpty(r.toString())?"":"?"+r.toString();return this.baseService.httpClient.get(this.url("find-all-enabled"+a,n),this.options()).pipe(oe.map(this.handleMapper),oe.takeUntil(this.handleDestroy),oe.catchError(this.handleError))},t.prototype.findByValue=function(e,t,n,i,o){var r=Be.isEmpty(e)?"":e.trim(),a=Math.max(t,0),s=Math.max(n,10),l=new URLSearchParams;l.set("value",r),l.set("page",a.toString()),l.set("size",s.toString()),ze.isNull(i)||Be.isEmpty(i.field)||l.set("sort",i.field+","+i.direction);var p=Be.isEmpty(l.toString())?"":"?"+l.toString();return this.baseService.httpClient.get(this.url("find-by-value"+p,o),this.options()).pipe(oe.map(this.handleMapper),oe.takeUntil(this.handleDestroy),oe.catchError(this.handleError))},t.prototype.enableOrDisable=function(e,t,n){return He.isValid(e)?this.baseService.httpClient.patch(this.url("/enable-or-disable/"+e+"/"+t,n),{},this.options()).pipe(oe.map((function(){return!0})),oe.takeUntil(this.handleDestroy),oe.catchError(this.handleError)):ie.of(!1)},t.prototype.enableOrDisableAll=function(e,t,n){for(var i=0;i<e.length;i++)if(!He.isValid(e[i]))return ie.of(!1);return this.baseService.httpClient.patch(this.url("/enable-or-disable-all/"+t,n),e,this.options()).pipe(oe.map((function(){return!0})),oe.takeUntil(this.handleDestroy),oe.catchError(this.handleError))},t.prototype.validate=function(e){return""},t}(Ma),Fa=function(){function e(){}return 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.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e=we([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[])],e)}(),Va=function(){function e(){this._storage=window.sessionStorage}return e.prototype.set=function(e,t){return!!this._storage&&(this._storage.setItem(e,JSON.stringify(t)),!0)},e.prototype.get=function(e){if(this._storage){var t=JSON.parse(this._storage.getItem(e));return ze.isNull(t)?null:t}return null},e.prototype.remove=function(e){return!!this._storage&&(this._storage.removeItem(e),!0)},e.prototype.clear=function(){return!!this._storage&&(this._storage.clear(),!0)},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e=we([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[])],e)}(),Na=function(){function e(e,t){this._injector=e,this._router=t,this._sessionStorageService=null,this._confirmationService=null,this._messageService=null,this._dialogService=null,this._fileService=null,this._matDialog=null,this._httpClient=null,this._changeDetectorRef=null,this._matSnackBar=null}return e.prototype.ngOnDestroy=function(){},Object.defineProperty(e.prototype,"sessionStorageService",{get:function(){return ze.isNull(this._sessionStorageService)&&(this._sessionStorageService=this._injector.get(Va)),this._sessionStorageService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"confirmationService",{get:function(){return ze.isNull(this._confirmationService)&&(this._confirmationService=this._injector.get(kn)),this._confirmationService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"messageService",{get:function(){return ze.isNull(this._messageService)&&(this._messageService=this._injector.get(Xe)),this._messageService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dialogService",{get:function(){return ze.isNull(this._dialogService)&&(this._dialogService=this._injector.get(Da)),this._dialogService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fileService",{get:function(){return ze.isNull(this._fileService)&&(this._fileService=this._injector.get(Fa)),this._fileService},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"matDialog",{get:function(){return ze.isNull(this._matDialog)&&(this._matDialog=this._injector.get(P.MatDialog)),this._matDialog},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"httpClient",{get:function(){return ze.isNull(this._httpClient)&&(this._httpClient=this._injector.get(ne.HttpClient)),this._httpClient},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"router",{get:function(){return ze.isNull(this._router)&&(this._router=this._injector.get(s.Router)),this._router},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"changeDetectorRef",{get:function(){return ze.isNull(this._changeDetectorRef)&&(this._changeDetectorRef=this._injector.get(t.ChangeDetectorRef)),this._changeDetectorRef},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"matSnackBar",{get:function(){return ze.isNull(this._matSnackBar)&&(this._matSnackBar=this._injector.get(W.MatSnackBar)),this._matSnackBar},enumerable:!1,configurable:!0}),e.ctorParameters=function(){return[{type:t.Injector},{type:s.Router}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(t.INJECTOR),t.ɵɵinject(s.Router))},token:e,providedIn:"root"}),e=we([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[t.Injector,s.Router])],e)}(),ja=function(){function e(e,t){this.baseService=e,this.activatedRoute=t,this._loading=!1,this._basePermissionList=null}return Object.defineProperty(e.prototype,"loading",{get:function(){return this._loading},set:function(e){this._loading=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"basePermissionList",{get:function(){return this._basePermissionList},set:function(e){this._basePermissionList=e},enumerable:!1,configurable:!0}),e.prototype.ngOnInit=function(){this.onInitForm()},e.prototype.ngAfterViewInit=function(){this.onAfterInitForm()},e.prototype.ngOnDestroy=function(){this.onDestroy()},e.prototype.isCreating=function(){return this.baseService.router.url.split("/").filter((function(e){return"new"===e})).length>0},e.prototype.isEditing=function(){return this.baseService.router.url.split("/").filter((function(e){return"edit"===e})).length>0},e.prototype.isViewing=function(){return this.baseService.router.url.split("/").filter((function(e){return"view"===e})).length>0},e.prototype.isListing=function(){return 0===this.baseService.router.url.split("/").filter((function(e){return"new"===e||"edit"===e||"view"===e||"clone"===e})).length},e.prototype.isCloning=function(){return this.baseService.router.url.split("/").filter((function(e){return"clone"===e})).length>0},e.prototype.hasPermission=function(e){return!Be.isEmpty(e)&&!!JSON.parse(localStorage.getItem("token")).user.authorities.find((function(t){return t.authority.match(e)}))},e.prototype.UUIDIsValid=function(e){return He.isValid(e)},e.prototype.onInitForm=function(){},e.prototype.onAfterInitForm=function(){},e.prototype.onDestroy=function(){},e.prototype.getPath=function(){return this.activatedRoute.snapshot.parent.parent.url[0].path+"/"+this.activatedRoute.snapshot.parent.url[0].path},e.prototype.navigateByUrl=function(e,t,n){var i=this;void 0===n&&(n=!0),this.baseService.router.navigateByUrl(e,{skipLocationChange:n}).then((function(){return i.baseService.router.navigate(t)}))},e.prototype.addMessage=function(e){this.baseService.matSnackBar.openFromComponent($e,{verticalPosition:"top",horizontalPosition:"center",duration:5e3,data:e})},e.prototype.addSuccessMessage=function(e){this.baseService.messageService.add({icon:"check_circle",title:"Sucesso",message:e,type:"success"})},e.prototype.addErrorMessage=function(e){this.baseService.messageService.add({icon:"cancel",title:"Erro",message:e,type:"error"})},e.prototype.addWarningMessage=function(e){this.baseService.messageService.add({icon:"error",title:"Atenção",message:e,type:"warning"})},e.prototype.addInfoMessage=function(e){this.baseService.messageService.add({icon:"info",title:"Informação",message:e,type:"info"})},e.prototype.handleError=function(e){throw this.loading=!1,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.getExistInRouterPath=function(e,t){void 0===t&&(t=!1);var n=this.baseService.router.url,i=n.slice(1,n.indexOf("?")+1).split("/"),o=n.slice(n.indexOf("?")+1,n.length).split("=");return t?o.filter((function(t){return t.toUpperCase()===e.toUpperCase()})).length>0:i.filter((function(t){return t.toUpperCase()===e.toUpperCase()})).length>0},e.ctorParameters=function(){return[{type:Na},{type:s.ActivatedRoute}]},e=we([t.Component({template:""}),Ce("design:paramtypes",[Na,s.ActivatedRoute])],e)}(),La=function(n){function i(e,t,i){var o=n.call(this,t,i)||this;return o.abstractCrudService=e,o.baseService=t,o.activatedRoute=i,o._entity=o.newEntity(),o}return be(i,n),Object.defineProperty(i.prototype,"entity",{get:function(){return this._entity},set:function(e){this._entity=e},enumerable:!1,configurable:!0}),i.prototype.ngOnInit=function(){if(n.prototype.ngOnInit.call(this),ze.isNull(this.basePermissionList))throw new Error("basePermissionList is required")},i.prototype.ngAfterViewInit=function(){n.prototype.ngAfterViewInit.call(this)},i.prototype.ngOnDestroy=function(){n.prototype.ngOnDestroy.call(this)},i.prototype.onInitForm=function(e){var t=this;try{this.loading=!0;var n=this.activatedRoute.snapshot.params.id;this.UUIDIsValid(n)?this.abstractCrudService.getOne(n,e).toPromise().then((function(e){t.entity=e,t.onAfterGetOne(),t.loading=!1}),(function(e){throw new Error(e)})):(this.entity=this.newEntity(),this.onAfterGetOne(),this.loading=!1)}catch(e){throw this.loading=!1,new Error(e)}},i.prototype.onAfterGetOne=function(){},i.prototype.preSave=function(e){},i.prototype.save=function(t,n,i){var o=this;void 0===n&&(n=!0);try{this.loading=!0,ze.isNull(t)&&(t=this.entity),this.isValid(t)&&(this.preSave(t),this.abstractCrudService.save(t,i).toPromise().then((function(t){o.addSuccessMessage(e.INJECTOR.get(De).SUCCESS),n&&o.navigateByUrl(o.getPath(),[o.getPath()],!0)}),(function(e){throw new Error(e)})))}catch(e){throw this.loading=!1,new Error(e)}},i.prototype.goBack=function(t){var n=this;void 0===t&&(t=!0),!this.isViewing()||t?this.baseService.confirmationService.confirm({title:"Confirmação",message:e.INJECTOR.get(De).RETURN_CONFIRMATION,accept:function(){return n.navigateByUrl(n.getPath(),[n.getPath()],!0)}}):this.navigateByUrl(this.getPath(),[this.getPath()],!0)},i.ctorParameters=function(){return[{type:Ta},{type:Na},{type:s.ActivatedRoute}]},i=we([t.Component({template:""}),Ce("design:paramtypes",[Ta,Na,s.ActivatedRoute])],i)}(ja),Ba=function(){this.content=[],this.number=0},Ya=function(e,t){this.field=e,this.direction=t},za=function(n){function i(e,t,i){var o=n.call(this,t,i)||this;return o.abstractCrudService=e,o.baseService=t,o.activatedRoute=i,o._filter=null,o._page=null,o._columns=[],o._appliedFilters=[],o}return be(i,n),Object.defineProperty(i.prototype,"filter",{get:function(){return this._filter},set:function(e){this._filter=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"page",{get:function(){return this._page},set:function(e){this._page=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"tablePageEventDTO",{get:function(){return this._tablePageEventDTO},set:function(e){this._tablePageEventDTO=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"columns",{get:function(){return this._columns},set:function(e){this._columns=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"appliedFilters",{get:function(){return this._appliedFilters},set:function(e){this._appliedFilters=e},enumerable:!1,configurable:!0}),i.prototype.ngOnInit=function(){if(n.prototype.ngOnInit.call(this),ze.isNull(this.basePermissionList))throw new Error("basePermissionList is required");this._onInitFilter(),this.columns=this.createTableColumns()},i.prototype.ngAfterViewInit=function(){n.prototype.ngAfterViewInit.call(this)},i.prototype.ngOnDestroy=function(){n.prototype.ngOnDestroy.call(this)},i.prototype.newPage=function(){return new Ba},i.prototype.createTableSorts=function(){return[]},i.prototype.preDelete=function(e){},i.prototype.existInAppliedFilters=function(e){return!Ot.isEmpty(this.appliedFilters)&&this.appliedFilters.findIndex((function(t){return t.key===e}))>=0},i.prototype._onInitFilter=function(){this.page=this.newPage(),this.filter=this.newFilter(),ze.isNull(this.filter)||this.setAppliedFilters();var e=this.baseService.sessionStorageService.get("filter");ze.isNull(e)||this.handleFilterSessionStorage()},i.prototype.findAll=function(e){var t=this;try{this.loading=!0,this.page=this.newPage(),ze.isNull(this.filter)&&(this.filter=this.newFilter()),ze.isNull(e)&&!ze.isNull(this.tablePageEventDTO)&&(e=this.tablePageEventDTO,ze.hasPropertyInObj(e,"pageIndex")&&(e.pageIndex=0)),e?(this.tablePageEventDTO=e,this.filter.pageNumber=e.pageIndex,this.filter.pageSize=e.pageSize,this.filter.offset=e.pageIndex*e.pageSize,e.sort&&(this.filter.sorts=[new Ya(e.sort.active,Be.isEmpty(e.sort.direction)?"DESC":e.sort.direction.toUpperCase())])):(this.filter.pageNumber=0,this.filter.offset=0,this.filter.pageSize=10),this.abstractCrudService.findAll(this.filter).toPromise().then((function(e){t.page=e,t.setAppliedFilters(),t.loading=!1}),(function(e){throw t.loading=!1,new Error(e)}))}catch(e){throw this.loading=!1,new Error(e)}},i.prototype.newRegister=function(t){if(Be.isEmpty(t)&&ze.isNull(this.basePermissionList))this.setFilterSessionStorage(),this.navigateByUrl(this.getPath(),[this.getPath(),"new"],!0);else{if(Be.isEmpty(t)&&!ze.isNull(this.basePermissionList)&&(t=this.basePermissionList.MAKE),!this.hasPermission(t))return void this.addWarningMessage(e.INJECTOR.get(De).NOT_PERMISSION);this.setFilterSessionStorage(),this.navigateByUrl(this.getPath(),[this.getPath(),"new"],!0)}},i.prototype.editRegister=function(t,n){if(t=this.handleEntityId(t),!ze.isNull(t))if(Be.isEmpty(n)&&ze.isNull(this.basePermissionList))this.setFilterSessionStorage(),this.navigateByUrl(this.getPath(),[this.getPath(),"edit"],!0);else{if(Be.isEmpty(n)&&!ze.isNull(this.basePermissionList)&&(n=this.basePermissionList.UPDATE),!this.hasPermission(n))return void this.addWarningMessage(e.INJECTOR.get(De).NOT_PERMISSION);this.setFilterSessionStorage(),this.navigateByUrl(this.getPath(),[this.getPath(),"edit",t],!0)}},i.prototype.deleteRegister=function(t,n,i,o){void 0===i&&(i=!0);try{if(t=this.handleEntityId(t),ze.isNull(t))return;if(Be.isEmpty(n)&&ze.isNull(this.basePermissionList))this._deleteRegister(t,i,o);else{if(Be.isEmpty(n)&&!ze.isNull(this.basePermissionList)&&(n=this.basePermissionList.DELETE),!this.hasPermission(n))return void this.addWarningMessage(e.INJECTOR.get(De).NOT_PERMISSION);this._deleteRegister(t,i,o)}}catch(e){throw this.loading=!1,this.isListing()&&this.clear(),new Error(e)}},i.prototype._deleteRegister=function(t,n,i){var o=this;void 0===n&&(n=!0);try{this.baseService.confirmationService.confirm({title:"Confirmação",message:e.INJECTOR.get(De).DELETE_CONFIRMATION,accept:function(){o.setFilterSessionStorage(),o.loading=!0,o.page=o.newPage(),o.preDelete(t),o.abstractCrudService.delete(t,i).toPromise().then((function(){n&&o.findAll(),o.loading=!1,o.addSuccessMessage(e.INJECTOR.get(De).SUCCESS)}),(function(e){throw new Error(e)}))}})}catch(e){throw this.loading=!1,new Error(e)}},i.prototype.deleteAllRegister=function(t,n,i,o){void 0===i&&(i=!0);try{if(t=this.handleEntityIdList(t),ze.isNull(t)||Ot.isEmpty(t))return;if(Be.isEmpty(n)&&ze.isNull(this.basePermissionList))this._deleteAllRegister(t,i,o);else{if(Be.isEmpty(n)&&!ze.isNull(this.basePermissionList)&&(n=this.basePermissionList.DELETE),!this.hasPermission(n))return void this.addWarningMessage(e.INJECTOR.get(De).NOT_PERMISSION);this._deleteAllRegister(t,i,o)}}catch(e){throw this.loading=!1,this.isListing()&&this.clear(),new Error(e)}},i.prototype._deleteAllRegister=function(t,n,i){var o=this;void 0===n&&(n=!0);try{this.baseService.confirmationService.confirm({title:"Confirmação",message:e.INJECTOR.get(De).DELETE_CONFIRMATION,accept:function(){o.setFilterSessionStorage(),o.loading=!0,o.page=o.newPage(),o.preDelete(),o.abstractCrudService.deleteAll(t,i).toPromise().then((function(){n&&o.findAll(),o.loading=!1,o.addSuccessMessage(e.INJECTOR.get(De).SUCCESS)}),(function(e){throw new Error(e)}))}})}catch(e){throw this.loading=!1,new Error(e)}},i.prototype.viewRegister=function(t,n){if(t=this.handleEntityId(t),!ze.isNull(t))if(Be.isEmpty(n)&&ze.isNull(this.basePermissionList))this.setFilterSessionStorage(),this.navigateByUrl(this.getPath(),[this.getPath(),"view",t],!0);else{if(Be.isEmpty(n)&&!ze.isNull(this.basePermissionList)&&(n=this.basePermissionList.READ),!this.hasPermission(n))return void this.addWarningMessage(e.INJECTOR.get(De).NOT_PERMISSION);this.setFilterSessionStorage(),this.navigateByUrl(this.getPath(),[this.getPath(),"view",t],!0)}},i.prototype.editOrViewRegister=function(e,t){this.hasPermission(t)?this.editRegister(e,t):this.viewRegister(e,t)},i.prototype.enableOrDisableRegister=function(t,n,i,o,r){void 0===o&&(o=!0);try{if(n=this.handleEntityId(n),ze.isNull(n))return;if(Be.isEmpty(i)&&ze.isNull(this.basePermissionList))this._enableOrDisableRegister(t,n,o,r);else{if(Be.isEmpty(i)&&!ze.isNull(this.basePermissionList)&&(i=this.basePermissionList.UPDATE),!this.hasPermission(i))return void this.addWarningMessage(e.INJECTOR.get(De).NOT_PERMISSION);this._enableOrDisableRegister(t,n,o,r)}}catch(e){throw this.loading=!1,this.isListing()&&this.clear(),new Error(e)}},i.prototype._enableOrDisableRegister=function(t,n,i,o){var r=this;void 0===i&&(i=!0);try{this.baseService.confirmationService.confirm({title:"Confirmação",message:"Deseja realmente "+("DISABLE"===t?"inativar":"ativar")+" este registro?",accept:function(){r.setFilterSessionStorage(),r.loading=!0,r.page=r.newPage(),r.abstractCrudService.enableOrDisable(n,t,o).toPromise().then((function(){i&&r.findAll(),r.loading=!1,r.addSuccessMessage(e.INJECTOR.get(De).SUCCESS)}),(function(e){throw new Error(e)}))}})}catch(e){throw this.loading=!1,new Error(e)}},i.prototype.enableAndDisableAllRegister=function(t,n,i,o,r){void 0===o&&(o=!0);try{if(n=this.handleEntityIdList(n),ze.isNull(n)||Ot.isEmpty(n))return;if(Be.isEmpty(i)&&ze.isNull(this.basePermissionList))this._enableAndDisableAllRegister(t,n,o,r);else{if(Be.isEmpty(i)&&!ze.isNull(this.basePermissionList)&&(i=this.basePermissionList.UPDATE),!this.hasPermission(i))return void this.addWarningMessage(e.INJECTOR.get(De).NOT_PERMISSION);this._enableAndDisableAllRegister(t,n,o,r)}}catch(e){throw this.loading=!1,this.isListing()&&this.clear(),new Error(e)}},i.prototype._enableAndDisableAllRegister=function(t,n,i,o){var r=this;void 0===i&&(i=!0);try{this.baseService.confirmationService.confirm({title:"Confirmação",message:"Deseja realmente "+("DISABLE"===t?"inativar":"ativar")+" os registros selecionados?",accept:function(){r.setFilterSessionStorage(),r.loading=!0,r.page=r.newPage(),r.abstractCrudService.enableOrDisableAll(n,t,o).toPromise().then((function(){i&&r.findAll(),r.loading=!1,r.addSuccessMessage(e.INJECTOR.get(De).SUCCESS)}),(function(e){throw new Error(e)}))}})}catch(e){throw this.loading=!1,new Error(e)}},i.prototype.cloneRegister=function(t,n){if(t=this.handleEntityId(t),!ze.isNull(t))if(Be.isEmpty(n)&&ze.isNull(this.basePermissionList))this.setFilterSessionStorage(),this.navigateByUrl(this.getPath(),[this.getPath(),"new","clone"],!0);else{if(Be.isEmpty(n)&&!ze.isNull(this.basePermissionList)&&(n=this.basePermissionList.MAKE),!this.hasPermission(n))return void this.addWarningMessage(e.INJECTOR.get(De).NOT_PERMISSION);this.setFilterSessionStorage(),this.navigateByUrl(this.getPath(),[this.getPath(),"new","clone",t],!0)}},i.prototype.clear=function(){this.baseService.sessionStorageService.remove("filter"),this.page=this.newPage(),this.filter=this.newFilter(),this.clearAppliedFilters(),this.findAll()},i.prototype.handleEntityId=function(e){if(!this.UUIDIsValid(e))throw new Error("O identificador do registro não é válido");if(ze.isNull(e)&&!ze.isNull(this.page)&&!Ot.isEmpty(this.page.content)){var t=this.page.content.filter((function(e){return e.selected}))[0];return ze.isNull(t)?null:t.id}return e},i.prototype.handleEntityIdList=function(e){if(!Ot.isEmpty(e))for(var t=0;t<e.length;t++)if(!this.UUIDIsValid(e[t]))throw new Error("O identificador do registro não é válido");if(Ot.isEmpty(e)&&!ze.isNull(this.page)&&!Ot.isEmpty(this.page.content)){var n=this.page.content.filter((function(e){return e.selected})).map((function(e){return e.id}));return Ot.isEmpty(n)?null:n}return e},i.ctorParameters=function(){return[{type:Ta},{type:Na},{type:s.ActivatedRoute}]},i=we([t.Component({template:""}),Ce("design:paramtypes",[Ta,Na,s.ActivatedRoute])],i)}(ja),Ha=[La,za,ja],Ga={align:"",allowNegative:!0,allowZero:!0,decimal:",",precision:2,prefix:"R$ ",suffix:"",thousands:".",nullable:!0,max:999999999.99},Ua=function(){function e(){}var n;return n=e,e.setMessages=function(e){return{ngModule:n,providers:[{provide:De,useValue:ze.isNull(e)?Pe:e}]}},e=n=we([t.NgModule({declarations:[$e,Ra,Ha],entryComponents:[$e],imports:[me.BrowserAnimationsModule,ue.OverlayModule,ne.HttpClientModule,s.RouterModule,o.FlexLayoutModule.withConfig({disableDefaultBps:!0},Ut),F.MatIconModule,J.MatToolbarModule,G.MatSidenavModule,N.MatListModule,I.MatButtonModule,j.MatMenuModule,u.NgxMaskModule.forRoot(),d.NgxCurrencyModule.forRoot(Ga),ba],exports:[Ra,Ha],providers:[xi,Pa,Xe,kn,Da,qt,{provide:ne.HTTP_INTERCEPTORS,useClass:Oa,multi:!0},{provide:ne.HTTP_INTERCEPTORS,useClass:Ea,multi:!0}]})],e)}();(xa=e.LocalTimeEnum||(e.LocalTimeEnum={})).FULL="FULL",xa.SHORT="SHORT";var qa,Wa,$a,Ka,Xa=function(){function e(e,t,n){this._router=e,this._matDialog=t,this._authenticationService=n}return e.prototype.canActivate=function(e,t){var n=this._authenticationService.token;return this._authenticationService.isValidToken(n)?ie.of(!0):(this._authenticationService.removeSession(),this._matDialog.closeAll(),this._router.navigate(["oauth/login"]),ie.of(!1))},e.prototype.canActivateChild=function(e,t){return this.canActivate(e,t)},e.ctorParameters=function(){return[{type:s.Router},{type:P.MatDialog},{type:ka}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(s.Router),t.ɵɵinject(P.MatDialog),t.ɵɵinject(ka))},token:e,providedIn:"root"}),e=we([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[s.Router,P.MatDialog,ka])],e)}(),Za=function(){function e(e,t,n){this._router=e,this._matDialog=t,this._authenticationService=n}return e.prototype._hasAuthority=function(e,t){return!ze.isNull(e)&&!Be.isEmpty(t)&&!!e.authorities.find((function(e){return e.authority.match(t)}))},e.prototype._hasPermission=function(e,t){var n,i;try{for(var o=ke(e),r=o.next();!r.done;r=o.next()){var a=r.value;if(t.split("/").pop()===a.route)return!0;if(!Ot.isEmpty(a.menuList))return this._hasPermission(a.menuList,t)}}catch(e){n={error:e}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return!1},e.prototype.canActivate=function(e,t){var n=this._authenticationService.token;return this._authenticationService.isValidToken(n)?this._hasPermission(n.user.menuList,t.url)&&this._hasAuthority(n.user,e.data.authority)?ie.of(!0):(this._router.navigate(["errors/403"]),ie.of(!1)):(this._authenticationService.removeSession(),this._matDialog.closeAll(),this._router.navigate(["oauth/login"]),ie.of(!1))},e.prototype.canActivateChild=function(e,t){return this.canActivate(e,t)},e.ctorParameters=function(){return[{type:s.Router},{type:P.MatDialog},{type:ka}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(s.Router),t.ɵɵinject(P.MatDialog),t.ɵɵinject(ka))},token:e,providedIn:"root"}),e=we([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[s.Router,P.MatDialog,ka])],e)}(),Ja=function(){},Qa=function(e){function t(){var t=e.call(this)||this;return t.menuList=[],t}return be(t,e),t}(Ja),es=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return be(t,e),t}(qe),ts=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return be(t,e),t}(qe),ns=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return be(t,e),t}(qe),is=function(e,t){void 0===e&&(e="ALL"),void 0===t&&(t=[]),this.radiobuttonSelected=e,this.entitiesSelected=t},os=function(e){function t(){var t=e.call(this)||this;return t.menuList=[],t.id="",t.expanded=!1,t}return be(t,e),t}(qe),rs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.active=!1,t.closeable=!1,t.disabled=!1,t}return be(t,e),t}(qe),as=function(e){function t(t,n,i,o,r,a,s,l,p,d,c,u,h,g){var m=e.call(this)||this;return m.sortable=!1,m.hiddenSm=!1,m.visible=!0,m.name=t,m.property=n,m.value=i,m.sortable=o,m.hiddenSm=r,m.visible=a,m.width=s,m.marginLeft=l,m.marginRight=p,m.align=d,m.template=c,m.templateHeader=u,m.sliceLength=h,m.action=g,m}return be(t,e),t}(qe),ss=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return be(t,e),t}(qe);(qa=e.CriteriaOperationEnum||(e.CriteriaOperationEnum={})).EQUALITY="EQUALITY",qa.NEGATION="NEGATION",qa.GREATER_THAN="GREATER_THAN",qa.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",qa.LESS_THAN="LESS_THAN",qa.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",qa.LIKE="LIKE",qa.STARTS_WITH="STARTS_WITH",qa.ENDS_WITH="ENDS_WITH",qa.CONTAINS="CONTAINS",qa.IN="IN",(Wa=e.CriteriaSortDirectionEnum||(e.CriteriaSortDirectionEnum={})).ASC="ASC",Wa.DESC="DESC",($a=e.MenuTypeEnum||(e.MenuTypeEnum={})).GROUP="GROUP",$a.COLLAPSABLE="COLLAPSABLE",$a.ITEM="ITEM",(Ka=e.RadioButtonEnum||(e.RadioButtonEnum={})).START_AND_END="Inicial/Final",Ka.BY_SELECTION="Por seleção",Ka.TO_OMIT="Omitir",Ka.ALL="Todos";var ls=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return be(t,e),t}(Ja),ps=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.make=!0,t.update=!0,t.read=!0,t.delete=!0,t}return be(t,e),t}(Ja),ds=function(e){function t(){var t=e.call(this)||this;return t.permissionList=[],t}return be(t,e),t}(Ja),cs=function(e){function t(t,n){var i=e.call(this)||this;return i.path=t,i.http=n,i}return be(t,e),t.prototype.ngOnDestroy=function(){e.prototype.ngOnDestroy.call(this)},t.prototype.url=function(e){var t="api/"+this.path;return e?t.concat("/"+e):t},t.prototype.getOne=function(e){return this.http.get(this.url(""+e),this.options()).pipe(oe.takeUntil(this.onDestroy),oe.map(this.mapper),oe.catchError(this.handleError))},t.prototype.find=function(e){return this.http.post(this.url("find-all"),e,this.options()).pipe(oe.takeUntil(this.onDestroy),oe.map(this.mapper),oe.catchError(this.handleError))},t.prototype.findAll=function(){return this.http.get(this.url(),this.options()).pipe(oe.takeUntil(this.onDestroy),oe.map(this.mapper),oe.catchError(this.handleError))},t.prototype.findAllEnabled=function(e,t){return(!e||e&&e<0)&&(e=0),(!t||t&&t<=0)&&(t=10),this.http.get(this.url("find-all-enabled?page="+e+"&size="+t),this.options()).pipe(oe.takeUntil(this.onDestroy),oe.map(this.mapper),oe.catchError(this.handleError))},t.prototype.findByValue=function(e,t,n,i){void 0===n&&(n=10);var o=e;o=e?Be.removeAccents(e).trim():"",(!t||t&&t<0)&&(t=0),(!n||n&&n<=0)&&(n=10);var r="";return ze.isNull(i)||Be.isEmpty(i.property)||(r="&sort="+i.property+","+i.direction),this.http.get(this.url("find-by-value?page="+t+"&size="+n+r+"&value="+o),this.options()).pipe(oe.takeUntil(this.onDestroy),oe.map(this.mapper),oe.catchError(this.handleError))},t}(Ke),us=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.path=t,i}return be(t,e),t.prototype.save=function(e){return this.validate(e),this.http.post(this.url(),e,this.options()).pipe(oe.map(this.mapper),oe.catchError(this.handleError))},t.prototype.saveAll=function(e){var t=this;return e.forEach((function(e){return t.validate(e)})),this.http.post(this.url("save-all"),e,this.options()).pipe(oe.map(this.mapper),oe.catchError(this.handleError))},t.prototype.delete=function(e){return this.http.delete(this.url(""+e)).pipe(oe.map((function(){return null})),oe.catchError(this.handleError))},t.prototype.deleteAll=function(e){return this.http.post(this.url("delete-all"),e,this.options()).pipe(oe.map(this.mapper),oe.catchError(this.handleError))},t.prototype.validate=function(e){},t}(cs);String.prototype.numberFullName=function(e){for(var t,n,i,o,r=[["zero","um","dois","três","quatro","cinco","seis","sete","oito","nove","dez","onze","doze","treze","quatorze","quinze","dezesseis","dezessete","dezoito","dezenove"],["dez","vinte","trinta","quarenta","cinquenta","sessenta","setenta","oitenta","noventa"],["cem","cento","duzentos","trezentos","quatrocentos","quinhentos","seiscentos","setecentos","oitocentos","novecentos"],["mil","milhão","bilhão","trilhão","quadrilhão","quintilhão","sextilhão","setilhão","octilhão","nonilhão","decilhão","undecilhão","dodecilhão","tredecilhão","quatrodecilhão","quindecilhão","sedecilhão","septendecilhão","octencilhão","nonencilhão"]],a=this.replace(e?/[^,\d]/g:/\D/g,"").split(","),s=" e ",l="real",p="centavo",d=a.length-1,c=-1,u=[],h=[],g="";++c<=d;h=[])if(c&&(a[c]=(1*Number("."+a[c])).toFixed(2).slice(2)),(t=(n=a[c]).slice((o=n.length)%3).match(/\d{3}/g),n=o%3?[n.slice(0,o%3)]:[],n=t?n.concat(t):n).length){for(t=-1,o=n.length;++t<o;g="")(i=1*n[t])&&(i%100<20&&(g+=r[0][i%100])||i%100+1&&(g+=r[1][(i%100/10>>0)-1]+(i%10?s+r[0][i%10]:"")),h.push((i<100?g:i%100?r[2][i/100>>0]+s+g:r[2][100==i?0:i/100>>0])+(Number(g=String(o-t-2))>-1?" "+(i>1&&Number(g)>0?r[3][g].replace("ão","ões"):r[3][g]):"")));(t=h.length>1?(t=h.pop(),h.join(" ")+s+t):h.join("")||(!c&&1*Number(a[c+1])>0||u.length?"":r[0][0]))&&u.push(t+(e?" "+(1*n.join("")>1?c?p+"s":(/0{6,}$/.test(a[0])?"de ":"")+l.replace("l","is"):c?p:l):""))}return u.join(s)};var hs,gs=function(){function e(){}return e.transform=function(e,t,n){return ze.isNull(e)?Be.EMPTY:n?i.formatPercent(e,"pt",t):i.formatCurrency(e,"pt","R$",t)},e.transformNumberFullName=function(e,t){return void 0===t&&(t=!0),this.transform(e,"1.2-2").substring(2).trim().numberFullName(t)},e}(),ms=function(){function e(){}return e.clearFormat=function(e){return Be.isEmpty(e)?"":e.replace(/\D/g,"")},e.isValidCpf=function(e){if(Be.isEmpty(e))return!1;if(11!==(e=Be.removeAccents(e)).length||"00000000000"===e||"11111111111"===e||"22222222222"===e||"33333333333"===e||"44444444444"===e||"55555555555"===e||"66666666666"===e||"77777777777"===e||"88888888888"===e||"99999999999"===e)return!1;for(var t=0,n=0;n<9;n++)t+=+e.charAt(n)*(10-n);var i=11-t%11;if(10!==i&&11!==i||(i=0),i!==+e.charAt(9))return!1;t=0;for(n=0;n<10;n++)t+=+e.charAt(n)*(11-n);return 10!==(i=11-t%11)&&11!==i||(i=0),i===+e.charAt(10)},e.isValidCnpj=function(e){if(Be.isEmpty(e))return!1;if(e=Be.removeAccents(e),Be.isEmpty(e)||14!==e.length||"00000000000000"===e||"11111111111111"===e||"22222222222222"===e||"33333333333333"===e||"44444444444444"===e||"55555555555555"===e||"66666666666666"===e||"77777777777777"===e||"88888888888888"===e||"99999999999999"===e)return!1;for(var t=e.length-2,n=e.substring(0,t),i=e.substring(t),o=0,r=t-7,a=t;a>=1;a--)o+=+n.charAt(t-a)*r--,r<2&&(r=9);var s=o%11<2?0:11-o%11;if(s!==+i.charAt(0))return!1;t+=1,n=e.substring(0,t),o=0,r=t-7;for(a=t;a>=1;a--)o+=+n.charAt(t-a)*r--,r<2&&(r=9);return(s=o%11<2?0:11-o%11)===+i.charAt(1)},e.isValidStateRegistration=function(e,t){if(Be.isEmpty(e)||Be.isEmpty(t))return!1;if("ISENTO"===t.toUpperCase())return!0;if("GO"===e){var n=ye.onlyNumbers(t);return this.calcDigit(n)}return ye.isValidIE(e,t)},e.isValidCep=function(e){return!Be.isEmpty(e)&&ye.isValidCEP(e)},e.calcDigit=function(e){var t=e.length,n=t-1,i=t,o=e.substring(0,n),r=0;o.split("").forEach((function(e){r+=parseInt(e,10)*i,i--}));var a=11-r%11,s=0;return Number(e)>=101031050&&Number(e)<=101199979&&(s=1),10===a?a=s:11===a&&(a=0),a===parseInt(e.charAt(n),10)},e}(),fs=function(){function e(){}return e.isValid=function(e){return/^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(e)&&(e.includes("org")||e.includes(".com")||e.includes(".br")||e.includes(".net")||e.includes(".pt")||e.includes(".io")||e.includes(".ru")||e.includes(".uk")||e.includes(".de")||e.includes(".tk")||e.includes(".info")||e.includes(".nl")||e.includes(".eu")||e.includes(".it")||e.includes(".au")||e.includes(".fr")||e.includes(".site"))},e}(),ys=function(){function e(e){this.sortable$=!1,this.hiddenSm$=!1,this.visible$=!0,this.align$="start center",this.breakpointObserverService$=e}return e.instance=function(t){return new e(t)},e.prototype.name=function(e){return this.name$=e,this},e.prototype.property=function(e){return this.property$=e,this},e.prototype.value=function(e){return this.value$=e,this},e.prototype.sortable=function(e){return this.sortable$=e,this},e.prototype.hiddenSm=function(e){return this.hiddenSm$=e,this},e.prototype.visible=function(e){return this.visible$=e,this},e.prototype.width=function(e){return this.width$=ie.of(e),this},e.prototype.marginLeft=function(e){return this.marginLeft$=ie.of(e),this},e.prototype.marginRight=function(e){return this.marginRight$=ie.of(e),this},e.prototype.align=function(e){return this.align$=e,this},e.prototype.breakpointWidth=function(e){return this.width$=this.breakpointObserverService$.size$.pipe(oe.map((function(t){return e.has(t)?e.get(t):"auto"}))),this},e.prototype.template=function(e){return this.template$=e,this},e.prototype.templateHeader=function(e){return this.templateHeader$=e,this},e.prototype.sliceLength=function(e){return this.sliceLength$=e,this},e.prototype.action=function(e){return this.action$=e,this},e.prototype.build=function(){return new as(this.name$,this.property$,this.value$,this.sortable$,this.hiddenSm$,this.visible$,this.width$,this.marginLeft$,this.marginRight$,this.align$,this.template$,this.templateHeader$,this.sliceLength$,this.action$)},e}(),vs=function(){function e(){}return e.get=function(e){return this._queryParams.get(e)},e.has=function(e){return this._queryParams.has(e)},e._queryParams=new URLSearchParams(window.location.href),e}();function bs(e,t){if(!Reflect.getMetadata)throw new Error("You forgot add \"import 'reflect-metadata';\" to polyfills.ts");return Reflect.getMetadata("design:type",e,t)}(hs=e.GIPISortDirectionEnum||(e.GIPISortDirectionEnum={})).ASC="ASC",hs.DESC="DESC";var _s=function(){},ws=function(){},xs=function(){function e(e,t){this.description=e,this.key=t}return Object.defineProperty(e.prototype,"description",{get:function(){return this._description},set:function(e){this._description=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"key",{get:function(){return this._key},set:function(e){this._key=e},enumerable:!1,configurable:!0}),e}(),Cs=function(){},Is=function(){function e(e,t,n){e&&e>=0&&(this.pageIndex=e),t&&t>=0&&(this.pageSize=t),n&&n>=0&&(this.length=n)}return Object.defineProperty(e.prototype,"pageIndex",{get:function(){return this._pageIndex},set:function(e){this._pageIndex=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageSize",{get:function(){return this._pageSize},set:function(e){this._pageSize=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._length},set:function(e){this._length=e},enumerable:!1,configurable:!0}),e}(),Ss=function(){function e(e,t){this.overlay=e,this.injector=t}return e.prototype.open=function(e){var t=e.origin,n=e.content,i=e.data,o=e.width,r=e.height,a=e.event,s=this.overlay.create(this.getOverlayConfig({origin:t,width:o,height:r,event:a})),l=new ht(s,n,i),p=this.createInjector(l,this.injector);return s.attach(new y.ComponentPortal(gt,null,p)),l},e.prototype.getOverlayConfig=function(e){var t=e.origin,n=e.width,i=e.height,o=e.event;return new ue.OverlayConfig({hasBackdrop:!0,width:n,height:i,backdropClass:"popover-backdrop",positionStrategy:this.getOverlayPosition(t,o),scrollStrategy:this.overlay.scrollStrategies.reposition()})},e.prototype.getOverlayPosition=function(e,t){var n=t.target.offsetTop-document.querySelector(".mat-sidenav-content").scrollTop;return t?this.overlay.position().global().top(n+50+"px").left(t.clientX-30+"px"):this.overlay.position().flexibleConnectedTo(e).withPositions(this.getPositions()).withFlexibleDimensions(!1).withPush(!1)},e.prototype.updatePosition=function(e,t){e.overlay.updatePositionStrategy(this.overlay.position().global().top(t.clientY+"px").left(t.clientX+"px"))},e.prototype.createInjector=function(e,t){var n=new WeakMap([[ht,e]]);return new y.PortalInjector(t,n)},e.prototype.getPositions=function(){return[{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}]},e.ctorParameters=function(){return[{type:ue.Overlay},{type:t.Injector}]},e.ngInjectableDef=t.ɵɵdefineInjectable({factory:function(){return new e(t.ɵɵinject(ue.Overlay),t.ɵɵinject(t.INJECTOR))},token:e,providedIn:"root"}),e=we([t.Injectable({providedIn:"root"}),Ce("design:paramtypes",[ue.Overlay,t.Injector])],e)}(),ks=function(){function e(e,t,n,i,o,r,a,s,l,p,d,c,u,h,g,m,f,y,v,b,_,w){this._sortable=!1,this._visible=!0,this._checkboxable=!1,this._name=e,this._property=t,this._value=n,this._sortable=i,this._visible=o,this._checkboxable=r,this._columnSpan=a,this._columnSpanXs=s,this._columnSpanSm=l,this._columnSpanMd=p,this._columnSpanLg=d,this._columnSpanXl=c,this._minWidth=u,this._maxWidth=h,this._paddingInline=g,this._align=m,this._templateCell=f,this._templateHeader=y,this._sliceLength=v,this._comparator=b,this._pipe=_,this._action=w}return Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(e){this._name=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"property",{get:function(){return this._property},set:function(e){this._property=e},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,"sortable",{get:function(){return this._sortable},set:function(e){this._sortable=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this._visible},set:function(e){this._visible=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"checkboxable",{get:function(){return this._checkboxable},set:function(e){this._checkboxable=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnSpan",{get:function(){return this._columnSpan},set:function(e){this._columnSpan=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnSpanXs",{get:function(){return this._columnSpanXs},set:function(e){this._columnSpanXs=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnSpanSm",{get:function(){return this._columnSpanSm},set:function(e){this._columnSpanSm=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnSpanMd",{get:function(){return this._columnSpanMd},set:function(e){this._columnSpanMd=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnSpanLg",{get:function(){return this._columnSpanLg},set:function(e){this._columnSpanLg=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnSpanXl",{get:function(){return this._columnSpanXl},set:function(e){this._columnSpanXl=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"minWidth",{get:function(){return this._minWidth},set:function(e){this._minWidth=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxWidth",{get:function(){return this._maxWidth},set:function(e){this._maxWidth=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paddingInline",{get:function(){return this._paddingInline},set:function(e){this._paddingInline=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"align",{get:function(){return this._align},set:function(e){this._align=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"templateCell",{get:function(){return this._templateCell},set:function(e){this._templateCell=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"templateHeader",{get:function(){return this._templateHeader},set:function(e){this._templateHeader=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sliceLength",{get:function(){return this._sliceLength},set:function(e){this._sliceLength=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"comparator",{get:function(){return this._comparator},set:function(e){this._comparator=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pipe",{get:function(){return this._pipe},set:function(e){this._pipe=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"action",{get:function(){return this._action},set:function(e){this._action=e},enumerable:!1,configurable:!0}),e}(),Os=function(){function e(){this._sortable$=!1,this._visible$=!0,this._checkboxable$=!1,this._align$="left"}return e.instance=function(){return new e},e.prototype.name=function(e){return this._name$=e,this},e.prototype.property=function(e){return this._property$=e,this},e.prototype.value=function(e){return this._value$=e,this},e.prototype.sortable=function(e){return this._sortable$=e,this},e.prototype.visible=function(e){return this._visible$=e,this},e.prototype.checkboxable=function(e){return this._checkboxable$=e,this},e.prototype.columnSpan=function(e){return this._columnSpan$=e,this},e.prototype.columnSpanXs=function(e){return this._columnSpanXs$=e,this},e.prototype.columnSpanSm=function(e){return this._columnSpanSm$=e,this},e.prototype.columnSpanMd=function(e){return this._columnSpanMd$=e,this},e.prototype.columnSpanLg=function(e){return this._columnSpanLg$=e,this},e.prototype.columnSpanXl=function(e){return this._columnSpanXl$=e,this},e.prototype.minWidth=function(e){return this._minWidth$=e,this},e.prototype.maxWidth=function(e){return this._maxWidth$=e,this},e.prototype.paddingInline=function(e){return this._paddingInline$=e,this},e.prototype.align=function(e){return this._align$=e,this},e.prototype.templateCell=function(e){return this._templateCell$=e,this},e.prototype.templateHeader=function(e){return this._templateHeader$=e,this},e.prototype.sliceLength=function(e){return this._sliceLength$=e,this},e.prototype.comparator=function(e){return this._comparator$=e,this},e.prototype.pipe=function(e){return this._pipe$=e,this},e.prototype.action=function(e){return this._action$=e,this},e.prototype.build=function(){return new ks(this._name$,this._property$,this._value$,this._sortable$,this._visible$,this._checkboxable$,this._columnSpan$,this._columnSpanXs$,this._columnSpanSm$,this._columnSpanMd$,this._columnSpanLg$,this._columnSpanXl$,this._minWidth$,this._maxWidth$,this._paddingInline$,this._align$,this._templateCell$,this._templateHeader$,this._sliceLength$,this._comparator$,this._pipe$,this._action$)},e}();e.APP_MESSAGES=De,e.AbstractComponent=Ge,e.AbstractCrudComponent=Ia,e.AbstractCrudService=us,e.AbstractDTO=qe,e.AbstractFindComponent=Ca,e.AbstractFindService=cs,e.AbstractModel=Ja,e.AbstractService=Ke,e.AlertComponent=$e,e.Archive=Ue,e.ArrayUtil=Ot,e.AuthGuard=Xa,e.AuthInterceptor=Oa,e.AuthenticationService=ka,e.BaseUser=Qa,e.BreakpointObserverService=wi,e.BrowserUtil=dr,e.ButtonComponent=Fe,e.CLOCK_INNER_RADIUS=27.5,e.CLOCK_OUTER_RADIUS=41.25,e.CLOCK_RADIUS=50,e.CLOCK_TICK_RADIUS=7.0833,e.CalendarMonthYearComponent=na,e.CardComponent=Ve,e.ChartDTO=es,e.CheckboxComponent=Ne,e.ConfirmationDTO=_n,e.ConfirmationService=kn,e.CoreModule=Ua,e.CurrencyUtil=gs,e.DEFAULT_MESSAGES=Pe,e.DateAdapter=Qi,e.DateRange=eo,e.DateRangePickerComponent=hr,e.DateUtil=$i,e.DatepickerModule=xr,e.DatetimepickerModule=ea,e.DefaultMatCalendarRangeStrategy=vo,e.DialogDTO=ts,e.DialogService=Da,e.DocumentUtil=ms,e.EmailUtil=fs,e.ErrorInterceptor=Ea,e.FilterDTO=ns,e.GIPIAbstractComponent=ja,e.GIPIAbstractCrudComponent=La,e.GIPIAbstractCrudService=Ta,e.GIPIAbstractDTO=Cs,e.GIPIAbstractFilterModel=_s,e.GIPIAbstractFindComponent=za,e.GIPIAbstractFormComponent=cn,e.GIPIAbstractModel=ws,e.GIPIAbstractService=Ma,e.GIPIActionRowComponent=dn,e.GIPIAppliedFilter=xs,e.GIPIAutowired=function(){return function(e,n){var i=!e.constructor["ɵcmp"],o=bs(e,n),r=function(){var i=e.constructor["ɵcmp"],r=null;r=ze.isNull(i)?e.constructor["ɵfac"]:i.factory,i.factory=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var a=r.apply(void 0,Ee(e));return a[n]=t.ɵɵdirectiveInject(o),a}};i?Promise.resolve().then(r).catch((function(){throw new Error("An error occurred while injecting the class: "+o)})):r()}},e.GIPIBadgeComponent=un,e.GIPIBaseService=Na,e.GIPIBreakpointService=Jt,e.GIPIButtonComponent=mn,e.GIPICardComponent=yn,e.GIPIColDirective=en,e.GIPIConfirmationDialogComponent=wn,e.GIPIConnectedOverlayScrollHandler=Hn,e.GIPIDateAndTimePickerComponent=jr,e.GIPIDatetimeAdapter=Or,e.GIPIDatetimepickerCalendarBodyComponent=kr,e.GIPIDatetimepickerCalendarCell=Sr,e.GIPIDatetimepickerCalendarComponent=Rr,e.GIPIDatetimepickerClockComponent=Lr,e.GIPIDatetimepickerComponent=Fr,e.GIPIDatetimepickerContentComponent=Tr,e.GIPIDatetimepickerInputDirective=Hr,e.GIPIDatetimepickerInputEvent=zr,e.GIPIDatetimepickerMonthViewComponent=Gr,e.GIPIDatetimepickerToggleComponent=Vr,e.GIPIDatetimepickerYearViewComponent=Qr,e.GIPIDomHandler=hn,e.GIPIDropdownMenuComponent=Cn,e.GIPIDynamicTabDirective=an,e.GIPIEmptyStateComponent=In,e.GIPIExpansionPanelComponent=Sn,e.GIPIFileDragAndDropComponent=On,e.GIPIFileService=Fa,e.GIPIFooterComponent=En,e.GIPIFormFieldComponent=Pn,e.GIPIHelpfulTipComponent=Rn,e.GIPIInfiniteScrollDirective=$t,e.GIPIInputCheckboxComponent=Tn,e.GIPIInputCurrencyComponent=Vn,e.GIPIInputMonthPickerComponent=jn,e.GIPIInputPhoneComponent=Bn,e.GIPIInputSearchComponent=Zn,e.GIPIInputSelectComponent=$n,e.GIPIInputSelectEnumComponent=zn,e.GIPIInputSelectListboxComponent=Xn,e.GIPIInputSelectPagedComponent=Qn,e.GIPIInputSelectRadioComponent=ti,e.GIPINativeDatetimeAdapter=$r,e.GIPINativeDatetimeModule=Jr,e.GIPINotificationComponent=ni,e.GIPINoveltiesComponent=ii,e.GIPIOverlayComponent=qn,e.GIPIOverlayService=pt,e.GIPIPageEvent=Is,e.GIPIPageModel=Ba,e.GIPIPaginatePipe=pn,e.GIPIPaginationControlsDirective=rn,e.GIPIPaginationService=on,e.GIPIPasswordRequerimentsComponent=ai,e.GIPIPopoverComponent=li,e.GIPIPopoverTarget=pi,e.GIPIPopoverTrigger=gn,e.GIPIRadioGroupComponent=ci,e.GIPIRangePageComponent=gi,e.GIPIRangeSliderComponent=fi,e.GIPIResizeService=Xt,e.GIPIRowDirective=Qt,e.GIPISelectButtonComponent=yi,e.GIPISelectComponent=vi,e.GIPISessionStorageService=Va,e.GIPISidenavComponent=Ii,e.GIPISidenavContainerComponent=Ci,e.GIPISkeletonComponent=tn,e.GIPISkeletonDirective=nn,e.GIPISlideToggleComponent=ki,e.GIPISortModel=Ya,e.GIPISplitButtonComponent=Ei,e.GIPIStepperComponent=Di,e.GIPITabComponent=Bi,e.GIPITabGroupComponent=zi,e.GIPITableBodyComponent=Pi,e.GIPITableComponent=Ni,e.GIPITableFooterComponent=Ai,e.GIPITableHeaderComponent=Mi,e.GIPITablePaginationComponent=Ti,e.GIPITableProgressBarComponent=Vi,e.GIPITemplateDirective=sn,e.GIPITextareaComponent=Gi,e.GIPIToolbarComponent=Ui,e.GIPITopNavComponent=qi,e.GIPIUserProfileComponent=Ki,e.GIPI_BREAKPOINTS=Ut,e.GIPI_CUSTOM_BREAKPOINTS_PROVIDER=qt,e.GIPI_DATETIMEPICKER_VALIDATORS=Yr,e.GIPI_DATETIMEPICKER_VALUE_ACCESSOR=Br,e.GIPI_DATETIME_FORMATS=Te,e.GIPI_MONTH_YEAR_SCROLL_STRATEGY=oa,e.GIPI_MONTH_YEAR_SCROLL_STRATEGY_FACTORY=ra,e.GIPI_MONTH_YEAR_SCROLL_STRATEGY_FACTORY_PROVIDER=sa,e.GIPI_NATIVE_DATETIME_FORMATS=Kr,e.IconComponent=je,e.InputComponent=et,e.InputCurrencyComponent=Le,e.InputFileComponent=Ze,e.InputListboxDTO=is,e.ItssTemplate=Lt,e.LoadingComponent=nt,e.LoadingOverlayComponent=tt,e.LocalTimePipe=Ra,e.MAT_DATEPICKER_SCROLL_STRATEGY=Lo,e.MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY=Bo,e.MAT_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER=zo,e.MAT_DATEPICKER_VALIDATORS=Ko,e.MAT_DATEPICKER_VALUE_ACCESSOR=$o,e.MAT_DATE_FORMATS=Me,e.MAT_DATE_LOCALE=Xi,e.MAT_DATE_LOCALE_FACTORY=Zi,e.MAT_DATE_LOCALE_PROVIDER=Ji,e.MAT_DATE_RANGE_SELECTION_STRATEGY=yo,e.MAT_NATIVE_DATE_FORMATS={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},e.MAT_RANGE_DATE_SELECTION_MODEL_FACTORY=ao,e.MAT_RANGE_DATE_SELECTION_MODEL_PROVIDER=so,e.MAT_SINGLE_DATE_SELECTION_MODEL_FACTORY=oo,e.MAT_SINGLE_DATE_SELECTION_MODEL_PROVIDER=ro,e.MatCalendar=Oo,e.MatCalendarBody=uo,e.MatCalendarCell=co,e.MatCalendarHeader=Eo,e.MatDateRangeInput=Qo,e.MatDateRangePicker=qo,e.MatDateSelectionModel=to,e.MatDatepicker=Wo,e.MatDatepickerContent=Go,e.MatDatepickerInput=Zo,e.MatDatepickerInputEvent=Do,e.MatDatepickerIntl=po,e.MatDatepickerToggle=tr,e.MatDatepickerToggleIcon=er,e.MatEndDate=Vo,e.MatMonthView=wo,e.MatMultiYearView=xo,e.MatRangeDateSelectionModel=io,e.MatSingleDateSelectionModel=no,e.MatStartDate=Fo,e.MatYearView=ko,e.MaxRangeDirective=mr,e.MaxRangeSelectionStrategy=gr,e.MenuDTO=os,e.MessageDTO=We,e.MessageService=Xe,e.MonthPickerModel=pa,e.MonthYear=la,e.MonthYearPickerComponent=ca,e.MonthYearPickerModule=ua,e.MultitenantModel=ls,e.NativeDateAdapter=pr,e.NativeDatetimeModule=Xr,e.NavService=xi,e.NumberUtil=Je,e.ObjectUtil=ze,e.OverlayPanelComponent=ut,e.POINTS_NAME=bi,e.PageDTO=_a,e.PasswordUtil=oi,e.Permission=ps,e.PermissionGuard=Za,e.PhoneMaskDirective=zt,e.PhoneUtil=Qe,e.Platform=ir,e.PopoverComponent=gt,e.PopoverRef=ht,e.PopoverService=Ss,e.PresetRangeComponent=yr,e.RadioGroupEntityComponent=mt,e.RadioGroupEnumComponent=yt,e.RangePage=hi,e.Role=ds,e.SelectButtonAddComponent=bt,e.SelectButtonNextBatchComponent=_t,e.SelectEntityComponent=Et,e.SelectEntityPagedComponent=vt,e.SelectEnumComponent=Dt,e.SelectMonthPeriodComponent=Pt,e.SelectNoEntriesFoundDirective=wt,e.SelectSearchClearDirective=xt,e.SelectSearchComponent=St,e.SharedModule=ba,e.SlideToggleComponent=At,e.SortDTO=wa,e.SortModel=Ri,e.StepperComponent=Rt,e.StringUtil=Be,e.SvgRegisterService=Pa,e.TabDTO=rs,e.TabModel=ji,e.TableColumnBuilder=ys,e.TableColumnBuilderModel=Os,e.TableColumnDTO=as,e.TableColumnModel=ks,e.TableComponent=Nt,e.TableScrolledComponent=Ft,e.TimeUtil=Aa,e.TokenDTO=ss,e.URLParamsUtil=vs,e.UUIDUtil=He,e.customCurrencyMaskConfig=Ga,e.getReflectType=bs,e.gridResponsiveMap=Zt,e.matDatepickerAnimations=No,e.siderResponsiveMap={xs:"(max-width: 420px)",sm:"(max-width: 600px)",md:"(max-width: 768px)",lg:"(max-width: 1366px)",xl:"(max-width: 1920px)"},e.transformPopover=si,e.yearsPerPage=24,e.yearsPerRow=4,e.ƟCMP="ɵcmp",e.ƟFAC="ɵfac",e.ƟPROV="ɵprov",e.ɵ0=ya,e.ɵ1=va,e.ɵa=Ro,e.ɵb=bo,e.ɵc=_o,e.ɵd=Uo,e.ɵe=Xo,e.ɵf=Po,e.ɵg=lt,e.ɵh=bn,e.ɵi=Wt,e.ɵj=jt,e.ɵk=Gt,e.ɵl=Yt,e.ɵm=Ht,e.ɵn=Bt,e.ɵo=It,e.ɵq=Re,e.ɵr=_r,e.ɵs=Cr,e.ɵt=Er,Object.defineProperty(e,"__esModule",{value:!0})}));
|
67
67
|
//# sourceMappingURL=gipisistemas-ng-core.umd.min.js.map
|