@seniorsistemas/angular-components 15.0.2 → 15.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("primeng/breadcrumb"),require("@angular/router"),require("rxjs"),require("rxjs/operators"),require("primeng/tieredmenu"),require("primeng/tooltip"),require("primeng/dom"),require("primeng/calendar"),require("@angular/animations"),require("@angular/forms"),require("@angular/common/http"),require("angular2-hotkeys"),require("bignumber.js"),require("primeng/autocomplete"),require("primeng/dialog"),require("primeng/table"),require("@seniorsistemas/ng2-currency-mask"),require("@seniorsistemas/senior-platform-data"),require("moment"),require("ngx-cookie-service"),require("ng2-currency-mask"),require("primeng/button"),require("primeng/checkbox"),require("primeng/chips"),require("primeng/dropdown"),require("primeng/fieldset"),require("primeng/inputmask"),require("primeng/inputtext"),require("primeng/inputtextarea"),require("primeng/keyfilter"),require("primeng/multiselect"),require("primeng/inputswitch"),require("primeng/panel"),require("primeng/radiobutton"),require("primeng/progressbar"),require("@angular/platform-browser"),require("@ngx-translate/core"),require("cropperjs"),require("element-resize-detector"),require("@angular/cdk/a11y"),require("primeng/scrollpanel"),require("primeng/sidebar"),require("@codemirror/view"),require("@codemirror/state"),require("@codemirror/lint"),require("@codemirror/language"),require("@lezer/generator"),require("@codemirror/highlight"),require("@codemirror/autocomplete"),require("@codemirror/tooltip"),require("@codemirror/gutter")):"function"==typeof define&&define.amd?define("@seniorsistemas/angular-components",["exports","@angular/core","@angular/common","primeng/breadcrumb","@angular/router","rxjs","rxjs/operators","primeng/tieredmenu","primeng/tooltip","primeng/dom","primeng/calendar","@angular/animations","@angular/forms","@angular/common/http","angular2-hotkeys","bignumber.js","primeng/autocomplete","primeng/dialog","primeng/table","@seniorsistemas/ng2-currency-mask","@seniorsistemas/senior-platform-data","moment","ngx-cookie-service","ng2-currency-mask","primeng/button","primeng/checkbox","primeng/chips","primeng/dropdown","primeng/fieldset","primeng/inputmask","primeng/inputtext","primeng/inputtextarea","primeng/keyfilter","primeng/multiselect","primeng/inputswitch","primeng/panel","primeng/radiobutton","primeng/progressbar","@angular/platform-browser","@ngx-translate/core","cropperjs","element-resize-detector","@angular/cdk/a11y","primeng/scrollpanel","primeng/sidebar","@codemirror/view","@codemirror/state","@codemirror/lint","@codemirror/language","@lezer/generator","@codemirror/highlight","@codemirror/autocomplete","@codemirror/tooltip","@codemirror/gutter"],t):t(((e=e||self).seniorsistemas=e.seniorsistemas||{},e.seniorsistemas["angular-components"]={}),e.ng.core,e.ng.common,e.breadcrumb,e.ng.router,e.rxjs,e.rxjs.operators,e.tieredmenu,e.tooltip,e.dom,e.calendar,e.ng.animations,e.ng.forms,e.ng.common.http,e.angular2Hotkeys,e.BigNumber,e.autocomplete$1,e.dialog,e.table,e.ng2CurrencyMask,e.seniorPlatformData,e.moment_,e.ngxCookieService,e.ng2CurrencyMask$1,e.button,e.checkbox,e.chips,e.dropdown,e.fieldset,e.inputmask,e.inputtext,e.inputtextarea,e.keyfilter,e.multiselect,e.inputswitch,e.panel,e.radiobutton,e.progressbar,e.ng.platformBrowser,e.core$1,e.Cropper,e.elementResizeDetectorMaker_,e.ng.cdk.a11y,e.scrollpanel,e.sidebar,e.view,e.state,e.lint,e.language,e.generator,e.highlight,e.autocomplete$2,e.tooltip$1,e.gutter)}(this,(function(e,t,n,i,o,r,a,s,l,c,p,d,u,m,f,h,g,b,v,y,x,w,C,_,I,k,T,S,E,F,L,M,O,A,D,R,N,z,B,V,U,P,j,H,$,G,q,K,W,Y,X,Z,J,Q){"use strict";var ee="default"in h?h.default:h;U=U&&Object.prototype.hasOwnProperty.call(U,"default")?U.default:U;
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("primeng/breadcrumb"),require("@angular/router"),require("rxjs"),require("rxjs/operators"),require("primeng/tieredmenu"),require("primeng/tooltip"),require("primeng/dom"),require("primeng/calendar"),require("@angular/animations"),require("@angular/forms"),require("@angular/common/http"),require("angular2-hotkeys"),require("bignumber.js"),require("primeng/autocomplete"),require("primeng/dialog"),require("primeng/table"),require("@seniorsistemas/ng2-currency-mask"),require("@seniorsistemas/senior-platform-data"),require("moment"),require("ngx-cookie-service"),require("ng2-currency-mask"),require("primeng/button"),require("primeng/checkbox"),require("primeng/chips"),require("primeng/dropdown"),require("primeng/fieldset"),require("primeng/inputmask"),require("primeng/inputtext"),require("primeng/inputtextarea"),require("primeng/keyfilter"),require("primeng/multiselect"),require("primeng/inputswitch"),require("primeng/panel"),require("primeng/radiobutton"),require("primeng/progressbar"),require("@angular/platform-browser"),require("@ngx-translate/core"),require("cropperjs"),require("element-resize-detector"),require("@angular/cdk/a11y"),require("primeng/scrollpanel"),require("primeng/sidebar"),require("@codemirror/view"),require("@codemirror/state"),require("@codemirror/lint"),require("@codemirror/language"),require("@lezer/generator"),require("@codemirror/highlight"),require("@codemirror/autocomplete"),require("@codemirror/tooltip"),require("@codemirror/gutter")):"function"==typeof define&&define.amd?define("@seniorsistemas/angular-components",["exports","@angular/core","@angular/common","primeng/breadcrumb","@angular/router","rxjs","rxjs/operators","primeng/tieredmenu","primeng/tooltip","primeng/dom","primeng/calendar","@angular/animations","@angular/forms","@angular/common/http","angular2-hotkeys","bignumber.js","primeng/autocomplete","primeng/dialog","primeng/table","@seniorsistemas/ng2-currency-mask","@seniorsistemas/senior-platform-data","moment","ngx-cookie-service","ng2-currency-mask","primeng/button","primeng/checkbox","primeng/chips","primeng/dropdown","primeng/fieldset","primeng/inputmask","primeng/inputtext","primeng/inputtextarea","primeng/keyfilter","primeng/multiselect","primeng/inputswitch","primeng/panel","primeng/radiobutton","primeng/progressbar","@angular/platform-browser","@ngx-translate/core","cropperjs","element-resize-detector","@angular/cdk/a11y","primeng/scrollpanel","primeng/sidebar","@codemirror/view","@codemirror/state","@codemirror/lint","@codemirror/language","@lezer/generator","@codemirror/highlight","@codemirror/autocomplete","@codemirror/tooltip","@codemirror/gutter"],t):t(((e=e||self).seniorsistemas=e.seniorsistemas||{},e.seniorsistemas["angular-components"]={}),e.ng.core,e.ng.common,e.breadcrumb,e.ng.router,e.rxjs,e.rxjs.operators,e.tieredmenu,e.tooltip,e.dom,e.calendar,e.ng.animations,e.ng.forms,e.ng.common.http,e.angular2Hotkeys,e.BigNumber,e.autocomplete$1,e.dialog,e.table,e.ng2CurrencyMask,e.seniorPlatformData,e.moment_,e.ngxCookieService,e.ng2CurrencyMask$1,e.button,e.checkbox,e.chips,e.dropdown,e.fieldset,e.inputmask,e.inputtext,e.inputtextarea,e.keyfilter,e.multiselect,e.inputswitch,e.panel,e.radiobutton,e.progressbar,e.ng.platformBrowser,e.core$1,e.Cropper,e.elementResizeDetectorMaker_,e.ng.cdk.a11y,e.scrollpanel,e.sidebar,e.view,e.state,e.lint,e.language,e.generator,e.highlight,e.autocomplete$2,e.tooltip$1,e.gutter)}(this,(function(e,t,n,i,o,r,a,s,l,c,p,d,u,m,f,h,g,b,v,y,x,w,C,_,I,k,T,S,F,E,L,M,O,A,D,R,N,z,B,V,U,P,j,H,$,G,q,K,W,Y,X,Z,J,Q){"use strict";var ee="default"in h?h.default:h;U=U&&Object.prototype.hasOwnProperty.call(U,"default")?U.default:U;
2
2
  /*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -13,5 +13,5 @@
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
15
  ***************************************************************************** */
16
- var te=function(e,t){return(te=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 ne(e,t){function n(){this.constructor=e}te(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ie=function(){return(ie=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 oe(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 re(e,t){return function(n,i){t(n,i,e)}}function ae(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=a.trys,(o=o.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 le(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 ce(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 pe(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ce(arguments[t]));return e}var de,ue,me,fe=function(){function e(e,t){var n=this;this.activatedRoute=e,this.router=t,this.targetHomeUrl="_self",this.ngUnsubscribe=new r.Subject,this.router.events.pipe(a.takeUntil(this.ngUnsubscribe),a.filter((function(e){return e instanceof o.NavigationEnd}))).subscribe((function(){return n.onNavigationEnd()}))}return e.prototype.onNavigationEnd=function(){var e=this.activatedRoute.root,t=this.getValidChildren(e);this.title=this.getCurrentTitle(t),this.home=this.getCurrentHome(t),this.items=this.getCurrentItems(t)},e.prototype.getValidChildren=function(e){var t=this,n=e.routeConfig&&e.routeConfig.path&&e.routeConfig.component&&e.outlet===o.PRIMARY_OUTLET;return e.children.reduce((function(e,n){return pe(e,t.getValidChildren(n))}),n?[e]:[])},e.prototype.getCurrentTitle=function(e){var t=e[e.length-1];if(t&&t.routeConfig)return this.getTitle(t)},e.prototype.getCurrentHome=function(e){var t;return this.homeUrl?t={url:this.homeUrl,icon:"fa fa-home",target:this.targetHomeUrl}:e.length&&(t=ie(ie({},this.getMenuItem(e[0],1===e.length)),{icon:"fa fa-home"})),t},e.prototype.getCurrentItems=function(e){var t=this;if(e.length){var n=this.homeUrl?e:e.slice(1);return n.length?n.map((function(n,i){return t.getMenuItem(n,i===e.length-1)})):void 0}},e.prototype.getMenuItem=function(e,t){void 0===t&&(t=!1);var n=this.getTitle(e),i=e.pathFromRoot;return{label:n,routerLink:i.slice(0,i.indexOf(e)+1).reduce((function(e,t){return pe(e,t.snapshot.url.map((function(e){return e.path})))}),["/"]),queryParams:e.snapshot.queryParams,routerLinkActiveOptions:{exact:!0},disabled:t}},e.prototype.getTitle=function(e){var t=e.snapshot,n=e.routeConfig,i=t.data.routeTitle;if(!i)throw new Error("No routeTitle defined for the route /"+n.path);return i},e.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},e.ctorParameters=function(){return[{type:o.ActivatedRoute},{type:o.Router}]},oe([t.Input()],e.prototype,"homeUrl",void 0),oe([t.Input()],e.prototype,"targetHomeUrl",void 0),e=oe([t.Component({selector:"s-breadcrumb",template:'<h1 class="sds-page-title">{{title}}</h1>\n<p-breadcrumb [home]="home" [model]="items"></p-breadcrumb>'})],e)}(),he=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,i.BreadcrumbModule,o.RouterModule],declarations:[fe],exports:[fe,o.RouterModule]})],e)}();(de=e.ButtonPriority||(e.ButtonPriority={})).Default="default",de.Primary="primary",de.Secondary="secondary",de.Link="link",(ue=e.ButtonSize||(e.ButtonSize={})).Default="default",ue.Small="small",function(e){e.rotate="rotate"}(me||(me={}));var ge,be=function(){function n(){this.minWidth="40px",this.id="s-button-"+i.nextId++,this.caret=!0,this.baseZIndex=0,this.disabled=!1,this.auxiliary=!1,this.type="button",this.priority=e.ButtonPriority.Primary,this.model=[],this.size=e.ButtonSize.Default,this.onClick=new t.EventEmitter}var i;return i=n,n.prototype.ngOnInit=function(){var e=this;this.onClick.subscribe((function(t){e.model&&e.model.length&&(e.menu.model=e.model,e.menu.toggle(t))}))},n.prototype.validateSlideButton=function(){return this.slide&&(this.priority==e.ButtonPriority.Default||this.priority==e.ButtonPriority.Link)&&this.label.length},n.prototype.isOpen=function(){return this.model&&this.model.length&&this.menu.visible},n.prototype.ngOnChanges=function(e){var t=this.iconClass,n=this.label,i=this.model&&this.model.length;(n||t&&i)&&(this.minWidth="80px"),n&&t&&i&&(this.minWidth="100px")},n.prototype.updateTooltipZIndex=function(){this.tooltipZIndex=this.baseZIndex+ ++c.DomHandler.zindex},n.prototype.isRotateAnimation=function(){return this.animation===me.rotate},n.nextId=0,oe([t.HostBinding("style.min-width")],n.prototype,"minWidth",void 0),oe([t.Input()],n.prototype,"id",void 0),oe([t.Input()],n.prototype,"label",void 0),oe([t.Input()],n.prototype,"tooltip",void 0),oe([t.Input()],n.prototype,"iconClass",void 0),oe([t.Input()],n.prototype,"rightIconClass",void 0),oe([t.Input()],n.prototype,"caret",void 0),oe([t.Input()],n.prototype,"styleClass",void 0),oe([t.Input()],n.prototype,"baseZIndex",void 0),oe([t.Input()],n.prototype,"disabled",void 0),oe([t.Input()],n.prototype,"auxiliary",void 0),oe([t.Input()],n.prototype,"type",void 0),oe([t.Input()],n.prototype,"priority",void 0),oe([t.Input()],n.prototype,"model",void 0),oe([t.Input()],n.prototype,"size",void 0),oe([t.Input()],n.prototype,"slide",void 0),oe([t.Input()],n.prototype,"animation",void 0),oe([t.Output()],n.prototype,"onClick",void 0),oe([t.ViewChild(s.TieredMenu,{static:!0})],n.prototype,"menu",void 0),n=i=oe([t.Component({selector:"s-button",template:'<p-tieredMenu [id]="id + \'-menu\'" [popup]="true" appendTo="body" [baseZIndex]="baseZIndex"></p-tieredMenu>\n\n<button\n [id]="id"\n [type]="type"\n [class]="styleClass"\n [ngClass]="{\n \'s-button-auxiliary\': auxiliary,\n \'s-button-with-icon\': iconClass,\n \'s-button-with-text\': label,\n \'s-button-empty\': !iconClass && !label,\n \'s-button-size-default\': size === \'default\',\n \'s-button-size-small\': size === \'small\',\n \'s-button-priority-default\': priority === \'default\',\n \'s-button-priority-primary\': priority === \'primary\',\n \'s-button-priority-secondary\': priority === \'secondary\',\n \'s-button-priority-link\': priority === \'link\',\n \'s-button-multiple\': (caret && (model && model.length)) || rightIconClass,\n \'s-button-active\': isOpen(),\n \'s-button--slide\': validateSlideButton(),\n \'s-button--rotate-animation\': isRotateAnimation()\n }"\n [disabled]="disabled"\n [pTooltip]="tooltip"\n tooltipPosition="top"\n showDelay="500"\n [tooltipZIndex]="tooltipZIndex"\n (click)="onClick.emit($event)"\n (mouseenter)="updateTooltipZIndex()"\n>\n <span \n *ngIf="iconClass" \n [class]="iconClass" \n [ngClass]="{ \n \'s-button-icon\': true,\n \'s-button-icon-margin-right\': !label && model && model.length\n }" \n aria-hidden="true">\n </span>\n <span \n *ngIf="label" \n class="s-button-text"\n [ngClass]="{\n \'s-button-icon-margin-right\': !!rightIconClass || (model && model.length),\n \'s-button-icon-margin-left\': !!iconClass\n }">\n {{ label }}\n </span>\n <ng-content></ng-content>\n <span \n *ngIf="rightIconClass" \n [class]="rightIconClass" \n [ngClass]="{ \'s-button-right-icon\': true }" \n aria-hidden="true">\n </span>\n <span\n *ngIf="caret && (model && model.length)" \n class="fa fa-fw fa-caret-down"\n aria-hidden="true">\n </span>\n</button>\n',styles:['button{-ms-flex-align:center;align-items:center;border-radius:4px;border:1px solid;cursor:pointer;font-family:"Open Sans",sans-serif;font-size:14px;height:34px;max-width:100%;min-width:40px;outline:0;overflow:visible;padding:5px 10px;position:relative;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;text-decoration:none;text-transform:none;vertical-align:bottom;transition:background-color .2s ease-out,color .2s ease-out,border-color .2s ease-out}button:disabled{opacity:.5;filter:Alpha(Opacity=50);background-image:none}button:disabled,button:disabled *{cursor:text!important}button.s-button-auxiliary{border-radius:20px}button.s-button-size-small{padding:0 20px;height:25px}button.s-button-with-icon.s-button-multiple,button.s-button-with-text{min-width:80px}button.s-button-with-icon.s-button-with-text.s-button-multiple{min-width:100px}button .s-button-icon,button .s-button-menu-icon,button .s-button-right-icon,button.s-button-with-icon.s-button-multiple:not(.s-button-with-text) .s-button-icon{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}button.s-button-multiple .s-button-text{display:-ms-flexbox;display:flex;-ms-flex-pack:left;justify-content:left;-ms-flex-align:left;align-items:left}button.s-button-with-icon .s-button-text{display:-ms-flexbox;display:flex;-ms-flex-pack:right;justify-content:right;-ms-flex-align:right;align-items:right}.s-button-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.s-button-menu-icon{right:10px;transition:transform .2s ease-out}.s-button-icon-margin-left{margin-left:10px}.s-button-icon-margin-right{margin-right:10px}.s-button-active .s-button-menu-icon{transform:rotateX(180deg)}button,button.s-button-priority-primary{background-color:#428bca;border-color:#428bca}button .s-button-icon,button .s-button-menu-icon,button .s-button-right-icon,button .s-button-text,button.s-button-priority-primary .s-button-icon,button.s-button-priority-primary .s-button-menu-icon,button.s-button-priority-primary .s-button-right-icon,button.s-button-priority-primary .s-button-text{color:#fff}button.s-button-priority-primary:hover,button:hover{background-color:#2a6496}button.s-button-priority-primary:focus,button:focus{background-color:#2a6496;border-color:#22dce6}button.s-button-active:not(:disabled),button.s-button-priority-primary.s-button-active:not(:disabled),button.s-button-priority-primary:active:not(:disabled),button:active:not(:disabled){background-color:#245682;border-color:#245682}button.s-button-priority-secondary{background-color:#7892a1;border-color:#7892a1}button.s-button-priority-secondary .s-button-icon,button.s-button-priority-secondary .s-button-menu-icon,button.s-button-priority-secondary .s-button-right-icon,button.s-button-priority-secondary .s-button-text{color:#fff}button.s-button-priority-secondary:hover{background-color:#546b79}button.s-button-priority-secondary:focus{background-color:#546b79;border-color:#22dce6}button.s-button-priority-secondary.s-button-active:not(:disabled),button.s-button-priority-secondary:active:not(:disabled){background-color:#495e6a;border-color:#495e6a}button.s-button-priority-default{background-color:#fff;border-color:#ccc}button.s-button-priority-default .s-button-icon,button.s-button-priority-default .s-button-menu-icon,button.s-button-priority-default .s-button-right-icon,button.s-button-priority-default .s-button-text{color:#333}button.s-button-priority-default:hover{background-color:#d9d9d9}button.s-button-priority-default:focus{background-color:#d9d9d9;border-color:#22dce6}button.s-button-priority-default.s-button-active:not(:disabled),button.s-button-priority-default:active:not(:disabled){background-color:#ccc;border-color:#ccc}button.s-button-priority-link{background-color:transparent;border-color:transparent}button.s-button-priority-link .s-button-icon,button.s-button-priority-link .s-button-menu-icon,button.s-button-priority-link .s-button-right-icon,button.s-button-priority-link .s-button-text{color:#428bca}button.s-button-priority-link:hover{background-color:transparent}button.s-button-priority-link:hover .s-button-icon,button.s-button-priority-link:hover .s-button-menu-icon,button.s-button-priority-link:hover .s-button-right-icon,button.s-button-priority-link:hover .s-button-text{color:#2a6496}button.s-button-priority-link:focus{border-color:#22dce6;background-color:transparent}button.s-button-priority-link:focus .s-button-icon,button.s-button-priority-link:focus .s-button-menu-icon,button.s-button-priority-link:focus .s-button-right-icon,button.s-button-priority-link:focus .s-button-text{color:#2a6496}button.s-button-priority-link.s-button-active:not(:disabled),button.s-button-priority-link:active:not(:disabled){background-color:transparent;border-color:transparent}button.s-button-priority-link.s-button-active:not(:disabled) .s-button-icon,button.s-button-priority-link.s-button-active:not(:disabled) .s-button-menu-icon,button.s-button-priority-link.s-button-active:not(:disabled) .s-button-right-icon,button.s-button-priority-link.s-button-active:not(:disabled) .s-button-text,button.s-button-priority-link:active:not(:disabled) .s-button-icon,button.s-button-priority-link:active:not(:disabled) .s-button-menu-icon,button.s-button-priority-link:active:not(:disabled) .s-button-right-icon,button.s-button-priority-link:active:not(:disabled) .s-button-text{color:#245682}.s-button--slide.s-button-with-icon.s-button-multiple,.s-button--slide.s-button-with-text{min-width:40px}.s-button--slide .s-button-text{position:absolute;opacity:0;width:0}.s-button--slide:hover .s-button-text{transition:1s;position:relative;opacity:1;width:auto}.s-button--slide:hover.s-button--rotate-animation .s-button-icon,.s-button--slide:hover.s-button--rotate-animation .s-button-right-icon{transition:1.5s;transform:rotate(360deg)}']})],n)}(),ve=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,o.RouterModule,s.TieredMenuModule,l.TooltipModule],declarations:[be],exports:[be]})],e)}(),ye=function(){function e(e,t){this.host=e,this.renderer=t,this.SELECTORS='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',this.slotChar="_",this.autoClear=!1,this.firstTime=!0}return e.prototype.setListeners=function(){var e=this;this.input=this.host.inputfieldViewChild.nativeElement,this.value=this.input.value,this.focusListener=this.renderer.listen(this.input,"focus",(function(){e.onInputFocus()})),this.blurListener=this.renderer.listen(this.input,"blur",(function(t){e.onInputBlur(t)})),this.keydownListener=this.renderer.listen(this.input,"keydown",(function(t){e.onKeyDown(t)})),this.keypressListener=this.renderer.listen(this.input,"keypress",(function(t){e.onKeyPress(t)})),this.inputListener=this.renderer.listen(this.input,"input",(function(t){e.onInputChange(t)})),this.pasteListener=this.renderer.listen(this.input,"paste",(function(t){e.handleInputChange(t)}))},e.prototype.ngOnInit=function(){var e=navigator.userAgent;this.androidChrome=/chrome/i.test(e)&&/android/i.test(e),this.createMaskFromDateFormat(),this.initMask()},Object.defineProperty(e.prototype,"mask",{get:function(){return this._mask},set:function(e){this._mask=e,this.initMask(),this.writeValue("")},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e,this.input&&(null==this.value?this.input.value="":this.input.value=this.value,this.checkVal(),this.focusText=this.input.value,this.updateFilledState())},e.prototype.onInputBlur=function(e){if(this.checkVal(),this.updateFilledState(),this.value!=this.focusText){!this.input.disabled&&(void 0===this.value||null===this.value||this.value.indexOf(this.slotChar)>=0)&&(this.value="",e.target.value="",this.host.updateModel(null)),this.updateModel(e);var t=document.createEvent("HTMLEvents");t.initEvent("change",!0,!1),this.input.dispatchEvent(t)}},e.prototype.onKeyDown=function(e){if(!this.host.readonlyInput){var t,n,i,o=e.which||e.keyCode,r=/iphone/i.test(navigator.userAgent);this.oldVal=this.input.value,8===o||46===o||r&&127===o?(n=(t=this.caret()).begin,(i=t.end)-n==0&&(n=46!==o?this.seekPrev(n):i=this.seekNext(n-1),i=46===o?this.seekNext(i):i),this.clearBuffer(n,i),this.shiftL(n,i-1),this.updateModel(e),e.preventDefault()):13===o?(this.onInputBlur(e),this.updateModel(e)):27===o&&(this.input.value=this.focusText,this.caret(0,this.checkVal()),this.updateModel(e),e.preventDefault())}},e.prototype.onKeyPress=function(e){var t=this;if(!this.host.readonlyInput){var n,i,o,r=e.which||e.keyCode,a=this.caret();if(!(e.ctrlKey||e.altKey||e.metaKey||r<32||r>34&&r<41)){if(r&&13!==r){if(a.end-a.begin!=0&&(this.clearBuffer(a.begin,a.end),this.shiftL(a.begin,a.end-1)),(n=this.seekNext(a.begin-1))<this.len&&(i=String.fromCharCode(r),this.tests[n].test(i)))if(this.shiftR(n),this.buffer[n]=i,this.writeBuffer(),o=this.seekNext(n),/android/i.test(navigator.userAgent)){setTimeout((function(){t.caret(o)}),0)}else this.caret(o);e.preventDefault()}this.updateModel(e),this.updateFilledState()}}},e.prototype.checkVal=function(e){var t,n,i=this.input.value,o=-1,r=0;for(t=0;t<this.len;t++)if(this.tests[t]){for(this.buffer[t]=this.getPlaceholder(t);r++<i.length;)if(n=i.charAt(r-1),this.tests[t].test(n)){this.buffer[t]=n,o=t;break}if(r>i.length){this.clearBuffer(t+1,this.len);break}}else this.buffer[t]===i.charAt(r)&&r++,t<this.partialPosition&&(o=t);return e?this.writeBuffer():o+1<this.partialPosition?this.autoClear||this.buffer.join("")===this.defaultBuffer?(this.input.value&&(this.input.value=""),this.clearBuffer(0,this.len)):this.writeBuffer():(this.writeBuffer(),this.input.value=this.input.value.substring(0,o+1)),this.partialPosition?t:this.firstNonMaskPos},e.prototype.onInputFocus=function(){var e,t=this;this.host.readonlyInput||(clearTimeout(this.caretTimeoutId),this.focusText=this.input.value,e=this.checkVal(),this.caretTimeoutId=setTimeout((function(){t.input===document.activeElement&&(t.writeBuffer(),e==t.mask.replace("?","").length?t.caret(0,e):t.caret(e))}),10))},e.prototype.onInputChange=function(e){this.androidChrome?this.handleAndroidInput(e):this.handleInputChange(e)},e.prototype.handleInputChange=function(e){var t=this;this.host.readonlyInput||setTimeout((function(){var n=t.checkVal(!0);t.caret(n),t.updateModel(e)}),0)},e.prototype.updateModel=function(e){var t=e.target.value;null===t&&void 0===t||(this.value=t,this.host.onUserInput(e))},e.prototype.updateFilledState=function(){this.filled=this.input&&""!=this.input.value},e.prototype.focus=function(){this.input.focus()},e.prototype.initMask=function(){this.tests=[],this.partialPosition=this.mask.length,this.len=this.mask.length,this.firstNonMaskPos=null,this.defs={9:"[0-9]"};for(var e=this.mask.split(""),t=0;t<e.length;t++){"?"==(n=e[t])?(this.len--,this.partialPosition=t):this.defs[n]?(this.tests.push(new RegExp(this.defs[n])),null===this.firstNonMaskPos&&(this.firstNonMaskPos=this.tests.length-1),t<this.partialPosition&&(this.lastRequiredNonMaskPos=this.tests.length-1)):this.tests.push(null)}this.buffer=[];for(t=0;t<e.length;t++){var n;"?"!=(n=e[t])&&(this.defs[n]?this.buffer.push(this.getPlaceholder(t)):this.buffer.push(n))}this.defaultBuffer=this.buffer.join("")},e.prototype.caret=function(e,t){var n,i,o;if(this.input.offsetParent&&this.input===document.activeElement)return"number"!=typeof e?(this.input.setSelectionRange?(i=this.input.selectionStart,o=this.input.selectionEnd):document.selection&&document.selection.createRange&&(o=(i=0-(n=document.selection.createRange()).duplicate().moveStart("character",-1e5))+n.text.length),{begin:i,end:o}):(i=e,o="number"==typeof t?t:i,void(this.input.setSelectionRange?this.input.setSelectionRange(i,o):this.input.createTextRange&&((n=this.input.createTextRange()).collapse(!0),n.moveEnd("character",o),n.moveStart("character",i),n.select())))},e.prototype.getPlaceholder=function(e){return e<this.slotChar.length?this.slotChar.charAt(e):this.slotChar.charAt(0)},e.prototype.seekNext=function(e){for(;++e<this.len&&!this.tests[e];);return e},e.prototype.seekPrev=function(e){for(;--e>=0&&!this.tests[e]&&!this.tests[e];);return e},e.prototype.shiftL=function(e,t){var n,i;if(!(e<0)){for(i=this.seekNext(t),n=e;n<this.len;n++)if(this.tests[n]){if(!(i<this.len&&this.tests[n].test(this.buffer[i])))break;this.buffer[n]=this.buffer[i],this.buffer[i]=this.getPlaceholder(i),i=this.seekNext(i)}this.writeBuffer(),this.caret(Math.max(this.firstNonMaskPos,e))}},e.prototype.shiftR=function(e){var t,n,i,o=this.getPlaceholder(e);for(t=e;t<this.len;t++)if(this.tests[t]){if(n=this.seekNext(t),i=this.buffer[t],this.buffer[t]=o,!(n<this.len&&this.tests[n].test(i)))break;o=i}},e.prototype.handleAndroidInput=function(e){var t=this,n=this.input.value,i=this.caret();if(this.oldVal&&this.oldVal.length&&this.oldVal.length>n.length){for(this.checkVal(!0);i.begin>0&&!this.tests[i.begin-1];)i.begin--;if(0===i.begin)for(;i.begin<this.firstNonMaskPos&&!this.tests[i.begin];)i.begin++;setTimeout((function(){if(t.caret(i.begin,i.begin),t.isCompleted()){var e=n.replace(t.slotChar,"");t.updateCalendarValue(e)}}),0)}else{for(this.checkVal(!0);i.begin<this.len&&!this.tests[i.begin];)i.begin++;setTimeout((function(){if(t.caret(i.begin,i.begin),t.isCompleted()){var e=n.replace(t.slotChar,"");t.updateCalendarValue(e)}}),0)}},e.prototype.updateCalendarValue=function(e){var t=this.host.parseValueFromString(e);this.host.isSelectable(t.getDate(),t.getMonth(),t.getFullYear(),!1)&&(this.host.updateModel(e),this.host.updateUI())},e.prototype.clearBuffer=function(e,t){var n;for(n=e;n<t&&n<this.len;n++)this.tests[n]&&(this.buffer[n]=this.getPlaceholder(n))},e.prototype.writeBuffer=function(){this.input.value=this.buffer.join("")},e.prototype.createMaskFromDateFormat=function(){var e=this.host,t=this.autoClear?"?":"";if(!e.timeOnly){var n=e.dateFormat;t+=(n=n.replace(/y/g,"yy")).replace(/[^/*,.\-+\[\]\\]/g,"9"),e.showTime&&(t+=" ")}(e.showTime||e.timeOnly)&&(t+="99:99",e.showSeconds&&(t+=":99")),this._mask=t,this.initMask()},e.prototype.isCompleted=function(){for(var e=this.firstNonMaskPos;e<=this.lastRequiredNonMaskPos;e++)if(this.tests[e]&&this.buffer[e]===this.getPlaceholder(e))return!1;return!0},e.prototype.ngAfterViewChecked=function(){this.host.inputfieldViewChild&&this.firstTime&&(this.firstTime=!1,this.setListeners(),this.input.type="tel")},e.prototype.ngOnDestroy=function(){this.focusListener&&this.focusListener(),this.blurListener&&this.blurListener(),this.keydownListener&&this.keydownListener(),this.keypressListener&&this.keypressListener(),this.inputListener&&this.inputListener(),this.pasteListener&&this.pasteListener()},e.prototype.onKeydownEventTest=function(e){var t=this;if("Tab"==e.key){var n,i=document.querySelectorAll(this.SELECTORS),o=!1,r=!0;i.forEach((function(i){if(!e.shiftKey&&o&&i.id)return t.focusableElement(i.id,r),o=!1,void e.preventDefault();var a=window.document.activeElement.tagName;if(e.shiftKey&&i.id&&"INPUT"===i.tagName&&"BUTTON"==a&&(n=i.id,r=!1),i.id===t.host.inputId){if(n)return t.focusableElement(n,r),e.preventDefault(),void(r=!0);o=!0}else e.shiftKey&&i.id&&(n=i.id)}))}},e.prototype.focusableElement=function(e,t){window.document.getElementById(e).focus(),t&&this.host.hideOverlay()},e.ctorParameters=function(){return[{type:p.Calendar},{type:t.Renderer2}]},oe([t.Input()],e.prototype,"slotChar",void 0),oe([t.Input()],e.prototype,"autoClear",void 0),oe([t.HostListener("keydown",["$event"])],e.prototype,"onKeydownEventTest",null),e=oe([t.Directive({selector:"p-calendar[sCalendarMask]"})],e)}(),xe=function(){function e(){}return e=oe([t.NgModule({declarations:[ye],imports:[n.CommonModule],exports:[ye]})],e)}(),we=function(){function e(){this.buttonId="s-collapse-button-"+n.nextId++,this.expandedLabel="Mostrar menos",this.collapsedLabel="Mostrar mais",this.disabled=!1,this.collapse=!0,this.collapsed=!0}var n;return n=e,e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){e.collapse&&this.onCollapse(e.collapse.currentValue)},e.prototype.toggle=function(){this.animating||(this.animating=!0,this.collapsed=!this.collapsed)},e.prototype.onToggleDone=function(){this.animating=!1},e.prototype.onCollapse=function(e){this.animating||(this.animating=!0,this.collapsed=e)},e.nextId=0,oe([t.Input()],e.prototype,"buttonId",void 0),oe([t.Input()],e.prototype,"expandedLabel",void 0),oe([t.Input()],e.prototype,"collapsedLabel",void 0),oe([t.Input()],e.prototype,"disabled",void 0),oe([t.Input()],e.prototype,"collapse",void 0),e=n=oe([t.Component({selector:"s-collapse-link",template:'<div *ngIf="!collapsed" @collapseContent (@collapseContent.done)="onToggleDone()">\n <ng-content></ng-content>\n</div>\n\n<button [id]="buttonId" type="button" class="s-collapse-button" (click)="toggle()" [disabled]="disabled">\n <span class="s-button-icon fa" [ngClass]="{\'fa-caret-down\': collapsed, \'fa-caret-up\': !collapsed}"\n aria-hidden="true"></span>\n <span class="s-button-text">{{ collapsed ? collapsedLabel : expandedLabel }}</span>\n</button>\n',animations:[d.trigger("collapseContent",[d.state("void",d.style({height:0,opacity:0})),d.state("*",d.style({height:"*",opacity:1})),d.transition("void <=> *",d.animate("400ms cubic-bezier(0.86, 0, 0.07, 1)"))])],styles:['button.s-collapse-button{-ms-flex-align:center;align-items:center;cursor:pointer;font-family:"Open Sans",sans-serif;font-size:14px;height:34px;max-width:100%;min-width:40px;outline:0;overflow:visible;padding:5px 20px;position:relative;text-decoration:none;text-transform:none;vertical-align:bottom;background-color:transparent;border-color:transparent}button.s-collapse-button:disabled{opacity:.5;filter:Alpha(Opacity=50);background-image:none}button.s-collapse-button:disabled,button.s-collapse-button:disabled *{cursor:text!important}button.s-collapse-button:focus,button.s-collapse-button:hover{background-color:rgba(26,26,26,0);border-color:rgba(26,26,26,0)}button.s-collapse-button.s-button-active:not(:disabled),button.s-collapse-button:active:not(:disabled){background-color:rgba(0,0,0,0);border-color:transparent}button.s-collapse-button .s-button-icon{left:10px;margin-top:-.5em;position:absolute;top:50%;width:20px}button.s-collapse-button .s-button-icon,button.s-collapse-button .s-button-text{color:#428bca}button.s-collapse-button .s-button-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;margin-left:10px;margin-right:10px}']})],e)}(),Ce=function(){function e(){}return e=oe([t.NgModule({declarations:[we],exports:[we],imports:[n.CommonModule]})],e)}(),_e=function(){function e(){this.id="s-control-errors-"+n.nextId++,this.errorMessages={}}var n;return n=e,e.prototype.getErrorMessagesList=function(){var e=this;return this.control&&this.control.dirty?Object.keys(this.control.errors||{}).map((function(t){return e.errorMessages[t]})):[]},e.nextId=0,oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"control",void 0),oe([t.Input()],e.prototype,"errorMessages",void 0),oe([t.Input()],e.prototype,"form",void 0),e=n=oe([t.Component({selector:"s-control-errors",template:'<ng-container *ngFor="let errorMessage of getErrorMessagesList()">\n <div *ngIf="errorMessage" class="error-message">{{ errorMessage }}</div>\n</ng-container>\n',styles:[".error-message{color:#c13018;margin-top:5px;font-size:12px}"]})],e)}(),Ie=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,u.FormsModule,u.ReactiveFormsModule],declarations:[_e],exports:[_e]})],e)}();(ge=e.FieldType||(e.FieldType={})).Autocomplete="Autocomplete",ge.Binary="Binary",ge.Boolean="Boolean",ge.Chips="Chips",ge.Date="Date",ge.DateTime="DateTime",ge.LocalDateTime="LocalDateTime",ge.Double="Double",ge.Enum="Enum",ge.Blob="Blob",ge.Integer="Integer",ge.Lookup="Lookup",ge.Money="Money",ge.Radio="Radio",ge.String="String",ge.Text="Text",ge.Time="Time",ge.Number="Number",ge.Custom="Custom";var ke,Te=function(e){var t=e.sm,n=void 0===t?12:t,i=e.md,o=void 0===i?6:i,r=e.lg,a=void 0===r?6:r,s=e.xl,l=void 0===s?6:s;this.sm=n,this.md=o,this.lg=a,this.xl=l},Se=function(e){var t=this;this.required=e.required||function(){return!1},this.visible=e.visible||function(){return!0},this.id=e.id,this.name=e.name,this.label=e.label,this.infoSign=e.infoSign,this.tooltip=e.tooltip,this.placeholder=e.placeholder||"",this.showClear=e.showClear||!1,this.type=e.type,this.size=new Te(e.size||{}),this.errorMessages=e.errorMessages,this.gridClass=Object.keys(this.size).map((function(e){return"ui-"+e+"-"+t.size[e]})),this.defaultValue=e.defaultValue,this.representedBy=e.representedBy},Ee=function(t){function n(n){var i=t.call(this,ie(ie({},n),{type:e.FieldType.Autocomplete}))||this;return i.suggestions=[],Object.assign(i,n),i.suggestionsObservable.subscribe((function(e){return i.suggestions=e})),i}return ne(n,t),n}(Se),Fe=function(e){var t=this;void 0===e&&(e={}),this.hourFormat="24",this.dateFormat="dd/mm/yy",this.firstDayOfWeek=0,this.today="Hoje",this.clear="Limpar",this.dayNames=["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"],this.dayNamesShort=["Dom","Seg","Ter","Qua","Qui","Sex","Sab"],this.dayNamesMin=["D","S","T","Q","Q","S","S"],this.monthNamesShort=["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dec"],this.monthNames=["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],Object.keys(e).forEach((function(n){return t[n]=e[n]||t[n]}))},Le=function(e){void 0===e&&(e={}),this.thousandsSeparator=".",this.decimalSeparator=",",this.currencySymbol="R$",Object.assign(this,e)},Me=function(e){var t=this;void 0===e&&(e={}),this.calendar=new Fe,this.number=new Le,Object.keys(e).forEach((function(n){return t[n]=e[n]||t[n]}))},Oe=new Fe,Ae=new Le,De=new Me,Re=w,Ne=function(){function e(e,t){this.http=e,this.cookieService=t,this.localeOptionsAddress="https://cdn.senior.com.br/primeng/locales",this.localeOptionsVersion="3.0.0"}return e.prototype.get=function(){var e=this;return this.localeOptions?r.of(this.localeOptions):this.getLocaleConfig().pipe(a.tap((function(t){return e.localeOptions=t})))},e.prototype.getLocale=function(){var e=this;return this.locale?r.of(this.locale):r.from(this.getUserData()).pipe(a.map((function(t){return e.locale=t.locale||t.tenantLocale||"pt-BR",e.locale})))},e.prototype.getUserData=function(){try{return r.of(JSON.parse(this.cookieService.get("com.senior.token")))}catch(e){return console.warn("Unable to obtain user locale from cookie, calling getUser"),x.user.getUserData()}},e.prototype.getLocaleConfig=function(){var e=this;return this.getLocale().pipe(a.switchMap((function(t){return Re.locale(t),e.http.get(e.localeOptionsAddress+"/"+e.localeOptionsVersion+"/"+t+".json").pipe(a.map((function(e){return new Me(e)})))})),a.catchError((function(e){return console.warn("Error getting locale configuration. Using fallback.",e),r.of(new Me)})))},e.ctorParameters=function(){return[{type:m.HttpClient},{type:C.CookieService}]},e=oe([t.Injectable()],e)}(),ze=function(){function e(e){this.localeService=e}return e.prototype.transform=function(e,t){return null!=e?this.applyMask(e,t):r.of(e)},e.prototype.applyMask=function(e,t){return this.localeService.get().pipe(a.map((function(n){var i,o,r,a,s,l,c,p,d,u,m,f={prefix:null!==(r=null!==(i=null==t?void 0:t.prefix)&&void 0!==i?i:null===(o=null==n?void 0:n.number)||void 0===o?void 0:o.currencySymbol)&&void 0!==r?r:"R$",thousandsSeparator:null!==(l=null!==(a=null==t?void 0:t.thousandsSeparator)&&void 0!==a?a:null===(s=null==n?void 0:n.number)||void 0===s?void 0:s.thousandsSeparator)&&void 0!==l?l:".",decimalSeparator:null!==(d=null!==(c=null==t?void 0:t.decimalSeparator)&&void 0!==c?c:null===(p=null==n?void 0:n.number)||void 0===p?void 0:p.decimalSeparator)&&void 0!==d?d:",",scale:null!==(u=null==t?void 0:t.scale)&&void 0!==u?u:2,allowNegative:null===(m=null==t?void 0:t.allowNegative)||void 0===m||m},h=!new ee(e).isNaN();return y.applyMask(e,f,h)})))},e.ctorParameters=function(){return[{type:Ne}]},e=oe([t.Pipe({name:"localizedBignumber"})],e)}(),Be=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return ne(n,e),n.prototype.transform=function(t,n){return e.prototype.transform.call(this,t,n)},n=oe([t.Pipe({name:"localizedBignumberImpure",pure:!1})],n)}(ze),Ve=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.scale=2,n}return ne(t,e),t}(Le),Ue=function(){function e(e){this.localeService=e}return e.prototype.transform=function(e,t){return t||(t=new Ve),null!=e?this.applyMask(e,t):r.of(e)},e.prototype.applyMask=function(e,t){return this.localeService.get().pipe(a.map((function(n){var i=ie(ie({},n.number),t),o=i.scale,r=i.currencySymbol,a=i.thousandsSeparator,s=i.decimalSeparator,l=Number(e).toFixed(o),c=l.replace(/[^0-9]/g,""),p=c.slice(0,c.length-o).replace(/^0*/g,"").replace(/\B(?=(\d{3})+(?!\d))/g,a)||"0",d=c.slice(c.length-o),u=o?p+s+d:p,m=!Number(c);return""+(l.includes("-")&&!m?"-":"")+r+u})))},e.ctorParameters=function(){return[{type:Ne}]},e=oe([t.Pipe({name:"localizedCurrency"})],e)}(),Pe=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return ne(n,e),n.prototype.transform=function(t,n){return void 0===n&&(n=new Ve),e.prototype.transform.call(this,t,n)},n=oe([t.Pipe({name:"localizedCurrencyImpure",pure:!1})],n)}(Ue),je=w,He=function(){function e(e){this.localeService=e}return e.prototype.transform=function(e,t){return void 0===t&&(t="L LTS"),this.localeService.get().pipe(a.map((function(){return e?je(e).format(t):e})))},e.ctorParameters=function(){return[{type:Ne}]},e=oe([t.Pipe({name:"localizedDate"})],e)}(),$e=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return ne(n,e),n=oe([t.Pipe({name:"localizedDateImpure",pure:!1})],n)}(He),Ge=function(){function e(e){this.localeService=e}return e.prototype.transform=function(e,t){return r.from(this.localeService.getLocale()).pipe(a.map((function(n){var i=Number(e);if(e||!isNaN(i))return new Intl.NumberFormat(n,{minimumFractionDigits:t||0}).format(Number(e))})))},e.ctorParameters=function(){return[{type:Ne}]},e=oe([t.Pipe({name:"localizedNumber"})],e)}(),qe=w,Ke=function(){function e(e){this.localeService=e}return e.prototype.transform=function(e,t){return void 0===t&&(t="LTS"),this.localeService.get().pipe(a.map((function(){return e?qe(e,"HH:mm:ss").format(t):e})))},e.ctorParameters=function(){return[{type:Ne}]},e=oe([t.Pipe({name:"localizedTime"})],e)}(),We=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return ne(n,e),n=oe([t.Pipe({name:"localizedTimeImpure",pure:!1})],n)}(Ke),Ye=function(){function e(){}var i;return i=e,e.forRoot=function(){return{ngModule:i,providers:[Ne,Ue,He,Ke,Ge,Pe,$e,We,ze,Be]}},e.forChild=function(){return{ngModule:i}},e=i=oe([t.NgModule({imports:[n.CommonModule],exports:[Ue,He,Ke,Ge,Pe,$e,We,ze,Be],declarations:[Ue,He,Ke,Ge,Pe,$e,We,ze,Be]})],e)}(),Xe=function(e){function t(t){var n,i=e.call(this,t)||this;return i.numberLocaleOptions=t.numberLocaleOptions||new Le,i.browserAutocomplete=t.browserAutocomplete,i.precision=t.precision,i.scale=null!==(n=t.scale)&&void 0!==n?n:2,i.alignTo=i.scale?y.AlignmentOptions.RIGHT:y.AlignmentOptions.LEFT,i.mask=t.mask,i.leftAddon=t.leftAddon,i.rightAddon=t.rightAddon,i.onBlur=t.onBlur,i.onFocus=t.onFocus,i.onComplete=t.onComplete,i.onInput=t.onInput,i}return ne(t,e),t}(Se),Ze=function(e){function t(t){var n=e.call(this,t)||this;return n.accept=t.accept,n.files=t.files||[],n.chooseLabel=t.chooseLabel,n.removeLabel=t.removeLabel,n.cancelLabel=t.cancelLabel,n.successTooltip=t.successTooltip,n.multiple=t.multiple,n.onUploadFile=t.onUploadFile,n.onRemoveFile=t.onRemoveFile,n.onCancelUpload=t.onCancelUpload,n.onDownloadFile=t.onDownloadFile,n}return ne(t,e),t}(Se),Je=function(e){this.true=e.true,this.false=e.false,this.empty=e.empty,this.clear=e.clear},Qe=function(e){function t(t){var n=e.call(this,t)||this;return n.verticalAlignment=t.verticalAlignment,n.optionsLabel=new Je(t.optionsLabel),n.representedBy="radio",n.onBlur=t.onBlur,n.onFocus=t.onFocus,n.onClick=t.onClick,n}return ne(t,e),t}(Se),et=function(e){function t(t){var n=e.call(this,t)||this;return n.onChange=t.onChange,n.representedBy="switch",n}return ne(t,e),t}(Se),tt=function(t){function n(n){var i=t.call(this,n)||this;if(i.view=n.view||"date",i.minDate=n.minDate,i.maxDate=n.maxDate,i.defaultDate=n.defaultDate,i.appendTo=n.appendTo,i.showOnFocus="boolean"!=typeof n.showOnFocus||n.showOnFocus,i.calendarLocaleOptions=n.calendarLocaleOptions||new Fe,i.onBlur=n.onBlur,i.onFocus=n.onFocus,i.onSelect=n.onSelect,i.onInput=n.onInput,i.onClose=n.onClose,i.onTodayClick=n.onTodayClick,i.onClearClick=n.onClearClick,i.onMonthChange=n.onMonthChange,i.onYearChange=n.onYearChange,i.selectionMode=n.selectionMode||"single",i.rangeSeparator=n.rangeSeparator||"-",i.showSeconds=n.showSeconds,null===i.showSeconds||void 0===i.showSeconds)switch(i.type){case e.FieldType.DateTime:case e.FieldType.LocalDateTime:case e.FieldType.Time:i.showSeconds=!0}return i}return ne(n,t),n}(Se),nt=function(e){function t(t){var n=e.call(this,t)||this;return n.keyFilter=t.keyFilter,n.onAdd=t.onAdd,n.onRemove=t.onRemove,n.onChipClick=t.onChipClick,n.onFocus=t.onFocus,n.onBlur=t.onBlur,n}return ne(t,e),t}(Se);(ke=e.NumberAlignmentOption||(e.NumberAlignmentOption={})).RIGHT="right",ke.LEFT="left";var it,ot=function(n){function i(){var t=null!==n&&n.apply(this,arguments)||this;return t.precision=15,t.scale=0,t.decimalSeparator=",",t.thousandsSeparator=".",t.alignTo=e.NumberAlignmentOption.LEFT,t.allowNegative=!0,t.regex=/\d/,t}var o;return ne(i,n),o=i,i.prototype.ngOnInit=function(){this.updateVariables(),n.prototype.ngOnInit.call(this)},i.prototype.ngOnChanges=function(e){!(e.placeholder&&e.placeholder.currentValue)&&this.scale&&(this.placeholder="0"+this.decimalSeparator+"".padEnd(this.scale,"0")),(e.scale||e.decimalSeparator||e.thousandsSeparator||e.alignTo||e.precision||e.allowNegative)&&this.updateVariables()},i.prototype.updateVariables=function(){this.options={align:this.alignTo,decimal:this.decimalSeparator,thousands:this.thousandsSeparator,precision:this.scale||0,prefix:"",suffix:"",allowNegative:this.allowNegative},this.calculateMaxLength()},i.prototype.calculateMaxLength=function(){var e=this.decimalSeparator.length,t=this.thousandsSeparator.length,n=this.precision+(this.scale?e:0);n+=Math.ceil((this.precision-(this.scale?this.scale:0))/3-1)*t,this.maxLength=n},i.prototype.handleKeypress=function(e){var t=e.key;this.thousandsSeparator.includes(t)||this.decimalSeparator.includes(t)||"-".includes(t)||this.regex.test(t)||"Enter".toUpperCase()===t.toUpperCase()?n.prototype.handleKeypress.call(this,e):e.preventDefault()},oe([t.Input()],i.prototype,"precision",void 0),oe([t.Input()],i.prototype,"scale",void 0),oe([t.Input()],i.prototype,"decimalSeparator",void 0),oe([t.Input()],i.prototype,"thousandsSeparator",void 0),oe([t.Input()],i.prototype,"alignTo",void 0),oe([t.Input()],i.prototype,"allowNegative",void 0),oe([t.Input(),t.HostBinding("attr.placeholder")],i.prototype,"placeholder",void 0),oe([t.HostBinding("attr.maxLength")],i.prototype,"maxLength",void 0),i=o=oe([t.Directive({selector:"input[sNumberInput]",providers:[{provide:u.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return o})),multi:!0}]})],i)}(_.CurrencyMaskDirective),rt=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule],declarations:[ot],exports:[ot]})],e)}(),at=function(t){function n(n){var i=t.call(this,n)||this;return i.numberLocaleOptions=n.numberLocaleOptions||new Le,i.browserAutocomplete=n.browserAutocomplete,i.precision=n.precision,i.alignTo=n.alignTo||e.NumberAlignmentOption.LEFT,i.mask=n.mask,i.leftAddon=n.leftAddon,i.rightAddon=n.rightAddon,i.onBlur=n.onBlur,i.onFocus=n.onFocus,i.onComplete=n.onComplete,i.onInput=n.onInput,i}return ne(n,t),n}(Se),st=function(t){function n(n){var i=t.call(this,n)||this;return i.numberLocaleOptions=n.numberLocaleOptions||new Le,i.alignTo=n.alignTo||e.NumberAlignmentOption.RIGHT,i.scale=n.scale||0===n.scale?n.scale:2,i}return ne(n,t),n}(at),lt=function(e){function t(t){var n=e.call(this,t)||this;return n.numberLocaleOptions=t.numberLocaleOptions||new Le,n}return ne(t,e),t}(st),ct=function(t){function n(n){var i=t.call(this,ie(ie({},n),{type:e.FieldType.Lookup}))||this;return i.multiple=!1,i.searchTitle="Pesquisa avançada",i.searchEmptyTitle="Nenhum registro encontrado",i.filterLabel="Filtrar",i.filterTitle="Filtros",i.clearLabel="Limpar",i.cancelLabel="Cancelar",i.selectLabel="Selecionar",i.recordLabel=" registro",i.recordsLabel=" registros",i.onSelect=function(e){},i.onUnselect=function(e){},Object.assign(i,n),i.suggestionsObservable.subscribe((function(e){return i.lookupSuggestions=e})),i.searchObservable.pipe(a.delay(0)).subscribe((function(e){var t=e.totalRecords,n=e.gridData,o=e.searchTotalRecordsLabel;i._gridData=n,i._searchTotalRecords=t,i._searchTotalRecordsLabel=o})),i}return ne(n,t),Object.defineProperty(n.prototype,"gridData",{get:function(){return this._gridData},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"searchTotalRecords",{get:function(){return this._searchTotalRecords},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"searchTotalRecordsLabel",{get:function(){return this._searchTotalRecordsLabel},enumerable:!0,configurable:!0}),n}(Se),pt=function(e){function t(t){var n=e.call(this,t)||this;return n.verticalAlignment=t.verticalAlignment,n.options=t.options,n.onBlur=t.onBlur,n.onFocus=t.onFocus,n.onClick=t.onClick,n}return ne(t,e),t}(Se),dt=function(e){this.label=e.label,this.value=e.value},ut=function(e){function t(t){var n=e.call(this,t)||this;return n.appendTo=t.appendTo,n.dataKey=t.dataKey,n.optionLabel=t.optionLabel,n.autoDisplayFirst=t.autoDisplayFirst,n.options=t.options,n.multiple=t.multiple,n.multipleSelectedLabel=t.multipleSelectedLabel||"{0} registros selecionados",n.onClick=t.onClick,n.onChange=t.onChange,n.emptyMessage=t.emptyMessage,n}return ne(t,e),t}(Se),mt=function(e){this.label=e.label,this.value=e.value},ft=function(e){function t(t){var n=e.call(this,t)||this;return n.cols=t.cols,n.rows=t.rows,n.keyFilter=t.keyFilter,n.style=t.style,n}return ne(t,e),t}(Se),ht=function(e){function t(t){var n=e.call(this,t)||this;return n.mask=t.mask,n.inputType=t.inputType,n.keyFilter=t.keyFilter,n.leftAddon=t.leftAddon,n.rightAddon=t.rightAddon,n.maxLength=t.maxLength||9999999,n.browserAutocomplete=t.browserAutocomplete,n.style=t.style,n.onBlur=t.onBlur,n.onFocus=t.onFocus,n.onComplete=t.onComplete,n.onInput=t.onInput,n}return ne(t,e),t}(Se),gt=function(t){switch(t.type){case e.FieldType.Enum:return new ut(t);case e.FieldType.Autocomplete:return new Ee(t);case e.FieldType.Money:return new lt(t);case e.FieldType.Integer:return new at(t);case e.FieldType.Double:return new st(t);case e.FieldType.Number:return new Xe(t);case e.FieldType.String:case e.FieldType.Binary:return new ht(t);case e.FieldType.Text:return new ft(t);case e.FieldType.Boolean:return"switch"===t.representedBy?new et(t):new Qe(t);case e.FieldType.Date:case e.FieldType.DateTime:case e.FieldType.LocalDateTime:case e.FieldType.Time:return new tt(t);case e.FieldType.Lookup:return new ct(t);case e.FieldType.Radio:return new pt(t);case e.FieldType.Chips:return new nt(t);case e.FieldType.Blob:return new Ze(t);case e.FieldType.Custom:return new(0,t.CustomFieldClass)(function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(t,["CustomFieldClass"]))}},bt=function(e,t){this.label=e,this.value=t},vt=function(){function n(e){this.hotkeysService=e,this.id="s-lookup-"+i.nextId++,this.disabled=!1,this.showSearch=!0,this.lookupAppendTo="body",this.searchTitle="Pesquisa avançada",this.searchEmptyTitle="Nenhum registro encontrado",this.searchFields=[],this.filterTitle="Filtros",this.filterLabel="Filtrar",this.clearLabel="Limpar",this.cancelLabel="Cancelar",this.selectLabel="Selecionar",this.emptyFieldLabel="Não informado",this.recordLabel=" registro",this.recordsLabel=" registros",this.onLookupRequest=new t.EventEmitter,this.onSearchRequest=new t.EventEmitter,this.onFocus=new t.EventEmitter,this.onBlur=new t.EventEmitter,this.onKeyUp=new t.EventEmitter,this.onSelect=new t.EventEmitter,this.onUnselect=new t.EventEmitter,this.onClear=new t.EventEmitter,this.dialogVisible=!1,this.collapsed=!1,this.selected=[],this.transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)",this.ngUnsubscribe=new r.Subject,this.originalFormValues={}}var i;return i=n,n.prototype.ngOnInit=function(){var t=this;this.searchGridFields||(this.searchGridFields=this.searchFields.map((function(e){return new gt(ie({},e))}))),this.searchFields=this.searchFields.map((function(e){return new gt(ie(ie({},e),{size:{sm:12,md:12,lg:12,xl:12}}))})),this.searchGridFields=this.searchGridFields.map((function(n){n.width=t.getColWidth(n.label);var i=new Fe(ie({},n.calendarLocaleOptions));if(null==i?void 0:i.dateFormat){switch(n.type){case e.FieldType.Date:i.dateFormat=t._convertToMomentDateFormat(i.dateFormat);break;case e.FieldType.Time:i.dateFormat=t._convertToMomentHourFormat(i.hourFormat,i.dateFormat)}n.calendarLocaleOptions=i}return n}));var n=this.searchFields.reduce((function(e,n){return e[n.name]=new u.FormControl(n.defaultValue),t.originalFormValues[n.name]=n.defaultValue,e}),{});this.formGroupDialog=new u.FormGroup(n),this.onSearchRequest.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(){return t.loading=!0})),this.onSelect.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(){return t.onChange(t.value)})),this.onUnselect.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(){return t.onChange(t.value)})),this.onClear.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(){return!t.multiple&&t.onChange()})),this.onFocus.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(){t.onTouched()})),this.onBlur.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(e){var n=t.value&&t.value[t.lookupDisplayField],i=e.target.value;if(!t.multiple&&n&&n!=i){e.target.value="",t.onChange("")}}))},n.prototype._convertToMomentHourFormat=function(e,t){return"dd/mm/yy"===t?"LTS":"12"===e?t.replace(/\bH\b/,"h").replace(/\bHH\b/,"hh"):"24"===e?t.replace(/\bh\b/,"H").replace(/\bhh\b/,"HH"):t},n.prototype._convertToMomentDateFormat=function(e){return e.replace(/\bd\b/,"D").replace(/\bdd\b/,"DD").replace(/\bo\b/,"DDD").replace(/\boo\b/,"DDDD").replace(/\bM\b/,"MMM").replace(/\bMM\b/,"MMMM").replace(/\bm\b/,"M").replace(/\bmm\b/,"MM").replace(/\by\b/,"YY").replace(/\byy\b/,"YYYY")},n.prototype.ngAfterViewInit=function(){this.autocomplete.onOverlayAnimationDone=function(e){}},n.prototype.ngOnChanges=function(e){this.dialogVisible&&e.searchGridData&&(this.loading=!1)},n.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},n.prototype.getGridData=function(){return this.searchGridData},n.prototype.getLookupSuggestions=function(){return this.lookupSuggestions},n.prototype.makeSearchRequestParams=function(e){var t=this.formGroupDialog.getRawValue(),n=ie(ie({},e),{filterData:t}),i=e.multiSortMeta;return this.multiSortMeta=i||this.multiSortMeta,n},n.prototype.lazyLoadGrid=function(e){var t=this.makeSearchRequestParams(e);this.onSearchRequest.next(t)},n.prototype.lazyLoadLookup=function(e){this.onLookupRequest.next(e.query)},n.prototype.showDialog=function(){this.searchGridData=void 0,this.onTouched(),this.hotkeysService.pause(pe(this.hotkeysService.hotkeys)),this.setHotkeys();var e=[];this.multiple&&this.value?e=e.concat(this.value):this.value&&(e=[this.value]),this.selected=e,this.loading=!0,this.dialogVisible=!0},n.prototype.hideDialog=function(){var e=this.autocomplete,t=e.inputEL,n=e.multiInputEL;this.dialogVisible=!1,this.collapsed=!1,this.hotkeysService.unpause(pe(this.hotkeysService.pausedHotkeys)),this.multiple?n.nativeElement.focus():t.nativeElement.focus()},n.prototype.search=function(){this.resetTable(),this.collapsed=!0,this.dialog.moveOnTop()},n.prototype.clear=function(){this.formGroupDialog.reset(this.originalFormValues),this.resetTable()},n.prototype.resetTable=function(){this.table.reset()},n.prototype.select=function(){if(this.selected.length){var e=this.selected&&(this.multiple?this.selected:this.selected[0]);this.value=e,this.onSelect.next(e),this.hideDialog()}},n.prototype.onSelectionChange=function(e){e&&(Array.isArray(e)?this.selected=e:this.selected=[e])},n.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.writeValue(n),e(n)}},n.prototype.registerOnTouched=function(e){this.onTouched=e},n.prototype.writeValue=function(e){this.value=e},n.prototype.setDisabledState=function(e){this.disabled=e},n.prototype.getFieldValue=function(e,t){return t.split(".").reduce((function(e,t){return void 0===e[t]?"":e[t]}),e)},n.prototype.getLabelForValue=function(e,t){if(!t)return e;var n=t.find((function(t){return t.value===e}));return n?n.label:e},n.prototype.isBooleanValue=function(e,t){var n=this.getFieldValue(e,t);return!0===n||!1===n},n.prototype.getBooleanLabel=function(e,t,n){var i=this.getFieldValue(e,t);return!0===i?n.true:!1===i?n.false:this.emptyFieldLabel},n.prototype.isNumber=function(e,t){return!new ee(this.getFieldValue(e,t)).isNaN()},n.prototype.setHotkeys=function(){var e=this;[this.newHotkey("alt+shift+l",this.clear.bind(this)),this.newHotkey("alt+shift+f",this.search.bind(this)),this.newHotkey("alt+shift+c",this.hideDialog.bind(this)),this.newHotkey("alt+shift+s",this.select.bind(this))].forEach((function(t){return e.hotkeysService.add(t)}))},n.prototype.newHotkey=function(e,t){return new f.Hotkey(e,(function(){return t(),!1}),["INPUT","SELECT","TEXTAREA"])},n.prototype.filterToggle=function(){this.animating||(this.animating=!0,this.collapsed=!this.collapsed)},n.prototype.onToggleDone=function(){this.animating=!1},n.prototype.getColWidth=function(e){var t=e.length;return t<14.286?"14.286em":t+"em"},n.prototype.getScale=function(e){return this.isFunction(e)?e():e},n.prototype.isFunction=function(e){return e instanceof Function},n.prototype.getNumberMaskConfig=function(e){var t,n,i;return{scale:this.getScale(e.scale),decimalSeparator:null===(t=e.numberLocaleOptions)||void 0===t?void 0:t.decimalSeparator,thousandsSeparator:null===(n=e.numberLocaleOptions)||void 0===n?void 0:n.thousandsSeparator,prefix:null===(i=e.numberLocaleOptions)||void 0===i?void 0:i.currencySymbol}},n.prototype.onTableRowDoubleClick=function(e){this.selected=[e],this.select()},n.nextId=0,n.ctorParameters=function(){return[{type:f.HotkeysService}]},oe([t.Input()],n.prototype,"formControlName",void 0),oe([t.Input()],n.prototype,"id",void 0),oe([t.Input()],n.prototype,"multiple",void 0),oe([t.Input()],n.prototype,"dataKey",void 0),oe([t.Input()],n.prototype,"required",void 0),oe([t.Input()],n.prototype,"disabled",void 0),oe([t.Input()],n.prototype,"showSearch",void 0),oe([t.Input()],n.prototype,"lookupSuggestions",void 0),oe([t.Input()],n.prototype,"lookupDisplayField",void 0),oe([t.Input()],n.prototype,"lookupDisplayFieldTooltip",void 0),oe([t.Input()],n.prototype,"lookupEmptyMessage",void 0),oe([t.Input()],n.prototype,"lookupAppendTo",void 0),oe([t.Input()],n.prototype,"searchTitle",void 0),oe([t.Input()],n.prototype,"searchEmptyTitle",void 0),oe([t.Input()],n.prototype,"searchEmptyDescription",void 0),oe([t.Input()],n.prototype,"searchGridData",void 0),oe([t.Input()],n.prototype,"searchTotalRecords",void 0),oe([t.Input()],n.prototype,"searchFields",void 0),oe([t.Input()],n.prototype,"searchGridFields",void 0),oe([t.Input()],n.prototype,"multiSortMeta",void 0),oe([t.Input()],n.prototype,"filterTitle",void 0),oe([t.Input()],n.prototype,"filterLabel",void 0),oe([t.Input()],n.prototype,"clearLabel",void 0),oe([t.Input()],n.prototype,"cancelLabel",void 0),oe([t.Input()],n.prototype,"selectLabel",void 0),oe([t.Input()],n.prototype,"emptyFieldLabel",void 0),oe([t.Input()],n.prototype,"recordLabel",void 0),oe([t.Input()],n.prototype,"recordsLabel",void 0),oe([t.Input()],n.prototype,"placeholder",void 0),oe([t.Input()],n.prototype,"searchTotalRecordsLabel",void 0),oe([t.Input()],n.prototype,"sortableColumnsDisabled",void 0),oe([t.Input()],n.prototype,"lookupRowProps",void 0),oe([t.Output()],n.prototype,"onLookupRequest",void 0),oe([t.Output()],n.prototype,"onSearchRequest",void 0),oe([t.Output()],n.prototype,"onFocus",void 0),oe([t.Output()],n.prototype,"onBlur",void 0),oe([t.Output()],n.prototype,"onKeyUp",void 0),oe([t.Output()],n.prototype,"onSelect",void 0),oe([t.Output()],n.prototype,"onUnselect",void 0),oe([t.Output()],n.prototype,"onClear",void 0),oe([t.ViewChild(v.Table,{static:!1})],n.prototype,"table",void 0),oe([t.ViewChild(b.Dialog,{static:!1})],n.prototype,"dialog",void 0),oe([t.ViewChild(g.AutoComplete,{static:!1})],n.prototype,"autocomplete",void 0),n=i=oe([t.Component({selector:"s-lookup",template:'<div [ngClass]="{ inputgroup: showSearch }">\n <p-autoComplete\n #autocomplete\n [(ngModel)]="value"\n [disabled]="disabled"\n [dataKey]="dataKey"\n [multiple]="multiple"\n [inputId]="id + \'-autocomplete\'"\n [forceSelection]="true"\n [suggestions]="getLookupSuggestions()"\n (completeMethod)="lazyLoadLookup($event)"\n (onSelect)="onSelect.next($event)"\n (onBlur)="onBlur.next($event)"\n (onFocus)="onFocus.next($event)"\n (onUnselect)="onUnselect.next($event)"\n (onClear)="onClear.next($event)"\n (onKeyUp)="onKeyUp.next($event)"\n [field]="lookupDisplayField"\n [emptyMessage]="lookupEmptyMessage"\n [dropdown]="!showSearch"\n [appendTo]="lookupAppendTo"\n [placeholder]="placeholder || \' \'"\n [autoHighlight]="true"\n inputStyleClass="mousetrap"\n >\n <ng-template let-item pTemplate="selectedItem">\n <span class="ui-autocomplete-token-label ng-tns-c65-43 ng-star-inserted"\n [pTooltip]="lookupDisplayFieldTooltip ? item[lookupDisplayField] : null"\n tooltipPosition="top">\n {{item[lookupDisplayField]}}\n </span>\n </ng-template>\n </p-autoComplete>\n\n <button\n *ngIf="showSearch"\n pButton\n type="button"\n icon="fa fa-search"\n class="button-addon"\n [disabled]="disabled"\n (click)="showDialog()"\n ></button>\n</div>\n\n<p-dialog\n appendTo="body"\n styleClass="s-lookup-modal"\n [header]="searchTitle"\n [(visible)]="dialogVisible"\n [modal]="true"\n (onHide)="hideDialog()"\n [blockScroll]="true"\n [focusOnShow]="true"\n [draggable]="false"\n [resizable]="false"\n #dialog\n>\n <div *ngIf="dialogVisible" class="s-lookup-modal-container">\n <div *ngIf="searchFields && searchFields.length" class="filter"\n [@collapseContent]="collapsed \n ? { value: \'hidden\', params: { transitionParams: transitionOptions } }\n : { value: \'visible\', params: { transitionParams: transitionOptions } }"\n (@collapseContent.done)="onToggleDone()">\n <form [formGroup]="formGroupDialog" novalidate autocomplete="off">\n <div *ngIf="!collapsed"\n [@childCollapseContent]="collapsed\n ? { value: \':leave\', params: { transitionParams: transitionOptions } }\n : { value: \':enter\', params: { transitionParams: transitionOptions } }"\n class="form-content">\n <div class="filter-title sds-section-title">{{ filterTitle }}</div>\n <div class="form-fields">\n <s-dynamic-form [fields]="searchFields" [form]="formGroupDialog"></s-dynamic-form>\n </div>\n <div class="ui-g">\n <div class="ui-g-12">\n <s-button\n [id]="id + \'-filter-button\'"\n type="submit"\n [label]="filterLabel"\n (onClick)="search()"\n pTooltip="(ALT + SHIFT + F)"\n showDelay="500"\n ></s-button>\n <s-button\n [id]="id + \'-clear-button\'"\n type="button"\n [label]="clearLabel"\n (onClick)="clear()"\n priority="link"\n pTooltip="(ALT + SHIFT + L)"\n showDelay="500"\n ></s-button>\n </div>\n </div>\n </div>\n </form>\n </div>\n <div *ngIf="searchFields && searchFields.length" class="filter-toggle">\n <div class="filter-toggle--start-border-mask"></div>\n <button [id]="id + \'-filter-toggle-button\'" type="button" (click)="filterToggle()">\n <span class="fa" [ngClass]="{\'fa-chevron-left\': !collapsed, \'fa-chevron-right\': collapsed}"\n aria-hidden="true"></span>\n </button>\n <div class="filter-toggle--end-border-mask"></div>\n </div>\n <div class="content" [ngClass]="{\'empty-content\': !searchTotalRecords && !loading}">\n <s-empty-state\n [id]="id + \'-empty-state\'"\n *ngIf="!searchTotalRecords && !loading"\n [title]="searchEmptyTitle"\n [description]="searchEmptyDescription"\n iconClass="fa fa-search"\n ></s-empty-state>\n\n <p-table\n [dataKey]="dataKey"\n [value]="getGridData()"\n [columns]="searchGridFields"\n [lazy]="true"\n [scrollable]="true"\n [paginator]="true"\n sortMode="multiple"\n [totalRecords]="searchTotalRecords"\n [rows]="10"\n [selection]="selected"\n (onLazyLoad)="lazyLoadGrid($event)"\n *sLoadingState="loading"\n [multiSortMeta]="multiSortMeta"\n [attr.data-hidden]="!searchTotalRecords && !loading"\n [selectionMode]="multiple ? \'multiple\' : \'single\'"\n (selectionChange)="onSelectionChange($event)"\n >\n <ng-template pTemplate="colgroup" let-columns>\n <colgroup>\n <col *ngIf="multiple" style="width: 50px" />\n <col *ngFor="let col of columns" [style.width]="col.width" />\n </colgroup>\n </ng-template>\n <ng-template pTemplate="header" let-columns>\n <tr>\n <th *ngIf="multiple" style="width: 50px">\n <s-table-header-checkbox [useAllObject]="lookupRowProps ? false : true" [rowProps]="lookupRowProps"></s-table-header-checkbox>\n </th>\n <th\n [style.width]="col.width"\n *ngFor="let col of columns"\n [pSortableColumn]="col.name"\n [pSortableColumnDisabled]="sortableColumnsDisabled?.includes(col.name)"\n >\n <div class="senior-header">\n <span class="senior-header-title">{{ col.label }}</span>\n <p-sortIcon [field]="col.name" *ngIf="!sortableColumnsDisabled?.includes(col.name)"></p-sortIcon>\n </div>\n </th>\n </tr>\n </ng-template>\n <ng-template pTemplate="body" let-rowData let-columns let-rowIndex="rowIndex">\n <tr\n sNavigation\n [pSelectableRow]="rowData"\n [pSelectableRowIndex]="rowIndex"\n sDoubleClick (onDoubleClick)="onTableRowDoubleClick(rowData)"\n >\n <td *ngIf="multiple" style="width: 50px" tabindex="0">\n <p-tableCheckbox [value]="rowData" [pSelectableRow]="rowData"></p-tableCheckbox>\n </td>\n <td\n [style.width]="col[\'width\']"\n *ngFor="let col of searchGridFields"\n [ngSwitch]="col.type"\n tabindex="0"\n >\n <ng-container *ngSwitchCase="\'Boolean\'">\n <ng-container *ngIf="isBooleanValue(rowData, col.name); else emptyTemplate">\n <span>{{ getBooleanLabel(rowData, col.name, col.optionsLabel) }}</span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase="\'Date\'">\n <ng-container *ngIf="getFieldValue(rowData, col.name); else emptyTemplate">\n <span>{{ getFieldValue(rowData, col.name) | localizedDate: col.calendarLocaleOptions?.dateFormat || "L" | async }}</span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase="\'DateTime\'">\n <ng-container *ngIf="getFieldValue(rowData, col.name); else emptyTemplate">\n <span>{{ getFieldValue(rowData, col.name) | localizedDate | async }}</span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase="\'LocalDateTime\'">\n <ng-container *ngIf="getFieldValue(rowData, col.name); else emptyTemplate">\n <span>{{ getFieldValue(rowData, col.name) | localizedDate | async }}</span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase="\'Time\'">\n <ng-container *ngIf="getFieldValue(rowData, col.name); else emptyTemplate">\n <span>{{ getFieldValue(rowData, col.name) | localizedTime: col.calendarLocaleOptions?.dateFormat || "LTS" | async }}</span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase="\'Double\'">\n <ng-container *ngIf="isNumber(rowData, col.name); else emptyTemplate">\n <span> {{ getFieldValue(rowData, col.name) | localizedNumber: getScale(col.scale) | async }} </span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase="\'Money\'">\n <ng-container *ngIf="isNumber(rowData, col.name); else emptyTemplate">\n <span> {{ getFieldValue(rowData, col.name) | localizedCurrency | async }} </span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase="\'Number\'">\n <ng-container *ngIf="isNumber(rowData, col.name); else emptyTemplate">\n <span> {{ getFieldValue(rowData, col.name) | localizedBignumber: getNumberMaskConfig(col) | async }} </span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase="\'Enum\'">\n <ng-container\n *ngIf="getLabelForValue(getFieldValue(rowData, col.name), col.options); else emptyTemplate"\n >\n <span> {{ getLabelForValue(getFieldValue(rowData, col.name), col.options) }} </span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <ng-container *ngIf="col.mask && col.mask()">\n <ng-container *ngIf="(isNumber(rowData, col.name) || getFieldValue(rowData, col.name))">\n <span>{{ getFieldValue(rowData, col.name) | sMaskFormatter: col.mask() }}</span>\n </ng-container>\n </ng-container>\n <ng-container *ngIf="!(col.mask && col.mask())">\n <ng-container *ngIf="(isNumber(rowData, col.name) || getFieldValue(rowData, col.name)); else emptyTemplate">\n <span>{{ getFieldValue(rowData, col.name) }}</span>\n </ng-container>\n </ng-container>\n </ng-container>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate="paginatorright">\n <span [attr.data-hidden]="loading">\n {{\n searchTotalRecordsLabel ||\n searchTotalRecords?.toString() + (searchTotalRecords === 1 ? recordLabel : recordsLabel)\n }}\n </span>\n </ng-template>\n </p-table>\n </div>\n </div>\n\n <p-footer>\n <s-button\n [id]="id + \'-select-button\'"\n type="button"\n [label]="selectLabel"\n (onClick)="select()"\n pTooltip="(ALT + SHIFT + S)"\n showDelay="500"\n [disabled]="!selected?.length"\n ></s-button>\n <s-button\n [id]="id + \'-cancel-button\'"\n type="button"\n priority="link"\n [label]="cancelLabel"\n (onClick)="hideDialog()"\n pTooltip="(ALT + SHIFT + C)"\n showDelay="500"\n ></s-button>\n </p-footer>\n</p-dialog>\n\n<ng-template #emptyTemplate>\n <span [ngClass]="\'sds-empty-value\'">{{ emptyFieldLabel }}</span>\n</ng-template>\n',providers:[{provide:u.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return i})),multi:!0}],encapsulation:t.ViewEncapsulation.None,animations:[d.trigger("collapseContent",[d.state("hidden",d.style({width:"10px",padding:0})),d.state("visible",d.style({width:"*"})),d.transition("visible <=> hidden",[d.group([d.query("@childCollapseContent",d.animateChild()),d.animate("{{transitionParams}}")])])]),d.trigger("childCollapseContent",[d.state(":leave",d.style({opacity:0})),d.state(":enter",d.style({opacity:1})),d.transition("* <=> *",d.animate("{{transitionParams}}"))])],styles:["s-lookup.ng-dirty.ng-invalid .ui-inputtext{border-color:#c13018}s-lookup .ui-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}s-lookup .inputgroup p-autocomplete+button,s-lookup p-autocomplete .ui-autocomplete-dropdown.ui-button{background-color:#fff;border-color:#ccc;border-width:1px 1px 1px 0;color:#333;min-height:34px;height:auto!important;min-width:auto;width:34px!important;overflow:hidden;border-top-left-radius:0;border-bottom-left-radius:0}.ui-fluid s-lookup .inputgroup,s-lookup p-autocomplete span.ui-autocomplete-multiple{display:-ms-flexbox;display:flex}.ui-fluid s-lookup .inputgroup p-autocomplete{display:inline-block}.ui-fluid s-lookup .inputgroup p-autocomplete,.ui-fluid s-lookup p-autocomplete .ui-autocomplete-input{width:calc(100% - 34px)}.ui-fluid s-lookup .inputgroup p-autocomplete .ui-autocomplete-input{width:100%}s-lookup .inputgroup p-autocomplete+button:enabled:hover,s-lookup .inputgroup p-autocomplete+button:focus{background-color:#e6e6e6;border-color:#ccc}s-lookup .inputgroup p-autocomplete .ui-widget .ui-inputtext{border-right-width:1px;border-right-style:solid}s-lookup .ui-autocomplete-input-token,s-lookup .ui-autocomplete-input-token input{width:100%}s-lookup .ui-autocomplete .ui-autocomplete-token{max-width:100%}s-lookup .ui-autocomplete .ui-autocomplete-token-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body .s-lookup-modal.ui-dialog .ui-dialog-content{padding:0;margin-bottom:0;max-height:none}s-lookup .ui-table-scrollable-body{min-width:100%}.s-lookup-modal{height:80%!important;max-width:100%!important;max-height:inherit!important;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:column;flex-direction:column}.s-lookup-modal .ui-dialog-content{height:auto!important;-ms-flex:1;flex:1;overflow:auto}.s-lookup-modal .ui-dialog-footer,.s-lookup-modal .ui-dialog-header{-ms-flex-negative:0;flex-shrink:0;border-radius:0 0 4px 4px}.s-lookup-modal .s-lookup-modal-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:100%;width:100%}.s-lookup-modal .s-lookup-modal-container .filter{position:relative;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;width:85%;background-color:rgba(229,234,234,.5);height:100%;padding:.571rem}.s-lookup-modal .s-lookup-modal-container .filter form{width:100%;height:100%}.s-lookup-modal .s-lookup-modal-container .filter form .form-content{height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.s-lookup-modal .s-lookup-modal-container .filter form .form-content .filter-title{padding-left:.5rem}.s-lookup-modal .s-lookup-modal-container .filter form .form-content .form-fields{overflow-y:auto}.s-lookup-modal .s-lookup-modal-container .filter-toggle{-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;width:34px;border-radius:0 4px 4px 0}.s-lookup-modal .s-lookup-modal-container .filter-toggle button{-ms-flex-align:center;align-items:center;position:relative;background-color:rgba(229,234,234,.5);height:34px;width:100%;border:1px solid #e5eaea;outline:0;border-left:none;border-radius:0 4px 4px 0;cursor:pointer;text-decoration:none;text-transform:none;padding:7px;transition:background-color .2s ease-out,color .2s ease-out,border-color .2s ease-out}.s-lookup-modal .s-lookup-modal-container .filter-toggle button:focus,.s-lookup-modal .s-lookup-modal-container .filter-toggle button:hover{background-color:rgba(201,211,211,.5);border-color:#c9d3d3}.s-lookup-modal .s-lookup-modal-container .filter-toggle--start-border-mask{height:15px;border-left:1px solid #e5eaea}.s-lookup-modal .s-lookup-modal-container .filter-toggle--end-border-mask{height:calc(100% - 49px);border-left:1px solid #e5eaea}.s-lookup-modal .s-lookup-modal-container .content{-ms-flex-positive:1;flex-grow:1;-ms-flex-preferred-size:auto;flex-basis:auto;overflow-x:auto;padding:.5rem}.s-lookup-modal .s-lookup-modal-container .content.empty-content{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}.s-lookup-modal .s-lookup-modal-container .content .s-loading-state-container,.s-lookup-modal .s-lookup-modal-container .content .s-loading-state-container .contents{height:100%}.s-lookup-modal .s-lookup-modal-container .content p-table{position:relative;height:100%}.s-lookup-modal .s-lookup-modal-container .content p-table .ui-table{height:100%}.s-lookup-modal .s-lookup-modal-container .content p-table .ui-table .ui-table-scrollable-wrapper{height:calc(100% - 60px)}.s-lookup-modal .s-lookup-modal-container .content p-table .ui-table .ui-table-scrollable-wrapper .ui-table-scrollable-view{height:100%}.s-lookup-modal .s-lookup-modal-container .content p-table .ui-table .ui-table-scrollable-wrapper .ui-table-scrollable-view .ui-table-scrollable-body{position:relative;height:calc(100% - 60px)}@media (max-width:767px){.s-lookup-modal{border:none!important;top:0!important;left:0!important;width:100%!important;height:100%!important}}@media (min-width:768px){.s-lookup-modal{width:80%!important}.s-lookup-modal .s-lookup-modal-container .filter{width:40%}}@media (min-width:1200px){.s-lookup-modal{width:60%!important}.s-lookup-modal .s-lookup-modal-container .filter{width:30%}}"]})],n)}(),yt=function(){function e(){}return e.prototype.isFunction=function(e){return e instanceof Function},e.prototype.trigger=function(e){return e()},e}();(it=e.DynamicType||(e.DynamicType={})).Autocomplete="Autocomplete",it.Binary="Binary",it.Boolean="Boolean",it.Chips="Chips",it.Date="Date",it.DateTime="DateTime",it.LocalDateTime="LocalDateTime",it.Double="Double",it.Enum="Enum",it.Fieldset="Fieldset",it.Integer="Integer",it.Lookup="Lookup",it.Money="Money",it.Radio="Radio",it.Row="Row",it.Section="Section",it.String="String",it.Text="Text",it.Time="Time",it.Number="Number";var xt,wt=function(e){function t(t){return e.call(this,t)||this}return ne(t,e),t}((function(e){Object.assign(this,ie({},e))})),Ct=function(e){Object.assign(this,ie({},e))},_t=function(e){function t(t){var n=e.call(this,t)||this;return Object.assign(n,ie({},t)),n}return ne(t,e),t}(Ct),It=function(e){function t(t){return e.call(this,t)||this}return ne(t,e),t}(Ct),kt=function(t){var n=t.type,i=t.representedBy;switch(n){case e.DynamicType.Autocomplete:return new Ee(t);case e.DynamicType.Binary:case e.DynamicType.String:return new ht(t);case e.DynamicType.Boolean:return"switch"===i?new et(t):new Qe(t);case e.DynamicType.Chips:return new nt(t);case e.DynamicType.Date:case e.DynamicType.DateTime:case e.DynamicType.LocalDateTime:case e.DynamicType.Time:return new tt(t);case e.DynamicType.Double:return new st(t);case e.DynamicType.Enum:return new ut(t);case e.DynamicType.Fieldset:return new _t(t);case e.DynamicType.Integer:return new at(t);case e.DynamicType.Number:return new Xe(t);case e.DynamicType.Lookup:return new ct(t);case e.DynamicType.Money:return new lt(t);case e.DynamicType.Radio:return new pt(t);case e.DynamicType.Row:return new wt(t);case e.DynamicType.Section:return new It(t);case e.DynamicType.Text:return new ft(t)}},Tt=function(){function e(){this.errorMessages={}}return oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"configs",void 0),oe([t.Input()],e.prototype,"fields",void 0),oe([t.Input()],e.prototype,"form",void 0),oe([t.Input()],e.prototype,"errorMessages",void 0),e=oe([t.Component({selector:"s-dynamic-form",template:'<div *ngIf="configs; else templateFields">\n <ng-container *ngFor="let config of configs">\n <ng-container *sDynamicForm="{ id: id, config: config, group: form, errorMessages: errorMessages }"></ng-container>\n </ng-container>\n</div>\n\n<ng-template #templateFields>\n <s-dynamic-field [id]="id" [fields]="fields" [form]="form" [errorMessages]="errorMessages"></s-dynamic-field>\n</ng-template>\n',encapsulation:t.ViewEncapsulation.None,styles:['label.required:after{content:" *";color:#c13018}']})],e)}(),St=function(){function e(){this.id="s-empty-state-"+n.nextId++,this.iconClass="fa fa-inbox",this.showPrimaryAction=!0,this.showSecondaryAction=!0,this.primaryModel=[],this.primaryAction=new t.EventEmitter,this.secondaryAction=new t.EventEmitter}var n;return n=e,e.nextId=0,oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"iconClass",void 0),oe([t.Input()],e.prototype,"title",void 0),oe([t.Input()],e.prototype,"description",void 0),oe([t.Input()],e.prototype,"showPrimaryAction",void 0),oe([t.Input()],e.prototype,"showSecondaryAction",void 0),oe([t.Input()],e.prototype,"primaryActionLabel",void 0),oe([t.Input()],e.prototype,"secondaryActionLabel",void 0),oe([t.Input()],e.prototype,"primaryModel",void 0),oe([t.Output()],e.prototype,"primaryAction",void 0),oe([t.Output()],e.prototype,"secondaryAction",void 0),e=n=oe([t.Component({selector:"s-empty-state",template:'<div [id]="id" class="container">\n <div [id]="id + \'-icon\'" class="icon">\n <i [attr.class]="iconClass ? iconClass : \'fa fa-cogs\'" aria-hidden="true"></i>\n </div>\n <div [id]="id + \'-title\'" class="title">{{title}}</div>\n <div [id]="id + \'-description\'" class="description" *ngIf="description">\n <p>{{description}}</p>\n </div>\n <div [id]="id + \'-actions\'" class="actions" *ngIf="showPrimaryAction && primaryActionLabel">\n <s-button [id]="id + \'-primary-action\'" type="button" [label]="primaryActionLabel"\n [model]="primaryModel" (click)="primaryAction.next()"></s-button>\n <s-button [id]="id + \'-secondary-action\'" *ngIf="showSecondaryAction && secondaryActionLabel" id="secondaryAction" type="button"\n [label]="secondaryActionLabel" priority="link" (click)="secondaryAction.next()"></s-button>\n </div>\n</div>',styles:[".container{width:100%;text-align:center}.title{font-weight:700;margin-bottom:10px}.description{margin-bottom:15px;color:#999;padding:0 20px;text-align:center}.description>p{margin:auto;max-width:400px;max-height:80px;overflow:hidden}.icon{color:#d8d8d8;font-size:6em}.actions{text-align:center;width:100%}"]})],e)}(),Et=function(){function e(e){this.cookieService=e,this.iconClass="fa fa-exclamation-triangle"}return e.prototype.goBack=function(){var e=this.cookieService.get("com.senior.portal.url");window.open(e,"_top")},e.nextId=0,e.ctorParameters=function(){return[{type:C.CookieService}]},oe([t.Input()],e.prototype,"iconClass",void 0),oe([t.Input()],e.prototype,"title",void 0),oe([t.Input()],e.prototype,"description",void 0),oe([t.Input()],e.prototype,"primaryActionLabel",void 0),e=oe([t.Component({selector:"s-empty-state-go-back",template:'<s-empty-state \n [iconClass]="iconClass" \n [title]="title" \n [description]="description" \n (primaryAction)="goBack()"\n [primaryActionLabel]="primaryActionLabel">\n</s-empty-state>'})],e)}(),Ft=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,ve],providers:[C.CookieService],declarations:[St,Et],exports:[St,Et]})],e)}();(xt=e.ValidateErrors||(e.ValidateErrors={})).MAX_FILE_SIZE="MAX_FILE_SIZE",xt.MAX_FILE_LIMIT="MAX_FILE_LIMIT";var Lt,Mt,Ot={SM_MIN:0,SM_MAX:767,MD_MIN:768,MD_MAX:991,LG_MIN:992,LG_MAX:1199,XL_MIN:1200,XL_MAX:1/0},At=function(){function e(){throw new Error("Classe não deve ser instanciada.")}return e.addClass=function(e,t){e.nativeElement.className=e.nativeElement.className+" "+t},e.removeClass=function(e,t){e.nativeElement.className.includes(t)&&(e.nativeElement.className=e.nativeElement.className.replace(t,""))},e.exportCSV=function(e,t,n,i){var o=this;void 0===e&&(e=[]),void 0===t&&(t=[]),void 0===n&&(n=";"),void 0===i&&(i="download");var r="\ufeff";e.filter((function(e){return e.exportable&&e.field})).forEach((function(t,i){r+='"'+(t.header||t.field)+'"',i<e.length-1&&(r+=n)})),t.forEach((function(t){r+="\n",e.filter((function(e){return e.exportable&&e.field})).forEach((function(i,a){var s;Array.isArray(i.field)?s=i.field.map((function(e){return o.resolveFieldData(t,e)})).flat().filter((function(e){return null!=e})).join(i.separator):s=o.resolveFieldData(t,i.field);s=null!=s?String(s).replace(/"/g,'""'):"",r+='"'+s+'"',a<e.length-1&&(r+=n)}))}));var a=new Blob([r],{type:"text/csv;charset=utf-8;"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(a,i+".csv");else{var s=document.createElement("a");s.style.display="none",document.body.appendChild(s),void 0!==s.download?(s.setAttribute("href",URL.createObjectURL(a)),s.setAttribute("download",i+".csv"),s.click()):(r="data:text/csv;charset=utf-8,"+r,window.open(encodeURI(r))),document.body.removeChild(s)}},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}(),Dt=function(){function n(e){this.sanitizer=e,this.inputValue="",this.id="s-file-upload-"+i.nextId++,this.chooseLabel="Anexar arquivos",this.removeLabel="Remover",this.cancelLabel="Cancelar",this.successTooltip="Arquivo anexado com sucesso",this.ariaLabelProgress="Carregando arquivo",this.disabled=!1,this.uploadHandler=new t.EventEmitter,this.removeFile=new t.EventEmitter,this.cancelUpload=new t.EventEmitter,this.downloadFile=new t.EventEmitter,this.validateErros=new t.EventEmitter,this._files=[],this.ngUsubscribe=new r.Subject}var i;return i=n,n.prototype.ngOnDestroy=function(){this.ngUsubscribe.next(),this.ngUsubscribe.complete()},n.prototype.ngAfterContentInit=function(){this.update()},n.prototype.onResize=function(){this.update()},n.prototype.onFileSelect=function(t){var n,i,o=[];if(this.multiple||(this.files=[]),this.isFileLimitExceeded(t))this.validateErros.emit(e.ValidateErrors.MAX_FILE_LIMIT);else{try{for(var r=le(t),a=r.next();!a.done;a=r.next()){var s=a.value;if(this.isFileSizeExceeded(s))return void this.validateErros.emit(e.ValidateErrors.MAX_FILE_SIZE);o.push(s)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}o.length&&(this.files=this.files.concat(o),this.uploadHandler.emit({files:o}),this.inputUpload.nativeElement.value="")}},n.prototype.onRemoveFile=function(e){var t=this.files.indexOf(e);this.files.splice(t,1).length&&this.removeFile.emit({file:e})},n.prototype.onCancelUpload=function(e){this.files.splice(e,1).length&&this.cancelUpload.emit(e)},n.prototype.onDowloadFile=function(e){this.downloadFile.emit({index:e,anchor:this.anchor})},Object.defineProperty(n.prototype,"files",{get:function(){return this._files},set:function(e){var t=this;this._files=e.map((function(e){return t.isImage(e)&&(e.objectURL=t.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(e))),e}))},enumerable:!0,configurable:!0}),n.prototype.update=function(){var e=window.innerWidth;this.isSmallDevice=e<=Ot.SM_MAX},n.prototype.isImage=function(e){return/^image\//.test(e.type)},n.prototype.isFileLimitExceeded=function(e){return!!this.fileLimit&&this.files.length+e.length>this.fileLimit},n.prototype.isFileSizeExceeded=function(e){return!!this.maxFileSize&&e.size>this.maxFileSize},n.nextId=0,n.ctorParameters=function(){return[{type:B.DomSanitizer}]},oe([t.ViewChild("inputUpload",{static:!1})],n.prototype,"inputUpload",void 0),oe([t.ViewChild("anchor",{static:!1})],n.prototype,"anchor",void 0),oe([t.Input()],n.prototype,"id",void 0),oe([t.Input()],n.prototype,"chooseLabel",void 0),oe([t.Input()],n.prototype,"removeLabel",void 0),oe([t.Input()],n.prototype,"cancelLabel",void 0),oe([t.Input()],n.prototype,"successTooltip",void 0),oe([t.Input()],n.prototype,"multiple",void 0),oe([t.Input()],n.prototype,"accept",void 0),oe([t.Input()],n.prototype,"ariaLabelFileName",void 0),oe([t.Input()],n.prototype,"maxFileSize",void 0),oe([t.Input()],n.prototype,"fileLimit",void 0),oe([t.Input()],n.prototype,"ariaLabelProgress",void 0),oe([t.Input()],n.prototype,"ariaLabelSuccess",void 0),oe([t.Input()],n.prototype,"ariaLabelError",void 0),oe([t.Input()],n.prototype,"ariaLabelRemove",void 0),oe([t.Input()],n.prototype,"formGroup",void 0),oe([t.Input()],n.prototype,"disabled",void 0),oe([t.Output()],n.prototype,"uploadHandler",void 0),oe([t.Output()],n.prototype,"removeFile",void 0),oe([t.Output()],n.prototype,"cancelUpload",void 0),oe([t.Output()],n.prototype,"downloadFile",void 0),oe([t.Output()],n.prototype,"validateErros",void 0),oe([t.HostListener("window:resize")],n.prototype,"onResize",null),oe([t.Input()],n.prototype,"files",null),n=i=oe([t.Component({selector:"s-file-upload",template:'<div\n [id]="id"\n class="s-fileupload">\n <div class="s-fileupload-choose">\n <input\n #inputUpload\n [id]="id+\'input-upload\'"\n type="file"\n name="file"\n [accept]="accept"\n [multiple]="multiple"\n (change)="onFileSelect($event.dataTransfer\n ? $event.dataTransfer.files\n : $event.target.files)"> \n <s-button\n [id]="id + \'upload-button\'"\n [label]="chooseLabel"\n (onClick)="inputUpload.click()"\n priority="primary"\n [disabled]="disabled || !!formGroup?.disabled"\n [auxiliary]="false">\n </s-button>\n </div>\n\n <section\n *ngIf="files.length" \n [id]="id + \'fileupload-list\'"\n class="s-fileupload-list"\n role="grid">\n <ng-container *ngFor="let file of files; let i = index">\n <div\n class="s-fileupload-list-file"\n role="row">\n <div\n [id]="id + \'-file-\' + i + \'-name\'"\n class="s-fileupload-list-file-name"\n role="gridcell">\n <ng-container *ngTemplateOutlet="file.savedFile || file.progress === 100\n ? descriptionUrl\n : description; context: {\n $implicit: file,\n index: i\n }">\n </ng-container>\n </div>\n <div\n class="s-fileupload-list-file-status"\n role="gridcell">\n <p-progressBar\n *ngIf="file.isUploading && !isSmallDevice"\n [style]="{ \'width\': \'250px\', \'background-color\': \'#d8d8d8\', \'border-radius\': \'0px\', \'height\': \'14px\'}"\n [value]="file.progress"\n [showValue]="false"\n role="alert"\n [attr.aria-label]="ariaLabelProgress">\n </p-progressBar>\n <span\n *ngIf="file.isUploading && isSmallDevice" \n [id]="id + \'-file-\' + i + \'-spin\'"\n class="fas fa-circle-notch fa-spin"\n [attr.aria-label]="ariaLabelProgress">\n </span>\n <span\n *ngIf="!file.isUploading && !file.error && file.progress === 100"\n [id]="id + \'-file-\' + i + \'-check\'"\n class="fas fa-check"\n role="alert"\n [attr.aria-label]="ariaLabelSuccess || successTooltip"\n [pTooltip]="successTooltip"\n tooltipPosition="top"\n showDelay="500"\n [appendTo]="\'body\'">\n </span>\n <span\n *ngIf="file.error?.message" \n [id]="id + \'-file-\' + i + \'-error\'"\n class="fas fa-times"\n role="alert"\n [pTooltip]="file.error?.message"\n tooltipPosition="top"\n showDelay="500"\n [appendTo]="\'body\'">\n </span>\n </div>\n <div\n class="s-fileupload-list-file-actions"\n role="gridcell">\n <a\n *ngIf="file.isUploading"\n [id]="id + \'-file-\' + i + \'-cancel\'"\n class="s-fileupload-list-file-actions-action"\n (click)="onCancelUpload(i)">\n {{cancelLabel}}\n </a>\n <a\n *ngIf="!file.isUploading && !(disabled || !!formGroup?.disabled)"\n role="button"\n tabindex="0"\n [id]="id + \'-file-\' + i + \'-remove\'"\n class="s-fileupload-list-file-actions-action"\n (click)="onRemoveFile(file)"\n [attr.aria-label]="ariaLabelRemove || removeLabel">\n {{removeLabel}}\n </a>\n </div>\n </div>\n </ng-container>\n </section>\n</div>\n\n<ng-template\n #descriptionUrl\n let-file\n let-i = index>\n <a\n [id]="id + \'-file-\' + i + \'-name-link\'"\n tabindex="0"\n (click)="onDowloadFile(i)"\n [attr.aria-label]="ariaLabelFileName || file.name">{{file.name}}\n </a>\n <a\n style="display: none;"\n [href]="file.objectURL"\n target="_blank"\n download\n #anchor>\n </a>\n</ng-template>\n\n<ng-template\n #description\n let-file>\n <span\n tabindex="0"\n [attr.aria-label]="ariaLabelFileName || file.name">\n {{file.name}}\n </span>\n</ng-template>\n',styles:[".s-fileupload .s-fileupload-choose{position:relative;margin:15px 0;width:-webkit-max-content;width:max-content}.s-fileupload input[type=file]{display:none}.s-fileupload-list{border:1px solid #ccc}.s-fileupload-list-file:not(:first-child){border-top:1px solid #ccc}.s-fileupload-list .s-fileupload-list-file{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:justify;justify-content:space-between;padding:15px}.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-name{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-name>a{cursor:pointer;text-decoration:none}.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-status{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}.s-fileupload-list .s-fileupload-list-file .fas.fa-circle-notch{color:#d8d8d8;font-size:12px}.s-fileupload-list .s-fileupload-list-file .fas.fa-check{color:#0c9348;font-size:12px}.s-fileupload-list .s-fileupload-list-file .fas.fa-times{color:#c13018;font-size:12px}.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-actions{margin-top:15px;-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center;width:100%}.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-actions a.s-fileupload-list-file-actions-action{text-decoration:none;color:#428bca}.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-actions a.s-fileupload-list-file-actions-action :focus,.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-actions a.s-fileupload-list-file-actions-action :visited,.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-actions a.s-fileupload-list-file-actions-action:hover{text-decoration:none}@media (min-width:768px){.s-fileupload-list .s-fileupload-list-file{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-name{width:auto;-ms-flex-positive:2;flex-grow:2}.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-status{margin:0 15px}.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-actions{margin:0;width:auto}}"]})],n)}(),Rt=function(){function e(){}return e=oe([t.NgModule({declarations:[Dt],imports:[n.CommonModule,ve,l.TooltipModule,z.ProgressBarModule],exports:[Dt]})],e)}(),Nt=function(){function e(){}return e=oe([t.Component({selector:"s-info-sign-component",template:'<span style="display: inline-flex; justify-content: flex-start; align-items: baseline;">\n <span *ngTemplateOutlet="templateRef"></span>\n <i class="fa fa-info-circle"\n aria-hidden="true"\n style="padding-left: 10px"\n [pTooltip]="tooltip"\n [escape]="false"></i>\n</span>'})],e)}(),zt=function(){function e(e,t,n){this.templateRef=e,this.viewContainer=t,this.componentFactoryResolver=n}return e.prototype.ngOnInit=function(){if(!this.componentRef&&this.sInfoSign){this.viewContainer.clear();var e=this.componentFactoryResolver.resolveComponentFactory(Nt);this.componentRef=this.viewContainer.createComponent(e),this.componentRef.instance.templateRef=this.templateRef,this.componentRef.instance.tooltip=this.sInfoSign}else this.componentRef&&this.sInfoSign?this.componentRef.instance.tooltip=this.sInfoSign:(this.viewContainer.clear(),this.viewContainer.createEmbeddedView(this.templateRef))},e.prototype.ngOnDestroy=function(){this.componentRef&&this.componentRef.destroy()},e.ctorParameters=function(){return[{type:t.TemplateRef},{type:t.ViewContainerRef},{type:t.ComponentFactoryResolver}]},oe([t.Input()],e.prototype,"sInfoSign",void 0),e=oe([t.Directive({selector:"[sInfoSign]"})],e)}(),Bt=function(){function e(){}return e=oe([t.NgModule({imports:[l.TooltipModule,n.CommonModule],declarations:[zt,Nt],exports:[zt],entryComponents:[Nt]})],e)}(),Vt=function(){function e(){this.id="s-loading-state-"+n.nextId++,this.BLOCK_TIMEOUT_VALUE=300,this.UNBLOCK_TIMEOUT_VALUE=200}var n;return n=e,Object.defineProperty(e.prototype,"loading",{get:function(){return this._loading},set:function(e){this._loading=e,e?this.block():this.unblock()},enumerable:!0,configurable:!0}),e.prototype.block=function(){var e=this;this.unblockTimeoutId&&(clearTimeout(this.unblockTimeoutId),this.unblockTimeoutId=void 0),this.blockTimeoutId||(this.blockTimeoutId=setTimeout((function(){e.blocking=!0,e.blockTimeoutId=void 0}),this.BLOCK_TIMEOUT_VALUE))},e.prototype.unblock=function(){var e=this;this.blockTimeoutId&&(clearTimeout(this.blockTimeoutId),this.blockTimeoutId=void 0),this.unblockTimeoutId||(this.unblockTimeoutId=setTimeout((function(){e.blocking=!1,e.unblockTimeoutId=void 0}),this.UNBLOCK_TIMEOUT_VALUE))},e.prototype.ngOnDestroy=function(){this.blockTimeoutId&&clearTimeout(this.blockTimeoutId),this.unblockTimeoutId&&clearTimeout(this.unblockTimeoutId)},e.nextId=0,oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"blockWindow",void 0),oe([t.Input()],e.prototype,"loading",null),e=n=oe([t.Component({selector:"s-loading-state",template:'<div\n [id]="id"\n class="s-loading-state-container"\n [ngClass]="{\'loading\': loading, \'blocking\': blocking, \'fullscreen\': blockWindow}">\n <div\n [id]="id + \'-loader\'"\n class="loader">\n <div\n [id]="id + \'-spinner\'"\n class="spinner">\n <div class="bounce bounce-1"></div>\n <div class="bounce bounce-2"></div>\n <div class="bounce bounce-3"></div>\n </div>\n <div\n [id]="id + \'-overlay\'"\n class="overlay">\n </div>\n </div>\n <div\n [id]="id + \'-contents\'"\n class="contents">\n <ng-container *ngTemplateOutlet="contents || originalContent"></ng-container>\n <ng-template #originalContent>\n <ng-content></ng-content>\n </ng-template>\n </div>\n</div>',styles:[".s-loading-state-container{position:relative}.s-loading-state-container>.loader{height:100%;opacity:0;position:absolute;transition:opacity .2s ease-out,display .2s ease-out;visibility:hidden;width:100%}.s-loading-state-container>.loader>.overlay{background-color:#fff;height:100%;opacity:.8;transition:opacity .2s ease-out,display .2s ease-out;width:100%}.s-loading-state-container>.loader>.spinner{display:table;left:50%;position:absolute;text-align:center;top:calc(50% - 9px);transform:translate(-50%);vertical-align:middle;z-index:2}.s-loading-state-container.blocking>.loader,.s-loading-state-container.loading>.loader{visibility:visible}.s-loading-state-container.blocking>.loader,.s-loading-state-container.blocking>.loader>.overlay,.s-loading-state-container.loading>.loader,.s-loading-state-container.loading>.loader>.overlay{cursor:wait;z-index:1}.s-loading-state-container.blocking>.contents,.s-loading-state-container.loading>.contents{z-index:0!important}.s-loading-state-container.loading>.loader>.spinner>.bounce{animation:1.2s ease-out infinite bounce;background-color:#333;border-radius:100%;display:inline-block;height:10px;width:10px}.s-loading-state-container.loading>.loader>.spinner>.bounce+.bounce{margin-left:15px}.s-loading-state-container.loading>.loader>.spinner>.bounce.bounce-1{animation-delay:0s}.s-loading-state-container.loading>.loader>.spinner>.bounce.bounce-2{animation-delay:.1s}.s-loading-state-container.loading>.loader>.spinner>.bounce.bounce-3{animation-delay:.2s}.s-loading-state-container.blocking.loading>.loader{opacity:1}.s-loading-state-container.fullscreen>.loader{left:0;position:fixed;top:0;z-index:1005}@keyframes bounce{100%,80%{transform:scale(1)}90%{transform:scale(1.8)}}::ng-deep .s-loading-state-container.loading.blocking s-loading-state .s-loading-state-container>.loader{opacity:0;visibility:hidden}::ng-deep .s-loading-state-container.loading.blocking s-loading-state .s-loading-state-container>.contents{z-index:0!important}"]})],e)}(),Ut=function(){function e(e,t,n,i){this.target=e,this.template=t,this.componentFactoryResolver=n,this.cdr=i,this._loading=!1}return Object.defineProperty(e.prototype,"sLoadingState",{get:function(){return this._loading},set:function(e){this._loading=e,this.loaderComponent&&(this.loaderComponent.instance.loading=e)},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.createComponent()},e.prototype.createComponent=function(){var e=this.componentFactoryResolver.resolveComponentFactory(Vt);this.loaderComponent=this.target.createComponent(e),this.loaderComponent.instance.contents=this.template,this.loaderComponent.instance.loading=this.sLoadingState,this.cdr.detectChanges()},e.prototype.ngOnDestroy=function(){this.loaderComponent.destroy()},e.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.TemplateRef},{type:t.ComponentFactoryResolver},{type:t.ChangeDetectorRef}]},oe([t.Input()],e.prototype,"sLoadingState",null),e=oe([t.Directive({selector:"[sLoadingState]"})],e)}(),Pt=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule],declarations:[Vt,Ut],exports:[Vt,Ut],entryComponents:[Vt]})],e)}(),jt=function(){function e(){this.decimalSeparator=",",this.thousandsSeparator=".",this.precision=2}var n;return n=e,e.prototype.ngOnInit=function(){this.numberRegex="^((\\+?)|(-?))([0-9]{1,3})+((\\"+this.thousandsSeparator+"[0-9]{3,3})|((\\"+this.thousandsSeparator+"[0-9]{3,3})+(\\"+this.thousandsSeparator+"[0-9]{3,3}))|((\\"+this.thousandsSeparator+"[0-9]{3,3})+(\\"+this.decimalSeparator+"[0-9]{1,2}))|(\\"+this.decimalSeparator+"[0-9]{1,"+this.precision+"}))?$"},e.prototype.validate=function(e){return e.value&&!String(e.value).match(new RegExp(this.numberRegex,"g"))?{invalidNumber:!0}:null},oe([t.Input()],e.prototype,"decimalSeparator",void 0),oe([t.Input()],e.prototype,"thousandsSeparator",void 0),oe([t.Input()],e.prototype,"precision",void 0),e=n=oe([t.Directive({selector:"input[sLocalizedNumberInput]",providers:[{provide:u.NG_VALIDATORS,useExisting:t.forwardRef((function(){return n})),multi:!0}]})],e)}(),Ht=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule],declarations:[jt],exports:[jt]})],e)}(),$t=function(){function e(){this.defs={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z]|[0-9]"}}return e.prototype.transform=function(e,t){for(var n,i=[],o=0,r=t.split(""),a=[],s=t.includes("?"),l=0;l<r.length;l++){var c=r[l];if("?"!=c)if(this.defs[c]){var p=this.defs[c],d=e.charAt(o);if(!new RegExp(p).test(d))throw new Error("Value doesn't match mask format");o<r.length&&(i.push(e.charAt(o)),o++)}else i.push(c),s&&l>n&&a.push(l);else n=l}if(i[i.length-1]!==e.charAt(e.length-1)&&a.length){var u=i.join(""),m=void 0,f=void 0,h=void 0,g=void 0;for(l=0;l<a.length;l++){var b=a[l];m=u.substr(0,b-1),f=u.substr(b-1,1),h=u.substr(b,1),g=u.substr(b+1),u=""+m+h+f+g}return""+u+e.substr(e.length-a.length)}return i.join("")},e=oe([t.Pipe({name:"sMaskFormatter"})],e)}(),Gt=function(){function e(){}return e=oe([t.NgModule({exports:[$t],declarations:[$t]})],e)}(),qt=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.precision=15,t.scale=0,t.decimalSeparator=",",t.thousandsSeparator=".",t.alignTo=y.AlignmentOptions.LEFT,t.allowNegative=!0,t}var i;return ne(n,e),i=n,n.prototype.ngOnInit=function(){this.updateVariables(),e.prototype.ngOnInit.call(this)},n.prototype.ngOnChanges=function(e){!(e.placeholder&&e.placeholder.currentValue)&&this.scale&&(this.placeholder="0"+this.decimalSeparator+"".padEnd(this.scale,"0")),(e.scale||e.decimalSeparator||e.thousandsSeparator||e.alignTo||e.precision||e.allowNegative)&&this.updateVariables()},n.prototype.updateVariables=function(){this.options={align:this.alignTo,decimalSeparator:this.decimalSeparator,thousandsSeparator:this.thousandsSeparator,scale:this.scale||0,prefix:"",suffix:"",allowNegative:this.allowNegative},this.calculateMaxLength()},n.prototype.calculateMaxLength=function(){var e=this.decimalSeparator.length,t=this.thousandsSeparator.length,n=this.precision+(this.scale?e:0);n+=Math.ceil((this.precision-(this.scale?this.scale:0))/3-1)*t,this.maxLength=n},oe([t.Input()],n.prototype,"precision",void 0),oe([t.Input()],n.prototype,"scale",void 0),oe([t.Input()],n.prototype,"decimalSeparator",void 0),oe([t.Input()],n.prototype,"thousandsSeparator",void 0),oe([t.Input()],n.prototype,"alignTo",void 0),oe([t.Input()],n.prototype,"allowNegative",void 0),oe([t.Input(),t.HostBinding("attr.placeholder")],n.prototype,"placeholder",void 0),oe([t.HostBinding("attr.maxLength")],n.prototype,"maxLength",void 0),n=i=oe([t.Directive({selector:"input[sBignumberInput]",providers:[{provide:u.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return i})),multi:!0}]})],n)}(y.CurrencyMaskDirective),Kt=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule],declarations:[qt],exports:[qt]})],e)}(),Wt=function(){function e(e,t){var i=this;this.table=e,this.tableService=t,this.id="s-table-header-checkbox-"+n.nextId++,this.ngUnsubscribe=new r.Subject,this.table.tableService.valueSource$.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(){i.checked=i.updateCheckedState()})),this.table.tableService.selectionSource$.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(){i.checked=i.updateCheckedState()}))}var n;return n=e,e.prototype.ngOnInit=function(){this.checked=this.updateCheckedState()},e.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next()},e.prototype.onFocus=function(){this.hasFocus=!0},e.prototype.onBlur=function(){this.hasFocus=!1},e.prototype.isDisabled=function(){return this.disabled||!this.table.value||!this.table.value.length},e.prototype.onClick=function(){this.disabled||this.table.value&&this.table.value.length>0&&this.onToggleCheckbox(!this.checked)},e.prototype.updateCheckedState=function(){var e;return this.table.filteredValue?(e=this.table.filteredValue)&&e.length>0&&this.table.selection&&this.table.selection.length>0&&this.isAllFilteredValuesChecked():(e=this.table.value)&&e.length>0&&this.table.selection&&this.table.selection.length>0&&this.isAllValuesChecked()},e.prototype.onToggleCheckbox=function(e){var t=this,n=this.table,i=n.filteredValue,o=n.value,r=n.dataKey,a=e?i?i.slice():o.slice():[];if(e){var s=a.filter((function(e){return!t.table._selection.find((function(t){return e[r]===t[r]}))})).map((function(e){if(t.useAllObject)return e;var n={};return t.rowProps?t.rowProps.forEach((function(t){return n[t]=e[t]})):n[r]=e[r],n}));this.table._selection=pe(this.table._selection,s)}else o.forEach((function(e){t.table._selection=t.table._selection.filter((function(t){return t[r]!==e[r]}))}));this.table.updateSelectionKeys(),this.table.selectionChange.emit(this.table._selection),this.tableService.onSelectionChange(),this.table.isStateful()&&this.table.saveState()},e.prototype.isAllFilteredValuesChecked=function(){var e,t;if(this.table.filteredValue){try{for(var n=le(this.table.filteredValue),i=n.next();!i.done;i=n.next()){var o=i.value;if(!this.table.isSelected(o))return!1}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return!0}return!1},e.prototype.isAllValuesChecked=function(){var e,t;if(this.table.value){try{for(var n=le(this.table.value),i=n.next();!i.done;i=n.next()){var o=i.value;if(!this.table.isSelected(o))return!1}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return!0}return!1},e.nextId=0,e.ctorParameters=function(){return[{type:v.Table},{type:v.TableService}]},oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"disabled",void 0),oe([t.Input()],e.prototype,"rowProps",void 0),oe([t.Input()],e.prototype,"useAllObject",void 0),e=n=oe([t.Component({selector:"s-table-header-checkbox",template:'\n <div class="ui-chkbox ui-widget" (click)="onClick()">\n <div class="ui-helper-hidden-accessible">\n <input type="checkbox" [checked]="checked" (focus)="onFocus()" (blur)="onBlur()" [disabled]="isDisabled()">\n </div>\n <div [ngClass]="{\'ui-chkbox-box ui-widget ui-state-default\':true,\n \'ui-state-active\':checked, \'ui-state-disabled\': isDisabled(), \'ui-state-focus\': hasFocus}">\n <span [id]="id" class="ui-chkbox-icon ui-clickable" [ngClass]="{\'pi pi-check\':checked}"></span>\n </div>\n </div>\n '})],e)}(),Yt=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule],exports:[Wt],declarations:[Wt]})],e)}(),Xt=function(){function e(){}return e.prototype.onKeyDown=function(e){switch(e.key){case"Right":case"ArrowRight":this.isRow(e.target)?this.focusFirstColFromCurrentRow(e.target):this.isCol(e.target)&&this.focusNextSelectableCol(e.target),e.preventDefault();break;case"Left":case"ArrowLeft":this.isRow(e.target)?this.focusLastColFromPrevRow(e.target):this.isCol(e.target)&&this.focusPrevSelectableCol(e.target),e.preventDefault();break;case"Up":case"ArrowUp":this.isRow(e.target)?this.setPrevRowFocus(e.target):this.isCol(e.target)&&this.setAboveColFocus(e.target),e.preventDefault();break;case"Down":case"ArrowDown":this.isRow(e.target)?this.setNextRowFocus(e.target):this.isCol(e.target)&&this.setUnderColFocus(e.target),e.preventDefault()}},e.prototype.focusLastColFromPrevRow=function(e){var t=this.findPrevSelectableRow(e);t&&t.lastElementChild.focus()},e.prototype.focusFirstColFromCurrentRow=function(e){var t=e.firstElementChild;t&&t.focus()},e.prototype.focusNextSelectableCol=function(e){var t=e.nextElementSibling;if(!t){var n=e.parentElement;return this.setNextRowFocus(n)}t.focus()},e.prototype.focusPrevSelectableCol=function(e){var t=e.previousElementSibling;if(!t)return e.parentElement.focus();t.focus()},e.prototype.setAboveColFocus=function(e){var t=e.cellIndex,n=e.parentElement,i=this.findPrevSelectableRow(n);i&&i.cells[t].focus()},e.prototype.setUnderColFocus=function(e){var t=e.cellIndex,n=e.parentElement,i=this.findNextSelectableRow(n);i&&i.cells[t].focus()},e.prototype.setNextRowFocus=function(e){var t=this.findNextSelectableRow(e);t&&t.focus()},e.prototype.setPrevRowFocus=function(e){var t=this.findPrevSelectableRow(e);t&&t.focus()},e.prototype.isRow=function(e){return"tr"===e.tagName.toLocaleLowerCase()},e.prototype.isCol=function(e){return"td"===e.tagName.toLocaleLowerCase()},e.prototype.findPrevSelectableRow=function(e){var t=e.previousElementSibling;return t||null},e.prototype.findNextSelectableRow=function(e){var t=e.nextElementSibling;return t||null},oe([t.HostListener("keydown",["$event"])],e.prototype,"onKeyDown",null),e=oe([t.Directive({selector:"[sNavigation]"})],e)}(),Zt=function(e){function n(t){var n=e.call(this,t)||this;return n.dt=t,n}return ne(n,e),n.prototype.onKeydown=function(e){if(this.isEnabled())switch(e.key){case"Enter":this.dt.toggleRow(this.data,e),e.preventDefault();break;default:e.preventDefault()}},n.ctorParameters=function(){return[{type:v.Table}]},oe([t.Input("sRowToggler")],n.prototype,"data",void 0),oe([t.HostListener("keydown",["$event"])],n.prototype,"onKeydown",null),n=oe([t.Directive({selector:"[sRowToggler]"})],n)}(v.RowToggler),Jt=function(){function e(e,n){this.el=e,this.host=n,this.sTableFrozenPosition="left",this.isTableVisible=!1,this.onColumnsChanged=new t.EventEmitter,this.table=n,this.table.styleClass=(this.table.styleClass||"")+" s-table-frozen-position",this.setUpTableEvents(),window.addEventListener("resize",this.handleWindowResize.bind(this));var i=(new Date).getTime(),o=document.getElementsByTagName("head")[0];this.resetRowHeightClassName="resetTableRowsHeight_"+i;var r=document.createElement("style");r.innerHTML="."+this.resetRowHeightClassName+" tbody > tr, ."+this.resetRowHeightClassName+" thead > tr { height: auto; }",o.appendChild(r),this.fixBodyRowClassName="fixTableBodyRowsHeight_"+i,this.styleFixBodyRowHeight=document.createElement("style"),this.styleFixBodyRowHeight.innerHTML="."+this.fixBodyRowClassName+" tbody > tr { height: auto; }",o.appendChild(this.styleFixBodyRowHeight),this.fixHeadRowClassName="fixTableHeadRowsHeight_"+i,this.styleFixHeadRowHeight=document.createElement("style"),this.styleFixHeadRowHeight.innerHTML="."+this.fixHeadRowClassName+" thead > tr { height: auto; }",o.appendChild(this.styleFixHeadRowHeight);var a=document.createElement("style");a.innerHTML=".s-table-frozen-position .ui-table-frozen-view .sds-expanded-row > td { visibility: hidden; }",o.appendChild(a)}return Object.defineProperty(e.prototype,"sTableFrozenValue",{set:function(e){var t=this;setTimeout((function(){t.synchronizeRowHeight(),t.setUpRowResizeMonitoring()}))},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){"left"!==this.sTableFrozenPosition&&(this.applyStylesForTable(),this.setUpColumnMonitoring())},e.prototype.ngAfterContentChecked=function(){!this.isTableVisible&&this.table.el.nativeElement.offsetParent?(this.isTableVisible=!0,this.synchronizeRowHeight()):this.isTableVisible&&!this.table.el.nativeElement.offsetParent&&(this.isTableVisible=!1)},e.prototype.ngOnDestroy=function(){window.removeEventListener("resize",this.handleWindowResize.bind(this)),this.tableHeadObservable&&this.tableHeadObservable.disconnect(),this.rowExpandedObserver&&this.rowExpandedObserver.disconnect()},e.prototype.setUpTableEvents=function(){var e=this;this.table.onColResize.subscribe((function(){e.handleColResize()})),this.table.onRowExpand.subscribe((function(){e.setUpRowResizeMonitoring()}))},e.prototype.setUpRowResizeMonitoring=function(){var e=this;this.rowExpandedObserver&&this.rowExpandedObserver.disconnect(),this.rowExpandedObserver=new window.ResizeObserver((function(){e.applyHeightForExpandedRows()})),setTimeout((function(){var t=e.el.nativeElement.querySelectorAll(".ui-table-frozen-view .sds-expanded-row > td"),n=e.el.nativeElement.querySelectorAll(".ui-table-unfrozen-view .sds-expanded-row > td");t.forEach((function(t,i){var o=n[i],r=o.getBoundingClientRect().height;t.innerHTML='<div style="height: '+r+'px"></div>',t.style.padding="0px",e.rowExpandedObserver.observe(o)}))}))},e.prototype.setUpColumnMonitoring=function(){var e=this;this.tableHeadObservable=new MutationObserver((function(){e.synchronizeRowHeight(),e.onColumnsChanged.emit(null)})),pe(this.el.nativeElement.getElementsByTagName("thead")).forEach((function(t){e.tableHeadObservable.observe(t,{subtree:!0,childList:!0})}))},e.prototype.applyHeightForExpandedRows=function(){var e=this.el.nativeElement.querySelectorAll(".ui-table-frozen-view .sds-expanded-row > td"),t=this.el.nativeElement.querySelectorAll(".ui-table-unfrozen-view .sds-expanded-row > td");e.forEach((function(e,n){var i=t[n].getBoundingClientRect().height,o=e.getBoundingClientRect().height;Math.abs(i-o)>1&&(e.style.height=i+"px",e.innerHTML="<div></div>")}))},e.prototype.applyStylesForTable=function(){var e=this.el.nativeElement.querySelector(".ui-table-scrollable-wrapper");if(e){e.style.display="flex",e.style.flexDirection="row";var t=this.el.nativeElement.querySelector(".ui-table-frozen-view");if(t){t.style.order="1",t.style.borderRight="none",t.style.borderLeft="1px solid #dddddd",t.style.boxShadow="-5px 0 5px -5px #cccccc";var n=this.el.nativeElement.querySelector(".ui-table-unfrozen-view");n?n.style.position="unset":console.warn("Unable to find unfrozen element from table. Is the table configured with frozen template?")}else console.warn("Unable to find frozen element from table. Is the table configured with frozen template?")}else console.warn("Unable to find scroll-wrapper element from table. Is the table configured with frozen template?")},e.prototype.handleWindowResize=function(){this.synchronizeRowHeight()},e.prototype.handleColResize=function(){this.synchronizeRowHeight()},e.prototype.synchronizeRowHeight=function(){var e=pe(this.el.nativeElement.getElementsByClassName("ui-table-scrollable-body")).map((function(e){return pe(e.childNodes).find((function(e){return"TABLE"===e.tagName}))}));this.recalculateDefaultRowHeight(e),this.applyMaxRowHeight(e);var t=pe(this.el.nativeElement.getElementsByClassName("ui-table-scrollable-header-box")).map((function(e){return pe(e.childNodes).find((function(e){return"TABLE"===e.tagName}))}));this.recalculateDefaultRowHeight(t),this.applyMaxRowHeight(t,!0)},e.prototype.recalculateDefaultRowHeight=function(e){var t,n;try{for(var i=le(e),o=i.next();!o.done;o=i.next()){var r=o.value;r.classList.remove(this.fixBodyRowClassName),r.classList.remove(this.fixHeadRowClassName),r.classList.add(this.resetRowHeightClassName)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},e.prototype.applyMaxRowHeight=function(e,t){var n,i,o,r,a,s,l,c;void 0===t&&(t=!1);var p=[];try{for(var d=le(e),u=d.next();!u.done;u=d.next()){var m=u.value;try{for(var f=(o=void 0,le(m.rows)),h=f.next();!h.done;h=f.next()){var g=h.value;g.classList.contains("sds-expanded-row")||p.push(g.getBoundingClientRect().height)}}catch(e){o={error:e}}finally{try{h&&!h.done&&(r=f.return)&&r.call(f)}finally{if(o)throw o.error}}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}if(p.length){var b=Math.max.apply(Math,pe(p));if(t){this.styleFixHeadRowHeight.innerHTML="."+this.fixHeadRowClassName+" thead > tr { height: "+b+"px; }";try{for(var v=le(e),y=v.next();!y.done;y=v.next()){(m=y.value).classList.remove(this.resetRowHeightClassName),m.classList.add(this.fixHeadRowClassName)}}catch(e){a={error:e}}finally{try{y&&!y.done&&(s=v.return)&&s.call(v)}finally{if(a)throw a.error}}}else{this.styleFixBodyRowHeight.innerHTML="."+this.fixBodyRowClassName+" tbody > tr { height: "+b+"px; }";try{for(var x=le(e),w=x.next();!w.done;w=x.next()){(m=w.value).classList.remove(this.resetRowHeightClassName),m.classList.add(this.fixBodyRowClassName)}}catch(e){l={error:e}}finally{try{w&&!w.done&&(c=x.return)&&c.call(x)}finally{if(l)throw l.error}}}}},e.ctorParameters=function(){return[{type:t.ElementRef},{type:v.Table}]},oe([t.Input()],e.prototype,"sTableFrozenPosition",void 0),oe([t.Input()],e.prototype,"sTableFrozenValue",null),e=oe([t.Directive({selector:"[sTableFrozenPosition]"})],e)}(),Qt=new t.InjectionToken("hostProjectConfigs"),en=function(){function e(){}var n;return n=e,e.forRoot=function(e){return{ngModule:n,providers:[{provide:Qt,useValue:e}]}},e=n=oe([t.NgModule({})],e)}();(Lt=e.EnumColumnFieldType||(e.EnumColumnFieldType={})).STRING="STRING",Lt.NUMBER="NUMBER",Lt.BOOLEAN="BOOLEAN",Lt.DATE="DATE",Lt.CURRENCY="CURRENCY",Lt.ENUM="ENUM",Lt.LOOKUP="LOOKUP",Lt.LINK="LINK",Lt.TOKENS="TOKENS",(Mt=e.EnumBadgeColors||(e.EnumBadgeColors={})).RED="sds-semantic-red",Mt.ORANGE="sds-semantic-orange",Mt.YELLOW="sds-semantic-yellow",Mt.GREEN="sds-semantic-green",Mt.BLUE="sds-semantic-blue";var tn,nn,on=function(){function n(e,t,n){this.viewContainerRef=e,this.translate=t,this.hostProjectConfigs=n,this.formattedColumns=[]}return n.prototype.ngOnChanges=function(e){this.validateComponentAttributes(e),this.createColumnsTemplate(e)},n.prototype.validateComponentAttributes=function(e){var t,n,i;if(!(null===(t=e.columns)||void 0===t?void 0:t.currentValue))throw new Error("The 'columns' attribute must be informed!");if(!(null===(n=e.rowValue)||void 0===n?void 0:n.currentValue))throw new Error("The 'rowValue' attribute must be informed!");if(!(null===(i=e.locale)||void 0===i?void 0:i.currentValue))throw new Error("The 'locale' attribute must be informed!")},n.prototype.createColumnsTemplate=function(e){var t=this;this.viewContainerRef.clear();var n=e.columns.currentValue,i=e.rowValue.currentValue,o=e.locale.currentValue;n.forEach((function(e){return t.formattedColumns.push(t.getColumnValue(e,i,o))})),this.viewContainerRef.createEmbeddedView(this.columnsTemplate)},n.prototype.getColumnValue=function(t,n,i){var o=this,r=t.prefix?t.prefix:this.hostProjectConfigs.domain+"."+this.hostProjectConfigs.service+".",a=t.separator?t.separator:" - ",s=this.translate.instant(r+"empty_label"),l=t.style,c={"sds-badge":!1},p=t.attributes.map((function(a){var l;if(a.split("/").forEach((function(e){l||e.split(".").forEach((function(e,t){n&&(0===t?l=n[e]:l&&(l=l[e]))}))})),null==l||o.isArray(l)&&!l.length)return s;var p=ie(ie({},i.number),{scale:t.scale?o.getColumnScale(t.scale):i.number.scale,prefix:i.number.currencySymbol+" "});switch(t.type){case e.EnumColumnFieldType.ENUM:return t.badgeConfigs&&t.badgeConfigs.length&&(c=o.getBadgeClass(l,t.badgeConfigs)),o.translate.instant(t.enumPrefix+l.toString().toLowerCase());case e.EnumColumnFieldType.CURRENCY:return y.applyMask(l,p,o.isNumber(l));case e.EnumColumnFieldType.DATE:var d=t.dateFormat?t.dateFormat:i.calendar.dateFormat;return w(l).format(d);case e.EnumColumnFieldType.BOOLEAN:var u=l?"yes":"no";return o.translate.instant(r+u);case e.EnumColumnFieldType.LINK:case e.EnumColumnFieldType.STRING:return l;case e.EnumColumnFieldType.NUMBER:return p.prefix="",y.applyMask(l,p,o.isNumber(l));case e.EnumColumnFieldType.TOKENS:return o.getTokens(l)}})),d=p.join(a);return{style:l,columnValue:d.split(a).filter((function(e){return e===s})).length===t.attributes.length?s:t.type===e.EnumColumnFieldType.TOKENS?[].concat.apply([],p.filter((function(e){return e!==s}))):d,badgeClass:c,separator:a,uninformed:s,type:t.type,tooltip:this.getColumnTooltip(t.tooltip),onLinkClick:t.onLinkClick,onColumnClick:t.onColumnClick}},n.prototype.getBadgeClass=function(e,t){var n,i={"sds-badge":!0};return i[null===(n=t.find((function(t){return t.enumValue===e})))||void 0===n?void 0:n.color.valueOf()]=!0,i},n.prototype.getColumnScale=function(e){return"function"==typeof e?e(this.rowValue):e},n.prototype.getColumnTooltip=function(e){if(null!=e)return"function"==typeof e?e(this.rowValue):e},n.prototype.isNumber=function(e){return!new ee(e).isNaN()},n.prototype.getTokens=function(e){if(!this.isArray(e))throw new Error("To use tokens an array must be informed");if(!this.isValidTokenArray(e))throw new Error("Not a valid token array. Token array must be a primitive values array or an objects with label attribute array");return this.isLabelObjectArray(e)?e:e.filter((function(e){return null!=e})).map((function(e){return{label:"symbol"==typeof e?e.toString():""+e}}))},n.prototype.isValidTokenArray=function(e){return this.isPrimitiveValuesArray(e)||this.isLabelObjectArray(e)},n.prototype.isPrimitiveValuesArray=function(e){return e.filter((function(e){return e!==Object(e)})).length===e.length},n.prototype.isLabelObjectArray=function(e){return e.filter((function(e){return null!==(null==e?void 0:e.label)&&void 0!==(null==e?void 0:e.label)})).length===e.length},n.prototype.isArray=function(e){return Array.isArray(e)},n.prototype.getSplittedString=function(e){var t=e.columnValue,n=e.separator,i=e.uninformed;if("string"==typeof t){var o=t.split(n);return o.map((function(e,t){var r=o.length-1===t;return{value:e,isUninformed:e===i,separator:r?"":n}}))}},n.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:V.TranslateService},{type:void 0,decorators:[{type:t.Inject,args:[Qt]}]}]},oe([t.ViewChild("columnsTemplate",{static:!0})],n.prototype,"columnsTemplate",void 0),oe([t.Input()],n.prototype,"columns",void 0),oe([t.Input()],n.prototype,"rowValue",void 0),oe([t.Input()],n.prototype,"locale",void 0),n=oe([t.Component({template:'\n<ng-template #columnsTemplate>\n <td *ngFor="let column of formattedColumns" [ngStyle]="column.style" (click)="column.onColumnClick ? column.onColumnClick(rowValue) : null">\n\n <div *ngIf="column.type !== \'TOKENS\' || !isArray(column.columnValue); else tokensTemplate">\n\n <span *ngIf="column.type !== \'LINK\'" [pTooltip]="column.tooltip" [escape]="false" [ngClass]="column.badgeClass">\n <ng-container *ngTemplateOutlet="columnValueTemplate"></ng-container> \n </span>\n\n <a *ngIf="column.type === \'LINK\'" [pTooltip]="column.tooltip" [escape]="false" (click)="column.onLinkClick ? column.onLinkClick(rowValue) : null">\n <ng-container *ngTemplateOutlet="columnValueTemplate"></ng-container> \n </a>\n\n <ng-template #columnValueTemplate>\n <span *ngFor="let value of getSplittedString(column)">\n <span [ngClass]="{ \'sds-empty-value\': value.isUninformed }">{{value.value}}</span>\n <span>{{value.separator}}</span>\n </span>\n </ng-template>\n\n </div>\n\n <ng-template #tokensTemplate>\n <s-token-list\n [tokens]="column.columnValue"\n [hidePointerEvents]="true"\n >\n </s-token-list>\n </ng-template>\n\n </td>\n</ng-template>\n',selector:"s-table-columns",styles:[":host{display:none}"]}),re(2,t.Inject(Qt))],n)}(),rn=function(){function e(){this.id="s-token-list-"+n.nextId++,this.removableTokens=!1,this.hidePointerEvents=!1,this.tokenSelected=new t.EventEmitter,this.tokenRemoved=new t.EventEmitter}var n;return n=e,e.nextId=0,oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"tokens",void 0),oe([t.Input()],e.prototype,"removableTokens",void 0),oe([t.Input()],e.prototype,"hidePointerEvents",void 0),oe([t.Output()],e.prototype,"tokenSelected",void 0),oe([t.Output()],e.prototype,"tokenRemoved",void 0),e=n=oe([t.Component({selector:"s-token-list",template:'<div\n [id]="id"\n class="token-list">\n <ng-container *ngFor="let token of tokens">\n <span\n [id]="token.id"\n class="token"\n [ngClass]="{ \'no-pointer-events\': hidePointerEvents }">\n <a\n [id]="(token.id || \'token\') + \'-label\'"\n class="token-label"\n (click)="tokenSelected.next(token)">\n {{ token.label }}\n </a>\n <span\n *ngIf="removableTokens && !token.notRemovable"\n [id]="token.id + \'-remove\'"\n class="token-icon fa fa-fw fa-close"\n (click)="tokenRemoved.next(token)">\n </span>\n </span>\n </ng-container>\n</div>',styles:['.no-pointer-events{pointer-events:none}.token-list{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%;padding:0 10px;text-transform:none}.token-list .token{-ms-flex-align:center;align-items:center;background-color:#ccc;border-radius:4px;color:#333;display:-ms-flexbox;display:flex;font:400 12px/150% "Open Sans",sans-serif;margin:2px 5px 0 0;max-width:100%;padding:2px 8px}.token-list .token-label{max-width:50ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.token-list .token:focus,.token-list .token:hover{background-color:#e5eaea}.token-list .token a{text-decoration:none;color:#333}']})],e)}(),an=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule],declarations:[rn],exports:[rn]})],e)}(),sn=function(){function e(e,t){this.translate=e,this.hostProjectConfigs=t}return e.prototype.ngOnChanges=function(e){this.totalRecordsText=this.translate.instant(this.getTranslatePrefix()+"total_records",{value:e.totalRecords.currentValue})},e.prototype.getTranslatePrefix=function(){return this.hostProjectConfigs.domain+"."+this.hostProjectConfigs.service+"."},e.prototype.getTooltipText=function(){return this.translate.instant(this.getTranslatePrefix()+"export_to_csv")},e.prototype.getActions=function(){var e=this,t=[{id:"exportCurrentPage",label:this.translate.instant(this.getTranslatePrefix()+"export_current_page"),command:function(){return e.exportCurrentPage()}},{id:"exportSelected",label:this.translate.instant(this.getTranslatePrefix()+"export_selected_records"),command:function(){return e.exportSelectedRecords()}}];return this.loadAllRecords&&t.push({id:"exportAll",label:this.translate.instant(this.getTranslatePrefix()+"export_all_records"),command:function(){return e.exportAllRecords()}}),t},e.prototype.validateComponent=function(){if(!this.table)throw new Error("Table component not defined")},e.prototype.getColumnsToExport=function(){return pe(this.table.columns).map((function(e){var t,n={header:e.header,exportable:!0,field:e.field,separator:null!==(t=e.separator)&&void 0!==t?t:" - ",enumPrefix:e.enumPrefix};return!1===e.exportable&&(n.exportable=!1),e.attributes&&e.attributes.length&&(1===e.attributes.length?n.field=e.attributes[0]:n.field=e.attributes),n}))},e.prototype.getCurrentPageRowsToExport=function(e){return this.mapColumnsTranslations(e,this.table.value)},e.prototype.getSelectedRowsToExport=function(e){return this.mapColumnsTranslations(e,this.table.selection)},e.prototype.mapColumnsTranslations=function(e,t){var n=this,i=e.filter((function(e){return e.enumPrefix}));return i.length?pe(t).map((function(e){for(var t=ie({},e),o=function(o){var r=i[o],a=r.field;Array.isArray(a)||(a=[a]),a.forEach((function(i){var o=e[i];if(null!=o){var a=o.toString().toLowerCase(),s=r.enumPrefix+a,l=n.translate.instant(s);s===l&&a.length>1&&(s=r.enumPrefix+a.substring(0,1)+"_"+a.substr(1),l=n.translate.instant(s)),t[i]=l}}))},r=0;r<=i.length-1;r++)o(r);return t})):t},e.prototype.getExportFileName=function(){var e;return(null!==(e=this.exportFileName)&&void 0!==e?e:"download")+"_"+w(new Date).format("DD-MM-YYYY[_]HH:mm")},e.prototype.exportCurrentPage=function(){this.validateComponent();var e=this.getColumnsToExport(),t=this.getCurrentPageRowsToExport(e);At.exportCSV(e,t,void 0,this.getExportFileName())},e.prototype.exportSelectedRecords=function(){this.validateComponent();var e=this.getColumnsToExport(),t=this.getSelectedRowsToExport(e);At.exportCSV(e,t,void 0,this.getExportFileName())},e.prototype.exportAllRecords=function(){return ae(this,void 0,void 0,(function(){var e,t,n;return se(this,(function(i){switch(i.label){case 0:return this.validateComponent(),[4,this.loadAllRecords()];case 1:return e=i.sent(),t=this.getColumnsToExport(),n=this.mapColumnsTranslations(t,e),At.exportCSV(t,n,void 0,this.getExportFileName()),[2]}}))}))},e.ctorParameters=function(){return[{type:V.TranslateService},{type:void 0,decorators:[{type:t.Inject,args:[Qt]}]}]},oe([t.Input()],e.prototype,"totalRecords",void 0),oe([t.Input()],e.prototype,"exportFileName",void 0),oe([t.Input()],e.prototype,"table",void 0),oe([t.Input()],e.prototype,"loadAllRecords",void 0),oe([t.Output()],e.prototype,"totalRecordsText",void 0),e=oe([t.Component({template:'<div class="paging-container">\n <span class="total-records">\n {{totalRecordsText}}\n </span>\n <s-button class="export-button" \n priority="default" \n iconClass="fa fa-fw fa-file-export" \n [disabled]="false" \n [auxiliary]="true" \n [tooltip]="getTooltipText()" \n [model]="getActions()"></s-button>\n</div>\n',selector:"s-table-paging",styles:[".paging-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.export-button{margin-left:6px}"]}),re(1,t.Inject(Qt))],e)}(),ln=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,l.TooltipModule,an,V.TranslateModule,ve],exports:[Zt,Xt,on,Jt,sn],declarations:[Zt,Xt,on,Jt,sn]})],e)}(),cn=function(){function e(){}return oe([t.Input()],e.prototype,"field",void 0),oe([t.Input()],e.prototype,"formControl",void 0),e=oe([t.Component({template:'<div [pTooltip]="field.tooltip" tooltipPosition="top" [appendTo]="field.appendTo || \'body\'" [showDelay]="500">\n <s-lookup\n [id]="(field.id || field.name)"\n [multiple]="field.multiple"\n [formControl]="formControl"\n [placeholder]="field.placeholder"\n [lookupSuggestions]="field.suggestions"\n [dataKey]="field.dataKey"\n (onLookupRequest)="field.onSearch($event)"\n [lookupDisplayField]="field.displayField"\n [showSearch]="false"\n [lookupAppendTo]="field.appendTo"\n (onSelect)="field.onSelect ? field.onSelect($event) : null"\n (onUnselect)="field.onUnselect ? field.onUnselect($event) : null"\n (onClear)="field.onClear ? field.onClear($event) : null"\n (onBlur)="field.onBlur ? field.onBlur($event) : null"\n [lookupEmptyMessage]="field.emptyMessage"\n >\n </s-lookup>\n</div>\n'})],e)}(),pn=function(){function e(){}return e.prototype.onClear=function(){this.formControl.reset()},oe([t.Input()],e.prototype,"field",void 0),oe([t.Input()],e.prototype,"formControl",void 0),e=oe([t.Component({template:'<ng-container *ngIf="field.verticalAlignment;else horizontalAlignment">\n <div class="ui-g">\n <div class="ui-g-12">\n <p-radioButton\n [name]="field.name"\n [value]="true"\n [label]="field.optionsLabel.true"\n [formControl]="formControl"\n [inputId]="(field.id || field.name) + \'-1\'"\n (onClick)="field.onClick ? field.onClick($event) : null"\n (onFocus)="field.onFocus ? field.onFocus($event) : null"\n (onBlur)="field.onBlur ? field.onBlur($event) : null">\n </p-radioButton>\n </div>\n <div class="ui-g-12">\n <p-radioButton\n [name]="field.name"\n [value]="false"\n [label]="field.optionsLabel.false"\n [formControl]="formControl"\n [inputId]="(field.id || field.name) + \'-2\'"\n (onClick)="field.onClick ? field.onClick($event) : null"\n (onFocus)="field.onFocus ? field.onFocus($event) : null"\n (onBlur)="field.onBlur ? field.onBlur($event) : null">\n </p-radioButton>\n </div>\n <div\n *ngIf="!field.showClear && !field.required()"\n class="ui-g-12">\n <p-radioButton \n [name]="field.name"\n [value]="null"\n [label]="field.optionsLabel.empty"\n [formControl]="formControl"\n [inputId]="(field.id || field.name) + \'-3\'"\n (onClick)="field.onClick ? field.onClick($event) : null"\n (onFocus)="field.onFocus ? field.onFocus($event) : null"\n (onBlur)="field.onBlur ? field.onBlur($event) : null">\n </p-radioButton> \n </div>\n <div>\n <s-button\n *ngIf="field.showClear && !field.required() && !formControl.disabled"\n [label]="field.optionsLabel.clear || \'Clear selection\'"\n (onClick)="onClear()"\n priority="link">\n </s-button>\n </div>\n\n </div>\n</ng-container>\n\n<ng-template #horizontalAlignment>\n <div class="ui-g">\n <p-radioButton\n [name]="field.name"\n [value]="true"\n [label]="field.optionsLabel.true"\n [formControl]="formControl"\n [inputId]="(field.id || field.name) + \'-1\'"\n (onClick)="field.onClick ? field.onClick($event) : null"\n (onFocus)="field.onFocus ? field.onFocus($event) : null"\n (onBlur)="field.onBlur ? field.onBlur($event) : null">\n </p-radioButton>\n \n <p-radioButton\n [name]="field.name"\n [value]="false"\n [label]="field.optionsLabel.false"\n [formControl]="formControl"\n [inputId]="(field.id || field.name) + \'-2\'"\n (onClick)="field.onClick ? field.onClick($event) : null"\n (onFocus)="field.onFocus ? field.onFocus($event) : null"\n (onBlur)="field.onBlur ? field.onBlur($event) : null">\n </p-radioButton>\n\n <p-radioButton\n *ngIf="!field.showClear && !field.required()"\n [name]="field.name"\n [value]="null"\n [label]="field.optionsLabel.empty"\n [formControl]="formControl"\n [inputId]="(field.id || field.name) + \'-3\'"\n (onClick)="field.onClick ? field.onClick($event) : null"\n (onFocus)="field.onFocus ? field.onFocus($event) : null"\n (onBlur)="field.onBlur ? field.onBlur($event) : null">\n </p-radioButton>\n\n <s-button\n *ngIf="field.showClear && !field.required() && !formControl.disabled"\n style="margin-left: 40px;"\n [label]="field.optionsLabel.clear || \'Clear selection\'"\n (onClick)="onClear()"\n priority="link">\n </s-button>\n </div>\n</ng-template>\n'})],e)}(),dn=function(){function e(){}return oe([t.Input()],e.prototype,"field",void 0),oe([t.Input()],e.prototype,"formControl",void 0),oe([t.Input()],e.prototype,"showTime",void 0),oe([t.Input()],e.prototype,"timeOnly",void 0),e=oe([t.Component({template:'<div [pTooltip]="field.tooltip" tooltipPosition="top" [showDelay]="500" [appendTo]="field.appendTo || \'body\'">\n \x3c!-- Remover as propriedades [showTransitionOptions] e [hideTransitionOptions] quando atualizar para o PrimeNG v10, esses atributos foram\n usados para remover um bug ocasionado pela animação do componente p-calendar, bug explicado nas issues: #ERPROM-5534, #ERPROM-8248 e #DSN-1045. --\x3e\n\n <p-calendar\n #calendar\n sCalendarMask\n [inputId]="(field.id || field.name)"\n [name]="field.name"\n [showIcon]="true"\n [timeOnly]="timeOnly"\n [selectionMode]="field.selectionMode"\n [rangeSeparator]="field.rangeSeparator"\n [showTime]="showTime"\n [showSeconds]="field.showSeconds"\n [showOnFocus]="field.showOnFocus"\n [formControl]="formControl"\n icon="fa fa-calendar"\n [minDate]="field.minDate"\n [maxDate]="field.maxDate"\n [defaultDate]="field.defaultDate"\n [locale]="field.calendarLocaleOptions"\n [dateFormat]="field.calendarLocaleOptions.dateFormat"\n [hourFormat]="field.calendarLocaleOptions.hourFormat"\n [view]="field.view"\n [placeholder]="field.placeholder"\n inputStyleClass="mousetrap"\n [appendTo]="field.appendTo"\n (onBlur)="field.onBlur ? field.onBlur($event) : null"\n (onFocus)="field.onFocus ? field.onFocus($event): null"\n (onSelect)="field.onSelect ? field.onSelect($event) : null"\n (onClose)="field.onClose ? field.onClose($event) : null"\n (onTodayClick)="field.onTodayClick ? field.onTodayClick($event) : null"\n (onClearClick)="field.onClearClick ? field.onClearClick($event) : null"\n (onMonthChange)="field.onMonthChange ? field.onMonthChange($event) : null"\n (onYearChange)="field.onYearChange ? field.onYearChange($event) : null"\n [showTransitionOptions]="\'0ms\'"\n [hideTransitionOptions]="\'0ms\'"\n ></p-calendar>\n</div>\n'})],e)}(),un=function(){function e(){}return oe([t.Input()],e.prototype,"field",void 0),oe([t.Input()],e.prototype,"formControl",void 0),e=oe([t.Component({template:'<p-chips\n *ngIf="field.keyFilter"\n [inputId]="(field.id || field.name)"\n [formControl]="formControl"\n [placeholder]="field.placeholder"\n [allowDuplicate]="false"\n [addOnTab]="true"\n [addOnBlur]="true"\n (onAdd)="field.onAdd ? field.onAdd($event) : null"\n (onRemove)="field.onRemove ? field.onRemove($event) : null"\n (onChipClick)="field.onChipClick ? field.onChipClick($event) : null"\n (onFocus)="field.onFocus ? field.onFocus($event) : null"\n (onBlur)="field.onBlur ? field.onBlur($event) : null"\n [pKeyFilter]="field.keyFilter">\n</p-chips>\n\n<p-chips\n *ngIf="!field.keyFilter"\n [inputId]="(field.id || field.name)"\n [formControl]="formControl"\n [placeholder]="field.placeholder"\n [allowDuplicate]="false"\n [addOnTab]="true"\n [addOnBlur]="true"\n (onAdd)="field.onAdd ? field.onAdd($event) : null"\n (onRemove)="field.onRemove ? field.onRemove($event) : null"\n (onChipClick)="field.onChipClick ? field.onChipClick($event) : null"\n (onFocus)="field.onFocus ? field.onFocus($event) : null"\n (onBlur)="field.onBlur ? field.onBlur($event) : null">\n</p-chips>\n'})],e)}(),mn=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return ne(n,e),oe([t.Input()],n.prototype,"field",void 0),oe([t.Input()],n.prototype,"formControl",void 0),n=oe([t.Component({template:'<div class="ui-inputgroup">\n <span *ngIf="field.numberLocaleOptions.currencySymbol" class="ui-inputgroup-addon">{{\n field.numberLocaleOptions.currencySymbol\n }}</span>\n\n <input\n *ngIf="!field.mask"\n type="text"\n [id]="(field.id || field.name)"\n [name]="field.name"\n [formControl]="formControl"\n sNumberInput\n [precision]="isFunction(field.precision) ? trigger(field.precision) : field.precision"\n [scale]="isFunction(field.scale) ? trigger(field.scale) : field.scale"\n [decimalSeparator]="field.numberLocaleOptions.decimalSeparator"\n [thousandsSeparator]="field.numberLocaleOptions.thousandsSeparator"\n [alignTo]="field.alignTo"\n [pTooltip]="field.tooltip"\n tooltipPosition="top"\n [placeholder]="field.placeholder"\n [showDelay]="500"\n pInputText\n [autocomplete]="field.browserAutocomplete ? \'on\' : \'off\'"\n [ngClass]="\'mousetrap\'"\n (blur)="field.onBlur ? field.onBlur($event) : null"\n (focus)="field.onFocus ? field.onFocus($event): null"\n />\n\n <p-inputMask\n *ngIf="field.mask"\n type="text"\n [inputId]="(field.id || field.name)"\n [name]="field.name"\n [formControl]="formControl"\n [mask]="field.mask"\n [placeholder]="field.placeholder"\n slotChar="_"\n [pTooltip]="field.tooltip"\n tooltipPosition="top"\n [showDelay]="500"\n styleClass="mousetrap"\n (onBlur)="field.onBlur ? field.onBlur($event) : null"\n (onFocus)="field.onFocus ? field.onFocus($event): null"\n (onComplete)="field.onComplete ? field.onComplete($event) : null"\n (onInput)="field.onInput ? field.onInput($event) : null"\n ></p-inputMask>\n</div>\n'})],n)}(yt),fn=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return ne(n,e),oe([t.Input()],n.prototype,"field",void 0),oe([t.Input()],n.prototype,"formControl",void 0),n=oe([t.Component({template:'<s-file-upload [id]="(field.id || field.name)" [accept]="field.accept" [files]="field.files" [multiple]="field.multiple"\n [chooseLabel]="field.chooseLabel" [removeLabel]="field.removeLabel" [cancelLabel]="field.cancelLabel"\n [successTooltip]="field.successTooltip" (uploadHandler)="field.onUploadFile($event, field)"\n (removeFile)="field.onRemoveFile($event, field)" (cancelUpload)="field.onCancelUpload($event, field)"\n (downloadFile)="field.onDownloadFile($event, field)" [formGroup]="formControl"> \n</s-file-upload>\n'})],n)}(yt),hn=function(){function e(){}return oe([t.Input()],e.prototype,"field",void 0),oe([t.Input()],e.prototype,"formControl",void 0),e=oe([t.Component({template:'<div [pTooltip]="field.tooltip" tooltipPosition="top" [appendTo]="field.appendTo || \'body\'" [showDelay]="500">\n <s-lookup\n [id]="(field.id || field.name)"\n [multiple]="field.multiple"\n [formControl]="formControl"\n [lookupSuggestions]="field.lookupSuggestions"\n [dataKey]="field.dataKey"\n [placeholder]="field.placeholder"\n [searchFields]="field.searchFields"\n [searchGridFields]="field.searchGridFields"\n [searchGridData]="field.gridData"\n (onLookupRequest)="field.onLookupRequest($event)"\n (onSearchRequest)="field.onSearchRequest($event)"\n [lookupDisplayField]="field.lookupDisplayField"\n [searchTotalRecords]="field.searchTotalRecords"\n [searchTotalRecordsLabel]="field.searchTotalRecordsLabel"\n [searchTitle]="field.searchTitle"\n [selectLabel]="field.selectLabel"\n [searchEmptyTitle]="field.searchEmptyTitle"\n [filterLabel]="field.filterLabel"\n [filterTitle]="field.filterTitle"\n [clearLabel]="field.clearLabel"\n [cancelLabel]="field.cancelLabel"\n (onSelect)="field.onSelect($event)"\n (onUnselect)="field.onUnselect($event)"\n (onClear)="field.onClear ? field.onClear($event) : null"\n (onBlur)="field.onBlur ? field.onBlur($event) : null"\n [lookupAppendTo]="field.appendTo"\n [lookupEmptyMessage]="field.emptyMessage"\n [recordLabel]="field.recordLabel"\n [recordsLabel]="field.recordsLabel"\n >\n </s-lookup>\n</div>\n'})],e)}(),gn=function(n){function i(){var e=null!==n&&n.apply(this,arguments)||this;return e.onInput=new t.EventEmitter,e.onFocus=new t.EventEmitter,e.onComplete=new t.EventEmitter,e.ngUnsubscribe=new r.Subject,e}return ne(i,n),i.prototype.ngOnInit=function(){var e=this;this.onFocus.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onFocus&&e.field.onFocus(t)})),this.onInput.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onInput&&e.field.onInput(t)})),this.onComplete.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onComplete&&e.field.onComplete(t)}))},i.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},Object.defineProperty(i.prototype,"numberAlignmentOption",{get:function(){return e.NumberAlignmentOption},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fieldType",{get:function(){return e.FieldType},enumerable:!0,configurable:!0}),oe([t.Input()],i.prototype,"field",void 0),oe([t.Input()],i.prototype,"formControl",void 0),oe([t.Output()],i.prototype,"onInput",void 0),oe([t.Output()],i.prototype,"onFocus",void 0),oe([t.Output()],i.prototype,"onComplete",void 0),i=oe([t.Component({template:'<p-inputMask\n *ngIf="field.mask; else noMask"\n type="text"\n [inputId]="(field.id || field.name)"\n [name]="field.name"\n [mask]="isFunction(field.mask) ? field.mask() : field.mask"\n [placeholder]="field.placeholder"\n slotChar="_"\n [pTooltip]="field.tooltip"\n tooltipPosition="top"\n [showDelay]="500"\n styleClass="mousetrap"\n (onBlur)="field.onBlur ? field.onBlur($event) : null"\n (onFocus)="onFocus.next($event)"\n (onComplete)="onComplete.next($event)"\n (onInput)="onInput.next($event)"\n [formControl]="formControl"\n></p-inputMask>\n\n<ng-template #noMask>\n <ng-container>\n <div class="ui-inputgroup">\n <ng-container *ngIf="field.leftAddon">\n <span class="ui-inputgroup-addon">\n <span *ngIf="field.leftAddon.label">{{field.leftAddon.label}}</span>\n <span *ngIf="!field.leftAddon.label" [ngClass]="field.leftAddon.icon"></span>\n </span>\n </ng-container>\n\n <ng-container *ngTemplateOutlet="field.type === fieldType.Double && field.alignTo === numberAlignmentOption.LEFT ? localizedNumber : input"></ng-container>\n\n <ng-container *ngIf="field.rightAddon">\n <span class="ui-inputgroup-addon">\n <span *ngIf="field.rightAddon.label">{{field.rightAddon.label}}</span>\n <span *ngIf="!field.rightAddon.label" [ngClass]="field.rightAddon.icon"></span>\n </span>\n </ng-container>\n </div>\n </ng-container>\n</ng-template>\n\n<ng-template #input>\n <input\n [id]="(field.id || field.name)"\n type="text"\n [name]="field.name"\n sNumberInput\n [precision]="isFunction(field.precision) ? trigger(field.precision) : field.precision"\n [scale]="isFunction(field.scale) ? trigger(field.scale) : field.scale"\n [decimalSeparator]="field.numberLocaleOptions.decimalSeparator"\n [thousandsSeparator]="field.numberLocaleOptions.thousandsSeparator"\n [alignTo]="field.alignTo"\n [pTooltip]="field.tooltip"\n tooltipPosition="top"\n [placeholder]="field.placeholder"\n [showDelay]="500"\n pInputText\n [autocomplete]="field.browserAutocomplete ? \'on\' : \'off\'"\n [ngClass]="\'mousetrap\'"\n (blur)="field.onBlur ? field.onBlur($event) : null"\n (focus)="onFocus.next($event)"\n [formControl]="formControl"\n />\n</ng-template>\n\n<ng-template #localizedNumber>\n <input\n [id]="(field.id || field.name)"\n type="text"\n [name]="field.name"\n sLocalizedNumberInput\n [precision]="isFunction(field.precision) ? trigger(field.precision) : field.precision"\n [decimalSeparator]="field.numberLocaleOptions.decimalSeparator"\n [thousandsSeparator]="field.numberLocaleOptions.thousandsSeparator"\n [pTooltip]="field.tooltip"\n tooltipPosition="top"\n [placeholder]="field.placeholder"\n [showDelay]="500"\n pInputText\n [autocomplete]="field.browserAutocomplete ? \'on\' : \'off\'"\n [ngClass]="\'mousetrap\'"\n (blur)="field.onBlur ? field.onBlur($event) : null"\n (focus)="onFocus.next($event)"\n [formControl]="formControl"\n />\n</ng-template>\n',encapsulation:t.ViewEncapsulation.None,styles:["s-number-field.ng-dirty.ng-invalid .ui-inputtext{border-color:#c13018}s-number-field.ng-dirty.ng-invalid .ui-inputtext:hover{border-color:#e44328}"]})],i)}(yt),bn=function(){function e(){this.onClick=new t.EventEmitter,this.onFocus=new t.EventEmitter,this.ngUnsubscribe=new r.Subject}return e.prototype.ngOnInit=function(){var e=this;this.onFocus.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onFocus&&e.field.onFocus(t)})),this.onClick.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onClick&&e.field.onClick(t)}))},e.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},oe([t.Input()],e.prototype,"field",void 0),oe([t.Input()],e.prototype,"formControl",void 0),oe([t.Output()],e.prototype,"onClick",void 0),oe([t.Output()],e.prototype,"onFocus",void 0),e=oe([t.Component({template:'<ng-container *ngIf="field.verticalAlignment;else horizontalAlignment">\n <div class="ui-g">\n <div class="ui-g-12" *ngFor="let option of field.options; let i = index">\n <ng-container [ngTemplateOutlet]="radioButton" [ngTemplateOutletContext]="{option: option, index: i}">\n </ng-container>\n </div>\n </div>\n</ng-container>\n\n<ng-template #horizontalAlignment>\n <div class="ui-g">\n <ng-container *ngFor="let option of field.options; let i = index" [ngTemplateOutlet]="radioButton"\n [ngTemplateOutletContext]="{option: option, index: i}">\n </ng-container>\n </div>\n</ng-template>\n\n<ng-template #radioButton let-option="option" let-i="index">\n <p-radioButton [name]="field.name" [value]="option.value" [label]="option.label" [formControl]="formControl"\n [inputId]="(field.id || field.name) + \'-\' + i" [pTooltip]="field.tooltip" (onClick)="onClick.next($event)"\n (onFocus)="onFocus.next($event)" (onBlur)="field.onBlur ? field.onBlur($event) : null">\n </p-radioButton>\n</ng-template>\n'})],e)}(),vn=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return ne(n,e),oe([t.Input()],n.prototype,"field",void 0),oe([t.Input()],n.prototype,"formControl",void 0),n=oe([t.Component({template:'<p-dropdown\n *ngIf="!field.multiple"\n [inputId]="(field.id || field.name)"\n [name]="field.name"\n [options]="isFunction(field.options) ? field.options() : field.options"\n [placeholder]="field.placeholder || \' \'"\n [formControl]="formControl"\n [pTooltip]="field.tooltip"\n tooltipPosition="top"\n [showDelay]="500"\n [showClear]="field.showClear"\n dataKey="{{field.dataKey}}"\n optionLabel="{{field.optionLabel}}"\n [autoDisplayFirst]="field.autoDisplayFirst"\n [appendTo]="field.appendTo || \'body\'"\n (onClick)="field.onClick ? field.onClick($event) : null"\n (onChange)="field.onChange ? field.onChange($event) : null"\n>\n</p-dropdown>\n<p-multiSelect\n *ngIf="field.multiple"\n [formControl]="formControl"\n [name]="field.name"\n [inputId]="(field.id || field.name)"\n [options]="isFunction(field.options) ? field.options() : field.options"\n [defaultLabel]="field.placeholder"\n [pTooltip]="field.tooltip"\n tooltipPosition="top"\n [emptyFilterMessage]="field.emptyMessage || \'Nenhum registro encontrado\'"\n [showDelay]="500"\n [selectedItemsLabel]="field.multipleSelectedLabel"\n [appendTo]="field.appendTo || \'body\'"\n (onClick)="field.onClick ? field.onClick($event) : null"\n (onChange)="field.onChange ? field.onChange($event) : null"\n>\n</p-multiSelect>\n\n'})],n)}(yt),yn=function(){function e(){}return oe([t.Input()],e.prototype,"field",void 0),oe([t.Input()],e.prototype,"formControl",void 0),e=oe([t.Component({template:'<textarea\n [id]="(field.id || field.name)"\n *ngIf="!field.keyFilter"\n pInputTextarea\n [rows]="field.rows"\n [cols]="field.cols"\n [formControl]="formControl"\n style="resize: vertical;"\n [ngStyle]="field.style"\n></textarea>\n<textarea\n [id]="(field.id || field.name)"\n *ngIf="field.keyFilter"\n pInputTextarea\n [rows]="field.rows"\n [cols]="field.cols"\n [formControl]="formControl"\n style="resize: vertical;"\n [pKeyFilter]="field.keyFilter"\n [ngStyle]="field.style"\n></textarea>\n'})],e)}(),xn=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.onInput=new t.EventEmitter,n.onFocus=new t.EventEmitter,n.onComplete=new t.EventEmitter,n.ngUnsubscribe=new r.Subject,n}return ne(n,e),n.prototype.ngOnInit=function(){var e=this;this.onFocus.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onFocus&&e.field.onFocus(t)})),this.onInput.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onInput&&e.field.onInput(t)})),this.onComplete.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onComplete&&e.field.onComplete(t)}))},n.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},oe([t.Input()],n.prototype,"field",void 0),oe([t.Input()],n.prototype,"formControl",void 0),oe([t.Output()],n.prototype,"onInput",void 0),oe([t.Output()],n.prototype,"onFocus",void 0),oe([t.Output()],n.prototype,"onComplete",void 0),n=oe([t.Component({template:'<p-inputMask\n *ngIf="field.mask; else noMask"\n [type]="field.inputType || \'text\'"\n [inputId]="(field.id || field.name)"\n [name]="field.name"\n [mask]="isFunction(field.mask) ? field.mask() : field.mask"\n [placeholder]="field.placeholder"\n slotChar="_"\n [pTooltip]="field.tooltip"\n tooltipPosition="top"\n [showDelay]="500"\n styleClass="mousetrap"\n (onBlur)="field.onBlur ? field.onBlur($event) : null"\n (onFocus)="onFocus.next($event)"\n (onComplete)="onComplete.next($event)"\n (onInput)="onInput.next($event)"\n [formControl]="formControl"\n></p-inputMask>\n\n<ng-template #noMask>\n <ng-container>\n <div class="ui-inputgroup">\n <ng-container *ngIf="field.leftAddon">\n <span class="ui-inputgroup-addon">\n <span *ngIf="field.leftAddon.label">{{field.leftAddon.label}}</span>\n <span *ngIf="!field.leftAddon.label" [ngClass]="field.leftAddon.icon"></span>\n </span>\n </ng-container>\n\n <ng-container *ngTemplateOutlet="field.keyFilter ? inputKeyFilter : input"></ng-container>\n\n <ng-container *ngIf="field.rightAddon">\n <span class="ui-inputgroup-addon">\n <span *ngIf="field.rightAddon.label">{{field.rightAddon.label}}</span>\n <span *ngIf="!field.rightAddon.label" [ngClass]="field.rightAddon.icon"></span>\n </span>\n </ng-container>\n </div>\n </ng-container>\n</ng-template>\n\n<ng-template #input>\n <input\n [type]="field.inputType || \'text\'"\n [id]="(field.id || field.name)"\n [name]="field.name"\n [pTooltip]="field.tooltip"\n tooltipPosition="top"\n [placeholder]="field.placeholder"\n [showDelay]="500"\n [maxLength]="field.maxLength"\n pInputText\n [autocomplete]="field.browserAutocomplete ? \'on\' : \'off\'"\n [ngClass]="\'mousetrap\'"\n (blur)="field.onBlur ? field.onBlur($event) : null"\n (focus)="onFocus.next($event)"\n (input)="onInput.next($event)"\n [formControl]="formControl"\n [ngStyle]="field.style"\n />\n</ng-template>\n\n<ng-template #inputKeyFilter>\n <input\n #inputText\n [type]="field.inputType || \'text\'"\n [id]="(field.id || field.name)"\n [name]="field.name"\n [pTooltip]="field.tooltip"\n tooltipPosition="top"\n [placeholder]="field.placeholder"\n [showDelay]="500"\n [maxLength]="field.maxLength"\n pInputText\n [autocomplete]="field.browserAutocomplete ? \'on\' : \'off\'"\n [ngClass]="\'mousetrap\'"\n (blur)="field.onBlur ? field.onBlur($event) : null"\n (focus)="onFocus.next($event)"\n (input)="onInput.next($event)"\n [pKeyFilter]="field.keyFilter"\n [formControl]="formControl"\n [ngStyle]="field.style"\n />\n</ng-template>\n',encapsulation:t.ViewEncapsulation.None,styles:["s-text-field.ng-dirty.ng-invalid .ui-inputtext{border-color:#c13018}s-text-field.ng-dirty.ng-invalid .ui-inputtext:hover{border-color:#e44328}"]})],n)}(yt),wn=function(){function e(){}return e.prototype.ngOnInit=function(){},e.prototype.getErrorMessages=function(e){return e?this.isFunction(e)?e():e:this.errorMessages},e.prototype.isFunction=function(e){return e instanceof Function},oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"config",void 0),oe([t.Input()],e.prototype,"group",void 0),oe([t.Input()],e.prototype,"errorMessages",void 0),e=oe([t.Component({template:'\n <div class="ui-fluid" [formGroup]="group">\n <div class="ui-g">\n <ng-container *ngFor="let field of config.fields">\n <div [ngClass]="field.gridClass" *ngIf="field.visible()">\n <label\n [for]="field.name"\n [ngClass]="{ \'required\': field.required() }"\n *sInfoSign="field.infoSign"\n >\n {{ field.label }}\n </label>\n <ng-container *sDynamicForm="{ id: id, config: field, group: group}"></ng-container>\n <s-control-errors [form]="group" [control]="group.controls[field.name]"\n [errorMessages]="getErrorMessages(field.errorMessages)"></s-control-errors>\n </div>\n </ng-container>\n </div>\n '})],e)}(),Cn=function(){function e(){}return oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"config",void 0),oe([t.Input()],e.prototype,"group",void 0),oe([t.Input()],e.prototype,"errorMessages",void 0),e=oe([t.Component({selector:"s-fieldset",template:'\n <p-fieldset [toggleable]="true" (onBeforeToggle)="config.beforeToggle ? config.beforeToggle($event) : \'null\'"\n (onAfterToggle)="config.afterToggle ? config.afterToggle($event) : \'null\'">\n <p-header>{{config.header}}</p-header>\n <ng-container *ngFor="let conf of config.configs">\n <ng-container *sDynamicForm="{ id: id, config: conf, group: group, errorMessages: errorMessages }"></ng-container>\n </ng-container>\n </p-fieldset>\n '})],e)}(),_n=function(){function e(){}return oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"config",void 0),oe([t.Input()],e.prototype,"group",void 0),oe([t.Input()],e.prototype,"errorMessages",void 0),e=oe([t.Component({template:'\n <h3 class="sds-section-title">{{config.header}}</h3>\n <ng-container *ngFor="let conf of config.configs">\n <ng-container *sDynamicForm="{ id: id, config: conf, group: group, errorMessages: errorMessages }"></ng-container>\n </ng-container>\n '})],e)}(),In=function(){function e(){}return e.prototype.ngOnInit=function(){},e.prototype.getErrorMessages=function(e){return e?this.isFunction(e)?ie(ie({},this.errorMessages),e()):ie(ie({},this.errorMessages),e):this.errorMessages},e.prototype.isFunction=function(e){return e instanceof Function},oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"fields",void 0),oe([t.Input()],e.prototype,"form",void 0),oe([t.Input()],e.prototype,"errorMessages",void 0),e=oe([t.Component({selector:"s-dynamic-field",template:'\n <div class="ui-fluid" [formGroup]="form">\n <div class="ui-g">\n <ng-container *ngFor="let field of fields">\n <div [ngClass]="field.gridClass" *ngIf="field.visible()">\n <span *ngIf="field.label"><label [for]="field.name"\n [ngClass]="{ \'required\': field.required() }" *sInfoSign="field.infoSign">{{ field.label }}</label></span>\n <ng-container *sDynamicForm="{ id: id, config: field, group: form}"></ng-container>\n <s-control-errors [form]="form" [control]="form.controls[field.name]"\n [errorMessages]="getErrorMessages(field.errorMessages)"></s-control-errors>\n </div>\n </ng-container>\n </div>\n </div>\n '})],e)}();!function(e){e.Row="Row"}(tn||(tn={})),function(e){e.Fieldset="Fieldset",e.Section="Section"}(nn||(nn={}));var kn,Tn=function(n){function i(){var e=null!==n&&n.apply(this,arguments)||this;return e.onInput=new t.EventEmitter,e.onFocus=new t.EventEmitter,e.onComplete=new t.EventEmitter,e.ngUnsubscribe=new r.Subject,e}return ne(i,n),i.prototype.ngOnInit=function(){var e=this;this.onFocus.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onFocus&&e.field.onFocus(t)})),this.onInput.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onInput&&e.field.onInput(t)})),this.onComplete.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onComplete&&e.field.onComplete(t)}))},i.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},Object.defineProperty(i.prototype,"fieldType",{get:function(){return e.FieldType},enumerable:!0,configurable:!0}),oe([t.Input()],i.prototype,"field",void 0),oe([t.Input()],i.prototype,"formControl",void 0),oe([t.Output()],i.prototype,"onInput",void 0),oe([t.Output()],i.prototype,"onFocus",void 0),oe([t.Output()],i.prototype,"onComplete",void 0),i=oe([t.Component({template:'<p-inputMask\n *ngIf="field.mask; else noMask"\n type="text"\n [inputId]="(field.id || field.name)"\n [name]="field.name"\n [mask]="isFunction(field.mask) ? field.mask() : field.mask"\n [placeholder]="field.placeholder"\n slotChar="_"\n [pTooltip]="field.tooltip"\n tooltipPosition="top"\n [showDelay]="500"\n styleClass="mousetrap"\n (onBlur)="field.onBlur ? field.onBlur($event) : null"\n (onFocus)="onFocus.next($event)"\n (onComplete)="onComplete.next($event)"\n (onInput)="onInput.next($event)"\n [formControl]="formControl"\n></p-inputMask>\n\n<ng-template #noMask>\n <ng-container>\n <div class="ui-inputgroup">\n <ng-container *ngIf="field.leftAddon">\n <span class="ui-inputgroup-addon">\n <span *ngIf="field.leftAddon.label">{{field.leftAddon.label}}</span>\n <span *ngIf="!field.leftAddon.label" [ngClass]="field.leftAddon.icon"></span>\n </span>\n </ng-container>\n\n <input\n [id]="(field.id || field.name)"\n type="text"\n [name]="field.name"\n sBignumberInput\n [precision]="isFunction(field.precision) ? trigger(field.precision) : field.precision"\n [scale]="isFunction(field.scale) ? trigger(field.scale) : field.scale"\n [decimalSeparator]="field.numberLocaleOptions.decimalSeparator"\n [thousandsSeparator]="field.numberLocaleOptions.thousandsSeparator"\n [alignTo]="field.alignTo"\n [pTooltip]="field.tooltip"\n tooltipPosition="top"\n [placeholder]="field.placeholder"\n [showDelay]="500"\n pInputText\n [autocomplete]="field.browserAutocomplete ? \'on\' : \'off\'"\n [ngClass]="\'mousetrap\'"\n (blur)="field.onBlur ? field.onBlur($event) : null"\n (focus)="onFocus.next($event)"\n [formControl]="formControl"\n />\n\n <ng-container *ngIf="field.rightAddon">\n <span class="ui-inputgroup-addon">\n <span *ngIf="field.rightAddon.label">{{field.rightAddon.label}}</span>\n <span *ngIf="!field.rightAddon.label" [ngClass]="field.rightAddon.icon"></span>\n </span>\n </ng-container>\n </div>\n </ng-container>\n</ng-template>',encapsulation:t.ViewEncapsulation.None,styles:["s-number-field.ng-dirty.ng-invalid .ui-inputtext{border-color:#c13018}s-number-field.ng-dirty.ng-invalid .ui-inputtext:hover{border-color:#e44328}"]})],i)}(yt),Sn=function(){function e(){}return oe([t.Input()],e.prototype,"field",void 0),oe([t.Input()],e.prototype,"formControl",void 0),e=oe([t.Component({template:'<div class="ui-g">\n <p-inputSwitch [id]="(field.id || field.name)" [name]="field.name" [formControl]="formControl"\n [pTooltip]="field.tooltip" tooltipPosition="top"\n (onChange)="field.onChange ? field.onChange($event) : null">\n </p-inputSwitch>\n</div>'})],e)}(),En=function(e){var t=e.group,n=e.errorMessages;this.group=t,this.errorMessages=n},Fn=function(t){function n(e){var n=e.group,i=e.field,o=e.errorMessages,r=t.call(this,{group:n,errorMessages:o})||this;return r.field=i,r}return ne(n,t),n.prototype.createComponent=function(e,t){var n=e.resolveComponentFactory(this.getComponent()),i=t.createComponent(n);return i.instance.field=this.field,i.instance.formControl=this.group.controls[this.field.name],i.instance.errorMessages=this.errorMessages,this.setVariablesByType(i),i},n.prototype.setVariablesByType=function(t){this.field.type==e.FieldType.Time&&(t.instance.timeOnly=!0),[e.FieldType.LocalDateTime,e.FieldType.DateTime,e.FieldType.Time].includes(this.field.type)&&(t.instance.showTime=!0)},n.prototype.updateVariables=function(e){e.instance.field=this.field,e.instance.formControl=this.group.controls[this.field.name],this.setVariablesByType(e)},n.prototype.getComponent=function(){switch(this.field.type){case e.FieldType.Autocomplete:return cn;case e.FieldType.Binary:case e.FieldType.String:return xn;case e.FieldType.Boolean:return"switch"===this.field.representedBy?Sn:pn;case e.FieldType.Chips:return un;case e.FieldType.Date:case e.FieldType.DateTime:case e.FieldType.LocalDateTime:case e.FieldType.Time:return dn;case e.FieldType.Double:case e.FieldType.Integer:return gn;case e.FieldType.Number:return Tn;case e.FieldType.Enum:return vn;case e.FieldType.Lookup:return hn;case e.FieldType.Money:return mn;case e.FieldType.Radio:return bn;case e.FieldType.Text:return yn;case e.FieldType.Blob:return fn;case e.FieldType.Custom:return this.field.CustomFieldComponentClass;default:throw new Error("Trying to use an unsupported type ("+this.field.type+").")}},n}(En),Ln=function(e){function t(t){var n=t.group,i=t.config,o=t.errorMessages,r=e.call(this,{group:n,errorMessages:o})||this;return r.config=i,r}return ne(t,e),t.prototype.createComponent=function(e,t){var n=e.resolveComponentFactory(this.getComponent()),i=t.createComponent(n);return i.instance.config=this.config,i.instance.group=this.group,i},t.prototype.updateVariables=function(e){e.instance.structure=this.config,e.instance.group=this.group},t.prototype.getComponent=function(){switch(this.config.type){case nn.Fieldset:return Cn;case nn.Section:return _n;default:throw new Error("Trying to use an unsupported type ("+this.config.type+").")}},t}(En),Mn=function(e){function t(t){var n=t.group,i=t.config,o=t.errorMessages,r=e.call(this,{group:n,errorMessages:o})||this;return r.config=i,r}return ne(t,e),t.prototype.createComponent=function(e,t){var n=e.resolveComponentFactory(this.getComponent()),i=t.createComponent(n);return i.instance.config=this.config,i.instance.group=this.group,i.instance.errorMessages=this.errorMessages,i},t.prototype.updateVariables=function(e){e.instance.config=this.config,e.instance.group=this.group},t.prototype.getComponent=function(){switch(this.config.type){case tn.Row:return wn;default:throw new Error("Trying to use an unsupported type ("+this.config.type+").")}},t}(En),On=function(){function n(e,t){this.resolver=e,this.container=t}return Object.defineProperty(n.prototype,"sDynamicForm",{set:function(e){var t=e.id,n=e.config,i=e.group,o=e.errorMessages;this.id=t,this.config=n,this.group=i,this.errorMessages=o},enumerable:!0,configurable:!0}),n.prototype.ngOnInit=function(){if(this.isField())!this.config.id&&this.id&&(this.config.id=this.id+"-"+this.config.name),this.directiveConfig=new Fn({group:this.group,field:this.config,errorMessages:this.errorMessages});else if(this.isStructure())this.directiveConfig=new Ln({group:this.group,config:this.config,errorMessages:this.errorMessages});else{if(!this.isGrid())throw new Error("Trying to use an unsupported type ("+this.config.type+").");this.directiveConfig=new Mn({group:this.group,config:this.config,errorMessages:this.errorMessages})}this.component=this.directiveConfig.createComponent(this.resolver,this.container),this.component.instance.id=this.id,this.component.instance.errorMessages=this.errorMessages},n.prototype.ngOnChanges=function(){this.component&&(this.directiveConfig.updateVariables(this.component),this.component.instance.errorMessages=this.errorMessages)},n.prototype.isField=function(){return e.FieldType[this.config.type]},n.prototype.isStructure=function(){return nn[this.config.type]},n.prototype.isGrid=function(){return tn[this.config.type]},n.ctorParameters=function(){return[{type:t.ComponentFactoryResolver},{type:t.ViewContainerRef}]},oe([t.Input()],n.prototype,"sDynamicForm",null),n=oe([t.Directive({selector:"[sDynamicForm]"})],n)}(),An=function(){function e(){this.sLongPressDelay=500,this.sLongPress=new t.EventEmitter,this.mouseUp=new r.Subject,this.mouseDown=new r.Subject,this.ngUnsubscribe=new r.Subject}return e.prototype.onMouseUp=function(e){this.mouseUp.next(e)},e.prototype.onMouseDown=function(e){this.mouseDown.next(e)},e.prototype.ngOnInit=function(){var e=this;this.mouseDown.pipe(a.debounceTime(this.sLongPressDelay),a.takeUntil(this.mouseUp),a.repeat(),a.takeUntil(this.ngUnsubscribe)).subscribe((function(t){return e.sLongPress.emit(t)}))},e.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},oe([t.Input()],e.prototype,"sLongPressDelay",void 0),oe([t.Output()],e.prototype,"sLongPress",void 0),oe([t.HostListener("mouseup",["$event"]),t.HostListener("touchend",["$event"])],e.prototype,"onMouseUp",null),oe([t.HostListener("mousedown",["$event"]),t.HostListener("touchstart",["$event"])],e.prototype,"onMouseDown",null),e=oe([t.Directive({selector:"[sLongPress]"})],e)}(),Dn=function(){function e(){this.onDoubleClick=new t.EventEmitter,this._timeout=null,this._DOUBLE_CLICK_DELAY=500}return e.prototype.onClick=function(e){this.handleOnClickEvent(e)},e.prototype.handleOnClickEvent=function(e){var t=this;this._timeout?(this.clearTimeout(),this.onDoubleClick.emit(e)):this._timeout=setTimeout((function(){return t.clearTimeout()}),this._DOUBLE_CLICK_DELAY)},e.prototype.clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},oe([t.Output()],e.prototype,"onDoubleClick",void 0),oe([t.HostListener("click",["$event"])],e.prototype,"onClick",null),e=oe([t.Directive({selector:"[sDoubleClick]"})],e)}(),Rn=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule],declarations:[An,Dn],exports:[An,Dn]})],e)}(),Nn=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,u.FormsModule,u.ReactiveFormsModule,l.TooltipModule,L.InputTextModule,k.CheckboxModule,p.CalendarModule,F.InputMaskModule,S.DropdownModule,rt,Kt,Ht,Ie,Ye,g.AutoCompleteModule,A.MultiSelectModule,I.ButtonModule,ve,R.PanelModule,b.DialogModule,N.RadioButtonModule,v.TableModule,Ft,Pt,f.HotkeyModule,T.ChipsModule,xe,M.InputTextareaModule,N.RadioButtonModule,O.KeyFilterModule,E.FieldsetModule,Yt,Rt,ln,Bt,Gt,f.HotkeyModule.forRoot(),Rn,D.InputSwitchModule],declarations:[cn,pn,dn,un,mn,Tt,In,On,Cn,fn,vt,hn,gn,Tn,bn,wn,_n,vn,yn,xn,Sn],exports:[Tt,vt],entryComponents:[cn,pn,dn,un,mn,Cn,fn,hn,gn,Tn,bn,wn,_n,vn,yn,xn,Sn],providers:[f.HotkeysService]})],e)}(),zn=function(){function e(e){this.http=e}return e.prototype.getCustomFields=function(e,t,n,i){var o={entityId:{domain_:e,service_:t,id:n}};return this.http.post(i,o)},e.prototype.getFileLocationUrl=function(e,t){return this.http.post(t,e)},e.prototype.uploadTempFile=function(e,t){return this.http.put(e,t,{reportProgress:!0,observe:"events",headers:{"Content-Type":t.type}})},e.prototype.requestAccess=function(e,t){return this.http.post(t,{objectId:e})},e.prototype.getFile=function(e){return this.http.get(e,{responseType:"blob"})},e.ctorParameters=function(){return[{type:m.HttpClient}]},e=oe([t.Injectable()],e)}();!function(e){e.String="String",e.Boolean="Boolean",e.Integer="Integer",e.Double="Double",e.Date="Date",e.DateTime="DateTime",e.LocalDateTime="LocalDateTime",e.Time="Time",e.Money="Money",e.Blob="Blob",e.Binary="Binary",e.Any="Any",e.Enum="Enum"}(kn||(kn={}));var Bn=w,Vn=function(){function n(e,t,n,i,o){this.customFieldsService=e,this.localeService=t,this.sanitizer=n,this.translateService=i,this.controlContainer=o,this.customFieldsEndpoint="platform/field_customization/queries/getEntity",this.fileLocationEndpoint="platform/field_customization/actions/requestUpload",this.requestAccessEndpoint="platform/field_customization/actions/requestAccess",this.fields=[],this.ready=!1,this.ngUsubscribe=new r.Subject}var i;return i=n,Object.defineProperty(n.prototype,"parentForm",{get:function(){return this.controlContainer.control},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"parentControl",{get:function(){return this.parentForm.get("custom")},enumerable:!0,configurable:!0}),n.prototype.registerOnChange=function(e){var t=this;this.onChange=e,this.formGroup.valueChanges.subscribe((function(){return t.onChange(t.parseFieldsValues())}))},n.prototype.registerOnTouched=function(e){this.onTouched=e},n.prototype.writeValue=function(e){if(this.ready){var t=this.parseValuesForFields(e);this.formGroup.patchValue(t),this.value=t,this.createFilesIfSetFormValuesAfterInit()}else this.formGroup.patchValue(e||{}),this.value=e},n.prototype.setDisabledState=function(e){e?this.formGroup.disable():this.formGroup.enable()},n.prototype.getCustomFields=function(){return this.entityObject&&this.entityObject.entity_?r.of(this.entityObject):this.customFieldsService.getCustomFields(this.domain,this.service,this.entity,this.customFieldsEndpoint)},n.prototype.ngOnInit=function(){var e=this;if(!this.domain)throw new Error("You need to specify the custom-fields domain!");if(!this.service)throw new Error("You need to specify the custom-fields service!");if(!this.entity)throw new Error("You need to specify the custom-fields entity!");this.formGroup=new u.FormGroup({});var t=[this.getCustomFields(),this.localeService.get()];r.forkJoin(t).pipe(a.takeUntil(this.ngUsubscribe),a.finalize((function(){e.formGroup.markAsPristine(),e.parentControl.markAsPristine()}))).subscribe((function(t){var n=ce(t,2),i=n[0],o=n[1],r={};if(r[kn.String]={},r[kn.Boolean]={defaultValue:!1},r[kn.Integer]={},r[kn.Double]={defaultMask:""},r[kn.Money]={},r[kn.Date]={},r[kn.DateTime]={},r[kn.LocalDateTime]={},r[kn.Time]={},r[kn.Blob]={},r[kn.Enum]={},r[kn.Binary]={},r[kn.Any]={},i&&i.entity_){var a=i.entity_,s=a.active,l=a.fields;s&&(l.filter((function(e){return e.customizable&&e.customization&&e.customization.active})).forEach((function(t){var n=e.getFormField(t,o),i=t.type;t.type===kn.Blob&&e.value&&e.value[n.name]&&e.createBlobToFileUpload(n);var a=t.customization.validationRegex,s=[kn.Boolean,kn.Money,kn.Date,kn.DateTime,kn.LocalDateTime,kn.Time],l=[];a&&!s.includes(i)&&l.push(u.Validators.pattern(a)),i!==kn.Integer||n.mask||l.push(u.Validators.pattern(/^\-?\d*$/)),n.required()&&l.push(u.Validators.required);var c=new u.FormControl({value:r[i].defaultValue,disabled:e.formGroup.disabled},l);e.formGroup.addControl(n.name,c),e.fields.push(n)})),e.createFieldCustomization(l),e.formGroup.patchValue(e.parseValuesForFields(e.value)),e.ready=!0)}}))},n.prototype.ngOnDestroy=function(){this.ngUsubscribe.next(),this.ngUsubscribe.complete()},n.prototype.validate=function(){var e=this,t={};return Object.keys(this.formGroup.controls).forEach((function(n){var i=e.formGroup.get(n).errors;i&&(t[n]=i)})),t},n.prototype.parseValuesForFields=function(t){var n=ie({},t);return this.fields.forEach((function(i){var o=i.type,r=i.name,a=t&&t[r];if(o===e.FieldType.Boolean){var s="string"==typeof a,l=!s&&"boolean"!=typeof a;n[r]=l?null:s?"true"===a:a}if(a)switch(o){case e.FieldType.Date:case e.FieldType.DateTime:n[r]=Bn(a).toDate();break;case e.FieldType.LocalDateTime:n[r]=Bn(a,"YYYY-MM-DD[T]HH:mm:ss.SSS").toDate();break;case e.FieldType.Time:n[r]=Bn(a,"HH:mm:ss").toDate()}})),n},n.prototype.createFilesIfSetFormValuesAfterInit=function(){var t=this;this.hasUploaded||this.fields.filter((function(t){return t.type===e.FieldType.Blob})).forEach((function(e){t.formGroup.get(e.name).value&&t.createBlobToFileUpload(e)}))},n.prototype.parseFieldsValues=function(){var t=this,n={};return this.fields.forEach((function(i){var o=i.type,r=i.name,a=i.mask,s=i.scale,l=t.formGroup.get(r).value;if(l)switch(o){case e.FieldType.Number:a&&(l=new ee(l).toFixed(s).toString());break;case e.FieldType.Date:l=Bn(l).format("YYYY-MM-DD");break;case e.FieldType.DateTime:l=Bn(l).format();break;case e.FieldType.LocalDateTime:l=Bn(l).format("YYYY-MM-DD[T]HH:mm:ss.SSS");break;case e.FieldType.Time:l=Bn(l).format("HH:mm:ss")}null===l||Number.isNaN(l)?t.isTypeNumberOrEnum(o)&&(n[r]=i.multiple?[]:null):n[r]=l})),this.hasBlob&&(n.fieldCustomization=this.formGroup.get("fieldCustomization").value),n},n.prototype.isTypeNumberOrEnum=function(t){return[e.FieldType.Number,e.FieldType.Enum].includes(t)},n.prototype.getFormField=function(t,n){var i,o,r;switch(t.type){case kn.Blob:r=this.getBlobParameters();break;case kn.Boolean:r=this.getBooleanParameters();break;case"Enumeration":case kn.Enum:t.type=e.FieldType.Enum,r=this.getEnumParameters(t);break;case kn.Money:r={type:e.FieldType.Number,leftAddon:{label:null!==(o=null===(i=null==n?void 0:n.number)||void 0===i?void 0:i.currencySymbol)&&void 0!==o?o:"R$"}};break;case kn.Double:r={type:e.FieldType.Number};break;case kn.Integer:r={type:e.FieldType.Number,scale:0};break;default:r={}}return new gt(ie({name:t.id,label:t.customization.label,tooltip:t.customization.tooltip,infoSign:t.customization.infoSign,type:t.type,mask:t.customization.mask,required:function(){return t.customization.mandatory},calendarOptions:n.calendar,currencyOptions:n.number},r))},n.prototype.getEnumParameters=function(e){return{showClear:!0,multiple:e.customization.customEnumeration.multiple,options:e.customization.customEnumeration.values.map((function(e){return{label:e.value,value:e.key}}))}},n.prototype.getBooleanParameters=function(){return{optionsLabel:{true:this.getTranslateLabel("true_label"),false:this.getTranslateLabel("false_label"),empty:this.getTranslateLabel("empty_label")}}},n.prototype.getBlobParameters=function(){var e=this;return{size:{sm:12,md:12,lg:12,xl:12},accept:"image/*, application/*, text/*",chooseLabel:this.getTranslateLabel("choose_label"),removeLabel:this.getTranslateLabel("remove_label"),cancelLabel:this.getTranslateLabel("cancel_label"),successTooltip:this.getTranslateLabel("success_tooltip"),multiple:!1,onUploadFile:function(t,n){e.hasUploaded=!0,e.uploadFile(t,n)},onRemoveFile:function(t,n){e.removeFile(t,n)},onCancelUpload:function(t,n){e.cancelUpload(t,n)},onDownloadFile:function(t,n){e.downloadFile(t,n)}}},n.prototype.createFieldCustomization=function(e){this.hasBlob=!!e.filter((function(e){return e.type===kn.Blob})).length,this.hasBlob&&this.formGroup.addControl("fieldCustomization",new u.FormArray([new u.FormGroup({domain:new u.FormControl(this.domain),service:new u.FormControl(this.service),entity:new u.FormControl(this.entity),toDelete:new u.FormControl({value:{},disabled:!1}),toInsert:new u.FormControl({value:{},disabled:!1})})]))},n.prototype.createBlobToFileUpload=function(e){var t=this.value[e.name]?this.value[e.name]:this.formGroup.get(e.name).value,n={name:t.substring(t.lastIndexOf("/")+1),objectId:t,savedFile:!0};e.files=[n]},n.prototype.downloadFile=function(e,t){var n=this,i=e.index,o=e.anchor,r=t.files[i];r.objectURL?o.nativeElement.click():this.customFieldsService.requestAccess(r.objectId,this.requestAccessEndpoint).pipe(a.takeUntil(this.ngUsubscribe)).subscribe((function(e){var s=e.fileName,l=e.uri;n.customFieldsService.getFile(l).pipe(a.takeUntil(n.ngUsubscribe)).subscribe((function(e){var a=new File([e],s);a.objectURL=n.sanitizer.bypassSecurityTrustUrl(l),o.nativeElement.setAttribute("href",l),a.objectId=r.objectId,a.savedFile=!0,t.files[i]=a,t.files=pe(t.files),o.nativeElement.click()}))}))},n.prototype.uploadFile=function(e,t){var n=this,i=e.files,o=this.fields.find((function(e){return e.name===t.name}));o.files&&o.files.length&&this.removeFile({file:o.files[0]},o),o.files=i;for(var s=function(e){var t=i[e];t.savedFile||t.progress||(t.isUploading=!0,l.formGroup.get(o.name).setValidators(function(e){return function(){return e.isUploading?{isUploading:!0}:null}}(t)),l.formGroup.get(o.name).updateValueAndValidity(),l.customFieldsService.getFileLocationUrl({domain:l.domain,service:l.service,entityName:l.entity,field:o.name,fileName:t.name},l.fileLocationEndpoint).pipe(a.takeUntil(l.ngUsubscribe),a.catchError((function(t){return r.of(n.defaltCatchError(o,t,e))}))).subscribe((function(i){var s=i.location,l=i.version,c=i.objectId;t.version=l,t.objectId=c,t.uploadSubscribe=n.customFieldsService.uploadTempFile(s,t).pipe(a.takeUntil(n.ngUsubscribe),a.catchError((function(t){return r.of(n.defaltCatchError(o,t,e))})),a.finalize((function(){t.isUploading=!1}))).subscribe((function(e){var i,r=e.type;if(n.uploadCanceled)n.uploadCanceled&&r===m.HttpEventType.Response&&(n.uploadCanceled=!1);else if(r===m.HttpEventType.UploadProgress)t.progress=100*Math.round(e.loaded/e.total);else if(r===m.HttpEventType.Response){t.objectURL=n.sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(t));var a={objectId:c,name:t.name,version:t.version},s=n.formGroup.get("fieldCustomization").value[0].toInsert;n.formGroup.get("fieldCustomization").value[0].toInsert=ie(ie({},s),((i={})[o.name]=a,i)),n.formGroup.get(o.name).setValue(t.objectId+"/"+t.name),n.formGroup.get(o.name).clearValidators(),n.formGroup.get(o.name).updateValueAndValidity(),o.files=[t]}})),o.files=[t]})))},l=this,c=0;c<i.length;c++)s(c)},n.prototype.removeFile=function(e,t){var n,i=e.file,o=this.fields.find((function(e){return e.name===t.name}));if(o.files=[],i.objectId){var r=i.savedFile?""+i.objectId:i.objectId+"/"+i.name,a=this.formGroup.get("fieldCustomization").value[0].toDelete;delete this.formGroup.get("fieldCustomization").value[0].toInsert[o.name],this.formGroup.get("fieldCustomization").value[0].toDelete=ie(ie({},a),((n={})[o.name]=pe(a[o.name]||[],[r]),n))}this.formGroup.get(o.name).clearValidators(),this.formGroup.get(o.name).setValue(""),this.formGroup.get(o.name).updateValueAndValidity()},n.prototype.cancelUpload=function(e,t){this.uploadCanceled=!0;var n=this.fields.find((function(e){return e.name===t.name}));n.files[e].uploadSubscribe.unsubscribe(),n.files=[],delete this.formGroup.get("fieldCustomization").value[0].toInsert[n.name],this.formGroup.get(n.name).clearValidators(),this.formGroup.get(n.name).setValue(""),this.formGroup.get(n.name).updateValueAndValidity()},n.prototype.defaltCatchError=function(e,t,n){var i,o=e.files;return o[n].error=t,o[n].isUploading=!1,e.files=pe(o),this.formGroup.get(e.name).setValidators([(i=o[n],function(){return i.error?{uploadError:!0}:null})]),this.formGroup.get(e.name).updateValueAndValidity(),r.throwError(new Error("error in upload file. Details: "+t.message))},n.prototype.getTranslateLabel=function(e){return this.translateService.instant(this.domain+"."+this.service+"."+e)},n.ctorParameters=function(){return[{type:zn},{type:Ne},{type:B.DomSanitizer},{type:V.TranslateService},{type:u.ControlContainer,decorators:[{type:t.Optional}]}]},oe([t.Input()],n.prototype,"domain",void 0),oe([t.Input()],n.prototype,"service",void 0),oe([t.Input()],n.prototype,"entity",void 0),oe([t.Input()],n.prototype,"invalidErrorLabel",void 0),oe([t.Input()],n.prototype,"entityObject",void 0),oe([t.Input()],n.prototype,"customFieldsEndpoint",void 0),oe([t.Input()],n.prototype,"fileLocationEndpoint",void 0),oe([t.Input()],n.prototype,"requestAccessEndpoint",void 0),oe([t.Input()],n.prototype,"requiredErrorMessage",void 0),n=i=oe([t.Component({selector:"s-custom-fields",template:'<s-dynamic-form [fields]="fields" [form]="formGroup" [errorMessages]="{pattern: invalidErrorLabel, required: requiredErrorMessage}"></s-dynamic-form>',providers:[{provide:u.NG_VALUE_ACCESSOR,useExisting:i,multi:!0},{provide:u.NG_VALIDATORS,useExisting:i,multi:!0}]}),re(4,t.Optional())],n)}();var Un,Pn=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,u.FormsModule,u.ReactiveFormsModule,m.HttpClientModule,Ye,Nn,V.TranslateModule],declarations:[Vn],exports:[Vn],providers:[zn,V.TranslateService]})],e)}(),jn=function(){function e(){}return e.prototype.ngAfterViewInit=function(){this.table.bindDocumentEditListener=this.bindDocument.bind(this)},e.prototype.isFromOverlayTrigger=function(e){return e.path.some((function(e){return e.className&&e.className.includes("ng-trigger-overlayAnimation")}))},e.prototype.isFromModal=function(e){return e.path.some((function(e){return e.className&&e.className.includes("s-lookup")}))},e.prototype.bindDocument=function(){var e=this;this.table.documentEditListener||(this.table.documentEditListener=function(t){e.isFromOverlayTrigger(t)||e.isFromModal(t)||!e.table.editingCell||e.table.editingCellClick||!e.table.isEditingCellValid()||(c.DomHandler.removeClass(e.table.editingCell,"ui-editing-cell"),e.table.editingCell=null,e.table.unbindDocumentEditListener()),e.table.editingCellClick=!1},document.addEventListener("click",this.table.documentEditListener))},oe([t.Input()],e.prototype,"table",void 0),e=oe([t.Directive({selector:"p-table[sEditableOverlay]"})],e)}(),Hn=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule],declarations:[jn],exports:[jn]})],e)}(),$n=function(){function e(){}return e=oe([t.Component({selector:"s-header",template:"<ng-content></ng-content>"})],e)}(),Gn=function(){function e(){}return e=oe([t.Component({selector:"s-footer",template:"<ng-content></ng-content>"})],e)}(),qn=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule],declarations:[$n,Gn],exports:[$n,Gn]})],e)}(),Kn=function(){function e(){this.id="s-image-cropper-"+n.nextId++,this.visible=!1,this.header="Recortar imagem",this.cropLabel="Recortar",this.selectAnotherLabel="Trocar",this.removeLabel="Remover",this.cancelLabel="Cancelar",this.emptyStateTitle="Selecione uma foto, em seguida você poderá ajustá-la",this.emptyStateActionLabel="Escolher imagem",this.emptyStateIconClass="fa fa-picture-o",this.aspectRatio=NaN,this.rounded=!1,this.allowSelectAnother=!0,this.allowRemove=!0,this.allowCancel=!0,this.visibleChange=new t.EventEmitter,this.changeImage=new t.EventEmitter,this.croppedImage=new t.EventEmitter,this.croppedCanvas=new t.EventEmitter,this.removedImage=new t.EventEmitter,this.cancel=new t.EventEmitter}var n;return n=e,e.prototype.ngOnInit=function(){this.imageSource&&this.initCropper()},e.prototype.ngOnChanges=function(e){e.imageSource&&e.imageSource.currentValue&&this.initCropper()},e.prototype.initCropper=function(){this.cropper&&this.cropper.destroy(),this.image.nativeElement.src=this.imageSource,this.cropper=new U(this.image.nativeElement,{aspectRatio:this.rounded?1:this.aspectRatio,guides:!1,dragMode:"move",minCropBoxHeight:2,minCropBoxWidth:2,toggleDragModeOnDblclick:!1})},e.prototype.getRoundedCanvas=function(e){var t=document.createElement("canvas"),n=t.getContext("2d"),i=e.width,o=e.height;return t.width=i,t.height=o,n.imageSmoothingEnabled=!0,n.drawImage(e,0,0,i,o),n.globalCompositeOperation="destination-in",n.beginPath(),n.arc(i/2,o/2,Math.min(i,o)/2,0,2*Math.PI,!0),n.fill(),t},e.prototype.onCropImage=function(){if(this.imageSource){var e=this.rounded?this.getRoundedCanvas(this.cropper.getCroppedCanvas()):this.cropper.getCroppedCanvas();this.croppedCanvas.emit(e),this.croppedImage.emit(e.toDataURL())}else this.croppedImage.emit(),this.croppedCanvas.emit();this.visibleChange.emit(!1)},e.prototype.onChangeImage=function(){this.changeImage.emit()},e.prototype.onRemoveImage=function(){this.imageSource=void 0,this.removedImage.emit()},e.prototype.onCancel=function(){this.visibleChange.emit(!1),this.cancel.emit()},e.prototype.onModalVisibleChange=function(e){e||this.onCancel(),this.visibleChange.emit(e)},e.nextId=0,oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"visible",void 0),oe([t.Input()],e.prototype,"header",void 0),oe([t.Input()],e.prototype,"cropLabel",void 0),oe([t.Input()],e.prototype,"selectAnotherLabel",void 0),oe([t.Input()],e.prototype,"removeLabel",void 0),oe([t.Input()],e.prototype,"cancelLabel",void 0),oe([t.Input()],e.prototype,"emptyStateTitle",void 0),oe([t.Input()],e.prototype,"emptyStateActionLabel",void 0),oe([t.Input()],e.prototype,"emptyStateIconClass",void 0),oe([t.Input()],e.prototype,"aspectRatio",void 0),oe([t.Input()],e.prototype,"rounded",void 0),oe([t.Input()],e.prototype,"allowSelectAnother",void 0),oe([t.Input()],e.prototype,"allowRemove",void 0),oe([t.Input()],e.prototype,"allowCancel",void 0),oe([t.Input()],e.prototype,"imageSource",void 0),oe([t.Output()],e.prototype,"visibleChange",void 0),oe([t.Output()],e.prototype,"changeImage",void 0),oe([t.Output()],e.prototype,"croppedImage",void 0),oe([t.Output()],e.prototype,"croppedCanvas",void 0),oe([t.Output()],e.prototype,"removedImage",void 0),oe([t.Output()],e.prototype,"cancel",void 0),oe([t.ViewChild("image",{static:!0})],e.prototype,"image",void 0),oe([t.ContentChild($n,{static:!0})],e.prototype,"headerSection",void 0),oe([t.ContentChild(Gn,{static:!0})],e.prototype,"footerSection",void 0),e=n=oe([t.Component({selector:"s-image-cropper",template:'<div [id]="id">\n <p-dialog styleClass="s-image-cropper {{rounded ? \'s-image-cropper--rounded\' : \'\'}}" [header]="headerSection ? \'\' : header"\n [visible]="visible" (visibleChange)="onModalVisibleChange($event)" [modal]="true" [blockScroll]="true"\n [draggable]="false" [resizable]="false" [closeOnEscape]="allowCancel" [closable]="allowCancel" appendTo="body">\n\n <p-header *ngIf="headerSection">\n <ng-content select="s-header"></ng-content>\n </p-header>\n\n <s-empty-state [id]="id + \'-empty-state\'" *ngIf="!imageSource" [title]="emptyStateTitle" [iconClass]="emptyStateIconClass"\n [primaryActionLabel]="emptyStateActionLabel" (primaryAction)="onChangeImage()"></s-empty-state>\n\n <div [attr.data-hidden]="!imageSource" class="image-container">\n <img [id]="id + \'-cropper\'" #image [src]="imageSource || \'\'" />\n </div>\n\n <p-footer>\n <div class="ui-fluid" *ngIf="!footerSection">\n <div class="ui-g button-container">\n\n <div *ngIf="allowCancel" class="ui-sm-12 ui-md-3 ui-lg-2 ui-xl-2">\n <s-button [id]="id + \'-cancel-button\'" type="button" priority="link" [label]="cancelLabel"\n (onClick)="onCancel()"></s-button>\n </div>\n\n <div *ngIf="imageSource && allowRemove" class="ui-sm-12 ui-md-3 ui-lg-2 ui-xl-2">\n <s-button [id]="id + \'-remove-button\'" type="button" priority="secondary" [label]="removeLabel"\n (onClick)="onRemoveImage()"></s-button>\n </div>\n\n <div *ngIf="imageSource && allowSelectAnother" class="ui-sm-12 ui-md-3 ui-lg-2 ui-xl-2">\n <s-button [id]="id + \'-select-another-button\'" type="button" priority="secondary" [label]="selectAnotherLabel"\n (onClick)="onChangeImage()"></s-button>\n </div>\n\n <div class="ui-sm-12 ui-md-3 ui-lg-2 ui-xl-2">\n <s-button [id]="id + \'-crop-button\'" type="button" [label]="cropLabel" (onClick)="onCropImage()"></s-button>\n </div>\n\n </div>\n </div>\n\n <ng-content select="s-footer" *ngIf="footerSection"></ng-content>\n </p-footer>\n </p-dialog>\n</div>',encapsulation:t.ViewEncapsulation.None,styles:['/*!\n * Cropper.js v1.4.1\n * https://fengyuanchen.github.io/cropperjs\n *\n * Copyright 2015-present Chen Fengyuan\n * Released under the MIT license\n *\n * Date: 2018-07-15T09:54:43.167Z\n */.cropper-container{-moz-user-select:none;-ms-touch-action:none;-ms-user-select:none;-webkit-user-select:none;direction:ltr;font-size:0;line-height:0;position:relative;touch-action:none;user-select:none}.cropper-container img{display:block;height:100%;image-orientation:0deg;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.cropper-canvas,.cropper-crop-box,.cropper-drag-box,.cropper-modal,.cropper-wrap-box{bottom:0;left:0;position:absolute;right:0;top:0}.cropper-canvas,.cropper-wrap-box{overflow:hidden}.cropper-drag-box{background-color:#fff;opacity:0}.cropper-modal{background-color:#000;opacity:.5}.cropper-view-box{display:block;height:100%;outline:rgba(51,153,255,.75) solid 1px;overflow:hidden;width:100%}.cropper-dashed{border:0 dashed #eee;display:block;opacity:.5;position:absolute}.cropper-dashed.dashed-h{border-bottom-width:1px;border-top-width:1px;height:33.33333%;left:0;top:33.33333%;width:100%}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;height:100%;left:33.33333%;top:0;width:33.33333%}.cropper-center{display:block;height:0;left:50%;opacity:.75;position:absolute;top:50%;width:0}.cropper-center:after,.cropper-center:before{background-color:#eee;content:" ";display:block;position:absolute}.cropper-center:before{height:1px;left:-3px;top:0;width:7px}.cropper-center:after{height:7px;left:0;top:-3px;width:1px}.cropper-face,.cropper-line,.cropper-point{display:block;height:100%;opacity:.1;position:absolute;width:100%}.cropper-face{background-color:#fff;left:0;top:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;right:-3px;top:0;width:5px}.cropper-line.line-n{cursor:ns-resize;height:5px;left:0;top:-3px}.cropper-line.line-w{cursor:ew-resize;left:-3px;top:0;width:5px}.cropper-line.line-s{bottom:-3px;cursor:ns-resize;height:5px;left:0}.cropper-point{background-color:#39f;height:5px;opacity:.75;width:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;right:-3px;top:50%}.cropper-point.point-n{cursor:ns-resize;left:50%;margin-left:-3px;top:-3px}.cropper-point.point-w{cursor:ew-resize;left:-3px;margin-top:-3px;top:50%}.cropper-point.point-s{bottom:-3px;cursor:s-resize;left:50%;margin-left:-3px}.cropper-point.point-ne{cursor:nesw-resize;right:-3px;top:-3px}.cropper-point.point-nw{cursor:nwse-resize;left:-3px;top:-3px}.cropper-point.point-sw{bottom:-3px;cursor:nesw-resize;left:-3px}.cropper-point.point-se{bottom:-3px;cursor:nwse-resize;height:20px;opacity:1;right:-3px;width:20px}@media (min-width:768px){.cropper-point.point-se{height:15px;width:15px}}@media (min-width:992px){.cropper-point.point-se{height:10px;width:10px}}@media (min-width:1200px){.cropper-point.point-se{height:5px;opacity:.75;width:5px}}.cropper-point.point-se:before{background-color:#39f;bottom:-50%;content:" ";display:block;height:200%;opacity:0;position:absolute;right:-50%;width:200%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC)}.cropper-hide{display:block;height:0;position:absolute;width:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}','.s-image-cropper{border-radius:0!important;top:10%!important;height:80%!important;max-width:100%!important;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:column;flex-direction:column}.s-image-cropper .ui-dialog-content{overflow:hidden;height:auto!important;-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.s-image-cropper .ui-dialog-footer,.s-image-cropper .ui-dialog-header{-ms-flex-negative:0;flex-shrink:0;direction:ltr}.s-image-cropper .image-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%}.s-image-cropper img{max-width:100%;max-height:100%}.s-image-cropper .button-container{-ms-flex-flow:wrap-reverse;flex-flow:wrap-reverse;-ms-flex-pack:end;justify-content:flex-end}.s-image-cropper .cropper-view-box{outline:#fff dashed 2px}.s-image-cropper .cropper-line{opacity:0}.s-image-cropper .cropper-point{background-color:#fff;opacity:1;height:15px;width:15px;border-radius:50%}.s-image-cropper .cropper-point.point-e{right:-8.5px;top:calc(50% - 4.5px)}.s-image-cropper .cropper-point.point-n{top:-8.5px;left:calc(50% - 4.5px)}.s-image-cropper .cropper-point.point-w{left:-8.5px;top:calc(50% - 4.5px)}.s-image-cropper .cropper-point.point-s{bottom:-8.5px;left:calc(50% - 4.5px)}.s-image-cropper .cropper-point.point-ne{right:-8.5px;top:-8.5px}.s-image-cropper .cropper-point.point-nw{left:-8.5px;top:-8.5px}.s-image-cropper .cropper-point.point-sw{left:-8.5px;bottom:-8.5px}.s-image-cropper .cropper-point.point-se{right:-8.5px;bottom:-8.5px}.s-image-cropper--rounded .cropper-face,.s-image-cropper--rounded .cropper-view-box{border-radius:50%}.s-image-cropper--rounded .cropper-view-box{outline:rgba(255,255,255,.3) dashed 1px}.s-image-cropper--rounded .cropper-view-box:after{border:2px dashed #fff;border-radius:50%;content:"";height:100%;left:0;position:absolute;top:0;width:100%}@media (max-width:767px){.s-image-cropper{border:none!important;top:0!important;left:0!important;width:100%!important;height:100%!important}}@media (min-width:768px){.s-image-cropper{left:10%!important;width:80%!important}}@media (min-width:1200px){.s-image-cropper{left:20%!important;width:60%!important}}']})],e)}(),Wn=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,b.DialogModule,ve,Ft,qn],declarations:[Kn],exports:[Kn,qn],entryComponents:[Kn]})],e)}(),Yn=function(){function e(e,t,n){this.componentFactoryResolver=e,this.appRef=t,this.injector=n}return e.prototype.show=function(e){var t=this;this.activeCropper&&this.destroy(this.activeCropper);var n={componentRef:this.componentFactoryResolver.resolveComponentFactory(Kn).create(this.injector),ngUnsubscribe:new r.Subject};this.activeCropper=n,this.appRef.attachView(n.componentRef.hostView);var i=n.componentRef.hostView.rootNodes[0];document.body.appendChild(i),this.configureInstance(n,e),n.componentRef.instance.visible=!0,n.componentRef.instance.visibleChange.pipe(a.takeUntil(this.activeCropper.ngUnsubscribe),a.delay(1e3)).subscribe((function(e){e||t.destroy(n)}))},e.prototype.configureInstance=function(e,t){var n=e.componentRef.instance;t&&Object.keys(t).forEach((function(i){var o=t[i];"function"!=typeof o?n[i]=o:"function"==typeof o&&n[i].pipe(a.takeUntil(e.ngUnsubscribe)).subscribe((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t[i].apply(t,pe(e))}))})),n.visibleChange.pipe(a.takeUntil(e.ngUnsubscribe)).subscribe((function(e){return n.visible=e}))},e.prototype.destroy=function(e){e.ngUnsubscribe.next(),e.ngUnsubscribe.complete(),this.appRef.detachView(e.componentRef.hostView),e.componentRef.destroy()},e.ctorParameters=function(){return[{type:t.ComponentFactoryResolver},{type:t.ApplicationRef},{type:t.Injector}]},e=oe([t.Injectable()],e)}();(Un=e.ThumbnailSize||(e.ThumbnailSize={})).Small="small",Un.Medium="medium",Un.Large="large";var Xn,Zn=function(){function e(){}return e.prototype.getBinaryFile=function(e){var t=this;return new Promise((function(n){var i=t.getOrientation.bind(t),o=new XMLHttpRequest;o.addEventListener("load",(function(){if(4===o.readyState&&(200==o.status||0===o.status)){var e=i(o.response);o=null,n(e)}})),o.addEventListener("error",(function(){throw o=null,new Error("Não foi possível carregar a imagem")})),o.open("GET",e.src,!0),o.responseType="arraybuffer",o.send(null)}))},e.prototype.getOrientation=function(e){var t=new DataView(e);if(65496!=t.getUint16(0,!1))return-2;for(var n=t.byteLength,i=2;i<n;){var o=t.getUint16(i,!1);if(i+=2,65505==o){if(1165519206!=t.getUint32(i+=2,!1))return-1;var r=18761==t.getUint16(i+=6,!1);i+=t.getUint32(i+4,r);var a=t.getUint16(i,r);i+=2;for(var s=0;s<a;s++)if(274==t.getUint16(i+12*s,r))return t.getUint16(i+12*s+8,r)}else{if(65280!=(65280&o))break;i+=t.getUint16(i,!1)}}return-1},e=oe([t.Injectable()],e)}(),Jn=function(){function n(t){this.thumbnailService=t,this.fallback=!1,this.id="s-thumbnail-"+i.nextId++,this.size=e.ThumbnailSize.Medium,this.iconClass="far fa-image",this.hasAction=!1,this.actionIconClass="fas fa-camera",this.isTile=!1,this.isBrand=!1,this.ngUnsubscribe=new r.Subject}var i;return i=n,n.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},n.prototype.ngAfterViewInit=function(){var e=this;this.imgEl&&this.imgEl.nativeElement.addEventListener("load",(function(){r.from(e.thumbnailService.getBinaryFile(e.imgEl.nativeElement)).pipe(a.takeUntil(e.ngUnsubscribe)).subscribe((function(t){return e.orientation=t}))}))},n.nextId=0,n.ctorParameters=function(){return[{type:Zn}]},oe([t.ViewChild("img",{static:!1})],n.prototype,"imgEl",void 0),oe([t.Input()],n.prototype,"id",void 0),oe([t.Input()],n.prototype,"size",void 0),oe([t.Input()],n.prototype,"imageSource",void 0),oe([t.Input()],n.prototype,"imageFallback",void 0),oe([t.Input()],n.prototype,"imageAlt",void 0),oe([t.Input()],n.prototype,"iconClass",void 0),oe([t.Input()],n.prototype,"hasAction",void 0),oe([t.Input()],n.prototype,"actionIconClass",void 0),oe([t.Input()],n.prototype,"isTile",void 0),oe([t.Input()],n.prototype,"isBrand",void 0),n=i=oe([t.Component({selector:"s-thumbnail",template:'<div [id]="id" class="thumbnail-container thumbnail-container--{{size}}" [ngClass]="{\'thumbnail-container--with-action\': hasAction, \'thumbnail-container--brand\': isBrand}">\n <div [id]="id + \'-image-container\'" *ngIf="imageSource || imageFallback" class="image-container" [ngClass]="{\'image-container--rounded\': !isBrand}">\n <img #img [id]="id + \'-image\'" (error)="fallback = true" [src]="imageSource"\n [alt]="imageAlt" *ngIf="!fallback" [ngClass]="{\n \'smallThumbnail\': isTile,\n \'exif-orientation-2\': orientation == 2,\n \'exif-orientation-3\': orientation == 3,\n \'exif-orientation-4\': orientation == 4,\n \'exif-orientation-5\': orientation == 5,\n \'exif-orientation-6\': orientation == 6,\n \'exif-orientation-7\': orientation == 7,\n \'exif-orientation-8\': orientation == 8\n }"/>\n\n <img #img [id]="id + \'-image-fallback\'" (error)="imageFallback = undefined" [src]="imageFallback"\n [alt]="imageAlt" *ngIf="fallback && imageFallback" [ngClass]="{\n \'smallThumbnail\': isTile,\n \'exif-orientation-2\': orientation == 2,\n \'exif-orientation-3\': orientation == 3,\n \'exif-orientation-4\': orientation == 4,\n \'exif-orientation-5\': orientation == 5,\n \'exif-orientation-6\': orientation == 6,\n \'exif-orientation-7\': orientation == 7,\n \'exif-orientation-8\': orientation == 8\n }"/>\n\n <i *ngIf="fallback && !imageFallback" ngClass="far fa-image" class="fallback-img-color"></i>\n </div>\n <div [id]="id + \'-action-icon-container\'" *ngIf="hasAction" class="action-icon-container action-icon-container--{{size}}">\n <span [id]="id + \'-action-icon\'" [class]="actionIconClass" aria-hidden="true"></span>\n </div>\n <div [id]="id + \'-icon-container\'" *ngIf="!imageSource && !imageFallback" class="icon-container icon-container--{{size}}" [ngClass]="{\'image-container--rounded\': !isBrand}">\n <span [id]="id + \'-icon\'" [class]="iconClass" aria-hidden="true"></span>\n </div>\n\n <ng-content></ng-content>\n</div>\n',styles:[":host{display:inline-block}.thumbnail-container{color:#fff;position:relative;text-align:center}.thumbnail-container--large{font-size:50px;height:100px;width:100px}.thumbnail-container--large.thumbnail-container--brand{width:200px}.thumbnail-container--medium{font-size:40px;height:70px;width:70px}.thumbnail-container--medium.thumbnail-container--brand{width:140px}.thumbnail-container--small{font-size:22px;height:40px;width:40px}.thumbnail-container--small.thumbnail-container--brand{width:80px}.thumbnail-container--with-action{cursor:pointer}.action-icon-container{background-color:#428bca;border-radius:50%;bottom:0;position:absolute;right:0}.action-icon-container--large,.action-icon-container--medium{font-size:10pt;height:25px;padding:3px;width:25px}.action-icon-container--small{font-size:6pt;height:16px;padding:2px;width:16px}.icon-container,.image-container{-ms-flex-align:center;align-items:center;height:100%;overflow:hidden;width:100%}.icon-container--rounded,.image-container--rounded{border-radius:50%}.smallThumbnail{height:40px!important}.icon-container{background-color:#ccc;color:#fff}.icon-container--large{line-height:98px}.icon-container--medium{line-height:68px}.icon-container--small{line-height:38px}.image-container{-ms-flex-align:center;align-items:center;background-color:#ccc;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.image-container img{width:100%}.image-container img.exif-orientation-2{transform:rotateY(180deg)}.image-container img.exif-orientation-3{transform:rotate(180deg)}.image-container img.exif-orientation-4{transform:rotate(180deg) rotateY(180deg)}.image-container img.exif-orientation-5{transform:rotate(270deg) rotateY(180deg)}.image-container img.exif-orientation-6{transform:rotate(90deg)}.image-container img.exif-orientation-7{transform:rotate(90deg) rotateY(180deg)}.image-container img.exif-orientation-8{transform:rotate(270deg)}.fallback-img-color{color:#fff}"]})],n)}(),Qn=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule],declarations:[Jn],exports:[Jn],providers:[Zn]})],e)}(),ei=function(){function e(){this.id="s-object-card-field-"+n.nextId++,this.buttonClick=new t.EventEmitter}var n;return n=e,e.nextId=0,oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"imageSource",void 0),oe([t.Input()],e.prototype,"imageAlt",void 0),oe([t.Input()],e.prototype,"iconClass",void 0),oe([t.Input()],e.prototype,"label",void 0),oe([t.Input()],e.prototype,"description",void 0),oe([t.Input()],e.prototype,"buttonLabel",void 0),oe([t.Input()],e.prototype,"buttonModel",void 0),oe([t.Output()],e.prototype,"buttonClick",void 0),oe([t.ContentChild(Jn,{static:!0})],e.prototype,"thumbnailComponent",void 0),oe([t.ViewChild(t.TemplateRef,{static:!0})],e.prototype,"content",void 0),e=n=oe([t.Component({selector:"s-object-card-field",template:'<ng-template>\n <div class="container">\n <ng-content select="s-thumbnail"></ng-content>\n <s-thumbnail\n [id]="id + \'-thumbnail\'"\n *ngIf="!thumbnailComponent && (imageSource || iconClass)"\n [imageSource]="imageSource"\n [imageAlt]="imageAlt || label"\n [iconClass]="iconClass"\n size="small"\n ></s-thumbnail>\n\n <div class="info-container">\n <div #labelTemplate><ng-content select="[labelTemplate]"></ng-content></div>\n <span\n [id]="id + \'-label\'"\n *ngIf="!labelTemplate.children.length"\n class="label"\n [pTooltip]="label"\n tooltipPosition="top"\n showDelay="500"\n >{{ label }}</span\n >\n\n <div #descriptionTemplate><ng-content select="[descriptionTemplate]"></ng-content></div>\n <span\n [id]="id + \'-description\'"\n *ngIf="!descriptionTemplate.children.length"\n class="description"\n [pTooltip]="description"\n tooltipPosition="top"\n showDelay="500"\n >{{ description }}</span\n >\n\n <s-button\n [id]="id + \'-button\'"\n *ngIf="buttonLabel"\n styleClass="object-card-button"\n priority="link"\n [label]="buttonLabel"\n [model]="buttonModel"\n size="small"\n (onClick)="buttonClick.emit($event)"\n ></s-button>\n </div>\n </div>\n</ng-template>\n',styles:[".container{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:100%}.info-container{margin-left:10px}.info-container,.info-container span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.info-container .label{color:#999;display:block}.info-container .description{display:block}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.info-container{-ms-flex:1;flex:1}}@media (max-width:767px){.info-container,.info-container span{white-space:normal}}.info-container:only-child{margin-left:0}"]})],e)}(),ti=function(){function n(){this.id="s-object-card-main-"+i.nextId++,this.iconClass="fa fa-picture-o",this.hasThumbnail=!0,this.hasDescription=!0,this.isBrand=!1,this.buttonClick=new t.EventEmitter,this._thumbnailSize=e.ThumbnailSize.Medium}var i;return i=n,Object.defineProperty(n.prototype,"thumbnailSize",{get:function(){return this._thumbnailSize},set:function(e){this._thumbnailSize=e,this.thumbnailComponent&&(this.thumbnailComponent.size=e)},enumerable:!0,configurable:!0}),n.prototype.onResize=function(){this.update()},n.prototype.ngAfterContentInit=function(){this.update()},n.prototype.update=function(){var t=window.innerWidth;this.thumbnailSize=t<=Ot.SM_MAX?e.ThumbnailSize.Small:e.ThumbnailSize.Medium},n.nextId=0,oe([t.Input()],n.prototype,"id",void 0),oe([t.Input()],n.prototype,"imageSource",void 0),oe([t.Input()],n.prototype,"imageFallback",void 0),oe([t.Input()],n.prototype,"imageAlt",void 0),oe([t.Input()],n.prototype,"iconClass",void 0),oe([t.Input()],n.prototype,"hasThumbnail",void 0),oe([t.Input()],n.prototype,"hasDescription",void 0),oe([t.Input()],n.prototype,"isBrand",void 0),oe([t.Input()],n.prototype,"label",void 0),oe([t.Input()],n.prototype,"description",void 0),oe([t.Input()],n.prototype,"buttonLabel",void 0),oe([t.Input()],n.prototype,"buttonModel",void 0),oe([t.Output()],n.prototype,"buttonClick",void 0),oe([t.ContentChild(Jn,{static:!0})],n.prototype,"thumbnailComponent",void 0),oe([t.HostListener("window:resize")],n.prototype,"onResize",null),n=i=oe([t.Component({selector:"s-object-card-main",template:'<ng-container *ngIf="hasThumbnail">\n <ng-content select="s-thumbnail"></ng-content>\n <s-thumbnail\n [id]="id + \'-thumbnail\'"\n [imageSource]="imageSource"\n [imageFallback]="imageFallback"\n [imageAlt]="imageAlt || label"\n [iconClass]="iconClass"\n [size]="thumbnailSize"\n *ngIf="!thumbnailComponent"\n [isBrand]="isBrand"\n ></s-thumbnail>\n</ng-container>\n\n<ng-container *ngIf="hasDescription">\n <div class="info-container">\n <div #labelTemplate><ng-content select="[labelTemplate]"></ng-content></div>\n <span\n [id]="id + \'-label\'"\n *ngIf="!labelTemplate.children.length"\n class="label"\n [pTooltip]="label"\n tooltipPosition="top"\n showDelay="500"\n >{{ label }}</span\n >\n\n <div #descriptionTemplate><ng-content select="[descriptionTemplate]"></ng-content></div>\n <span\n [id]="id + \'-description\'"\n *ngIf="!descriptionTemplate.children.length"\n class="description"\n [pTooltip]="description"\n tooltipPosition="top"\n showDelay="500"\n >{{ description }}</span\n >\n <s-button\n [id]="id + \'-button\'"\n *ngIf="buttonLabel"\n styleClass="object-card-button"\n priority="link"\n [label]="buttonLabel"\n [model]="buttonModel"\n size="small"\n (onClick)="buttonClick.emit($event)"\n ></s-button>\n </div>\n</ng-container>\n',styles:[":host{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;min-height:70px}.info-container{margin-left:10px;-ms-flex:1;flex:1}.info-container,.info-container span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.info-container .label{display:block;font-weight:700}.info-container .description{color:#999;display:block}@media (max-width:767px){.info-container,.info-container span{white-space:normal}}"]})],n)}(),ni=P,ii=function(){function e(e,i){this.cdr=e,this.elementRef=i,this.id="s-object-card-"+n.nextId++,this.expanded=!1,this.expandTooltip="Abrir painel",this.collapseTooltip="Fechar painel",this.fieldsMinWidth=200,this.expandedChange=new t.EventEmitter,this.maxVisibleFields=0}var n;return n=e,e.prototype.ngAfterViewInit=function(){var e=this;this.update(),this.cdr.detectChanges(),this.fields.changes.subscribe((function(){e.update()})),ni({strategy:"scroll"}).listenTo(this.elementRef.nativeElement,(function(){return e.update()}))},e.prototype.update=function(){var e,t,n,i=window.innerWidth,o=this.elementRef.nativeElement.offsetWidth,r=.3*o>260?.3*o:260,a=this.fieldsMinWidth,s=this.elementRef.nativeElement.getElementsByClassName("s-object-card-field");try{for(var l=le(s),c=l.next();!c.done;c=l.next()){c.value.style.minWidth=this.fieldsMinWidth+"px"}}catch(t){e={error:t}}finally{try{c&&!c.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}(n=i<=Ot.SM_MAX?0:Math.floor((o-r)/a))&&n<this.fields.length&&(n=Math.floor((o-r-50)/a)),this.maxVisibleFields=n,n>=this.fields.length&&this.expanded&&this.collapse()},e.prototype.toggle=function(){this.expanded?this.collapse():this.expand()},e.prototype.expand=function(){this.expanded=!0,this.expandedChange.emit(this.expanded)},e.prototype.collapse=function(){this.expanded=!1,this.expandedChange.emit(this.expanded)},e.prototype.getExpandedFieldWidth=function(){var e=this.elementRef.nativeElement.offsetWidth;return 12/(e<=Ot.SM_MAX?1:e<=Ot.MD_MAX?2:e<=Ot.LG_MAX?4:6)},e.nextId=0,e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef}]},oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"expanded",void 0),oe([t.Input()],e.prototype,"expandTooltip",void 0),oe([t.Input()],e.prototype,"collapseTooltip",void 0),oe([t.Input()],e.prototype,"fieldsMinWidth",void 0),oe([t.Output()],e.prototype,"expandedChange",void 0),oe([t.ContentChild(ti,{static:!0})],e.prototype,"main",void 0),oe([t.ContentChildren(ei,{descendants:!0})],e.prototype,"fields",void 0),e=n=oe([t.Component({selector:"s-object-card",template:'<div [id]="id" class="container">\n <div\n [id]="id + \'-main-container\'"\n class="main-container"\n [ngClass]="{\n \'with-hidden-fields\': fields.length > maxVisibleFields,\n \'with-visible-fields\': fields.length && maxVisibleFields\n }"\n >\n <div class="object-content">\n <div class="s-object-card-main"><ng-content select="s-object-card-main"></ng-content></div>\n\n <div class="divider" *ngIf="maxVisibleFields && fields.length"></div>\n\n <div *ngFor="let field of (fields.toArray() | slice: 0:maxVisibleFields)" class="s-object-card-field">\n <ng-container *ngTemplateOutlet="field.content"></ng-container>\n </div>\n </div>\n\n <div\n [id]="id + \'-expand-icon-container\'"\n class="expand-icon-container"\n (click)="toggle()"\n [pTooltip]="expanded ? collapseTooltip : expandTooltip"\n tooltipPosition="top"\n [showDelay]="500"\n >\n <span [id]="id + \'-expand-icon\'" class="expand-icon fa" [ngClass]="{ \'fa-minus\': expanded, \'fa-plus\': !expanded }"></span>\n </div>\n </div>\n\n <div [id]="id + \'-expandable-container\'" [@expandableContent]="expanded" class="expandable-container">\n <div class="ui-g ui-g-12">\n <ng-container *ngFor="let field of (fields.toArray() | slice: maxVisibleFields:fields.length)">\n <div class="ui-g-{{getExpandedFieldWidth()}}">\n <div class="s-object-card-field"><ng-container *ngTemplateOutlet="field.content"></ng-container></div>\n </div>\n </ng-container>\n </div>\n </div>\n</div>\n',animations:[d.trigger("expandableContent",[d.state("*",d.style({height:"0"})),d.state("false",d.style({height:"0"})),d.state("true",d.style({height:"*"})),d.transition("* => true",d.animate("200ms ease-out")),d.transition("false <=> true",d.animate("200ms ease-out"))])],styles:[":host{display:block}.container{margin-bottom:20px}.main-container{display:-ms-flexbox;display:flex}.expandable-container,.main-container{background-color:#fff;border:1px solid #ccc;position:relative;overflow:hidden;width:100%}.expandable-container{border-top:none;box-shadow:inset 0 6px 4px -4px #ddd;margin-top:-1px}.expand-icon-container{display:none;text-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;width:25px;position:absolute;right:15px;height:25px;top:calc(50% - 12px)}.expand-icon{-ms-flex:1;flex:1}.object-content{display:-ms-flexbox;display:flex;width:100%}.s-object-card-main{-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:1;flex-grow:1;overflow:hidden;padding:15px}.main-container.with-visible-fields .s-object-card-main{max-width:30%}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.main-container.with-visible-fields .s-object-card-main{width:20%}}.s-object-card-field{overflow:hidden;height:100%}.main-container .s-object-card-field{padding:15px}.main-container .divider{width:1px;-ms-flex-negative:0;flex-shrink:0;background-color:#ccc;margin:15px -1px 15px 0}.main-container.with-hidden-fields .object-content{width:calc(100% - 35px)}.main-container.with-hidden-fields .expand-icon-container{display:-ms-flexbox;display:flex}::ng-deep .object-card-button{padding-left:0!important;padding-right:10px!important;border:none!important;height:auto!important;min-width:auto!important;text-align:left!important}@media (max-width:767px){.s-object-card-main{max-width:calc(100% - 50px)}}"]})],e)}(),oi=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,l.TooltipModule,Qn,ve],declarations:[ii,ti,ei],exports:[Qn,ii,ti,ei]})],e)}(),ri=function(){function e(){this.id="s-product-header-"+n.nextId++,this.baseZIndex=0}var n;return n=e,e.prototype.ngAfterViewInit=function(){this.container.nativeElement.style.zIndex=String(this.baseZIndex+ ++c.DomHandler.zindex)},e.nextId=0,oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"header",void 0),oe([t.Input()],e.prototype,"baseZIndex",void 0),oe([t.ViewChild("headerContainer",{static:!1})],e.prototype,"container",void 0),e=n=oe([t.Component({selector:"s-product-header",template:'<div [id]="id" class="box">\n <div #headerContainer class="sds-container header">\n <h1 class="title">{{header}}</h1>\n <div class="content">\n <ng-content></ng-content>\n </div>\n </div>\n</div>',styles:[".box{position:relative;width:100%;height:70px}.header{padding-top:15px;padding-bottom:15px;position:fixed;width:100%;top:0;left:0;height:70px;background-color:#fff;border-bottom:1px solid #ddd;box-shadow:0 1px 2px #ddd;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center}.title{color:#999;font-weight:400;font-size:16pt;margin-right:15px;min-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.content{display:-ms-flexbox;display:flex;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"]})],e)}(),ai=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,l.TooltipModule,Qn],declarations:[ri],exports:[ri,Qn]})],e)}(),si=function(){function e(e){this.focusTrapFactory=e,this.id="s-sidebar-"+n.nextId++,this.visible=!1,this.baseZIndex=0,this.largeSized=!1,this.visibleChange=new t.EventEmitter}var n;return n=e,e.prototype.onShow=function(){c.DomHandler.addClass(document.body,"ui-overflow-hidden-sidebar"),this.focusTrapFactory.create(this.innerSidebar.containerViewChild.nativeElement,!1).focusInitialElementWhenReady()},e.prototype.onHide=function(){c.DomHandler.removeClass(document.body,"ui-overflow-hidden-sidebar")},e.prototype.close=function(e){c.DomHandler.removeClass(document.body,"ui-overflow-hidden-sidebar"),this.visibleChange.emit(!1),e.preventDefault()},e.nextId=0,e.ctorParameters=function(){return[{type:j.FocusTrapFactory}]},oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"visible",void 0),oe([t.Input()],e.prototype,"header",void 0),oe([t.Input()],e.prototype,"baseZIndex",void 0),oe([t.Input()],e.prototype,"largeSized",void 0),oe([t.Output()],e.prototype,"visibleChange",void 0),oe([t.ViewChild($.Sidebar,{static:!0})],e.prototype,"innerSidebar",void 0),oe([t.ContentChild($n,{static:!0})],e.prototype,"headerSection",void 0),oe([t.ContentChild(Gn,{static:!0})],e.prototype,"footerSection",void 0),e=n=oe([t.Component({selector:"s-sidebar",template:'<p-sidebar [id]="id" [visible]="visible" (visibleChange)="visibleChange.emit($event)" [blockScroll]="true" [baseZIndex]="baseZIndex"\n [modal]="true" [dismissible]="false" [showCloseIcon]="false" position="right" appendTo="body"\n [styleClass]="largeSized ? \'s-sidebar-panel s-sidebar-panel-lg\' : \'s-sidebar-panel\'" (onShow)="onShow()" (onHide)="onHide()">\n\n <div [id]="id + \'-container\'" class="s-sidebar-container">\n\n <a href="#" role="button" class="s-sidebar-close" (click)="close($event)"><span class="fa fa-times" aria-hidden="true"></span></a>\n\n <div [id]="id + \'-header\'" class="s-sidebar-header" *ngIf="header && !headerSection">\n <s-header>\n <h2 class="sds-panel-title">{{header}}</h2>\n </s-header>\n </div>\n\n <div [id]="id + \'-header\'" class="s-sidebar-header" *ngIf="headerSection">\n <ng-content select="s-header"></ng-content>\n </div>\n\n <p-scrollPanel [id]="id + \'-content-container\'" class="s-sidebar-content-container" styleClass="s-sidebar-content">\n <ng-content></ng-content>\n </p-scrollPanel>\n\n <div [id]="id + \'-footer\'" class="s-sidebar-footer" *ngIf="footerSection">\n <ng-content select="s-footer"></ng-content>\n </div>\n\n </div>\n\n</p-sidebar>\n',encapsulation:t.ViewEncapsulation.None,styles:[".ui-overflow-hidden-sidebar{overflow:hidden}body .ui-sidebar.s-sidebar-panel{width:50%;padding:0}@media (max-width:767px){body .ui-sidebar.s-sidebar-panel{width:100%}}@media (min-width:768px){body .ui-sidebar.s-sidebar-panel{width:75%}}@media (min-width:992px){body .ui-sidebar.s-sidebar-panel{width:50%}body .ui-sidebar.s-sidebar-panel.s-sidebar-panel-lg{width:75%}}body .ui-sidebar.s-sidebar-panel .s-sidebar-container{height:100%;width:100%;padding:20px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:column;flex-direction:column}body .ui-sidebar.s-sidebar-panel .s-sidebar-close{position:absolute;right:20px;top:20px;color:#333}body .ui-sidebar.s-sidebar-panel .s-sidebar-header{border-bottom:1px solid #ccc;padding-bottom:15px;padding-right:20px;margin-bottom:15px;-ms-flex-negative:0;flex-shrink:0}body .ui-sidebar.s-sidebar-panel .s-sidebar-content-container{-ms-flex:1;flex:1;overflow:hidden}body .ui-sidebar.s-sidebar-panel .s-sidebar-content{height:100%}body .ui-sidebar.s-sidebar-panel .s-sidebar-footer{border-top:1px solid #ccc;padding-top:15px;margin-top:15px;-ms-flex-negative:0;flex-shrink:0}body .ui-sidebar.s-sidebar-panel p-scrollpanel{padding-top:30px}body .ui-sidebar.s-sidebar-panel .s-sidebar-header+p-scrollpanel{padding-top:0}p-scrollPanel{display:block}"]})],e)}(),li=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,j.A11yModule,$.SidebarModule,H.ScrollPanelModule,qn],declarations:[si],exports:[qn,si]})],e)}(),ci=function(){function e(){this.id="s-stats-card-"+n.nextId++,this.alwaysWithBorder=!1,this.lightVersion=!1,this.lightMode=!0,this.iconClass="fa fa-bar-chart",this.color="#339966",this.animateNumbers=!0,this.clickable=!1,this.tooltip="",this.onClick=new t.EventEmitter,this.ANIMATION_DURATION_MS=200,this.STEP_DURATION_MS=20,this.previousValue="0",this._value="0"}var n;return n=e,Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.previousValue=this._value,this._value=String(e),this.animateNumbers?this.updateDisplayValue():this.displayValue=this.value},enumerable:!0,configurable:!0}),e.prototype.updateDisplayValue=function(){var e=this,t=new h.BigNumber(this.ANIMATION_DURATION_MS),n=new h.BigNumber(this.STEP_DURATION_MS),i=t.dividedBy(n),o=new h.BigNumber(this.previousValue.replace(/\D/g,"")),r=new h.BigNumber(this.value.replace(/\D/g,"")),a=r.minus(o).absoluteValue().dividedBy(i),s=o.isLessThan(r);clearInterval(this.intervalId),this.displayValue=this.replaceNumericPositions(this.value);var l=o;this.intervalId=setInterval((function(){s&&l.isLessThan(r)?(e.displayValue=e.replaceNumericPositions(e.displayValue,l),l=l.plus(a)):!s&&l.isGreaterThan(r)?(e.displayValue=e.replaceNumericPositions(e.displayValue,l),l=l.minus(a)):(e.displayValue=e.value,clearInterval(e.intervalId))}),this.STEP_DURATION_MS)},e.prototype.replaceNumericPositions=function(e,t){var n=e.replace(/[^\d]/g,""),i=(t?t.toString():"").toString().replace(/\D/g,"").padStart(n.length,"0"),o=0;return e.split("").map((function(e){return Number(e)||"0"===e?i[o++]:e})).join("")},e.nextId=0,oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"label",void 0),oe([t.Input()],e.prototype,"alwaysWithBorder",void 0),oe([t.Input()],e.prototype,"lightVersion",void 0),oe([t.Input()],e.prototype,"lightMode",void 0),oe([t.Input()],e.prototype,"iconClass",void 0),oe([t.Input()],e.prototype,"color",void 0),oe([t.Input()],e.prototype,"animateNumbers",void 0),oe([t.Input()],e.prototype,"clickable",void 0),oe([t.Input()],e.prototype,"value",null),oe([t.Input()],e.prototype,"tooltip",void 0),oe([t.Output()],e.prototype,"onClick",void 0),e=n=oe([t.Component({selector:"s-stats-card",template:'<div\n [id]="id"\n class="s-stats-card"\n [ngClass]="{\n \'s-stats-card--always-border\': alwaysWithBorder,\n \'s-stats-card--light\': lightMode,\n \'s-stats-card--color\': !lightMode,\n \'s-stats-card--light-version\': lightVersion,\n \'s-stats-card--clickable\': clickable\n }"\n (click)="clickable && onClick.next($event)">\n\n <div\n [id]="id + \'-background\'"\n class="s-stats-card-background"\n [ngStyle]="{ \'background-color\': !lightMode && color || \'\' }">\n </div>\n <div\n [id]="id + \'-overlay\'"\n class="s-stats-card-overlay">\n </div>\n\n <div\n [id]="id + \'-info-container\'"\n class="s-stats-card-info-container">\n <div class="s-stats-card-info-inner-container">\n <div\n [id]="id + \'-icon-container\'"\n class="s-stats-card-icon-container"\n [ngStyle]="{ \'background-color\': lightMode && color || \'\' }">\n <span\n [id]="id + \'-icon\'"\n [class]="iconClass"\n [ngClass]="{ \'s-stats-card-icon\': true }"\n [ngStyle]="{\'color\': !lightMode && color || \'\'}"\n aria-hidden="true"></span>\n </div>\n\n <div\n [id]="id + \'-text-container\'"\n class="s-stats-card-text-container">\n <h4\n [id]="id + \'-label\'"\n class="s-stats-card-label"\n [pTooltip]="label"\n tooltipPosition="top"\n showDelay="500">\n {{ label }}\n </h4>\n <span\n [id]="id + \'-value\'"\n class="s-stats-card-value"\n [pTooltip]="displayValue"\n tooltipPosition="top"\n showDelay="500">\n {{ displayValue }}\n </span>\n </div>\n </div>\n <div class="s-stats-card-content-inner-container">\n <div #content class="s-stats-card-content-container">\n <ng-content></ng-content>\n </div>\n <div\n *ngIf="content.children.length"\n class="s-stats-card-content-separator">\n </div>\n </div>\n <span\n *ngIf="tooltip"\n class="s-status-card-tooltip"\n [pTooltip]="tooltip"\n tooltipPosition="right">\n <i class="fa fa-info-circle s-status-card-tooltip-icon"></i>\n </span>\n </div>\n</div>\n',encapsulation:t.ViewEncapsulation.None,styles:["s-stats-card{display:block;height:auto;position:relative}s-stats-card .s-stats-card{border:1px solid transparent;min-width:120px;overflow:hidden;position:relative}s-stats-card .s-stats-card .s-stats-card-background,s-stats-card .s-stats-card .s-stats-card-overlay{height:calc(100% - 2px);left:1px;position:absolute;top:1px;width:calc(100% - 2px)}s-stats-card .s-stats-card .s-stats-card-background{background-color:#fff}s-stats-card .s-stats-card .s-stats-card-overlay{background-color:#000;opacity:0;transition:opacity .2s ease-out}s-stats-card .s-stats-card .s-stats-card-info-container{overflow:auto;padding:15px;position:relative}s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-info-inner-container{overflow:hidden;position:relative}s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-info-inner-container .s-stats-card-icon-container{float:left;font-size:24px;height:50px;line-height:50px;text-align:center;transition:width .2s ease-out;width:50px}s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-info-inner-container .s-stats-card-text-container{color:#fff;float:left;height:50px;max-width:calc(100% - 65px);padding-left:15px}s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-info-inner-container .s-stats-card-text-container .s-stats-card-label{font-weight:400;width:100%}s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-info-inner-container .s-stats-card-text-container .s-stats-card-value{display:inline-block;font-size:20px;font-weight:700;width:100%}s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-info-inner-container .s-stats-card-text-container,s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-info-inner-container .s-stats-card-text-container .s-stats-card-label,s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-info-inner-container .s-stats-card-text-container .s-stats-card-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-content-inner-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-content-inner-container .s-stats-card-content-separator{border-top:1px solid #ccc;margin:15px 0;-ms-flex-order:1;order:1}s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-content-inner-container .s-stats-card-content-container{-ms-flex-order:2;order:2}s-stats-card .s-stats-card .s-stats-card-info-container .s-status-card-tooltip{font-size:1rem;line-height:0;margin:.3rem;position:absolute;right:0;top:0}s-stats-card .s-stats-card .s-stats-card-info-container .s-status-card-tooltip .s-status-card-tooltip-icon{color:#fff}s-stats-card .s-stats-card.s-stats-card--color .s-stats-card-icon-container{background-color:#fff}s-stats-card .s-stats-card.s-stats-card--light *{color:#333}s-stats-card .s-stats-card.s-stats-card--light .s-stats-card-icon{color:#fff}s-stats-card .s-stats-card.s-stats-card--light * .s-status-card-tooltip .s-status-card-tooltip-icon,s-stats-card .s-stats-card.s-stats-card--light .s-stats-card-label{color:#999}s-stats-card .s-stats-card.s-stats-card--light-version .s-stats-card-info-inner-container .s-stats-card-icon-container{height:100%;left:0;position:absolute;right:0;width:10px}s-stats-card .s-stats-card.s-stats-card--light-version .s-stats-card-info-inner-container .s-stats-card-icon-container .s-stats-card-icon{display:none}s-stats-card .s-stats-card.s-stats-card--light-version .s-stats-card-info-inner-container .s-stats-card-text-container{height:auto;max-width:calc(100% - 25px);padding-left:25px}s-stats-card .s-stats-card.s-stats-card--clickable{cursor:pointer}s-stats-card .s-stats-card:hover .s-stats-card-overlay{opacity:.2}s-stats-card .s-stats-card.s-stats-card--light:hover .s-stats-card-overlay{opacity:.08}s-stats-card .s-stats-card.s-stats-card--light{border-color:#ccc}.s-sidebar-content .s-stats-card.s-stats-card--light:not(.s-stats-card--always-border),.ui-dialog-content .s-stats-card.s-stats-card--light:not(.s-stats-card--always-border),p-panel .s-stats-card.s-stats-card--light:not(.s-stats-card--always-border){border-color:transparent}@media (max-width:767px){s-stats-card .s-stats-card{height:auto}s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-info-inner-container .s-stats-card-icon-container{height:100%;left:0;position:absolute;right:0;width:10px}s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-info-inner-container .s-stats-card-icon-container .s-stats-card-icon{display:none}s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-info-inner-container .s-stats-card-text-container{height:auto;max-width:calc(100% - 25px);padding-left:25px}s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-info-inner-container .s-stats-card-text-container,s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-info-inner-container .s-stats-card-text-container .s-stats-card-label,s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-info-inner-container .s-stats-card-text-container .s-stats-card-value{overflow:visible;white-space:normal;word-break:break-all}}"]})],e)}(),pi=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,l.TooltipModule],declarations:[ci],exports:[ci]})],e)}();(Xn=e.StepState||(e.StepState={})).Default="default",Xn.Success="success",Xn.Warning="warning";var di,ui,mi=function(){function n(){this.id="s-steps-"+i.nextId++,this.activeIndex=0,this.stepSelected=new t.EventEmitter}var i;return i=n,n.prototype.stepClick=function(e,t,n){e.disabled||t==this.activeIndex||this.stepSelected.emit({step:e,index:t,event:n})},Object.defineProperty(n.prototype,"stepState",{get:function(){return e.StepState},enumerable:!0,configurable:!0}),n.prototype.barAnimation=function(e,t){return e<t||e===t},n.prototype.afterBarAnimation=function(e,t){return e<t||e===t-1},Object.defineProperty(n.prototype,"visibledStep",{get:function(){return this.steps.filter((function(e){return!e.hidden}))},enumerable:!0,configurable:!0}),n.nextId=0,oe([t.Input()],n.prototype,"id",void 0),oe([t.Input()],n.prototype,"steps",void 0),oe([t.Input()],n.prototype,"activeIndex",void 0),oe([t.Output()],n.prototype,"stepSelected",void 0),n=i=oe([t.Component({selector:"s-steps",template:'<div [id]="id" class="s-steps-container">\n <ng-container *ngFor="let step of visibledStep; let i = index; let isFirst = first; let isLast = last">\n <div *ngIf="!isFirst" class="s-step-progress-bar"\n [@activeDesative]="barAnimation(i, activeIndex) ? \'active\': \'desactive\'" [ngClass]="{\n \'s-step-success\': (step.state === stepState.Success),\n \'s-step-warning\': (step.state === stepState.Warning),\n \'s-step-disabled\': step.disabled,\n \'s-step-visited\': (i < activeIndex),\n \'s-step-active\': (i === activeIndex)\n }"></div>\n <div [id]="id + \'-step-\' + (step.id || i)" class="s-step-header" (click)="stepClick(step, i, $event)" role="tab"\n tabindex="0" [attr.aria-label]="step.ariaLabel || null" [attr.aria-controls]="step.ariaControls"\n [attr.aria-labelledby]="!step.ariaLabel ? \'step-label-\' + i : null" [attr.aria-posinset]="i + 1"\n [attr.aria-setsize]="visibledStep.length" [attr.aria-selected]="activeIndex == i" [ngClass]="{\n \'s-step-success\': (step.state === stepState.Success),\n \'s-step-warning\': (step.state === stepState.Warning),\n \'s-step-visited\': (i < activeIndex),\n \'s-step-active\': (i === activeIndex),\n \'s-step-previous\': (i === activeIndex - 1)\n }">\n <div *ngIf="!isFirst"\n [@beforeActiveDesative]="barAnimation(i, activeIndex) ? \'active\': \'desactive\'"\n class="s-step-progress-bar-before" [ngClass]="{\n \'s-step-success\': (step.state === stepState.Success),\n \'s-step-warning\': (step.state === stepState.Warning),\n \'s-step-disabled\': step.disabled,\n \'s-step-visited\': (i < activeIndex),\n \'s-step-active\': (i === activeIndex)\n }"></div>\n <div *ngIf="!isLast"\n [@afterActiveDesative]="afterBarAnimation(i, activeIndex) ? \'active\': \'desactive\'"\n class="s-step-progress-bar-after" [ngClass]="{\n \'s-step-success\': (step.state === stepState.Success),\n \'s-step-warning\': (step.state === stepState.Warning),\n \'s-step-disabled\': visibledStep[i + 1].disabled,\n \'s-step-visited\': ((i + 1) < activeIndex),\n \'s-step-active\': (i === (activeIndex - 1))\n }"></div>\n <div\n class="s-step-index"\n [ngClass]="{\'s-step-disabled\': step.disabled}"\n [pTooltip]="step.tooltip"\n tooltipPosition="top">\n <div class="s-step-index-content">\n <span\n *ngIf="step.state !== stepState.Warning && (step.state == stepState.Success || activeIndex > i)"\n class="fas fa-check"\n aria-hidden="true"\n [attr.aria-label]="i + 1"></span>\n <span\n *ngIf="step.state == stepState.Warning"\n class="fas fa-exclamation-triangle"\n aria-hidden="true"\n [attr.aria-label]="i + 1"></span>\n <span\n *ngIf="step.state != stepState.Success && step.state != stepState.Warning && activeIndex <= i">\n {{i + 1}}\n </span>\n </div>\n </div>\n <div\n [id]="\'step-label-\' + i"\n class="s-step-label"\n [ngClass]="{\'s-step-disabled\': step.disabled}">\n <span>\n {{step.label}}\n </span>\n </div>\n </div>\n </ng-container>\n</div>\n',host:{"aria-orientation":"horizontal",role:"tablist","tab-index":"0"},animations:[d.trigger("beforeActiveDesative",[d.state("active",d.style({"background-position":"left bottom"})),d.state("desactive",d.style({"background-position":"right bottom"})),d.transition("active => desactive",[d.animate("50ms 100ms linear")]),d.transition("desactive => active",[d.animate("50ms 250ms linear")])]),d.trigger("activeDesative",[d.state("active",d.style({"background-position":"left bottom"})),d.state("desactive",d.style({"background-position":"right bottom"})),d.transition("active => desactive",[d.animate("100ms 150ms linear")]),d.transition("desactive => active",[d.animate("100ms 150ms linear")])]),d.trigger("afterActiveDesative",[d.state("active",d.style({"background-position":"left bottom"})),d.state("desactive",d.style({"background-position":"right bottom"})),d.transition("active => desactive",[d.animate("50ms 250ms linear")]),d.transition("desactive => active",[d.animate("50ms 100ms linear")])])],styles:["@keyframes scale-up-center{0%{transform:scale(.5)}100%{transform:scale(1)}}.s-steps-container{display:-ms-flexbox;display:flex;white-space:nowrap;-ms-flex-align:start;align-items:flex-start;overflow:hidden;padding:15px 10px}.s-step-header{box-sizing:border-box;-ms-flex-direction:column;flex-direction:column;cursor:pointer;position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:66px}.s-step-header .s-step-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all;color:#999;font-size:14px;font-weight:400;padding-top:5px}.s-step-header .s-step-progress-bar-before{margin:0;position:absolute;top:20px;-ms-flex:auto;flex:auto;height:3px;overflow:hidden;width:calc(50% - 20px);background-color:#ccc;background-image:linear-gradient(to right,#7892a1 50%,#ccc 50%);background-position:right bottom;background-size:300% 100%;left:0}.s-step-header .s-step-progress-bar-before.s-step-active,.s-step-header .s-step-progress-bar-before.s-step-visited{background-position:left bottom}.s-step-header .s-step-progress-bar-after{margin:0;position:absolute;top:20px;-ms-flex:auto;flex:auto;height:3px;overflow:hidden;width:calc(50% - 20px);background-color:#ccc;background-image:linear-gradient(to right,#7892a1 50%,#ccc 50%);background-position:right bottom;background-size:300% 100%;right:0}.s-step-header .s-step-progress-bar-after.s-step-active,.s-step-header .s-step-progress-bar-after.s-step-visited{background-position:left bottom}.s-step-progress-bar{margin:0;position:relative;top:20px;-ms-flex:auto;flex:auto;height:3px;overflow:hidden;width:100%;background-color:#ccc;background-image:linear-gradient(to right,#7892a1 50%,#ccc 50%);background-position:right bottom;background-size:300% 100%}.s-step-disabled{opacity:.5;filter:Alpha(Opacity=50)}.s-step-disabled,.s-step-disabled *{cursor:text!important}.s-step-active.s-step-disabled{opacity:1}.s-step-index{background-color:#fff;border:3px solid #ccc;border-radius:50%;color:#999;display:inline-block;font-weight:700;position:relative;transition:background-color .2s ease-out;height:40px;width:40px;-ms-flex:none;flex:none}.s-step-index .s-step-index-content{line-height:18px;font-size:18px;padding-top:8.5px;text-align:center;position:relative;cursor:pointer}.s-step-index:hover{background-color:#f7f7f7}.s-step-warning .s-step-index .s-step-index-content{padding-top:7px}.s-step-visited .s-step-index{border-color:#7892a1;animation:.1s ease-out alternate scale-up-center;background-color:#7892a1}.s-step-visited .s-step-index-content>span{color:#fff}.s-step-active.s-step-progress-bar,.s-step-visited.s-step-progress-bar{background-position:left bottom}.s-step-active .s-step-index{border-color:#7892a1;color:#7892a1;cursor:default}.s-step-active .s-step-label{color:#333;font-weight:700}@media (max-width:767px){.s-step-label{display:none}}"]})],n)}(),fi=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,l.TooltipModule],declarations:[mi],exports:[mi]})],e)}(),hi=function(){function e(){this.direction="horizontal",this.collapsable=!0,this.counterLabel="items"}return Object.defineProperty(e.prototype,"items",{get:function(){return this._items},set:function(e){this._items=e,this.checkDuplicateIds()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this._innerWidth=window.innerWidth},e.prototype.onResize=function(e){this._innerWidth=window.innerWidth},e.prototype.changeToVertical=function(){return"vertical"===this.direction||this._innerWidth/this.items.length<200},e.prototype.checkDuplicateIds=function(){var e=this.items.map((function(e){return e.id}));if(new Set(e).size!==e.length)throw new Error("A duplicate id was found in the items list")},oe([t.Input()],e.prototype,"items",null),oe([t.Input()],e.prototype,"activeIndex",void 0),oe([t.Input()],e.prototype,"direction",void 0),oe([t.Input()],e.prototype,"collapsable",void 0),oe([t.Input()],e.prototype,"counterLabel",void 0),oe([t.HostListener("window:resize",["$event"])],e.prototype,"onResize",null),e=oe([t.Component({selector:"s-timeline",template:'<div *ngIf="changeToVertical(); then vertical else horizontal"></div>\n\n<ng-template #horizontal>\n <s-horizontal-timeline\n [items]="items"\n [activeIndex]="activeIndex">\n </s-horizontal-timeline>\n</ng-template>\n\n<ng-template #vertical>\n <s-vertical-timeline\n [items]="items"\n [activeIndex]="activeIndex"\n [counterLabel]="counterLabel"\n [collapsable]="collapsable">\n </s-vertical-timeline>\n</ng-template>'})],e)}(),gi=function(){function e(){}return oe([t.Input()],e.prototype,"item",void 0),oe([t.Input()],e.prototype,"isActive",void 0),oe([t.Input()],e.prototype,"isComplete",void 0),e=oe([t.Component({selector:"s-timeline-icon-item",template:"<ng-container *ngIf=\"item\">\n <div\n class=\"timeline__icon-item\"\n [ngClass]=\"{\n 'timeline__icon-item--small': item.testSize('small'),\n 'timeline__icon-item--normal': item.testSize('normal'),\n 'timeline__icon-item--warning': item.testSeverity('warning'),\n 'timeline__icon-item--error': item.testSeverity('error'),\n 'timeline__icon-item--completed': isComplete,\n 'timeline__icon-item--active': isActive\n }\">\n <div\n class=\"timeline__icon-item__icon\"\n [pTooltip]=\"item.tooltip\"\n tooltipPosition=\"top\">\n <ng-content *ngIf=\"item.icon; then icon_content; else label_text_content\"></ng-content>\n <ng-template #icon_content>\n <span\n class=\"fas\"\n [ngClass]=\"item.icon\">\n </span>\n </ng-template>\n <ng-template #label_text_content>\n <span class=\"timeline__icon-item__icon__label\">\n {{ item.label }}\n </span>\n </ng-template>\n </div>\n </div>\n</ng-container>\n",styles:['.timeline__icon-item .timeline__icon-item__icon{-ms-flex-align:center;align-items:center;background-color:#697882;border-radius:50%;color:#fff;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:4px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.timeline__icon-item .timeline__icon-item__icon .timeline__icon-item__icon__label{font-family:"Open Sans",sans-serif}.timeline__icon-item.timeline__icon-item--small .timeline__icon-item__icon{font-size:0;height:16px;width:16px}.timeline__icon-item.timeline__icon-item--normal .timeline__icon-item__icon{font-size:10px;height:24px;padding:8px;width:24px}.timeline__icon-item.timeline__icon-item--normal .timeline__icon-item__icon .timeline__icon-item__icon__label{font-size:14px}.timeline__icon-item.timeline__icon-item--active .timeline__icon-item__icon{font-size:20px;height:40px;padding:10px;width:40px}.timeline__icon-item.timeline__icon-item--active .timeline__icon-item__icon .timeline__icon-item__icon__label{font-size:22px}.timeline__icon-item.timeline__icon-item--active .timeline__icon-item__icon,.timeline__icon-item.timeline__icon-item--completed .timeline__icon-item__icon{background-color:#0c9348}.timeline__icon-item.timeline__icon-item--warning.timeline__icon-item--active .timeline__icon-item__icon{background-color:#fcbf10;color:#333}.timeline__icon-item.timeline__icon-item--danger.timeline__icon-item--active .timeline__icon-item__icon{background-color:#f8931f;color:#333}.timeline__icon-item.timeline__icon-item--error.timeline__icon-item--active .timeline__icon-item__icon{background-color:#c13018}']})],e)}(),bi=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,l.TooltipModule],declarations:[gi],exports:[gi]})],e)}(),vi=function(){function e(){this.activeIndex=0}return oe([t.Input()],e.prototype,"items",void 0),oe([t.Input()],e.prototype,"activeIndex",void 0),e=oe([t.Component({selector:"s-horizontal-timeline",template:'<div class="horizontal-timeline">\n <ng-container\n *ngFor="let item of items;\n let i = index;\n let isFirst = first;\n let isLast = last">\n <div\n class="horizontal-timeline__item"\n [ngClass]="{\n \'horizontal-timeline__item--small\': item.testSize(\'small\'),\n \'horizontal-timeline__item--normal\': item.testSize(\'normal\'),\n \'horizontal-timeline__item--warning\': item.testSeverity(\'warning\'),\n \'horizontal-timeline__item--error\': item.testSeverity(\'error\'),\n \'horizontal-timeline__item--completed\': i < activeIndex,\n \'horizontal-timeline__item--active\': i === activeIndex\n }">\n <div class="horizontal-timeline__item__icon-wrapper">\n <div\n class="horizontal-timeline__item__icon-wrapper__line horizontal-timeline__item__icon-wrapper__line--before"\n [ngStyle]="{ \'visibility\': isFirst ? \'hidden\' : \'visible\' }">\n </div>\n <s-timeline-icon-item\n [item]="item"\n [isActive]="i === activeIndex"\n [isComplete]="i < activeIndex">\n </s-timeline-icon-item>\n <div\n class="horizontal-timeline__item__icon-wrapper__line horizontal-timeline__item__icon-wrapper__line--after"\n [ngStyle]="{ \'visibility\': isLast ? \'hidden\' : \'visible\' }">\n </div>\n </div>\n <div class="horizontal-timeline__item__info">\n <div\n class="horizontal-timeline__item__info__title"\n [pTooltip]="item.title"\n tooltipPosition="top"\n [showDelay]="1000">\n {{ item.title }}\n </div>\n <div\n class="horizontal-timeline__item__info__description"\n [pTooltip]="item.description"\n tooltipPosition="top"\n [showDelay]="1000">\n {{ item.description }}\n </div>\n </div>\n </div>\n </ng-container>\n</div>',styles:['@keyframes scale-up-center{0%{transform:scale(.5)}100%{transform:scale(1)}}.horizontal-timeline{-ms-flex-align:start;align-items:flex-start;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.horizontal-timeline .horizontal-timeline__item{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;width:100%}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__icon-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:56px;-ms-flex-pack:start;justify-content:flex-start;width:100%}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line{background-color:#697882;height:3px}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line--before{border-radius:0 2px 2px 0}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line--after{border-radius:2px 0 0 2px}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__info{width:20ch}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__info .horizontal-timeline__item__info__title{color:#333;font-family:"Open Sans",sans-serif;font-size:14px;font-weight:700;line-height:150%;max-width:100%;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__info .horizontal-timeline__item__info__description{color:#999;display:-webkit-box;font-family:"Open Sans",sans-serif;font-size:12px;font-weight:400;line-height:150%;max-height:calc(12px * 1.5 * 4);overflow:hidden;text-align:center;text-overflow:ellipsis;-webkit-line-clamp:4;-webkit-box-orient:vertical}.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--small .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line{width:calc(50% - 4px - 8px)}.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--normal .horizontal-timeline__item__icon-wrapper__line{width:calc(50% - 4px - 12px)}.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--active .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line{width:calc(50% - 4px - 20px)}.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--active .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line--before,.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--completed .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line--after,.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--completed .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line--before{background-color:#0c9348}']})],e)}(),yi=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,l.TooltipModule,bi],declarations:[vi],exports:[vi]})],e)}(),xi=function(){function e(){this.isG1Collapsed=!0,this.isG2Collapsed=!0}return Object.defineProperty(e.prototype,"activeIndex",{get:function(){return this._activeIndex},set:function(e){this._activeIndex=e,this.groupItems()},enumerable:!0,configurable:!0}),e.prototype.onChangeG1=function(e){this.isG1Collapsed=e},e.prototype.onChangeG2=function(e){this.isG2Collapsed=e},e.prototype.groupItems=function(){this.firstItem=0===this.activeIndex?[]:[this.items[0]],this.g1Items=this.items.slice(1,this.activeIndex),this.activeItem=[this.items[this.activeIndex]],this.g2Items=this.items.slice(this.activeIndex+1,this.items.length-1),this.lastItem=this.activeIndex===this.items.length-1?[]:[this.items[this.items.length-1]]},e.nextId=0,oe([t.Input()],e.prototype,"activeIndex",null),oe([t.Input()],e.prototype,"items",void 0),oe([t.Input()],e.prototype,"counterLabel",void 0),oe([t.Input()],e.prototype,"collapsable",void 0),e=oe([t.Component({selector:"s-vertical-timeline",template:'<div class="vertical-timeline">\n <div\n *ngIf="firstItem.length"\n class="vertical-timeline__block">\n <div class="vertical-timeline__block__prefix"></div>\n <s-vertical-items\n [items]="firstItem"\n [isLast]="false"\n [isActive]="false"\n [isCompleted]="true">\n </s-vertical-items>\n </div>\n\n <div\n *ngIf="g1Items.length"\n class="vertical-timeline__block">\n <div class="vertical-timeline__block__prefix">\n <ng-container *ngIf="g1Items.length > 1 && !isG1Collapsed">\n <s-collapse-option\n *ngIf="collapsable"\n [isCollapsed]="isG1Collapsed"\n (change)="onChangeG1($event)">\n </s-collapse-option>\n <s-range-line class="vertical-timeline__block__prefix__line"></s-range-line>\n </ng-container>\n </div>\n\n <div *ngIf="isG1Collapsed && g1Items.length > 1 && collapsable; then g1_collapsed; else g1_items"></div>\n\n <ng-template #g1_collapsed>\n <s-collapsed-items\n [items]="g1Items"\n [(isCollapsed)]="isG1Collapsed"\n [isCompleted]="true"\n [counterLabel]="counterLabel">\n </s-collapsed-items>\n </ng-template>\n\n <ng-template #g1_items>\n <s-vertical-items\n [items]="g1Items"\n [isLast]="false"\n [isActive]="false"\n [isCompleted]="true">\n </s-vertical-items>\n </ng-template>\n </div>\n\n <div\n *ngIf="activeItem.length"\n class="vertical-timeline__block">\n <div class="vertical-timeline__block__prefix"></div>\n <s-vertical-items\n [items]="activeItem"\n [isLast]="!lastItem.length"\n [isActive]="true"\n [isCompleted]="false">\n </s-vertical-items>\n </div>\n\n <div\n *ngIf="g2Items.length"\n class="vertical-timeline__block">\n <div class="vertical-timeline__block__prefix">\n <ng-container *ngIf="g2Items.length > 1 && !isG2Collapsed">\n <s-collapse-option\n *ngIf="collapsable"\n [isCollapsed]="isG2Collapsed"\n (change)="onChangeG2($event)">\n </s-collapse-option>\n <s-range-line class="vertical-timeline__block__prefix__line"></s-range-line>\n </ng-container>\n </div>\n\n <div *ngIf="isG2Collapsed && g2Items.length > 1 && collapsable; then g2_collapsed; else g2_items"></div>\n\n <ng-template #g2_collapsed>\n <s-collapsed-items\n [items]="g2Items"\n [(isCollapsed)]="isG2Collapsed"\n [isCompleted]="false"\n [counterLabel]="counterLabel">\n </s-collapsed-items>\n </ng-template>\n\n <ng-template #g2_items>\n <s-vertical-items\n [items]="g2Items"\n [isLast]="false"\n [isActive]="false"\n [isCompleted]="false">\n </s-vertical-items>\n </ng-template>\n </div>\n\n <div\n *ngIf="lastItem.length"\n class="vertical-timeline__block">\n <div class="vertical-timeline__block__prefix"></div>\n <s-vertical-items\n [items]="lastItem"\n [isLast]="true"\n [isActive]="false"\n [isCompleted]="false">\n </s-vertical-items>\n </div>\n</div>',styles:[".vertical-timeline{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.vertical-timeline .vertical-timeline__block{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch}.vertical-timeline .vertical-timeline__block .vertical-timeline__block__prefix{width:60px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-negative:0;flex-shrink:0}.vertical-timeline .vertical-timeline__block .vertical-timeline__block__prefix .vertical-timeline__block__prefix__line{height:100%}"]})],e)}(),wi=function(){function e(){}return e=oe([t.Component({selector:"s-range-line",template:'<div class="range-line">\n <div class="range-line__horizontal"></div>\n <div class="range-line__vertical"></div>\n <div class="range-line__horizontal"></div>\n</div>\n',styles:[".range-line{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;align-self:stretch;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:20px;height:100%}.range-line .range-line__horizontal{background-color:#ccc;height:3px;width:100%}.range-line .range-line__vertical{background-color:#ccc;height:100%;width:3px}s-range-line{background-color:#add8e6}"]})],e)}(),Ci=function(){function e(){this.isCollapsed=!1,this.change=new t.EventEmitter}return e.prototype.onClick=function(){this.change.emit(!this.isCollapsed)},oe([t.Input()],e.prototype,"isCollapsed",void 0),oe([t.Output()],e.prototype,"change",void 0),e=oe([t.Component({selector:"s-collapse-option",template:'<div\n class="collapse-option"\n (click)="onClick()">\n <div class="collapse-option__icon">\n <span\n class="fas"\n [ngClass]="{\n \'fa-minus\': !isCollapsed,\n \'fa-plus\': isCollapsed\n }">\n </span>\n </div>\n</div>',styles:[".collapse-option{-ms-flex-align:center;align-items:center;background-color:#428bca;border-radius:50%;cursor:pointer;display:-ms-flexbox;display:flex;height:24px;-ms-flex-pack:center;justify-content:center;margin:4px;width:24px}.collapse-option .collapse-option__icon{color:#fff}"]})],e)}(),_i=function(){function e(){this.isCollapsedChange=new t.EventEmitter}return e.prototype.onChange=function(e){this.isCollapsed=!this.isCollapsed,this.isCollapsedChange.emit(this.isCollapsed)},oe([t.Input()],e.prototype,"items",void 0),oe([t.Input()],e.prototype,"isCollapsed",void 0),oe([t.Input()],e.prototype,"isCompleted",void 0),oe([t.Input()],e.prototype,"counterLabel",void 0),oe([t.Output()],e.prototype,"isCollapsedChange",void 0),e=oe([t.Component({selector:"s-collapsed-items",template:'<div class="collapsed-items">\n <div\n class="collapsed-items__item"\n [ngClass]="{ \'collapsed-items__item--completed\' : isCompleted }">\n <div class="collapsed-items__item__icon-wrapper">\n <s-collapse-option\n [isCollapsed]="isCollapsed"\n (change)="onChange($event)">\n </s-collapse-option>\n <div class="collapsed-items__item__icon-wrapper__line"></div>\n </div>\n <div\n class="collapsed-items__item__info"\n (click)="onChange(!isCollapsed)">\n <div\n class="collapsed-items__item__info__description">\n {{ items.length }} {{ counterLabel }}\n </div>\n </div>\n </div>\n</div>',styles:['.collapsed-items .collapsed-items__item{-ms-flex-align:stretch;align-items:stretch;display:-ms-flexbox;display:flex}.collapsed-items .collapsed-items__item .collapsed-items__item__icon-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-negative:0;flex-shrink:0;-ms-flex-pack:center;justify-content:center;width:56px}.collapsed-items .collapsed-items__item .collapsed-items__item__icon-wrapper .collapsed-items__item__icon-wrapper__line{background-color:#697882;border-radius:2px;-ms-flex-positive:1;flex-grow:1;min-height:20px;width:3px}.collapsed-items .collapsed-items__item .collapsed-items__item__info{-ms-flex-align:start;align-items:flex-start;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;margin-bottom:20px;-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.collapsed-items .collapsed-items__item .collapsed-items__item__info .collapsed-items__item__info__description{color:#428bca;font-family:"Open Sans",sans-serif;font-size:12px;font-weight:400;line-height:150%}.collapsed-items .collapsed-items__item.collapsed-items__item--completed .collapsed-items__item__icon-wrapper .collapsed-items__item__icon-wrapper__line{background-color:#0c9348}']})],e)}(),Ii=function(){function e(){}return oe([t.Input()],e.prototype,"items",void 0),oe([t.Input()],e.prototype,"isLast",void 0),oe([t.Input()],e.prototype,"isActive",void 0),oe([t.Input()],e.prototype,"isCompleted",void 0),e=oe([t.Component({selector:"s-vertical-items",template:'<div class="vertical-items">\n <ng-container *ngFor="let item of items; let index = index;">\n <div\n class="vertical-items__item"\n [ngClass]="{\n \'vertical-items__item--small\': item.testSize(\'small\'),\n \'vertical-items__item--normal\': item.testSize(\'normal\'),\n \'vertical-items__item--completed\': isCompleted,\n \'vertical-items__item--active\': isActive\n }">\n <div class="vertical-items__item__icon-wrapper">\n <s-timeline-icon-item\n [item]="item"\n [isComplete]="isCompleted"\n [isActive]="isActive">\n </s-timeline-icon-item>\n <div\n class="vertical-items__item__icon-wrapper__line"\n [ngStyle]="{ \'visibility\': isLast ? \'hidden\' : \'visible\' }">\n </div>\n </div>\n <div class="vertical-items__item__info">\n <div class="vertical-timeline__item__info__title">\n {{ item.title }}\n </div>\n <div class="vertical-items__item__info__description">\n {{ item.description }}\n </div>\n </div>\n </div>\n </ng-container>\n</div>',styles:['.vertical-items .vertical-items__item{-ms-flex-align:stretch;align-items:stretch;display:-ms-flexbox;display:flex;margin-right:50px}.vertical-items .vertical-items__item .vertical-items__item__collapsed-option{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.vertical-items .vertical-items__item .vertical-items__item__collapsed-option .vertical-items__item__collapsed-option__line{width:3px;height:50px;background-color:#ccc}.vertical-items .vertical-items__item .vertical-items__item__icon-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-negative:0;flex-shrink:0;-ms-flex-pack:center;justify-content:center;width:56px}.vertical-items .vertical-items__item .vertical-items__item__icon-wrapper .vertical-items__item__icon-wrapper__line{background-color:#697882;border-radius:2px;-ms-flex-positive:1;flex-grow:1;min-height:20px;width:3px}.vertical-items .vertical-items__item .vertical-items__item__info{-ms-flex-align:start;align-items:flex-start;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;margin-bottom:12px}.vertical-items .vertical-items__item .vertical-items__item__info .vertical-items__item__info__title{color:#333;font-family:"Open Sans",sans-serif;font-size:14px;font-weight:700;line-height:150%}.vertical-items .vertical-items__item .vertical-items__item__info .vertical-items__item__info__description{color:#999;font-family:"Open Sans",sans-serif;font-size:12px;font-weight:400;line-height:150%}.vertical-items .vertical-items__item .vertical-items__item__info .vertical-items__item__info__description.vertical-items__item__info__description--link{color:#428bca}.vertical-items .vertical-items__item.vertical-items__item--small .vertical-items__item__icon-wrapper__line{height:calc(100% - 4px - 8px)}.vertical-items .vertical-items__item.vertical-items__item--medium .vertical-items__item__icon-wrapper__line{height:calc(100% - 4px - 12px)}.vertical-items .vertical-items__item.vertical-items__item--big .vertical-items__item__icon-wrapper__line{height:calc(50% - 4px - 20px)}.vertical-items .vertical-items__item.vertical-items__item--completed .vertical-items__item__icon-wrapper .vertical-items__item__icon-wrapper__line{background-color:#0c9348}']})],e)}(),ki=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,bi],declarations:[xi,wi,Ci,_i,Ii],exports:[xi]})],e)}(),Ti=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,bi,yi,ki],declarations:[hi],exports:[hi]})],e)}();(di=e.TimelineItemSeverity||(e.TimelineItemSeverity={})).Normal="normal",di.Warning="warning",di.Error="error",(ui=e.TimelineItemSize||(e.TimelineItemSize={})).Normal="normal",ui.Small="small";var Si,Ei=function(){function t(t){this.id=t.id,this.title=t.title,this.description=t.description,this.icon=t.icon,this.label=t.label,this.tooltip=t.tooltip,this.size=t.size||e.TimelineItemSize.Normal,this.severity=t.severity||e.TimelineItemSeverity.Normal,this.checkItemIconContent()}return t.prototype.checkItemIconContent=function(){var e;if(!this.icon&&!this.label)throw new Error("No icon or label string was passed for the item. Enter an icon or label text");if(this.icon&&this.label)throw new Error("An icon and label string were passed to the item. Enter an icon or label text");if((null===(e=this.label)||void 0===e?void 0:e.length)>2)throw new Error("Label text is expected to be a maximum of two characters long")},t.prototype.testSize=function(e){return this.size.valueOf()===e},t.prototype.testSeverity=function(e){var t;return(null===(t=this.severity)||void 0===t?void 0:t.valueOf())===e},t}(),Fi=function(){function e(){this.id="s-tile-"+n.nextId++,this.disabled=!1,this.tabIndex=0,this.onClick=new t.EventEmitter}var n;return n=e,Object.defineProperty(e.prototype,"initialLetter",{get:function(){var e="";if(this.label){var t=this.label.split(" ",2);e=t[0].charAt(0).toUpperCase(),t.length>1&&(e+=t[1].charAt(0).toUpperCase())}return e},enumerable:!0,configurable:!0}),e.prototype.onKeyDown=function(e){!this.disabled&&[13,32].includes(e.keyCode)&&this.onClick.emit()},e.nextId=0,oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"label",void 0),oe([t.Input()],e.prototype,"description",void 0),oe([t.Input()],e.prototype,"iconClass",void 0),oe([t.Input()],e.prototype,"imageSource",void 0),oe([t.Input()],e.prototype,"imageAlt",void 0),oe([t.Input()],e.prototype,"disabled",void 0),oe([t.Input()],e.prototype,"tabIndex",void 0),oe([t.Output()],e.prototype,"onClick",void 0),oe([t.HostListener("keydown",["$event"])],e.prototype,"onKeyDown",null),e=n=oe([t.Component({selector:"s-tile",template:'<div [id]="id" class="container" [attr.tabindex]="disabled ? undefined : tabIndex" [attr.aria-label]="label"\n [attr.aria-disabled]="disabled" role="button" [ngClass]="{\'disabled\': disabled}" (click)="!disabled && onClick.emit($event)">\n <div class="thumbnail-container" *ngIf="imageSource || iconClass">\n <s-thumbnail [id]="id + \'-thumbnail\'" *ngIf="imageSource" [imageSource]="imageSource" [imageAlt]="imageAlt || label"\n size="small" [isTile]="true"></s-thumbnail>\n\n <span [id]="id + \'-icon\'" *ngIf="!imageSource && iconClass" [class]="\'icon \' + iconClass" aria-hidden="true"></span>\n </div>\n <div class="first-letter-container" *ngIf="!iconClass && !imageSource">\n <div class="first-letter-span">\n <span>{{initialLetter}}</span>\n </div>\n </div>\n\n <div class="info-container">\n <span [id]="id + \'-label\'" class="label" [pTooltip]="label" tooltipPosition="top" showDelay="500">{{label}}</span>\n <span [id]="id + \'-description\'" class="description" [pTooltip]="description" tooltipPosition="top" showDelay="500">{{description}}</span>\n </div>\n</div>\n',styles:[":host{display:block}.container{position:relative;background-color:#fff;border:1px solid #ddd;padding:15px;-ms-flex-align:center;align-items:center;cursor:pointer;min-height:80px;overflow:hidden;display:-ms-flexbox;display:flex;transition:background-color .2s ease-out,border-color .2s ease-out}.container:focus:not(.disabled),.container:hover:not(.disabled){background-color:rgba(221,221,221,.2);outline:0}.container.disabled{opacity:.5;filter:Alpha(Opacity=50);background-image:none}.container.disabled,.container.disabled *{cursor:text!important}.thumbnail-container+.info-container{margin-left:15px}.info-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;overflow:hidden}.info-container span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.label{color:#428bca;font-size:12pt}.description{color:#999}.icon{color:#428bca;font-size:40px}.first-letter-container{position:relative;float:left;margin-right:10px;text-align:center}.first-letter-container .first-letter-span{margin:0 auto 5px;font-size:22px;line-height:1.8em;width:40px;height:40px;border-radius:100%;background-color:#428bca;color:#fff}"]})],e)}(),Li=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,l.TooltipModule,Qn],declarations:[Fi],exports:[Fi,Qn]})],e)}();(Si=e.GlobalSearchSizeEnum||(e.GlobalSearchSizeEnum={})).STANDARD="STANDARD",Si.MEDIUM="MEDIUM",Si.SMALL="SMALL";var Mi=function(){function n(){this.id="s-global-search-dropdown-item-"+i.nextId++,this.size=e.GlobalSearchSizeEnum.STANDARD,this.buttonClick=new t.EventEmitter}var i;return i=n,n.prototype.isStandardSize=function(){return this.size===e.GlobalSearchSizeEnum.STANDARD},n.prototype.isMediumSize=function(){return this.size===e.GlobalSearchSizeEnum.MEDIUM},n.prototype.isSmallSize=function(){return this.size===e.GlobalSearchSizeEnum.SMALL},n.prototype.getImageSize=function(){return this.isStandardSize()?"medium":"small"},n.nextId=0,oe([t.Input()],n.prototype,"id",void 0),oe([t.Input()],n.prototype,"primaryLabel",void 0),oe([t.Input()],n.prototype,"secondaryEmptyLabel",void 0),oe([t.Input()],n.prototype,"tertiaryEmptyLabel",void 0),oe([t.Input()],n.prototype,"imageSource",void 0),oe([t.Input()],n.prototype,"imageAlt",void 0),oe([t.Input()],n.prototype,"iconClass",void 0),oe([t.Input()],n.prototype,"secondaryLabel",void 0),oe([t.Input()],n.prototype,"tertiaryLabel",void 0),oe([t.Input()],n.prototype,"size",void 0),oe([t.Input()],n.prototype,"template",void 0),oe([t.Output()],n.prototype,"buttonClick",void 0),oe([t.ContentChild(Jn,{static:!0})],n.prototype,"thumbnailComponent",void 0),oe([t.ViewChild(t.TemplateRef,{static:!0})],n.prototype,"content",void 0),n=i=oe([t.Component({selector:"s-global-search-dropdown-item",template:'<ng-template>\n <div class="{{isSmallSize() ? \'ui-g container\' : \'container\'}}">\n <ng-content select="s-thumbnail"></ng-content>\n <s-thumbnail [id]="id + \'-thumbnail\'"\n *ngIf="!thumbnailComponent && (imageSource || iconClass) && !isSmallSize()" [imageSource]="imageSource"\n [imageAlt]="imageAlt || primaryLabel" [iconClass]="iconClass" [size]="getImageSize()"></s-thumbnail>\n\n <div class="global-search-item__container {{!isSmallSize() ? \'global-search-item__container--width-60\' : \'\'}}">\n <div #titleTemplate>\n <ng-content select="[titleTemplate]"></ng-content>\n </div>\n <s-button styleClass="no-padding" class="{{isSmallSize() ? \'ui-g-6 no-padding\' : \'\'}}" [id]="id + \'-title\'"\n *ngIf="!titleTemplate.children.length" priority="link" [pTooltip]="primaryLabel" [label]="primaryLabel"\n size="small" (onClick)="buttonClick.emit($event)">\n </s-button>\n\n <div #labelTemplate>\n <ng-content select="[labelTemplate]"></ng-content>\n </div>\n <span [id]="id + \'-label\'" [ngClass]="{\'ui-g-6 global-search-item__text-align--right\': isSmallSize(), \'global-search-item__italic\' : !secondaryLabel}"\n class="label" *ngIf="!labelTemplate.children.length"\n [pTooltip]="secondaryLabel" tooltipPosition="top" showDelay="500">{{ secondaryLabel ? secondaryLabel : secondaryEmptyLabel }}</span>\n\n <div #descriptionTemplate>\n <ng-content select="[descriptionTemplate]"></ng-content>\n </div>\n <span [id]="id + \'-description\'" class="description"\n [ngClass]="{\'global-search-item__italic\' : !secondaryLabel}"\n *ngIf=" !descriptionTemplate.children.length && !isMediumSize() && !isSmallSize()"\n [pTooltip]="tertiaryLabel" tooltipPosition="top" showDelay="500">{{ tertiaryLabel ? tertiaryLabel : tertiaryEmptyLabel }}</span>\n </div>\n <div class="global-search-item__container--width-40 global-search__dropdown--template" *ngIf="!isSmallSize()">\n <ng-container *ngTemplateOutlet="template"></ng-container>\n </div>\n </div>\n</ng-template>\n',styles:[".container{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:100%;border-bottom:1px solid #ccc;padding:15px 5px;margin:0 10px}::ng-deep .no-padding{padding:0!important;min-width:0!important}::ng-deep .s-button-with-text{min-width:0!important}.global-search-item__italic{font-style:italic}.global-search-item__container{margin-left:10px;width:100%}.global-search-item__container,.global-search-item__container span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.global-search-item__container .label{color:#333;display:block}.global-search-item__container .description{color:#999;display:block}.global-search-item__container--width-60{width:60%}.global-search-item__container--width-40{width:40%}.global-search-item__text-align--right{text-align:right;padding:2px 0 0 15px}.global-search__dropdown--template{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;text-align:right!important}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.global-search-item__container{-ms-flex:1;flex:1}}@media (max-width:767px){.global-search-item__container,.global-search-item__container span{white-space:normal}}.global-search-item__container:only-child{margin-left:0}"]})],n)}(),Oi=function(){function e(e){this.cdr=e,this.id="s-global-search-"+Mi.nextId++,this.delay=500,this.isLoading=!1,this.showFooter=!0,this.onSearch=new t.EventEmitter,this.onFocus=new t.EventEmitter,this.onShowMore=new t.EventEmitter,this.wasSearched=!1,this.isModalLoading=!1,this.expanded=!0}return e.prototype.onChange=function(){var e=this,t=this.search;setTimeout((function(){e.search===t&&(e.canShowGlobalSearchActive(),e.onSearch.emit(e.search))}),this.delay)},e.prototype.focusIn=function(){this.onFocus.emit(!0)},e.prototype.focusOut=function(){this.onFocus.emit(!1)},e.prototype.showMore=function(){this.onShowMore.emit()},e.prototype.removeActiveClassByGlobalSearch=function(){At.removeClass(this.globalSearch,"global-search__input-active")},e.prototype.close=function(){this.search=null,this.wasSearched=!1,this.dropdownItens=null,this.isModalLoading=!1,this.removeActiveClassByGlobalSearch()},e.prototype.canShowGlobalSearchActive=function(){this.wasSearched=!!this.search,this.search?At.addClass(this.globalSearch,"global-search__input-active"):(this.removeActiveClassByGlobalSearch(),this.close()),this.cdr.detectChanges()},e.nextId=0,e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},oe([t.ViewChild("globalSearch",{static:!1})],e.prototype,"globalSearch",void 0),oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"delay",void 0),oe([t.Input()],e.prototype,"totalItensLabel",void 0),oe([t.Input()],e.prototype,"showMoreLabel",void 0),oe([t.Input()],e.prototype,"placeholder",void 0),oe([t.Input()],e.prototype,"isLoading",void 0),oe([t.Input()],e.prototype,"totalElements",void 0),oe([t.Input()],e.prototype,"emptyTitle",void 0),oe([t.Input()],e.prototype,"emptyDescription",void 0),oe([t.Input()],e.prototype,"emptyIcon",void 0),oe([t.Input()],e.prototype,"showFooter",void 0),oe([t.ContentChildren(Mi)],e.prototype,"dropdownItens",void 0),oe([t.Output()],e.prototype,"onSearch",void 0),oe([t.Output()],e.prototype,"onFocus",void 0),oe([t.Output()],e.prototype,"onShowMore",void 0),e=oe([t.Component({selector:"s-global-search",template:'<div class="ui-inputgroup">\n <input #globalSearch class="global-search__input" [(ngModel)]="search" (ngModelChange)="onChange()" pInputText\n [placeholder]="placeholder" (focus)="focusIn()" (blur)="focusOut()">\n <span class="ui-inputgroup-addon global-search__span"><em class="fas fa-search"></em></span>\n <div class="global-search__modal" *ngIf="wasSearched">\n <div *sLoadingState="isLoading && !isModalLoading" class="global-search__loader">\n <div class="global-search__container" *ngIf="dropdownItens && dropdownItens.length > 0 || isLoading">\n <div *ngIf="dropdownItens && dropdownItens.length > 0">\n <div class="global-search__modal--total-itens-title">\n <span class="ui-g-11 no-space">{{totalItensLabel}}</span>\n <span class="ui-g-1 no-space global-search__modal--total-itens-title-icon" (click)="close()"><em\n class="fas fa-times"></em></span>\n </div>\n <div class="no-space global-search__dropdown--itens"\n [@expandableContent]="expanded">\n <ng-container *ngFor="let item of dropdownItens">\n <div class="s-object-card-field no-space global-search__dropdown--itens-container">\n <ng-container *ngTemplateOutlet="item.content"></ng-container>\n </div>\n </ng-container>\n </div>\n <div *ngIf="showFooter" class="ui-g-12 global-search__modal--footer">\n <s-button class="global-search__show-more" (click)="showMore()" priority="link">\n {{showMoreLabel}}\n </s-button>\n </div>\n </div>\n </div>\n <s-empty-state *ngIf="(!dropdownItens || dropdownItens.length==0) && !isLoading" [title]="emptyTitle"\n [description]="emptyDescription" ngClass="global-search__empty-state--icon"\n [iconClass]="(emptyIcon ? emptyIcon : \'fas fa-search\')">\n </s-empty-state>\n </div>\n </div>\n <div *ngIf="wasSearched" class="global-search__background" (click)="close()"></div>\n</div>\n',animations:[d.trigger("expandableContent",[d.state("*",d.style({height:"0"})),d.state("false",d.style({height:"0"})),d.state("true",d.style({height:"*"})),d.transition("* => true",d.animate("200ms ease-out")),d.transition("false <=> true",d.animate("200ms ease-out"))])],styles:[".global-search__input{border-radius:20px 0 0 20px;width:136px;cursor:pointer;padding:0 0 0 15px;transition:.3s}.ui-inputtext{min-height:25px!important;height:25px!important}.global-search__span{transition:.3s;background:0 0!important;border-left:none;border-radius:0 20px 20px 0!important;padding:1px 15px 0 0!important;height:25px!important}.global-search__input:active,.global-search__input:focus{width:466px;cursor:default;transition:.3s;border-top:1px solid #428bca;border-left:1px solid #428bca;border-bottom:1px solid #428bca}.global-search__input:active,.global-search__input:focus+.global-search__span{transition:.3s;border-left:none;border-top:1px solid #428bca!important;border-right:1px solid #428bca!important;border-bottom:1px solid #428bca!important}.global-search__input-active{width:466px;cursor:default;transition:.3s}.global-search__modal{box-shadow:0 2px 8px 0 rgba(0,0,0,.4);border-radius:5px;width:500px;background:#fff;position:absolute;margin-top:60px;z-index:6;min-height:50px}::ng-deep .global-search__loader{border-radius:5px!important;width:100%}.global-search__container{min-height:50px;width:100%}.global-search__modal--total-itens-title{padding:15px;color:#333;border-bottom:1px solid #ccc;font-weight:600;height:50px}.global-search__modal--footer{height:50px;border-top:1px solid #ccc}.global-search__dropdown--itens{max-height:510px;overflow:auto}.global-search__dropdown--itens-container:hover{background:#dbe0e4}.global-search__modal--total-itens-title-icon{text-align:right;cursor:pointer}.global-search__background{background:rgba(0,0,0,.4);width:100%;height:calc(100vh - 70px);position:absolute;left:0;margin-top:50px;z-index:5;cursor:pointer}.no-space{padding:0;margin:0}.global-search__show-more{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}body .global-search__show-more--button{color:#428bca!important}.modal{position:absolute;left:1%;width:98%;height:calc(100vh - 90px)}.global-search__empty-state--icon{margin:42px 134px}::ng-deep .global-search__empty-state--icon .container .icon{font-size:40px}::ng-deep .s-button-priority-link{color:#428bca}@media all and (max-width:900px){.global-search__modal{top:20px;width:98%;left:1%}.global-search__input-active,.global-search__input:active,.global-search__input:focus{position:absolute;width:calc(100% - 70px);left:2%}body .global-search__dropdown--itens{max-height:100%;overflow:auto}}@media all and (max-width:767px){.global-search__modal{top:15px}.global-search__input-active,.global-search__input:active,.global-search__input:focus{width:calc(100% - 55px)}}@media all and (max-width:600px){.global-search__modal--itens{height:calc(100vh - 100px);background:#fff}.global-search__input-active,.global-search__input:active,.global-search__input:focus{position:absolute;width:calc(100% - 53px);left:2%}body .global-search__dropdown--itens{max-height:100%;overflow:auto}.global-search__dropdown--itens{max-height:100%;background:#fff}.global-search__modal--footer{background:#fff;height:50px}.global-search__modal{top:17px;border-radius:0;margin-top:55px;box-shadow:none;left:0;width:100%}}"]})],e)}(),Ai=function(){function e(e){this.el=e,this.onScroll=new t.EventEmitter}return e.prototype.scroll=function(){this.el.nativeElement.scrollTop>this.el.nativeElement.scrollHeight-this.el.nativeElement.offsetHeight-2&&this.onScroll.emit()},e.ctorParameters=function(){return[{type:t.ElementRef}]},oe([t.Output()],e.prototype,"onScroll",void 0),oe([t.HostListener("scroll")],e.prototype,"scroll",null),e=oe([t.Directive({selector:"[sInfiniteScroll]"})],e)}(),Di=function(){function e(){}return e=oe([t.NgModule({declarations:[Ai],imports:[n.CommonModule],exports:[Ai]})],e)}(),Ri=function(){function e(){}return e=oe([t.NgModule({declarations:[Oi,Mi],imports:[n.CommonModule,L.InputTextModule,u.FormsModule,u.ReactiveFormsModule,l.TooltipModule,Qn,ve,Pt,Di,Ft],exports:[Oi,Mi,l.TooltipModule,Qn,ve,Pt,Ft],entryComponents:[Oi,Mi]})],e)}();(e.Languages||(e.Languages={})).TaxCalculation="TaxCalculation",(e.Themes||(e.Themes={})).SDSLight="SDSLight";var Ni,zi,Bi,Vi,Ui,Pi,ji=function(){function e(){}return e.getLinter=function(t){var n=e._LINTERS.get(t);if(n)return n()},e._LINTERS=new Map([]),e}(),Hi=function(){function t(){this.$onCoreFinishLoad=new r.ReplaySubject(1),this.$onCodeChange=new r.Subject,this.$onCodeValidityChange=new r.Subject,this._completionItems=[],this._lastCodeEmitted=""}return t.prototype.changeEditorOptions=function(e){if(e){if("object"!=typeof e)throw new Error("Editor's options must be an EditorOptions object");this.validateLanguage(e.language),this.validateTheme(e.theme),this.setLinter(e.language),this.setCoreEditorOptions(e)}},t.prototype.changeCode=function(e){var t=this.getSafeCode(e);t!==this._lastCodeEmitted&&this.setCode(t)},t.prototype.getOnCoreFinishLoadObservable=function(){return this.$onCoreFinishLoad.asObservable()},t.prototype.getOnCodeChangeObservable=function(){return this.$onCodeChange.asObservable()},t.prototype.getOnCodeValidityChangeObservable=function(){return this.$onCodeValidityChange.asObservable()},t.prototype.notifyCoreFinishLoad=function(){this.$onCoreFinishLoad.next()},t.prototype.notifyCodeChange=function(e){var t=this.getSafeCode(e);t!==this._lastCodeEmitted&&(this._lastCodeEmitted=t,this.$onCodeChange.next(t),this.validateCode(t))},t.prototype.updateCompletionItems=function(e){this._completionItems=e||[],this.validateCode(this._lastCodeEmitted)},t.prototype.setLinter=function(e){this._linter=ji.getLinter(e)},t.prototype.validateCode=function(e){return ae(this,void 0,void 0,(function(){var t;return se(this,(function(n){switch(n.label){case 0:return this._linter?[4,this._linter.lint(e,this._completionItems)]:[3,2];case 1:t=n.sent(),this.highlightCode(t),this.notifyCodeValidityChange(!t.length),n.label=2;case 2:return[2]}}))}))},t.prototype.notifyCodeValidityChange=function(e){e!==this._lastCodeValidityEmitted&&(this._lastCodeValidityEmitted=e,this.$onCodeValidityChange.next(e))},t.prototype.validateLanguage=function(t){var n=Object.values(e.Languages);if(t&&!n.includes(t))throw new Error('The informed language "'+t+'" is not supported')},t.prototype.validateTheme=function(t){var n=Object.values(e.Themes);if(t&&!n.includes(t))throw new Error('The informed theme "'+t+'" is not supported')},t.prototype.getSafeCode=function(e){return"string"==typeof e?e:""},t}(),$i=function(){function e(e){this.coreFacade=e,this._ngUnsubscribe=new r.Subject,this.codeChange=new t.EventEmitter,this.isCodeValidChange=new t.EventEmitter,this.onCodeChange=new t.EventEmitter,this.onComponentFinishLoad=new t.EventEmitter}return Object.defineProperty(e.prototype,"editorOptions",{set:function(e){this.coreFacade.changeEditorOptions(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"code",{set:function(e){this.coreFacade.changeCode(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.coreFacade.initCore(),this.setupCoreListeners()},e.prototype.ngAfterViewInit=function(){this.setCoreWrapperElement()},e.prototype.ngOnDestroy=function(){this.coreFacade.destroyCore(),this._ngUnsubscribe.next(),this._ngUnsubscribe.complete()},e.prototype.setCoreWrapperElement=function(){this.coreFacade.setCoreWrapperElement(this.coreWrapperElement.nativeElement)},e.prototype.setupCoreListeners=function(){var e=this;this.coreFacade.getOnCoreFinishLoadObservable().pipe(a.take(1)).subscribe((function(){return e.onComponentFinishLoad.emit()})),this.coreFacade.getOnCodeChangeObservable().pipe(a.takeUntil(this._ngUnsubscribe)).subscribe((function(t){e.codeChange.emit(t),e.onCodeChange.emit(t)})),this.coreFacade.getOnCodeValidityChangeObservable().pipe(a.takeUntil(this._ngUnsubscribe)).subscribe((function(t){e.isCodeValidChange.emit(t)}))},e.ctorParameters=function(){return[{type:Hi}]},oe([t.ViewChild("coreWrapper")],e.prototype,"coreWrapperElement",void 0),oe([t.Input()],e.prototype,"editorOptions",null),oe([t.Input()],e.prototype,"code",null),oe([t.Output()],e.prototype,"codeChange",void 0),oe([t.Input()],e.prototype,"isCodeValid",void 0),oe([t.Output()],e.prototype,"isCodeValidChange",void 0),oe([t.Output()],e.prototype,"onCodeChange",void 0),oe([t.Output()],e.prototype,"onComponentFinishLoad",void 0),e=oe([t.Component({selector:"s-code-editor",template:'<div #coreWrapper class="core-wrapper"></div>',styles:[".core-wrapper{height:100%}"]})],e)}();!function(e){e.ASC="ASC",e.DESC="DESC"}(Ni||(Ni={})),function(e){e.ENTITY="ENTITY",e.STRING="STRING",e.INTEGER="INTEGER",e.DOUBLE="DOUBLE",e.LONG="LONG",e.BIGDECIMAL="BIGDECIMAL",e.UUID="UUID",e.DATE="DATE",e.DATETIME="DATETIME",e.LOCALDATETIME="LOCALDATETIME",e.TIME="TIME",e.BOOLEAN="BOOLEAN",e.LIST="LIST",e.ENUM="ENUM",e.CUSTOM_EXPRESSION="CUSTOM_EXPRESSION",e.PUBLIC_EXPRESSION="PUBLIC_EXPRESSION"}(zi||(zi={})),function(e){e[e.ListContextMetadataById=0]="ListContextMetadataById",e[e.ListExpressionMetadata=1]="ListExpressionMetadata",e[e.ListFacadeMetadataNames=2]="ListFacadeMetadataNames",e[e.GetFacadeMetadataByPath=3]="GetFacadeMetadataByPath"}(Bi||(Bi={})),function(e){e.Keyword="keyword",e.Context="context",e.Expression="expression",e.UserExpression="userExpression",e.Entity="entity",e.FinalValue="finalValue"}(Vi||(Vi={})),function(e){e.SE="SE",e.SENAO="SENAO",e.CONTENHA="CONTENHA",e.ENTAO="ENTAO",e.FIM_SE="FIM_SE",e.NAO="NAO",e.E="E",e.OU="OU"}(Ui||(Ui={}));var Gi=W.LRLanguage.define({parser:Y.buildParser('\n@top Script { statement+ }\n\nstatement[@isGroup=Statement] {\n Keyword |\n String |\n Number\n}\n\n@tokens {\n String { \'"\' (![\\n"])* \'"\'? }\n\n Number { std.digit+ }\n\n identifierChar { std.asciiLetter | $[_$¡-􏿿] }\n\n word { identifierChar (identifierChar | std.digit)* }\n\n identifier { word }\n}\n\nKeyword {\n kw<"SE">\n kw<"ENTAO">\n kw<"FIM_SE">\n kw<"SENAO">\n kw<"NAO">\n kw<"CONTENHA">\n kw<"OU">\n kw<"E">\n}\n\nkw<term> { @specialize[@name={term}]<identifier, term> }\n\n@detectDelim\n').configure({props:[X.styleTags((Pi={},Pi[Object.values(Ui).join(" ")]=X.tags.keyword,Pi.String=X.tags.string,Pi.Number=X.tags.number,Pi))]})});function qi(e){return ae(this,void 0,void 0,(function(){return se(this,(function(t){return[2,e.json()]}))}))}function Ki(e){return ae(this,void 0,void 0,(function(){var t;return se(this,(function(n){switch(n.label){case 0:return[4,e.blob()];case 1:return[4,n.sent().text()];case 2:return t=n.sent(),[2,JSON.parse(t)]}}))}))}var Wi,Yi=function(){function e(){}return e.GET=function(e,t){return void 0===t&&(t={}),ae(this,void 0,void 0,(function(){var n;return se(this,(function(i){switch(i.label){case 0:return[4,this.interceptRequest(e,ie(ie({},t),{method:"GET"}))];case 1:return n=i.sent(),[2,this.formatResponse(n)]}}))}))},e.POST=function(e,t,n){return void 0===n&&(n={}),ae(this,void 0,void 0,(function(){var i,o;return se(this,(function(r){switch(r.label){case 0:return(i=new Headers(n.headers)).append("Content-Type","application/json"),i.append("Accept","application/json"),[4,this.interceptRequest(e,ie(ie({},n),{method:"POST",body:JSON.stringify(t),headers:i}))];case 1:return o=r.sent(),[2,this.formatResponse(o)]}}))}))},e.interceptRequest=function(e,t){return void 0===t&&(t={}),ae(this,void 0,void 0,(function(){var n,i,o,r,a;return se(this,(function(s){switch(s.label){case 0:return s.trys.push([0,4,,5]),e.includes("://")?[3,3]:[4,x.service.getRestUrl()];case 1:return n=s.sent(),[4,x.user.getAuthHeader()];case 2:return i=s.sent(),(o=new Headers(t.headers)).append("Authorization",i),r=new Request(n+e,ie(ie({},t),{headers:o})),[2,fetch(r)];case 3:return[2,fetch(e,t)];case 4:throw a=s.sent(),new Error("Error fetching requested URL: "+a);case 5:return[2]}}))}))},e.formatResponse=function(t){return ae(this,void 0,void 0,(function(){var n,i,o,r;return se(this,(function(a){switch(a.label){case 0:return n=t.headers.get("content-type"),(i=e._responseFormatterMap.get(n))?[4,i(t)]:[3,2];case 1:return r=a.sent(),[3,3];case 2:r={},a.label=3;case 3:if(o=r,t.ok)return[2,o];throw new Error(JSON.stringify(o))}}))}))},e._responseFormatterMap=new Map([["application/json",qi],["application/octet-stream",Ki]]),e}(),Xi=function(){function e(){}return e.translate=function(t){var n,i;if(null==t)return"";var o=""+e._TRANSLATION_PREFIX+t;return null!==(i=(null!==(n=Object.values(e._translations)[0])&&void 0!==n?n:{})[o])&&void 0!==i?i:o},e.setTranslations=function(t){e._translations=null!=t?t:{}},e.setTranslationsPrefix=function(t){var n=null!=t?t:{},i=n.domain+"."+n.service+".";e._TRANSLATION_PREFIX=i},e._translations={},e._TRANSLATION_PREFIX="",e}(),Zi=function(){function e(e,t){this.translate=e,this.hostProjectConfigs=t,this.factoryTranslations(this.translate,this.hostProjectConfigs)}return e.prototype.factoryTranslations=function(e,t){Xi.setTranslations(e.translations),Xi.setTranslationsPrefix(t)},e.ctorParameters=function(){return[{type:V.TranslateService},{type:void 0,decorators:[{type:t.Inject,args:[Qt]}]}]},e=oe([t.NgModule(),re(1,t.Inject(Qt))],e)}();!function(e){e[e.Error=0]="Error",e[e.Info=1]="Info",e[e.Warning=2]="Warning"}(Wi||(Wi={}));var Ji=new Map([[Wi.Error,"error"],[Wi.Info,"info"],[Wi.Warning,"warning"]]);var Qi=function(){function e(){}return e.listContextMetadataById=function(t,n){return ae(this,void 0,void 0,(function(){return se(this,(function(i){return[2,Yi.POST(e.BASE_URL+"/queries/listContextMetadataById",t,{signal:n})]}))}))},e.listExpressionMetadata=function(t,n){return ae(this,void 0,void 0,(function(){return se(this,(function(i){return[2,Yi.POST(e.BASE_URL+"/queries/listExpressionMetadata",t,{signal:n})]}))}))},e.listFacadeMetadataNames=function(t,n){return ae(this,void 0,void 0,(function(){return se(this,(function(i){return[2,Yi.POST(e.BASE_URL+"/queries/listFacadeMetadataNames",t,{signal:n})]}))}))},e.getFacadeMetadataByPath=function(t,n){return ae(this,void 0,void 0,(function(){return se(this,(function(i){return[2,Yi.POST(e.BASE_URL+"/queries/getFacadeMetadataByPath",t,{signal:n})]}))}))},e.BASE_URL="platform/rule_metadata",e}();var eo,to,no=null;function io(){return[q.StateField.define({create:ro,update:function(e,t){return ro(t.state)},provide:function(e){return J.showTooltip.compute([e],(function(t){return t.field(e)}))}}),G.EditorView.theme({".s-code-editor-taxCalculation-autocomplete-ul":{padding:".75rem !important"},".s-code-editor-taxCalculation-autocomplete-li":{cursor:"default !important","line-height":"1.375em !important"}})]}function oo(e){no=e,ko.updateEditorView()}function ro(e){if(no){var t=no.outerHTML,n={pos:e.selection.ranges[0].head,create:function(){return{dom:ao(t)}}};return no=null,n}}function ao(e){var t=document.createElement("div");return t.className="cm-tooltip-autocomplete cm-tooltip",t.innerHTML='\n <ul class="s-code-editor-taxCalculation-autocomplete-ul">\n <li class="s-code-editor-taxCalculation-autocomplete-li">\n '+e+"\n </li>\n </ul>\n\n ",t}function so(){var e;eo||((e=document.createElement("span")).innerText=Xi.translate("core_language_tax_calculation_fetching_suggestions"),eo=e),oo(eo)}function lo(){var e;to||((e=document.createElement("span")).innerText=Xi.translate("core_language_tax_calculation_no_suggestions"),to=e),oo(to)}var co=function(){function e(){}return e.setConfigs=function(t){e.CONFIGS=JSON.parse(JSON.stringify(t))},e.getConfigs=function(){return e.CONFIGS},e.CONFIGS={contexts:[]},e}();function po(e){return'"\\'+e+'"'}var uo,mo="core_language_tax_calculation";function fo(e){if(!function(e){var t;return((null===(t=e.match(/"/g))||void 0===t?void 0:t.length)||0)%2!=0}(e.state.doc.toString().substring(0,e.pos))){if(uo){var t=ie({},uo),n=e.state.doc.toString().length;return t.from=t.from>n?n:t.from,uo=null,t}!function(e){var t=new AbortController;setTimeout((function(){t.signal.aborted||(so(),function(e,t){var n,i,o,r;ae(this,void 0,void 0,(function(){var a,s,l,c;return se(this,(function(p){return a=null!==(r=null===(i=null===(n=null==e?void 0:e.state)||void 0===n?void 0:n.doc)||void 0===i?void 0:i.toString().substring(0,null!==(o=null==e?void 0:e.pos)&&void 0!==o?o:0))&&void 0!==r?r:"",s=function(e){var t,n;return null==e?"":(null!==(n=null===(t=e.match(/(#|\.|)\w*$/))||void 0===t?void 0:t[0])&&void 0!==n?n:"").replace(".","").trim()}(a),l=function(e,t){var n,i;if(null==e)return"";var o=e.substring(0,e.length-t);return(null!==(i=null===(n=o.match(/(\w*\.)*$/))||void 0===n?void 0:n[0])&&void 0!==i?i:"").replace(/\.$/,"")}(a,s.length),c=function(e,t,n){var i,o=function(){var e,t=co.getConfigs();if(!(null===(e=t.contexts)||void 0===e?void 0:e.length))throw new Error("In order to use the TaxCalculation Language's autocomplete, one must inform at least one context by using the 'TaxCalculationLanguageConfigs.setConfigs()'");return t}(),r=[];if(""===e)r.push({requestType:Bi.ListContextMetadataById,request:Qi.listContextMetadataById({id:o.contexts},n)}),r.push({requestType:Bi.ListExpressionMetadata,request:Qi.listExpressionMetadata({context:o.contexts,subcontext:null!==(i=o.subContexts)&&void 0!==i?i:[],name:t,pageRequest:{offset:0,size:20}},n)});else if(e.includes(".")){var a=e.split(".");r.push({requestType:Bi.GetFacadeMetadataByPath,request:Qi.getFacadeMetadataByPath({context:a[0],entityName:a[1],fields:void 0===a[2]?void 0:a.slice(2)},n)})}else r.push({requestType:Bi.ListFacadeMetadataNames,request:Qi.listFacadeMetadataNames({context:[e],name:t,pageRequest:{offset:0,size:30}},n)});return r.map((function(e){return function(e){return ae(this,void 0,void 0,(function(){var t,n;return se(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),t=[ie({},e)],n={},[4,e.request];case 1:return[2,ie.apply(void 0,t.concat([(n.response=i.sent(),n)]))];case 2:return i.sent(),[3,3];case 3:return[2]}}))}))}(e)}))}(l,s,t.signal),Promise.all(c).then((function(n){if(!t.signal.aborted){var i=function(e,t){return e.filter((function(e){return e.label.toLowerCase().startsWith(t.toLowerCase())}))}([].concat(function(e){return""!==e?[]:[{label:Ui.SE,apply:"SE ()\nENTAO\n\tacao\nFIM_SE"},{label:Ui.SENAO,apply:"SENAO\n\tacao"},{label:Ui.CONTENHA,apply:"CONTENHA(condicao)"},{label:Ui.ENTAO,apply:"ENTAO\n\tacao"},{label:Ui.FIM_SE,apply:"FIM_SE "},{label:Ui.NAO,apply:"NAO "},{label:Ui.E,apply:"E "},{label:Ui.OU,apply:"OU "}].map((function(e){return ie(ie({},e),{detail:Xi.translate(mo+"_keyword"),type:Vi.Keyword})}))}(l),function(e){var t,n,i=e.find((function(e){return(null==e?void 0:e.requestType)===Bi.ListContextMetadataById}));if(i)return(null!==(n=null===(t=i.response)||void 0===t?void 0:t.contextMetadata)&&void 0!==n?n:[]).map((function(e){return{label:e.name,detail:Xi.translate(mo+"_context"),apply:e.name,type:Vi.Context}}));return[]}(n),function(e){var t,n,i=e.find((function(e){return(null==e?void 0:e.requestType)===Bi.ListExpressionMetadata}));if(i)return(null!==(n=null===(t=i.response)||void 0===t?void 0:t.expressionMetadata)&&void 0!==n?n:[]).map((function(e){return{label:e.name,detail:Xi.translate(mo+"_"+(e.type===zi.PUBLIC_EXPRESSION?"senior_expression":"user_expression")),apply:e.name,info:e.description,type:e.type===zi.PUBLIC_EXPRESSION?Vi.Expression:Vi.UserExpression}}));return[]}(n),function(e){var t,n,i,o,r,a=e.find((function(e){return(null==e?void 0:e.requestType)===Bi.ListFacadeMetadataNames}));if(a)return(null!==(n=null===(t=a.response)||void 0===t?void 0:t.facadeMetadataNames)&&void 0!==n?n:[]).map((function(e){return{label:e.name,detail:Xi.translate(mo+"_entity"),apply:e.name,type:Vi.Entity}}));var s=e.find((function(e){return(null==e?void 0:e.requestType)===Bi.GetFacadeMetadataByPath}));if(s)return(null!==(r=null===(o=null===(i=s.response)||void 0===i?void 0:i.facadeMetadata)||void 0===o?void 0:o.fields)&&void 0!==r?r:[]).map((function(e){return{label:e.name,detail:Xi.translate(mo+"_"+(e.type===zi.ENTITY?"entity":"field")),apply:e.name,type:e.type===zi.ENTITY?Vi.Entity:Vi.FinalValue}}));return[]}(n)),s);if(i.length){var o=function(e){return e.sort((function(e,t){return vo.indexOf(e.type)-vo.indexOf(t.type)}))}(function(e,t){return e.map((function(e){return ie(ie({},e),{apply:bo(t,""+e.apply)})}))}(i,s));uo={from:e.pos,filter:!1,options:o},Z.startCompletion(ko.getEditorView())}else lo()}})),[2]}))}))}(e,t))}),500),ho=ko.getEditorView().contentDOM,go=function(){ho.removeEventListener("keydown",go),ho.removeEventListener("click",go),t.abort()},ho.addEventListener("keydown",go),ho.addEventListener("click",go)}(e)}}var ho,go=function(){};function bo(e,t){return function(n,i,o,r){var a=o-e.length;n.dispatch({changes:{from:a,to:r,insert:t},selection:{anchor:a+t.length},userEvent:"input.complete",annotations:Z.pickedCompletion.of(i)})}}var vo=[Vi.Keyword,Vi.Context,Vi.UserExpression,Vi.Expression,Vi.Entity,Vi.FinalValue];function yo(){return new W.LanguageSupport(Gi,[[Z.autocompletion({override:[fo]}),[io()],[io()],G.EditorView.theme({".cm-completionIcon":{"font-family":"'Font Awesome 5 Pro'","font-weight":"900"},".cm-completionIcon-keyword::after":{content:po("f084")},".cm-completionIcon-context::after":{content:po("f466")},".cm-completionIcon-expression::after":{content:po("f505")},".cm-completionIcon-userExpression::after":{content:po("f4ff")},".cm-completionIcon-entity::after":{content:po("f126")},".cm-completionIcon-finalValue::after":{content:po("f192")}})]])}var xo=function(){function t(){}return t.getLanguage=function(e){var n=t._LANGUAGES.get(e);return n?n():[]},t._LANGUAGES=new Map([[e.Languages.TaxCalculation,yo]]),t}();var wo=X.HighlightStyle.define([{tag:X.tags.keyword,color:"#008080"},{tag:X.tags.string,color:"#9C3A3A"},{tag:X.tags.number,color:"#400753"}]);var Co={"font-family":"'Noto Sans Mono', 'sans-serif'","font-style":"normal","font-size":"1rem"};function _o(){return[[G.EditorView.theme({"&.cm-editor.cm-focused":{outline:"none"}}),[G.EditorView.baseTheme({"&.cm-editor":{height:"100%"}})],[G.EditorView.theme({".cm-scroller":ie(ie({},Co),{"letter-spacing":"0","line-height":"1.5em","font-variation-settings":"'wght' 400",color:"#333333"}),".cm-tooltip.cm-tooltip-autocomplete > ul":ie(ie({},Co),{"font-variation-settings":"'wght' 300",color:"#697882"}),".cm-tooltip.cm-tooltip-autocomplete > ul .cm-completionLabel":{"line-height":"1.5em","font-variation-settings":"'wght' 500"},".cm-tooltip.cm-tooltip-autocomplete > ul .cm-completionDetail":{"font-size":"0.875em","font-style":"normal","margin-left":"0.75rem"}})],[Q.lineNumbers(),G.EditorView.theme({".cm-gutters":{"background-color":"#fff",color:"#428BCA","border-right":"none"},".cm-gutter":{padding:"0 2rem 0 2rem"}})],[G.EditorView.baseTheme({".cm-tooltip":{border:"none !important","border-radius":"4px","background-color":"#E5EAEA !important"},".cm-tooltip.cm-tooltip-autocomplete > ul[role='listbox']":{padding:"1rem"},".cm-tooltip.cm-tooltip-autocomplete > ul .cm-completionDetail":{"margin-left":".75rem"},".cm-tooltip.cm-tooltip-autocomplete > ul .cm-completionDetail::before":{content:"'[ '"},".cm-tooltip.cm-tooltip-autocomplete > ul .cm-completionDetail::after":{content:"' ]'"},".cm-tooltip.cm-tooltip-autocomplete > ul .cm-completionIcon":{"padding-right":0,"margin-right":".475rem",width:"1rem"},".cm-tooltip-autocomplete ul li[aria-selected]":{"border-radius":"4px","background-color":"#5D96A2 !important",color:"#fff !important"},".cm-tooltip.cm-completionInfo.cm-completionInfo-right":{"border-radius":"3px","box-shadow":"0 2px 4px -1px rgb(0 0 0 / 20%), 0 4px 5px 0 rgb(0 0 0 / 14%), 0 1px 10px 0 rgb(0 0 0 / 12%)",background:"#495057 !important",color:"#fff",padding:".5rem",left:"101.6%"},".cm-tooltip.cm-completionInfo.cm-completionInfo-right::before":{content:"''",position:"absolute",width:0,height:0,top:".8125rem",left:"-.25rem","margin-top":"-.25rem","border-color":"transparent","border-style":"solid","border-right-color":"#495057","border-width":".25rem .25rem .25rem 0"}})]],wo]}var Io=function(){function t(){}return t.getTheme=function(e){var n=t._THEMES.get(e);return n?n():[]},t._THEMES=new Map([[e.Themes.SDSLight,_o]]),t}(),ko=function(e){function t(){var t=e.call(this)||this;return t._codeReceivedBeforeViewCreation="",t._editorOptionsReceivedBeforeViewCreation=[],t}return ne(t,e),t.getEditorView=function(){return t._editorView},t.updateEditorView=function(){for(var e,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];(e=t._editorView).dispatch.apply(e,pe(n))},t.prototype.setCoreWrapperElement=function(e){this.createEditorView(e)},t.prototype.setCode=function(e){this.changeEditorContent(e)},t.prototype.initCore=function(){this.setObservablesListeners()},t.prototype.destroyCore=function(){this._codeReceivedBeforeViewCreation="",t._editorView=null,t._ngUnsubscribe.next(),t._ngUnsubscribe.complete()},t.prototype.setCoreEditorOptions=function(e){var n=xo.getLanguage(e.language),i=Io.getTheme(e.theme);t._editorView?t.updateEditorView({effects:q.StateEffect.reconfigure.of([n,i,this.getCodeChangeListenerExtension()])}):this._editorOptionsReceivedBeforeViewCreation=[n,i]},t.prototype.highlightCode=function(e){var n=function(e,t){return e.map((function(e){var n,i;return{from:e.start||0,to:e.end||t,message:null!==(n=e.message)&&void 0!==n?n:"",severity:null!==(i=Ji.get(e.severity))&&void 0!==i?i:"error"}}))}(e,t._editorView.state.doc.length);t.updateEditorView(K.setDiagnostics(t._editorView.state,n))},t.prototype.setObservablesListeners=function(){var e=this;t.$onCompletionItemsUpdate.pipe(a.takeUntil(t._ngUnsubscribe)).subscribe((function(t){return e.updateCompletionItems(t)}))},t.prototype.createEditorView=function(e){t._editorView=new G.EditorView({parent:e,state:q.EditorState.create({doc:this._codeReceivedBeforeViewCreation,extensions:[this._editorOptionsReceivedBeforeViewCreation,this.getCodeChangeListenerExtension()]})}),this.notifyCoreFinishLoad()},t.prototype.getCodeChangeListenerExtension=function(){var e=this;return G.EditorView.updateListener.of((function(t){return t.docChanged&&e.notifyCodeChange(t.state.doc.toString())}))},t.prototype.changeEditorContent=function(e){t._editorView?t.updateEditorView({changes:{from:0,to:t._editorView.state.doc.length,insert:e}}):this._codeReceivedBeforeViewCreation=e},t.$onCompletionItemsUpdate=new r.Subject,t._ngUnsubscribe=new r.Subject,t._editorView=null,t}(Hi),To=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,Zi],declarations:[$i],exports:[$i],providers:[{provide:Hi,useClass:ko}]})],e)}();e.AngularComponentsModule=en,e.AutocompleteField=Ee,e.BaseFieldComponent=yt,e.BignumberField=Xe,e.BignumberInputDirective=qt,e.BignumberInputModule=Kt,e.BooleanField=Qe,e.BooleanOptionsLabel=Je,e.BreadcrumbComponent=fe,e.BreadcrumbModule=he,e.Breakpoints=Ot,e.ButtonComponent=be,e.ButtonModule=ve,e.CalendarField=tt,e.CalendarLocaleOptions=Fe,e.CalendarMaskDirective=ye,e.CalendarMaskModule=xe,e.ChipsField=nt,e.CodeEditorModule=To,e.CollapseLinkComponent=we,e.CollapseLinkModule=Ce,e.ControlErrorsComponent=_e,e.ControlErrorsModule=Ie,e.CurrencyField=lt,e.CustomFieldsComponent=Vn,e.CustomFieldsModule=Pn,e.CustomFieldsService=zn,e.DEFAULT_CALENDAR_LOCALE_OPTIONS=Oe,e.DEFAULT_LOCALE_OPTIONS=De,e.DEFAULT_NUMBER_LOCALE_OPTIONS=Ae,e.DoubleClickDirective=Dn,e.DynamicConfig=kt,e.DynamicFormComponent=Tt,e.DynamicFormModule=Nn,e.EditableOverlayDirective=jn,e.EditableOverlayModule=Hn,e.EmptyStateComponent=St,e.EmptyStateModule=Ft,e.ExportUtils=At,e.Field=Se,e.Fieldset=_t,e.FileUploadComponent=Dt,e.FileUploadModule=Rt,e.FormField=gt,e.GlobalSearchComponent=Oi,e.GlobalSearchDropdownItemComponent=Mi,e.GlobalSearchModule=Ri,e.HostProjectConfigsInjectionToken=Qt,e.ImageCropperComponent=Kn,e.ImageCropperModule=Wn,e.ImageCropperService=Yn,e.InfoSignDirective=zt,e.InfoSignModule=Bt,e.LoadingStateComponent=Vt,e.LoadingStateDirective=Ut,e.LoadingStateModule=Pt,e.LocaleModule=Ye,e.LocaleOptions=Me,e.LocaleService=Ne,e.LocalizedCurrencyPipe=Ue,e.LocalizedCurrencyPipeOptions=Ve,e.LocalizedDateImpurePipe=$e,e.LocalizedDatePipe=He,e.LocalizedNumberInputDirective=jt,e.LocalizedNumberInputModule=Ht,e.LocalizedNumberPipe=Ge,e.LocalizedTimeImpurePipe=We,e.LocalizedTimePipe=Ke,e.LongPressDirective=An,e.LookupComponent=vt,e.LookupField=ct,e.MaskFormatterModule=Gt,e.MaskFormatterPipe=$t,e.MouseEventsModule=Rn,e.NavigationDirective=Xt,e.NumberField=at,e.NumberInputDirective=ot,e.NumberInputModule=rt,e.NumberLocaleOptions=Le,e.ObjectCardComponent=ii,e.ObjectCardFieldComponent=ei,e.ObjectCardMainComponent=ti,e.ObjectCardModule=oi,e.Option=bt,e.ProductHeaderComponent=ri,e.ProductHeaderModule=ai,e.RadioButtonField=pt,e.RationButtonOption=dt,e.RowTogllerDirective=Zt,e.Section=It,e.SelectField=ut,e.SelectOption=mt,e.SidebarComponent=si,e.SidebarModule=li,e.StatsCardComponent=ci,e.StatsCardModule=pi,e.StepsComponent=mi,e.StepsModule=fi,e.Structure=Ct,e.TableFrozenPositionDirective=Jt,e.TableHeaderCheckboxComponent=Wt,e.TableHeaderCheckboxModule=Yt,e.TableModule=ln,e.TaxCalculationLanguageConfigs=co,e.TextAreaField=ft,e.TextField=ht,e.ThumbnailComponent=Jn,e.ThumbnailModule=Qn,e.TileComponent=Fi,e.TileModule=Li,e.TimelineComponent=hi,e.TimelineItem=Ei,e.TimelineModule=Ti,e.TokenListComponent=rn,e.TokenListModule=an,e.ɵa=Pe,e.ɵb=ze,e.ɵbb=st,e.ɵbc=qn,e.ɵbd=$n,e.ɵbe=Gn,e.ɵbf=Le,e.ɵbg=Zn,e.ɵbh=bi,e.ɵbi=gi,e.ɵbj=yi,e.ɵbk=vi,e.ɵbl=ki,e.ɵbm=xi,e.ɵbn=wi,e.ɵbo=Ci,e.ɵbp=_i,e.ɵbq=Ii,e.ɵbr=Di,e.ɵbs=Ai,e.ɵbt=Zi,e.ɵbu=$i,e.ɵbv=Hi,e.ɵbw=ko,e.ɵc=Be,e.ɵd=Et,e.ɵe=on,e.ɵf=sn,e.ɵg=Nt,e.ɵh=cn,e.ɵi=pn,e.ɵj=dn,e.ɵk=un,e.ɵl=mn,e.ɵm=In,e.ɵn=On,e.ɵo=Cn,e.ɵp=fn,e.ɵq=hn,e.ɵr=gn,e.ɵs=Tn,e.ɵt=bn,e.ɵu=wn,e.ɵv=_n,e.ɵw=vn,e.ɵx=yn,e.ɵy=xn,e.ɵz=Sn,Object.defineProperty(e,"__esModule",{value:!0})}));
16
+ var te=function(e,t){return(te=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 ne(e,t){function n(){this.constructor=e}te(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ie=function(){return(ie=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 oe(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 re(e,t){return function(n,i){t(n,i,e)}}function ae(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=a.trys,(o=o.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 le(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 ce(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 pe(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ce(arguments[t]));return e}var de,ue,me,fe=function(){function e(e,t){var n=this;this.activatedRoute=e,this.router=t,this.targetHomeUrl="_self",this.ngUnsubscribe=new r.Subject,this.router.events.pipe(a.takeUntil(this.ngUnsubscribe),a.filter((function(e){return e instanceof o.NavigationEnd}))).subscribe((function(){return n.onNavigationEnd()}))}return e.prototype.onNavigationEnd=function(){var e=this.activatedRoute.root,t=this.getValidChildren(e);this.title=this.getCurrentTitle(t),this.home=this.getCurrentHome(t),this.items=this.getCurrentItems(t)},e.prototype.getValidChildren=function(e){var t=this,n=e.routeConfig&&e.routeConfig.path&&e.routeConfig.component&&e.outlet===o.PRIMARY_OUTLET;return e.children.reduce((function(e,n){return pe(e,t.getValidChildren(n))}),n?[e]:[])},e.prototype.getCurrentTitle=function(e){var t=e[e.length-1];if(t&&t.routeConfig)return this.getTitle(t)},e.prototype.getCurrentHome=function(e){var t;return this.homeUrl?t={url:this.homeUrl,icon:"fa fa-home",target:this.targetHomeUrl}:e.length&&(t=ie(ie({},this.getMenuItem(e[0],1===e.length)),{icon:"fa fa-home"})),t},e.prototype.getCurrentItems=function(e){var t=this;if(e.length){var n=this.homeUrl?e:e.slice(1);return n.length?n.map((function(n,i){return t.getMenuItem(n,i===e.length-1)})):void 0}},e.prototype.getMenuItem=function(e,t){void 0===t&&(t=!1);var n=this.getTitle(e),i=e.pathFromRoot;return{label:n,routerLink:i.slice(0,i.indexOf(e)+1).reduce((function(e,t){return pe(e,t.snapshot.url.map((function(e){return e.path})))}),["/"]),queryParams:e.snapshot.queryParams,routerLinkActiveOptions:{exact:!0},disabled:t}},e.prototype.getTitle=function(e){var t=e.snapshot,n=e.routeConfig,i=t.data.routeTitle;if(!i)throw new Error("No routeTitle defined for the route /"+n.path);return i},e.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},e.ctorParameters=function(){return[{type:o.ActivatedRoute},{type:o.Router}]},oe([t.Input()],e.prototype,"homeUrl",void 0),oe([t.Input()],e.prototype,"targetHomeUrl",void 0),e=oe([t.Component({selector:"s-breadcrumb",template:'<h1 class="sds-page-title">{{title}}</h1>\n<p-breadcrumb [home]="home" [model]="items"></p-breadcrumb>'})],e)}(),he=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,i.BreadcrumbModule,o.RouterModule],declarations:[fe],exports:[fe,o.RouterModule]})],e)}();(de=e.ButtonPriority||(e.ButtonPriority={})).Default="default",de.Primary="primary",de.Secondary="secondary",de.Link="link",(ue=e.ButtonSize||(e.ButtonSize={})).Default="default",ue.Small="small",function(e){e.rotate="rotate"}(me||(me={}));var ge,be=function(){function n(){this.minWidth="40px",this.id="s-button-"+i.nextId++,this.caret=!0,this.baseZIndex=0,this.disabled=!1,this.auxiliary=!1,this.type="button",this.priority=e.ButtonPriority.Primary,this.model=[],this.size=e.ButtonSize.Default,this.onClick=new t.EventEmitter}var i;return i=n,n.prototype.ngOnInit=function(){var e=this;this.onClick.subscribe((function(t){e.model&&e.model.length&&(e.menu.model=e.model,e.menu.toggle(t))}))},n.prototype.validateSlideButton=function(){return this.slide&&(this.priority==e.ButtonPriority.Default||this.priority==e.ButtonPriority.Link)&&this.label.length},n.prototype.isOpen=function(){return this.model&&this.model.length&&this.menu.visible},n.prototype.ngOnChanges=function(e){var t=this.iconClass,n=this.label,i=this.model&&this.model.length;(n||t&&i)&&(this.minWidth="80px"),n&&t&&i&&(this.minWidth="100px")},n.prototype.updateTooltipZIndex=function(){this.tooltipZIndex=this.baseZIndex+ ++c.DomHandler.zindex},n.prototype.isRotateAnimation=function(){return this.animation===me.rotate},n.nextId=0,oe([t.HostBinding("style.min-width")],n.prototype,"minWidth",void 0),oe([t.Input()],n.prototype,"id",void 0),oe([t.Input()],n.prototype,"label",void 0),oe([t.Input()],n.prototype,"tooltip",void 0),oe([t.Input()],n.prototype,"iconClass",void 0),oe([t.Input()],n.prototype,"rightIconClass",void 0),oe([t.Input()],n.prototype,"caret",void 0),oe([t.Input()],n.prototype,"styleClass",void 0),oe([t.Input()],n.prototype,"baseZIndex",void 0),oe([t.Input()],n.prototype,"disabled",void 0),oe([t.Input()],n.prototype,"auxiliary",void 0),oe([t.Input()],n.prototype,"type",void 0),oe([t.Input()],n.prototype,"priority",void 0),oe([t.Input()],n.prototype,"model",void 0),oe([t.Input()],n.prototype,"size",void 0),oe([t.Input()],n.prototype,"slide",void 0),oe([t.Input()],n.prototype,"animation",void 0),oe([t.Output()],n.prototype,"onClick",void 0),oe([t.ViewChild(s.TieredMenu,{static:!0})],n.prototype,"menu",void 0),n=i=oe([t.Component({selector:"s-button",template:'<p-tieredMenu [id]="id + \'-menu\'" [popup]="true" appendTo="body" [baseZIndex]="baseZIndex"></p-tieredMenu>\n\n<button\n [id]="id"\n [type]="type"\n [class]="styleClass"\n [ngClass]="{\n \'s-button-auxiliary\': auxiliary,\n \'s-button-with-icon\': iconClass,\n \'s-button-with-text\': label,\n \'s-button-empty\': !iconClass && !label,\n \'s-button-size-default\': size === \'default\',\n \'s-button-size-small\': size === \'small\',\n \'s-button-priority-default\': priority === \'default\',\n \'s-button-priority-primary\': priority === \'primary\',\n \'s-button-priority-secondary\': priority === \'secondary\',\n \'s-button-priority-link\': priority === \'link\',\n \'s-button-multiple\': (caret && (model && model.length)) || rightIconClass,\n \'s-button-active\': isOpen(),\n \'s-button--slide\': validateSlideButton(),\n \'s-button--rotate-animation\': isRotateAnimation()\n }"\n [disabled]="disabled"\n [pTooltip]="tooltip"\n tooltipPosition="top"\n showDelay="500"\n [tooltipZIndex]="tooltipZIndex"\n (click)="onClick.emit($event)"\n (mouseenter)="updateTooltipZIndex()"\n>\n <span \n *ngIf="iconClass" \n [class]="iconClass" \n [ngClass]="{ \n \'s-button-icon\': true,\n \'s-button-icon-margin-right\': !label && model && model.length\n }" \n aria-hidden="true">\n </span>\n <span \n *ngIf="label" \n class="s-button-text"\n [ngClass]="{\n \'s-button-icon-margin-right\': !!rightIconClass || (model && model.length),\n \'s-button-icon-margin-left\': !!iconClass\n }">\n {{ label }}\n </span>\n <ng-content></ng-content>\n <span \n *ngIf="rightIconClass" \n [class]="rightIconClass" \n [ngClass]="{ \'s-button-right-icon\': true }" \n aria-hidden="true">\n </span>\n <span\n *ngIf="caret && (model && model.length)" \n class="fa fa-fw fa-caret-down"\n aria-hidden="true">\n </span>\n</button>\n',styles:['button{-ms-flex-align:center;align-items:center;border-radius:4px;border:1px solid;cursor:pointer;font-family:"Open Sans",sans-serif;font-size:14px;height:34px;max-width:100%;min-width:40px;outline:0;overflow:visible;padding:5px 10px;position:relative;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;text-decoration:none;text-transform:none;vertical-align:bottom;transition:background-color .2s ease-out,color .2s ease-out,border-color .2s ease-out}button:disabled{opacity:.5;filter:Alpha(Opacity=50);background-image:none}button:disabled,button:disabled *{cursor:text!important}button.s-button-auxiliary{border-radius:20px}button.s-button-size-small{padding:0 20px;height:25px}button.s-button-with-icon.s-button-multiple,button.s-button-with-text{min-width:80px}button.s-button-with-icon.s-button-with-text.s-button-multiple{min-width:100px}button .s-button-icon,button .s-button-menu-icon,button .s-button-right-icon,button.s-button-with-icon.s-button-multiple:not(.s-button-with-text) .s-button-icon{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}button.s-button-multiple .s-button-text{display:-ms-flexbox;display:flex;-ms-flex-pack:left;justify-content:left;-ms-flex-align:left;align-items:left}button.s-button-with-icon .s-button-text{display:-ms-flexbox;display:flex;-ms-flex-pack:right;justify-content:right;-ms-flex-align:right;align-items:right}.s-button-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.s-button-menu-icon{right:10px;transition:transform .2s ease-out}.s-button-icon-margin-left{margin-left:10px}.s-button-icon-margin-right{margin-right:10px}.s-button-active .s-button-menu-icon{transform:rotateX(180deg)}button,button.s-button-priority-primary{background-color:#428bca;border-color:#428bca}button .s-button-icon,button .s-button-menu-icon,button .s-button-right-icon,button .s-button-text,button.s-button-priority-primary .s-button-icon,button.s-button-priority-primary .s-button-menu-icon,button.s-button-priority-primary .s-button-right-icon,button.s-button-priority-primary .s-button-text{color:#fff}button.s-button-priority-primary:hover,button:hover{background-color:#2a6496}button.s-button-priority-primary:focus,button:focus{background-color:#2a6496;border-color:#22dce6}button.s-button-active:not(:disabled),button.s-button-priority-primary.s-button-active:not(:disabled),button.s-button-priority-primary:active:not(:disabled),button:active:not(:disabled){background-color:#245682;border-color:#245682}button.s-button-priority-secondary{background-color:#7892a1;border-color:#7892a1}button.s-button-priority-secondary .s-button-icon,button.s-button-priority-secondary .s-button-menu-icon,button.s-button-priority-secondary .s-button-right-icon,button.s-button-priority-secondary .s-button-text{color:#fff}button.s-button-priority-secondary:hover{background-color:#546b79}button.s-button-priority-secondary:focus{background-color:#546b79;border-color:#22dce6}button.s-button-priority-secondary.s-button-active:not(:disabled),button.s-button-priority-secondary:active:not(:disabled){background-color:#495e6a;border-color:#495e6a}button.s-button-priority-default{background-color:#fff;border-color:#ccc}button.s-button-priority-default .s-button-icon,button.s-button-priority-default .s-button-menu-icon,button.s-button-priority-default .s-button-right-icon,button.s-button-priority-default .s-button-text{color:#333}button.s-button-priority-default:hover{background-color:#d9d9d9}button.s-button-priority-default:focus{background-color:#d9d9d9;border-color:#22dce6}button.s-button-priority-default.s-button-active:not(:disabled),button.s-button-priority-default:active:not(:disabled){background-color:#ccc;border-color:#ccc}button.s-button-priority-link{background-color:transparent;border-color:transparent}button.s-button-priority-link .s-button-icon,button.s-button-priority-link .s-button-menu-icon,button.s-button-priority-link .s-button-right-icon,button.s-button-priority-link .s-button-text{color:#428bca}button.s-button-priority-link:hover{background-color:transparent}button.s-button-priority-link:hover .s-button-icon,button.s-button-priority-link:hover .s-button-menu-icon,button.s-button-priority-link:hover .s-button-right-icon,button.s-button-priority-link:hover .s-button-text{color:#2a6496}button.s-button-priority-link:focus{border-color:#22dce6;background-color:transparent}button.s-button-priority-link:focus .s-button-icon,button.s-button-priority-link:focus .s-button-menu-icon,button.s-button-priority-link:focus .s-button-right-icon,button.s-button-priority-link:focus .s-button-text{color:#2a6496}button.s-button-priority-link.s-button-active:not(:disabled),button.s-button-priority-link:active:not(:disabled){background-color:transparent;border-color:transparent}button.s-button-priority-link.s-button-active:not(:disabled) .s-button-icon,button.s-button-priority-link.s-button-active:not(:disabled) .s-button-menu-icon,button.s-button-priority-link.s-button-active:not(:disabled) .s-button-right-icon,button.s-button-priority-link.s-button-active:not(:disabled) .s-button-text,button.s-button-priority-link:active:not(:disabled) .s-button-icon,button.s-button-priority-link:active:not(:disabled) .s-button-menu-icon,button.s-button-priority-link:active:not(:disabled) .s-button-right-icon,button.s-button-priority-link:active:not(:disabled) .s-button-text{color:#245682}.s-button--slide.s-button-with-icon.s-button-multiple,.s-button--slide.s-button-with-text{min-width:40px}.s-button--slide .s-button-text{position:absolute;opacity:0;width:0}.s-button--slide:hover .s-button-text{transition:1s;position:relative;opacity:1;width:auto}.s-button--slide:hover.s-button--rotate-animation .s-button-icon,.s-button--slide:hover.s-button--rotate-animation .s-button-right-icon{transition:1.5s;transform:rotate(360deg)}']})],n)}(),ve=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,o.RouterModule,s.TieredMenuModule,l.TooltipModule],declarations:[be],exports:[be]})],e)}(),ye=function(){function e(e,t){this.host=e,this.renderer=t,this.SELECTORS='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',this.slotChar="_",this.autoClear=!1,this.firstTime=!0}return e.prototype.setListeners=function(){var e=this;this.input=this.host.inputfieldViewChild.nativeElement,this.value=this.input.value,this.focusListener=this.renderer.listen(this.input,"focus",(function(){e.onInputFocus()})),this.blurListener=this.renderer.listen(this.input,"blur",(function(t){e.onInputBlur(t)})),this.keydownListener=this.renderer.listen(this.input,"keydown",(function(t){e.onKeyDown(t)})),this.keypressListener=this.renderer.listen(this.input,"keypress",(function(t){e.onKeyPress(t)})),this.inputListener=this.renderer.listen(this.input,"input",(function(t){e.onInputChange(t)})),this.pasteListener=this.renderer.listen(this.input,"paste",(function(t){e.handleInputChange(t)}))},e.prototype.ngOnInit=function(){var e=navigator.userAgent;this.androidChrome=/chrome/i.test(e)&&/android/i.test(e),this.createMaskFromDateFormat(),this.initMask()},Object.defineProperty(e.prototype,"mask",{get:function(){return this._mask},set:function(e){this._mask=e,this.initMask(),this.writeValue("")},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e,this.input&&(null==this.value?this.input.value="":this.input.value=this.value,this.checkVal(),this.focusText=this.input.value,this.updateFilledState())},e.prototype.onInputBlur=function(e){if(this.checkVal(),this.updateFilledState(),this.value!=this.focusText){!this.input.disabled&&(void 0===this.value||null===this.value||this.value.indexOf(this.slotChar)>=0)&&(this.value="",e.target.value="",this.host.updateModel(null)),this.updateModel(e);var t=document.createEvent("HTMLEvents");t.initEvent("change",!0,!1),this.input.dispatchEvent(t)}},e.prototype.onKeyDown=function(e){if(!this.host.readonlyInput){var t,n,i,o=e.which||e.keyCode,r=/iphone/i.test(navigator.userAgent);this.oldVal=this.input.value,8===o||46===o||r&&127===o?(n=(t=this.caret()).begin,(i=t.end)-n==0&&(n=46!==o?this.seekPrev(n):i=this.seekNext(n-1),i=46===o?this.seekNext(i):i),this.clearBuffer(n,i),this.shiftL(n,i-1),this.updateModel(e),e.preventDefault()):13===o?(this.onInputBlur(e),this.updateModel(e)):27===o&&(this.input.value=this.focusText,this.caret(0,this.checkVal()),this.updateModel(e),e.preventDefault())}},e.prototype.onKeyPress=function(e){var t=this;if(!this.host.readonlyInput){var n,i,o,r=e.which||e.keyCode,a=this.caret();if(!(e.ctrlKey||e.altKey||e.metaKey||r<32||r>34&&r<41)){if(r&&13!==r){if(a.end-a.begin!=0&&(this.clearBuffer(a.begin,a.end),this.shiftL(a.begin,a.end-1)),(n=this.seekNext(a.begin-1))<this.len&&(i=String.fromCharCode(r),this.tests[n].test(i)))if(this.shiftR(n),this.buffer[n]=i,this.writeBuffer(),o=this.seekNext(n),/android/i.test(navigator.userAgent)){setTimeout((function(){t.caret(o)}),0)}else this.caret(o);e.preventDefault()}this.updateModel(e),this.updateFilledState()}}},e.prototype.checkVal=function(e){var t,n,i=this.input.value,o=-1,r=0;for(t=0;t<this.len;t++)if(this.tests[t]){for(this.buffer[t]=this.getPlaceholder(t);r++<i.length;)if(n=i.charAt(r-1),this.tests[t].test(n)){this.buffer[t]=n,o=t;break}if(r>i.length){this.clearBuffer(t+1,this.len);break}}else this.buffer[t]===i.charAt(r)&&r++,t<this.partialPosition&&(o=t);return e?this.writeBuffer():o+1<this.partialPosition?this.autoClear||this.buffer.join("")===this.defaultBuffer?(this.input.value&&(this.input.value=""),this.clearBuffer(0,this.len)):this.writeBuffer():(this.writeBuffer(),this.input.value=this.input.value.substring(0,o+1)),this.partialPosition?t:this.firstNonMaskPos},e.prototype.onInputFocus=function(){var e,t=this;this.host.readonlyInput||(clearTimeout(this.caretTimeoutId),this.focusText=this.input.value,e=this.checkVal(),this.caretTimeoutId=setTimeout((function(){t.input===document.activeElement&&(t.writeBuffer(),e==t.mask.replace("?","").length?t.caret(0,e):t.caret(e))}),10))},e.prototype.onInputChange=function(e){this.androidChrome?this.handleAndroidInput(e):this.handleInputChange(e)},e.prototype.handleInputChange=function(e){var t=this;this.host.readonlyInput||setTimeout((function(){var n=t.checkVal(!0);t.caret(n),t.updateModel(e)}),0)},e.prototype.updateModel=function(e){var t=e.target.value;null===t&&void 0===t||(this.value=t,this.host.onUserInput(e))},e.prototype.updateFilledState=function(){this.filled=this.input&&""!=this.input.value},e.prototype.focus=function(){this.input.focus()},e.prototype.initMask=function(){this.tests=[],this.partialPosition=this.mask.length,this.len=this.mask.length,this.firstNonMaskPos=null,this.defs={9:"[0-9]"};for(var e=this.mask.split(""),t=0;t<e.length;t++){"?"==(n=e[t])?(this.len--,this.partialPosition=t):this.defs[n]?(this.tests.push(new RegExp(this.defs[n])),null===this.firstNonMaskPos&&(this.firstNonMaskPos=this.tests.length-1),t<this.partialPosition&&(this.lastRequiredNonMaskPos=this.tests.length-1)):this.tests.push(null)}this.buffer=[];for(t=0;t<e.length;t++){var n;"?"!=(n=e[t])&&(this.defs[n]?this.buffer.push(this.getPlaceholder(t)):this.buffer.push(n))}this.defaultBuffer=this.buffer.join("")},e.prototype.caret=function(e,t){var n,i,o;if(this.input.offsetParent&&this.input===document.activeElement)return"number"!=typeof e?(this.input.setSelectionRange?(i=this.input.selectionStart,o=this.input.selectionEnd):document.selection&&document.selection.createRange&&(o=(i=0-(n=document.selection.createRange()).duplicate().moveStart("character",-1e5))+n.text.length),{begin:i,end:o}):(i=e,o="number"==typeof t?t:i,void(this.input.setSelectionRange?this.input.setSelectionRange(i,o):this.input.createTextRange&&((n=this.input.createTextRange()).collapse(!0),n.moveEnd("character",o),n.moveStart("character",i),n.select())))},e.prototype.getPlaceholder=function(e){return e<this.slotChar.length?this.slotChar.charAt(e):this.slotChar.charAt(0)},e.prototype.seekNext=function(e){for(;++e<this.len&&!this.tests[e];);return e},e.prototype.seekPrev=function(e){for(;--e>=0&&!this.tests[e]&&!this.tests[e];);return e},e.prototype.shiftL=function(e,t){var n,i;if(!(e<0)){for(i=this.seekNext(t),n=e;n<this.len;n++)if(this.tests[n]){if(!(i<this.len&&this.tests[n].test(this.buffer[i])))break;this.buffer[n]=this.buffer[i],this.buffer[i]=this.getPlaceholder(i),i=this.seekNext(i)}this.writeBuffer(),this.caret(Math.max(this.firstNonMaskPos,e))}},e.prototype.shiftR=function(e){var t,n,i,o=this.getPlaceholder(e);for(t=e;t<this.len;t++)if(this.tests[t]){if(n=this.seekNext(t),i=this.buffer[t],this.buffer[t]=o,!(n<this.len&&this.tests[n].test(i)))break;o=i}},e.prototype.handleAndroidInput=function(e){var t=this,n=this.input.value,i=this.caret();if(this.oldVal&&this.oldVal.length&&this.oldVal.length>n.length){for(this.checkVal(!0);i.begin>0&&!this.tests[i.begin-1];)i.begin--;if(0===i.begin)for(;i.begin<this.firstNonMaskPos&&!this.tests[i.begin];)i.begin++;setTimeout((function(){if(t.caret(i.begin,i.begin),t.isCompleted()){var e=n.replace(t.slotChar,"");t.updateCalendarValue(e)}}),0)}else{for(this.checkVal(!0);i.begin<this.len&&!this.tests[i.begin];)i.begin++;setTimeout((function(){if(t.caret(i.begin,i.begin),t.isCompleted()){var e=n.replace(t.slotChar,"");t.updateCalendarValue(e)}}),0)}},e.prototype.updateCalendarValue=function(e){var t=this.host.parseValueFromString(e);this.host.isSelectable(t.getDate(),t.getMonth(),t.getFullYear(),!1)&&(this.host.updateModel(e),this.host.updateUI())},e.prototype.clearBuffer=function(e,t){var n;for(n=e;n<t&&n<this.len;n++)this.tests[n]&&(this.buffer[n]=this.getPlaceholder(n))},e.prototype.writeBuffer=function(){this.input.value=this.buffer.join("")},e.prototype.createMaskFromDateFormat=function(){var e=this.host,t=this.autoClear?"?":"";if(!e.timeOnly){var n=e.dateFormat;t+=(n=n.replace(/y/g,"yy")).replace(/[^/*,.\-+\[\]\\]/g,"9"),e.showTime&&(t+=" ")}(e.showTime||e.timeOnly)&&(t+="99:99",e.showSeconds&&(t+=":99")),this._mask=t,this.initMask()},e.prototype.isCompleted=function(){for(var e=this.firstNonMaskPos;e<=this.lastRequiredNonMaskPos;e++)if(this.tests[e]&&this.buffer[e]===this.getPlaceholder(e))return!1;return!0},e.prototype.ngAfterViewChecked=function(){this.host.inputfieldViewChild&&this.firstTime&&(this.firstTime=!1,this.setListeners(),this.input.type="tel")},e.prototype.ngOnDestroy=function(){this.focusListener&&this.focusListener(),this.blurListener&&this.blurListener(),this.keydownListener&&this.keydownListener(),this.keypressListener&&this.keypressListener(),this.inputListener&&this.inputListener(),this.pasteListener&&this.pasteListener()},e.prototype.onKeydownEventTest=function(e){var t=this;if("Tab"==e.key){var n,i=document.querySelectorAll(this.SELECTORS),o=!1,r=!0;i.forEach((function(i){if(!e.shiftKey&&o&&i.id)return t.focusableElement(i.id,r),o=!1,void e.preventDefault();var a=window.document.activeElement.tagName;if(e.shiftKey&&i.id&&"INPUT"===i.tagName&&"BUTTON"==a&&(n=i.id,r=!1),i.id===t.host.inputId){if(n)return t.focusableElement(n,r),e.preventDefault(),void(r=!0);o=!0}else e.shiftKey&&i.id&&(n=i.id)}))}},e.prototype.focusableElement=function(e,t){window.document.getElementById(e).focus(),t&&this.host.hideOverlay()},e.ctorParameters=function(){return[{type:p.Calendar},{type:t.Renderer2}]},oe([t.Input()],e.prototype,"slotChar",void 0),oe([t.Input()],e.prototype,"autoClear",void 0),oe([t.HostListener("keydown",["$event"])],e.prototype,"onKeydownEventTest",null),e=oe([t.Directive({selector:"p-calendar[sCalendarMask]"})],e)}(),xe=function(){function e(){}return e=oe([t.NgModule({declarations:[ye],imports:[n.CommonModule],exports:[ye]})],e)}(),we=function(){function e(){this.buttonId="s-collapse-button-"+n.nextId++,this.expandedLabel="Mostrar menos",this.collapsedLabel="Mostrar mais",this.disabled=!1,this.collapse=!0,this.collapsed=!0}var n;return n=e,e.prototype.ngOnInit=function(){},e.prototype.ngOnChanges=function(e){e.collapse&&this.onCollapse(e.collapse.currentValue)},e.prototype.toggle=function(){this.animating||(this.animating=!0,this.collapsed=!this.collapsed)},e.prototype.onToggleDone=function(){this.animating=!1},e.prototype.onCollapse=function(e){this.animating||(this.animating=!0,this.collapsed=e)},e.nextId=0,oe([t.Input()],e.prototype,"buttonId",void 0),oe([t.Input()],e.prototype,"expandedLabel",void 0),oe([t.Input()],e.prototype,"collapsedLabel",void 0),oe([t.Input()],e.prototype,"disabled",void 0),oe([t.Input()],e.prototype,"collapse",void 0),e=n=oe([t.Component({selector:"s-collapse-link",template:'<div *ngIf="!collapsed" @collapseContent (@collapseContent.done)="onToggleDone()">\n <ng-content></ng-content>\n</div>\n\n<button [id]="buttonId" type="button" class="s-collapse-button" (click)="toggle()" [disabled]="disabled">\n <span class="s-button-icon fa" [ngClass]="{\'fa-caret-down\': collapsed, \'fa-caret-up\': !collapsed}"\n aria-hidden="true"></span>\n <span class="s-button-text">{{ collapsed ? collapsedLabel : expandedLabel }}</span>\n</button>\n',animations:[d.trigger("collapseContent",[d.state("void",d.style({height:0,opacity:0})),d.state("*",d.style({height:"*",opacity:1})),d.transition("void <=> *",d.animate("400ms cubic-bezier(0.86, 0, 0.07, 1)"))])],styles:['button.s-collapse-button{-ms-flex-align:center;align-items:center;cursor:pointer;font-family:"Open Sans",sans-serif;font-size:14px;height:34px;max-width:100%;min-width:40px;outline:0;overflow:visible;padding:5px 20px;position:relative;text-decoration:none;text-transform:none;vertical-align:bottom;background-color:transparent;border-color:transparent}button.s-collapse-button:disabled{opacity:.5;filter:Alpha(Opacity=50);background-image:none}button.s-collapse-button:disabled,button.s-collapse-button:disabled *{cursor:text!important}button.s-collapse-button:focus,button.s-collapse-button:hover{background-color:rgba(26,26,26,0);border-color:rgba(26,26,26,0)}button.s-collapse-button.s-button-active:not(:disabled),button.s-collapse-button:active:not(:disabled){background-color:rgba(0,0,0,0);border-color:transparent}button.s-collapse-button .s-button-icon{left:10px;margin-top:-.5em;position:absolute;top:50%;width:20px}button.s-collapse-button .s-button-icon,button.s-collapse-button .s-button-text{color:#428bca}button.s-collapse-button .s-button-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;margin-left:10px;margin-right:10px}']})],e)}(),Ce=function(){function e(){}return e=oe([t.NgModule({declarations:[we],exports:[we],imports:[n.CommonModule]})],e)}(),_e=function(){function e(){this.id="s-control-errors-"+n.nextId++,this.errorMessages={}}var n;return n=e,e.prototype.getErrorMessagesList=function(){var e=this;return this.control&&this.control.dirty?Object.keys(this.control.errors||{}).map((function(t){return e.errorMessages[t]})):[]},e.nextId=0,oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"control",void 0),oe([t.Input()],e.prototype,"errorMessages",void 0),oe([t.Input()],e.prototype,"form",void 0),e=n=oe([t.Component({selector:"s-control-errors",template:'<ng-container *ngFor="let errorMessage of getErrorMessagesList()">\n <div *ngIf="errorMessage" class="error-message">{{ errorMessage }}</div>\n</ng-container>\n',styles:[".error-message{color:#c13018;margin-top:5px;font-size:12px}"]})],e)}(),Ie=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,u.FormsModule,u.ReactiveFormsModule],declarations:[_e],exports:[_e]})],e)}();(ge=e.FieldType||(e.FieldType={})).Autocomplete="Autocomplete",ge.Binary="Binary",ge.Boolean="Boolean",ge.Chips="Chips",ge.Date="Date",ge.DateTime="DateTime",ge.LocalDateTime="LocalDateTime",ge.Double="Double",ge.Enum="Enum",ge.Blob="Blob",ge.Integer="Integer",ge.Lookup="Lookup",ge.Money="Money",ge.Radio="Radio",ge.String="String",ge.Text="Text",ge.Time="Time",ge.Number="Number",ge.Custom="Custom";var ke,Te=function(e){var t=e.sm,n=void 0===t?12:t,i=e.md,o=void 0===i?6:i,r=e.lg,a=void 0===r?6:r,s=e.xl,l=void 0===s?6:s;this.sm=n,this.md=o,this.lg=a,this.xl=l},Se=function(e){var t=this;this.required=e.required||function(){return!1},this.visible=e.visible||function(){return!0},this.id=e.id,this.name=e.name,this.label=e.label,this.infoSign=e.infoSign,this.tooltip=e.tooltip,this.placeholder=e.placeholder||"",this.showClear=e.showClear||!1,this.type=e.type,this.size=new Te(e.size||{}),this.errorMessages=e.errorMessages,this.gridClass=Object.keys(this.size).map((function(e){return"ui-"+e+"-"+t.size[e]})),this.defaultValue=e.defaultValue,this.representedBy=e.representedBy},Fe=function(t){function n(n){var i=t.call(this,ie(ie({},n),{type:e.FieldType.Autocomplete}))||this;return i.suggestions=[],Object.assign(i,n),i.suggestionsObservable.subscribe((function(e){return i.suggestions=e})),i}return ne(n,t),n}(Se),Ee=function(e){var t=this;void 0===e&&(e={}),this.hourFormat="24",this.dateFormat="dd/mm/yy",this.firstDayOfWeek=0,this.today="Hoje",this.clear="Limpar",this.dayNames=["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"],this.dayNamesShort=["Dom","Seg","Ter","Qua","Qui","Sex","Sab"],this.dayNamesMin=["D","S","T","Q","Q","S","S"],this.monthNamesShort=["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dec"],this.monthNames=["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],Object.keys(e).forEach((function(n){return t[n]=e[n]||t[n]}))},Le=function(e){void 0===e&&(e={}),this.thousandsSeparator=".",this.decimalSeparator=",",this.currencySymbol="R$",Object.assign(this,e)},Me=function(e){var t=this;void 0===e&&(e={}),this.calendar=new Ee,this.number=new Le,Object.keys(e).forEach((function(n){return t[n]=e[n]||t[n]}))},Oe=new Ee,Ae=new Le,De=new Me,Re=w,Ne=function(){function e(e,t){this.http=e,this.cookieService=t,this.localeOptionsAddress="https://cdn.senior.com.br/primeng/locales",this.localeOptionsVersion="3.0.0"}return e.prototype.get=function(){var e=this;return this.localeOptions?r.of(this.localeOptions):this.getLocaleConfig().pipe(a.tap((function(t){return e.localeOptions=t})))},e.prototype.getLocale=function(){var e=this;return this.locale?r.of(this.locale):r.from(this.getUserData()).pipe(a.map((function(t){return e.locale=t.locale||t.tenantLocale||"pt-BR",e.locale})))},e.prototype.getUserData=function(){try{return r.of(JSON.parse(this.cookieService.get("com.senior.token")))}catch(e){return console.warn("Unable to obtain user locale from cookie, calling getUser"),x.user.getUserData()}},e.prototype.getLocaleConfig=function(){var e=this;return this.getLocale().pipe(a.switchMap((function(t){return Re.locale(t),e.http.get(e.localeOptionsAddress+"/"+e.localeOptionsVersion+"/"+t+".json").pipe(a.map((function(e){return new Me(e)})))})),a.catchError((function(e){return console.warn("Error getting locale configuration. Using fallback.",e),r.of(new Me)})))},e.ctorParameters=function(){return[{type:m.HttpClient},{type:C.CookieService}]},e=oe([t.Injectable()],e)}(),ze=function(){function e(e){this.localeService=e}return e.prototype.transform=function(e,t){return null!=e?this.applyMask(e,t):r.of(e)},e.prototype.applyMask=function(e,t){return this.localeService.get().pipe(a.map((function(n){var i,o,r,a,s,l,c,p,d,u,m,f={prefix:null!==(r=null!==(i=null==t?void 0:t.prefix)&&void 0!==i?i:null===(o=null==n?void 0:n.number)||void 0===o?void 0:o.currencySymbol)&&void 0!==r?r:"R$",thousandsSeparator:null!==(l=null!==(a=null==t?void 0:t.thousandsSeparator)&&void 0!==a?a:null===(s=null==n?void 0:n.number)||void 0===s?void 0:s.thousandsSeparator)&&void 0!==l?l:".",decimalSeparator:null!==(d=null!==(c=null==t?void 0:t.decimalSeparator)&&void 0!==c?c:null===(p=null==n?void 0:n.number)||void 0===p?void 0:p.decimalSeparator)&&void 0!==d?d:",",scale:null!==(u=null==t?void 0:t.scale)&&void 0!==u?u:2,allowNegative:null===(m=null==t?void 0:t.allowNegative)||void 0===m||m},h=!new ee(e).isNaN();return y.applyMask(e,f,h)})))},e.ctorParameters=function(){return[{type:Ne}]},e=oe([t.Pipe({name:"localizedBignumber"})],e)}(),Be=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return ne(n,e),n.prototype.transform=function(t,n){return e.prototype.transform.call(this,t,n)},n=oe([t.Pipe({name:"localizedBignumberImpure",pure:!1})],n)}(ze),Ve=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.scale=2,n}return ne(t,e),t}(Le),Ue=function(){function e(e){this.localeService=e}return e.prototype.transform=function(e,t){return t||(t=new Ve),null!=e?this.applyMask(e,t):r.of(e)},e.prototype.applyMask=function(e,t){return this.localeService.get().pipe(a.map((function(n){var i=ie(ie({},n.number),t),o=i.scale,r=i.currencySymbol,a=i.thousandsSeparator,s=i.decimalSeparator,l=Number(e).toFixed(o),c=l.replace(/[^0-9]/g,""),p=c.slice(0,c.length-o).replace(/^0*/g,"").replace(/\B(?=(\d{3})+(?!\d))/g,a)||"0",d=c.slice(c.length-o),u=o?p+s+d:p,m=!Number(c);return""+(l.includes("-")&&!m?"-":"")+r+u})))},e.ctorParameters=function(){return[{type:Ne}]},e=oe([t.Pipe({name:"localizedCurrency"})],e)}(),Pe=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return ne(n,e),n.prototype.transform=function(t,n){return void 0===n&&(n=new Ve),e.prototype.transform.call(this,t,n)},n=oe([t.Pipe({name:"localizedCurrencyImpure",pure:!1})],n)}(Ue),je=w,He=function(){function e(e){this.localeService=e}return e.prototype.transform=function(e,t){return void 0===t&&(t="L LTS"),this.localeService.get().pipe(a.map((function(){return e?je(e).format(t):e})))},e.ctorParameters=function(){return[{type:Ne}]},e=oe([t.Pipe({name:"localizedDate"})],e)}(),$e=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return ne(n,e),n=oe([t.Pipe({name:"localizedDateImpure",pure:!1})],n)}(He),Ge=function(){function e(e){this.localeService=e}return e.prototype.transform=function(e,t){return r.from(this.localeService.getLocale()).pipe(a.map((function(n){var i=Number(e);if(e||!isNaN(i))return new Intl.NumberFormat(n,{minimumFractionDigits:t||0}).format(Number(e))})))},e.ctorParameters=function(){return[{type:Ne}]},e=oe([t.Pipe({name:"localizedNumber"})],e)}(),qe=w,Ke=function(){function e(e){this.localeService=e}return e.prototype.transform=function(e,t){return void 0===t&&(t="LTS"),this.localeService.get().pipe(a.map((function(){return e?qe(e,"HH:mm:ss").format(t):e})))},e.ctorParameters=function(){return[{type:Ne}]},e=oe([t.Pipe({name:"localizedTime"})],e)}(),We=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return ne(n,e),n=oe([t.Pipe({name:"localizedTimeImpure",pure:!1})],n)}(Ke),Ye=function(){function e(){}var i;return i=e,e.forRoot=function(){return{ngModule:i,providers:[Ne,Ue,He,Ke,Ge,Pe,$e,We,ze,Be]}},e.forChild=function(){return{ngModule:i}},e=i=oe([t.NgModule({imports:[n.CommonModule],exports:[Ue,He,Ke,Ge,Pe,$e,We,ze,Be],declarations:[Ue,He,Ke,Ge,Pe,$e,We,ze,Be]})],e)}(),Xe=function(e){function t(t){var n,i=e.call(this,t)||this;return i.numberLocaleOptions=t.numberLocaleOptions||new Le,i.browserAutocomplete=t.browserAutocomplete,i.precision=t.precision,i.scale=null!==(n=t.scale)&&void 0!==n?n:2,i.alignTo=i.scale?y.AlignmentOptions.RIGHT:y.AlignmentOptions.LEFT,i.mask=t.mask,i.leftAddon=t.leftAddon,i.rightAddon=t.rightAddon,i.onBlur=t.onBlur,i.onFocus=t.onFocus,i.onComplete=t.onComplete,i.onInput=t.onInput,i}return ne(t,e),t}(Se),Ze=function(e){function t(t){var n=e.call(this,t)||this;return n.accept=t.accept,n.files=t.files||[],n.chooseLabel=t.chooseLabel,n.removeLabel=t.removeLabel,n.cancelLabel=t.cancelLabel,n.successTooltip=t.successTooltip,n.multiple=t.multiple,n.onUploadFile=t.onUploadFile,n.onRemoveFile=t.onRemoveFile,n.onCancelUpload=t.onCancelUpload,n.onDownloadFile=t.onDownloadFile,n}return ne(t,e),t}(Se),Je=function(e){this.true=e.true,this.false=e.false,this.empty=e.empty,this.clear=e.clear},Qe=function(e){function t(t){var n=e.call(this,t)||this;return n.verticalAlignment=t.verticalAlignment,n.optionsLabel=new Je(t.optionsLabel),n.representedBy="radio",n.onBlur=t.onBlur,n.onFocus=t.onFocus,n.onClick=t.onClick,n}return ne(t,e),t}(Se),et=function(e){function t(t){var n=e.call(this,t)||this;return n.onChange=t.onChange,n.representedBy="switch",n}return ne(t,e),t}(Se),tt=function(t){function n(n){var i=t.call(this,n)||this;if(i.view=n.view||"date",i.minDate=n.minDate,i.maxDate=n.maxDate,i.defaultDate=n.defaultDate,i.appendTo=n.appendTo,i.showOnFocus="boolean"!=typeof n.showOnFocus||n.showOnFocus,i.calendarLocaleOptions=n.calendarLocaleOptions||new Ee,i.onBlur=n.onBlur,i.onFocus=n.onFocus,i.onSelect=n.onSelect,i.onInput=n.onInput,i.onClose=n.onClose,i.onTodayClick=n.onTodayClick,i.onClearClick=n.onClearClick,i.onMonthChange=n.onMonthChange,i.onYearChange=n.onYearChange,i.selectionMode=n.selectionMode||"single",i.rangeSeparator=n.rangeSeparator||"-",i.showSeconds=n.showSeconds,null===i.showSeconds||void 0===i.showSeconds)switch(i.type){case e.FieldType.DateTime:case e.FieldType.LocalDateTime:case e.FieldType.Time:i.showSeconds=!0}return i}return ne(n,t),n}(Se),nt=function(e){function t(t){var n=e.call(this,t)||this;return n.keyFilter=t.keyFilter,n.onAdd=t.onAdd,n.onRemove=t.onRemove,n.onChipClick=t.onChipClick,n.onFocus=t.onFocus,n.onBlur=t.onBlur,n}return ne(t,e),t}(Se);(ke=e.NumberAlignmentOption||(e.NumberAlignmentOption={})).RIGHT="right",ke.LEFT="left";var it,ot=function(n){function i(){var t=null!==n&&n.apply(this,arguments)||this;return t.precision=15,t.scale=0,t.decimalSeparator=",",t.thousandsSeparator=".",t.alignTo=e.NumberAlignmentOption.LEFT,t.allowNegative=!0,t.regex=/\d/,t}var o;return ne(i,n),o=i,i.prototype.ngOnInit=function(){this.updateVariables(),n.prototype.ngOnInit.call(this)},i.prototype.ngOnChanges=function(e){!(e.placeholder&&e.placeholder.currentValue)&&this.scale&&(this.placeholder="0"+this.decimalSeparator+"".padEnd(this.scale,"0")),(e.scale||e.decimalSeparator||e.thousandsSeparator||e.alignTo||e.precision||e.allowNegative)&&this.updateVariables()},i.prototype.updateVariables=function(){this.options={align:this.alignTo,decimal:this.decimalSeparator,thousands:this.thousandsSeparator,precision:this.scale||0,prefix:"",suffix:"",allowNegative:this.allowNegative},this.calculateMaxLength()},i.prototype.calculateMaxLength=function(){var e=this.decimalSeparator.length,t=this.thousandsSeparator.length,n=this.precision+(this.scale?e:0);n+=Math.ceil((this.precision-(this.scale?this.scale:0))/3-1)*t,this.maxLength=n},i.prototype.handleKeypress=function(e){var t=e.key;this.thousandsSeparator.includes(t)||this.decimalSeparator.includes(t)||"-".includes(t)||this.regex.test(t)||"Enter".toUpperCase()===t.toUpperCase()?n.prototype.handleKeypress.call(this,e):e.preventDefault()},oe([t.Input()],i.prototype,"precision",void 0),oe([t.Input()],i.prototype,"scale",void 0),oe([t.Input()],i.prototype,"decimalSeparator",void 0),oe([t.Input()],i.prototype,"thousandsSeparator",void 0),oe([t.Input()],i.prototype,"alignTo",void 0),oe([t.Input()],i.prototype,"allowNegative",void 0),oe([t.Input(),t.HostBinding("attr.placeholder")],i.prototype,"placeholder",void 0),oe([t.HostBinding("attr.maxLength")],i.prototype,"maxLength",void 0),i=o=oe([t.Directive({selector:"input[sNumberInput]",providers:[{provide:u.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return o})),multi:!0}]})],i)}(_.CurrencyMaskDirective),rt=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule],declarations:[ot],exports:[ot]})],e)}(),at=function(t){function n(n){var i=t.call(this,n)||this;return i.numberLocaleOptions=n.numberLocaleOptions||new Le,i.browserAutocomplete=n.browserAutocomplete,i.precision=n.precision,i.alignTo=n.alignTo||e.NumberAlignmentOption.LEFT,i.mask=n.mask,i.leftAddon=n.leftAddon,i.rightAddon=n.rightAddon,i.onBlur=n.onBlur,i.onFocus=n.onFocus,i.onComplete=n.onComplete,i.onInput=n.onInput,i}return ne(n,t),n}(Se),st=function(t){function n(n){var i=t.call(this,n)||this;return i.numberLocaleOptions=n.numberLocaleOptions||new Le,i.alignTo=n.alignTo||e.NumberAlignmentOption.RIGHT,i.scale=n.scale||0===n.scale?n.scale:2,i}return ne(n,t),n}(at),lt=function(e){function t(t){var n=e.call(this,t)||this;return n.numberLocaleOptions=t.numberLocaleOptions||new Le,n}return ne(t,e),t}(st),ct=function(t){function n(n){var i=t.call(this,ie(ie({},n),{type:e.FieldType.Lookup}))||this;return i.multiple=!1,i.searchTitle="Pesquisa avançada",i.searchEmptyTitle="Nenhum registro encontrado",i.filterLabel="Filtrar",i.filterTitle="Filtros",i.clearLabel="Limpar",i.cancelLabel="Cancelar",i.selectLabel="Selecionar",i.recordLabel=" registro",i.recordsLabel=" registros",i.onSelect=function(e){},i.onUnselect=function(e){},Object.assign(i,n),i.suggestionsObservable.subscribe((function(e){return i.lookupSuggestions=e})),i.searchObservable.pipe(a.delay(0)).subscribe((function(e){var t=e.totalRecords,n=e.gridData,o=e.searchTotalRecordsLabel;i._gridData=n,i._searchTotalRecords=t,i._searchTotalRecordsLabel=o})),i}return ne(n,t),Object.defineProperty(n.prototype,"gridData",{get:function(){return this._gridData},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"searchTotalRecords",{get:function(){return this._searchTotalRecords},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"searchTotalRecordsLabel",{get:function(){return this._searchTotalRecordsLabel},enumerable:!0,configurable:!0}),n}(Se),pt=function(e){function t(t){var n=e.call(this,t)||this;return n.verticalAlignment=t.verticalAlignment,n.options=t.options,n.onBlur=t.onBlur,n.onFocus=t.onFocus,n.onClick=t.onClick,n}return ne(t,e),t}(Se),dt=function(e){this.label=e.label,this.value=e.value},ut=function(e){function t(t){var n=e.call(this,t)||this;return n.appendTo=t.appendTo,n.dataKey=t.dataKey,n.optionLabel=t.optionLabel,n.autoDisplayFirst=t.autoDisplayFirst,n.options=t.options,n.multiple=t.multiple,n.multipleSelectedLabel=t.multipleSelectedLabel||"{0} registros selecionados",n.onClick=t.onClick,n.onChange=t.onChange,n.emptyMessage=t.emptyMessage,n}return ne(t,e),t}(Se),mt=function(e){this.label=e.label,this.value=e.value},ft=function(e){function t(t){var n=e.call(this,t)||this;return n.cols=t.cols,n.rows=t.rows,n.keyFilter=t.keyFilter,n.style=t.style,n}return ne(t,e),t}(Se),ht=function(e){function t(t){var n=e.call(this,t)||this;return n.mask=t.mask,n.inputType=t.inputType,n.keyFilter=t.keyFilter,n.leftAddon=t.leftAddon,n.rightAddon=t.rightAddon,n.maxLength=t.maxLength||9999999,n.browserAutocomplete=t.browserAutocomplete,n.style=t.style,n.onBlur=t.onBlur,n.onFocus=t.onFocus,n.onComplete=t.onComplete,n.onInput=t.onInput,n}return ne(t,e),t}(Se),gt=function(t){switch(t.type){case e.FieldType.Enum:return new ut(t);case e.FieldType.Autocomplete:return new Fe(t);case e.FieldType.Money:return new lt(t);case e.FieldType.Integer:return new at(t);case e.FieldType.Double:return new st(t);case e.FieldType.Number:return new Xe(t);case e.FieldType.String:case e.FieldType.Binary:return new ht(t);case e.FieldType.Text:return new ft(t);case e.FieldType.Boolean:return"switch"===t.representedBy?new et(t):new Qe(t);case e.FieldType.Date:case e.FieldType.DateTime:case e.FieldType.LocalDateTime:case e.FieldType.Time:return new tt(t);case e.FieldType.Lookup:return new ct(t);case e.FieldType.Radio:return new pt(t);case e.FieldType.Chips:return new nt(t);case e.FieldType.Blob:return new Ze(t);case e.FieldType.Custom:return new(0,t.CustomFieldClass)(function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(t,["CustomFieldClass"]))}},bt=function(e,t){this.label=e,this.value=t},vt=function(){function n(e){this.hotkeysService=e,this.id="s-lookup-"+i.nextId++,this.disabled=!1,this.showSearch=!0,this.lookupAppendTo="body",this.searchTitle="Pesquisa avançada",this.searchEmptyTitle="Nenhum registro encontrado",this.searchFields=[],this.filterTitle="Filtros",this.filterLabel="Filtrar",this.clearLabel="Limpar",this.cancelLabel="Cancelar",this.selectLabel="Selecionar",this.emptyFieldLabel="Não informado",this.recordLabel=" registro",this.recordsLabel=" registros",this.onLookupRequest=new t.EventEmitter,this.onSearchRequest=new t.EventEmitter,this.onFocus=new t.EventEmitter,this.onBlur=new t.EventEmitter,this.onKeyUp=new t.EventEmitter,this.onSelect=new t.EventEmitter,this.onUnselect=new t.EventEmitter,this.onClear=new t.EventEmitter,this.dialogVisible=!1,this.collapsed=!1,this.selected=[],this.transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)",this.ngUnsubscribe=new r.Subject,this.originalFormValues={}}var i;return i=n,n.prototype.ngOnInit=function(){var t=this;this.searchGridFields||(this.searchGridFields=this.searchFields.map((function(e){return new gt(ie({},e))}))),this.searchFields=this.searchFields.map((function(e){return new gt(ie(ie({},e),{size:{sm:12,md:12,lg:12,xl:12}}))})),this.searchGridFields=this.searchGridFields.map((function(n){n.width=t.getColWidth(n.label);var i=new Ee(ie({},n.calendarLocaleOptions));if(null==i?void 0:i.dateFormat){switch(n.type){case e.FieldType.Date:i.dateFormat=t._convertToMomentDateFormat(i.dateFormat);break;case e.FieldType.Time:i.dateFormat=t._convertToMomentHourFormat(i.hourFormat,i.dateFormat)}n.calendarLocaleOptions=i}return n}));var n=this.searchFields.reduce((function(e,n){return e[n.name]=new u.FormControl(n.defaultValue),t.originalFormValues[n.name]=n.defaultValue,e}),{});this.formGroupDialog=new u.FormGroup(n),this.onSearchRequest.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(){return t.loading=!0})),this.onSelect.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(){return t.onChange(t.value)})),this.onUnselect.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(){return t.onChange(t.value)})),this.onClear.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(){return!t.multiple&&t.onChange()})),this.onFocus.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(){t.onTouched()})),this.onBlur.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(e){var n=t.value&&t.value[t.lookupDisplayField],i=e.target.value;if(!t.multiple&&n&&n!=i){e.target.value="",t.onChange("")}}))},n.prototype._convertToMomentHourFormat=function(e,t){return"dd/mm/yy"===t?"LTS":"12"===e?t.replace(/\bH\b/,"h").replace(/\bHH\b/,"hh"):"24"===e?t.replace(/\bh\b/,"H").replace(/\bhh\b/,"HH"):t},n.prototype._convertToMomentDateFormat=function(e){return e.replace(/\bd\b/,"D").replace(/\bdd\b/,"DD").replace(/\bo\b/,"DDD").replace(/\boo\b/,"DDDD").replace(/\bM\b/,"MMM").replace(/\bMM\b/,"MMMM").replace(/\bm\b/,"M").replace(/\bmm\b/,"MM").replace(/\by\b/,"YY").replace(/\byy\b/,"YYYY")},n.prototype.ngAfterViewInit=function(){this.autocomplete.onOverlayAnimationDone=function(e){}},n.prototype.ngOnChanges=function(e){this.dialogVisible&&e.searchGridData&&(this.loading=!1)},n.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},n.prototype.getGridData=function(){return this.searchGridData},n.prototype.getLookupSuggestions=function(){return this.lookupSuggestions},n.prototype.makeSearchRequestParams=function(e){var t=this.formGroupDialog.getRawValue(),n=ie(ie({},e),{filterData:t}),i=e.multiSortMeta;return this.multiSortMeta=i||this.multiSortMeta,n},n.prototype.lazyLoadGrid=function(e){var t=this.makeSearchRequestParams(e);this.onSearchRequest.next(t)},n.prototype.lazyLoadLookup=function(e){this.onLookupRequest.next(e.query)},n.prototype.showDialog=function(){this.searchGridData=void 0,this.onTouched(),this.hotkeysService.pause(pe(this.hotkeysService.hotkeys)),this.setHotkeys();var e=[];this.multiple&&this.value?e=e.concat(this.value):this.value&&(e=[this.value]),this.selected=e,this.loading=!0,this.dialogVisible=!0},n.prototype.hideDialog=function(){var e=this.autocomplete,t=e.inputEL,n=e.multiInputEL;this.dialogVisible=!1,this.collapsed=!1,this.hotkeysService.unpause(pe(this.hotkeysService.pausedHotkeys)),this.multiple?n.nativeElement.focus():t.nativeElement.focus()},n.prototype.search=function(){this.resetTable(),this.collapsed=!0,this.dialog.moveOnTop()},n.prototype.clear=function(){this.formGroupDialog.reset(this.originalFormValues),this.resetTable()},n.prototype.resetTable=function(){this.table.reset()},n.prototype.select=function(){if(this.selected.length){var e=this.selected&&(this.multiple?this.selected:this.selected[0]);this.value=e,this.onSelect.next(e),this.hideDialog()}},n.prototype.onSelectionChange=function(e){e&&(Array.isArray(e)?this.selected=e:this.selected=[e])},n.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.writeValue(n),e(n)}},n.prototype.registerOnTouched=function(e){this.onTouched=e},n.prototype.writeValue=function(e){this.value=e},n.prototype.setDisabledState=function(e){this.disabled=e},n.prototype.getFieldValue=function(e,t){return t.split(".").reduce((function(e,t){return void 0===e[t]?"":e[t]}),e)},n.prototype.getLabelForValue=function(e,t){if(!t)return e;var n=t.find((function(t){return t.value===e}));return n?n.label:e},n.prototype.isBooleanValue=function(e,t){var n=this.getFieldValue(e,t);return!0===n||!1===n},n.prototype.getBooleanLabel=function(e,t,n){var i=this.getFieldValue(e,t);return!0===i?n.true:!1===i?n.false:this.emptyFieldLabel},n.prototype.isNumber=function(e,t){return!new ee(this.getFieldValue(e,t)).isNaN()},n.prototype.setHotkeys=function(){var e=this;[this.newHotkey("alt+shift+l",this.clear.bind(this)),this.newHotkey("alt+shift+f",this.search.bind(this)),this.newHotkey("alt+shift+c",this.hideDialog.bind(this)),this.newHotkey("alt+shift+s",this.select.bind(this))].forEach((function(t){return e.hotkeysService.add(t)}))},n.prototype.newHotkey=function(e,t){return new f.Hotkey(e,(function(){return t(),!1}),["INPUT","SELECT","TEXTAREA"])},n.prototype.filterToggle=function(){this.animating||(this.animating=!0,this.collapsed=!this.collapsed)},n.prototype.onToggleDone=function(){this.animating=!1},n.prototype.getColWidth=function(e){var t=e.length;return t<14.286?"14.286em":t+"em"},n.prototype.getScale=function(e){return this.isFunction(e)?e():e},n.prototype.isFunction=function(e){return e instanceof Function},n.prototype.getNumberMaskConfig=function(e){var t,n,i;return{scale:this.getScale(e.scale),decimalSeparator:null===(t=e.numberLocaleOptions)||void 0===t?void 0:t.decimalSeparator,thousandsSeparator:null===(n=e.numberLocaleOptions)||void 0===n?void 0:n.thousandsSeparator,prefix:null===(i=e.numberLocaleOptions)||void 0===i?void 0:i.currencySymbol}},n.prototype.onTableRowDoubleClick=function(e){this.selected=[e],this.select()},n.nextId=0,n.ctorParameters=function(){return[{type:f.HotkeysService}]},oe([t.Input()],n.prototype,"formControlName",void 0),oe([t.Input()],n.prototype,"id",void 0),oe([t.Input()],n.prototype,"multiple",void 0),oe([t.Input()],n.prototype,"dataKey",void 0),oe([t.Input()],n.prototype,"required",void 0),oe([t.Input()],n.prototype,"disabled",void 0),oe([t.Input()],n.prototype,"showSearch",void 0),oe([t.Input()],n.prototype,"lookupSuggestions",void 0),oe([t.Input()],n.prototype,"lookupDisplayField",void 0),oe([t.Input()],n.prototype,"lookupDisplayFieldTooltip",void 0),oe([t.Input()],n.prototype,"lookupEmptyMessage",void 0),oe([t.Input()],n.prototype,"lookupAppendTo",void 0),oe([t.Input()],n.prototype,"searchTitle",void 0),oe([t.Input()],n.prototype,"searchEmptyTitle",void 0),oe([t.Input()],n.prototype,"searchEmptyDescription",void 0),oe([t.Input()],n.prototype,"searchGridData",void 0),oe([t.Input()],n.prototype,"searchTotalRecords",void 0),oe([t.Input()],n.prototype,"searchFields",void 0),oe([t.Input()],n.prototype,"searchGridFields",void 0),oe([t.Input()],n.prototype,"multiSortMeta",void 0),oe([t.Input()],n.prototype,"filterTitle",void 0),oe([t.Input()],n.prototype,"filterLabel",void 0),oe([t.Input()],n.prototype,"clearLabel",void 0),oe([t.Input()],n.prototype,"cancelLabel",void 0),oe([t.Input()],n.prototype,"selectLabel",void 0),oe([t.Input()],n.prototype,"emptyFieldLabel",void 0),oe([t.Input()],n.prototype,"recordLabel",void 0),oe([t.Input()],n.prototype,"recordsLabel",void 0),oe([t.Input()],n.prototype,"placeholder",void 0),oe([t.Input()],n.prototype,"searchTotalRecordsLabel",void 0),oe([t.Input()],n.prototype,"sortableColumnsDisabled",void 0),oe([t.Input()],n.prototype,"lookupRowProps",void 0),oe([t.Output()],n.prototype,"onLookupRequest",void 0),oe([t.Output()],n.prototype,"onSearchRequest",void 0),oe([t.Output()],n.prototype,"onFocus",void 0),oe([t.Output()],n.prototype,"onBlur",void 0),oe([t.Output()],n.prototype,"onKeyUp",void 0),oe([t.Output()],n.prototype,"onSelect",void 0),oe([t.Output()],n.prototype,"onUnselect",void 0),oe([t.Output()],n.prototype,"onClear",void 0),oe([t.ViewChild(v.Table,{static:!1})],n.prototype,"table",void 0),oe([t.ViewChild(b.Dialog,{static:!1})],n.prototype,"dialog",void 0),oe([t.ViewChild(g.AutoComplete,{static:!1})],n.prototype,"autocomplete",void 0),n=i=oe([t.Component({selector:"s-lookup",template:'<div [ngClass]="{ inputgroup: showSearch }">\n <p-autoComplete\n #autocomplete\n [(ngModel)]="value"\n [disabled]="disabled"\n [dataKey]="dataKey"\n [multiple]="multiple"\n [inputId]="id + \'-autocomplete\'"\n [forceSelection]="true"\n [suggestions]="getLookupSuggestions()"\n (completeMethod)="lazyLoadLookup($event)"\n (onSelect)="onSelect.next($event)"\n (onBlur)="onBlur.next($event)"\n (onFocus)="onFocus.next($event)"\n (onUnselect)="onUnselect.next($event)"\n (onClear)="onClear.next($event)"\n (onKeyUp)="onKeyUp.next($event)"\n [field]="lookupDisplayField"\n [emptyMessage]="lookupEmptyMessage"\n [dropdown]="!showSearch"\n [appendTo]="lookupAppendTo"\n [placeholder]="placeholder || \' \'"\n [autoHighlight]="true"\n inputStyleClass="mousetrap"\n >\n <ng-template let-item pTemplate="selectedItem">\n <span class="ui-autocomplete-token-label ng-tns-c65-43 ng-star-inserted"\n [pTooltip]="lookupDisplayFieldTooltip ? item[lookupDisplayField] : null"\n tooltipPosition="top">\n {{item[lookupDisplayField]}}\n </span>\n </ng-template>\n </p-autoComplete>\n\n <button\n *ngIf="showSearch"\n pButton\n type="button"\n icon="fa fa-search"\n class="button-addon"\n [disabled]="disabled"\n (click)="showDialog()"\n ></button>\n</div>\n\n<p-dialog\n appendTo="body"\n styleClass="s-lookup-modal"\n [header]="searchTitle"\n [(visible)]="dialogVisible"\n [modal]="true"\n (onHide)="hideDialog()"\n [blockScroll]="true"\n [focusOnShow]="true"\n [draggable]="false"\n [resizable]="false"\n #dialog\n>\n <div *ngIf="dialogVisible" class="s-lookup-modal-container">\n <div *ngIf="searchFields && searchFields.length" class="filter"\n [@collapseContent]="collapsed \n ? { value: \'hidden\', params: { transitionParams: transitionOptions } }\n : { value: \'visible\', params: { transitionParams: transitionOptions } }"\n (@collapseContent.done)="onToggleDone()">\n <form [formGroup]="formGroupDialog" novalidate autocomplete="off">\n <div *ngIf="!collapsed"\n [@childCollapseContent]="collapsed\n ? { value: \':leave\', params: { transitionParams: transitionOptions } }\n : { value: \':enter\', params: { transitionParams: transitionOptions } }"\n class="form-content">\n <div class="filter-title sds-section-title">{{ filterTitle }}</div>\n <div class="form-fields">\n <s-dynamic-form [fields]="searchFields" [form]="formGroupDialog"></s-dynamic-form>\n </div>\n <div class="ui-g">\n <div class="ui-g-12">\n <s-button\n [id]="id + \'-filter-button\'"\n type="submit"\n [label]="filterLabel"\n (onClick)="search()"\n pTooltip="(ALT + SHIFT + F)"\n showDelay="500"\n ></s-button>\n <s-button\n [id]="id + \'-clear-button\'"\n type="button"\n [label]="clearLabel"\n (onClick)="clear()"\n priority="link"\n pTooltip="(ALT + SHIFT + L)"\n showDelay="500"\n ></s-button>\n </div>\n </div>\n </div>\n </form>\n </div>\n <div *ngIf="searchFields && searchFields.length" class="filter-toggle">\n <div class="filter-toggle--start-border-mask"></div>\n <button [id]="id + \'-filter-toggle-button\'" type="button" (click)="filterToggle()">\n <span class="fa" [ngClass]="{\'fa-chevron-left\': !collapsed, \'fa-chevron-right\': collapsed}"\n aria-hidden="true"></span>\n </button>\n <div class="filter-toggle--end-border-mask"></div>\n </div>\n <div class="content" [ngClass]="{\'empty-content\': !searchTotalRecords && !loading}">\n <s-empty-state\n [id]="id + \'-empty-state\'"\n *ngIf="!searchTotalRecords && !loading"\n [title]="searchEmptyTitle"\n [description]="searchEmptyDescription"\n iconClass="fa fa-search"\n ></s-empty-state>\n\n <p-table\n [dataKey]="dataKey"\n [value]="getGridData()"\n [columns]="searchGridFields"\n [lazy]="true"\n [scrollable]="true"\n [paginator]="true"\n sortMode="multiple"\n [totalRecords]="searchTotalRecords"\n [rows]="10"\n [selection]="selected"\n (onLazyLoad)="lazyLoadGrid($event)"\n *sLoadingState="loading"\n [multiSortMeta]="multiSortMeta"\n [attr.data-hidden]="!searchTotalRecords && !loading"\n [selectionMode]="multiple ? \'multiple\' : \'single\'"\n (selectionChange)="onSelectionChange($event)"\n >\n <ng-template pTemplate="colgroup" let-columns>\n <colgroup>\n <col *ngIf="multiple" style="width: 50px" />\n <col *ngFor="let col of columns" [style.width]="col.width" />\n </colgroup>\n </ng-template>\n <ng-template pTemplate="header" let-columns>\n <tr>\n <th *ngIf="multiple" style="width: 50px">\n <s-table-header-checkbox [useAllObject]="lookupRowProps ? false : true" [rowProps]="lookupRowProps"></s-table-header-checkbox>\n </th>\n <th\n [style.width]="col.width"\n *ngFor="let col of columns"\n [pSortableColumn]="col.name"\n [pSortableColumnDisabled]="sortableColumnsDisabled?.includes(col.name)"\n >\n <div class="senior-header">\n <span class="senior-header-title">{{ col.label }}</span>\n <p-sortIcon [field]="col.name" *ngIf="!sortableColumnsDisabled?.includes(col.name)"></p-sortIcon>\n </div>\n </th>\n </tr>\n </ng-template>\n <ng-template pTemplate="body" let-rowData let-columns let-rowIndex="rowIndex">\n <tr\n sNavigation\n [pSelectableRow]="rowData"\n [pSelectableRowIndex]="rowIndex"\n sDoubleClick (onDoubleClick)="onTableRowDoubleClick(rowData)"\n >\n <td *ngIf="multiple" style="width: 50px" tabindex="0">\n <p-tableCheckbox [value]="rowData" [pSelectableRow]="rowData"></p-tableCheckbox>\n </td>\n <td\n [style.width]="col[\'width\']"\n *ngFor="let col of searchGridFields"\n [ngSwitch]="col.type"\n tabindex="0"\n >\n <ng-container *ngSwitchCase="\'Boolean\'">\n <ng-container *ngIf="isBooleanValue(rowData, col.name); else emptyTemplate">\n <span>{{ getBooleanLabel(rowData, col.name, col.optionsLabel) }}</span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase="\'Date\'">\n <ng-container *ngIf="getFieldValue(rowData, col.name); else emptyTemplate">\n <span>{{ getFieldValue(rowData, col.name) | localizedDate: col.calendarLocaleOptions?.dateFormat || "L" | async }}</span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase="\'DateTime\'">\n <ng-container *ngIf="getFieldValue(rowData, col.name); else emptyTemplate">\n <span>{{ getFieldValue(rowData, col.name) | localizedDate | async }}</span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase="\'LocalDateTime\'">\n <ng-container *ngIf="getFieldValue(rowData, col.name); else emptyTemplate">\n <span>{{ getFieldValue(rowData, col.name) | localizedDate | async }}</span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase="\'Time\'">\n <ng-container *ngIf="getFieldValue(rowData, col.name); else emptyTemplate">\n <span>{{ getFieldValue(rowData, col.name) | localizedTime: col.calendarLocaleOptions?.dateFormat || "LTS" | async }}</span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase="\'Double\'">\n <ng-container *ngIf="isNumber(rowData, col.name); else emptyTemplate">\n <span> {{ getFieldValue(rowData, col.name) | localizedNumber: getScale(col.scale) | async }} </span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase="\'Money\'">\n <ng-container *ngIf="isNumber(rowData, col.name); else emptyTemplate">\n <span> {{ getFieldValue(rowData, col.name) | localizedCurrency | async }} </span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase="\'Number\'">\n <ng-container *ngIf="isNumber(rowData, col.name); else emptyTemplate">\n <span> {{ getFieldValue(rowData, col.name) | localizedBignumber: getNumberMaskConfig(col) | async }} </span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchCase="\'Enum\'">\n <ng-container\n *ngIf="getLabelForValue(getFieldValue(rowData, col.name), col.options); else emptyTemplate"\n >\n <span> {{ getLabelForValue(getFieldValue(rowData, col.name), col.options) }} </span>\n </ng-container>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <ng-container *ngIf="col.mask && col.mask()">\n <ng-container *ngIf="(isNumber(rowData, col.name) || getFieldValue(rowData, col.name))">\n <span>{{ getFieldValue(rowData, col.name) | sMaskFormatter: col.mask() }}</span>\n </ng-container>\n </ng-container>\n <ng-container *ngIf="!(col.mask && col.mask())">\n <ng-container *ngIf="(isNumber(rowData, col.name) || getFieldValue(rowData, col.name)); else emptyTemplate">\n <span>{{ getFieldValue(rowData, col.name) }}</span>\n </ng-container>\n </ng-container>\n </ng-container>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate="paginatorright">\n <span [attr.data-hidden]="loading">\n {{\n searchTotalRecordsLabel ||\n searchTotalRecords?.toString() + (searchTotalRecords === 1 ? recordLabel : recordsLabel)\n }}\n </span>\n </ng-template>\n </p-table>\n </div>\n </div>\n\n <p-footer>\n <s-button\n [id]="id + \'-select-button\'"\n type="button"\n [label]="selectLabel"\n (onClick)="select()"\n pTooltip="(ALT + SHIFT + S)"\n showDelay="500"\n [disabled]="!selected?.length"\n ></s-button>\n <s-button\n [id]="id + \'-cancel-button\'"\n type="button"\n priority="link"\n [label]="cancelLabel"\n (onClick)="hideDialog()"\n pTooltip="(ALT + SHIFT + C)"\n showDelay="500"\n ></s-button>\n </p-footer>\n</p-dialog>\n\n<ng-template #emptyTemplate>\n <span [ngClass]="\'sds-empty-value\'">{{ emptyFieldLabel }}</span>\n</ng-template>\n',providers:[{provide:u.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return i})),multi:!0}],encapsulation:t.ViewEncapsulation.None,animations:[d.trigger("collapseContent",[d.state("hidden",d.style({width:"10px",padding:0})),d.state("visible",d.style({width:"*"})),d.transition("visible <=> hidden",[d.group([d.query("@childCollapseContent",d.animateChild()),d.animate("{{transitionParams}}")])])]),d.trigger("childCollapseContent",[d.state(":leave",d.style({opacity:0})),d.state(":enter",d.style({opacity:1})),d.transition("* <=> *",d.animate("{{transitionParams}}"))])],styles:["s-lookup.ng-dirty.ng-invalid .ui-inputtext{border-color:#c13018}s-lookup .ui-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}s-lookup .inputgroup p-autocomplete+button,s-lookup p-autocomplete .ui-autocomplete-dropdown.ui-button{background-color:#fff;border-color:#ccc;border-width:1px 1px 1px 0;color:#333;min-height:34px;height:auto!important;min-width:auto;width:34px!important;overflow:hidden;border-top-left-radius:0;border-bottom-left-radius:0}.ui-fluid s-lookup .inputgroup,s-lookup p-autocomplete span.ui-autocomplete-multiple{display:-ms-flexbox;display:flex}.ui-fluid s-lookup .inputgroup p-autocomplete{display:inline-block}.ui-fluid s-lookup .inputgroup p-autocomplete,.ui-fluid s-lookup p-autocomplete .ui-autocomplete-input{width:calc(100% - 34px)}.ui-fluid s-lookup .inputgroup p-autocomplete .ui-autocomplete-input{width:100%}s-lookup .inputgroup p-autocomplete+button:enabled:hover,s-lookup .inputgroup p-autocomplete+button:focus{background-color:#e6e6e6;border-color:#ccc}s-lookup .inputgroup p-autocomplete .ui-widget .ui-inputtext{border-right-width:1px;border-right-style:solid}s-lookup .ui-autocomplete-input-token,s-lookup .ui-autocomplete-input-token input{width:100%}s-lookup .ui-autocomplete .ui-autocomplete-token{max-width:100%}s-lookup .ui-autocomplete .ui-autocomplete-token-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body .s-lookup-modal.ui-dialog .ui-dialog-content{padding:0;margin-bottom:0;max-height:none}s-lookup .ui-table-scrollable-body{min-width:100%}.s-lookup-modal{height:80%!important;max-width:100%!important;max-height:inherit!important;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:column;flex-direction:column}.s-lookup-modal .ui-dialog-content{height:auto!important;-ms-flex:1;flex:1;overflow:auto}.s-lookup-modal .ui-dialog-footer,.s-lookup-modal .ui-dialog-header{-ms-flex-negative:0;flex-shrink:0;border-radius:0 0 4px 4px}.s-lookup-modal .s-lookup-modal-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:100%;width:100%}.s-lookup-modal .s-lookup-modal-container .filter{position:relative;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;width:85%;background-color:rgba(229,234,234,.5);height:100%;padding:.571rem}.s-lookup-modal .s-lookup-modal-container .filter form{width:100%;height:100%}.s-lookup-modal .s-lookup-modal-container .filter form .form-content{height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.s-lookup-modal .s-lookup-modal-container .filter form .form-content .filter-title{padding-left:.5rem}.s-lookup-modal .s-lookup-modal-container .filter form .form-content .form-fields{overflow-y:auto}.s-lookup-modal .s-lookup-modal-container .filter-toggle{-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;width:34px;border-radius:0 4px 4px 0}.s-lookup-modal .s-lookup-modal-container .filter-toggle button{-ms-flex-align:center;align-items:center;position:relative;background-color:rgba(229,234,234,.5);height:34px;width:100%;border:1px solid #e5eaea;outline:0;border-left:none;border-radius:0 4px 4px 0;cursor:pointer;text-decoration:none;text-transform:none;padding:7px;transition:background-color .2s ease-out,color .2s ease-out,border-color .2s ease-out}.s-lookup-modal .s-lookup-modal-container .filter-toggle button:focus,.s-lookup-modal .s-lookup-modal-container .filter-toggle button:hover{background-color:rgba(201,211,211,.5);border-color:#c9d3d3}.s-lookup-modal .s-lookup-modal-container .filter-toggle--start-border-mask{height:15px;border-left:1px solid #e5eaea}.s-lookup-modal .s-lookup-modal-container .filter-toggle--end-border-mask{height:calc(100% - 49px);border-left:1px solid #e5eaea}.s-lookup-modal .s-lookup-modal-container .content{-ms-flex-positive:1;flex-grow:1;-ms-flex-preferred-size:auto;flex-basis:auto;overflow-x:auto;padding:.5rem}.s-lookup-modal .s-lookup-modal-container .content.empty-content{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}.s-lookup-modal .s-lookup-modal-container .content .s-loading-state-container,.s-lookup-modal .s-lookup-modal-container .content .s-loading-state-container .contents{height:100%}.s-lookup-modal .s-lookup-modal-container .content p-table{position:relative;height:100%}.s-lookup-modal .s-lookup-modal-container .content p-table .ui-table{height:100%}.s-lookup-modal .s-lookup-modal-container .content p-table .ui-table .ui-table-scrollable-wrapper{height:calc(100% - 60px)}.s-lookup-modal .s-lookup-modal-container .content p-table .ui-table .ui-table-scrollable-wrapper .ui-table-scrollable-view{height:100%}.s-lookup-modal .s-lookup-modal-container .content p-table .ui-table .ui-table-scrollable-wrapper .ui-table-scrollable-view .ui-table-scrollable-body{position:relative;height:calc(100% - 60px)}@media (max-width:767px){.s-lookup-modal{border:none!important;top:0!important;left:0!important;width:100%!important;height:100%!important}}@media (min-width:768px){.s-lookup-modal{width:80%!important}.s-lookup-modal .s-lookup-modal-container .filter{width:40%}}@media (min-width:1200px){.s-lookup-modal{width:60%!important}.s-lookup-modal .s-lookup-modal-container .filter{width:30%}}"]})],n)}(),yt=function(){function e(){}return e.prototype.isFunction=function(e){return e instanceof Function},e.prototype.trigger=function(e){return e()},e}();(it=e.DynamicType||(e.DynamicType={})).Autocomplete="Autocomplete",it.Binary="Binary",it.Boolean="Boolean",it.Chips="Chips",it.Date="Date",it.DateTime="DateTime",it.LocalDateTime="LocalDateTime",it.Double="Double",it.Enum="Enum",it.Fieldset="Fieldset",it.Integer="Integer",it.Lookup="Lookup",it.Money="Money",it.Radio="Radio",it.Row="Row",it.Section="Section",it.String="String",it.Text="Text",it.Time="Time",it.Number="Number";var xt,wt=function(e){function t(t){return e.call(this,t)||this}return ne(t,e),t}((function(e){Object.assign(this,ie({},e))})),Ct=function(e){Object.assign(this,ie({},e))},_t=function(e){function t(t){var n=e.call(this,t)||this;return Object.assign(n,ie({},t)),n}return ne(t,e),t}(Ct),It=function(e){function t(t){return e.call(this,t)||this}return ne(t,e),t}(Ct),kt=function(t){var n=t.type,i=t.representedBy;switch(n){case e.DynamicType.Autocomplete:return new Fe(t);case e.DynamicType.Binary:case e.DynamicType.String:return new ht(t);case e.DynamicType.Boolean:return"switch"===i?new et(t):new Qe(t);case e.DynamicType.Chips:return new nt(t);case e.DynamicType.Date:case e.DynamicType.DateTime:case e.DynamicType.LocalDateTime:case e.DynamicType.Time:return new tt(t);case e.DynamicType.Double:return new st(t);case e.DynamicType.Enum:return new ut(t);case e.DynamicType.Fieldset:return new _t(t);case e.DynamicType.Integer:return new at(t);case e.DynamicType.Number:return new Xe(t);case e.DynamicType.Lookup:return new ct(t);case e.DynamicType.Money:return new lt(t);case e.DynamicType.Radio:return new pt(t);case e.DynamicType.Row:return new wt(t);case e.DynamicType.Section:return new It(t);case e.DynamicType.Text:return new ft(t)}},Tt=function(){function e(){this.errorMessages={}}return oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"configs",void 0),oe([t.Input()],e.prototype,"fields",void 0),oe([t.Input()],e.prototype,"form",void 0),oe([t.Input()],e.prototype,"errorMessages",void 0),e=oe([t.Component({selector:"s-dynamic-form",template:'<div *ngIf="configs; else templateFields">\n <ng-container *ngFor="let config of configs">\n <ng-container *sDynamicForm="{ id: id, config: config, group: form, errorMessages: errorMessages }"></ng-container>\n </ng-container>\n</div>\n\n<ng-template #templateFields>\n <s-dynamic-field [id]="id" [fields]="fields" [form]="form" [errorMessages]="errorMessages"></s-dynamic-field>\n</ng-template>\n',encapsulation:t.ViewEncapsulation.None,styles:['label.required:after{content:" *";color:#c13018}']})],e)}(),St=function(){function e(){this.id="s-empty-state-"+n.nextId++,this.iconClass="fa fa-inbox",this.showPrimaryAction=!0,this.showSecondaryAction=!0,this.primaryModel=[],this.primaryAction=new t.EventEmitter,this.secondaryAction=new t.EventEmitter}var n;return n=e,e.nextId=0,oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"iconClass",void 0),oe([t.Input()],e.prototype,"title",void 0),oe([t.Input()],e.prototype,"description",void 0),oe([t.Input()],e.prototype,"showPrimaryAction",void 0),oe([t.Input()],e.prototype,"showSecondaryAction",void 0),oe([t.Input()],e.prototype,"primaryActionLabel",void 0),oe([t.Input()],e.prototype,"secondaryActionLabel",void 0),oe([t.Input()],e.prototype,"primaryModel",void 0),oe([t.Output()],e.prototype,"primaryAction",void 0),oe([t.Output()],e.prototype,"secondaryAction",void 0),e=n=oe([t.Component({selector:"s-empty-state",template:'<div [id]="id" class="container">\n <div [id]="id + \'-icon\'" class="icon">\n <i [attr.class]="iconClass ? iconClass : \'fa fa-cogs\'" aria-hidden="true"></i>\n </div>\n <div [id]="id + \'-title\'" class="title">{{title}}</div>\n <div [id]="id + \'-description\'" class="description" *ngIf="description">\n <p>{{description}}</p>\n </div>\n <div [id]="id + \'-actions\'" class="actions" *ngIf="showPrimaryAction && primaryActionLabel">\n <s-button [id]="id + \'-primary-action\'" type="button" [label]="primaryActionLabel"\n [model]="primaryModel" (click)="primaryAction.next()"></s-button>\n <s-button [id]="id + \'-secondary-action\'" *ngIf="showSecondaryAction && secondaryActionLabel" id="secondaryAction" type="button"\n [label]="secondaryActionLabel" priority="link" (click)="secondaryAction.next()"></s-button>\n </div>\n</div>',styles:[".container{width:100%;text-align:center}.title{font-weight:700;margin-bottom:10px}.description{margin-bottom:15px;color:#999;padding:0 20px;text-align:center}.description>p{margin:auto;max-width:400px;max-height:80px;overflow:hidden}.icon{color:#d8d8d8;font-size:6em}.actions{text-align:center;width:100%}"]})],e)}(),Ft=function(){function e(e){this.cookieService=e,this.iconClass="fa fa-exclamation-triangle"}return e.prototype.goBack=function(){var e=this.cookieService.get("com.senior.portal.url");window.open(e,"_top")},e.nextId=0,e.ctorParameters=function(){return[{type:C.CookieService}]},oe([t.Input()],e.prototype,"iconClass",void 0),oe([t.Input()],e.prototype,"title",void 0),oe([t.Input()],e.prototype,"description",void 0),oe([t.Input()],e.prototype,"primaryActionLabel",void 0),e=oe([t.Component({selector:"s-empty-state-go-back",template:'<s-empty-state \n [iconClass]="iconClass" \n [title]="title" \n [description]="description" \n (primaryAction)="goBack()"\n [primaryActionLabel]="primaryActionLabel">\n</s-empty-state>'})],e)}(),Et=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,ve],providers:[C.CookieService],declarations:[St,Ft],exports:[St,Ft]})],e)}();(xt=e.ValidateErrors||(e.ValidateErrors={})).MAX_FILE_SIZE="MAX_FILE_SIZE",xt.MAX_FILE_LIMIT="MAX_FILE_LIMIT";var Lt,Mt,Ot={SM_MIN:0,SM_MAX:767,MD_MIN:768,MD_MAX:991,LG_MIN:992,LG_MAX:1199,XL_MIN:1200,XL_MAX:1/0},At=function(){function e(){throw new Error("Classe não deve ser instanciada.")}return e.addClass=function(e,t){e.nativeElement.className=e.nativeElement.className+" "+t},e.removeClass=function(e,t){e.nativeElement.className.includes(t)&&(e.nativeElement.className=e.nativeElement.className.replace(t,""))},e.exportCSV=function(e,t,n,i){var o=this;void 0===e&&(e=[]),void 0===t&&(t=[]),void 0===n&&(n=";"),void 0===i&&(i="download");var r="\ufeff";e.filter((function(e){return e.exportable&&e.field})).forEach((function(t,i){r+='"'+(t.header||t.field)+'"',i<e.length-1&&(r+=n)})),t.forEach((function(t){r+="\n",e.filter((function(e){return e.exportable&&e.field})).forEach((function(i,a){var s;Array.isArray(i.field)?s=i.field.map((function(e){return o.resolveFieldData(t,e)})).flat().filter((function(e){return null!=e})).join(i.separator):s=o.resolveFieldData(t,i.field);s=null!=s?String(s).replace(/"/g,'""'):"",r+='"'+s+'"',a<e.length-1&&(r+=n)}))}));var a=new Blob([r],{type:"text/csv;charset=utf-8;"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(a,i+".csv");else{var s=document.createElement("a");s.style.display="none",document.body.appendChild(s),void 0!==s.download?(s.setAttribute("href",URL.createObjectURL(a)),s.setAttribute("download",i+".csv"),s.click()):(r="data:text/csv;charset=utf-8,"+r,window.open(encodeURI(r))),document.body.removeChild(s)}},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}(),Dt=function(){function n(e){this.sanitizer=e,this.inputValue="",this.id="s-file-upload-"+i.nextId++,this.chooseLabel="Anexar arquivos",this.removeLabel="Remover",this.cancelLabel="Cancelar",this.successTooltip="Arquivo anexado com sucesso",this.ariaLabelProgress="Carregando arquivo",this.disabled=!1,this.uploadHandler=new t.EventEmitter,this.removeFile=new t.EventEmitter,this.cancelUpload=new t.EventEmitter,this.downloadFile=new t.EventEmitter,this.validateErros=new t.EventEmitter,this._files=[],this.ngUsubscribe=new r.Subject}var i;return i=n,n.prototype.ngOnDestroy=function(){this.ngUsubscribe.next(),this.ngUsubscribe.complete()},n.prototype.ngAfterContentInit=function(){this.update()},n.prototype.onResize=function(){this.update()},n.prototype.onFileSelect=function(t){var n,i,o=[];if(this.multiple||(this.files=[]),this.isFileLimitExceeded(t))this.validateErros.emit(e.ValidateErrors.MAX_FILE_LIMIT);else{try{for(var r=le(t),a=r.next();!a.done;a=r.next()){var s=a.value;if(this.isFileSizeExceeded(s))return void this.validateErros.emit(e.ValidateErrors.MAX_FILE_SIZE);o.push(s)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}o.length&&(this.files=this.files.concat(o),this.uploadHandler.emit({files:o}),this.inputUpload.nativeElement.value="")}},n.prototype.onRemoveFile=function(e){var t=this.files.indexOf(e);this.files.splice(t,1).length&&this.removeFile.emit({file:e})},n.prototype.onCancelUpload=function(e){this.files.splice(e,1).length&&this.cancelUpload.emit(e)},n.prototype.onDowloadFile=function(e){this.downloadFile.emit({index:e,anchor:this.anchor})},Object.defineProperty(n.prototype,"files",{get:function(){return this._files},set:function(e){var t=this;this._files=e.map((function(e){return t.isImage(e)&&(e.objectURL=t.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(e))),e}))},enumerable:!0,configurable:!0}),n.prototype.update=function(){var e=window.innerWidth;this.isSmallDevice=e<=Ot.SM_MAX},n.prototype.isImage=function(e){return/^image\//.test(e.type)},n.prototype.isFileLimitExceeded=function(e){return!!this.fileLimit&&this.files.length+e.length>this.fileLimit},n.prototype.isFileSizeExceeded=function(e){return!!this.maxFileSize&&e.size>this.maxFileSize},n.nextId=0,n.ctorParameters=function(){return[{type:B.DomSanitizer}]},oe([t.ViewChild("inputUpload",{static:!1})],n.prototype,"inputUpload",void 0),oe([t.ViewChild("anchor",{static:!1})],n.prototype,"anchor",void 0),oe([t.Input()],n.prototype,"id",void 0),oe([t.Input()],n.prototype,"chooseLabel",void 0),oe([t.Input()],n.prototype,"removeLabel",void 0),oe([t.Input()],n.prototype,"cancelLabel",void 0),oe([t.Input()],n.prototype,"successTooltip",void 0),oe([t.Input()],n.prototype,"multiple",void 0),oe([t.Input()],n.prototype,"accept",void 0),oe([t.Input()],n.prototype,"ariaLabelFileName",void 0),oe([t.Input()],n.prototype,"maxFileSize",void 0),oe([t.Input()],n.prototype,"fileLimit",void 0),oe([t.Input()],n.prototype,"ariaLabelProgress",void 0),oe([t.Input()],n.prototype,"ariaLabelSuccess",void 0),oe([t.Input()],n.prototype,"ariaLabelError",void 0),oe([t.Input()],n.prototype,"ariaLabelRemove",void 0),oe([t.Input()],n.prototype,"formGroup",void 0),oe([t.Input()],n.prototype,"disabled",void 0),oe([t.Output()],n.prototype,"uploadHandler",void 0),oe([t.Output()],n.prototype,"removeFile",void 0),oe([t.Output()],n.prototype,"cancelUpload",void 0),oe([t.Output()],n.prototype,"downloadFile",void 0),oe([t.Output()],n.prototype,"validateErros",void 0),oe([t.HostListener("window:resize")],n.prototype,"onResize",null),oe([t.Input()],n.prototype,"files",null),n=i=oe([t.Component({selector:"s-file-upload",template:'<div\n [id]="id"\n class="s-fileupload">\n <div class="s-fileupload-choose">\n <input\n #inputUpload\n [id]="id+\'input-upload\'"\n type="file"\n name="file"\n [accept]="accept"\n [multiple]="multiple"\n (change)="onFileSelect($event.dataTransfer\n ? $event.dataTransfer.files\n : $event.target.files)"> \n <s-button\n [id]="id + \'upload-button\'"\n [label]="chooseLabel"\n (onClick)="inputUpload.click()"\n priority="primary"\n [disabled]="disabled || !!formGroup?.disabled"\n [auxiliary]="false">\n </s-button>\n </div>\n\n <section\n *ngIf="files.length" \n [id]="id + \'fileupload-list\'"\n class="s-fileupload-list"\n role="grid">\n <ng-container *ngFor="let file of files; let i = index">\n <div\n class="s-fileupload-list-file"\n role="row">\n <div\n [id]="id + \'-file-\' + i + \'-name\'"\n class="s-fileupload-list-file-name"\n role="gridcell">\n <ng-container *ngTemplateOutlet="file.savedFile || file.progress === 100\n ? descriptionUrl\n : description; context: {\n $implicit: file,\n index: i\n }">\n </ng-container>\n </div>\n <div\n class="s-fileupload-list-file-status"\n role="gridcell">\n <p-progressBar\n *ngIf="file.isUploading && !isSmallDevice"\n [style]="{ \'width\': \'250px\', \'background-color\': \'#d8d8d8\', \'border-radius\': \'0px\', \'height\': \'14px\'}"\n [value]="file.progress"\n [showValue]="false"\n role="alert"\n [attr.aria-label]="ariaLabelProgress">\n </p-progressBar>\n <span\n *ngIf="file.isUploading && isSmallDevice" \n [id]="id + \'-file-\' + i + \'-spin\'"\n class="fas fa-circle-notch fa-spin"\n [attr.aria-label]="ariaLabelProgress">\n </span>\n <span\n *ngIf="!file.isUploading && !file.error && file.progress === 100"\n [id]="id + \'-file-\' + i + \'-check\'"\n class="fas fa-check"\n role="alert"\n [attr.aria-label]="ariaLabelSuccess || successTooltip"\n [pTooltip]="successTooltip"\n tooltipPosition="top"\n showDelay="500"\n [appendTo]="\'body\'">\n </span>\n <span\n *ngIf="file.error?.message" \n [id]="id + \'-file-\' + i + \'-error\'"\n class="fas fa-times"\n role="alert"\n [pTooltip]="file.error?.message"\n tooltipPosition="top"\n showDelay="500"\n [appendTo]="\'body\'">\n </span>\n </div>\n <div\n class="s-fileupload-list-file-actions"\n role="gridcell">\n <a\n *ngIf="file.isUploading"\n [id]="id + \'-file-\' + i + \'-cancel\'"\n class="s-fileupload-list-file-actions-action"\n (click)="onCancelUpload(i)">\n {{cancelLabel}}\n </a>\n <a\n *ngIf="!file.isUploading && !(disabled || !!formGroup?.disabled)"\n role="button"\n tabindex="0"\n [id]="id + \'-file-\' + i + \'-remove\'"\n class="s-fileupload-list-file-actions-action"\n (click)="onRemoveFile(file)"\n [attr.aria-label]="ariaLabelRemove || removeLabel">\n {{removeLabel}}\n </a>\n </div>\n </div>\n </ng-container>\n </section>\n</div>\n\n<ng-template\n #descriptionUrl\n let-file\n let-i = index>\n <a\n [id]="id + \'-file-\' + i + \'-name-link\'"\n tabindex="0"\n (click)="onDowloadFile(i)"\n [attr.aria-label]="ariaLabelFileName || file.name">{{file.name}}\n </a>\n <a\n style="display: none;"\n [href]="file.objectURL"\n target="_blank"\n download\n #anchor>\n </a>\n</ng-template>\n\n<ng-template\n #description\n let-file>\n <span\n tabindex="0"\n [attr.aria-label]="ariaLabelFileName || file.name">\n {{file.name}}\n </span>\n</ng-template>\n',styles:[".s-fileupload .s-fileupload-choose{position:relative;margin:15px 0;width:-webkit-max-content;width:max-content}.s-fileupload input[type=file]{display:none}.s-fileupload-list{border:1px solid #ccc}.s-fileupload-list-file:not(:first-child){border-top:1px solid #ccc}.s-fileupload-list .s-fileupload-list-file{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:justify;justify-content:space-between;padding:15px}.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-name{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-name>a{cursor:pointer;text-decoration:none}.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-status{-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center}.s-fileupload-list .s-fileupload-list-file .fas.fa-circle-notch{color:#d8d8d8;font-size:12px}.s-fileupload-list .s-fileupload-list-file .fas.fa-check{color:#0c9348;font-size:12px}.s-fileupload-list .s-fileupload-list-file .fas.fa-times{color:#c13018;font-size:12px}.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-actions{margin-top:15px;-ms-flex-item-align:center;-ms-grid-row-align:center;align-self:center;width:100%}.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-actions a.s-fileupload-list-file-actions-action{text-decoration:none;color:#428bca}.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-actions a.s-fileupload-list-file-actions-action :focus,.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-actions a.s-fileupload-list-file-actions-action :visited,.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-actions a.s-fileupload-list-file-actions-action:hover{text-decoration:none}@media (min-width:768px){.s-fileupload-list .s-fileupload-list-file{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-name{width:auto;-ms-flex-positive:2;flex-grow:2}.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-status{margin:0 15px}.s-fileupload-list .s-fileupload-list-file .s-fileupload-list-file-actions{margin:0;width:auto}}"]})],n)}(),Rt=function(){function e(){}return e=oe([t.NgModule({declarations:[Dt],imports:[n.CommonModule,ve,l.TooltipModule,z.ProgressBarModule],exports:[Dt]})],e)}(),Nt=function(){function e(){}return e=oe([t.Component({selector:"s-info-sign-component",template:'<span style="display: inline-flex; justify-content: flex-start; align-items: baseline;">\n <span *ngTemplateOutlet="templateRef"></span>\n <i class="fa fa-info-circle"\n aria-hidden="true"\n style="padding-left: 10px"\n [pTooltip]="tooltip"\n [escape]="false"></i>\n</span>'})],e)}(),zt=function(){function e(e,t,n){this.templateRef=e,this.viewContainer=t,this.componentFactoryResolver=n}return e.prototype.ngOnInit=function(){if(!this.componentRef&&this.sInfoSign){this.viewContainer.clear();var e=this.componentFactoryResolver.resolveComponentFactory(Nt);this.componentRef=this.viewContainer.createComponent(e),this.componentRef.instance.templateRef=this.templateRef,this.componentRef.instance.tooltip=this.sInfoSign}else this.componentRef&&this.sInfoSign?this.componentRef.instance.tooltip=this.sInfoSign:(this.viewContainer.clear(),this.viewContainer.createEmbeddedView(this.templateRef))},e.prototype.ngOnDestroy=function(){this.componentRef&&this.componentRef.destroy()},e.ctorParameters=function(){return[{type:t.TemplateRef},{type:t.ViewContainerRef},{type:t.ComponentFactoryResolver}]},oe([t.Input()],e.prototype,"sInfoSign",void 0),e=oe([t.Directive({selector:"[sInfoSign]"})],e)}(),Bt=function(){function e(){}return e=oe([t.NgModule({imports:[l.TooltipModule,n.CommonModule],declarations:[zt,Nt],exports:[zt],entryComponents:[Nt]})],e)}(),Vt=function(){function e(){this.id="s-loading-state-"+n.nextId++,this.BLOCK_TIMEOUT_VALUE=300,this.UNBLOCK_TIMEOUT_VALUE=200}var n;return n=e,Object.defineProperty(e.prototype,"loading",{get:function(){return this._loading},set:function(e){this._loading=e,e?this.block():this.unblock()},enumerable:!0,configurable:!0}),e.prototype.block=function(){var e=this;this.unblockTimeoutId&&(clearTimeout(this.unblockTimeoutId),this.unblockTimeoutId=void 0),this.blockTimeoutId||(this.blockTimeoutId=setTimeout((function(){e.blocking=!0,e.blockTimeoutId=void 0}),this.BLOCK_TIMEOUT_VALUE))},e.prototype.unblock=function(){var e=this;this.blockTimeoutId&&(clearTimeout(this.blockTimeoutId),this.blockTimeoutId=void 0),this.unblockTimeoutId||(this.unblockTimeoutId=setTimeout((function(){e.blocking=!1,e.unblockTimeoutId=void 0}),this.UNBLOCK_TIMEOUT_VALUE))},e.prototype.ngOnDestroy=function(){this.blockTimeoutId&&clearTimeout(this.blockTimeoutId),this.unblockTimeoutId&&clearTimeout(this.unblockTimeoutId)},e.nextId=0,oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"blockWindow",void 0),oe([t.Input()],e.prototype,"loading",null),e=n=oe([t.Component({selector:"s-loading-state",template:'<div\n [id]="id"\n class="s-loading-state-container"\n [ngClass]="{\'loading\': loading, \'blocking\': blocking, \'fullscreen\': blockWindow}">\n <div\n [id]="id + \'-loader\'"\n class="loader">\n <div\n [id]="id + \'-spinner\'"\n class="spinner">\n <div class="bounce bounce-1"></div>\n <div class="bounce bounce-2"></div>\n <div class="bounce bounce-3"></div>\n </div>\n <div\n [id]="id + \'-overlay\'"\n class="overlay">\n </div>\n </div>\n <div\n [id]="id + \'-contents\'"\n class="contents">\n <ng-container *ngTemplateOutlet="contents || originalContent"></ng-container>\n <ng-template #originalContent>\n <ng-content></ng-content>\n </ng-template>\n </div>\n</div>',styles:[".s-loading-state-container{position:relative}.s-loading-state-container>.loader{height:100%;opacity:0;position:absolute;transition:opacity .2s ease-out,display .2s ease-out;visibility:hidden;width:100%}.s-loading-state-container>.loader>.overlay{background-color:#fff;height:100%;opacity:.8;transition:opacity .2s ease-out,display .2s ease-out;width:100%}.s-loading-state-container>.loader>.spinner{display:table;left:50%;position:absolute;text-align:center;top:calc(50% - 9px);transform:translate(-50%);vertical-align:middle;z-index:2}.s-loading-state-container.blocking>.loader,.s-loading-state-container.loading>.loader{visibility:visible}.s-loading-state-container.blocking>.loader,.s-loading-state-container.blocking>.loader>.overlay,.s-loading-state-container.loading>.loader,.s-loading-state-container.loading>.loader>.overlay{cursor:wait;z-index:1}.s-loading-state-container.blocking>.contents,.s-loading-state-container.loading>.contents{z-index:0!important}.s-loading-state-container.loading>.loader>.spinner>.bounce{animation:1.2s ease-out infinite bounce;background-color:#333;border-radius:100%;display:inline-block;height:10px;width:10px}.s-loading-state-container.loading>.loader>.spinner>.bounce+.bounce{margin-left:15px}.s-loading-state-container.loading>.loader>.spinner>.bounce.bounce-1{animation-delay:0s}.s-loading-state-container.loading>.loader>.spinner>.bounce.bounce-2{animation-delay:.1s}.s-loading-state-container.loading>.loader>.spinner>.bounce.bounce-3{animation-delay:.2s}.s-loading-state-container.blocking.loading>.loader{opacity:1}.s-loading-state-container.fullscreen>.loader{left:0;position:fixed;top:0;z-index:1005}@keyframes bounce{100%,80%{transform:scale(1)}90%{transform:scale(1.8)}}::ng-deep .s-loading-state-container.loading.blocking s-loading-state .s-loading-state-container>.loader{opacity:0;visibility:hidden}::ng-deep .s-loading-state-container.loading.blocking s-loading-state .s-loading-state-container>.contents{z-index:0!important}"]})],e)}(),Ut=function(){function e(e,t,n,i){this.target=e,this.template=t,this.componentFactoryResolver=n,this.cdr=i,this._loading=!1}return Object.defineProperty(e.prototype,"sLoadingState",{get:function(){return this._loading},set:function(e){this._loading=e,this.loaderComponent&&(this.loaderComponent.instance.loading=e)},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.createComponent()},e.prototype.createComponent=function(){var e=this.componentFactoryResolver.resolveComponentFactory(Vt);this.loaderComponent=this.target.createComponent(e),this.loaderComponent.instance.contents=this.template,this.loaderComponent.instance.loading=this.sLoadingState,this.cdr.detectChanges()},e.prototype.ngOnDestroy=function(){this.loaderComponent.destroy()},e.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.TemplateRef},{type:t.ComponentFactoryResolver},{type:t.ChangeDetectorRef}]},oe([t.Input()],e.prototype,"sLoadingState",null),e=oe([t.Directive({selector:"[sLoadingState]"})],e)}(),Pt=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule],declarations:[Vt,Ut],exports:[Vt,Ut],entryComponents:[Vt]})],e)}(),jt=function(){function e(){this.decimalSeparator=",",this.thousandsSeparator=".",this.precision=2}var n;return n=e,e.prototype.ngOnInit=function(){this.numberRegex="^((\\+?)|(-?))([0-9]{1,3})+((\\"+this.thousandsSeparator+"[0-9]{3,3})|((\\"+this.thousandsSeparator+"[0-9]{3,3})+(\\"+this.thousandsSeparator+"[0-9]{3,3}))|((\\"+this.thousandsSeparator+"[0-9]{3,3})+(\\"+this.decimalSeparator+"[0-9]{1,2}))|(\\"+this.decimalSeparator+"[0-9]{1,"+this.precision+"}))?$"},e.prototype.validate=function(e){return e.value&&!String(e.value).match(new RegExp(this.numberRegex,"g"))?{invalidNumber:!0}:null},oe([t.Input()],e.prototype,"decimalSeparator",void 0),oe([t.Input()],e.prototype,"thousandsSeparator",void 0),oe([t.Input()],e.prototype,"precision",void 0),e=n=oe([t.Directive({selector:"input[sLocalizedNumberInput]",providers:[{provide:u.NG_VALIDATORS,useExisting:t.forwardRef((function(){return n})),multi:!0}]})],e)}(),Ht=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule],declarations:[jt],exports:[jt]})],e)}(),$t=function(){function e(){this.defs={9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z]|[0-9]"}}return e.prototype.transform=function(e,t){for(var n,i=[],o=0,r=t.split(""),a=[],s=t.includes("?"),l=0;l<r.length;l++){var c=r[l];if("?"!=c)if(this.defs[c]){var p=this.defs[c],d=e.charAt(o);if(!new RegExp(p).test(d))throw new Error("Value doesn't match mask format");o<r.length&&(i.push(e.charAt(o)),o++)}else i.push(c),s&&l>n&&a.push(l);else n=l}if(i[i.length-1]!==e.charAt(e.length-1)&&a.length){var u=i.join(""),m=void 0,f=void 0,h=void 0,g=void 0;for(l=0;l<a.length;l++){var b=a[l];m=u.substr(0,b-1),f=u.substr(b-1,1),h=u.substr(b,1),g=u.substr(b+1),u=""+m+h+f+g}return""+u+e.substr(e.length-a.length)}return i.join("")},e=oe([t.Pipe({name:"sMaskFormatter"})],e)}(),Gt=function(){function e(){}return e=oe([t.NgModule({exports:[$t],declarations:[$t]})],e)}(),qt=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.precision=15,t.scale=0,t.decimalSeparator=",",t.thousandsSeparator=".",t.alignTo=y.AlignmentOptions.LEFT,t.allowNegative=!0,t}var i;return ne(n,e),i=n,n.prototype.ngOnInit=function(){this.updateVariables(),e.prototype.ngOnInit.call(this)},n.prototype.ngOnChanges=function(e){!(e.placeholder&&e.placeholder.currentValue)&&this.scale&&(this.placeholder="0"+this.decimalSeparator+"".padEnd(this.scale,"0")),(e.scale||e.decimalSeparator||e.thousandsSeparator||e.alignTo||e.precision||e.allowNegative)&&this.updateVariables()},n.prototype.updateVariables=function(){this.options={align:this.alignTo,decimalSeparator:this.decimalSeparator,thousandsSeparator:this.thousandsSeparator,scale:this.scale||0,prefix:"",suffix:"",allowNegative:this.allowNegative},this.calculateMaxLength()},n.prototype.calculateMaxLength=function(){var e=this.decimalSeparator.length,t=this.thousandsSeparator.length,n=this.precision+(this.scale?e:0);n+=Math.ceil((this.precision-(this.scale?this.scale:0))/3-1)*t,this.maxLength=n},oe([t.Input()],n.prototype,"precision",void 0),oe([t.Input()],n.prototype,"scale",void 0),oe([t.Input()],n.prototype,"decimalSeparator",void 0),oe([t.Input()],n.prototype,"thousandsSeparator",void 0),oe([t.Input()],n.prototype,"alignTo",void 0),oe([t.Input()],n.prototype,"allowNegative",void 0),oe([t.Input(),t.HostBinding("attr.placeholder")],n.prototype,"placeholder",void 0),oe([t.HostBinding("attr.maxLength")],n.prototype,"maxLength",void 0),n=i=oe([t.Directive({selector:"input[sBignumberInput]",providers:[{provide:u.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return i})),multi:!0}]})],n)}(y.CurrencyMaskDirective),Kt=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule],declarations:[qt],exports:[qt]})],e)}(),Wt=function(){function e(e,t){var i=this;this.table=e,this.tableService=t,this.id="s-table-header-checkbox-"+n.nextId++,this.ngUnsubscribe=new r.Subject,this.table.tableService.valueSource$.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(){i.checked=i.updateCheckedState()})),this.table.tableService.selectionSource$.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(){i.checked=i.updateCheckedState()}))}var n;return n=e,e.prototype.ngOnInit=function(){this.checked=this.updateCheckedState()},e.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next()},e.prototype.onFocus=function(){this.hasFocus=!0},e.prototype.onBlur=function(){this.hasFocus=!1},e.prototype.isDisabled=function(){return this.disabled||!this.table.value||!this.table.value.length},e.prototype.onClick=function(){this.disabled||this.table.value&&this.table.value.length>0&&this.onToggleCheckbox(!this.checked)},e.prototype.updateCheckedState=function(){var e;return this.table.filteredValue?(e=this.table.filteredValue)&&e.length>0&&this.table.selection&&this.table.selection.length>0&&this.isAllFilteredValuesChecked():(e=this.table.value)&&e.length>0&&this.table.selection&&this.table.selection.length>0&&this.isAllValuesChecked()},e.prototype.onToggleCheckbox=function(e){var t=this,n=this.table,i=n.filteredValue,o=n.value,r=n.dataKey,a=e?i?i.slice():o.slice():[];if(e){var s=a.filter((function(e){return!t.table._selection.find((function(t){return e[r]===t[r]}))})).map((function(e){if(t.useAllObject)return e;var n={};return t.rowProps?t.rowProps.forEach((function(t){return n[t]=e[t]})):n[r]=e[r],n}));this.table._selection=pe(this.table._selection,s)}else o.forEach((function(e){t.table._selection=t.table._selection.filter((function(t){return t[r]!==e[r]}))}));this.table.updateSelectionKeys(),this.table.selectionChange.emit(this.table._selection),this.tableService.onSelectionChange(),this.table.isStateful()&&this.table.saveState()},e.prototype.isAllFilteredValuesChecked=function(){var e,t;if(this.table.filteredValue){try{for(var n=le(this.table.filteredValue),i=n.next();!i.done;i=n.next()){var o=i.value;if(!this.table.isSelected(o))return!1}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return!0}return!1},e.prototype.isAllValuesChecked=function(){var e,t;if(this.table.value){try{for(var n=le(this.table.value),i=n.next();!i.done;i=n.next()){var o=i.value;if(!this.table.isSelected(o))return!1}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return!0}return!1},e.nextId=0,e.ctorParameters=function(){return[{type:v.Table},{type:v.TableService}]},oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"disabled",void 0),oe([t.Input()],e.prototype,"rowProps",void 0),oe([t.Input()],e.prototype,"useAllObject",void 0),e=n=oe([t.Component({selector:"s-table-header-checkbox",template:'\n <div class="ui-chkbox ui-widget" (click)="onClick()">\n <div class="ui-helper-hidden-accessible">\n <input type="checkbox" [checked]="checked" (focus)="onFocus()" (blur)="onBlur()" [disabled]="isDisabled()">\n </div>\n <div [ngClass]="{\'ui-chkbox-box ui-widget ui-state-default\':true,\n \'ui-state-active\':checked, \'ui-state-disabled\': isDisabled(), \'ui-state-focus\': hasFocus}">\n <span [id]="id" class="ui-chkbox-icon ui-clickable" [ngClass]="{\'pi pi-check\':checked}"></span>\n </div>\n </div>\n '})],e)}(),Yt=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule],exports:[Wt],declarations:[Wt]})],e)}(),Xt=function(){function e(){}return e.prototype.onKeyDown=function(e){switch(e.key){case"Right":case"ArrowRight":this.isRow(e.target)?this.focusFirstColFromCurrentRow(e.target):this.isCol(e.target)&&this.focusNextSelectableCol(e.target),e.preventDefault();break;case"Left":case"ArrowLeft":this.isRow(e.target)?this.focusLastColFromPrevRow(e.target):this.isCol(e.target)&&this.focusPrevSelectableCol(e.target),e.preventDefault();break;case"Up":case"ArrowUp":this.isRow(e.target)?this.setPrevRowFocus(e.target):this.isCol(e.target)&&this.setAboveColFocus(e.target),e.preventDefault();break;case"Down":case"ArrowDown":this.isRow(e.target)?this.setNextRowFocus(e.target):this.isCol(e.target)&&this.setUnderColFocus(e.target),e.preventDefault()}},e.prototype.focusLastColFromPrevRow=function(e){var t=this.findPrevSelectableRow(e);t&&t.lastElementChild.focus()},e.prototype.focusFirstColFromCurrentRow=function(e){var t=e.firstElementChild;t&&t.focus()},e.prototype.focusNextSelectableCol=function(e){var t=e.nextElementSibling;if(!t){var n=e.parentElement;return this.setNextRowFocus(n)}t.focus()},e.prototype.focusPrevSelectableCol=function(e){var t=e.previousElementSibling;if(!t)return e.parentElement.focus();t.focus()},e.prototype.setAboveColFocus=function(e){var t=e.cellIndex,n=e.parentElement,i=this.findPrevSelectableRow(n);i&&i.cells[t].focus()},e.prototype.setUnderColFocus=function(e){var t=e.cellIndex,n=e.parentElement,i=this.findNextSelectableRow(n);i&&i.cells[t].focus()},e.prototype.setNextRowFocus=function(e){var t=this.findNextSelectableRow(e);t&&t.focus()},e.prototype.setPrevRowFocus=function(e){var t=this.findPrevSelectableRow(e);t&&t.focus()},e.prototype.isRow=function(e){return"tr"===e.tagName.toLocaleLowerCase()},e.prototype.isCol=function(e){return"td"===e.tagName.toLocaleLowerCase()},e.prototype.findPrevSelectableRow=function(e){var t=e.previousElementSibling;return t||null},e.prototype.findNextSelectableRow=function(e){var t=e.nextElementSibling;return t||null},oe([t.HostListener("keydown",["$event"])],e.prototype,"onKeyDown",null),e=oe([t.Directive({selector:"[sNavigation]"})],e)}(),Zt=function(e){function n(t){var n=e.call(this,t)||this;return n.dt=t,n}return ne(n,e),n.prototype.onKeydown=function(e){if(this.isEnabled())switch(e.key){case"Enter":this.dt.toggleRow(this.data,e),e.preventDefault();break;default:e.preventDefault()}},n.ctorParameters=function(){return[{type:v.Table}]},oe([t.Input("sRowToggler")],n.prototype,"data",void 0),oe([t.HostListener("keydown",["$event"])],n.prototype,"onKeydown",null),n=oe([t.Directive({selector:"[sRowToggler]"})],n)}(v.RowToggler),Jt=function(){function e(e,n){this.el=e,this.host=n,this.sTableFrozenPosition="left",this.isTableVisible=!1,this.onColumnsChanged=new t.EventEmitter,this.table=n,this.table.styleClass=(this.table.styleClass||"")+" s-table-frozen-position",this.setUpTableEvents(),window.addEventListener("resize",this.handleWindowResize.bind(this));var i=(new Date).getTime(),o=document.getElementsByTagName("head")[0];this.resetRowHeightClassName="resetTableRowsHeight_"+i;var r=document.createElement("style");r.innerHTML="."+this.resetRowHeightClassName+" tbody > tr, ."+this.resetRowHeightClassName+" thead > tr { height: auto; }",o.appendChild(r),this.fixBodyRowClassName="fixTableBodyRowsHeight_"+i,this.styleFixBodyRowHeight=document.createElement("style"),this.styleFixBodyRowHeight.innerHTML="."+this.fixBodyRowClassName+" tbody > tr { height: auto; }",o.appendChild(this.styleFixBodyRowHeight),this.fixHeadRowClassName="fixTableHeadRowsHeight_"+i,this.styleFixHeadRowHeight=document.createElement("style"),this.styleFixHeadRowHeight.innerHTML="."+this.fixHeadRowClassName+" thead > tr { height: auto; }",o.appendChild(this.styleFixHeadRowHeight);var a=document.createElement("style");a.innerHTML=".s-table-frozen-position .ui-table-frozen-view .sds-expanded-row > td { visibility: hidden; }",o.appendChild(a)}return Object.defineProperty(e.prototype,"sTableFrozenValue",{set:function(e){var t=this;setTimeout((function(){t.synchronizeRowHeight(),t.setUpRowResizeMonitoring()}))},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){"left"!==this.sTableFrozenPosition&&(this.applyStylesForTable(),this.setUpColumnMonitoring())},e.prototype.ngAfterContentChecked=function(){!this.isTableVisible&&this.table.el.nativeElement.offsetParent?(this.isTableVisible=!0,this.synchronizeRowHeight()):this.isTableVisible&&!this.table.el.nativeElement.offsetParent&&(this.isTableVisible=!1)},e.prototype.ngOnDestroy=function(){window.removeEventListener("resize",this.handleWindowResize.bind(this)),this.tableHeadObservable&&this.tableHeadObservable.disconnect(),this.rowExpandedObserver&&this.rowExpandedObserver.disconnect()},e.prototype.setUpTableEvents=function(){var e=this;this.table.onColResize.subscribe((function(){e.handleColResize()})),this.table.onRowExpand.subscribe((function(){e.setUpRowResizeMonitoring()}))},e.prototype.setUpRowResizeMonitoring=function(){var e=this;this.rowExpandedObserver&&this.rowExpandedObserver.disconnect(),this.rowExpandedObserver=new window.ResizeObserver((function(){e.applyHeightForExpandedRows()})),setTimeout((function(){var t=e.el.nativeElement.querySelectorAll(".ui-table-frozen-view .sds-expanded-row > td"),n=e.el.nativeElement.querySelectorAll(".ui-table-unfrozen-view .sds-expanded-row > td");t.forEach((function(t,i){var o=n[i],r=o.getBoundingClientRect().height;t.innerHTML='<div style="height: '+r+'px"></div>',t.style.padding="0px",e.rowExpandedObserver.observe(o)}))}))},e.prototype.setUpColumnMonitoring=function(){var e=this;this.tableHeadObservable=new MutationObserver((function(){e.synchronizeRowHeight(),e.onColumnsChanged.emit(null)})),pe(this.el.nativeElement.getElementsByTagName("thead")).forEach((function(t){e.tableHeadObservable.observe(t,{subtree:!0,childList:!0})}))},e.prototype.applyHeightForExpandedRows=function(){var e=this.el.nativeElement.querySelectorAll(".ui-table-frozen-view .sds-expanded-row > td"),t=this.el.nativeElement.querySelectorAll(".ui-table-unfrozen-view .sds-expanded-row > td");e.forEach((function(e,n){var i=t[n].getBoundingClientRect().height,o=e.getBoundingClientRect().height;Math.abs(i-o)>1&&(e.style.height=i+"px",e.innerHTML="<div></div>")}))},e.prototype.applyStylesForTable=function(){var e=this.el.nativeElement.querySelector(".ui-table-scrollable-wrapper");if(e){e.style.display="flex",e.style.flexDirection="row";var t=this.el.nativeElement.querySelector(".ui-table-frozen-view");if(t){t.style.order="1",t.style.borderRight="none",t.style.borderLeft="1px solid #dddddd",t.style.boxShadow="-5px 0 5px -5px #cccccc";var n=this.el.nativeElement.querySelector(".ui-table-unfrozen-view");n?n.style.position="unset":console.warn("Unable to find unfrozen element from table. Is the table configured with frozen template?")}else console.warn("Unable to find frozen element from table. Is the table configured with frozen template?")}else console.warn("Unable to find scroll-wrapper element from table. Is the table configured with frozen template?")},e.prototype.handleWindowResize=function(){this.synchronizeRowHeight()},e.prototype.handleColResize=function(){this.synchronizeRowHeight()},e.prototype.synchronizeRowHeight=function(){var e=pe(this.el.nativeElement.getElementsByClassName("ui-table-scrollable-body")).map((function(e){return pe(e.childNodes).find((function(e){return"TABLE"===e.tagName}))}));this.recalculateDefaultRowHeight(e),this.applyMaxRowHeight(e);var t=pe(this.el.nativeElement.getElementsByClassName("ui-table-scrollable-header-box")).map((function(e){return pe(e.childNodes).find((function(e){return"TABLE"===e.tagName}))}));this.recalculateDefaultRowHeight(t),this.applyMaxRowHeight(t,!0)},e.prototype.recalculateDefaultRowHeight=function(e){var t,n;try{for(var i=le(e),o=i.next();!o.done;o=i.next()){var r=o.value;r.classList.remove(this.fixBodyRowClassName),r.classList.remove(this.fixHeadRowClassName),r.classList.add(this.resetRowHeightClassName)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},e.prototype.applyMaxRowHeight=function(e,t){var n,i,o,r,a,s,l,c;void 0===t&&(t=!1);var p=[];try{for(var d=le(e),u=d.next();!u.done;u=d.next()){var m=u.value;try{for(var f=(o=void 0,le(m.rows)),h=f.next();!h.done;h=f.next()){var g=h.value;g.classList.contains("sds-expanded-row")||p.push(g.getBoundingClientRect().height)}}catch(e){o={error:e}}finally{try{h&&!h.done&&(r=f.return)&&r.call(f)}finally{if(o)throw o.error}}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}if(p.length){var b=Math.max.apply(Math,pe(p));if(t){this.styleFixHeadRowHeight.innerHTML="."+this.fixHeadRowClassName+" thead > tr { height: "+b+"px; }";try{for(var v=le(e),y=v.next();!y.done;y=v.next()){(m=y.value).classList.remove(this.resetRowHeightClassName),m.classList.add(this.fixHeadRowClassName)}}catch(e){a={error:e}}finally{try{y&&!y.done&&(s=v.return)&&s.call(v)}finally{if(a)throw a.error}}}else{this.styleFixBodyRowHeight.innerHTML="."+this.fixBodyRowClassName+" tbody > tr { height: "+b+"px; }";try{for(var x=le(e),w=x.next();!w.done;w=x.next()){(m=w.value).classList.remove(this.resetRowHeightClassName),m.classList.add(this.fixBodyRowClassName)}}catch(e){l={error:e}}finally{try{w&&!w.done&&(c=x.return)&&c.call(x)}finally{if(l)throw l.error}}}}},e.ctorParameters=function(){return[{type:t.ElementRef},{type:v.Table}]},oe([t.Input()],e.prototype,"sTableFrozenPosition",void 0),oe([t.Input()],e.prototype,"sTableFrozenValue",null),e=oe([t.Directive({selector:"[sTableFrozenPosition]"})],e)}(),Qt=new t.InjectionToken("hostProjectConfigs"),en=function(){function e(){}var n;return n=e,e.forRoot=function(e){return{ngModule:n,providers:[{provide:Qt,useValue:e}]}},e=n=oe([t.NgModule({})],e)}();(Lt=e.EnumColumnFieldType||(e.EnumColumnFieldType={})).STRING="STRING",Lt.NUMBER="NUMBER",Lt.BOOLEAN="BOOLEAN",Lt.DATE="DATE",Lt.CURRENCY="CURRENCY",Lt.ENUM="ENUM",Lt.LOOKUP="LOOKUP",Lt.LINK="LINK",Lt.TOKENS="TOKENS",(Mt=e.EnumBadgeColors||(e.EnumBadgeColors={})).RED="sds-semantic-red",Mt.ORANGE="sds-semantic-orange",Mt.YELLOW="sds-semantic-yellow",Mt.GREEN="sds-semantic-green",Mt.BLUE="sds-semantic-blue";var tn,nn,on=function(){function n(e,t,n){this.viewContainerRef=e,this.translate=t,this.hostProjectConfigs=n,this.formattedColumns=[]}return n.prototype.ngOnChanges=function(e){this.validateComponentAttributes(e),this.createColumnsTemplate(e)},n.prototype.validateComponentAttributes=function(e){var t,n,i;if(!(null===(t=e.columns)||void 0===t?void 0:t.currentValue))throw new Error("The 'columns' attribute must be informed!");if(!(null===(n=e.rowValue)||void 0===n?void 0:n.currentValue))throw new Error("The 'rowValue' attribute must be informed!");if(!(null===(i=e.locale)||void 0===i?void 0:i.currentValue))throw new Error("The 'locale' attribute must be informed!")},n.prototype.createColumnsTemplate=function(e){var t=this;this.viewContainerRef.clear();var n=e.columns.currentValue,i=e.rowValue.currentValue,o=e.locale.currentValue;n.forEach((function(e){return t.formattedColumns.push(t.getColumnValue(e,i,o))})),this.viewContainerRef.createEmbeddedView(this.columnsTemplate)},n.prototype.getColumnSeparator=function(e){return e.separator?e.separator:" - "},n.prototype.getTranslationPrefix=function(e){return e.prefix?e.prefix:this.hostProjectConfigs.domain+"."+this.hostProjectConfigs.service+"."},n.prototype.isAttributeValueInvalid=function(e){return null==e||this.isArray(e)&&!e.length},n.prototype.getFormattedColumnValue=function(t,n,i,o,r){return r===t.attributes.length?o:t.type===e.EnumColumnFieldType.TOKENS?[].concat.apply([],n.filter((function(e){return e!==o}))):i},n.prototype.getAttributeValue=function(e,t){var n;return e.split("/").forEach((function(e){n||e.split(".").forEach((function(e,i){t&&(0===i?n=t[e]:n&&(n=n[e]))}))})),n},n.prototype.getNumberConfigs=function(e,t){return ie(ie({},t.number),{scale:null!==e.scale&&void 0!==e.scale?this.getColumnScale(e.scale):t.number.scale,prefix:t.number.currencySymbol+" "})},n.prototype.getDateFormat=function(e,t){return e.dateFormat?e.dateFormat:t.calendar.dateFormat},n.prototype.getColumnValue=function(t,n,i){var o=this,r=this.getTranslationPrefix(t),a=this.getColumnSeparator(t),s=this.translate.instant(r+"empty_label"),l=t.style,c={"sds-badge":!1},p=t.attributes.map((function(a){var l,p=o.getAttributeValue(a,n);if(o.isAttributeValueInvalid(p))return s;var d=o.getNumberConfigs(t,i);switch(t.type){case e.EnumColumnFieldType.ENUM:return(null===(l=t.badgeConfigs)||void 0===l?void 0:l.length)&&(c=o.getBadgeClass(p,t.badgeConfigs)),o.translate.instant(t.enumPrefix+p.toString().toLowerCase());case e.EnumColumnFieldType.CURRENCY:return y.applyMask(p,d,o.isNumber(p));case e.EnumColumnFieldType.DATE:var u=o.getDateFormat(t,i);return w(p).format(u);case e.EnumColumnFieldType.BOOLEAN:var m=p?"yes":"no";return o.translate.instant(r+m);case e.EnumColumnFieldType.NUMBER:return d.prefix="",y.applyMask(p,d,o.isNumber(p));case e.EnumColumnFieldType.TOKENS:return o.getTokens(p);default:return p}})),d=p.join(a),u=d.split(a).filter((function(e){return e===s})).length;return{style:l,columnValue:this.getFormattedColumnValue(t,p,d,s,u),badgeClass:c,separator:a,uninformed:s,type:t.type,tooltip:this.getColumnTooltip(t.tooltip),onLinkClick:t.onLinkClick,onColumnClick:t.onColumnClick}},n.prototype.getBadgeClass=function(e,t){var n,i={"sds-badge":!0};return i[null===(n=t.find((function(t){return t.enumValue===e})))||void 0===n?void 0:n.color.valueOf()]=!0,i},n.prototype.getColumnScale=function(e){return"function"==typeof e?e(this.rowValue):e},n.prototype.getColumnTooltip=function(e){return null!=e?"function"==typeof e?e(this.rowValue):e:""},n.prototype.isNumber=function(e){return!new ee(e).isNaN()},n.prototype.getTokens=function(e){if(!this.isArray(e))throw new Error("To use tokens an array must be informed");if(!this.isValidTokenArray(e))throw new Error("Not a valid token array. Must be a primitive values array or an objects with label attribute array");return this.isLabelObjectArray(e)?e:e.filter((function(e){return null!=e})).map((function(e){return{label:"symbol"==typeof e?e.toString():""+e}}))},n.prototype.isValidTokenArray=function(e){return this.isPrimitiveValuesArray(e)||this.isLabelObjectArray(e)},n.prototype.isPrimitiveValuesArray=function(e){return e.filter((function(e){return e!==Object(e)})).length===e.length},n.prototype.isLabelObjectArray=function(e){return e.filter((function(e){return null!==(null==e?void 0:e.label)&&void 0!==(null==e?void 0:e.label)})).length===e.length},n.prototype.isArray=function(e){return Array.isArray(e)},n.prototype.getSplittedString=function(e){var t=e.columnValue,n=e.separator,i=e.uninformed;if("string"==typeof t){var o=t.split(n);return o.map((function(e,t){var r=o.length-1===t;return{value:e,isUninformed:e===i,separator:r?"":n}}))}return null},n.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:V.TranslateService},{type:void 0,decorators:[{type:t.Inject,args:[Qt]}]}]},oe([t.ViewChild("columnsTemplate",{static:!0})],n.prototype,"columnsTemplate",void 0),oe([t.Input()],n.prototype,"columns",void 0),oe([t.Input()],n.prototype,"rowValue",void 0),oe([t.Input()],n.prototype,"locale",void 0),n=oe([t.Component({template:'\n<ng-template #columnsTemplate>\n <td *ngFor="let column of formattedColumns" [ngStyle]="column.style" (click)="column.onColumnClick ? column.onColumnClick(rowValue) : null">\n\n <div *ngIf="column.type !== \'TOKENS\' || !isArray(column.columnValue); else tokensTemplate">\n\n <span *ngIf="column.type !== \'LINK\'" [pTooltip]="column.tooltip" [escape]="false" [ngClass]="column.badgeClass">\n <ng-container *ngTemplateOutlet="columnValueTemplate"></ng-container> \n </span>\n\n <a *ngIf="column.type === \'LINK\'" [pTooltip]="column.tooltip" [escape]="false" (click)="column.onLinkClick ? column.onLinkClick(rowValue) : null">\n <ng-container *ngTemplateOutlet="columnValueTemplate"></ng-container> \n </a>\n\n <ng-template #columnValueTemplate>\n <span *ngFor="let value of getSplittedString(column)">\n <span [ngClass]="{ \'sds-empty-value\': value.isUninformed }">{{value.value}}</span>\n <span>{{value.separator}}</span>\n </span>\n </ng-template>\n\n </div>\n\n <ng-template #tokensTemplate>\n <s-token-list\n [tokens]="column.columnValue"\n [hidePointerEvents]="true"\n >\n </s-token-list>\n </ng-template>\n\n </td>\n</ng-template>\n',selector:"s-table-columns",styles:[":host{display:none}"]}),re(2,t.Inject(Qt))],n)}(),rn=function(){function e(){this.id="s-token-list-"+n.nextId++,this.removableTokens=!1,this.hidePointerEvents=!1,this.tokenSelected=new t.EventEmitter,this.tokenRemoved=new t.EventEmitter}var n;return n=e,e.nextId=0,oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"tokens",void 0),oe([t.Input()],e.prototype,"removableTokens",void 0),oe([t.Input()],e.prototype,"hidePointerEvents",void 0),oe([t.Output()],e.prototype,"tokenSelected",void 0),oe([t.Output()],e.prototype,"tokenRemoved",void 0),e=n=oe([t.Component({selector:"s-token-list",template:'<div\n [id]="id"\n class="token-list">\n <ng-container *ngFor="let token of tokens">\n <span\n [id]="token.id"\n class="token"\n [ngClass]="{ \'no-pointer-events\': hidePointerEvents }">\n <a\n [id]="(token.id || \'token\') + \'-label\'"\n class="token-label"\n (click)="tokenSelected.next(token)">\n {{ token.label }}\n </a>\n <span\n *ngIf="removableTokens && !token.notRemovable"\n [id]="token.id + \'-remove\'"\n class="token-icon fa fa-fw fa-close"\n (click)="tokenRemoved.next(token)">\n </span>\n </span>\n </ng-container>\n</div>',styles:['.no-pointer-events{pointer-events:none}.token-list{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%;padding:0 10px;text-transform:none}.token-list .token{-ms-flex-align:center;align-items:center;background-color:#ccc;border-radius:4px;color:#333;display:-ms-flexbox;display:flex;font:400 12px/150% "Open Sans",sans-serif;margin:2px 5px 0 0;max-width:100%;padding:2px 8px}.token-list .token-label{max-width:50ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.token-list .token:focus,.token-list .token:hover{background-color:#e5eaea}.token-list .token a{text-decoration:none;color:#333}']})],e)}(),an=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule],declarations:[rn],exports:[rn]})],e)}(),sn=function(){function e(e,t){this.translate=e,this.hostProjectConfigs=t}return e.prototype.ngOnChanges=function(e){this.totalRecordsText=this.translate.instant(this.getTranslatePrefix()+"total_records",{value:e.totalRecords.currentValue})},e.prototype.getTranslatePrefix=function(){return this.hostProjectConfigs.domain+"."+this.hostProjectConfigs.service+"."},e.prototype.getTooltipText=function(){return this.translate.instant(this.getTranslatePrefix()+"export_to_csv")},e.prototype.getActions=function(){var e=this,t=[{id:"exportCurrentPage",label:this.translate.instant(this.getTranslatePrefix()+"export_current_page"),command:function(){return e.exportCurrentPage()}},{id:"exportSelected",label:this.translate.instant(this.getTranslatePrefix()+"export_selected_records"),command:function(){return e.exportSelectedRecords()}}];return this.loadAllRecords&&t.push({id:"exportAll",label:this.translate.instant(this.getTranslatePrefix()+"export_all_records"),command:function(){return e.exportAllRecords()}}),t},e.prototype.validateComponent=function(){if(!this.table)throw new Error("Table component not defined")},e.prototype.getColumnsToExport=function(){return pe(this.table.columns).map((function(e){var t,n={header:e.header,exportable:!0,field:e.field,separator:null!==(t=e.separator)&&void 0!==t?t:" - ",enumPrefix:e.enumPrefix};return!1===e.exportable&&(n.exportable=!1),e.attributes&&e.attributes.length&&(1===e.attributes.length?n.field=e.attributes[0]:n.field=e.attributes),n}))},e.prototype.getCurrentPageRowsToExport=function(e){return this.mapColumnsTranslations(e,this.table.value)},e.prototype.getSelectedRowsToExport=function(e){return this.mapColumnsTranslations(e,this.table.selection)},e.prototype.mapColumnsTranslations=function(e,t){var n=this,i=e.filter((function(e){return e.enumPrefix}));return i.length?pe(t).map((function(e){for(var t=ie({},e),o=function(o){var r=i[o],a=r.field;Array.isArray(a)||(a=[a]),a.forEach((function(i){var o=e[i];if(null!=o){var a=o.toString().toLowerCase(),s=r.enumPrefix+a,l=n.translate.instant(s);s===l&&a.length>1&&(s=r.enumPrefix+a.substring(0,1)+"_"+a.substr(1),l=n.translate.instant(s)),t[i]=l}}))},r=0;r<=i.length-1;r++)o(r);return t})):t},e.prototype.getExportFileName=function(){var e;return(null!==(e=this.exportFileName)&&void 0!==e?e:"download")+"_"+w(new Date).format("DD-MM-YYYY[_]HH:mm")},e.prototype.exportCurrentPage=function(){this.validateComponent();var e=this.getColumnsToExport(),t=this.getCurrentPageRowsToExport(e);At.exportCSV(e,t,void 0,this.getExportFileName())},e.prototype.exportSelectedRecords=function(){this.validateComponent();var e=this.getColumnsToExport(),t=this.getSelectedRowsToExport(e);At.exportCSV(e,t,void 0,this.getExportFileName())},e.prototype.exportAllRecords=function(){return ae(this,void 0,void 0,(function(){var e,t,n;return se(this,(function(i){switch(i.label){case 0:return this.validateComponent(),[4,this.loadAllRecords()];case 1:return e=i.sent(),t=this.getColumnsToExport(),n=this.mapColumnsTranslations(t,e),At.exportCSV(t,n,void 0,this.getExportFileName()),[2]}}))}))},e.ctorParameters=function(){return[{type:V.TranslateService},{type:void 0,decorators:[{type:t.Inject,args:[Qt]}]}]},oe([t.Input()],e.prototype,"totalRecords",void 0),oe([t.Input()],e.prototype,"exportFileName",void 0),oe([t.Input()],e.prototype,"table",void 0),oe([t.Input()],e.prototype,"loadAllRecords",void 0),oe([t.Output()],e.prototype,"totalRecordsText",void 0),e=oe([t.Component({template:'<div class="paging-container">\n <span class="total-records">\n {{totalRecordsText}}\n </span>\n <s-button class="export-button" \n priority="default" \n iconClass="fa fa-fw fa-file-export" \n [disabled]="false" \n [auxiliary]="true" \n [tooltip]="getTooltipText()" \n [model]="getActions()"></s-button>\n</div>\n',selector:"s-table-paging",styles:[".paging-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.export-button{margin-left:6px}"]}),re(1,t.Inject(Qt))],e)}(),ln=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,l.TooltipModule,an,V.TranslateModule,ve],exports:[Zt,Xt,on,Jt,sn],declarations:[Zt,Xt,on,Jt,sn]})],e)}(),cn=function(){function e(){}return oe([t.Input()],e.prototype,"field",void 0),oe([t.Input()],e.prototype,"formControl",void 0),e=oe([t.Component({template:'<div [pTooltip]="field.tooltip" tooltipPosition="top" [appendTo]="field.appendTo || \'body\'" [showDelay]="500">\n <s-lookup\n [id]="(field.id || field.name)"\n [multiple]="field.multiple"\n [formControl]="formControl"\n [placeholder]="field.placeholder"\n [lookupSuggestions]="field.suggestions"\n [dataKey]="field.dataKey"\n (onLookupRequest)="field.onSearch($event)"\n [lookupDisplayField]="field.displayField"\n [showSearch]="false"\n [lookupAppendTo]="field.appendTo"\n (onSelect)="field.onSelect ? field.onSelect($event) : null"\n (onUnselect)="field.onUnselect ? field.onUnselect($event) : null"\n (onClear)="field.onClear ? field.onClear($event) : null"\n (onBlur)="field.onBlur ? field.onBlur($event) : null"\n [lookupEmptyMessage]="field.emptyMessage"\n >\n </s-lookup>\n</div>\n'})],e)}(),pn=function(){function e(){}return e.prototype.onClear=function(){this.formControl.reset()},oe([t.Input()],e.prototype,"field",void 0),oe([t.Input()],e.prototype,"formControl",void 0),e=oe([t.Component({template:'<ng-container *ngIf="field.verticalAlignment;else horizontalAlignment">\n <div class="ui-g">\n <div class="ui-g-12">\n <p-radioButton\n [name]="field.name"\n [value]="true"\n [label]="field.optionsLabel.true"\n [formControl]="formControl"\n [inputId]="(field.id || field.name) + \'-1\'"\n (onClick)="field.onClick ? field.onClick($event) : null"\n (onFocus)="field.onFocus ? field.onFocus($event) : null"\n (onBlur)="field.onBlur ? field.onBlur($event) : null">\n </p-radioButton>\n </div>\n <div class="ui-g-12">\n <p-radioButton\n [name]="field.name"\n [value]="false"\n [label]="field.optionsLabel.false"\n [formControl]="formControl"\n [inputId]="(field.id || field.name) + \'-2\'"\n (onClick)="field.onClick ? field.onClick($event) : null"\n (onFocus)="field.onFocus ? field.onFocus($event) : null"\n (onBlur)="field.onBlur ? field.onBlur($event) : null">\n </p-radioButton>\n </div>\n <div\n *ngIf="!field.showClear && !field.required()"\n class="ui-g-12">\n <p-radioButton \n [name]="field.name"\n [value]="null"\n [label]="field.optionsLabel.empty"\n [formControl]="formControl"\n [inputId]="(field.id || field.name) + \'-3\'"\n (onClick)="field.onClick ? field.onClick($event) : null"\n (onFocus)="field.onFocus ? field.onFocus($event) : null"\n (onBlur)="field.onBlur ? field.onBlur($event) : null">\n </p-radioButton> \n </div>\n <div>\n <s-button\n *ngIf="field.showClear && !field.required() && !formControl.disabled"\n [label]="field.optionsLabel.clear || \'Clear selection\'"\n (onClick)="onClear()"\n priority="link">\n </s-button>\n </div>\n\n </div>\n</ng-container>\n\n<ng-template #horizontalAlignment>\n <div class="ui-g">\n <p-radioButton\n [name]="field.name"\n [value]="true"\n [label]="field.optionsLabel.true"\n [formControl]="formControl"\n [inputId]="(field.id || field.name) + \'-1\'"\n (onClick)="field.onClick ? field.onClick($event) : null"\n (onFocus)="field.onFocus ? field.onFocus($event) : null"\n (onBlur)="field.onBlur ? field.onBlur($event) : null">\n </p-radioButton>\n \n <p-radioButton\n [name]="field.name"\n [value]="false"\n [label]="field.optionsLabel.false"\n [formControl]="formControl"\n [inputId]="(field.id || field.name) + \'-2\'"\n (onClick)="field.onClick ? field.onClick($event) : null"\n (onFocus)="field.onFocus ? field.onFocus($event) : null"\n (onBlur)="field.onBlur ? field.onBlur($event) : null">\n </p-radioButton>\n\n <p-radioButton\n *ngIf="!field.showClear && !field.required()"\n [name]="field.name"\n [value]="null"\n [label]="field.optionsLabel.empty"\n [formControl]="formControl"\n [inputId]="(field.id || field.name) + \'-3\'"\n (onClick)="field.onClick ? field.onClick($event) : null"\n (onFocus)="field.onFocus ? field.onFocus($event) : null"\n (onBlur)="field.onBlur ? field.onBlur($event) : null">\n </p-radioButton>\n\n <s-button\n *ngIf="field.showClear && !field.required() && !formControl.disabled"\n style="margin-left: 40px;"\n [label]="field.optionsLabel.clear || \'Clear selection\'"\n (onClick)="onClear()"\n priority="link">\n </s-button>\n </div>\n</ng-template>\n'})],e)}(),dn=function(){function e(){}return oe([t.Input()],e.prototype,"field",void 0),oe([t.Input()],e.prototype,"formControl",void 0),oe([t.Input()],e.prototype,"showTime",void 0),oe([t.Input()],e.prototype,"timeOnly",void 0),e=oe([t.Component({template:'<div [pTooltip]="field.tooltip" tooltipPosition="top" [showDelay]="500" [appendTo]="field.appendTo || \'body\'">\n \x3c!-- Remover as propriedades [showTransitionOptions] e [hideTransitionOptions] quando atualizar para o PrimeNG v10, esses atributos foram\n usados para remover um bug ocasionado pela animação do componente p-calendar, bug explicado nas issues: #ERPROM-5534, #ERPROM-8248 e #DSN-1045. --\x3e\n\n <p-calendar\n #calendar\n sCalendarMask\n [inputId]="(field.id || field.name)"\n [name]="field.name"\n [showIcon]="true"\n [timeOnly]="timeOnly"\n [selectionMode]="field.selectionMode"\n [rangeSeparator]="field.rangeSeparator"\n [showTime]="showTime"\n [showSeconds]="field.showSeconds"\n [showOnFocus]="field.showOnFocus"\n [formControl]="formControl"\n icon="fa fa-calendar"\n [minDate]="field.minDate"\n [maxDate]="field.maxDate"\n [defaultDate]="field.defaultDate"\n [locale]="field.calendarLocaleOptions"\n [dateFormat]="field.calendarLocaleOptions.dateFormat"\n [hourFormat]="field.calendarLocaleOptions.hourFormat"\n [view]="field.view"\n [placeholder]="field.placeholder"\n inputStyleClass="mousetrap"\n [appendTo]="field.appendTo"\n (onBlur)="field.onBlur ? field.onBlur($event) : null"\n (onFocus)="field.onFocus ? field.onFocus($event): null"\n (onSelect)="field.onSelect ? field.onSelect($event) : null"\n (onClose)="field.onClose ? field.onClose($event) : null"\n (onTodayClick)="field.onTodayClick ? field.onTodayClick($event) : null"\n (onClearClick)="field.onClearClick ? field.onClearClick($event) : null"\n (onMonthChange)="field.onMonthChange ? field.onMonthChange($event) : null"\n (onYearChange)="field.onYearChange ? field.onYearChange($event) : null"\n [showTransitionOptions]="\'0ms\'"\n [hideTransitionOptions]="\'0ms\'"\n ></p-calendar>\n</div>\n'})],e)}(),un=function(){function e(){}return oe([t.Input()],e.prototype,"field",void 0),oe([t.Input()],e.prototype,"formControl",void 0),e=oe([t.Component({template:'<p-chips\n *ngIf="field.keyFilter"\n [inputId]="(field.id || field.name)"\n [formControl]="formControl"\n [placeholder]="field.placeholder"\n [allowDuplicate]="false"\n [addOnTab]="true"\n [addOnBlur]="true"\n (onAdd)="field.onAdd ? field.onAdd($event) : null"\n (onRemove)="field.onRemove ? field.onRemove($event) : null"\n (onChipClick)="field.onChipClick ? field.onChipClick($event) : null"\n (onFocus)="field.onFocus ? field.onFocus($event) : null"\n (onBlur)="field.onBlur ? field.onBlur($event) : null"\n [pKeyFilter]="field.keyFilter">\n</p-chips>\n\n<p-chips\n *ngIf="!field.keyFilter"\n [inputId]="(field.id || field.name)"\n [formControl]="formControl"\n [placeholder]="field.placeholder"\n [allowDuplicate]="false"\n [addOnTab]="true"\n [addOnBlur]="true"\n (onAdd)="field.onAdd ? field.onAdd($event) : null"\n (onRemove)="field.onRemove ? field.onRemove($event) : null"\n (onChipClick)="field.onChipClick ? field.onChipClick($event) : null"\n (onFocus)="field.onFocus ? field.onFocus($event) : null"\n (onBlur)="field.onBlur ? field.onBlur($event) : null">\n</p-chips>\n'})],e)}(),mn=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return ne(n,e),oe([t.Input()],n.prototype,"field",void 0),oe([t.Input()],n.prototype,"formControl",void 0),n=oe([t.Component({template:'<div class="ui-inputgroup">\n <span *ngIf="field.numberLocaleOptions.currencySymbol" class="ui-inputgroup-addon">{{\n field.numberLocaleOptions.currencySymbol\n }}</span>\n\n <input\n *ngIf="!field.mask"\n type="text"\n [id]="(field.id || field.name)"\n [name]="field.name"\n [formControl]="formControl"\n sNumberInput\n [precision]="isFunction(field.precision) ? trigger(field.precision) : field.precision"\n [scale]="isFunction(field.scale) ? trigger(field.scale) : field.scale"\n [decimalSeparator]="field.numberLocaleOptions.decimalSeparator"\n [thousandsSeparator]="field.numberLocaleOptions.thousandsSeparator"\n [alignTo]="field.alignTo"\n [pTooltip]="field.tooltip"\n tooltipPosition="top"\n [placeholder]="field.placeholder"\n [showDelay]="500"\n pInputText\n [autocomplete]="field.browserAutocomplete ? \'on\' : \'off\'"\n [ngClass]="\'mousetrap\'"\n (blur)="field.onBlur ? field.onBlur($event) : null"\n (focus)="field.onFocus ? field.onFocus($event): null"\n />\n\n <p-inputMask\n *ngIf="field.mask"\n type="text"\n [inputId]="(field.id || field.name)"\n [name]="field.name"\n [formControl]="formControl"\n [mask]="field.mask"\n [placeholder]="field.placeholder"\n slotChar="_"\n [pTooltip]="field.tooltip"\n tooltipPosition="top"\n [showDelay]="500"\n styleClass="mousetrap"\n (onBlur)="field.onBlur ? field.onBlur($event) : null"\n (onFocus)="field.onFocus ? field.onFocus($event): null"\n (onComplete)="field.onComplete ? field.onComplete($event) : null"\n (onInput)="field.onInput ? field.onInput($event) : null"\n ></p-inputMask>\n</div>\n'})],n)}(yt),fn=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return ne(n,e),oe([t.Input()],n.prototype,"field",void 0),oe([t.Input()],n.prototype,"formControl",void 0),n=oe([t.Component({template:'<s-file-upload [id]="(field.id || field.name)" [accept]="field.accept" [files]="field.files" [multiple]="field.multiple"\n [chooseLabel]="field.chooseLabel" [removeLabel]="field.removeLabel" [cancelLabel]="field.cancelLabel"\n [successTooltip]="field.successTooltip" (uploadHandler)="field.onUploadFile($event, field)"\n (removeFile)="field.onRemoveFile($event, field)" (cancelUpload)="field.onCancelUpload($event, field)"\n (downloadFile)="field.onDownloadFile($event, field)" [formGroup]="formControl"> \n</s-file-upload>\n'})],n)}(yt),hn=function(){function e(){}return oe([t.Input()],e.prototype,"field",void 0),oe([t.Input()],e.prototype,"formControl",void 0),e=oe([t.Component({template:'<div [pTooltip]="field.tooltip" tooltipPosition="top" [appendTo]="field.appendTo || \'body\'" [showDelay]="500">\n <s-lookup\n [id]="(field.id || field.name)"\n [multiple]="field.multiple"\n [formControl]="formControl"\n [lookupSuggestions]="field.lookupSuggestions"\n [dataKey]="field.dataKey"\n [placeholder]="field.placeholder"\n [searchFields]="field.searchFields"\n [searchGridFields]="field.searchGridFields"\n [searchGridData]="field.gridData"\n (onLookupRequest)="field.onLookupRequest($event)"\n (onSearchRequest)="field.onSearchRequest($event)"\n [lookupDisplayField]="field.lookupDisplayField"\n [searchTotalRecords]="field.searchTotalRecords"\n [searchTotalRecordsLabel]="field.searchTotalRecordsLabel"\n [searchTitle]="field.searchTitle"\n [selectLabel]="field.selectLabel"\n [searchEmptyTitle]="field.searchEmptyTitle"\n [filterLabel]="field.filterLabel"\n [filterTitle]="field.filterTitle"\n [clearLabel]="field.clearLabel"\n [cancelLabel]="field.cancelLabel"\n (onSelect)="field.onSelect($event)"\n (onUnselect)="field.onUnselect($event)"\n (onClear)="field.onClear ? field.onClear($event) : null"\n (onBlur)="field.onBlur ? field.onBlur($event) : null"\n [lookupAppendTo]="field.appendTo"\n [lookupEmptyMessage]="field.emptyMessage"\n [recordLabel]="field.recordLabel"\n [recordsLabel]="field.recordsLabel"\n >\n </s-lookup>\n</div>\n'})],e)}(),gn=function(n){function i(){var e=null!==n&&n.apply(this,arguments)||this;return e.onInput=new t.EventEmitter,e.onFocus=new t.EventEmitter,e.onComplete=new t.EventEmitter,e.ngUnsubscribe=new r.Subject,e}return ne(i,n),i.prototype.ngOnInit=function(){var e=this;this.onFocus.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onFocus&&e.field.onFocus(t)})),this.onInput.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onInput&&e.field.onInput(t)})),this.onComplete.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onComplete&&e.field.onComplete(t)}))},i.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},Object.defineProperty(i.prototype,"numberAlignmentOption",{get:function(){return e.NumberAlignmentOption},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fieldType",{get:function(){return e.FieldType},enumerable:!0,configurable:!0}),oe([t.Input()],i.prototype,"field",void 0),oe([t.Input()],i.prototype,"formControl",void 0),oe([t.Output()],i.prototype,"onInput",void 0),oe([t.Output()],i.prototype,"onFocus",void 0),oe([t.Output()],i.prototype,"onComplete",void 0),i=oe([t.Component({template:'<p-inputMask\n *ngIf="field.mask; else noMask"\n type="text"\n [inputId]="(field.id || field.name)"\n [name]="field.name"\n [mask]="isFunction(field.mask) ? field.mask() : field.mask"\n [placeholder]="field.placeholder"\n slotChar="_"\n [pTooltip]="field.tooltip"\n tooltipPosition="top"\n [showDelay]="500"\n styleClass="mousetrap"\n (onBlur)="field.onBlur ? field.onBlur($event) : null"\n (onFocus)="onFocus.next($event)"\n (onComplete)="onComplete.next($event)"\n (onInput)="onInput.next($event)"\n [formControl]="formControl"\n></p-inputMask>\n\n<ng-template #noMask>\n <ng-container>\n <div class="ui-inputgroup">\n <ng-container *ngIf="field.leftAddon">\n <span class="ui-inputgroup-addon">\n <span *ngIf="field.leftAddon.label">{{field.leftAddon.label}}</span>\n <span *ngIf="!field.leftAddon.label" [ngClass]="field.leftAddon.icon"></span>\n </span>\n </ng-container>\n\n <ng-container *ngTemplateOutlet="field.type === fieldType.Double && field.alignTo === numberAlignmentOption.LEFT ? localizedNumber : input"></ng-container>\n\n <ng-container *ngIf="field.rightAddon">\n <span class="ui-inputgroup-addon">\n <span *ngIf="field.rightAddon.label">{{field.rightAddon.label}}</span>\n <span *ngIf="!field.rightAddon.label" [ngClass]="field.rightAddon.icon"></span>\n </span>\n </ng-container>\n </div>\n </ng-container>\n</ng-template>\n\n<ng-template #input>\n <input\n [id]="(field.id || field.name)"\n type="text"\n [name]="field.name"\n sNumberInput\n [precision]="isFunction(field.precision) ? trigger(field.precision) : field.precision"\n [scale]="isFunction(field.scale) ? trigger(field.scale) : field.scale"\n [decimalSeparator]="field.numberLocaleOptions.decimalSeparator"\n [thousandsSeparator]="field.numberLocaleOptions.thousandsSeparator"\n [alignTo]="field.alignTo"\n [pTooltip]="field.tooltip"\n tooltipPosition="top"\n [placeholder]="field.placeholder"\n [showDelay]="500"\n pInputText\n [autocomplete]="field.browserAutocomplete ? \'on\' : \'off\'"\n [ngClass]="\'mousetrap\'"\n (blur)="field.onBlur ? field.onBlur($event) : null"\n (focus)="onFocus.next($event)"\n [formControl]="formControl"\n />\n</ng-template>\n\n<ng-template #localizedNumber>\n <input\n [id]="(field.id || field.name)"\n type="text"\n [name]="field.name"\n sLocalizedNumberInput\n [precision]="isFunction(field.precision) ? trigger(field.precision) : field.precision"\n [decimalSeparator]="field.numberLocaleOptions.decimalSeparator"\n [thousandsSeparator]="field.numberLocaleOptions.thousandsSeparator"\n [pTooltip]="field.tooltip"\n tooltipPosition="top"\n [placeholder]="field.placeholder"\n [showDelay]="500"\n pInputText\n [autocomplete]="field.browserAutocomplete ? \'on\' : \'off\'"\n [ngClass]="\'mousetrap\'"\n (blur)="field.onBlur ? field.onBlur($event) : null"\n (focus)="onFocus.next($event)"\n [formControl]="formControl"\n />\n</ng-template>\n',encapsulation:t.ViewEncapsulation.None,styles:["s-number-field.ng-dirty.ng-invalid .ui-inputtext{border-color:#c13018}s-number-field.ng-dirty.ng-invalid .ui-inputtext:hover{border-color:#e44328}"]})],i)}(yt),bn=function(){function e(){this.onClick=new t.EventEmitter,this.onFocus=new t.EventEmitter,this.ngUnsubscribe=new r.Subject}return e.prototype.ngOnInit=function(){var e=this;this.onFocus.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onFocus&&e.field.onFocus(t)})),this.onClick.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onClick&&e.field.onClick(t)}))},e.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},oe([t.Input()],e.prototype,"field",void 0),oe([t.Input()],e.prototype,"formControl",void 0),oe([t.Output()],e.prototype,"onClick",void 0),oe([t.Output()],e.prototype,"onFocus",void 0),e=oe([t.Component({template:'<ng-container *ngIf="field.verticalAlignment;else horizontalAlignment">\n <div class="ui-g">\n <div class="ui-g-12" *ngFor="let option of field.options; let i = index">\n <ng-container [ngTemplateOutlet]="radioButton" [ngTemplateOutletContext]="{option: option, index: i}">\n </ng-container>\n </div>\n </div>\n</ng-container>\n\n<ng-template #horizontalAlignment>\n <div class="ui-g">\n <ng-container *ngFor="let option of field.options; let i = index" [ngTemplateOutlet]="radioButton"\n [ngTemplateOutletContext]="{option: option, index: i}">\n </ng-container>\n </div>\n</ng-template>\n\n<ng-template #radioButton let-option="option" let-i="index">\n <p-radioButton [name]="field.name" [value]="option.value" [label]="option.label" [formControl]="formControl"\n [inputId]="(field.id || field.name) + \'-\' + i" [pTooltip]="field.tooltip" (onClick)="onClick.next($event)"\n (onFocus)="onFocus.next($event)" (onBlur)="field.onBlur ? field.onBlur($event) : null">\n </p-radioButton>\n</ng-template>\n'})],e)}(),vn=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return ne(n,e),oe([t.Input()],n.prototype,"field",void 0),oe([t.Input()],n.prototype,"formControl",void 0),n=oe([t.Component({template:'<p-dropdown\n *ngIf="!field.multiple"\n [inputId]="(field.id || field.name)"\n [name]="field.name"\n [options]="isFunction(field.options) ? field.options() : field.options"\n [placeholder]="field.placeholder || \' \'"\n [formControl]="formControl"\n [pTooltip]="field.tooltip"\n tooltipPosition="top"\n [showDelay]="500"\n [showClear]="field.showClear"\n dataKey="{{field.dataKey}}"\n optionLabel="{{field.optionLabel}}"\n [autoDisplayFirst]="field.autoDisplayFirst"\n [appendTo]="field.appendTo || \'body\'"\n (onClick)="field.onClick ? field.onClick($event) : null"\n (onChange)="field.onChange ? field.onChange($event) : null"\n>\n</p-dropdown>\n<p-multiSelect\n *ngIf="field.multiple"\n [formControl]="formControl"\n [name]="field.name"\n [inputId]="(field.id || field.name)"\n [options]="isFunction(field.options) ? field.options() : field.options"\n [defaultLabel]="field.placeholder"\n [pTooltip]="field.tooltip"\n tooltipPosition="top"\n [emptyFilterMessage]="field.emptyMessage || \'Nenhum registro encontrado\'"\n [showDelay]="500"\n [selectedItemsLabel]="field.multipleSelectedLabel"\n [appendTo]="field.appendTo || \'body\'"\n (onClick)="field.onClick ? field.onClick($event) : null"\n (onChange)="field.onChange ? field.onChange($event) : null"\n>\n</p-multiSelect>\n\n'})],n)}(yt),yn=function(){function e(){}return oe([t.Input()],e.prototype,"field",void 0),oe([t.Input()],e.prototype,"formControl",void 0),e=oe([t.Component({template:'<textarea\n [id]="(field.id || field.name)"\n *ngIf="!field.keyFilter"\n pInputTextarea\n [rows]="field.rows"\n [cols]="field.cols"\n [formControl]="formControl"\n style="resize: vertical;"\n [ngStyle]="field.style"\n></textarea>\n<textarea\n [id]="(field.id || field.name)"\n *ngIf="field.keyFilter"\n pInputTextarea\n [rows]="field.rows"\n [cols]="field.cols"\n [formControl]="formControl"\n style="resize: vertical;"\n [pKeyFilter]="field.keyFilter"\n [ngStyle]="field.style"\n></textarea>\n'})],e)}(),xn=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.onInput=new t.EventEmitter,n.onFocus=new t.EventEmitter,n.onComplete=new t.EventEmitter,n.ngUnsubscribe=new r.Subject,n}return ne(n,e),n.prototype.ngOnInit=function(){var e=this;this.onFocus.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onFocus&&e.field.onFocus(t)})),this.onInput.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onInput&&e.field.onInput(t)})),this.onComplete.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onComplete&&e.field.onComplete(t)}))},n.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},oe([t.Input()],n.prototype,"field",void 0),oe([t.Input()],n.prototype,"formControl",void 0),oe([t.Output()],n.prototype,"onInput",void 0),oe([t.Output()],n.prototype,"onFocus",void 0),oe([t.Output()],n.prototype,"onComplete",void 0),n=oe([t.Component({template:'<p-inputMask\n *ngIf="field.mask; else noMask"\n [type]="field.inputType || \'text\'"\n [inputId]="(field.id || field.name)"\n [name]="field.name"\n [mask]="isFunction(field.mask) ? field.mask() : field.mask"\n [placeholder]="field.placeholder"\n slotChar="_"\n [pTooltip]="field.tooltip"\n tooltipPosition="top"\n [showDelay]="500"\n styleClass="mousetrap"\n (onBlur)="field.onBlur ? field.onBlur($event) : null"\n (onFocus)="onFocus.next($event)"\n (onComplete)="onComplete.next($event)"\n (onInput)="onInput.next($event)"\n [formControl]="formControl"\n></p-inputMask>\n\n<ng-template #noMask>\n <ng-container>\n <div class="ui-inputgroup">\n <ng-container *ngIf="field.leftAddon">\n <span class="ui-inputgroup-addon">\n <span *ngIf="field.leftAddon.label">{{field.leftAddon.label}}</span>\n <span *ngIf="!field.leftAddon.label" [ngClass]="field.leftAddon.icon"></span>\n </span>\n </ng-container>\n\n <ng-container *ngTemplateOutlet="field.keyFilter ? inputKeyFilter : input"></ng-container>\n\n <ng-container *ngIf="field.rightAddon">\n <span class="ui-inputgroup-addon">\n <span *ngIf="field.rightAddon.label">{{field.rightAddon.label}}</span>\n <span *ngIf="!field.rightAddon.label" [ngClass]="field.rightAddon.icon"></span>\n </span>\n </ng-container>\n </div>\n </ng-container>\n</ng-template>\n\n<ng-template #input>\n <input\n [type]="field.inputType || \'text\'"\n [id]="(field.id || field.name)"\n [name]="field.name"\n [pTooltip]="field.tooltip"\n tooltipPosition="top"\n [placeholder]="field.placeholder"\n [showDelay]="500"\n [maxLength]="field.maxLength"\n pInputText\n [autocomplete]="field.browserAutocomplete ? \'on\' : \'off\'"\n [ngClass]="\'mousetrap\'"\n (blur)="field.onBlur ? field.onBlur($event) : null"\n (focus)="onFocus.next($event)"\n (input)="onInput.next($event)"\n [formControl]="formControl"\n [ngStyle]="field.style"\n />\n</ng-template>\n\n<ng-template #inputKeyFilter>\n <input\n #inputText\n [type]="field.inputType || \'text\'"\n [id]="(field.id || field.name)"\n [name]="field.name"\n [pTooltip]="field.tooltip"\n tooltipPosition="top"\n [placeholder]="field.placeholder"\n [showDelay]="500"\n [maxLength]="field.maxLength"\n pInputText\n [autocomplete]="field.browserAutocomplete ? \'on\' : \'off\'"\n [ngClass]="\'mousetrap\'"\n (blur)="field.onBlur ? field.onBlur($event) : null"\n (focus)="onFocus.next($event)"\n (input)="onInput.next($event)"\n [pKeyFilter]="field.keyFilter"\n [formControl]="formControl"\n [ngStyle]="field.style"\n />\n</ng-template>\n',encapsulation:t.ViewEncapsulation.None,styles:["s-text-field.ng-dirty.ng-invalid .ui-inputtext{border-color:#c13018}s-text-field.ng-dirty.ng-invalid .ui-inputtext:hover{border-color:#e44328}"]})],n)}(yt),wn=function(){function e(){}return e.prototype.ngOnInit=function(){},e.prototype.getErrorMessages=function(e){return e?this.isFunction(e)?e():e:this.errorMessages},e.prototype.isFunction=function(e){return e instanceof Function},oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"config",void 0),oe([t.Input()],e.prototype,"group",void 0),oe([t.Input()],e.prototype,"errorMessages",void 0),e=oe([t.Component({template:'\n <div class="ui-fluid" [formGroup]="group">\n <div class="ui-g">\n <ng-container *ngFor="let field of config.fields">\n <div [ngClass]="field.gridClass" *ngIf="field.visible()">\n <label\n [for]="field.name"\n [ngClass]="{ \'required\': field.required() }"\n *sInfoSign="field.infoSign"\n >\n {{ field.label }}\n </label>\n <ng-container *sDynamicForm="{ id: id, config: field, group: group}"></ng-container>\n <s-control-errors [form]="group" [control]="group.controls[field.name]"\n [errorMessages]="getErrorMessages(field.errorMessages)"></s-control-errors>\n </div>\n </ng-container>\n </div>\n '})],e)}(),Cn=function(){function e(){}return oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"config",void 0),oe([t.Input()],e.prototype,"group",void 0),oe([t.Input()],e.prototype,"errorMessages",void 0),e=oe([t.Component({selector:"s-fieldset",template:'\n <p-fieldset [toggleable]="true" (onBeforeToggle)="config.beforeToggle ? config.beforeToggle($event) : \'null\'"\n (onAfterToggle)="config.afterToggle ? config.afterToggle($event) : \'null\'">\n <p-header>{{config.header}}</p-header>\n <ng-container *ngFor="let conf of config.configs">\n <ng-container *sDynamicForm="{ id: id, config: conf, group: group, errorMessages: errorMessages }"></ng-container>\n </ng-container>\n </p-fieldset>\n '})],e)}(),_n=function(){function e(){}return oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"config",void 0),oe([t.Input()],e.prototype,"group",void 0),oe([t.Input()],e.prototype,"errorMessages",void 0),e=oe([t.Component({template:'\n <h3 class="sds-section-title">{{config.header}}</h3>\n <ng-container *ngFor="let conf of config.configs">\n <ng-container *sDynamicForm="{ id: id, config: conf, group: group, errorMessages: errorMessages }"></ng-container>\n </ng-container>\n '})],e)}(),In=function(){function e(){}return e.prototype.ngOnInit=function(){},e.prototype.getErrorMessages=function(e){return e?this.isFunction(e)?ie(ie({},this.errorMessages),e()):ie(ie({},this.errorMessages),e):this.errorMessages},e.prototype.isFunction=function(e){return e instanceof Function},oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"fields",void 0),oe([t.Input()],e.prototype,"form",void 0),oe([t.Input()],e.prototype,"errorMessages",void 0),e=oe([t.Component({selector:"s-dynamic-field",template:'\n <div class="ui-fluid" [formGroup]="form">\n <div class="ui-g">\n <ng-container *ngFor="let field of fields">\n <div [ngClass]="field.gridClass" *ngIf="field.visible()">\n <span *ngIf="field.label"><label [for]="field.name"\n [ngClass]="{ \'required\': field.required() }" *sInfoSign="field.infoSign">{{ field.label }}</label></span>\n <ng-container *sDynamicForm="{ id: id, config: field, group: form}"></ng-container>\n <s-control-errors [form]="form" [control]="form.controls[field.name]"\n [errorMessages]="getErrorMessages(field.errorMessages)"></s-control-errors>\n </div>\n </ng-container>\n </div>\n </div>\n '})],e)}();!function(e){e.Row="Row"}(tn||(tn={})),function(e){e.Fieldset="Fieldset",e.Section="Section"}(nn||(nn={}));var kn,Tn=function(n){function i(){var e=null!==n&&n.apply(this,arguments)||this;return e.onInput=new t.EventEmitter,e.onFocus=new t.EventEmitter,e.onComplete=new t.EventEmitter,e.ngUnsubscribe=new r.Subject,e}return ne(i,n),i.prototype.ngOnInit=function(){var e=this;this.onFocus.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onFocus&&e.field.onFocus(t)})),this.onInput.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onInput&&e.field.onInput(t)})),this.onComplete.pipe(a.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onComplete&&e.field.onComplete(t)}))},i.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},Object.defineProperty(i.prototype,"fieldType",{get:function(){return e.FieldType},enumerable:!0,configurable:!0}),oe([t.Input()],i.prototype,"field",void 0),oe([t.Input()],i.prototype,"formControl",void 0),oe([t.Output()],i.prototype,"onInput",void 0),oe([t.Output()],i.prototype,"onFocus",void 0),oe([t.Output()],i.prototype,"onComplete",void 0),i=oe([t.Component({template:'<p-inputMask\n *ngIf="field.mask; else noMask"\n type="text"\n [inputId]="(field.id || field.name)"\n [name]="field.name"\n [mask]="isFunction(field.mask) ? field.mask() : field.mask"\n [placeholder]="field.placeholder"\n slotChar="_"\n [pTooltip]="field.tooltip"\n tooltipPosition="top"\n [showDelay]="500"\n styleClass="mousetrap"\n (onBlur)="field.onBlur ? field.onBlur($event) : null"\n (onFocus)="onFocus.next($event)"\n (onComplete)="onComplete.next($event)"\n (onInput)="onInput.next($event)"\n [formControl]="formControl"\n></p-inputMask>\n\n<ng-template #noMask>\n <ng-container>\n <div class="ui-inputgroup">\n <ng-container *ngIf="field.leftAddon">\n <span class="ui-inputgroup-addon">\n <span *ngIf="field.leftAddon.label">{{field.leftAddon.label}}</span>\n <span *ngIf="!field.leftAddon.label" [ngClass]="field.leftAddon.icon"></span>\n </span>\n </ng-container>\n\n <input\n [id]="(field.id || field.name)"\n type="text"\n [name]="field.name"\n sBignumberInput\n [precision]="isFunction(field.precision) ? trigger(field.precision) : field.precision"\n [scale]="isFunction(field.scale) ? trigger(field.scale) : field.scale"\n [decimalSeparator]="field.numberLocaleOptions.decimalSeparator"\n [thousandsSeparator]="field.numberLocaleOptions.thousandsSeparator"\n [alignTo]="field.alignTo"\n [pTooltip]="field.tooltip"\n tooltipPosition="top"\n [placeholder]="field.placeholder"\n [showDelay]="500"\n pInputText\n [autocomplete]="field.browserAutocomplete ? \'on\' : \'off\'"\n [ngClass]="\'mousetrap\'"\n (blur)="field.onBlur ? field.onBlur($event) : null"\n (focus)="onFocus.next($event)"\n [formControl]="formControl"\n />\n\n <ng-container *ngIf="field.rightAddon">\n <span class="ui-inputgroup-addon">\n <span *ngIf="field.rightAddon.label">{{field.rightAddon.label}}</span>\n <span *ngIf="!field.rightAddon.label" [ngClass]="field.rightAddon.icon"></span>\n </span>\n </ng-container>\n </div>\n </ng-container>\n</ng-template>',encapsulation:t.ViewEncapsulation.None,styles:["s-number-field.ng-dirty.ng-invalid .ui-inputtext{border-color:#c13018}s-number-field.ng-dirty.ng-invalid .ui-inputtext:hover{border-color:#e44328}"]})],i)}(yt),Sn=function(){function e(){}return oe([t.Input()],e.prototype,"field",void 0),oe([t.Input()],e.prototype,"formControl",void 0),e=oe([t.Component({template:'<div class="ui-g">\n <p-inputSwitch [id]="(field.id || field.name)" [name]="field.name" [formControl]="formControl"\n [pTooltip]="field.tooltip" tooltipPosition="top"\n (onChange)="field.onChange ? field.onChange($event) : null">\n </p-inputSwitch>\n</div>'})],e)}(),Fn=function(e){var t=e.group,n=e.errorMessages;this.group=t,this.errorMessages=n},En=function(t){function n(e){var n=e.group,i=e.field,o=e.errorMessages,r=t.call(this,{group:n,errorMessages:o})||this;return r.field=i,r}return ne(n,t),n.prototype.createComponent=function(e,t){var n=e.resolveComponentFactory(this.getComponent()),i=t.createComponent(n);return i.instance.field=this.field,i.instance.formControl=this.group.controls[this.field.name],i.instance.errorMessages=this.errorMessages,this.setVariablesByType(i),i},n.prototype.setVariablesByType=function(t){this.field.type==e.FieldType.Time&&(t.instance.timeOnly=!0),[e.FieldType.LocalDateTime,e.FieldType.DateTime,e.FieldType.Time].includes(this.field.type)&&(t.instance.showTime=!0)},n.prototype.updateVariables=function(e){e.instance.field=this.field,e.instance.formControl=this.group.controls[this.field.name],this.setVariablesByType(e)},n.prototype.getComponent=function(){switch(this.field.type){case e.FieldType.Autocomplete:return cn;case e.FieldType.Binary:case e.FieldType.String:return xn;case e.FieldType.Boolean:return"switch"===this.field.representedBy?Sn:pn;case e.FieldType.Chips:return un;case e.FieldType.Date:case e.FieldType.DateTime:case e.FieldType.LocalDateTime:case e.FieldType.Time:return dn;case e.FieldType.Double:case e.FieldType.Integer:return gn;case e.FieldType.Number:return Tn;case e.FieldType.Enum:return vn;case e.FieldType.Lookup:return hn;case e.FieldType.Money:return mn;case e.FieldType.Radio:return bn;case e.FieldType.Text:return yn;case e.FieldType.Blob:return fn;case e.FieldType.Custom:return this.field.CustomFieldComponentClass;default:throw new Error("Trying to use an unsupported type ("+this.field.type+").")}},n}(Fn),Ln=function(e){function t(t){var n=t.group,i=t.config,o=t.errorMessages,r=e.call(this,{group:n,errorMessages:o})||this;return r.config=i,r}return ne(t,e),t.prototype.createComponent=function(e,t){var n=e.resolveComponentFactory(this.getComponent()),i=t.createComponent(n);return i.instance.config=this.config,i.instance.group=this.group,i},t.prototype.updateVariables=function(e){e.instance.structure=this.config,e.instance.group=this.group},t.prototype.getComponent=function(){switch(this.config.type){case nn.Fieldset:return Cn;case nn.Section:return _n;default:throw new Error("Trying to use an unsupported type ("+this.config.type+").")}},t}(Fn),Mn=function(e){function t(t){var n=t.group,i=t.config,o=t.errorMessages,r=e.call(this,{group:n,errorMessages:o})||this;return r.config=i,r}return ne(t,e),t.prototype.createComponent=function(e,t){var n=e.resolveComponentFactory(this.getComponent()),i=t.createComponent(n);return i.instance.config=this.config,i.instance.group=this.group,i.instance.errorMessages=this.errorMessages,i},t.prototype.updateVariables=function(e){e.instance.config=this.config,e.instance.group=this.group},t.prototype.getComponent=function(){switch(this.config.type){case tn.Row:return wn;default:throw new Error("Trying to use an unsupported type ("+this.config.type+").")}},t}(Fn),On=function(){function n(e,t){this.resolver=e,this.container=t}return Object.defineProperty(n.prototype,"sDynamicForm",{set:function(e){var t=e.id,n=e.config,i=e.group,o=e.errorMessages;this.id=t,this.config=n,this.group=i,this.errorMessages=o},enumerable:!0,configurable:!0}),n.prototype.ngOnInit=function(){if(this.isField())!this.config.id&&this.id&&(this.config.id=this.id+"-"+this.config.name),this.directiveConfig=new En({group:this.group,field:this.config,errorMessages:this.errorMessages});else if(this.isStructure())this.directiveConfig=new Ln({group:this.group,config:this.config,errorMessages:this.errorMessages});else{if(!this.isGrid())throw new Error("Trying to use an unsupported type ("+this.config.type+").");this.directiveConfig=new Mn({group:this.group,config:this.config,errorMessages:this.errorMessages})}this.component=this.directiveConfig.createComponent(this.resolver,this.container),this.component.instance.id=this.id,this.component.instance.errorMessages=this.errorMessages},n.prototype.ngOnChanges=function(){this.component&&(this.directiveConfig.updateVariables(this.component),this.component.instance.errorMessages=this.errorMessages)},n.prototype.isField=function(){return e.FieldType[this.config.type]},n.prototype.isStructure=function(){return nn[this.config.type]},n.prototype.isGrid=function(){return tn[this.config.type]},n.ctorParameters=function(){return[{type:t.ComponentFactoryResolver},{type:t.ViewContainerRef}]},oe([t.Input()],n.prototype,"sDynamicForm",null),n=oe([t.Directive({selector:"[sDynamicForm]"})],n)}(),An=function(){function e(){this.sLongPressDelay=500,this.sLongPress=new t.EventEmitter,this.mouseUp=new r.Subject,this.mouseDown=new r.Subject,this.ngUnsubscribe=new r.Subject}return e.prototype.onMouseUp=function(e){this.mouseUp.next(e)},e.prototype.onMouseDown=function(e){this.mouseDown.next(e)},e.prototype.ngOnInit=function(){var e=this;this.mouseDown.pipe(a.debounceTime(this.sLongPressDelay),a.takeUntil(this.mouseUp),a.repeat(),a.takeUntil(this.ngUnsubscribe)).subscribe((function(t){return e.sLongPress.emit(t)}))},e.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},oe([t.Input()],e.prototype,"sLongPressDelay",void 0),oe([t.Output()],e.prototype,"sLongPress",void 0),oe([t.HostListener("mouseup",["$event"]),t.HostListener("touchend",["$event"])],e.prototype,"onMouseUp",null),oe([t.HostListener("mousedown",["$event"]),t.HostListener("touchstart",["$event"])],e.prototype,"onMouseDown",null),e=oe([t.Directive({selector:"[sLongPress]"})],e)}(),Dn=function(){function e(){this.onDoubleClick=new t.EventEmitter,this._timeout=null,this._DOUBLE_CLICK_DELAY=500}return e.prototype.onClick=function(e){this.handleOnClickEvent(e)},e.prototype.handleOnClickEvent=function(e){var t=this;this._timeout?(this.clearTimeout(),this.onDoubleClick.emit(e)):this._timeout=setTimeout((function(){return t.clearTimeout()}),this._DOUBLE_CLICK_DELAY)},e.prototype.clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},oe([t.Output()],e.prototype,"onDoubleClick",void 0),oe([t.HostListener("click",["$event"])],e.prototype,"onClick",null),e=oe([t.Directive({selector:"[sDoubleClick]"})],e)}(),Rn=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule],declarations:[An,Dn],exports:[An,Dn]})],e)}(),Nn=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,u.FormsModule,u.ReactiveFormsModule,l.TooltipModule,L.InputTextModule,k.CheckboxModule,p.CalendarModule,E.InputMaskModule,S.DropdownModule,rt,Kt,Ht,Ie,Ye,g.AutoCompleteModule,A.MultiSelectModule,I.ButtonModule,ve,R.PanelModule,b.DialogModule,N.RadioButtonModule,v.TableModule,Et,Pt,f.HotkeyModule,T.ChipsModule,xe,M.InputTextareaModule,N.RadioButtonModule,O.KeyFilterModule,F.FieldsetModule,Yt,Rt,ln,Bt,Gt,f.HotkeyModule.forRoot(),Rn,D.InputSwitchModule],declarations:[cn,pn,dn,un,mn,Tt,In,On,Cn,fn,vt,hn,gn,Tn,bn,wn,_n,vn,yn,xn,Sn],exports:[Tt,vt],entryComponents:[cn,pn,dn,un,mn,Cn,fn,hn,gn,Tn,bn,wn,_n,vn,yn,xn,Sn],providers:[f.HotkeysService]})],e)}(),zn=function(){function e(e){this.http=e}return e.prototype.getCustomFields=function(e,t,n,i){var o={entityId:{domain_:e,service_:t,id:n}};return this.http.post(i,o)},e.prototype.getFileLocationUrl=function(e,t){return this.http.post(t,e)},e.prototype.uploadTempFile=function(e,t){return this.http.put(e,t,{reportProgress:!0,observe:"events",headers:{"Content-Type":t.type}})},e.prototype.requestAccess=function(e,t){return this.http.post(t,{objectId:e})},e.prototype.getFile=function(e){return this.http.get(e,{responseType:"blob"})},e.ctorParameters=function(){return[{type:m.HttpClient}]},e=oe([t.Injectable()],e)}();!function(e){e.String="String",e.Boolean="Boolean",e.Integer="Integer",e.Double="Double",e.Date="Date",e.DateTime="DateTime",e.LocalDateTime="LocalDateTime",e.Time="Time",e.Money="Money",e.Blob="Blob",e.Binary="Binary",e.Any="Any",e.Enum="Enum"}(kn||(kn={}));var Bn=w,Vn=function(){function n(e,t,n,i,o){this.customFieldsService=e,this.localeService=t,this.sanitizer=n,this.translateService=i,this.controlContainer=o,this.customFieldsEndpoint="platform/field_customization/queries/getEntity",this.fileLocationEndpoint="platform/field_customization/actions/requestUpload",this.requestAccessEndpoint="platform/field_customization/actions/requestAccess",this.fields=[],this.ready=!1,this.ngUsubscribe=new r.Subject}var i;return i=n,Object.defineProperty(n.prototype,"parentForm",{get:function(){return this.controlContainer.control},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"parentControl",{get:function(){return this.parentForm.get("custom")},enumerable:!0,configurable:!0}),n.prototype.registerOnChange=function(e){var t=this;this.onChange=e,this.formGroup.valueChanges.subscribe((function(){return t.onChange(t.parseFieldsValues())}))},n.prototype.registerOnTouched=function(e){this.onTouched=e},n.prototype.writeValue=function(e){if(this.ready){var t=this.parseValuesForFields(e);this.formGroup.patchValue(t),this.value=t,this.createFilesIfSetFormValuesAfterInit()}else this.formGroup.patchValue(e||{}),this.value=e},n.prototype.setDisabledState=function(e){e?this.formGroup.disable():this.formGroup.enable()},n.prototype.getCustomFields=function(){return this.entityObject&&this.entityObject.entity_?r.of(this.entityObject):this.customFieldsService.getCustomFields(this.domain,this.service,this.entity,this.customFieldsEndpoint)},n.prototype.ngOnInit=function(){var e=this;if(!this.domain)throw new Error("You need to specify the custom-fields domain!");if(!this.service)throw new Error("You need to specify the custom-fields service!");if(!this.entity)throw new Error("You need to specify the custom-fields entity!");this.formGroup=new u.FormGroup({});var t=[this.getCustomFields(),this.localeService.get()];r.forkJoin(t).pipe(a.takeUntil(this.ngUsubscribe),a.finalize((function(){e.formGroup.markAsPristine(),e.parentControl.markAsPristine()}))).subscribe((function(t){var n=ce(t,2),i=n[0],o=n[1],r={};if(r[kn.String]={},r[kn.Boolean]={defaultValue:!1},r[kn.Integer]={},r[kn.Double]={defaultMask:""},r[kn.Money]={},r[kn.Date]={},r[kn.DateTime]={},r[kn.LocalDateTime]={},r[kn.Time]={},r[kn.Blob]={},r[kn.Enum]={},r[kn.Binary]={},r[kn.Any]={},i&&i.entity_){var a=i.entity_,s=a.active,l=a.fields;s&&(l.filter((function(e){return e.customizable&&e.customization&&e.customization.active})).forEach((function(t){var n=e.getFormField(t,o),i=t.type;t.type===kn.Blob&&e.value&&e.value[n.name]&&e.createBlobToFileUpload(n);var a=t.customization.validationRegex,s=[kn.Boolean,kn.Money,kn.Date,kn.DateTime,kn.LocalDateTime,kn.Time],l=[];a&&!s.includes(i)&&l.push(u.Validators.pattern(a)),i!==kn.Integer||n.mask||l.push(u.Validators.pattern(/^\-?\d*$/)),n.required()&&l.push(u.Validators.required);var c=new u.FormControl({value:r[i].defaultValue,disabled:e.formGroup.disabled},l);e.formGroup.addControl(n.name,c),e.fields.push(n)})),e.createFieldCustomization(l),e.formGroup.patchValue(e.parseValuesForFields(e.value)),e.ready=!0)}}))},n.prototype.ngOnDestroy=function(){this.ngUsubscribe.next(),this.ngUsubscribe.complete()},n.prototype.validate=function(){var e=this,t={};return Object.keys(this.formGroup.controls).forEach((function(n){var i=e.formGroup.get(n).errors;i&&(t[n]=i)})),t},n.prototype.parseValuesForFields=function(t){var n=ie({},t);return this.fields.forEach((function(i){var o=i.type,r=i.name,a=t&&t[r];if(o===e.FieldType.Boolean){var s="string"==typeof a,l=!s&&"boolean"!=typeof a;n[r]=l?null:s?"true"===a:a}if(a)switch(o){case e.FieldType.Date:case e.FieldType.DateTime:n[r]=Bn(a).toDate();break;case e.FieldType.LocalDateTime:n[r]=Bn(a,"YYYY-MM-DD[T]HH:mm:ss.SSS").toDate();break;case e.FieldType.Time:n[r]=Bn(a,"HH:mm:ss").toDate()}})),n},n.prototype.createFilesIfSetFormValuesAfterInit=function(){var t=this;this.hasUploaded||this.fields.filter((function(t){return t.type===e.FieldType.Blob})).forEach((function(e){t.formGroup.get(e.name).value&&t.createBlobToFileUpload(e)}))},n.prototype.parseFieldsValues=function(){var t=this,n={};return this.fields.forEach((function(i){var o=i.type,r=i.name,a=i.mask,s=i.scale,l=t.formGroup.get(r).value;if(l)switch(o){case e.FieldType.Number:a&&(l=new ee(l).toFixed(s).toString());break;case e.FieldType.Date:l=Bn(l).format("YYYY-MM-DD");break;case e.FieldType.DateTime:l=Bn(l).format();break;case e.FieldType.LocalDateTime:l=Bn(l).format("YYYY-MM-DD[T]HH:mm:ss.SSS");break;case e.FieldType.Time:l=Bn(l).format("HH:mm:ss")}null===l||Number.isNaN(l)?t.isTypeNumberOrEnum(o)&&(n[r]=i.multiple?[]:null):n[r]=l})),this.hasBlob&&(n.fieldCustomization=this.formGroup.get("fieldCustomization").value),n},n.prototype.isTypeNumberOrEnum=function(t){return[e.FieldType.Number,e.FieldType.Enum].includes(t)},n.prototype.getFormField=function(t,n){var i,o,r;switch(t.type){case kn.Blob:r=this.getBlobParameters();break;case kn.Boolean:r=this.getBooleanParameters();break;case"Enumeration":case kn.Enum:t.type=e.FieldType.Enum,r=this.getEnumParameters(t);break;case kn.Money:r={type:e.FieldType.Number,leftAddon:{label:null!==(o=null===(i=null==n?void 0:n.number)||void 0===i?void 0:i.currencySymbol)&&void 0!==o?o:"R$"}};break;case kn.Double:r={type:e.FieldType.Number};break;case kn.Integer:r={type:e.FieldType.Number,scale:0};break;default:r={}}return new gt(ie({name:t.id,label:t.customization.label,tooltip:t.customization.tooltip,infoSign:t.customization.infoSign,type:t.type,mask:t.customization.mask,required:function(){return t.customization.mandatory},calendarOptions:n.calendar,currencyOptions:n.number},r))},n.prototype.getEnumParameters=function(e){return{showClear:!0,multiple:e.customization.customEnumeration.multiple,options:e.customization.customEnumeration.values.map((function(e){return{label:e.value,value:e.key}}))}},n.prototype.getBooleanParameters=function(){return{optionsLabel:{true:this.getTranslateLabel("true_label"),false:this.getTranslateLabel("false_label"),empty:this.getTranslateLabel("empty_label")}}},n.prototype.getBlobParameters=function(){var e=this;return{size:{sm:12,md:12,lg:12,xl:12},accept:"image/*, application/*, text/*",chooseLabel:this.getTranslateLabel("choose_label"),removeLabel:this.getTranslateLabel("remove_label"),cancelLabel:this.getTranslateLabel("cancel_label"),successTooltip:this.getTranslateLabel("success_tooltip"),multiple:!1,onUploadFile:function(t,n){e.hasUploaded=!0,e.uploadFile(t,n)},onRemoveFile:function(t,n){e.removeFile(t,n)},onCancelUpload:function(t,n){e.cancelUpload(t,n)},onDownloadFile:function(t,n){e.downloadFile(t,n)}}},n.prototype.createFieldCustomization=function(e){this.hasBlob=!!e.filter((function(e){return e.type===kn.Blob})).length,this.hasBlob&&this.formGroup.addControl("fieldCustomization",new u.FormArray([new u.FormGroup({domain:new u.FormControl(this.domain),service:new u.FormControl(this.service),entity:new u.FormControl(this.entity),toDelete:new u.FormControl({value:{},disabled:!1}),toInsert:new u.FormControl({value:{},disabled:!1})})]))},n.prototype.createBlobToFileUpload=function(e){var t=this.value[e.name]?this.value[e.name]:this.formGroup.get(e.name).value,n={name:t.substring(t.lastIndexOf("/")+1),objectId:t,savedFile:!0};e.files=[n]},n.prototype.downloadFile=function(e,t){var n=this,i=e.index,o=e.anchor,r=t.files[i];r.objectURL?o.nativeElement.click():this.customFieldsService.requestAccess(r.objectId,this.requestAccessEndpoint).pipe(a.takeUntil(this.ngUsubscribe)).subscribe((function(e){var s=e.fileName,l=e.uri;n.customFieldsService.getFile(l).pipe(a.takeUntil(n.ngUsubscribe)).subscribe((function(e){var a=new File([e],s);a.objectURL=n.sanitizer.bypassSecurityTrustUrl(l),o.nativeElement.setAttribute("href",l),a.objectId=r.objectId,a.savedFile=!0,t.files[i]=a,t.files=pe(t.files),o.nativeElement.click()}))}))},n.prototype.uploadFile=function(e,t){var n=this,i=e.files,o=this.fields.find((function(e){return e.name===t.name}));o.files&&o.files.length&&this.removeFile({file:o.files[0]},o),o.files=i;for(var s=function(e){var t=i[e];t.savedFile||t.progress||(t.isUploading=!0,l.formGroup.get(o.name).setValidators(function(e){return function(){return e.isUploading?{isUploading:!0}:null}}(t)),l.formGroup.get(o.name).updateValueAndValidity(),l.customFieldsService.getFileLocationUrl({domain:l.domain,service:l.service,entityName:l.entity,field:o.name,fileName:t.name},l.fileLocationEndpoint).pipe(a.takeUntil(l.ngUsubscribe),a.catchError((function(t){return r.of(n.defaltCatchError(o,t,e))}))).subscribe((function(i){var s=i.location,l=i.version,c=i.objectId;t.version=l,t.objectId=c,t.uploadSubscribe=n.customFieldsService.uploadTempFile(s,t).pipe(a.takeUntil(n.ngUsubscribe),a.catchError((function(t){return r.of(n.defaltCatchError(o,t,e))})),a.finalize((function(){t.isUploading=!1}))).subscribe((function(e){var i,r=e.type;if(n.uploadCanceled)n.uploadCanceled&&r===m.HttpEventType.Response&&(n.uploadCanceled=!1);else if(r===m.HttpEventType.UploadProgress)t.progress=100*Math.round(e.loaded/e.total);else if(r===m.HttpEventType.Response){t.objectURL=n.sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(t));var a={objectId:c,name:t.name,version:t.version},s=n.formGroup.get("fieldCustomization").value[0].toInsert;n.formGroup.get("fieldCustomization").value[0].toInsert=ie(ie({},s),((i={})[o.name]=a,i)),n.formGroup.get(o.name).setValue(t.objectId+"/"+t.name),n.formGroup.get(o.name).clearValidators(),n.formGroup.get(o.name).updateValueAndValidity(),o.files=[t]}})),o.files=[t]})))},l=this,c=0;c<i.length;c++)s(c)},n.prototype.removeFile=function(e,t){var n,i=e.file,o=this.fields.find((function(e){return e.name===t.name}));if(o.files=[],i.objectId){var r=i.savedFile?""+i.objectId:i.objectId+"/"+i.name,a=this.formGroup.get("fieldCustomization").value[0].toDelete;delete this.formGroup.get("fieldCustomization").value[0].toInsert[o.name],this.formGroup.get("fieldCustomization").value[0].toDelete=ie(ie({},a),((n={})[o.name]=pe(a[o.name]||[],[r]),n))}this.formGroup.get(o.name).clearValidators(),this.formGroup.get(o.name).setValue(""),this.formGroup.get(o.name).updateValueAndValidity()},n.prototype.cancelUpload=function(e,t){this.uploadCanceled=!0;var n=this.fields.find((function(e){return e.name===t.name}));n.files[e].uploadSubscribe.unsubscribe(),n.files=[],delete this.formGroup.get("fieldCustomization").value[0].toInsert[n.name],this.formGroup.get(n.name).clearValidators(),this.formGroup.get(n.name).setValue(""),this.formGroup.get(n.name).updateValueAndValidity()},n.prototype.defaltCatchError=function(e,t,n){var i,o=e.files;return o[n].error=t,o[n].isUploading=!1,e.files=pe(o),this.formGroup.get(e.name).setValidators([(i=o[n],function(){return i.error?{uploadError:!0}:null})]),this.formGroup.get(e.name).updateValueAndValidity(),r.throwError(new Error("error in upload file. Details: "+t.message))},n.prototype.getTranslateLabel=function(e){return this.translateService.instant(this.domain+"."+this.service+"."+e)},n.ctorParameters=function(){return[{type:zn},{type:Ne},{type:B.DomSanitizer},{type:V.TranslateService},{type:u.ControlContainer,decorators:[{type:t.Optional}]}]},oe([t.Input()],n.prototype,"domain",void 0),oe([t.Input()],n.prototype,"service",void 0),oe([t.Input()],n.prototype,"entity",void 0),oe([t.Input()],n.prototype,"invalidErrorLabel",void 0),oe([t.Input()],n.prototype,"entityObject",void 0),oe([t.Input()],n.prototype,"customFieldsEndpoint",void 0),oe([t.Input()],n.prototype,"fileLocationEndpoint",void 0),oe([t.Input()],n.prototype,"requestAccessEndpoint",void 0),oe([t.Input()],n.prototype,"requiredErrorMessage",void 0),n=i=oe([t.Component({selector:"s-custom-fields",template:'<s-dynamic-form [fields]="fields" [form]="formGroup" [errorMessages]="{pattern: invalidErrorLabel, required: requiredErrorMessage}"></s-dynamic-form>',providers:[{provide:u.NG_VALUE_ACCESSOR,useExisting:i,multi:!0},{provide:u.NG_VALIDATORS,useExisting:i,multi:!0}]}),re(4,t.Optional())],n)}();var Un,Pn=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,u.FormsModule,u.ReactiveFormsModule,m.HttpClientModule,Ye,Nn,V.TranslateModule],declarations:[Vn],exports:[Vn],providers:[zn,V.TranslateService]})],e)}(),jn=function(){function e(){}return e.prototype.ngAfterViewInit=function(){this.table.bindDocumentEditListener=this.bindDocument.bind(this)},e.prototype.isFromOverlayTrigger=function(e){return e.path.some((function(e){return e.className&&e.className.includes("ng-trigger-overlayAnimation")}))},e.prototype.isFromModal=function(e){return e.path.some((function(e){return e.className&&e.className.includes("s-lookup")}))},e.prototype.bindDocument=function(){var e=this;this.table.documentEditListener||(this.table.documentEditListener=function(t){e.isFromOverlayTrigger(t)||e.isFromModal(t)||!e.table.editingCell||e.table.editingCellClick||!e.table.isEditingCellValid()||(c.DomHandler.removeClass(e.table.editingCell,"ui-editing-cell"),e.table.editingCell=null,e.table.unbindDocumentEditListener()),e.table.editingCellClick=!1},document.addEventListener("click",this.table.documentEditListener))},oe([t.Input()],e.prototype,"table",void 0),e=oe([t.Directive({selector:"p-table[sEditableOverlay]"})],e)}(),Hn=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule],declarations:[jn],exports:[jn]})],e)}(),$n=function(){function e(){}return e=oe([t.Component({selector:"s-header",template:"<ng-content></ng-content>"})],e)}(),Gn=function(){function e(){}return e=oe([t.Component({selector:"s-footer",template:"<ng-content></ng-content>"})],e)}(),qn=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule],declarations:[$n,Gn],exports:[$n,Gn]})],e)}(),Kn=function(){function e(){this.id="s-image-cropper-"+n.nextId++,this.visible=!1,this.header="Recortar imagem",this.cropLabel="Recortar",this.selectAnotherLabel="Trocar",this.removeLabel="Remover",this.cancelLabel="Cancelar",this.emptyStateTitle="Selecione uma foto, em seguida você poderá ajustá-la",this.emptyStateActionLabel="Escolher imagem",this.emptyStateIconClass="fa fa-picture-o",this.aspectRatio=NaN,this.rounded=!1,this.allowSelectAnother=!0,this.allowRemove=!0,this.allowCancel=!0,this.visibleChange=new t.EventEmitter,this.changeImage=new t.EventEmitter,this.croppedImage=new t.EventEmitter,this.croppedCanvas=new t.EventEmitter,this.removedImage=new t.EventEmitter,this.cancel=new t.EventEmitter}var n;return n=e,e.prototype.ngOnInit=function(){this.imageSource&&this.initCropper()},e.prototype.ngOnChanges=function(e){e.imageSource&&e.imageSource.currentValue&&this.initCropper()},e.prototype.initCropper=function(){this.cropper&&this.cropper.destroy(),this.image.nativeElement.src=this.imageSource,this.cropper=new U(this.image.nativeElement,{aspectRatio:this.rounded?1:this.aspectRatio,guides:!1,dragMode:"move",minCropBoxHeight:2,minCropBoxWidth:2,toggleDragModeOnDblclick:!1})},e.prototype.getRoundedCanvas=function(e){var t=document.createElement("canvas"),n=t.getContext("2d"),i=e.width,o=e.height;return t.width=i,t.height=o,n.imageSmoothingEnabled=!0,n.drawImage(e,0,0,i,o),n.globalCompositeOperation="destination-in",n.beginPath(),n.arc(i/2,o/2,Math.min(i,o)/2,0,2*Math.PI,!0),n.fill(),t},e.prototype.onCropImage=function(){if(this.imageSource){var e=this.rounded?this.getRoundedCanvas(this.cropper.getCroppedCanvas()):this.cropper.getCroppedCanvas();this.croppedCanvas.emit(e),this.croppedImage.emit(e.toDataURL())}else this.croppedImage.emit(),this.croppedCanvas.emit();this.visibleChange.emit(!1)},e.prototype.onChangeImage=function(){this.changeImage.emit()},e.prototype.onRemoveImage=function(){this.imageSource=void 0,this.removedImage.emit()},e.prototype.onCancel=function(){this.visibleChange.emit(!1),this.cancel.emit()},e.prototype.onModalVisibleChange=function(e){e||this.onCancel(),this.visibleChange.emit(e)},e.nextId=0,oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"visible",void 0),oe([t.Input()],e.prototype,"header",void 0),oe([t.Input()],e.prototype,"cropLabel",void 0),oe([t.Input()],e.prototype,"selectAnotherLabel",void 0),oe([t.Input()],e.prototype,"removeLabel",void 0),oe([t.Input()],e.prototype,"cancelLabel",void 0),oe([t.Input()],e.prototype,"emptyStateTitle",void 0),oe([t.Input()],e.prototype,"emptyStateActionLabel",void 0),oe([t.Input()],e.prototype,"emptyStateIconClass",void 0),oe([t.Input()],e.prototype,"aspectRatio",void 0),oe([t.Input()],e.prototype,"rounded",void 0),oe([t.Input()],e.prototype,"allowSelectAnother",void 0),oe([t.Input()],e.prototype,"allowRemove",void 0),oe([t.Input()],e.prototype,"allowCancel",void 0),oe([t.Input()],e.prototype,"imageSource",void 0),oe([t.Output()],e.prototype,"visibleChange",void 0),oe([t.Output()],e.prototype,"changeImage",void 0),oe([t.Output()],e.prototype,"croppedImage",void 0),oe([t.Output()],e.prototype,"croppedCanvas",void 0),oe([t.Output()],e.prototype,"removedImage",void 0),oe([t.Output()],e.prototype,"cancel",void 0),oe([t.ViewChild("image",{static:!0})],e.prototype,"image",void 0),oe([t.ContentChild($n,{static:!0})],e.prototype,"headerSection",void 0),oe([t.ContentChild(Gn,{static:!0})],e.prototype,"footerSection",void 0),e=n=oe([t.Component({selector:"s-image-cropper",template:'<div [id]="id">\n <p-dialog styleClass="s-image-cropper {{rounded ? \'s-image-cropper--rounded\' : \'\'}}" [header]="headerSection ? \'\' : header"\n [visible]="visible" (visibleChange)="onModalVisibleChange($event)" [modal]="true" [blockScroll]="true"\n [draggable]="false" [resizable]="false" [closeOnEscape]="allowCancel" [closable]="allowCancel" appendTo="body">\n\n <p-header *ngIf="headerSection">\n <ng-content select="s-header"></ng-content>\n </p-header>\n\n <s-empty-state [id]="id + \'-empty-state\'" *ngIf="!imageSource" [title]="emptyStateTitle" [iconClass]="emptyStateIconClass"\n [primaryActionLabel]="emptyStateActionLabel" (primaryAction)="onChangeImage()"></s-empty-state>\n\n <div [attr.data-hidden]="!imageSource" class="image-container">\n <img [id]="id + \'-cropper\'" #image [src]="imageSource || \'\'" />\n </div>\n\n <p-footer>\n <div class="ui-fluid" *ngIf="!footerSection">\n <div class="ui-g button-container">\n\n <div *ngIf="allowCancel" class="ui-sm-12 ui-md-3 ui-lg-2 ui-xl-2">\n <s-button [id]="id + \'-cancel-button\'" type="button" priority="link" [label]="cancelLabel"\n (onClick)="onCancel()"></s-button>\n </div>\n\n <div *ngIf="imageSource && allowRemove" class="ui-sm-12 ui-md-3 ui-lg-2 ui-xl-2">\n <s-button [id]="id + \'-remove-button\'" type="button" priority="secondary" [label]="removeLabel"\n (onClick)="onRemoveImage()"></s-button>\n </div>\n\n <div *ngIf="imageSource && allowSelectAnother" class="ui-sm-12 ui-md-3 ui-lg-2 ui-xl-2">\n <s-button [id]="id + \'-select-another-button\'" type="button" priority="secondary" [label]="selectAnotherLabel"\n (onClick)="onChangeImage()"></s-button>\n </div>\n\n <div class="ui-sm-12 ui-md-3 ui-lg-2 ui-xl-2">\n <s-button [id]="id + \'-crop-button\'" type="button" [label]="cropLabel" (onClick)="onCropImage()"></s-button>\n </div>\n\n </div>\n </div>\n\n <ng-content select="s-footer" *ngIf="footerSection"></ng-content>\n </p-footer>\n </p-dialog>\n</div>',encapsulation:t.ViewEncapsulation.None,styles:['/*!\n * Cropper.js v1.4.1\n * https://fengyuanchen.github.io/cropperjs\n *\n * Copyright 2015-present Chen Fengyuan\n * Released under the MIT license\n *\n * Date: 2018-07-15T09:54:43.167Z\n */.cropper-container{-moz-user-select:none;-ms-touch-action:none;-ms-user-select:none;-webkit-user-select:none;direction:ltr;font-size:0;line-height:0;position:relative;touch-action:none;user-select:none}.cropper-container img{display:block;height:100%;image-orientation:0deg;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.cropper-canvas,.cropper-crop-box,.cropper-drag-box,.cropper-modal,.cropper-wrap-box{bottom:0;left:0;position:absolute;right:0;top:0}.cropper-canvas,.cropper-wrap-box{overflow:hidden}.cropper-drag-box{background-color:#fff;opacity:0}.cropper-modal{background-color:#000;opacity:.5}.cropper-view-box{display:block;height:100%;outline:rgba(51,153,255,.75) solid 1px;overflow:hidden;width:100%}.cropper-dashed{border:0 dashed #eee;display:block;opacity:.5;position:absolute}.cropper-dashed.dashed-h{border-bottom-width:1px;border-top-width:1px;height:33.33333%;left:0;top:33.33333%;width:100%}.cropper-dashed.dashed-v{border-left-width:1px;border-right-width:1px;height:100%;left:33.33333%;top:0;width:33.33333%}.cropper-center{display:block;height:0;left:50%;opacity:.75;position:absolute;top:50%;width:0}.cropper-center:after,.cropper-center:before{background-color:#eee;content:" ";display:block;position:absolute}.cropper-center:before{height:1px;left:-3px;top:0;width:7px}.cropper-center:after{height:7px;left:0;top:-3px;width:1px}.cropper-face,.cropper-line,.cropper-point{display:block;height:100%;opacity:.1;position:absolute;width:100%}.cropper-face{background-color:#fff;left:0;top:0}.cropper-line{background-color:#39f}.cropper-line.line-e{cursor:ew-resize;right:-3px;top:0;width:5px}.cropper-line.line-n{cursor:ns-resize;height:5px;left:0;top:-3px}.cropper-line.line-w{cursor:ew-resize;left:-3px;top:0;width:5px}.cropper-line.line-s{bottom:-3px;cursor:ns-resize;height:5px;left:0}.cropper-point{background-color:#39f;height:5px;opacity:.75;width:5px}.cropper-point.point-e{cursor:ew-resize;margin-top:-3px;right:-3px;top:50%}.cropper-point.point-n{cursor:ns-resize;left:50%;margin-left:-3px;top:-3px}.cropper-point.point-w{cursor:ew-resize;left:-3px;margin-top:-3px;top:50%}.cropper-point.point-s{bottom:-3px;cursor:s-resize;left:50%;margin-left:-3px}.cropper-point.point-ne{cursor:nesw-resize;right:-3px;top:-3px}.cropper-point.point-nw{cursor:nwse-resize;left:-3px;top:-3px}.cropper-point.point-sw{bottom:-3px;cursor:nesw-resize;left:-3px}.cropper-point.point-se{bottom:-3px;cursor:nwse-resize;height:20px;opacity:1;right:-3px;width:20px}@media (min-width:768px){.cropper-point.point-se{height:15px;width:15px}}@media (min-width:992px){.cropper-point.point-se{height:10px;width:10px}}@media (min-width:1200px){.cropper-point.point-se{height:5px;opacity:.75;width:5px}}.cropper-point.point-se:before{background-color:#39f;bottom:-50%;content:" ";display:block;height:200%;opacity:0;position:absolute;right:-50%;width:200%}.cropper-invisible{opacity:0}.cropper-bg{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC)}.cropper-hide{display:block;height:0;position:absolute;width:0}.cropper-hidden{display:none!important}.cropper-move{cursor:move}.cropper-crop{cursor:crosshair}.cropper-disabled .cropper-drag-box,.cropper-disabled .cropper-face,.cropper-disabled .cropper-line,.cropper-disabled .cropper-point{cursor:not-allowed}','.s-image-cropper{border-radius:0!important;top:10%!important;height:80%!important;max-width:100%!important;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:column;flex-direction:column}.s-image-cropper .ui-dialog-content{overflow:hidden;height:auto!important;-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.s-image-cropper .ui-dialog-footer,.s-image-cropper .ui-dialog-header{-ms-flex-negative:0;flex-shrink:0;direction:ltr}.s-image-cropper .image-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%}.s-image-cropper img{max-width:100%;max-height:100%}.s-image-cropper .button-container{-ms-flex-flow:wrap-reverse;flex-flow:wrap-reverse;-ms-flex-pack:end;justify-content:flex-end}.s-image-cropper .cropper-view-box{outline:#fff dashed 2px}.s-image-cropper .cropper-line{opacity:0}.s-image-cropper .cropper-point{background-color:#fff;opacity:1;height:15px;width:15px;border-radius:50%}.s-image-cropper .cropper-point.point-e{right:-8.5px;top:calc(50% - 4.5px)}.s-image-cropper .cropper-point.point-n{top:-8.5px;left:calc(50% - 4.5px)}.s-image-cropper .cropper-point.point-w{left:-8.5px;top:calc(50% - 4.5px)}.s-image-cropper .cropper-point.point-s{bottom:-8.5px;left:calc(50% - 4.5px)}.s-image-cropper .cropper-point.point-ne{right:-8.5px;top:-8.5px}.s-image-cropper .cropper-point.point-nw{left:-8.5px;top:-8.5px}.s-image-cropper .cropper-point.point-sw{left:-8.5px;bottom:-8.5px}.s-image-cropper .cropper-point.point-se{right:-8.5px;bottom:-8.5px}.s-image-cropper--rounded .cropper-face,.s-image-cropper--rounded .cropper-view-box{border-radius:50%}.s-image-cropper--rounded .cropper-view-box{outline:rgba(255,255,255,.3) dashed 1px}.s-image-cropper--rounded .cropper-view-box:after{border:2px dashed #fff;border-radius:50%;content:"";height:100%;left:0;position:absolute;top:0;width:100%}@media (max-width:767px){.s-image-cropper{border:none!important;top:0!important;left:0!important;width:100%!important;height:100%!important}}@media (min-width:768px){.s-image-cropper{left:10%!important;width:80%!important}}@media (min-width:1200px){.s-image-cropper{left:20%!important;width:60%!important}}']})],e)}(),Wn=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,b.DialogModule,ve,Et,qn],declarations:[Kn],exports:[Kn,qn],entryComponents:[Kn]})],e)}(),Yn=function(){function e(e,t,n){this.componentFactoryResolver=e,this.appRef=t,this.injector=n}return e.prototype.show=function(e){var t=this;this.activeCropper&&this.destroy(this.activeCropper);var n={componentRef:this.componentFactoryResolver.resolveComponentFactory(Kn).create(this.injector),ngUnsubscribe:new r.Subject};this.activeCropper=n,this.appRef.attachView(n.componentRef.hostView);var i=n.componentRef.hostView.rootNodes[0];document.body.appendChild(i),this.configureInstance(n,e),n.componentRef.instance.visible=!0,n.componentRef.instance.visibleChange.pipe(a.takeUntil(this.activeCropper.ngUnsubscribe),a.delay(1e3)).subscribe((function(e){e||t.destroy(n)}))},e.prototype.configureInstance=function(e,t){var n=e.componentRef.instance;t&&Object.keys(t).forEach((function(i){var o=t[i];"function"!=typeof o?n[i]=o:"function"==typeof o&&n[i].pipe(a.takeUntil(e.ngUnsubscribe)).subscribe((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t[i].apply(t,pe(e))}))})),n.visibleChange.pipe(a.takeUntil(e.ngUnsubscribe)).subscribe((function(e){return n.visible=e}))},e.prototype.destroy=function(e){e.ngUnsubscribe.next(),e.ngUnsubscribe.complete(),this.appRef.detachView(e.componentRef.hostView),e.componentRef.destroy()},e.ctorParameters=function(){return[{type:t.ComponentFactoryResolver},{type:t.ApplicationRef},{type:t.Injector}]},e=oe([t.Injectable()],e)}();(Un=e.ThumbnailSize||(e.ThumbnailSize={})).Small="small",Un.Medium="medium",Un.Large="large";var Xn,Zn=function(){function e(){}return e.prototype.getBinaryFile=function(e){var t=this;return new Promise((function(n){var i=t.getOrientation.bind(t),o=new XMLHttpRequest;o.addEventListener("load",(function(){if(4===o.readyState&&(200==o.status||0===o.status)){var e=i(o.response);o=null,n(e)}})),o.addEventListener("error",(function(){throw o=null,new Error("Não foi possível carregar a imagem")})),o.open("GET",e.src,!0),o.responseType="arraybuffer",o.send(null)}))},e.prototype.getOrientation=function(e){var t=new DataView(e);if(65496!=t.getUint16(0,!1))return-2;for(var n=t.byteLength,i=2;i<n;){var o=t.getUint16(i,!1);if(i+=2,65505==o){if(1165519206!=t.getUint32(i+=2,!1))return-1;var r=18761==t.getUint16(i+=6,!1);i+=t.getUint32(i+4,r);var a=t.getUint16(i,r);i+=2;for(var s=0;s<a;s++)if(274==t.getUint16(i+12*s,r))return t.getUint16(i+12*s+8,r)}else{if(65280!=(65280&o))break;i+=t.getUint16(i,!1)}}return-1},e=oe([t.Injectable()],e)}(),Jn=function(){function n(t){this.thumbnailService=t,this.fallback=!1,this.id="s-thumbnail-"+i.nextId++,this.size=e.ThumbnailSize.Medium,this.iconClass="far fa-image",this.hasAction=!1,this.actionIconClass="fas fa-camera",this.isTile=!1,this.isBrand=!1,this.ngUnsubscribe=new r.Subject}var i;return i=n,n.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},n.prototype.ngAfterViewInit=function(){var e=this;this.imgEl&&this.imgEl.nativeElement.addEventListener("load",(function(){r.from(e.thumbnailService.getBinaryFile(e.imgEl.nativeElement)).pipe(a.takeUntil(e.ngUnsubscribe)).subscribe((function(t){return e.orientation=t}))}))},n.nextId=0,n.ctorParameters=function(){return[{type:Zn}]},oe([t.ViewChild("img",{static:!1})],n.prototype,"imgEl",void 0),oe([t.Input()],n.prototype,"id",void 0),oe([t.Input()],n.prototype,"size",void 0),oe([t.Input()],n.prototype,"imageSource",void 0),oe([t.Input()],n.prototype,"imageFallback",void 0),oe([t.Input()],n.prototype,"imageAlt",void 0),oe([t.Input()],n.prototype,"iconClass",void 0),oe([t.Input()],n.prototype,"hasAction",void 0),oe([t.Input()],n.prototype,"actionIconClass",void 0),oe([t.Input()],n.prototype,"isTile",void 0),oe([t.Input()],n.prototype,"isBrand",void 0),n=i=oe([t.Component({selector:"s-thumbnail",template:'<div [id]="id" class="thumbnail-container thumbnail-container--{{size}}" [ngClass]="{\'thumbnail-container--with-action\': hasAction, \'thumbnail-container--brand\': isBrand}">\n <div [id]="id + \'-image-container\'" *ngIf="imageSource || imageFallback" class="image-container" [ngClass]="{\'image-container--rounded\': !isBrand}">\n <img #img [id]="id + \'-image\'" (error)="fallback = true" [src]="imageSource"\n [alt]="imageAlt" *ngIf="!fallback" [ngClass]="{\n \'smallThumbnail\': isTile,\n \'exif-orientation-2\': orientation == 2,\n \'exif-orientation-3\': orientation == 3,\n \'exif-orientation-4\': orientation == 4,\n \'exif-orientation-5\': orientation == 5,\n \'exif-orientation-6\': orientation == 6,\n \'exif-orientation-7\': orientation == 7,\n \'exif-orientation-8\': orientation == 8\n }"/>\n\n <img #img [id]="id + \'-image-fallback\'" (error)="imageFallback = undefined" [src]="imageFallback"\n [alt]="imageAlt" *ngIf="fallback && imageFallback" [ngClass]="{\n \'smallThumbnail\': isTile,\n \'exif-orientation-2\': orientation == 2,\n \'exif-orientation-3\': orientation == 3,\n \'exif-orientation-4\': orientation == 4,\n \'exif-orientation-5\': orientation == 5,\n \'exif-orientation-6\': orientation == 6,\n \'exif-orientation-7\': orientation == 7,\n \'exif-orientation-8\': orientation == 8\n }"/>\n\n <i *ngIf="fallback && !imageFallback" ngClass="far fa-image" class="fallback-img-color"></i>\n </div>\n <div [id]="id + \'-action-icon-container\'" *ngIf="hasAction" class="action-icon-container action-icon-container--{{size}}">\n <span [id]="id + \'-action-icon\'" [class]="actionIconClass" aria-hidden="true"></span>\n </div>\n <div [id]="id + \'-icon-container\'" *ngIf="!imageSource && !imageFallback" class="icon-container icon-container--{{size}}" [ngClass]="{\'image-container--rounded\': !isBrand}">\n <span [id]="id + \'-icon\'" [class]="iconClass" aria-hidden="true"></span>\n </div>\n\n <ng-content></ng-content>\n</div>\n',styles:[":host{display:inline-block}.thumbnail-container{color:#fff;position:relative;text-align:center}.thumbnail-container--large{font-size:50px;height:100px;width:100px}.thumbnail-container--large.thumbnail-container--brand{width:200px}.thumbnail-container--medium{font-size:40px;height:70px;width:70px}.thumbnail-container--medium.thumbnail-container--brand{width:140px}.thumbnail-container--small{font-size:22px;height:40px;width:40px}.thumbnail-container--small.thumbnail-container--brand{width:80px}.thumbnail-container--with-action{cursor:pointer}.action-icon-container{background-color:#428bca;border-radius:50%;bottom:0;position:absolute;right:0}.action-icon-container--large,.action-icon-container--medium{font-size:10pt;height:25px;padding:3px;width:25px}.action-icon-container--small{font-size:6pt;height:16px;padding:2px;width:16px}.icon-container,.image-container{-ms-flex-align:center;align-items:center;height:100%;overflow:hidden;width:100%}.icon-container--rounded,.image-container--rounded{border-radius:50%}.smallThumbnail{height:40px!important}.icon-container{background-color:#ccc;color:#fff}.icon-container--large{line-height:98px}.icon-container--medium{line-height:68px}.icon-container--small{line-height:38px}.image-container{-ms-flex-align:center;align-items:center;background-color:#ccc;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.image-container img{width:100%}.image-container img.exif-orientation-2{transform:rotateY(180deg)}.image-container img.exif-orientation-3{transform:rotate(180deg)}.image-container img.exif-orientation-4{transform:rotate(180deg) rotateY(180deg)}.image-container img.exif-orientation-5{transform:rotate(270deg) rotateY(180deg)}.image-container img.exif-orientation-6{transform:rotate(90deg)}.image-container img.exif-orientation-7{transform:rotate(90deg) rotateY(180deg)}.image-container img.exif-orientation-8{transform:rotate(270deg)}.fallback-img-color{color:#fff}"]})],n)}(),Qn=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule],declarations:[Jn],exports:[Jn],providers:[Zn]})],e)}(),ei=function(){function e(){this.id="s-object-card-field-"+n.nextId++,this.buttonClick=new t.EventEmitter}var n;return n=e,e.nextId=0,oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"imageSource",void 0),oe([t.Input()],e.prototype,"imageAlt",void 0),oe([t.Input()],e.prototype,"iconClass",void 0),oe([t.Input()],e.prototype,"label",void 0),oe([t.Input()],e.prototype,"description",void 0),oe([t.Input()],e.prototype,"buttonLabel",void 0),oe([t.Input()],e.prototype,"buttonModel",void 0),oe([t.Output()],e.prototype,"buttonClick",void 0),oe([t.ContentChild(Jn,{static:!0})],e.prototype,"thumbnailComponent",void 0),oe([t.ViewChild(t.TemplateRef,{static:!0})],e.prototype,"content",void 0),e=n=oe([t.Component({selector:"s-object-card-field",template:'<ng-template>\n <div class="container">\n <ng-content select="s-thumbnail"></ng-content>\n <s-thumbnail\n [id]="id + \'-thumbnail\'"\n *ngIf="!thumbnailComponent && (imageSource || iconClass)"\n [imageSource]="imageSource"\n [imageAlt]="imageAlt || label"\n [iconClass]="iconClass"\n size="small"\n ></s-thumbnail>\n\n <div class="info-container">\n <div #labelTemplate><ng-content select="[labelTemplate]"></ng-content></div>\n <span\n [id]="id + \'-label\'"\n *ngIf="!labelTemplate.children.length"\n class="label"\n [pTooltip]="label"\n tooltipPosition="top"\n showDelay="500"\n >{{ label }}</span\n >\n\n <div #descriptionTemplate><ng-content select="[descriptionTemplate]"></ng-content></div>\n <span\n [id]="id + \'-description\'"\n *ngIf="!descriptionTemplate.children.length"\n class="description"\n [pTooltip]="description"\n tooltipPosition="top"\n showDelay="500"\n >{{ description }}</span\n >\n\n <s-button\n [id]="id + \'-button\'"\n *ngIf="buttonLabel"\n styleClass="object-card-button"\n priority="link"\n [label]="buttonLabel"\n [model]="buttonModel"\n size="small"\n (onClick)="buttonClick.emit($event)"\n ></s-button>\n </div>\n </div>\n</ng-template>\n',styles:[".container{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:100%}.info-container{margin-left:10px}.info-container,.info-container span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.info-container .label{color:#999;display:block}.info-container .description{display:block}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.info-container{-ms-flex:1;flex:1}}@media (max-width:767px){.info-container,.info-container span{white-space:normal}}.info-container:only-child{margin-left:0}"]})],e)}(),ti=function(){function n(){this.id="s-object-card-main-"+i.nextId++,this.iconClass="fa fa-picture-o",this.hasThumbnail=!0,this.hasDescription=!0,this.isBrand=!1,this.buttonClick=new t.EventEmitter,this._thumbnailSize=e.ThumbnailSize.Medium}var i;return i=n,Object.defineProperty(n.prototype,"thumbnailSize",{get:function(){return this._thumbnailSize},set:function(e){this._thumbnailSize=e,this.thumbnailComponent&&(this.thumbnailComponent.size=e)},enumerable:!0,configurable:!0}),n.prototype.onResize=function(){this.update()},n.prototype.ngAfterContentInit=function(){this.update()},n.prototype.update=function(){var t=window.innerWidth;this.thumbnailSize=t<=Ot.SM_MAX?e.ThumbnailSize.Small:e.ThumbnailSize.Medium},n.nextId=0,oe([t.Input()],n.prototype,"id",void 0),oe([t.Input()],n.prototype,"imageSource",void 0),oe([t.Input()],n.prototype,"imageFallback",void 0),oe([t.Input()],n.prototype,"imageAlt",void 0),oe([t.Input()],n.prototype,"iconClass",void 0),oe([t.Input()],n.prototype,"hasThumbnail",void 0),oe([t.Input()],n.prototype,"hasDescription",void 0),oe([t.Input()],n.prototype,"isBrand",void 0),oe([t.Input()],n.prototype,"label",void 0),oe([t.Input()],n.prototype,"description",void 0),oe([t.Input()],n.prototype,"buttonLabel",void 0),oe([t.Input()],n.prototype,"buttonModel",void 0),oe([t.Output()],n.prototype,"buttonClick",void 0),oe([t.ContentChild(Jn,{static:!0})],n.prototype,"thumbnailComponent",void 0),oe([t.HostListener("window:resize")],n.prototype,"onResize",null),n=i=oe([t.Component({selector:"s-object-card-main",template:'<ng-container *ngIf="hasThumbnail">\n <ng-content select="s-thumbnail"></ng-content>\n <s-thumbnail\n [id]="id + \'-thumbnail\'"\n [imageSource]="imageSource"\n [imageFallback]="imageFallback"\n [imageAlt]="imageAlt || label"\n [iconClass]="iconClass"\n [size]="thumbnailSize"\n *ngIf="!thumbnailComponent"\n [isBrand]="isBrand"\n ></s-thumbnail>\n</ng-container>\n\n<ng-container *ngIf="hasDescription">\n <div class="info-container">\n <div #labelTemplate><ng-content select="[labelTemplate]"></ng-content></div>\n <span\n [id]="id + \'-label\'"\n *ngIf="!labelTemplate.children.length"\n class="label"\n [pTooltip]="label"\n tooltipPosition="top"\n showDelay="500"\n >{{ label }}</span\n >\n\n <div #descriptionTemplate><ng-content select="[descriptionTemplate]"></ng-content></div>\n <span\n [id]="id + \'-description\'"\n *ngIf="!descriptionTemplate.children.length"\n class="description"\n [pTooltip]="description"\n tooltipPosition="top"\n showDelay="500"\n >{{ description }}</span\n >\n <s-button\n [id]="id + \'-button\'"\n *ngIf="buttonLabel"\n styleClass="object-card-button"\n priority="link"\n [label]="buttonLabel"\n [model]="buttonModel"\n size="small"\n (onClick)="buttonClick.emit($event)"\n ></s-button>\n </div>\n</ng-container>\n',styles:[":host{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;min-height:70px}.info-container{margin-left:10px;-ms-flex:1;flex:1}.info-container,.info-container span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.info-container .label{display:block;font-weight:700}.info-container .description{color:#999;display:block}@media (max-width:767px){.info-container,.info-container span{white-space:normal}}"]})],n)}(),ni=P,ii=function(){function e(e,i){this.cdr=e,this.elementRef=i,this.id="s-object-card-"+n.nextId++,this.expanded=!1,this.expandTooltip="Abrir painel",this.collapseTooltip="Fechar painel",this.fieldsMinWidth=200,this.expandedChange=new t.EventEmitter,this.maxVisibleFields=0}var n;return n=e,e.prototype.ngAfterViewInit=function(){var e=this;this.update(),this.cdr.detectChanges(),this.fields.changes.subscribe((function(){e.update()})),ni({strategy:"scroll"}).listenTo(this.elementRef.nativeElement,(function(){return e.update()}))},e.prototype.update=function(){var e,t,n,i=window.innerWidth,o=this.elementRef.nativeElement.offsetWidth,r=.3*o>260?.3*o:260,a=this.fieldsMinWidth,s=this.elementRef.nativeElement.getElementsByClassName("s-object-card-field");try{for(var l=le(s),c=l.next();!c.done;c=l.next()){c.value.style.minWidth=this.fieldsMinWidth+"px"}}catch(t){e={error:t}}finally{try{c&&!c.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}(n=i<=Ot.SM_MAX?0:Math.floor((o-r)/a))&&n<this.fields.length&&(n=Math.floor((o-r-50)/a)),this.maxVisibleFields=n,n>=this.fields.length&&this.expanded&&this.collapse()},e.prototype.toggle=function(){this.expanded?this.collapse():this.expand()},e.prototype.expand=function(){this.expanded=!0,this.expandedChange.emit(this.expanded)},e.prototype.collapse=function(){this.expanded=!1,this.expandedChange.emit(this.expanded)},e.prototype.getExpandedFieldWidth=function(){var e=this.elementRef.nativeElement.offsetWidth;return 12/(e<=Ot.SM_MAX?1:e<=Ot.MD_MAX?2:e<=Ot.LG_MAX?4:6)},e.nextId=0,e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef}]},oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"expanded",void 0),oe([t.Input()],e.prototype,"expandTooltip",void 0),oe([t.Input()],e.prototype,"collapseTooltip",void 0),oe([t.Input()],e.prototype,"fieldsMinWidth",void 0),oe([t.Output()],e.prototype,"expandedChange",void 0),oe([t.ContentChild(ti,{static:!0})],e.prototype,"main",void 0),oe([t.ContentChildren(ei,{descendants:!0})],e.prototype,"fields",void 0),e=n=oe([t.Component({selector:"s-object-card",template:'<div [id]="id" class="container">\n <div\n [id]="id + \'-main-container\'"\n class="main-container"\n [ngClass]="{\n \'with-hidden-fields\': fields.length > maxVisibleFields,\n \'with-visible-fields\': fields.length && maxVisibleFields\n }"\n >\n <div class="object-content">\n <div class="s-object-card-main"><ng-content select="s-object-card-main"></ng-content></div>\n\n <div class="divider" *ngIf="maxVisibleFields && fields.length"></div>\n\n <div *ngFor="let field of (fields.toArray() | slice: 0:maxVisibleFields)" class="s-object-card-field">\n <ng-container *ngTemplateOutlet="field.content"></ng-container>\n </div>\n </div>\n\n <div\n [id]="id + \'-expand-icon-container\'"\n class="expand-icon-container"\n (click)="toggle()"\n [pTooltip]="expanded ? collapseTooltip : expandTooltip"\n tooltipPosition="top"\n [showDelay]="500"\n >\n <span [id]="id + \'-expand-icon\'" class="expand-icon fa" [ngClass]="{ \'fa-minus\': expanded, \'fa-plus\': !expanded }"></span>\n </div>\n </div>\n\n <div [id]="id + \'-expandable-container\'" [@expandableContent]="expanded" class="expandable-container">\n <div class="ui-g ui-g-12">\n <ng-container *ngFor="let field of (fields.toArray() | slice: maxVisibleFields:fields.length)">\n <div class="ui-g-{{getExpandedFieldWidth()}}">\n <div class="s-object-card-field"><ng-container *ngTemplateOutlet="field.content"></ng-container></div>\n </div>\n </ng-container>\n </div>\n </div>\n</div>\n',animations:[d.trigger("expandableContent",[d.state("*",d.style({height:"0"})),d.state("false",d.style({height:"0"})),d.state("true",d.style({height:"*"})),d.transition("* => true",d.animate("200ms ease-out")),d.transition("false <=> true",d.animate("200ms ease-out"))])],styles:[":host{display:block}.container{margin-bottom:20px}.main-container{display:-ms-flexbox;display:flex}.expandable-container,.main-container{background-color:#fff;border:1px solid #ccc;position:relative;overflow:hidden;width:100%}.expandable-container{border-top:none;box-shadow:inset 0 6px 4px -4px #ddd;margin-top:-1px}.expand-icon-container{display:none;text-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;width:25px;position:absolute;right:15px;height:25px;top:calc(50% - 12px)}.expand-icon{-ms-flex:1;flex:1}.object-content{display:-ms-flexbox;display:flex;width:100%}.s-object-card-main{-ms-flex-negative:0;flex-shrink:0;-ms-flex-positive:1;flex-grow:1;overflow:hidden;padding:15px}.main-container.with-visible-fields .s-object-card-main{max-width:30%}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.main-container.with-visible-fields .s-object-card-main{width:20%}}.s-object-card-field{overflow:hidden;height:100%}.main-container .s-object-card-field{padding:15px}.main-container .divider{width:1px;-ms-flex-negative:0;flex-shrink:0;background-color:#ccc;margin:15px -1px 15px 0}.main-container.with-hidden-fields .object-content{width:calc(100% - 35px)}.main-container.with-hidden-fields .expand-icon-container{display:-ms-flexbox;display:flex}::ng-deep .object-card-button{padding-left:0!important;padding-right:10px!important;border:none!important;height:auto!important;min-width:auto!important;text-align:left!important}@media (max-width:767px){.s-object-card-main{max-width:calc(100% - 50px)}}"]})],e)}(),oi=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,l.TooltipModule,Qn,ve],declarations:[ii,ti,ei],exports:[Qn,ii,ti,ei]})],e)}(),ri=function(){function e(){this.id="s-product-header-"+n.nextId++,this.baseZIndex=0}var n;return n=e,e.prototype.ngAfterViewInit=function(){this.container.nativeElement.style.zIndex=String(this.baseZIndex+ ++c.DomHandler.zindex)},e.nextId=0,oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"header",void 0),oe([t.Input()],e.prototype,"baseZIndex",void 0),oe([t.ViewChild("headerContainer",{static:!1})],e.prototype,"container",void 0),e=n=oe([t.Component({selector:"s-product-header",template:'<div [id]="id" class="box">\n <div #headerContainer class="sds-container header">\n <h1 class="title">{{header}}</h1>\n <div class="content">\n <ng-content></ng-content>\n </div>\n </div>\n</div>',styles:[".box{position:relative;width:100%;height:70px}.header{padding-top:15px;padding-bottom:15px;position:fixed;width:100%;top:0;left:0;height:70px;background-color:#fff;border-bottom:1px solid #ddd;box-shadow:0 1px 2px #ddd;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center}.title{color:#999;font-weight:400;font-size:16pt;margin-right:15px;min-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.content{display:-ms-flexbox;display:flex;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}"]})],e)}(),ai=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,l.TooltipModule,Qn],declarations:[ri],exports:[ri,Qn]})],e)}(),si=function(){function e(e){this.focusTrapFactory=e,this.id="s-sidebar-"+n.nextId++,this.visible=!1,this.baseZIndex=0,this.largeSized=!1,this.visibleChange=new t.EventEmitter}var n;return n=e,e.prototype.onShow=function(){c.DomHandler.addClass(document.body,"ui-overflow-hidden-sidebar"),this.focusTrapFactory.create(this.innerSidebar.containerViewChild.nativeElement,!1).focusInitialElementWhenReady()},e.prototype.onHide=function(){c.DomHandler.removeClass(document.body,"ui-overflow-hidden-sidebar")},e.prototype.close=function(e){c.DomHandler.removeClass(document.body,"ui-overflow-hidden-sidebar"),this.visibleChange.emit(!1),e.preventDefault()},e.nextId=0,e.ctorParameters=function(){return[{type:j.FocusTrapFactory}]},oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"visible",void 0),oe([t.Input()],e.prototype,"header",void 0),oe([t.Input()],e.prototype,"baseZIndex",void 0),oe([t.Input()],e.prototype,"largeSized",void 0),oe([t.Output()],e.prototype,"visibleChange",void 0),oe([t.ViewChild($.Sidebar,{static:!0})],e.prototype,"innerSidebar",void 0),oe([t.ContentChild($n,{static:!0})],e.prototype,"headerSection",void 0),oe([t.ContentChild(Gn,{static:!0})],e.prototype,"footerSection",void 0),e=n=oe([t.Component({selector:"s-sidebar",template:'<p-sidebar [id]="id" [visible]="visible" (visibleChange)="visibleChange.emit($event)" [blockScroll]="true" [baseZIndex]="baseZIndex"\n [modal]="true" [dismissible]="false" [showCloseIcon]="false" position="right" appendTo="body"\n [styleClass]="largeSized ? \'s-sidebar-panel s-sidebar-panel-lg\' : \'s-sidebar-panel\'" (onShow)="onShow()" (onHide)="onHide()">\n\n <div [id]="id + \'-container\'" class="s-sidebar-container">\n\n <a href="#" role="button" class="s-sidebar-close" (click)="close($event)"><span class="fa fa-times" aria-hidden="true"></span></a>\n\n <div [id]="id + \'-header\'" class="s-sidebar-header" *ngIf="header && !headerSection">\n <s-header>\n <h2 class="sds-panel-title">{{header}}</h2>\n </s-header>\n </div>\n\n <div [id]="id + \'-header\'" class="s-sidebar-header" *ngIf="headerSection">\n <ng-content select="s-header"></ng-content>\n </div>\n\n <p-scrollPanel [id]="id + \'-content-container\'" class="s-sidebar-content-container" styleClass="s-sidebar-content">\n <ng-content></ng-content>\n </p-scrollPanel>\n\n <div [id]="id + \'-footer\'" class="s-sidebar-footer" *ngIf="footerSection">\n <ng-content select="s-footer"></ng-content>\n </div>\n\n </div>\n\n</p-sidebar>\n',encapsulation:t.ViewEncapsulation.None,styles:[".ui-overflow-hidden-sidebar{overflow:hidden}body .ui-sidebar.s-sidebar-panel{width:50%;padding:0}@media (max-width:767px){body .ui-sidebar.s-sidebar-panel{width:100%}}@media (min-width:768px){body .ui-sidebar.s-sidebar-panel{width:75%}}@media (min-width:992px){body .ui-sidebar.s-sidebar-panel{width:50%}body .ui-sidebar.s-sidebar-panel.s-sidebar-panel-lg{width:75%}}body .ui-sidebar.s-sidebar-panel .s-sidebar-container{height:100%;width:100%;padding:20px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-direction:column;flex-direction:column}body .ui-sidebar.s-sidebar-panel .s-sidebar-close{position:absolute;right:20px;top:20px;color:#333}body .ui-sidebar.s-sidebar-panel .s-sidebar-header{border-bottom:1px solid #ccc;padding-bottom:15px;padding-right:20px;margin-bottom:15px;-ms-flex-negative:0;flex-shrink:0}body .ui-sidebar.s-sidebar-panel .s-sidebar-content-container{-ms-flex:1;flex:1;overflow:hidden}body .ui-sidebar.s-sidebar-panel .s-sidebar-content{height:100%}body .ui-sidebar.s-sidebar-panel .s-sidebar-footer{border-top:1px solid #ccc;padding-top:15px;margin-top:15px;-ms-flex-negative:0;flex-shrink:0}body .ui-sidebar.s-sidebar-panel p-scrollpanel{padding-top:30px}body .ui-sidebar.s-sidebar-panel .s-sidebar-header+p-scrollpanel{padding-top:0}p-scrollPanel{display:block}"]})],e)}(),li=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,j.A11yModule,$.SidebarModule,H.ScrollPanelModule,qn],declarations:[si],exports:[qn,si]})],e)}(),ci=function(){function e(){this.id="s-stats-card-"+n.nextId++,this.alwaysWithBorder=!1,this.lightVersion=!1,this.lightMode=!0,this.iconClass="fa fa-bar-chart",this.color="#339966",this.animateNumbers=!0,this.clickable=!1,this.tooltip="",this.onClick=new t.EventEmitter,this.ANIMATION_DURATION_MS=200,this.STEP_DURATION_MS=20,this.previousValue="0",this._value="0"}var n;return n=e,Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this.previousValue=this._value,this._value=String(e),this.animateNumbers?this.updateDisplayValue():this.displayValue=this.value},enumerable:!0,configurable:!0}),e.prototype.updateDisplayValue=function(){var e=this,t=new h.BigNumber(this.ANIMATION_DURATION_MS),n=new h.BigNumber(this.STEP_DURATION_MS),i=t.dividedBy(n),o=new h.BigNumber(this.previousValue.replace(/\D/g,"")),r=new h.BigNumber(this.value.replace(/\D/g,"")),a=r.minus(o).absoluteValue().dividedBy(i),s=o.isLessThan(r);clearInterval(this.intervalId),this.displayValue=this.replaceNumericPositions(this.value);var l=o;this.intervalId=setInterval((function(){s&&l.isLessThan(r)?(e.displayValue=e.replaceNumericPositions(e.displayValue,l),l=l.plus(a)):!s&&l.isGreaterThan(r)?(e.displayValue=e.replaceNumericPositions(e.displayValue,l),l=l.minus(a)):(e.displayValue=e.value,clearInterval(e.intervalId))}),this.STEP_DURATION_MS)},e.prototype.replaceNumericPositions=function(e,t){var n=e.replace(/[^\d]/g,""),i=(t?t.toString():"").toString().replace(/\D/g,"").padStart(n.length,"0"),o=0;return e.split("").map((function(e){return Number(e)||"0"===e?i[o++]:e})).join("")},e.nextId=0,oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"label",void 0),oe([t.Input()],e.prototype,"alwaysWithBorder",void 0),oe([t.Input()],e.prototype,"lightVersion",void 0),oe([t.Input()],e.prototype,"lightMode",void 0),oe([t.Input()],e.prototype,"iconClass",void 0),oe([t.Input()],e.prototype,"color",void 0),oe([t.Input()],e.prototype,"animateNumbers",void 0),oe([t.Input()],e.prototype,"clickable",void 0),oe([t.Input()],e.prototype,"value",null),oe([t.Input()],e.prototype,"tooltip",void 0),oe([t.Output()],e.prototype,"onClick",void 0),e=n=oe([t.Component({selector:"s-stats-card",template:'<div\n [id]="id"\n class="s-stats-card"\n [ngClass]="{\n \'s-stats-card--always-border\': alwaysWithBorder,\n \'s-stats-card--light\': lightMode,\n \'s-stats-card--color\': !lightMode,\n \'s-stats-card--light-version\': lightVersion,\n \'s-stats-card--clickable\': clickable\n }"\n (click)="clickable && onClick.next($event)">\n\n <div\n [id]="id + \'-background\'"\n class="s-stats-card-background"\n [ngStyle]="{ \'background-color\': !lightMode && color || \'\' }">\n </div>\n <div\n [id]="id + \'-overlay\'"\n class="s-stats-card-overlay">\n </div>\n\n <div\n [id]="id + \'-info-container\'"\n class="s-stats-card-info-container">\n <div class="s-stats-card-info-inner-container">\n <div\n [id]="id + \'-icon-container\'"\n class="s-stats-card-icon-container"\n [ngStyle]="{ \'background-color\': lightMode && color || \'\' }">\n <span\n [id]="id + \'-icon\'"\n [class]="iconClass"\n [ngClass]="{ \'s-stats-card-icon\': true }"\n [ngStyle]="{\'color\': !lightMode && color || \'\'}"\n aria-hidden="true"></span>\n </div>\n\n <div\n [id]="id + \'-text-container\'"\n class="s-stats-card-text-container">\n <h4\n [id]="id + \'-label\'"\n class="s-stats-card-label"\n [pTooltip]="label"\n tooltipPosition="top"\n showDelay="500">\n {{ label }}\n </h4>\n <span\n [id]="id + \'-value\'"\n class="s-stats-card-value"\n [pTooltip]="displayValue"\n tooltipPosition="top"\n showDelay="500">\n {{ displayValue }}\n </span>\n </div>\n </div>\n <div class="s-stats-card-content-inner-container">\n <div #content class="s-stats-card-content-container">\n <ng-content></ng-content>\n </div>\n <div\n *ngIf="content.children.length"\n class="s-stats-card-content-separator">\n </div>\n </div>\n <span\n *ngIf="tooltip"\n class="s-status-card-tooltip"\n [pTooltip]="tooltip"\n tooltipPosition="right">\n <i class="fa fa-info-circle s-status-card-tooltip-icon"></i>\n </span>\n </div>\n</div>\n',encapsulation:t.ViewEncapsulation.None,styles:["s-stats-card{display:block;height:auto;position:relative}s-stats-card .s-stats-card{border:1px solid transparent;min-width:120px;overflow:hidden;position:relative}s-stats-card .s-stats-card .s-stats-card-background,s-stats-card .s-stats-card .s-stats-card-overlay{height:calc(100% - 2px);left:1px;position:absolute;top:1px;width:calc(100% - 2px)}s-stats-card .s-stats-card .s-stats-card-background{background-color:#fff}s-stats-card .s-stats-card .s-stats-card-overlay{background-color:#000;opacity:0;transition:opacity .2s ease-out}s-stats-card .s-stats-card .s-stats-card-info-container{overflow:auto;padding:15px;position:relative}s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-info-inner-container{overflow:hidden;position:relative}s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-info-inner-container .s-stats-card-icon-container{float:left;font-size:24px;height:50px;line-height:50px;text-align:center;transition:width .2s ease-out;width:50px}s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-info-inner-container .s-stats-card-text-container{color:#fff;float:left;height:50px;max-width:calc(100% - 65px);padding-left:15px}s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-info-inner-container .s-stats-card-text-container .s-stats-card-label{font-weight:400;width:100%}s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-info-inner-container .s-stats-card-text-container .s-stats-card-value{display:inline-block;font-size:20px;font-weight:700;width:100%}s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-info-inner-container .s-stats-card-text-container,s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-info-inner-container .s-stats-card-text-container .s-stats-card-label,s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-info-inner-container .s-stats-card-text-container .s-stats-card-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-content-inner-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-content-inner-container .s-stats-card-content-separator{border-top:1px solid #ccc;margin:15px 0;-ms-flex-order:1;order:1}s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-content-inner-container .s-stats-card-content-container{-ms-flex-order:2;order:2}s-stats-card .s-stats-card .s-stats-card-info-container .s-status-card-tooltip{font-size:1rem;line-height:0;margin:.3rem;position:absolute;right:0;top:0}s-stats-card .s-stats-card .s-stats-card-info-container .s-status-card-tooltip .s-status-card-tooltip-icon{color:#fff}s-stats-card .s-stats-card.s-stats-card--color .s-stats-card-icon-container{background-color:#fff}s-stats-card .s-stats-card.s-stats-card--light *{color:#333}s-stats-card .s-stats-card.s-stats-card--light .s-stats-card-icon{color:#fff}s-stats-card .s-stats-card.s-stats-card--light * .s-status-card-tooltip .s-status-card-tooltip-icon,s-stats-card .s-stats-card.s-stats-card--light .s-stats-card-label{color:#999}s-stats-card .s-stats-card.s-stats-card--light-version .s-stats-card-info-inner-container .s-stats-card-icon-container{height:100%;left:0;position:absolute;right:0;width:10px}s-stats-card .s-stats-card.s-stats-card--light-version .s-stats-card-info-inner-container .s-stats-card-icon-container .s-stats-card-icon{display:none}s-stats-card .s-stats-card.s-stats-card--light-version .s-stats-card-info-inner-container .s-stats-card-text-container{height:auto;max-width:calc(100% - 25px);padding-left:25px}s-stats-card .s-stats-card.s-stats-card--clickable{cursor:pointer}s-stats-card .s-stats-card:hover .s-stats-card-overlay{opacity:.2}s-stats-card .s-stats-card.s-stats-card--light:hover .s-stats-card-overlay{opacity:.08}s-stats-card .s-stats-card.s-stats-card--light{border-color:#ccc}.s-sidebar-content .s-stats-card.s-stats-card--light:not(.s-stats-card--always-border),.ui-dialog-content .s-stats-card.s-stats-card--light:not(.s-stats-card--always-border),p-panel .s-stats-card.s-stats-card--light:not(.s-stats-card--always-border){border-color:transparent}@media (max-width:767px){s-stats-card .s-stats-card{height:auto}s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-info-inner-container .s-stats-card-icon-container{height:100%;left:0;position:absolute;right:0;width:10px}s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-info-inner-container .s-stats-card-icon-container .s-stats-card-icon{display:none}s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-info-inner-container .s-stats-card-text-container{height:auto;max-width:calc(100% - 25px);padding-left:25px}s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-info-inner-container .s-stats-card-text-container,s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-info-inner-container .s-stats-card-text-container .s-stats-card-label,s-stats-card .s-stats-card .s-stats-card-info-container .s-stats-card-info-inner-container .s-stats-card-text-container .s-stats-card-value{overflow:visible;white-space:normal;word-break:break-all}}"]})],e)}(),pi=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,l.TooltipModule],declarations:[ci],exports:[ci]})],e)}();(Xn=e.StepState||(e.StepState={})).Default="default",Xn.Success="success",Xn.Warning="warning";var di,ui,mi=function(){function n(){this.id="s-steps-"+i.nextId++,this.activeIndex=0,this.stepSelected=new t.EventEmitter}var i;return i=n,n.prototype.stepClick=function(e,t,n){e.disabled||t==this.activeIndex||this.stepSelected.emit({step:e,index:t,event:n})},Object.defineProperty(n.prototype,"stepState",{get:function(){return e.StepState},enumerable:!0,configurable:!0}),n.prototype.barAnimation=function(e,t){return e<t||e===t},n.prototype.afterBarAnimation=function(e,t){return e<t||e===t-1},Object.defineProperty(n.prototype,"visibledStep",{get:function(){return this.steps.filter((function(e){return!e.hidden}))},enumerable:!0,configurable:!0}),n.nextId=0,oe([t.Input()],n.prototype,"id",void 0),oe([t.Input()],n.prototype,"steps",void 0),oe([t.Input()],n.prototype,"activeIndex",void 0),oe([t.Output()],n.prototype,"stepSelected",void 0),n=i=oe([t.Component({selector:"s-steps",template:'<div [id]="id" class="s-steps-container">\n <ng-container *ngFor="let step of visibledStep; let i = index; let isFirst = first; let isLast = last">\n <div *ngIf="!isFirst" class="s-step-progress-bar"\n [@activeDesative]="barAnimation(i, activeIndex) ? \'active\': \'desactive\'" [ngClass]="{\n \'s-step-success\': (step.state === stepState.Success),\n \'s-step-warning\': (step.state === stepState.Warning),\n \'s-step-disabled\': step.disabled,\n \'s-step-visited\': (i < activeIndex),\n \'s-step-active\': (i === activeIndex)\n }"></div>\n <div [id]="id + \'-step-\' + (step.id || i)" class="s-step-header" (click)="stepClick(step, i, $event)" role="tab"\n tabindex="0" [attr.aria-label]="step.ariaLabel || null" [attr.aria-controls]="step.ariaControls"\n [attr.aria-labelledby]="!step.ariaLabel ? \'step-label-\' + i : null" [attr.aria-posinset]="i + 1"\n [attr.aria-setsize]="visibledStep.length" [attr.aria-selected]="activeIndex == i" [ngClass]="{\n \'s-step-success\': (step.state === stepState.Success),\n \'s-step-warning\': (step.state === stepState.Warning),\n \'s-step-visited\': (i < activeIndex),\n \'s-step-active\': (i === activeIndex),\n \'s-step-previous\': (i === activeIndex - 1)\n }">\n <div *ngIf="!isFirst"\n [@beforeActiveDesative]="barAnimation(i, activeIndex) ? \'active\': \'desactive\'"\n class="s-step-progress-bar-before" [ngClass]="{\n \'s-step-success\': (step.state === stepState.Success),\n \'s-step-warning\': (step.state === stepState.Warning),\n \'s-step-disabled\': step.disabled,\n \'s-step-visited\': (i < activeIndex),\n \'s-step-active\': (i === activeIndex)\n }"></div>\n <div *ngIf="!isLast"\n [@afterActiveDesative]="afterBarAnimation(i, activeIndex) ? \'active\': \'desactive\'"\n class="s-step-progress-bar-after" [ngClass]="{\n \'s-step-success\': (step.state === stepState.Success),\n \'s-step-warning\': (step.state === stepState.Warning),\n \'s-step-disabled\': visibledStep[i + 1].disabled,\n \'s-step-visited\': ((i + 1) < activeIndex),\n \'s-step-active\': (i === (activeIndex - 1))\n }"></div>\n <div\n class="s-step-index"\n [ngClass]="{\'s-step-disabled\': step.disabled}"\n [pTooltip]="step.tooltip"\n tooltipPosition="top">\n <div class="s-step-index-content">\n <span\n *ngIf="step.state !== stepState.Warning && (step.state == stepState.Success || activeIndex > i)"\n class="fas fa-check"\n aria-hidden="true"\n [attr.aria-label]="i + 1"></span>\n <span\n *ngIf="step.state == stepState.Warning"\n class="fas fa-exclamation-triangle"\n aria-hidden="true"\n [attr.aria-label]="i + 1"></span>\n <span\n *ngIf="step.state != stepState.Success && step.state != stepState.Warning && activeIndex <= i">\n {{i + 1}}\n </span>\n </div>\n </div>\n <div\n [id]="\'step-label-\' + i"\n class="s-step-label"\n [ngClass]="{\'s-step-disabled\': step.disabled}">\n <span>\n {{step.label}}\n </span>\n </div>\n </div>\n </ng-container>\n</div>\n',host:{"aria-orientation":"horizontal",role:"tablist","tab-index":"0"},animations:[d.trigger("beforeActiveDesative",[d.state("active",d.style({"background-position":"left bottom"})),d.state("desactive",d.style({"background-position":"right bottom"})),d.transition("active => desactive",[d.animate("50ms 100ms linear")]),d.transition("desactive => active",[d.animate("50ms 250ms linear")])]),d.trigger("activeDesative",[d.state("active",d.style({"background-position":"left bottom"})),d.state("desactive",d.style({"background-position":"right bottom"})),d.transition("active => desactive",[d.animate("100ms 150ms linear")]),d.transition("desactive => active",[d.animate("100ms 150ms linear")])]),d.trigger("afterActiveDesative",[d.state("active",d.style({"background-position":"left bottom"})),d.state("desactive",d.style({"background-position":"right bottom"})),d.transition("active => desactive",[d.animate("50ms 250ms linear")]),d.transition("desactive => active",[d.animate("50ms 100ms linear")])])],styles:["@keyframes scale-up-center{0%{transform:scale(.5)}100%{transform:scale(1)}}.s-steps-container{display:-ms-flexbox;display:flex;white-space:nowrap;-ms-flex-align:start;align-items:flex-start;overflow:hidden;padding:15px 10px}.s-step-header{box-sizing:border-box;-ms-flex-direction:column;flex-direction:column;cursor:pointer;position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;height:66px}.s-step-header .s-step-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:break-all;color:#999;font-size:14px;font-weight:400;padding-top:5px}.s-step-header .s-step-progress-bar-before{margin:0;position:absolute;top:20px;-ms-flex:auto;flex:auto;height:3px;overflow:hidden;width:calc(50% - 20px);background-color:#ccc;background-image:linear-gradient(to right,#7892a1 50%,#ccc 50%);background-position:right bottom;background-size:300% 100%;left:0}.s-step-header .s-step-progress-bar-before.s-step-active,.s-step-header .s-step-progress-bar-before.s-step-visited{background-position:left bottom}.s-step-header .s-step-progress-bar-after{margin:0;position:absolute;top:20px;-ms-flex:auto;flex:auto;height:3px;overflow:hidden;width:calc(50% - 20px);background-color:#ccc;background-image:linear-gradient(to right,#7892a1 50%,#ccc 50%);background-position:right bottom;background-size:300% 100%;right:0}.s-step-header .s-step-progress-bar-after.s-step-active,.s-step-header .s-step-progress-bar-after.s-step-visited{background-position:left bottom}.s-step-progress-bar{margin:0;position:relative;top:20px;-ms-flex:auto;flex:auto;height:3px;overflow:hidden;width:100%;background-color:#ccc;background-image:linear-gradient(to right,#7892a1 50%,#ccc 50%);background-position:right bottom;background-size:300% 100%}.s-step-disabled{opacity:.5;filter:Alpha(Opacity=50)}.s-step-disabled,.s-step-disabled *{cursor:text!important}.s-step-active.s-step-disabled{opacity:1}.s-step-index{background-color:#fff;border:3px solid #ccc;border-radius:50%;color:#999;display:inline-block;font-weight:700;position:relative;transition:background-color .2s ease-out;height:40px;width:40px;-ms-flex:none;flex:none}.s-step-index .s-step-index-content{line-height:18px;font-size:18px;padding-top:8.5px;text-align:center;position:relative;cursor:pointer}.s-step-index:hover{background-color:#f7f7f7}.s-step-warning .s-step-index .s-step-index-content{padding-top:7px}.s-step-visited .s-step-index{border-color:#7892a1;animation:.1s ease-out alternate scale-up-center;background-color:#7892a1}.s-step-visited .s-step-index-content>span{color:#fff}.s-step-active.s-step-progress-bar,.s-step-visited.s-step-progress-bar{background-position:left bottom}.s-step-active .s-step-index{border-color:#7892a1;color:#7892a1;cursor:default}.s-step-active .s-step-label{color:#333;font-weight:700}@media (max-width:767px){.s-step-label{display:none}}"]})],n)}(),fi=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,l.TooltipModule],declarations:[mi],exports:[mi]})],e)}(),hi=function(){function e(){this.direction="horizontal",this.collapsable=!0,this.counterLabel="items"}return Object.defineProperty(e.prototype,"items",{get:function(){return this._items},set:function(e){this._items=e,this.checkDuplicateIds()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this._innerWidth=window.innerWidth},e.prototype.onResize=function(e){this._innerWidth=window.innerWidth},e.prototype.changeToVertical=function(){return"vertical"===this.direction||this._innerWidth/this.items.length<200},e.prototype.checkDuplicateIds=function(){var e=this.items.map((function(e){return e.id}));if(new Set(e).size!==e.length)throw new Error("A duplicate id was found in the items list")},oe([t.Input()],e.prototype,"items",null),oe([t.Input()],e.prototype,"activeIndex",void 0),oe([t.Input()],e.prototype,"direction",void 0),oe([t.Input()],e.prototype,"collapsable",void 0),oe([t.Input()],e.prototype,"counterLabel",void 0),oe([t.HostListener("window:resize",["$event"])],e.prototype,"onResize",null),e=oe([t.Component({selector:"s-timeline",template:'<div *ngIf="changeToVertical(); then vertical else horizontal"></div>\n\n<ng-template #horizontal>\n <s-horizontal-timeline\n [items]="items"\n [activeIndex]="activeIndex">\n </s-horizontal-timeline>\n</ng-template>\n\n<ng-template #vertical>\n <s-vertical-timeline\n [items]="items"\n [activeIndex]="activeIndex"\n [counterLabel]="counterLabel"\n [collapsable]="collapsable">\n </s-vertical-timeline>\n</ng-template>'})],e)}(),gi=function(){function e(){}return oe([t.Input()],e.prototype,"item",void 0),oe([t.Input()],e.prototype,"isActive",void 0),oe([t.Input()],e.prototype,"isComplete",void 0),e=oe([t.Component({selector:"s-timeline-icon-item",template:"<ng-container *ngIf=\"item\">\n <div\n class=\"timeline__icon-item\"\n [ngClass]=\"{\n 'timeline__icon-item--small': item.testSize('small'),\n 'timeline__icon-item--normal': item.testSize('normal'),\n 'timeline__icon-item--warning': item.testSeverity('warning'),\n 'timeline__icon-item--error': item.testSeverity('error'),\n 'timeline__icon-item--completed': isComplete,\n 'timeline__icon-item--active': isActive\n }\">\n <div\n class=\"timeline__icon-item__icon\"\n [pTooltip]=\"item.tooltip\"\n tooltipPosition=\"top\">\n <ng-content *ngIf=\"item.icon; then icon_content; else label_text_content\"></ng-content>\n <ng-template #icon_content>\n <span\n class=\"fas\"\n [ngClass]=\"item.icon\">\n </span>\n </ng-template>\n <ng-template #label_text_content>\n <span class=\"timeline__icon-item__icon__label\">\n {{ item.label }}\n </span>\n </ng-template>\n </div>\n </div>\n</ng-container>\n",styles:['.timeline__icon-item .timeline__icon-item__icon{-ms-flex-align:center;align-items:center;background-color:#697882;border-radius:50%;color:#fff;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:4px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.timeline__icon-item .timeline__icon-item__icon .timeline__icon-item__icon__label{font-family:"Open Sans",sans-serif}.timeline__icon-item.timeline__icon-item--small .timeline__icon-item__icon{font-size:0;height:16px;width:16px}.timeline__icon-item.timeline__icon-item--normal .timeline__icon-item__icon{font-size:10px;height:24px;padding:8px;width:24px}.timeline__icon-item.timeline__icon-item--normal .timeline__icon-item__icon .timeline__icon-item__icon__label{font-size:14px}.timeline__icon-item.timeline__icon-item--active .timeline__icon-item__icon{font-size:20px;height:40px;padding:10px;width:40px}.timeline__icon-item.timeline__icon-item--active .timeline__icon-item__icon .timeline__icon-item__icon__label{font-size:22px}.timeline__icon-item.timeline__icon-item--active .timeline__icon-item__icon,.timeline__icon-item.timeline__icon-item--completed .timeline__icon-item__icon{background-color:#0c9348}.timeline__icon-item.timeline__icon-item--warning.timeline__icon-item--active .timeline__icon-item__icon{background-color:#fcbf10;color:#333}.timeline__icon-item.timeline__icon-item--danger.timeline__icon-item--active .timeline__icon-item__icon{background-color:#f8931f;color:#333}.timeline__icon-item.timeline__icon-item--error.timeline__icon-item--active .timeline__icon-item__icon{background-color:#c13018}']})],e)}(),bi=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,l.TooltipModule],declarations:[gi],exports:[gi]})],e)}(),vi=function(){function e(){this.activeIndex=0}return oe([t.Input()],e.prototype,"items",void 0),oe([t.Input()],e.prototype,"activeIndex",void 0),e=oe([t.Component({selector:"s-horizontal-timeline",template:'<div class="horizontal-timeline">\n <ng-container\n *ngFor="let item of items;\n let i = index;\n let isFirst = first;\n let isLast = last">\n <div\n class="horizontal-timeline__item"\n [ngClass]="{\n \'horizontal-timeline__item--small\': item.testSize(\'small\'),\n \'horizontal-timeline__item--normal\': item.testSize(\'normal\'),\n \'horizontal-timeline__item--warning\': item.testSeverity(\'warning\'),\n \'horizontal-timeline__item--error\': item.testSeverity(\'error\'),\n \'horizontal-timeline__item--completed\': i < activeIndex,\n \'horizontal-timeline__item--active\': i === activeIndex\n }">\n <div class="horizontal-timeline__item__icon-wrapper">\n <div\n class="horizontal-timeline__item__icon-wrapper__line horizontal-timeline__item__icon-wrapper__line--before"\n [ngStyle]="{ \'visibility\': isFirst ? \'hidden\' : \'visible\' }">\n </div>\n <s-timeline-icon-item\n [item]="item"\n [isActive]="i === activeIndex"\n [isComplete]="i < activeIndex">\n </s-timeline-icon-item>\n <div\n class="horizontal-timeline__item__icon-wrapper__line horizontal-timeline__item__icon-wrapper__line--after"\n [ngStyle]="{ \'visibility\': isLast ? \'hidden\' : \'visible\' }">\n </div>\n </div>\n <div class="horizontal-timeline__item__info">\n <div\n class="horizontal-timeline__item__info__title"\n [pTooltip]="item.title"\n tooltipPosition="top"\n [showDelay]="1000">\n {{ item.title }}\n </div>\n <div\n class="horizontal-timeline__item__info__description"\n [pTooltip]="item.description"\n tooltipPosition="top"\n [showDelay]="1000">\n {{ item.description }}\n </div>\n </div>\n </div>\n </ng-container>\n</div>',styles:['@keyframes scale-up-center{0%{transform:scale(.5)}100%{transform:scale(1)}}.horizontal-timeline{-ms-flex-align:start;align-items:flex-start;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.horizontal-timeline .horizontal-timeline__item{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;width:100%}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__icon-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:56px;-ms-flex-pack:start;justify-content:flex-start;width:100%}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line{background-color:#697882;height:3px}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line--before{border-radius:0 2px 2px 0}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line--after{border-radius:2px 0 0 2px}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__info{width:20ch}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__info .horizontal-timeline__item__info__title{color:#333;font-family:"Open Sans",sans-serif;font-size:14px;font-weight:700;line-height:150%;max-width:100%;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.horizontal-timeline .horizontal-timeline__item .horizontal-timeline__item__info .horizontal-timeline__item__info__description{color:#999;display:-webkit-box;font-family:"Open Sans",sans-serif;font-size:12px;font-weight:400;line-height:150%;max-height:calc(12px * 1.5 * 4);overflow:hidden;text-align:center;text-overflow:ellipsis;-webkit-line-clamp:4;-webkit-box-orient:vertical}.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--small .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line{width:calc(50% - 4px - 8px)}.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--normal .horizontal-timeline__item__icon-wrapper__line{width:calc(50% - 4px - 12px)}.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--active .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line{width:calc(50% - 4px - 20px)}.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--active .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line--before,.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--completed .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line--after,.horizontal-timeline .horizontal-timeline__item.horizontal-timeline__item--completed .horizontal-timeline__item__icon-wrapper .horizontal-timeline__item__icon-wrapper__line--before{background-color:#0c9348}']})],e)}(),yi=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,l.TooltipModule,bi],declarations:[vi],exports:[vi]})],e)}(),xi=function(){function e(){this.isG1Collapsed=!0,this.isG2Collapsed=!0}return Object.defineProperty(e.prototype,"activeIndex",{get:function(){return this._activeIndex},set:function(e){this._activeIndex=e,this.groupItems()},enumerable:!0,configurable:!0}),e.prototype.onChangeG1=function(e){this.isG1Collapsed=e},e.prototype.onChangeG2=function(e){this.isG2Collapsed=e},e.prototype.groupItems=function(){this.firstItem=0===this.activeIndex?[]:[this.items[0]],this.g1Items=this.items.slice(1,this.activeIndex),this.activeItem=[this.items[this.activeIndex]],this.g2Items=this.items.slice(this.activeIndex+1,this.items.length-1),this.lastItem=this.activeIndex===this.items.length-1?[]:[this.items[this.items.length-1]]},e.nextId=0,oe([t.Input()],e.prototype,"activeIndex",null),oe([t.Input()],e.prototype,"items",void 0),oe([t.Input()],e.prototype,"counterLabel",void 0),oe([t.Input()],e.prototype,"collapsable",void 0),e=oe([t.Component({selector:"s-vertical-timeline",template:'<div class="vertical-timeline">\n <div\n *ngIf="firstItem.length"\n class="vertical-timeline__block">\n <div class="vertical-timeline__block__prefix"></div>\n <s-vertical-items\n [items]="firstItem"\n [isLast]="false"\n [isActive]="false"\n [isCompleted]="true">\n </s-vertical-items>\n </div>\n\n <div\n *ngIf="g1Items.length"\n class="vertical-timeline__block">\n <div class="vertical-timeline__block__prefix">\n <ng-container *ngIf="g1Items.length > 1 && !isG1Collapsed">\n <s-collapse-option\n *ngIf="collapsable"\n [isCollapsed]="isG1Collapsed"\n (change)="onChangeG1($event)">\n </s-collapse-option>\n <s-range-line class="vertical-timeline__block__prefix__line"></s-range-line>\n </ng-container>\n </div>\n\n <div *ngIf="isG1Collapsed && g1Items.length > 1 && collapsable; then g1_collapsed; else g1_items"></div>\n\n <ng-template #g1_collapsed>\n <s-collapsed-items\n [items]="g1Items"\n [(isCollapsed)]="isG1Collapsed"\n [isCompleted]="true"\n [counterLabel]="counterLabel">\n </s-collapsed-items>\n </ng-template>\n\n <ng-template #g1_items>\n <s-vertical-items\n [items]="g1Items"\n [isLast]="false"\n [isActive]="false"\n [isCompleted]="true">\n </s-vertical-items>\n </ng-template>\n </div>\n\n <div\n *ngIf="activeItem.length"\n class="vertical-timeline__block">\n <div class="vertical-timeline__block__prefix"></div>\n <s-vertical-items\n [items]="activeItem"\n [isLast]="!lastItem.length"\n [isActive]="true"\n [isCompleted]="false">\n </s-vertical-items>\n </div>\n\n <div\n *ngIf="g2Items.length"\n class="vertical-timeline__block">\n <div class="vertical-timeline__block__prefix">\n <ng-container *ngIf="g2Items.length > 1 && !isG2Collapsed">\n <s-collapse-option\n *ngIf="collapsable"\n [isCollapsed]="isG2Collapsed"\n (change)="onChangeG2($event)">\n </s-collapse-option>\n <s-range-line class="vertical-timeline__block__prefix__line"></s-range-line>\n </ng-container>\n </div>\n\n <div *ngIf="isG2Collapsed && g2Items.length > 1 && collapsable; then g2_collapsed; else g2_items"></div>\n\n <ng-template #g2_collapsed>\n <s-collapsed-items\n [items]="g2Items"\n [(isCollapsed)]="isG2Collapsed"\n [isCompleted]="false"\n [counterLabel]="counterLabel">\n </s-collapsed-items>\n </ng-template>\n\n <ng-template #g2_items>\n <s-vertical-items\n [items]="g2Items"\n [isLast]="false"\n [isActive]="false"\n [isCompleted]="false">\n </s-vertical-items>\n </ng-template>\n </div>\n\n <div\n *ngIf="lastItem.length"\n class="vertical-timeline__block">\n <div class="vertical-timeline__block__prefix"></div>\n <s-vertical-items\n [items]="lastItem"\n [isLast]="true"\n [isActive]="false"\n [isCompleted]="false">\n </s-vertical-items>\n </div>\n</div>',styles:[".vertical-timeline{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.vertical-timeline .vertical-timeline__block{display:-ms-flexbox;display:flex;-ms-flex-align:stretch;align-items:stretch}.vertical-timeline .vertical-timeline__block .vertical-timeline__block__prefix{width:60px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-negative:0;flex-shrink:0}.vertical-timeline .vertical-timeline__block .vertical-timeline__block__prefix .vertical-timeline__block__prefix__line{height:100%}"]})],e)}(),wi=function(){function e(){}return e=oe([t.Component({selector:"s-range-line",template:'<div class="range-line">\n <div class="range-line__horizontal"></div>\n <div class="range-line__vertical"></div>\n <div class="range-line__horizontal"></div>\n</div>\n',styles:[".range-line{-ms-flex-item-align:stretch;-ms-grid-row-align:stretch;align-self:stretch;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:20px;height:100%}.range-line .range-line__horizontal{background-color:#ccc;height:3px;width:100%}.range-line .range-line__vertical{background-color:#ccc;height:100%;width:3px}s-range-line{background-color:#add8e6}"]})],e)}(),Ci=function(){function e(){this.isCollapsed=!1,this.change=new t.EventEmitter}return e.prototype.onClick=function(){this.change.emit(!this.isCollapsed)},oe([t.Input()],e.prototype,"isCollapsed",void 0),oe([t.Output()],e.prototype,"change",void 0),e=oe([t.Component({selector:"s-collapse-option",template:'<div\n class="collapse-option"\n (click)="onClick()">\n <div class="collapse-option__icon">\n <span\n class="fas"\n [ngClass]="{\n \'fa-minus\': !isCollapsed,\n \'fa-plus\': isCollapsed\n }">\n </span>\n </div>\n</div>',styles:[".collapse-option{-ms-flex-align:center;align-items:center;background-color:#428bca;border-radius:50%;cursor:pointer;display:-ms-flexbox;display:flex;height:24px;-ms-flex-pack:center;justify-content:center;margin:4px;width:24px}.collapse-option .collapse-option__icon{color:#fff}"]})],e)}(),_i=function(){function e(){this.isCollapsedChange=new t.EventEmitter}return e.prototype.onChange=function(e){this.isCollapsed=!this.isCollapsed,this.isCollapsedChange.emit(this.isCollapsed)},oe([t.Input()],e.prototype,"items",void 0),oe([t.Input()],e.prototype,"isCollapsed",void 0),oe([t.Input()],e.prototype,"isCompleted",void 0),oe([t.Input()],e.prototype,"counterLabel",void 0),oe([t.Output()],e.prototype,"isCollapsedChange",void 0),e=oe([t.Component({selector:"s-collapsed-items",template:'<div class="collapsed-items">\n <div\n class="collapsed-items__item"\n [ngClass]="{ \'collapsed-items__item--completed\' : isCompleted }">\n <div class="collapsed-items__item__icon-wrapper">\n <s-collapse-option\n [isCollapsed]="isCollapsed"\n (change)="onChange($event)">\n </s-collapse-option>\n <div class="collapsed-items__item__icon-wrapper__line"></div>\n </div>\n <div\n class="collapsed-items__item__info"\n (click)="onChange(!isCollapsed)">\n <div\n class="collapsed-items__item__info__description">\n {{ items.length }} {{ counterLabel }}\n </div>\n </div>\n </div>\n</div>',styles:['.collapsed-items .collapsed-items__item{-ms-flex-align:stretch;align-items:stretch;display:-ms-flexbox;display:flex}.collapsed-items .collapsed-items__item .collapsed-items__item__icon-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-negative:0;flex-shrink:0;-ms-flex-pack:center;justify-content:center;width:56px}.collapsed-items .collapsed-items__item .collapsed-items__item__icon-wrapper .collapsed-items__item__icon-wrapper__line{background-color:#697882;border-radius:2px;-ms-flex-positive:1;flex-grow:1;min-height:20px;width:3px}.collapsed-items .collapsed-items__item .collapsed-items__item__info{-ms-flex-align:start;align-items:flex-start;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;margin-bottom:20px;-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.collapsed-items .collapsed-items__item .collapsed-items__item__info .collapsed-items__item__info__description{color:#428bca;font-family:"Open Sans",sans-serif;font-size:12px;font-weight:400;line-height:150%}.collapsed-items .collapsed-items__item.collapsed-items__item--completed .collapsed-items__item__icon-wrapper .collapsed-items__item__icon-wrapper__line{background-color:#0c9348}']})],e)}(),Ii=function(){function e(){}return oe([t.Input()],e.prototype,"items",void 0),oe([t.Input()],e.prototype,"isLast",void 0),oe([t.Input()],e.prototype,"isActive",void 0),oe([t.Input()],e.prototype,"isCompleted",void 0),e=oe([t.Component({selector:"s-vertical-items",template:'<div class="vertical-items">\n <ng-container *ngFor="let item of items; let index = index;">\n <div\n class="vertical-items__item"\n [ngClass]="{\n \'vertical-items__item--small\': item.testSize(\'small\'),\n \'vertical-items__item--normal\': item.testSize(\'normal\'),\n \'vertical-items__item--completed\': isCompleted,\n \'vertical-items__item--active\': isActive\n }">\n <div class="vertical-items__item__icon-wrapper">\n <s-timeline-icon-item\n [item]="item"\n [isComplete]="isCompleted"\n [isActive]="isActive">\n </s-timeline-icon-item>\n <div\n class="vertical-items__item__icon-wrapper__line"\n [ngStyle]="{ \'visibility\': isLast ? \'hidden\' : \'visible\' }">\n </div>\n </div>\n <div class="vertical-items__item__info">\n <div class="vertical-timeline__item__info__title">\n {{ item.title }}\n </div>\n <div class="vertical-items__item__info__description">\n {{ item.description }}\n </div>\n </div>\n </div>\n </ng-container>\n</div>',styles:['.vertical-items .vertical-items__item{-ms-flex-align:stretch;align-items:stretch;display:-ms-flexbox;display:flex;margin-right:50px}.vertical-items .vertical-items__item .vertical-items__item__collapsed-option{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.vertical-items .vertical-items__item .vertical-items__item__collapsed-option .vertical-items__item__collapsed-option__line{width:3px;height:50px;background-color:#ccc}.vertical-items .vertical-items__item .vertical-items__item__icon-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-negative:0;flex-shrink:0;-ms-flex-pack:center;justify-content:center;width:56px}.vertical-items .vertical-items__item .vertical-items__item__icon-wrapper .vertical-items__item__icon-wrapper__line{background-color:#697882;border-radius:2px;-ms-flex-positive:1;flex-grow:1;min-height:20px;width:3px}.vertical-items .vertical-items__item .vertical-items__item__info{-ms-flex-align:start;align-items:flex-start;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;margin-bottom:12px}.vertical-items .vertical-items__item .vertical-items__item__info .vertical-items__item__info__title{color:#333;font-family:"Open Sans",sans-serif;font-size:14px;font-weight:700;line-height:150%}.vertical-items .vertical-items__item .vertical-items__item__info .vertical-items__item__info__description{color:#999;font-family:"Open Sans",sans-serif;font-size:12px;font-weight:400;line-height:150%}.vertical-items .vertical-items__item .vertical-items__item__info .vertical-items__item__info__description.vertical-items__item__info__description--link{color:#428bca}.vertical-items .vertical-items__item.vertical-items__item--small .vertical-items__item__icon-wrapper__line{height:calc(100% - 4px - 8px)}.vertical-items .vertical-items__item.vertical-items__item--medium .vertical-items__item__icon-wrapper__line{height:calc(100% - 4px - 12px)}.vertical-items .vertical-items__item.vertical-items__item--big .vertical-items__item__icon-wrapper__line{height:calc(50% - 4px - 20px)}.vertical-items .vertical-items__item.vertical-items__item--completed .vertical-items__item__icon-wrapper .vertical-items__item__icon-wrapper__line{background-color:#0c9348}']})],e)}(),ki=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,bi],declarations:[xi,wi,Ci,_i,Ii],exports:[xi]})],e)}(),Ti=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,bi,yi,ki],declarations:[hi],exports:[hi]})],e)}();(di=e.TimelineItemSeverity||(e.TimelineItemSeverity={})).Normal="normal",di.Warning="warning",di.Error="error",(ui=e.TimelineItemSize||(e.TimelineItemSize={})).Normal="normal",ui.Small="small";var Si,Fi=function(){function t(t){this.id=t.id,this.title=t.title,this.description=t.description,this.icon=t.icon,this.label=t.label,this.tooltip=t.tooltip,this.size=t.size||e.TimelineItemSize.Normal,this.severity=t.severity||e.TimelineItemSeverity.Normal,this.checkItemIconContent()}return t.prototype.checkItemIconContent=function(){var e;if(!this.icon&&!this.label)throw new Error("No icon or label string was passed for the item. Enter an icon or label text");if(this.icon&&this.label)throw new Error("An icon and label string were passed to the item. Enter an icon or label text");if((null===(e=this.label)||void 0===e?void 0:e.length)>2)throw new Error("Label text is expected to be a maximum of two characters long")},t.prototype.testSize=function(e){return this.size.valueOf()===e},t.prototype.testSeverity=function(e){var t;return(null===(t=this.severity)||void 0===t?void 0:t.valueOf())===e},t}(),Ei=function(){function e(){this.id="s-tile-"+n.nextId++,this.disabled=!1,this.tabIndex=0,this.onClick=new t.EventEmitter}var n;return n=e,Object.defineProperty(e.prototype,"initialLetter",{get:function(){var e="";if(this.label){var t=this.label.split(" ",2);e=t[0].charAt(0).toUpperCase(),t.length>1&&(e+=t[1].charAt(0).toUpperCase())}return e},enumerable:!0,configurable:!0}),e.prototype.onKeyDown=function(e){!this.disabled&&[13,32].includes(e.keyCode)&&this.onClick.emit()},e.nextId=0,oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"label",void 0),oe([t.Input()],e.prototype,"description",void 0),oe([t.Input()],e.prototype,"iconClass",void 0),oe([t.Input()],e.prototype,"imageSource",void 0),oe([t.Input()],e.prototype,"imageAlt",void 0),oe([t.Input()],e.prototype,"disabled",void 0),oe([t.Input()],e.prototype,"tabIndex",void 0),oe([t.Output()],e.prototype,"onClick",void 0),oe([t.HostListener("keydown",["$event"])],e.prototype,"onKeyDown",null),e=n=oe([t.Component({selector:"s-tile",template:'<div [id]="id" class="container" [attr.tabindex]="disabled ? undefined : tabIndex" [attr.aria-label]="label"\n [attr.aria-disabled]="disabled" role="button" [ngClass]="{\'disabled\': disabled}" (click)="!disabled && onClick.emit($event)">\n <div class="thumbnail-container" *ngIf="imageSource || iconClass">\n <s-thumbnail [id]="id + \'-thumbnail\'" *ngIf="imageSource" [imageSource]="imageSource" [imageAlt]="imageAlt || label"\n size="small" [isTile]="true"></s-thumbnail>\n\n <span [id]="id + \'-icon\'" *ngIf="!imageSource && iconClass" [class]="\'icon \' + iconClass" aria-hidden="true"></span>\n </div>\n <div class="first-letter-container" *ngIf="!iconClass && !imageSource">\n <div class="first-letter-span">\n <span>{{initialLetter}}</span>\n </div>\n </div>\n\n <div class="info-container">\n <span [id]="id + \'-label\'" class="label" [pTooltip]="label" tooltipPosition="top" showDelay="500">{{label}}</span>\n <span [id]="id + \'-description\'" class="description" [pTooltip]="description" tooltipPosition="top" showDelay="500">{{description}}</span>\n </div>\n</div>\n',styles:[":host{display:block}.container{position:relative;background-color:#fff;border:1px solid #ddd;padding:15px;-ms-flex-align:center;align-items:center;cursor:pointer;min-height:80px;overflow:hidden;display:-ms-flexbox;display:flex;transition:background-color .2s ease-out,border-color .2s ease-out}.container:focus:not(.disabled),.container:hover:not(.disabled){background-color:rgba(221,221,221,.2);outline:0}.container.disabled{opacity:.5;filter:Alpha(Opacity=50);background-image:none}.container.disabled,.container.disabled *{cursor:text!important}.thumbnail-container+.info-container{margin-left:15px}.info-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;overflow:hidden}.info-container span{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.label{color:#428bca;font-size:12pt}.description{color:#999}.icon{color:#428bca;font-size:40px}.first-letter-container{position:relative;float:left;margin-right:10px;text-align:center}.first-letter-container .first-letter-span{margin:0 auto 5px;font-size:22px;line-height:1.8em;width:40px;height:40px;border-radius:100%;background-color:#428bca;color:#fff}"]})],e)}(),Li=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,l.TooltipModule,Qn],declarations:[Ei],exports:[Ei,Qn]})],e)}();(Si=e.GlobalSearchSizeEnum||(e.GlobalSearchSizeEnum={})).STANDARD="STANDARD",Si.MEDIUM="MEDIUM",Si.SMALL="SMALL";var Mi=function(){function n(){this.id="s-global-search-dropdown-item-"+i.nextId++,this.size=e.GlobalSearchSizeEnum.STANDARD,this.buttonClick=new t.EventEmitter}var i;return i=n,n.prototype.isStandardSize=function(){return this.size===e.GlobalSearchSizeEnum.STANDARD},n.prototype.isMediumSize=function(){return this.size===e.GlobalSearchSizeEnum.MEDIUM},n.prototype.isSmallSize=function(){return this.size===e.GlobalSearchSizeEnum.SMALL},n.prototype.getImageSize=function(){return this.isStandardSize()?"medium":"small"},n.nextId=0,oe([t.Input()],n.prototype,"id",void 0),oe([t.Input()],n.prototype,"primaryLabel",void 0),oe([t.Input()],n.prototype,"secondaryEmptyLabel",void 0),oe([t.Input()],n.prototype,"tertiaryEmptyLabel",void 0),oe([t.Input()],n.prototype,"imageSource",void 0),oe([t.Input()],n.prototype,"imageAlt",void 0),oe([t.Input()],n.prototype,"iconClass",void 0),oe([t.Input()],n.prototype,"secondaryLabel",void 0),oe([t.Input()],n.prototype,"tertiaryLabel",void 0),oe([t.Input()],n.prototype,"size",void 0),oe([t.Input()],n.prototype,"template",void 0),oe([t.Output()],n.prototype,"buttonClick",void 0),oe([t.ContentChild(Jn,{static:!0})],n.prototype,"thumbnailComponent",void 0),oe([t.ViewChild(t.TemplateRef,{static:!0})],n.prototype,"content",void 0),n=i=oe([t.Component({selector:"s-global-search-dropdown-item",template:'<ng-template>\n <div class="{{isSmallSize() ? \'ui-g container\' : \'container\'}}">\n <ng-content select="s-thumbnail"></ng-content>\n <s-thumbnail [id]="id + \'-thumbnail\'"\n *ngIf="!thumbnailComponent && (imageSource || iconClass) && !isSmallSize()" [imageSource]="imageSource"\n [imageAlt]="imageAlt || primaryLabel" [iconClass]="iconClass" [size]="getImageSize()"></s-thumbnail>\n\n <div class="global-search-item__container {{!isSmallSize() ? \'global-search-item__container--width-60\' : \'\'}}">\n <div #titleTemplate>\n <ng-content select="[titleTemplate]"></ng-content>\n </div>\n <s-button styleClass="no-padding" class="{{isSmallSize() ? \'ui-g-6 no-padding\' : \'\'}}" [id]="id + \'-title\'"\n *ngIf="!titleTemplate.children.length" priority="link" [pTooltip]="primaryLabel" [label]="primaryLabel"\n size="small" (onClick)="buttonClick.emit($event)">\n </s-button>\n\n <div #labelTemplate>\n <ng-content select="[labelTemplate]"></ng-content>\n </div>\n <span [id]="id + \'-label\'" [ngClass]="{\'ui-g-6 global-search-item__text-align--right\': isSmallSize(), \'global-search-item__italic\' : !secondaryLabel}"\n class="label" *ngIf="!labelTemplate.children.length"\n [pTooltip]="secondaryLabel" tooltipPosition="top" showDelay="500">{{ secondaryLabel ? secondaryLabel : secondaryEmptyLabel }}</span>\n\n <div #descriptionTemplate>\n <ng-content select="[descriptionTemplate]"></ng-content>\n </div>\n <span [id]="id + \'-description\'" class="description"\n [ngClass]="{\'global-search-item__italic\' : !secondaryLabel}"\n *ngIf=" !descriptionTemplate.children.length && !isMediumSize() && !isSmallSize()"\n [pTooltip]="tertiaryLabel" tooltipPosition="top" showDelay="500">{{ tertiaryLabel ? tertiaryLabel : tertiaryEmptyLabel }}</span>\n </div>\n <div class="global-search-item__container--width-40 global-search__dropdown--template" *ngIf="!isSmallSize()">\n <ng-container *ngTemplateOutlet="template"></ng-container>\n </div>\n </div>\n</ng-template>\n',styles:[".container{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:100%;border-bottom:1px solid #ccc;padding:15px 5px;margin:0 10px}::ng-deep .no-padding{padding:0!important;min-width:0!important}::ng-deep .s-button-with-text{min-width:0!important}.global-search-item__italic{font-style:italic}.global-search-item__container{margin-left:10px;width:100%}.global-search-item__container,.global-search-item__container span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.global-search-item__container .label{color:#333;display:block}.global-search-item__container .description{color:#999;display:block}.global-search-item__container--width-60{width:60%}.global-search-item__container--width-40{width:40%}.global-search-item__text-align--right{text-align:right;padding:2px 0 0 15px}.global-search__dropdown--template{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;text-align:right!important}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.global-search-item__container{-ms-flex:1;flex:1}}@media (max-width:767px){.global-search-item__container,.global-search-item__container span{white-space:normal}}.global-search-item__container:only-child{margin-left:0}"]})],n)}(),Oi=function(){function e(e){this.cdr=e,this.id="s-global-search-"+Mi.nextId++,this.delay=500,this.isLoading=!1,this.showFooter=!0,this.onSearch=new t.EventEmitter,this.onFocus=new t.EventEmitter,this.onShowMore=new t.EventEmitter,this.wasSearched=!1,this.isModalLoading=!1,this.expanded=!0}return e.prototype.onChange=function(){var e=this,t=this.search;setTimeout((function(){e.search===t&&(e.canShowGlobalSearchActive(),e.onSearch.emit(e.search))}),this.delay)},e.prototype.focusIn=function(){this.onFocus.emit(!0)},e.prototype.focusOut=function(){this.onFocus.emit(!1)},e.prototype.showMore=function(){this.onShowMore.emit()},e.prototype.removeActiveClassByGlobalSearch=function(){At.removeClass(this.globalSearch,"global-search__input-active")},e.prototype.close=function(){this.search=null,this.wasSearched=!1,this.dropdownItens=null,this.isModalLoading=!1,this.removeActiveClassByGlobalSearch()},e.prototype.canShowGlobalSearchActive=function(){this.wasSearched=!!this.search,this.search?At.addClass(this.globalSearch,"global-search__input-active"):(this.removeActiveClassByGlobalSearch(),this.close()),this.cdr.detectChanges()},e.nextId=0,e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},oe([t.ViewChild("globalSearch",{static:!1})],e.prototype,"globalSearch",void 0),oe([t.Input()],e.prototype,"id",void 0),oe([t.Input()],e.prototype,"delay",void 0),oe([t.Input()],e.prototype,"totalItensLabel",void 0),oe([t.Input()],e.prototype,"showMoreLabel",void 0),oe([t.Input()],e.prototype,"placeholder",void 0),oe([t.Input()],e.prototype,"isLoading",void 0),oe([t.Input()],e.prototype,"totalElements",void 0),oe([t.Input()],e.prototype,"emptyTitle",void 0),oe([t.Input()],e.prototype,"emptyDescription",void 0),oe([t.Input()],e.prototype,"emptyIcon",void 0),oe([t.Input()],e.prototype,"showFooter",void 0),oe([t.ContentChildren(Mi)],e.prototype,"dropdownItens",void 0),oe([t.Output()],e.prototype,"onSearch",void 0),oe([t.Output()],e.prototype,"onFocus",void 0),oe([t.Output()],e.prototype,"onShowMore",void 0),e=oe([t.Component({selector:"s-global-search",template:'<div class="ui-inputgroup">\n <input #globalSearch class="global-search__input" [(ngModel)]="search" (ngModelChange)="onChange()" pInputText\n [placeholder]="placeholder" (focus)="focusIn()" (blur)="focusOut()">\n <span class="ui-inputgroup-addon global-search__span"><em class="fas fa-search"></em></span>\n <div class="global-search__modal" *ngIf="wasSearched">\n <div *sLoadingState="isLoading && !isModalLoading" class="global-search__loader">\n <div class="global-search__container" *ngIf="dropdownItens && dropdownItens.length > 0 || isLoading">\n <div *ngIf="dropdownItens && dropdownItens.length > 0">\n <div class="global-search__modal--total-itens-title">\n <span class="ui-g-11 no-space">{{totalItensLabel}}</span>\n <span class="ui-g-1 no-space global-search__modal--total-itens-title-icon" (click)="close()"><em\n class="fas fa-times"></em></span>\n </div>\n <div class="no-space global-search__dropdown--itens"\n [@expandableContent]="expanded">\n <ng-container *ngFor="let item of dropdownItens">\n <div class="s-object-card-field no-space global-search__dropdown--itens-container">\n <ng-container *ngTemplateOutlet="item.content"></ng-container>\n </div>\n </ng-container>\n </div>\n <div *ngIf="showFooter" class="ui-g-12 global-search__modal--footer">\n <s-button class="global-search__show-more" (click)="showMore()" priority="link">\n {{showMoreLabel}}\n </s-button>\n </div>\n </div>\n </div>\n <s-empty-state *ngIf="(!dropdownItens || dropdownItens.length==0) && !isLoading" [title]="emptyTitle"\n [description]="emptyDescription" ngClass="global-search__empty-state--icon"\n [iconClass]="(emptyIcon ? emptyIcon : \'fas fa-search\')">\n </s-empty-state>\n </div>\n </div>\n <div *ngIf="wasSearched" class="global-search__background" (click)="close()"></div>\n</div>\n',animations:[d.trigger("expandableContent",[d.state("*",d.style({height:"0"})),d.state("false",d.style({height:"0"})),d.state("true",d.style({height:"*"})),d.transition("* => true",d.animate("200ms ease-out")),d.transition("false <=> true",d.animate("200ms ease-out"))])],styles:[".global-search__input{border-radius:20px 0 0 20px;width:136px;cursor:pointer;padding:0 0 0 15px;transition:.3s}.ui-inputtext{min-height:25px!important;height:25px!important}.global-search__span{transition:.3s;background:0 0!important;border-left:none;border-radius:0 20px 20px 0!important;padding:1px 15px 0 0!important;height:25px!important}.global-search__input:active,.global-search__input:focus{width:466px;cursor:default;transition:.3s;border-top:1px solid #428bca;border-left:1px solid #428bca;border-bottom:1px solid #428bca}.global-search__input:active,.global-search__input:focus+.global-search__span{transition:.3s;border-left:none;border-top:1px solid #428bca!important;border-right:1px solid #428bca!important;border-bottom:1px solid #428bca!important}.global-search__input-active{width:466px;cursor:default;transition:.3s}.global-search__modal{box-shadow:0 2px 8px 0 rgba(0,0,0,.4);border-radius:5px;width:500px;background:#fff;position:absolute;margin-top:60px;z-index:6;min-height:50px}::ng-deep .global-search__loader{border-radius:5px!important;width:100%}.global-search__container{min-height:50px;width:100%}.global-search__modal--total-itens-title{padding:15px;color:#333;border-bottom:1px solid #ccc;font-weight:600;height:50px}.global-search__modal--footer{height:50px;border-top:1px solid #ccc}.global-search__dropdown--itens{max-height:510px;overflow:auto}.global-search__dropdown--itens-container:hover{background:#dbe0e4}.global-search__modal--total-itens-title-icon{text-align:right;cursor:pointer}.global-search__background{background:rgba(0,0,0,.4);width:100%;height:calc(100vh - 70px);position:absolute;left:0;margin-top:50px;z-index:5;cursor:pointer}.no-space{padding:0;margin:0}.global-search__show-more{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}body .global-search__show-more--button{color:#428bca!important}.modal{position:absolute;left:1%;width:98%;height:calc(100vh - 90px)}.global-search__empty-state--icon{margin:42px 134px}::ng-deep .global-search__empty-state--icon .container .icon{font-size:40px}::ng-deep .s-button-priority-link{color:#428bca}@media all and (max-width:900px){.global-search__modal{top:20px;width:98%;left:1%}.global-search__input-active,.global-search__input:active,.global-search__input:focus{position:absolute;width:calc(100% - 70px);left:2%}body .global-search__dropdown--itens{max-height:100%;overflow:auto}}@media all and (max-width:767px){.global-search__modal{top:15px}.global-search__input-active,.global-search__input:active,.global-search__input:focus{width:calc(100% - 55px)}}@media all and (max-width:600px){.global-search__modal--itens{height:calc(100vh - 100px);background:#fff}.global-search__input-active,.global-search__input:active,.global-search__input:focus{position:absolute;width:calc(100% - 53px);left:2%}body .global-search__dropdown--itens{max-height:100%;overflow:auto}.global-search__dropdown--itens{max-height:100%;background:#fff}.global-search__modal--footer{background:#fff;height:50px}.global-search__modal{top:17px;border-radius:0;margin-top:55px;box-shadow:none;left:0;width:100%}}"]})],e)}(),Ai=function(){function e(e){this.el=e,this.onScroll=new t.EventEmitter}return e.prototype.scroll=function(){this.el.nativeElement.scrollTop>this.el.nativeElement.scrollHeight-this.el.nativeElement.offsetHeight-2&&this.onScroll.emit()},e.ctorParameters=function(){return[{type:t.ElementRef}]},oe([t.Output()],e.prototype,"onScroll",void 0),oe([t.HostListener("scroll")],e.prototype,"scroll",null),e=oe([t.Directive({selector:"[sInfiniteScroll]"})],e)}(),Di=function(){function e(){}return e=oe([t.NgModule({declarations:[Ai],imports:[n.CommonModule],exports:[Ai]})],e)}(),Ri=function(){function e(){}return e=oe([t.NgModule({declarations:[Oi,Mi],imports:[n.CommonModule,L.InputTextModule,u.FormsModule,u.ReactiveFormsModule,l.TooltipModule,Qn,ve,Pt,Di,Et],exports:[Oi,Mi,l.TooltipModule,Qn,ve,Pt,Et],entryComponents:[Oi,Mi]})],e)}();(e.Languages||(e.Languages={})).TaxCalculation="TaxCalculation",(e.Themes||(e.Themes={})).SDSLight="SDSLight";var Ni,zi,Bi,Vi,Ui,Pi,ji=function(){function e(){}return e.getLinter=function(t){var n=e._LINTERS.get(t);if(n)return n()},e._LINTERS=new Map([]),e}(),Hi=function(){function t(){this.$onCoreFinishLoad=new r.ReplaySubject(1),this.$onCodeChange=new r.Subject,this.$onCodeValidityChange=new r.Subject,this._completionItems=[],this._lastCodeEmitted=""}return t.prototype.changeEditorOptions=function(e){if(e){if("object"!=typeof e)throw new Error("Editor's options must be an EditorOptions object");this.validateLanguage(e.language),this.validateTheme(e.theme),this.setLinter(e.language),this.setCoreEditorOptions(e)}},t.prototype.changeCode=function(e){var t=this.getSafeCode(e);t!==this._lastCodeEmitted&&this.setCode(t)},t.prototype.getOnCoreFinishLoadObservable=function(){return this.$onCoreFinishLoad.asObservable()},t.prototype.getOnCodeChangeObservable=function(){return this.$onCodeChange.asObservable()},t.prototype.getOnCodeValidityChangeObservable=function(){return this.$onCodeValidityChange.asObservable()},t.prototype.notifyCoreFinishLoad=function(){this.$onCoreFinishLoad.next()},t.prototype.notifyCodeChange=function(e){var t=this.getSafeCode(e);t!==this._lastCodeEmitted&&(this._lastCodeEmitted=t,this.$onCodeChange.next(t),this.validateCode(t))},t.prototype.updateCompletionItems=function(e){this._completionItems=e||[],this.validateCode(this._lastCodeEmitted)},t.prototype.setLinter=function(e){this._linter=ji.getLinter(e)},t.prototype.validateCode=function(e){return ae(this,void 0,void 0,(function(){var t;return se(this,(function(n){switch(n.label){case 0:return this._linter?[4,this._linter.lint(e,this._completionItems)]:[3,2];case 1:t=n.sent(),this.highlightCode(t),this.notifyCodeValidityChange(!t.length),n.label=2;case 2:return[2]}}))}))},t.prototype.notifyCodeValidityChange=function(e){e!==this._lastCodeValidityEmitted&&(this._lastCodeValidityEmitted=e,this.$onCodeValidityChange.next(e))},t.prototype.validateLanguage=function(t){var n=Object.values(e.Languages);if(t&&!n.includes(t))throw new Error('The informed language "'+t+'" is not supported')},t.prototype.validateTheme=function(t){var n=Object.values(e.Themes);if(t&&!n.includes(t))throw new Error('The informed theme "'+t+'" is not supported')},t.prototype.getSafeCode=function(e){return"string"==typeof e?e:""},t}(),$i=function(){function e(e){this.coreFacade=e,this._ngUnsubscribe=new r.Subject,this.codeChange=new t.EventEmitter,this.isCodeValidChange=new t.EventEmitter,this.onCodeChange=new t.EventEmitter,this.onComponentFinishLoad=new t.EventEmitter}return Object.defineProperty(e.prototype,"editorOptions",{set:function(e){this.coreFacade.changeEditorOptions(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"code",{set:function(e){this.coreFacade.changeCode(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this.coreFacade.initCore(),this.setupCoreListeners()},e.prototype.ngAfterViewInit=function(){this.setCoreWrapperElement()},e.prototype.ngOnDestroy=function(){this.coreFacade.destroyCore(),this._ngUnsubscribe.next(),this._ngUnsubscribe.complete()},e.prototype.setCoreWrapperElement=function(){this.coreFacade.setCoreWrapperElement(this.coreWrapperElement.nativeElement)},e.prototype.setupCoreListeners=function(){var e=this;this.coreFacade.getOnCoreFinishLoadObservable().pipe(a.take(1)).subscribe((function(){return e.onComponentFinishLoad.emit()})),this.coreFacade.getOnCodeChangeObservable().pipe(a.takeUntil(this._ngUnsubscribe)).subscribe((function(t){e.codeChange.emit(t),e.onCodeChange.emit(t)})),this.coreFacade.getOnCodeValidityChangeObservable().pipe(a.takeUntil(this._ngUnsubscribe)).subscribe((function(t){e.isCodeValidChange.emit(t)}))},e.ctorParameters=function(){return[{type:Hi}]},oe([t.ViewChild("coreWrapper")],e.prototype,"coreWrapperElement",void 0),oe([t.Input()],e.prototype,"editorOptions",null),oe([t.Input()],e.prototype,"code",null),oe([t.Output()],e.prototype,"codeChange",void 0),oe([t.Input()],e.prototype,"isCodeValid",void 0),oe([t.Output()],e.prototype,"isCodeValidChange",void 0),oe([t.Output()],e.prototype,"onCodeChange",void 0),oe([t.Output()],e.prototype,"onComponentFinishLoad",void 0),e=oe([t.Component({selector:"s-code-editor",template:'<div #coreWrapper class="core-wrapper"></div>',styles:[".core-wrapper{height:100%}"]})],e)}();!function(e){e.ASC="ASC",e.DESC="DESC"}(Ni||(Ni={})),function(e){e.ENTITY="ENTITY",e.STRING="STRING",e.INTEGER="INTEGER",e.DOUBLE="DOUBLE",e.LONG="LONG",e.BIGDECIMAL="BIGDECIMAL",e.UUID="UUID",e.DATE="DATE",e.DATETIME="DATETIME",e.LOCALDATETIME="LOCALDATETIME",e.TIME="TIME",e.BOOLEAN="BOOLEAN",e.LIST="LIST",e.ENUM="ENUM",e.CUSTOM_EXPRESSION="CUSTOM_EXPRESSION",e.PUBLIC_EXPRESSION="PUBLIC_EXPRESSION"}(zi||(zi={})),function(e){e[e.ListContextMetadataById=0]="ListContextMetadataById",e[e.ListExpressionMetadata=1]="ListExpressionMetadata",e[e.ListFacadeMetadataNames=2]="ListFacadeMetadataNames",e[e.GetFacadeMetadataByPath=3]="GetFacadeMetadataByPath"}(Bi||(Bi={})),function(e){e.Keyword="keyword",e.Context="context",e.Expression="expression",e.UserExpression="userExpression",e.Entity="entity",e.FinalValue="finalValue"}(Vi||(Vi={})),function(e){e.SE="SE",e.SENAO="SENAO",e.CONTENHA="CONTENHA",e.ENTAO="ENTAO",e.FIM_SE="FIM_SE",e.NAO="NAO",e.E="E",e.OU="OU"}(Ui||(Ui={}));var Gi=W.LRLanguage.define({parser:Y.buildParser('\n@top Script { statement+ }\n\nstatement[@isGroup=Statement] {\n Keyword |\n String |\n Number\n}\n\n@tokens {\n String { \'"\' (![\\n"])* \'"\'? }\n\n Number { std.digit+ }\n\n identifierChar { std.asciiLetter | $[_$¡-􏿿] }\n\n word { identifierChar (identifierChar | std.digit)* }\n\n identifier { word }\n}\n\nKeyword {\n kw<"SE">\n kw<"ENTAO">\n kw<"FIM_SE">\n kw<"SENAO">\n kw<"NAO">\n kw<"CONTENHA">\n kw<"OU">\n kw<"E">\n}\n\nkw<term> { @specialize[@name={term}]<identifier, term> }\n\n@detectDelim\n').configure({props:[X.styleTags((Pi={},Pi[Object.values(Ui).join(" ")]=X.tags.keyword,Pi.String=X.tags.string,Pi.Number=X.tags.number,Pi))]})});function qi(e){return ae(this,void 0,void 0,(function(){return se(this,(function(t){return[2,e.json()]}))}))}function Ki(e){return ae(this,void 0,void 0,(function(){var t;return se(this,(function(n){switch(n.label){case 0:return[4,e.blob()];case 1:return[4,n.sent().text()];case 2:return t=n.sent(),[2,JSON.parse(t)]}}))}))}var Wi,Yi=function(){function e(){}return e.GET=function(e,t){return void 0===t&&(t={}),ae(this,void 0,void 0,(function(){var n;return se(this,(function(i){switch(i.label){case 0:return[4,this.interceptRequest(e,ie(ie({},t),{method:"GET"}))];case 1:return n=i.sent(),[2,this.formatResponse(n)]}}))}))},e.POST=function(e,t,n){return void 0===n&&(n={}),ae(this,void 0,void 0,(function(){var i,o;return se(this,(function(r){switch(r.label){case 0:return(i=new Headers(n.headers)).append("Content-Type","application/json"),i.append("Accept","application/json"),[4,this.interceptRequest(e,ie(ie({},n),{method:"POST",body:JSON.stringify(t),headers:i}))];case 1:return o=r.sent(),[2,this.formatResponse(o)]}}))}))},e.interceptRequest=function(e,t){return void 0===t&&(t={}),ae(this,void 0,void 0,(function(){var n,i,o,r,a;return se(this,(function(s){switch(s.label){case 0:return s.trys.push([0,4,,5]),e.includes("://")?[3,3]:[4,x.service.getRestUrl()];case 1:return n=s.sent(),[4,x.user.getAuthHeader()];case 2:return i=s.sent(),(o=new Headers(t.headers)).append("Authorization",i),r=new Request(n+e,ie(ie({},t),{headers:o})),[2,fetch(r)];case 3:return[2,fetch(e,t)];case 4:throw a=s.sent(),new Error("Error fetching requested URL: "+a);case 5:return[2]}}))}))},e.formatResponse=function(t){return ae(this,void 0,void 0,(function(){var n,i,o,r;return se(this,(function(a){switch(a.label){case 0:return n=t.headers.get("content-type"),(i=e._responseFormatterMap.get(n))?[4,i(t)]:[3,2];case 1:return r=a.sent(),[3,3];case 2:r={},a.label=3;case 3:if(o=r,t.ok)return[2,o];throw new Error(JSON.stringify(o))}}))}))},e._responseFormatterMap=new Map([["application/json",qi],["application/octet-stream",Ki]]),e}(),Xi=function(){function e(){}return e.translate=function(t){var n,i;if(null==t)return"";var o=""+e._TRANSLATION_PREFIX+t;return null!==(i=(null!==(n=Object.values(e._translations)[0])&&void 0!==n?n:{})[o])&&void 0!==i?i:o},e.setTranslations=function(t){e._translations=null!=t?t:{}},e.setTranslationsPrefix=function(t){var n=null!=t?t:{},i=n.domain+"."+n.service+".";e._TRANSLATION_PREFIX=i},e._translations={},e._TRANSLATION_PREFIX="",e}(),Zi=function(){function e(e,t){this.translate=e,this.hostProjectConfigs=t,this.factoryTranslations(this.translate,this.hostProjectConfigs)}return e.prototype.factoryTranslations=function(e,t){Xi.setTranslations(e.translations),Xi.setTranslationsPrefix(t)},e.ctorParameters=function(){return[{type:V.TranslateService},{type:void 0,decorators:[{type:t.Inject,args:[Qt]}]}]},e=oe([t.NgModule(),re(1,t.Inject(Qt))],e)}();!function(e){e[e.Error=0]="Error",e[e.Info=1]="Info",e[e.Warning=2]="Warning"}(Wi||(Wi={}));var Ji=new Map([[Wi.Error,"error"],[Wi.Info,"info"],[Wi.Warning,"warning"]]);var Qi=function(){function e(){}return e.listContextMetadataById=function(t,n){return ae(this,void 0,void 0,(function(){return se(this,(function(i){return[2,Yi.POST(e.BASE_URL+"/queries/listContextMetadataById",t,{signal:n})]}))}))},e.listExpressionMetadata=function(t,n){return ae(this,void 0,void 0,(function(){return se(this,(function(i){return[2,Yi.POST(e.BASE_URL+"/queries/listExpressionMetadata",t,{signal:n})]}))}))},e.listFacadeMetadataNames=function(t,n){return ae(this,void 0,void 0,(function(){return se(this,(function(i){return[2,Yi.POST(e.BASE_URL+"/queries/listFacadeMetadataNames",t,{signal:n})]}))}))},e.getFacadeMetadataByPath=function(t,n){return ae(this,void 0,void 0,(function(){return se(this,(function(i){return[2,Yi.POST(e.BASE_URL+"/queries/getFacadeMetadataByPath",t,{signal:n})]}))}))},e.BASE_URL="platform/rule_metadata",e}();var eo,to,no=null;function io(){return[q.StateField.define({create:ro,update:function(e,t){return ro(t.state)},provide:function(e){return J.showTooltip.compute([e],(function(t){return t.field(e)}))}}),G.EditorView.theme({".s-code-editor-taxCalculation-autocomplete-ul":{padding:".75rem !important"},".s-code-editor-taxCalculation-autocomplete-li":{cursor:"default !important","line-height":"1.375em !important"}})]}function oo(e){no=e,ko.updateEditorView()}function ro(e){if(no){var t=no.outerHTML,n={pos:e.selection.ranges[0].head,create:function(){return{dom:ao(t)}}};return no=null,n}}function ao(e){var t=document.createElement("div");return t.className="cm-tooltip-autocomplete cm-tooltip",t.innerHTML='\n <ul class="s-code-editor-taxCalculation-autocomplete-ul">\n <li class="s-code-editor-taxCalculation-autocomplete-li">\n '+e+"\n </li>\n </ul>\n\n ",t}function so(){var e;eo||((e=document.createElement("span")).innerText=Xi.translate("core_language_tax_calculation_fetching_suggestions"),eo=e),oo(eo)}function lo(){var e;to||((e=document.createElement("span")).innerText=Xi.translate("core_language_tax_calculation_no_suggestions"),to=e),oo(to)}var co=function(){function e(){}return e.setConfigs=function(t){e.CONFIGS=JSON.parse(JSON.stringify(t))},e.getConfigs=function(){return e.CONFIGS},e.CONFIGS={contexts:[]},e}();function po(e){return'"\\'+e+'"'}var uo,mo="core_language_tax_calculation";function fo(e){if(!function(e){var t;return((null===(t=e.match(/"/g))||void 0===t?void 0:t.length)||0)%2!=0}(e.state.doc.toString().substring(0,e.pos))){if(uo){var t=ie({},uo),n=e.state.doc.toString().length;return t.from=t.from>n?n:t.from,uo=null,t}!function(e){var t=new AbortController;setTimeout((function(){t.signal.aborted||(so(),function(e,t){var n,i,o,r;ae(this,void 0,void 0,(function(){var a,s,l,c;return se(this,(function(p){return a=null!==(r=null===(i=null===(n=null==e?void 0:e.state)||void 0===n?void 0:n.doc)||void 0===i?void 0:i.toString().substring(0,null!==(o=null==e?void 0:e.pos)&&void 0!==o?o:0))&&void 0!==r?r:"",s=function(e){var t,n;return null==e?"":(null!==(n=null===(t=e.match(/(#|\.|)\w*$/))||void 0===t?void 0:t[0])&&void 0!==n?n:"").replace(".","").trim()}(a),l=function(e,t){var n,i;if(null==e)return"";var o=e.substring(0,e.length-t);return(null!==(i=null===(n=o.match(/(\w*\.)*$/))||void 0===n?void 0:n[0])&&void 0!==i?i:"").replace(/\.$/,"")}(a,s.length),c=function(e,t,n){var i,o=function(){var e,t=co.getConfigs();if(!(null===(e=t.contexts)||void 0===e?void 0:e.length))throw new Error("In order to use the TaxCalculation Language's autocomplete, one must inform at least one context by using the 'TaxCalculationLanguageConfigs.setConfigs()'");return t}(),r=[];if(""===e)r.push({requestType:Bi.ListContextMetadataById,request:Qi.listContextMetadataById({id:o.contexts},n)}),r.push({requestType:Bi.ListExpressionMetadata,request:Qi.listExpressionMetadata({context:o.contexts,subcontext:null!==(i=o.subContexts)&&void 0!==i?i:[],name:t,pageRequest:{offset:0,size:20}},n)});else if(e.includes(".")){var a=e.split(".");r.push({requestType:Bi.GetFacadeMetadataByPath,request:Qi.getFacadeMetadataByPath({context:a[0],entityName:a[1],fields:void 0===a[2]?void 0:a.slice(2)},n)})}else r.push({requestType:Bi.ListFacadeMetadataNames,request:Qi.listFacadeMetadataNames({context:[e],name:t,pageRequest:{offset:0,size:30}},n)});return r.map((function(e){return function(e){return ae(this,void 0,void 0,(function(){var t,n;return se(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),t=[ie({},e)],n={},[4,e.request];case 1:return[2,ie.apply(void 0,t.concat([(n.response=i.sent(),n)]))];case 2:return i.sent(),[3,3];case 3:return[2]}}))}))}(e)}))}(l,s,t.signal),Promise.all(c).then((function(n){if(!t.signal.aborted){var i=function(e,t){return e.filter((function(e){return e.label.toLowerCase().startsWith(t.toLowerCase())}))}([].concat(function(e){return""!==e?[]:[{label:Ui.SE,apply:"SE ()\nENTAO\n\tacao\nFIM_SE"},{label:Ui.SENAO,apply:"SENAO\n\tacao"},{label:Ui.CONTENHA,apply:"CONTENHA(condicao)"},{label:Ui.ENTAO,apply:"ENTAO\n\tacao"},{label:Ui.FIM_SE,apply:"FIM_SE "},{label:Ui.NAO,apply:"NAO "},{label:Ui.E,apply:"E "},{label:Ui.OU,apply:"OU "}].map((function(e){return ie(ie({},e),{detail:Xi.translate(mo+"_keyword"),type:Vi.Keyword})}))}(l),function(e){var t,n,i=e.find((function(e){return(null==e?void 0:e.requestType)===Bi.ListContextMetadataById}));if(i)return(null!==(n=null===(t=i.response)||void 0===t?void 0:t.contextMetadata)&&void 0!==n?n:[]).map((function(e){return{label:e.name,detail:Xi.translate(mo+"_context"),apply:e.name,type:Vi.Context}}));return[]}(n),function(e){var t,n,i=e.find((function(e){return(null==e?void 0:e.requestType)===Bi.ListExpressionMetadata}));if(i)return(null!==(n=null===(t=i.response)||void 0===t?void 0:t.expressionMetadata)&&void 0!==n?n:[]).map((function(e){return{label:e.name,detail:Xi.translate(mo+"_"+(e.type===zi.PUBLIC_EXPRESSION?"senior_expression":"user_expression")),apply:e.name,info:e.description,type:e.type===zi.PUBLIC_EXPRESSION?Vi.Expression:Vi.UserExpression}}));return[]}(n),function(e){var t,n,i,o,r,a=e.find((function(e){return(null==e?void 0:e.requestType)===Bi.ListFacadeMetadataNames}));if(a)return(null!==(n=null===(t=a.response)||void 0===t?void 0:t.facadeMetadataNames)&&void 0!==n?n:[]).map((function(e){return{label:e.name,detail:Xi.translate(mo+"_entity"),apply:e.name,type:Vi.Entity}}));var s=e.find((function(e){return(null==e?void 0:e.requestType)===Bi.GetFacadeMetadataByPath}));if(s)return(null!==(r=null===(o=null===(i=s.response)||void 0===i?void 0:i.facadeMetadata)||void 0===o?void 0:o.fields)&&void 0!==r?r:[]).map((function(e){return{label:e.name,detail:Xi.translate(mo+"_"+(e.type===zi.ENTITY?"entity":"field")),apply:e.name,type:e.type===zi.ENTITY?Vi.Entity:Vi.FinalValue}}));return[]}(n)),s);if(i.length){var o=function(e){return e.sort((function(e,t){return vo.indexOf(e.type)-vo.indexOf(t.type)}))}(function(e,t){return e.map((function(e){return ie(ie({},e),{apply:bo(t,""+e.apply)})}))}(i,s));uo={from:e.pos,filter:!1,options:o},Z.startCompletion(ko.getEditorView())}else lo()}})),[2]}))}))}(e,t))}),500),ho=ko.getEditorView().contentDOM,go=function(){ho.removeEventListener("keydown",go),ho.removeEventListener("click",go),t.abort()},ho.addEventListener("keydown",go),ho.addEventListener("click",go)}(e)}}var ho,go=function(){};function bo(e,t){return function(n,i,o,r){var a=o-e.length;n.dispatch({changes:{from:a,to:r,insert:t},selection:{anchor:a+t.length},userEvent:"input.complete",annotations:Z.pickedCompletion.of(i)})}}var vo=[Vi.Keyword,Vi.Context,Vi.UserExpression,Vi.Expression,Vi.Entity,Vi.FinalValue];function yo(){return new W.LanguageSupport(Gi,[[Z.autocompletion({override:[fo]}),[io()],[io()],G.EditorView.theme({".cm-completionIcon":{"font-family":"'Font Awesome 5 Pro'","font-weight":"900"},".cm-completionIcon-keyword::after":{content:po("f084")},".cm-completionIcon-context::after":{content:po("f466")},".cm-completionIcon-expression::after":{content:po("f505")},".cm-completionIcon-userExpression::after":{content:po("f4ff")},".cm-completionIcon-entity::after":{content:po("f126")},".cm-completionIcon-finalValue::after":{content:po("f192")}})]])}var xo=function(){function t(){}return t.getLanguage=function(e){var n=t._LANGUAGES.get(e);return n?n():[]},t._LANGUAGES=new Map([[e.Languages.TaxCalculation,yo]]),t}();var wo=X.HighlightStyle.define([{tag:X.tags.keyword,color:"#008080"},{tag:X.tags.string,color:"#9C3A3A"},{tag:X.tags.number,color:"#400753"}]);var Co={"font-family":"'Noto Sans Mono', 'sans-serif'","font-style":"normal","font-size":"1rem"};function _o(){return[[G.EditorView.theme({"&.cm-editor.cm-focused":{outline:"none"}}),[G.EditorView.baseTheme({"&.cm-editor":{height:"100%"}})],[G.EditorView.theme({".cm-scroller":ie(ie({},Co),{"letter-spacing":"0","line-height":"1.5em","font-variation-settings":"'wght' 400",color:"#333333"}),".cm-tooltip.cm-tooltip-autocomplete > ul":ie(ie({},Co),{"font-variation-settings":"'wght' 300",color:"#697882"}),".cm-tooltip.cm-tooltip-autocomplete > ul .cm-completionLabel":{"line-height":"1.5em","font-variation-settings":"'wght' 500"},".cm-tooltip.cm-tooltip-autocomplete > ul .cm-completionDetail":{"font-size":"0.875em","font-style":"normal","margin-left":"0.75rem"}})],[Q.lineNumbers(),G.EditorView.theme({".cm-gutters":{"background-color":"#fff",color:"#428BCA","border-right":"none"},".cm-gutter":{padding:"0 2rem 0 2rem"}})],[G.EditorView.baseTheme({".cm-tooltip":{border:"none !important","border-radius":"4px","background-color":"#E5EAEA !important"},".cm-tooltip.cm-tooltip-autocomplete > ul[role='listbox']":{padding:"1rem"},".cm-tooltip.cm-tooltip-autocomplete > ul .cm-completionDetail":{"margin-left":".75rem"},".cm-tooltip.cm-tooltip-autocomplete > ul .cm-completionDetail::before":{content:"'[ '"},".cm-tooltip.cm-tooltip-autocomplete > ul .cm-completionDetail::after":{content:"' ]'"},".cm-tooltip.cm-tooltip-autocomplete > ul .cm-completionIcon":{"padding-right":0,"margin-right":".475rem",width:"1rem"},".cm-tooltip-autocomplete ul li[aria-selected]":{"border-radius":"4px","background-color":"#5D96A2 !important",color:"#fff !important"},".cm-tooltip.cm-completionInfo.cm-completionInfo-right":{"border-radius":"3px","box-shadow":"0 2px 4px -1px rgb(0 0 0 / 20%), 0 4px 5px 0 rgb(0 0 0 / 14%), 0 1px 10px 0 rgb(0 0 0 / 12%)",background:"#495057 !important",color:"#fff",padding:".5rem",left:"101.6%"},".cm-tooltip.cm-completionInfo.cm-completionInfo-right::before":{content:"''",position:"absolute",width:0,height:0,top:".8125rem",left:"-.25rem","margin-top":"-.25rem","border-color":"transparent","border-style":"solid","border-right-color":"#495057","border-width":".25rem .25rem .25rem 0"}})]],wo]}var Io=function(){function t(){}return t.getTheme=function(e){var n=t._THEMES.get(e);return n?n():[]},t._THEMES=new Map([[e.Themes.SDSLight,_o]]),t}(),ko=function(e){function t(){var t=e.call(this)||this;return t._codeReceivedBeforeViewCreation="",t._editorOptionsReceivedBeforeViewCreation=[],t}return ne(t,e),t.getEditorView=function(){return t._editorView},t.updateEditorView=function(){for(var e,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];(e=t._editorView).dispatch.apply(e,pe(n))},t.prototype.setCoreWrapperElement=function(e){this.createEditorView(e)},t.prototype.setCode=function(e){this.changeEditorContent(e)},t.prototype.initCore=function(){this.setObservablesListeners()},t.prototype.destroyCore=function(){this._codeReceivedBeforeViewCreation="",t._editorView=null,t._ngUnsubscribe.next(),t._ngUnsubscribe.complete()},t.prototype.setCoreEditorOptions=function(e){var n=xo.getLanguage(e.language),i=Io.getTheme(e.theme);t._editorView?t.updateEditorView({effects:q.StateEffect.reconfigure.of([n,i,this.getCodeChangeListenerExtension()])}):this._editorOptionsReceivedBeforeViewCreation=[n,i]},t.prototype.highlightCode=function(e){var n=function(e,t){return e.map((function(e){var n,i;return{from:e.start||0,to:e.end||t,message:null!==(n=e.message)&&void 0!==n?n:"",severity:null!==(i=Ji.get(e.severity))&&void 0!==i?i:"error"}}))}(e,t._editorView.state.doc.length);t.updateEditorView(K.setDiagnostics(t._editorView.state,n))},t.prototype.setObservablesListeners=function(){var e=this;t.$onCompletionItemsUpdate.pipe(a.takeUntil(t._ngUnsubscribe)).subscribe((function(t){return e.updateCompletionItems(t)}))},t.prototype.createEditorView=function(e){t._editorView=new G.EditorView({parent:e,state:q.EditorState.create({doc:this._codeReceivedBeforeViewCreation,extensions:[this._editorOptionsReceivedBeforeViewCreation,this.getCodeChangeListenerExtension()]})}),this.notifyCoreFinishLoad()},t.prototype.getCodeChangeListenerExtension=function(){var e=this;return G.EditorView.updateListener.of((function(t){return t.docChanged&&e.notifyCodeChange(t.state.doc.toString())}))},t.prototype.changeEditorContent=function(e){t._editorView?t.updateEditorView({changes:{from:0,to:t._editorView.state.doc.length,insert:e}}):this._codeReceivedBeforeViewCreation=e},t.$onCompletionItemsUpdate=new r.Subject,t._ngUnsubscribe=new r.Subject,t._editorView=null,t}(Hi),To=function(){function e(){}return e=oe([t.NgModule({imports:[n.CommonModule,Zi],declarations:[$i],exports:[$i],providers:[{provide:Hi,useClass:ko}]})],e)}();e.AngularComponentsModule=en,e.AutocompleteField=Fe,e.BaseFieldComponent=yt,e.BignumberField=Xe,e.BignumberInputDirective=qt,e.BignumberInputModule=Kt,e.BooleanField=Qe,e.BooleanOptionsLabel=Je,e.BreadcrumbComponent=fe,e.BreadcrumbModule=he,e.Breakpoints=Ot,e.ButtonComponent=be,e.ButtonModule=ve,e.CalendarField=tt,e.CalendarLocaleOptions=Ee,e.CalendarMaskDirective=ye,e.CalendarMaskModule=xe,e.ChipsField=nt,e.CodeEditorModule=To,e.CollapseLinkComponent=we,e.CollapseLinkModule=Ce,e.ControlErrorsComponent=_e,e.ControlErrorsModule=Ie,e.CurrencyField=lt,e.CustomFieldsComponent=Vn,e.CustomFieldsModule=Pn,e.CustomFieldsService=zn,e.DEFAULT_CALENDAR_LOCALE_OPTIONS=Oe,e.DEFAULT_LOCALE_OPTIONS=De,e.DEFAULT_NUMBER_LOCALE_OPTIONS=Ae,e.DoubleClickDirective=Dn,e.DynamicConfig=kt,e.DynamicFormComponent=Tt,e.DynamicFormModule=Nn,e.EditableOverlayDirective=jn,e.EditableOverlayModule=Hn,e.EmptyStateComponent=St,e.EmptyStateModule=Et,e.ExportUtils=At,e.Field=Se,e.Fieldset=_t,e.FileUploadComponent=Dt,e.FileUploadModule=Rt,e.FormField=gt,e.GlobalSearchComponent=Oi,e.GlobalSearchDropdownItemComponent=Mi,e.GlobalSearchModule=Ri,e.HostProjectConfigsInjectionToken=Qt,e.ImageCropperComponent=Kn,e.ImageCropperModule=Wn,e.ImageCropperService=Yn,e.InfoSignDirective=zt,e.InfoSignModule=Bt,e.LoadingStateComponent=Vt,e.LoadingStateDirective=Ut,e.LoadingStateModule=Pt,e.LocaleModule=Ye,e.LocaleOptions=Me,e.LocaleService=Ne,e.LocalizedCurrencyPipe=Ue,e.LocalizedCurrencyPipeOptions=Ve,e.LocalizedDateImpurePipe=$e,e.LocalizedDatePipe=He,e.LocalizedNumberInputDirective=jt,e.LocalizedNumberInputModule=Ht,e.LocalizedNumberPipe=Ge,e.LocalizedTimeImpurePipe=We,e.LocalizedTimePipe=Ke,e.LongPressDirective=An,e.LookupComponent=vt,e.LookupField=ct,e.MaskFormatterModule=Gt,e.MaskFormatterPipe=$t,e.MouseEventsModule=Rn,e.NavigationDirective=Xt,e.NumberField=at,e.NumberInputDirective=ot,e.NumberInputModule=rt,e.NumberLocaleOptions=Le,e.ObjectCardComponent=ii,e.ObjectCardFieldComponent=ei,e.ObjectCardMainComponent=ti,e.ObjectCardModule=oi,e.Option=bt,e.ProductHeaderComponent=ri,e.ProductHeaderModule=ai,e.RadioButtonField=pt,e.RationButtonOption=dt,e.RowTogllerDirective=Zt,e.Section=It,e.SelectField=ut,e.SelectOption=mt,e.SidebarComponent=si,e.SidebarModule=li,e.StatsCardComponent=ci,e.StatsCardModule=pi,e.StepsComponent=mi,e.StepsModule=fi,e.Structure=Ct,e.TableFrozenPositionDirective=Jt,e.TableHeaderCheckboxComponent=Wt,e.TableHeaderCheckboxModule=Yt,e.TableModule=ln,e.TaxCalculationLanguageConfigs=co,e.TextAreaField=ft,e.TextField=ht,e.ThumbnailComponent=Jn,e.ThumbnailModule=Qn,e.TileComponent=Ei,e.TileModule=Li,e.TimelineComponent=hi,e.TimelineItem=Fi,e.TimelineModule=Ti,e.TokenListComponent=rn,e.TokenListModule=an,e.ɵa=Pe,e.ɵb=ze,e.ɵbb=st,e.ɵbc=qn,e.ɵbd=$n,e.ɵbe=Gn,e.ɵbf=Le,e.ɵbg=Zn,e.ɵbh=bi,e.ɵbi=gi,e.ɵbj=yi,e.ɵbk=vi,e.ɵbl=ki,e.ɵbm=xi,e.ɵbn=wi,e.ɵbo=Ci,e.ɵbp=_i,e.ɵbq=Ii,e.ɵbr=Di,e.ɵbs=Ai,e.ɵbt=Zi,e.ɵbu=$i,e.ɵbv=Hi,e.ɵbw=ko,e.ɵc=Be,e.ɵd=Ft,e.ɵe=on,e.ɵf=sn,e.ɵg=Nt,e.ɵh=cn,e.ɵi=pn,e.ɵj=dn,e.ɵk=un,e.ɵl=mn,e.ɵm=In,e.ɵn=On,e.ɵo=Cn,e.ɵp=fn,e.ɵq=hn,e.ɵr=gn,e.ɵs=Tn,e.ɵt=bn,e.ɵu=wn,e.ɵv=_n,e.ɵw=vn,e.ɵx=yn,e.ɵy=xn,e.ɵz=Sn,Object.defineProperty(e,"__esModule",{value:!0})}));
17
17
  //# sourceMappingURL=seniorsistemas-angular-components.umd.min.js.map