@seniorsistemas/angular-components 17.30.0 → 17.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/seniorsistemas-angular-components.umd.js +16 -10
- package/bundles/seniorsistemas-angular-components.umd.js.map +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js +1 -1
- package/bundles/seniorsistemas-angular-components.umd.min.js.map +1 -1
- package/components/utils/utils.d.ts +1 -0
- package/esm2015/components/table/table-column/table-columns.component.js +8 -8
- package/esm2015/components/table/table-paging/table-paging.component.js +4 -4
- package/esm2015/components/utils/utils.js +8 -3
- package/esm5/components/table/table-column/table-columns.component.js +8 -8
- package/esm5/components/table/table-paging/table-paging.component.js +4 -4
- package/esm5/components/utils/utils.js +8 -3
- package/fesm2015/seniorsistemas-angular-components.js +16 -11
- package/fesm2015/seniorsistemas-angular-components.js.map +1 -1
- package/fesm5/seniorsistemas-angular-components.js +16 -11
- package/fesm5/seniorsistemas-angular-components.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-angular-components.metadata.json +1 -1
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
14
14
|
and limitations under the License.
|
|
15
15
|
***************************************************************************** */
|
|
16
|
-
var se=function(e,t){return(se=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 le(e,t){function n(){this.constructor=e}se(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ce=function(){return(ce=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function pe(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,n,a):i(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function de(e,t){return function(n,o){t(n,o,e)}}function ue(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}l((o=o.apply(e,t||[])).next())}))}function me(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[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,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}function he(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function fe(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}function ge(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(fe(arguments[t]));return e}var ve,be=function(){function e(){this.disabled=!1,this.cache=!1,this.validationMessageIcon="fas fa-exclamation-circle",this.validationMessageIconColor="Red",this.panelOpened=new t.EventEmitter,this.panelClosed=new t.EventEmitter,this.isAnimating=!1,this.isContentAnimationDisabled=!0,this._isOpen=!1}return Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._isOpen},set:function(e){this._isOpen=e},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){if("disabled"in e&&this.switchControl&&(e.disabled.currentValue?this.switchControl.disable({emitEvent:!1}):this.switchControl.enable({emitEvent:!1})),"switch"in e&&"switchControl"in e)throw new Error("You can't set switch and switchControl together.")},e.prototype.ngAfterViewInit=function(){var e=this;queueMicrotask((function(){e.isContentAnimationDisabled=!1}))},e.prototype.onIconButtonsClick=function(e,t){this.disabled||(e.stopPropagation(),t())},e.prototype.onTabClick=function(){this.disabled||this.isAnimating||(this.isOpen=!this.isOpen)},e.prototype.onContentAnimationStart=function(){this.isAnimating=!0},e.prototype.onContentAnimationDone=function(){this.isAnimating=!1,this.isOpen?this.panelOpened.emit():this.panelClosed.emit()},pe([t.Input()],e.prototype,"header",void 0),pe([t.Input()],e.prototype,"buttons",void 0),pe([t.Input()],e.prototype,"disabled",void 0),pe([t.Input()],e.prototype,"switch",void 0),pe([t.Input()],e.prototype,"switchControl",void 0),pe([t.Input()],e.prototype,"validationMessage",void 0),pe([t.Input()],e.prototype,"cache",void 0),pe([t.Input()],e.prototype,"validationMessageIcon",void 0),pe([t.Input()],e.prototype,"validationMessageIconColor",void 0),pe([t.Output()],e.prototype,"panelOpened",void 0),pe([t.Output()],e.prototype,"panelClosed",void 0),e=pe([t.Component({selector:"s-accordion-panel",template:'<div\n class="accordion-panel"\n [ngClass]="{\n \'accordion-panel--open\': isOpen,\n \'accordion-panel--disabled\': disabled\n }">\n <div class="header" (click)="onTabClick()">\n <div class="header__title">\n <span class="icon" [ngClass]="isOpen ? \'fas fa-minus\' : \'fas fa-plus\'"></span>\n <span\n *ngIf="validationMessage"\n class="exclamation-icon"\n [class]="validationMessageIcon"\n [class.exclamation-icon-red]="validationMessageIconColor === \'Red\'"\n [class.exclamation-icon-orange]="validationMessageIconColor === \'Orange\'"\n [class.exclamation-icon-yellow]="validationMessageIconColor === \'Yellow\'"\n [class.exclamation-icon-green]="validationMessageIconColor === \'Green\'"\n [class.exclamation-icon-blue]="validationMessageIconColor === \'Blue\'"\n [sTooltip]="validationMessage">\n </span>\n <span class="title">{{ header }}</span>\n </div>\n <div class="header__controls">\n <button\n *ngFor="let button of buttons"\n class="icon-button"\n [ngClass]="button.icon"\n (click)="onIconButtonsClick($event, button.onClick)">\n </button>\n <s-switch\n *ngIf="switchControl"\n class="switch"\n [formControl]="switchControl"\n (click)="$event.stopPropagation()">\n </s-switch>\n <s-switch\n *ngIf="!switchControl && switch"\n class="switch"\n [disabled]="disabled"\n [(ngModel)]="switch.state"\n (click)="$event.stopPropagation()"\n (valueChanged)="switch.onChange($event)">\n </s-switch>\n </div>\n </div>\n <ng-container *ngIf="cache; then cacheTemplate else cachelessTemplate"></ng-container>\n</div>\n\n<ng-template #cacheTemplate>\n <div\n class="content"\n [@cacheAnimation]="isOpen"\n [@.disabled]="isContentAnimationDisabled"\n (@cacheAnimation.start)="onContentAnimationStart()"\n (@cacheAnimation.done)="onContentAnimationDone()">\n <div class="content-container">\n <ng-container [ngTemplateOutlet]="panelContent"></ng-container>\n </div>\n </div>\n</ng-template>\n\n<ng-template #cachelessTemplate>\n <div\n *ngIf="isOpen"\n class="content"\n @cachelessAnimation\n [@.disabled]="isContentAnimationDisabled"\n (@cachelessAnimation.start)="onContentAnimationStart()"\n (@cachelessAnimation.done)="onContentAnimationDone()">\n <div class="content-container">\n <ng-container [ngTemplateOutlet]="panelContent"></ng-container>\n </div>\n </div>\n</ng-template>\n\n<ng-template #panelContent>\n <ng-content></ng-content>\n</ng-template>\n',animations:[n.trigger("cachelessAnimation",[n.transition(":enter",[n.style({height:"0"}),n.animate("200ms linear",n.style({height:"*"}))]),n.transition(":leave",[n.style({height:"*"}),n.animate("200ms linear",n.style({height:"0"}))])]),n.trigger("cacheAnimation",[n.state("true",n.style({height:"*"})),n.state("false",n.style({height:"0px"})),n.transition("* => *",n.animate("200ms"))])],styles:['.accordion-panel{border-bottom:1px solid #c1c1cc}.accordion-panel .header{-ms-flex-align:center;align-items:center;background-color:#fff;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:16px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.accordion-panel .header .header__title{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.accordion-panel .header .header__title .icon{color:#212533;font-size:1rem;margin-right:12px}.accordion-panel .header .header__title .exclamation-icon{font-size:1rem;margin-right:12px}.accordion-panel .header .header__title .exclamation-icon-red{color:#c13018}.accordion-panel .header .header__title .exclamation-icon-orange{color:#f8931f}.accordion-panel .header .header__title .exclamation-icon-yellow{color:#fcbf10}.accordion-panel .header .header__title .exclamation-icon-green{color:#0c9348}.accordion-panel .header .header__title .exclamation-icon-blue{color:#428bca}.accordion-panel .header .header__title .title{font-family:"Open Sans" sans-serif;font-size:.875rem;font-weight:700;line-height:150%;text-transform:uppercase}.accordion-panel .header .header__controls{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;margin-left:16px}.accordion-panel .header .header__controls .icon-button{color:#212533;cursor:pointer;font-size:1rem;margin-left:12px;padding:4px;border:none;background:0 0}.accordion-panel .header .header__controls .switch{padding-left:16px}.accordion-panel .content{background-color:#fff;overflow:hidden}.accordion-panel .content .content-container{margin:20px}.accordion-panel--open .header{background-color:#eeebf2;border-bottom:1px solid #c1c1cc}.accordion-panel--disabled .header{cursor:auto}.accordion-panel--disabled .header .header__title .icon,.accordion-panel--disabled .header .header__title .title{color:#c1c1cc}.accordion-panel--disabled .header .header__controls .icon-button{color:#c1c1cc;cursor:auto}.accordion-panel--disabled .exclamation-icon{opacity:.5}']})],e)}(),ye=function(){function e(){this.multiple=!1,this._unsubscribe$=new o.Subject,this._panels=[]}return e.prototype.ngAfterContentInit=function(){this._panels=this.panelsComponents.toArray(),this._openSubs=new Array(this._panels.length),this._setBehavior(this.multiple),this._setupTabs()},e.prototype.ngOnChanges=function(e){e.multiple&&this._setBehavior(e.multiple.currentValue)},e.prototype.ngOnDestroy=function(){this._unsubscribe$.next(),this._unsubscribe$.complete()},e.prototype._setupTabs=function(){var e;if((null===(e=this._panels)||void 0===e?void 0:e.length)&&void 0!==this.activeIndex&&null!==this.activeIndex){var t=this._panels[this.activeIndex];if(!t)throw new Error("activeIndex does not represent any panel.");t.disabled||(this._panels[this.activeIndex].isOpen=!0)}},e.prototype._closeOtherTabs=function(e){this._panels.forEach((function(t,n){n!==e&&(t.isOpen=!1)}))},e.prototype._setBehavior=function(e){e?this._enableMultiplePanelBehavior():this._enableSinglePanelBehavior()},e.prototype._enableSinglePanelBehavior=function(){var e=this;this._panels.forEach((function(t,n){e._openSubs[n]=t.panelOpened.pipe(i.takeUntil(e._unsubscribe$)).subscribe((function(){e._closeOtherTabs(n)}))}))},e.prototype._enableMultiplePanelBehavior=function(){var e=this;this._panels.forEach((function(t,n){e._openSubs[n]&&e._openSubs[n].unsubscribe()}))},pe([t.Input()],e.prototype,"activeIndex",void 0),pe([t.Input()],e.prototype,"multiple",void 0),pe([t.ContentChildren(be)],e.prototype,"panelsComponents",void 0),e=pe([t.Component({selector:"s-accordion",template:'<div class="accordion">\n <ng-content></ng-content>\n</div>',styles:[".accordion{border:1px solid #c1c1cc;border-radius:6px;overflow:hidden}"]})],e)}(),xe=function(){function e(){this.readonly=!1,this.disabled=!1,this.valueChanged=new t.EventEmitter,this.value=!1}var n;return n=e,e.prototype.onFocusIn=function(){this.switchRef.nativeElement.classList.add("switch--focus")},e.prototype.onFocusOut=function(){this.switchRef.nativeElement.classList.remove("switch--focus")},e.prototype.writeValue=function(e){this.disabled||(this.value=e)},e.prototype.registerOnChange=function(e){this._onChange=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.toggleCheck=function(){this.value=!this.value,this.valueChanged.emit(this.value),this._onChange&&this._onChange(this.value),this._onTouched&&this._onTouched(this.value)},pe([t.Input()],e.prototype,"readonly",void 0),pe([t.Input()],e.prototype,"trueLabel",void 0),pe([t.Input()],e.prototype,"falseLabel",void 0),pe([t.Input()],e.prototype,"inputId",void 0),pe([t.Input()],e.prototype,"inputName",void 0),pe([t.Input()],e.prototype,"disabled",void 0),pe([t.Output()],e.prototype,"valueChanged",void 0),pe([t.Input()],e.prototype,"value",void 0),pe([t.ViewChild("switch",{static:!0})],e.prototype,"switchRef",void 0),pe([t.HostListener("focusin")],e.prototype,"onFocusIn",null),pe([t.HostListener("focusout")],e.prototype,"onFocusOut",null),e=n=pe([t.Component({selector:"s-switch",template:'<div #switch class="switch" [ngClass]="{ \'switch--disabled\': disabled }">\n <label class="switch-toggle">\n <input\n #input\n [id]="inputId"\n [name]="inputName"\n type="checkbox"\n [checked]="value"\n [disabled]="readonly || disabled"\n (change)="toggleCheck()">\n <span class="slider"></span>\n </label>\n <span class="label">\n {{ value ? trueLabel : falseLabel }}\n </span>\n</div>',providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:['.switch{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}.switch .switch-toggle{display:inline-block;height:24px;margin:0;position:relative;width:40px}.switch .switch-toggle input{height:0;opacity:0;width:0}.switch .switch-toggle input:checked+.slider{background-color:#428bca;border-radius:15px}.switch .switch-toggle input:checked+.slider:before{transform:translateX(16px)}.switch .switch-toggle .slider{background-color:#a5a5b2;border-radius:15px;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:.4s}.switch .switch-toggle .slider:before{background-color:#fff;border-radius:50%;bottom:4px;content:"";height:16px;left:4px;position:absolute;transition:.4s;width:16px}.switch .label{color:#212533;font-family:"Open Sans" sans-serif;font-size:.875rem;font-weight:400;line-height:150%;margin-left:12px}.switch--disabled{opacity:.5}.switch--focus .switch-toggle .slider{box-shadow:0 0 0 2px #428BCA80}']})],e)}(),_e=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[xe],exports:[xe]})],e)}();(ve=e.TooltipPosition||(e.TooltipPosition={})).Top="top",ve.Bottom="bottom",ve.Left="left",ve.Right="right";var we,Ce,ke=function(){function n(){this.tooltip="",this.position=e.TooltipPosition.Top,this.left=0,this.top=0,this.visible=!1,this.escape=!1}return n=pe([t.Component({template:'<div\n id="tooltip"\n class="tooltip"\n [ngClass]="[\'tooltip--\' + position]"\n [class.tooltip--visible]="visible"\n [ngStyle]="{\n \'left\': left + \'px\',\n \'top\': top + \'px\'\n }">\n <ng-template\n *ngIf="escape;\n then escapeTemplate;\n else noEscapeTemplate">\n </ng-template> \n</div>\n\n<ng-template #noEscapeTemplate>\n <span\n class="tooltip__content"\n [innerHTML]="tooltip">\n </span>\n</ng-template>\n\n<ng-template #escapeTemplate>\n <span class="tooltip__content">\n {{ tooltip }}\n </span>\n</ng-template>',styles:['.tooltip{background-color:#000;border-radius:2px;color:#fff;font-family:"Open Sans",sans-serif;font-size:14px;font-weight:400;line-height:21px;opacity:0;padding:8px;transform:translateX(-50%);text-align:center;max-width:220px;word-wrap:break-word;z-index:99999;position:absolute}.tooltip--visible{opacity:1;transition:opacity .3s}.tooltip::before{content:"";height:0;position:absolute;width:0}.tooltip--bottom{margin-top:5px;transform:translateX(-50%)}.tooltip--bottom::before{border:5px solid transparent;border-bottom:5px solid #000;left:calc(50% - 5px);top:-10px}.tooltip--top{margin-bottom:5px;transform:translate(-50%,-100%)}.tooltip--top::before{border:5px solid transparent;border-top:5px solid #000;left:calc(50% - 5px);bottom:-10px}.tooltip--left{margin-right:28px;transform:translate(calc(-100% - 7px),-50%)}.tooltip--left::before{border:5px solid transparent;border-left:5px solid #000;right:-10px;bottom:calc(50% - 5px)}.tooltip--right{margin-left:7px;transform:translateY(-50%)}.tooltip--right::before{border:5px solid transparent;border-right:5px solid #000;left:-10px;bottom:calc(50% - 5px)}']})],n)}(),Ie=function(){function e(){}return e.prototype.debounce=function(e,t){var n,o=this;return void 0===t&&(t=300),function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];clearTimeout(n),n=setTimeout((function(){e.apply(o,i)}),t)}},e.prototype.debounceLeading=function(e,t){var n,o=this;return void 0===t&&(t=300),function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];n||e.apply(o,i),clearTimeout(n),n=setTimeout((function(){n=null}),t)}},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e},token:e,providedIn:"root"}),e=pe([t.Injectable({providedIn:"root"})],e)}(),Se=function(e){return null==e},Te=function(e,t){var n=e.clientX,o=e.clientY;return n<t.left||n>=t.right||o<t.top||o>=t.bottom},Ee=function(e){var t=e.getBoundingClientRect(),n=window.scrollY||document.documentElement.scrollTop,o=window.scrollX||document.documentElement.scrollLeft,i=t.height,r=t.width,a=i/2,s=r/2;return{top:t.top+n,left:t.left+o,right:t.left+o+r,elementHeight:i,elementWidth:r,elementVerticalCenter:a,elementHorizontalCenter:s}},Me=function(e){var t=window.innerWidth,n=e.getBoundingClientRect();return{freeDistanceToBottom:window.innerHeight-n.bottom,freeDistanceToTop:n.top,freeDistanceToLeft:n.left,freeDistanceToRight:t-n.right}};!function(e){e.Pressing="pressing",e.Tap="tap"}(we||(we={})),function(e){e.Focus="focus",e.Hover="hover"}(Ce||(Ce={}));var Le,Fe,Oe=function(){function n(t,n,o,i,r,a){var s=this;this.elementRef=t,this.appRef=n,this.componentFactoryResolver=o,this.injector=i,this.debounceUtils=r,this.renderer=a,this.position=e.TooltipPosition.Top,this.showDelay=500,this.tooltipEvent=Ce.Hover,this.escape=!1,this.visible=!0,this.mobileBehavior=we.Pressing,this.componentRef=null,this.tooltipCreatedByFocus=!1,this.debounceCreateTooltipFunction=this.debounceUtils.debounceLeading((function(){return s._createTooltip(!0,!0)}))}return n.prototype.ngOnInit=function(){this.validatePosition(),this.updateTooltipVisibilityWhenFocusOnInput()},n.prototype.ngOnDestroy=function(){this.destroy()},n.prototype.updateTooltipVisibilityWhenFocusOnInput=function(){var e=this;if(this.focusedInputRef){var t=this.focusedInputRef,n=this.getIconFromFocusedInput();this.renderer.listen(t,"focus",(function(){n&&(e._createTooltip(!1,!1),e.tooltipCreatedByFocus=!0)})),this.renderer.listen(t,"blur",(function(){n&&(e.removeTooltip(n),e.destroy(),e.tooltipCreatedByFocus=!1)}))}},n.prototype.getIconFromFocusedInput=function(){return this.elementRef.nativeElement},n.prototype.removeTooltip=function(e){var t=e.querySelector(".tooltip");t&&t.remove()},n.prototype.onClick=function(){this.tooltipEvent!==Ce.Hover||navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/iPhone/i)||this.destroy()},n.prototype.onFocus=function(){this.tooltipEvent===Ce.Focus&&this._createTooltip(!0,!0)},n.prototype.onBlur=function(){this.tooltipEvent===Ce.Focus&&this.destroy()},n.prototype.onMouseEnter=function(){(this.tooltipEvent===Ce.Hover||this.focusedInputRef)&&this.debounceCreateTooltipFunction()},n.prototype.onMouseLeave=function(){this.tooltipEvent!==Ce.Hover&&!this.focusedInputRef||this.tooltipCreatedByFocus||this.destroy()},n.prototype.onTouchStart=function(){var e=this;if(this.tooltipEvent===Ce.Hover){window.clearTimeout(this.touchTimeout);var t=this.mobileBehavior===we.Pressing?this.showDelay:0;this.touchTimeout=window.setTimeout((function(){e._createTooltip(!0,!0)}),t)}},n.prototype.onTouchEnd=function(){this.tooltipEvent===Ce.Hover&&this.mobileBehavior===we.Pressing&&(window.clearTimeout(this.touchTimeout),this.destroy())},n.prototype.validatePosition=function(){if(![e.TooltipPosition.Top,e.TooltipPosition.Right,e.TooltipPosition.Bottom,e.TooltipPosition.Left].includes(this.position))throw this.position=e.TooltipPosition.Top,new Error("Tooltip "+this.position+" position is unexpected")},n.prototype.getDomElement=function(){var e=this.componentFactoryResolver.resolveComponentFactory(ke);return this.componentRef=e.create(this.injector),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.rootNodes[0]},n.prototype._createTooltip=function(e,t){var n,o=this;void 0===e&&(e=!1),void 0===t&&(t=!0);var i=(null===(n=this.tooltip)||void 0===n?void 0:n.length)>0,r=null!==this.componentRef;if(i&&!r){var a=this.getDomElement();document.body.appendChild(a),this.tooltipDivElement=a.querySelector(".tooltip"),this.setTooltipComponentProperties();var s=e?this.showDelay:0;setTimeout((function(){o.showTooltip()}),s),this.renderer.listen(window,"scroll",(function(){o.setTooltipPositionProperty()})),t&&this.displayTime&&setTimeout((function(){o.destroy()}),this.displayTime)}},n.prototype.showTooltip=function(){null!==this.componentRef&&(this.componentRef.instance.visible=this.visible,this.setTooltipPositionProperty())},n.prototype.setTooltipPositionProperty=function(){var t=this;if(this.componentRef){var n=this.elementRef.nativeElement.getBoundingClientRect(),o=n.left,i=n.right,r=Ee(this.tooltipDivElement),a=Me(this.elementRef.nativeElement),s=Ee(this.elementRef.nativeElement),l=[e.TooltipPosition.Left,e.TooltipPosition.Right].includes(this.position)?r.elementWidth:r.elementHorizontalCenter,c=a.freeDistanceToTop>r.elementHeight,p=a.freeDistanceToLeft>l,d=a.freeDistanceToRight>l,u=a.freeDistanceToBottom>r.elementHeight,m=s.top+s.elementVerticalCenter,h=[{pos:e.TooltipPosition.Top,check:function(){return c&&p&&d},set:function(){return{left:o+(i-o)/2,top:s.top-5}}},{pos:e.TooltipPosition.Bottom,check:function(){return u&&p&&d},set:function(){return{left:o+(i-o)/2,top:s.top+s.elementHeight}}},{pos:e.TooltipPosition.Left,check:function(){return p&&c&&u},set:function(){return{left:o,top:m}}},{pos:e.TooltipPosition.Right,check:function(){return d&&c&&u},set:function(){return{left:i,top:m}}}],f=h.find((function(e){return e.pos===t.position})),g=f,v=f.check();if(v)g=f;else if(!v){var b=h.find((function(e){return e.check()}));b&&(g=b)}var y=g.set(),x=y.left,_=y.top;this.componentRef.instance.left=Math.round(x),this.componentRef.instance.top=Math.round(_),this.componentRef.instance.position=g.pos}},n.prototype.setTooltipComponentProperties=function(){null!==this.componentRef&&(this.componentRef.instance.tooltip=this.tooltip,this.componentRef.instance.escape=this.escape)},n.prototype.destroy=function(){Se(this.componentRef)||(window.clearTimeout(this.showTimeout),this.appRef.detachView(this.componentRef.hostView),this.componentRef.destroy(),this.componentRef=null,this.tooltipDivElement=null)},n.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ApplicationRef},{type:t.ComponentFactoryResolver},{type:t.Injector},{type:Ie},{type:t.Renderer2}]},pe([t.Input("sTooltip")],n.prototype,"tooltip",void 0),pe([t.Input("tooltipPosition")],n.prototype,"position",void 0),pe([t.Input()],n.prototype,"showDelay",void 0),pe([t.Input()],n.prototype,"displayTime",void 0),pe([t.Input()],n.prototype,"tooltipEvent",void 0),pe([t.Input()],n.prototype,"escape",void 0),pe([t.Input()],n.prototype,"visible",void 0),pe([t.Input()],n.prototype,"mobileBehavior",void 0),pe([t.Input()],n.prototype,"focusedInputRef",void 0),pe([t.HostListener("click"),t.HostListener("keydown")],n.prototype,"onClick",null),pe([t.HostListener("focus")],n.prototype,"onFocus",null),pe([t.HostListener("blur")],n.prototype,"onBlur",null),pe([t.HostListener("mouseenter")],n.prototype,"onMouseEnter",null),pe([t.HostListener("mouseleave"),t.HostListener("wheel")],n.prototype,"onMouseLeave",null),pe([t.HostListener("touchstart")],n.prototype,"onTouchStart",null),pe([t.HostListener("touchend")],n.prototype,"onTouchEnd",null),n=pe([t.Directive({selector:"[sTooltip]"})],n)}(),Re=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[ke,Oe],exports:[Oe]})],e)}(),Ae=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,Re,_e],declarations:[ye,be],exports:[ye,be]})],e)}(),De=function(){function e(){this.severity="info",this.closable=!0,this.close=new t.EventEmitter,this._isOpen=!0}return Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!0,configurable:!0}),e.prototype.closeAlert=function(){this._isOpen=!1},e.prototype.showAlert=function(){this._isOpen=!0},e.prototype.onClose=function(){this.close.emit(),this.closeAlert()},pe([t.Input()],e.prototype,"severity",void 0),pe([t.Input()],e.prototype,"summary",void 0),pe([t.Input()],e.prototype,"detail",void 0),pe([t.Input()],e.prototype,"closable",void 0),pe([t.Output()],e.prototype,"close",void 0),e=pe([t.Component({selector:"s-alert",template:"<div class=\"alert\" [ngClass]=\"{\n 'alert--info': severity === 'info',\n 'alert--success': severity === 'success',\n 'alert--warning': severity === 'warning',\n 'alert--error': severity === 'error'\n}\">\n <div class=\"content\">\n <div class=\"icon-container\">\n <i class=\"fas fa-info\" [ngClass]=\"{\n 'fa-info': severity === 'info',\n 'fa-check': severity === 'success',\n 'fa-exclamation-triangle': severity === 'warning',\n 'fa-times': severity === 'error'\n }\"></i>\n </div>\n <div class=\"text-container\">\n <div class=\"text\">\n <span *ngIf=\"summary\" class=\"summary\">{{ summary }}</span>\n <span *ngIf=\"detail\" class=\"detail\">{{ detail }}</span>\n </div>\n </div>\n </div>\n <button *ngIf=\"closable\" class=\"close-option\" (click)=\"onClose()\">\n <i class=\"fas fa-times\"></i>\n </button>\n</div>",styles:['.alert{-ms-flex-align:center;align-items:center;background-color:#f1f7f8;border-left:4px solid #428bca;border-radius:4px;box-shadow:1px 1px 2px rgba(0,0,0,.2);display:-ms-flexbox;display:flex;gap:16px;-ms-flex-pack:justify;justify-content:space-between;margin:8px;padding:12px 16px}.alert .content{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;gap:16px}.alert .content .icon-container{-ms-flex-align:center;align-items:center;background-color:#428bca;border-radius:50%;color:#fff;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-negative:0;flex-shrink:0;height:40px;-ms-flex-pack:center;justify-content:center;width:40px}.alert .content .text-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:16px}.alert .content .text-container .text{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:start;justify-content:flex-start}.alert .content .text-container .text .detail,.alert .content .text-container .text .summary{color:#212533;font-family:"Open Sans",sans-serif;font-size:14px}.alert .content .text-container .text .summary{font-weight:700}.alert .close-option{background-color:transparent;border:none;color:#212533;cursor:pointer;font-size:16px;padding:4px}.alert--info{background-color:#f1f7f8;border-color:#428bca}.alert--info .content .icon-container{background-color:#428bca;color:#fff}.alert--success{background-color:#e0f0f0;border-color:#0c9348}.alert--success .content .icon-container{background-color:#0c9348;color:#fff}.alert--warning{background-color:#fef4e3;border-color:#fcbf10}.alert--warning .content .icon-container{background-color:#fcbf10;color:#212533}.alert--error{background-color:#fef0f0;border-color:#c13018}.alert--error .content .icon-container{background-color:#c13018;color:#fff}']})],e)}(),Pe=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[De],exports:[De]})],e)}();(Le=e.BadgeColors||(e.BadgeColors={})).Red="red",Le.Orange="orange",Le.Yellow="yellow",Le.Blue="blue",Le.Green="green",Le.Gray="gray",function(e){e.Pill="pill",e.Chip="chip"}(Fe||(Fe={}));var Ve,Be,Ne=function(){function n(){this.selectable=!1,this.selected=new t.EventEmitter}return n.prototype.onClick=function(){this.selected.emit(this.text)},n.prototype.ngOnInit=function(){this._setDefaultValues()},n.prototype._setDefaultValues=function(){var t,n,o;this.type=null!==(t=this.type)&&void 0!==t?t:Fe.Pill,this.color=null!==(n=this.color)&&void 0!==n?n:e.BadgeColors.Blue,this.iconPosition=null!==(o=this.iconPosition)&&void 0!==o?o:"left"},pe([t.Input()],n.prototype,"type",void 0),pe([t.Input()],n.prototype,"color",void 0),pe([t.Input()],n.prototype,"title",void 0),pe([t.Input()],n.prototype,"text",void 0),pe([t.Input()],n.prototype,"selectable",void 0),pe([t.Input()],n.prototype,"iconClass",void 0),pe([t.Input()],n.prototype,"iconPosition",void 0),pe([t.Input()],n.prototype,"infoSign",void 0),pe([t.Output()],n.prototype,"selected",void 0),pe([t.HostListener("click")],n.prototype,"onClick",null),n=pe([t.Component({selector:"s-badge",template:"<span\n class=\"badge\"\n [ngClass]=\"{\n 'badge--pill': type === 'pill',\n 'badge--chip': type === 'chip', \n 'badge--red': color === 'red',\n 'badge--orange': color === 'orange',\n 'badge--yellow': color === 'yellow',\n 'badge--blue': color === 'blue',\n 'badge--green': color === 'green',\n 'badge--gray': color === 'gray',\n 'badge--selectable': selectable\n }\">\n <ng-container *ngIf=\"infoSign\">\n <span *sInfoSign=\"infoSign.text; displayTime: infoSign.displayTime\"></span>\n </ng-container>\n <span\n *ngIf=\"iconClass\"\n [class]=\"'badge-icon ' + iconClass\"\n [ngClass]=\"{\n 'badge-icon--left': iconPosition === 'left' && text,\n 'badge-icon--right': iconPosition === 'right' && text\n }\">\n </span>\n <span *ngIf=\"title\" class=\"badge-title\">{{ title }}:</span>\n <span class=\"badge-text\">{{ text }}</span>\n</span>",styles:['.badge{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;gap:8px;min-height:1.25rem;-ms-flex-pack:center;justify-content:center;min-width:20px;padding:0 .5rem}.badge--chip{border-radius:4px}.badge--pill{border-radius:12px}.badge ::ng-deep .info-sign .info-sign__icon{padding:0!important}.badge .badge-title{color:#212533;font-family:"Open Sans",sans-serif;font-size:12px;font-weight:700;line-height:150%}.badge .badge-text{color:#212533;font-family:"Open Sans",sans-serif;font-size:.75rem;font-weight:400;line-height:150%}.badge .badge-icon{color:#212533;font-size:10px}.badge .badge-icon--right{-ms-flex-order:2;order:2}.badge--red{background-color:#fcd2d2;border:1px solid #c13018}.badge--orange{background-color:#fce3ba;border:1px solid #f8931f}.badge--yellow{background-color:#fef4e3;border:1px solid #fcbf10}.badge--blue{background-color:#d5e8ec;border:1px solid #428bca}.badge--green{background-color:#e6ffb3;border:1px solid #0c9348}.badge--gray{background-color:#e5eaea;border:1px solid #697882}.badge--selectable{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}']})],n)}(),ze=function(){function e(){}return e=pe([t.Component({selector:"s-info-sign-component",template:'<span class="info-sign">\n <span *ngTemplateOutlet="templateRef"></span>\n <i\n class="info-sign__icon fa fa-info-circle"\n aria-hidden="true"\n [sTooltip]="tooltip"\n [escape]="false"\n tooltipPosition="top"\n [displayTime]="displayTime"\n mobileBehavior="tap"\n showDelay="0"\n [tooltipEvent]="focusedInputRef ? \'focus\' : \'hover\'"\n [focusedInputRef]="focusedInputRef">\n </i>\n</span>\n',styles:[".info-sign{-ms-flex-align:baseline;align-items:baseline;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:start;justify-content:flex-start}.info-sign .info-sign__icon{padding:0 12px}"]})],e)}(),Ue=function(){function e(e,t,n){this.templateRef=e,this.viewContainer=t,this.componentFactoryResolver=n,this.displayTime=5e3,this.useFocusedInputRef=!0}return e.prototype.ngOnChanges=function(){this.createInfoSign()},e.prototype.ngOnInit=function(){this.createInfoSign()},e.prototype.ngOnDestroy=function(){this.componentRef&&this.componentRef.destroy()},e.prototype.createInfoSign=function(){if(!this.componentRef&&this.sInfoSign){this.viewContainer.clear();var e=this.componentFactoryResolver.resolveComponentFactory(ze);this.componentRef=this.viewContainer.createComponent(e);var t=this.componentRef.instance;t.templateRef=this.templateRef,t.tooltip=this.sInfoSign,t.displayTime=this.displayTime,this.useFocusedInputRef&&(t.focusedInputRef=this.focusedInputRef)}else this.componentRef&&this.sInfoSign?this.componentRef.instance.tooltip=this.sInfoSign:(this.viewContainer.clear(),this.viewContainer.createEmbeddedView(this.templateRef))},e.ctorParameters=function(){return[{type:t.TemplateRef},{type:t.ViewContainerRef},{type:t.ComponentFactoryResolver}]},pe([t.Input()],e.prototype,"sInfoSign",void 0),pe([t.Input("sInfoSignDisplayTime")],e.prototype,"displayTime",void 0),pe([t.Input("sInfoSignFocusedInputRef")],e.prototype,"focusedInputRef",void 0),pe([t.Input("sInfoSignUseFocusedInputRef")],e.prototype,"useFocusedInputRef",void 0),e=pe([t.Directive({selector:"[sInfoSign]"})],e)}(),je=function(){function e(){}return e=pe([t.NgModule({imports:[Re,r.CommonModule],declarations:[Ue,ze],exports:[Ue],entryComponents:[ze]})],e)}(),He=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,s.RouterModule,je],declarations:[Ne],exports:[Ne,s.RouterModule]})],e)}(),$e=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","Dez"],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]}))},Ge=function(e){void 0===e&&(e={}),this.thousandsSeparator=".",this.decimalSeparator=",",this.currencySymbol="R$",Object.assign(this,e)},qe=function(e){var t=this;void 0===e&&(e={}),this.calendar=new $e,this.number=new Ge,Object.keys(e).forEach((function(n){return t[n]=e[n]||t[n]}))},We=new $e,Ye=new Ge,Ke=new qe,Ze=d,Xe=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?o.of(this.localeOptions):this.getLocaleConfig().pipe(i.tap((function(t){return e.localeOptions=ce(ce({},t),{locale:e.locale})})))},e.prototype.getLocale=function(){var e=this;return this.locale?o.of(this.locale):o.from(this.getUserData()).pipe(i.map((function(t){return e.locale=t.locale||t.tenantLocale||"pt-BR",e.locale})))},e.prototype.getLocaleOptions=function(){return this.localeOptions},e.prototype.getUserData=function(){try{return o.of(JSON.parse(this.cookieService.get("com.senior.token")))}catch(e){return console.warn("Unable to obtain user locale from cookie, calling getUser"),p.user.getUserData()}},e.prototype.getLocaleConfig=function(){var e=this;return this.getLocale().pipe(i.switchMap((function(t){return Ze.locale(t),e.http.get(e.localeOptionsAddress+"/"+e.localeOptionsVersion+"/"+t+".json").pipe(i.map((function(e){return new qe(e)})))})),i.catchError((function(e){return console.warn("Error getting locale configuration. Using fallback.",e),o.of(new qe)})))},e.prototype.getGroupingSeparator=function(){var e,t=new Intl.NumberFormat(this.locale,{style:"decimal",useGrouping:!0,minimumFractionDigits:5,maximumFractionDigits:5});return this.locale.includes("fr")?" ":null===(e=t.formatToParts(1e3).find((function(e){return"group"===e.type})))||void 0===e?void 0:e.value},e.prototype.getDecimalSeparator=function(){var e;return null===(e=new Intl.NumberFormat(this.locale,{style:"decimal",minimumFractionDigits:5,maximumFractionDigits:5}).formatToParts(1.2).find((function(e){return"decimal"===e.type})))||void 0===e?void 0:e.value},e.ctorParameters=function(){return[{type:c.HttpClient},{type:u.CookieService}]},e=pe([t.Injectable()],e)}(),Je=function(){function e(e){this.localeService=e}return e.prototype.transform=function(e,t){return null!=e?this.applyMask(e,t):o.of(e)},e.prototype.applyMask=function(e,t){return this.localeService.get().pipe(i.map((function(n){var o,i,r,a,s,c,p,d,u,m,h,f={prefix:null!==(r=null!==(o=null==t?void 0:t.prefix)&&void 0!==o?o:null===(i=null==n?void 0:n.number)||void 0===i?void 0:i.currencySymbol)&&void 0!==r?r:"R$",thousandsSeparator:null!==(c=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!==c?c:".",decimalSeparator:null!==(u=null!==(p=null==t?void 0:t.decimalSeparator)&&void 0!==p?p:null===(d=null==n?void 0:n.number)||void 0===d?void 0:d.decimalSeparator)&&void 0!==u?u:",",scale:null!==(m=null==t?void 0:t.scale)&&void 0!==m?m:2,allowNegative:null===(h=null==t?void 0:t.allowNegative)||void 0===h||h},g=!new ae(e).isNaN();return l.applyMask(e,f,g)})))},e.ctorParameters=function(){return[{type:Xe}]},e=pe([t.Pipe({name:"localizedBignumber"})],e)}(),Qe=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return le(n,e),n.prototype.transform=function(t,n){return e.prototype.transform.call(this,t,n)},n=pe([t.Pipe({name:"localizedBignumberImpure",pure:!1})],n)}(Je),et=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.scale=2,n}return le(t,e),t}(Ge),tt=function(){function e(e){this.localeService=e}return e.prototype.transform=function(e,t){return t||(t=new et),null!=e?this.applyMask(e,t):o.of(e)},e.prototype.applyMask=function(e,t){return this.localeService.get().pipe(i.map((function(n){var o=ce(ce({},n.number),t),i=o.scale,r=o.currencySymbol,a=o.thousandsSeparator,s=o.decimalSeparator,l=Number(e).toFixed(i),c=l.replace(/[^0-9]/g,""),p=c.slice(0,c.length-i).replace(/^0*/g,"").replace(/\B(?=(\d{3})+(?!\d))/g,a)||"0",d=c.slice(c.length-i),u=i?p+s+d:p,m=!Number(c);return""+(l.includes("-")&&!m?"-":"")+r+u})))},e.ctorParameters=function(){return[{type:Xe}]},e=pe([t.Pipe({name:"localizedCurrency"})],e)}(),nt=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return le(n,e),n.prototype.transform=function(t,n){return void 0===n&&(n=new et),e.prototype.transform.call(this,t,n)},n=pe([t.Pipe({name:"localizedCurrencyImpure",pure:!1})],n)}(tt),ot=d,it=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(i.map((function(){return e?ot(e).format(t):e})))},e.ctorParameters=function(){return[{type:Xe}]},e=pe([t.Pipe({name:"localizedDate"})],e)}(),rt=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return le(n,e),n=pe([t.Pipe({name:"localizedDateImpure",pure:!1})],n)}(it),at=function(){function e(e){this.localeService=e}return e.prototype.transform=function(e,t){return o.from(this.localeService.getLocale()).pipe(i.map((function(n){var o=Number(e);if(e||!isNaN(o))return new Intl.NumberFormat(n,{minimumFractionDigits:t||0}).format(Number(e))})))},e.ctorParameters=function(){return[{type:Xe}]},e=pe([t.Pipe({name:"localizedNumber"})],e)}(),st=d,lt=function(){function e(e){this.localeService=e}return e.prototype.transform=function(e,t){return void 0===t&&(t="LTS"),this.localeService.get().pipe(i.map((function(){return e?st(e,"HH:mm:ss").format(t):e})))},e.ctorParameters=function(){return[{type:Xe}]},e=pe([t.Pipe({name:"localizedTime"})],e)}(),ct=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return le(n,e),n=pe([t.Pipe({name:"localizedTimeImpure",pure:!1})],n)}(lt),pt=function(){function e(e){this.localeService=e,this.currencies={KHR:{precision:12,scale:2},SSP:{precision:12,scale:2},XCD:{precision:12,scale:2},EGP:{precision:12,scale:2},KWD:{precision:12,scale:3},YER:{precision:12,scale:2},HUF:{precision:12,scale:2},MXN:{precision:12,scale:2},MYR:{precision:12,scale:2},ZWL:{precision:12,scale:2},MUR:{precision:12,scale:2},DKK:{precision:12,scale:2},NOK:{precision:12,scale:2},DJF:{precision:12,scale:0},CRC:{precision:12,scale:2},BND:{precision:12,scale:2},NAD:{precision:12,scale:2},MKD:{precision:12,scale:2},CDF:{precision:12,scale:2},GNF:{precision:12,scale:0},EUR:{precision:12,scale:2},OMR:{precision:12,scale:3},CLP:{precision:12,scale:0},BSD:{precision:12,scale:2},TOP:{precision:12,scale:2},IRR:{precision:12,scale:2},BGN:{precision:12,scale:2},BZD:{precision:12,scale:2},CNY:{precision:12,scale:2},FJD:{precision:12,scale:2},SRD:{precision:12,scale:2},SOS:{precision:12,scale:2},GYD:{precision:12,scale:2},VUV:{precision:12,scale:0},MWK:{precision:12,scale:2},MRU:{precision:12,scale:2},LSL:{precision:12,scale:2},ERN:{precision:12,scale:2},BMD:{precision:12,scale:2},WST:{precision:12,scale:2},LRD:{precision:12,scale:2},GMD:{precision:12,scale:2},ARS:{precision:12,scale:2},ZAR:{precision:12,scale:2},RSD:{precision:12,scale:2},MDL:{precision:12,scale:2},USD:{precision:12,scale:2},QAR:{precision:12,scale:2},HRK:{precision:12,scale:2},GIP:{precision:12,scale:2},NPR:{precision:12,scale:2},"002":{precision:9,scale:4},PLN:{precision:12,scale:2},MAD:{precision:12,scale:2},BAM:{precision:12,scale:2},BTN:{precision:12,scale:2},BBD:{precision:12,scale:2},SHP:{precision:12,scale:2},LKR:{precision:12,scale:2},KPW:{precision:12,scale:2},LAK:{precision:12,scale:2},SZL:{precision:12,scale:2},PHP:{precision:12,scale:2},RWF:{precision:12,scale:0},ISK:{precision:12,scale:0},XOF:{precision:12,scale:0},AUD:{precision:12,scale:2},NGN:{precision:12,scale:2},KGS:{precision:12,scale:2},KYD:{precision:12,scale:2},PGK:{precision:12,scale:2},DZD:{precision:12,scale:2},XAF:{precision:12,scale:0},PEN:{precision:12,scale:2},JPY:{precision:12,scale:0},SBD:{precision:12,scale:2},UGX:{precision:12,scale:0},AMD:{precision:12,scale:2},AED:{precision:12,scale:2},ALL:{precision:12,scale:2},XPF:{precision:12,scale:0},AFN:{precision:12,scale:2},RON:{precision:12,scale:2},TND:{precision:12,scale:3},NZD:{precision:12,scale:2},JOD:{precision:12,scale:3},VND:{precision:12,scale:0},ETB:{precision:12,scale:2},PYG:{precision:12,scale:0},JMD:{precision:12,scale:2},KES:{precision:12,scale:2},IDR:{precision:12,scale:2},HKD:{precision:12,scale:2},BDT:{precision:12,scale:2},GBP:{precision:12,scale:2},AOA:{precision:12,scale:2},PKR:{precision:12,scale:2},TRY:{precision:12,scale:2},SLL:{precision:12,scale:2},CVE:{precision:12,scale:2},LYD:{precision:12,scale:3},ILS:{precision:12,scale:2},UZS:{precision:12,scale:2},CHF:{precision:12,scale:2},SVC:{precision:12,scale:2},BRL:{precision:12,scale:2},GHS:{precision:12,scale:2},CUP:{precision:12,scale:2},FKP:{precision:12,scale:2},NIO:{precision:12,scale:2},GEL:{precision:12,scale:2},TTD:{precision:12,scale:2},AAA:{precision:1,scale:1},COP:{precision:12,scale:2},MGA:{precision:12,scale:2},INR:{precision:12,scale:2},KRW:{precision:12,scale:0},HNL:{precision:12,scale:2},MMK:{precision:12,scale:2},TZS:{precision:12,scale:2},THB:{precision:12,scale:2},TMT:{precision:12,scale:2},SAR:{precision:12,scale:2},UYU:{precision:12,scale:2},BIF:{precision:12,scale:0},MVR:{precision:12,scale:2},RUB:{precision:12,scale:2},GTQ:{precision:12,scale:2},SCR:{precision:12,scale:2},IQD:{precision:12,scale:3},UAH:{precision:12,scale:2},BYN:{precision:12,scale:2},VES:{precision:12,scale:2},BOB:{precision:12,scale:2},SGD:{precision:12,scale:2},ZMW:{precision:12,scale:2},CZK:{precision:12,scale:2},TJS:{precision:12,scale:2},DOP:{precision:12,scale:2},AZN:{precision:12,scale:2},PAB:{precision:12,scale:2},STN:{precision:12,scale:2},SDG:{precision:12,scale:2},BWP:{precision:12,scale:2},BHD:{precision:12,scale:3},CAD:{precision:12,scale:2},MNT:{precision:12,scale:2},MOP:{precision:12,scale:2},HTG:{precision:12,scale:2},KZT:{precision:12,scale:2},LBP:{precision:12,scale:2},SYP:{precision:12,scale:2},TWD:{precision:12,scale:2},MZN:{precision:12,scale:2},ANG:{precision:12,scale:2},SEK:{precision:12,scale:2},KMF:{precision:12,scale:0},AWG:{precision:12,scale:2}}}return e.prototype.getCurrencySymbol=function(e){var t,n,o=e.currency;return null!==(n=null===(t=new Intl.NumberFormat(this.localeService.getLocaleOptions().locale,{style:"currency",currency:null!=o?o:"BRL",currencyDisplay:"narrowSymbol",maximumFractionDigits:5}).formatToParts(1).find((function(e){return"currency"===e.type})))||void 0===t?void 0:t.value)&&void 0!==n?n:""},e.ctorParameters=function(){return[{type:Xe}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](Xe))},token:e,providedIn:"root"}),e=pe([t.Injectable({providedIn:"root"})],e)}(),dt=function(){function e(e,t){this.localeService=e,this.currencyService=t}return e.prototype.instant=function(e,t){var n,o,i,r,a,s,l,c,p,d,u,m;return Se(e)?null:((t=ce(ce({},t),{locale:null!==(i=null!==(n=null==t?void 0:t.locale)&&void 0!==n?n:null===(o=this.localeService.getLocaleOptions())||void 0===o?void 0:o.locale)&&void 0!==i?i:"pt-BR",numberFormatOptions:ce(ce({useGrouping:!0},null==t?void 0:t.numberFormatOptions),{currency:"currency"===(null===(r=null==t?void 0:t.numberFormatOptions)||void 0===r?void 0:r.style)?null!==(s=null===(a=null==t?void 0:t.numberFormatOptions)||void 0===a?void 0:a.currency)&&void 0!==s?s:"BRL":void 0,currencyDisplay:"currency"===(null===(l=null==t?void 0:t.numberFormatOptions)||void 0===l?void 0:l.style)?null!==(p=null===(c=null==t?void 0:t.numberFormatOptions)||void 0===c?void 0:c.currencyDisplay)&&void 0!==p?p:"narrowSymbol":void 0,minimumFractionDigits:null!==(u=null===(d=null==t?void 0:t.numberFormatOptions)||void 0===d?void 0:d.minimumFractionDigits)&&void 0!==u?u:this.getCurrencyMinimumFractionDigits(null===(m=null==t?void 0:t.numberFormatOptions)||void 0===m?void 0:m.currency)})})).numberFormatOptions.roundingMode="trunc",new Intl.NumberFormat(t.locale,t.numberFormatOptions).format("number"===this.getType(e)||"string"===this.getType(e)?e:e.toString()))},e.prototype.getCurrencyMinimumFractionDigits=function(e){var t;return e?null===(t=this.currencyService.currencies[e.toUpperCase()])||void 0===t?void 0:t.scale:null},e.prototype.getType=function(e){if(null===e)return"null";var t=typeof e;if("object"!==t&&"function"!==t)return t;var n=e[Symbol.toStringTag];if("string"==typeof n)return n;if("function"===t&&Function.prototype.toString.call(e).startsWith("class"))return"class";var o=e.constructor.name;return"string"==typeof o&&""!==o?o:t},e.ctorParameters=function(){return[{type:Xe},{type:pt}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](Xe),t["ɵɵinject"](pt))},token:e,providedIn:"root"}),e=pe([t.Injectable({providedIn:"root"})],e)}(),ut=function(){function e(e,t){this.numericService=e,this.localeService=t}return e.prototype.transform=function(e,t){var n=this;return(null==t?void 0:t.locale)?o.of(this.numericService.instant(e,t)):this.localeService.getLocale().pipe(i.map((function(o){return n.numericService.instant(e,{locale:o,numberFormatOptions:null==t?void 0:t.numberFormatOptions})})))},e.ctorParameters=function(){return[{type:dt},{type:Xe}]},e=pe([t.Pipe({name:"numeric"})],e)}(),mt=function(){function e(){}var n;return n=e,e.forRoot=function(){return{ngModule:n,providers:[Xe,tt,it,lt,at,nt,rt,ct,Je,Qe,ut]}},e.forChild=function(){return{ngModule:n}},e=n=pe([t.NgModule({imports:[r.CommonModule],exports:[tt,it,lt,at,nt,rt,ct,Je,Qe,ut],declarations:[tt,it,lt,at,nt,rt,ct,Je,Qe,ut]})],e)}(),ht=function(e){function n(n){var o=e.call(this,n)||this;return o.precision=15,o.scale=0,o.alignTo=l.AlignmentOptions.LEFT,o.allowNegative=!0,o.pasteRejected=new t.EventEmitter,o._angularComponentsLocaleService=n.get(Xe),o.onLocaleService(),o}var o;return le(n,e),o=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.onPaste=function(e){var t,n,o=null!==(n=null===(t=e.clipboardData)||void 0===t?void 0:t.getData("text"))&&void 0!==n?n:"",i=fe(o.replace(new RegExp("\\"+this.thousandsSeparator,"g"),"").replace(this.decimalSeparator,".").split("."),2),r=i[0],a=i[1],s=void 0===a?"":a;r.replace(/\D/g,"").length+s.slice(0,this.scale).length>this.precision&&(e.preventDefault(),this.pasteRejected.emit(o))},n.prototype.onKeypress=function(e){var t=e.code;"Minus"===t||"NumpadSubtract"===t?this.allowNegative&&(this.maxLength=this._maxLength+1):"Equal"!==t&&"NumpadAdd"!==t||(this.maxLength=this._maxLength)},n.prototype.updateVariables=function(){var e;this.options={align:this.alignTo,decimalSeparator:this.decimalSeparator,thousandsSeparator:null!==(e=this.thousandsSeparator)&&void 0!==e?e:".",scale:this.scale||0,prefix:"",suffix:"",allowNegative:this.allowNegative},this.calculateMaxLength()},n.prototype.calculateMaxLength=function(){var e,t,n=this.decimalSeparator.length,o=null!==(t=null===(e=this.thousandsSeparator)||void 0===e?void 0:e.length)&&void 0!==t?t:1,i=this.precision+(this.scale?n:0);i+=Math.ceil((this.precision-(this.scale?this.scale:0))/3-1)*o,this._maxLength=i,this.maxLength=i},n.prototype.onLocaleService=function(){var e=this;this._angularComponentsLocaleService.getLocale().pipe(i.first()).subscribe((function(){var t,n;e.decimalSeparator=null!==(t=e.decimalSeparator)&&void 0!==t?t:e._angularComponentsLocaleService.getDecimalSeparator(),e.thousandsSeparator=null!==(n=e.thousandsSeparator)&&void 0!==n?n:e._angularComponentsLocaleService.getGroupingSeparator()}))},n.ctorParameters=function(){return[{type:t.Injector}]},pe([t.Input()],n.prototype,"precision",void 0),pe([t.Input()],n.prototype,"scale",void 0),pe([t.Input()],n.prototype,"decimalSeparator",void 0),pe([t.Input()],n.prototype,"thousandsSeparator",void 0),pe([t.Input()],n.prototype,"alignTo",void 0),pe([t.Input()],n.prototype,"allowNegative",void 0),pe([t.Input(),t.HostBinding("attr.placeholder")],n.prototype,"placeholder",void 0),pe([t.HostBinding("attr.maxLength")],n.prototype,"maxLength",void 0),pe([t.Output()],n.prototype,"pasteRejected",void 0),pe([t.HostListener("paste",["$event"])],n.prototype,"onPaste",null),pe([t.HostListener("keypress",["$event"])],n.prototype,"onKeypress",null),n=o=pe([t.Directive({selector:"input[sBignumberInput]",providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return o})),multi:!0}]})],n)}(l.CurrencyMaskDirective),ft=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[ht],exports:[ht]})],e)}(),gt=function(){function e(e,t){var n=this;this.activatedRoute=e,this.router=t,this.targetHomeUrl="_self",this.ngUnsubscribe=new o.Subject,this.router.events.pipe(i.takeUntil(this.ngUnsubscribe),i.filter((function(e){return e instanceof s.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===s.PRIMARY_OUTLET;return e.children.reduce((function(e,n){return ge(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=ce(ce({},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,o){return t.getMenuItem(n,o===e.length-1)})):void 0}},e.prototype.getMenuItem=function(e,t){void 0===t&&(t=!1);var n=this.getTitle(e),o=e.pathFromRoot;return{label:n,routerLink:o.slice(0,o.indexOf(e)+1).reduce((function(e,t){return ge(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,o=t.data.routeTitle;if(!o)throw new Error("No routeTitle defined for the route /"+n.path);return o},e.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},e.ctorParameters=function(){return[{type:s.ActivatedRoute},{type:s.Router}]},pe([t.Input()],e.prototype,"homeUrl",void 0),pe([t.Input()],e.prototype,"targetHomeUrl",void 0),e=pe([t.Component({selector:"s-breadcrumb",template:'<h1 class="sds-page-title">{{title}}</h1>\n<p-breadcrumb [home]="home" [model]="items"></p-breadcrumb>'})],e)}(),vt=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,h.BreadcrumbModule,s.RouterModule],declarations:[gt],exports:[gt,s.RouterModule]})],e)}();(e.ButtonAnimation||(e.ButtonAnimation={})).Rotate="rotate",(Ve=e.ButtonPriority||(e.ButtonPriority={})).Default="default",Ve.Primary="primary",Ve.Secondary="secondary",Ve.Link="link",Ve.Danger="danger",(Be=e.ButtonSize||(e.ButtonSize={})).Default="default",Be.Small="small";var bt,yt=function(){function n(){this.minWidth="40px",this.id="s-button-"+o.nextId++,this.tooltipPosition="top",this.caret=!0,this.baseZIndex=0,this.disabled=!1,this.auxiliary=!1,this.type="button",this.priority=e.ButtonPriority.Primary,this.model=[],this.menuOptions=[],this.size=e.ButtonSize.Default,this.onClick=new t.EventEmitter}var o;return o=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,o=this.model&&this.model.length;(n||t&&o)&&(this.minWidth="80px"),n&&t&&o&&(this.minWidth="100px")},n.prototype.updateTooltipZIndex=function(){this.tooltipZIndex=this.baseZIndex+ ++f.DomHandler.zindex},n.prototype.isRotateAnimation=function(){return this.animation===e.ButtonAnimation.Rotate},n.nextId=0,pe([t.HostBinding("style.min-width")],n.prototype,"minWidth",void 0),pe([t.Input()],n.prototype,"id",void 0),pe([t.Input()],n.prototype,"label",void 0),pe([t.Input()],n.prototype,"tooltip",void 0),pe([t.Input()],n.prototype,"tooltipPosition",void 0),pe([t.Input()],n.prototype,"iconClass",void 0),pe([t.Input()],n.prototype,"rightIconClass",void 0),pe([t.Input()],n.prototype,"caret",void 0),pe([t.Input()],n.prototype,"styleClass",void 0),pe([t.Input()],n.prototype,"baseZIndex",void 0),pe([t.Input()],n.prototype,"disabled",void 0),pe([t.Input()],n.prototype,"auxiliary",void 0),pe([t.Input()],n.prototype,"type",void 0),pe([t.Input()],n.prototype,"priority",void 0),pe([t.Input()],n.prototype,"model",void 0),pe([t.Input()],n.prototype,"menuOptions",void 0),pe([t.Input()],n.prototype,"size",void 0),pe([t.Input()],n.prototype,"slide",void 0),pe([t.Input()],n.prototype,"animation",void 0),pe([t.Input()],n.prototype,"badge",void 0),pe([t.Input()],n.prototype,"iconColor",void 0),pe([t.Output()],n.prototype,"onClick",void 0),pe([t.ViewChild(g.TieredMenu,{static:!0})],n.prototype,"menu",void 0),n=o=pe([t.Component({selector:"s-button",template:'\x3c!-- Remover na próxima major. --\x3e\n<p-tieredMenu\n [id]="id + \'-menu\'"\n [popup]="true"\n appendTo="body"\n [baseZIndex]="baseZIndex">\n</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-priority-danger\': priority === \'danger\',\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 sTieredMenu\n [items]="menuOptions"\n [disabled]="disabled"\n [sTooltip]="tooltip"\n [tooltipPosition]="tooltipPosition"\n [showDelay]="500"\n (click)="onClick.emit($event)"\n (mouseenter)="updateTooltipZIndex()">\n <div *ngIf="badge" class="badge">\n <s-badge\n [color]="badge.color"\n [text]="badge.text"\n [iconClass]="badge.iconClass">\n </s-badge>\n </div>\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 [ngStyle]="{ color: iconColor }"\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 [ngStyle]="{ color: iconColor }"\n aria-hidden="true">\n </span>\n <span\n *ngIf="caret && (model && model.length) || (menuOptions && menuOptions.length)" \n class="fa fa-fw fa-caret-down"\n aria-hidden="true">\n </span>\n</button>\n',styles:[':host{display:inline-block}button{-ms-flex-align:center;align-items:center;border:1px solid;border-radius:4px;cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;font-family:"Open Sans",sans-serif;font-size:14px;height:35px;-ms-flex-pack:center;justify-content:center;max-width:100%;min-width:40px;outline:0;overflow:visible;padding:5px 10px;position:relative;text-decoration:none;text-transform:none;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{height:25px;padding:0 20px}button.s-button-size-default{height:35px}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{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}button.s-button-multiple .s-button-text{-ms-flex-align:left;align-items:left;display:-ms-flexbox;display:flex;-ms-flex-pack:left;justify-content:left}button.s-button-with-icon .s-button-text{-ms-flex-align:right;align-items:right;display:-ms-flexbox;display:flex;-ms-flex-pack:right;justify-content:right}.s-button-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.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}.s-button-priority-danger{background-color:#9c3a3a;border-color:#9c3a3a}.s-button-priority-danger .s-button-icon,.s-button-priority-danger .s-button-menu-icon,.s-button-priority-danger .s-button-right-icon,.s-button-priority-danger .s-button-text{color:#fff}.s-button-priority-danger:hover{background-color:#642525}.s-button-priority-danger:focus{background-color:#642525;border-color:#22dce6}.s-button-priority-danger.s-button-active:not(:disabled),.s-button-priority-danger:active:not(:disabled){background-color:#521e1e;border-color:#521e1e}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{opacity:1;position:relative;transition:1s;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{transform:rotate(360deg);transition:1.5s}.badge{position:absolute;top:-10px;right:-10px;z-index:99}']})],n)}(),xt=function(){function e(){}return e=pe([t.Component({selector:"s-tiered-menu-divider",template:'<div class="divider"></div>',styles:[".divider{margin:2px 0;height:1px;background-color:#ccc}"]})],e)}(),_t=function(){function e(){this.incrementCurrentItemEvent=new t.EventEmitter,this.decrementCurrentItemEvent=new t.EventEmitter,this.closeAllMenusEvent=new t.EventEmitter,this.selectItemEvent=new t.EventEmitter,this.openItemMenuEvent=new t.EventEmitter,this.closeItemMenuEvent=new t.EventEmitter,this.createMenuEvent=new t.EventEmitter}return e=pe([t.Injectable()],e)}(),wt=function(){function e(e){this._tieredMenuEventService=e,this.focused=!1,this.highlight=!1,this.triggerEvent="click",this.closeOnClick=!1}return e.prototype.onClick=function(){this.item.disabled||(this.item.submenu?this.item.isOpen?this.closeOnClick&&this._tieredMenuEventService.closeItemMenuEvent.emit(this.item):this._tieredMenuEventService.openItemMenuEvent.emit(this.item):this._tieredMenuEventService.selectItemEvent.emit(this.item))},e.prototype.onMouseEnter=function(){var e=this;this.item.disabled||"hover"!==this.triggerEvent||this.item.isOpen||(this._showTimeout=window.setTimeout((function(){e._tieredMenuEventService.openItemMenuEvent.emit(e.item)}),300))},e.prototype.onMouseLeave=function(){window.clearTimeout(this._showTimeout)},e.ctorParameters=function(){return[{type:_t}]},pe([t.Input()],e.prototype,"item",void 0),pe([t.Input()],e.prototype,"focused",void 0),pe([t.Input()],e.prototype,"highlight",void 0),pe([t.Input()],e.prototype,"triggerEvent",void 0),pe([t.Input()],e.prototype,"closeOnClick",void 0),pe([t.HostListener("click"),t.HostListener("touchend")],e.prototype,"onClick",null),pe([t.HostListener("mouseenter")],e.prototype,"onMouseEnter",null),pe([t.HostListener("mouseleave")],e.prototype,"onMouseLeave",null),e=pe([t.Component({selector:"s-tiered-menu-item",template:'<div\n [id]="item.id"\n class="tiered-menu-item"\n [ngClass]="{\n \'tiered-menu-item--open\': item.isOpen,\n \'tiered-menu-item--focused\': focused,\n \'tiered-menu-item--disabled\': item.disabled\n }">\n <div class="tiered-menu-item-content">\n <span class="icon" [ngClass]="item.iconClass"></span>\n <span class="label">{{ item.label }}</span>\n </div>\n <span\n *ngIf="item.submenu"\n class="submenu-icon"\n [ngClass]="{\n \'fas\': true,\n \'fa-chevron-left\': item.isOpen,\n \'fa-chevron-right\': !item.isOpen\n }">\n </span>\n</div>',styles:[".tiered-menu-item{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:8px 16px;-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.tiered-menu-item .tiered-menu-item-content .label{margin:0 12px}.tiered-menu-item:hover{background-color:#e9e6e6}.tiered-menu-item--focused{background-color:#ccc!important}.tiered-menu-item--open{background-color:#e4e2e2}.tiered-menu-item--disabled{opacity:50%;cursor:default}"]})],e)}(),Ct=function(){function e(){this.currentItems=[],this.items=[]}return e.prototype.normalizeData=function(e,t){var n=this;return e.map((function(e){var o=ce({visible:!0},e);return o.submenu&&(o.submenu=n.normalizeData(o.submenu,o)),o.id=n._generateId(),o.parent=t,o.isOpen=!1,o}))},e.prototype.markAllItemsAsClosed=function(e){var t=this;return e.map((function(e){var n=ce({},e);return n.submenu&&(n.submenu=t.markAllItemsAsClosed(n.submenu)),n.isOpen=!1,n}))},e.prototype.searchTheHierarchy=function(e,t){for(var n=t;n;){if(n===e)return!0;n=n.parent}return!1},e.prototype.cloneItems=function(e){return JSON.parse(JSON.stringify(e))},e.prototype._generateId=function(){return"id-"+Math.random().toString(36).substring(2,9)+"-"+Math.random().toString(36).substring(2,9)+"-"+Math.random().toString(36).substring(2,9)},e=pe([t.Injectable()],e)}(),kt=function(){document.body.style.overflow="auto"},It=function(){document.body.style.overflow="hidden"},St=function(){function e(e,t){this.tieredMenuService=e,this._tieredMenuEventService=t,this.top=0,this.left=0,this._unsubscribe$=new o.Subject}return e.prototype.onResize=function(){this._tieredMenuEventService.closeAllMenusEvent.emit()},e.prototype.onDocumentClick=function(e){var t=e.target;t.closest("s-tiered-menu-item")||t.closest("s-tiered-menu-divider")||this._tieredMenuEventService.closeAllMenusEvent.emit()},e.prototype.onKeydownHandler=function(e){switch(e.key){case"Escape":this._tieredMenuEventService.closeAllMenusEvent.emit();break;case" ":case"Enter":this._tieredMenuEventService.selectItemEvent.emit(this.tieredMenuService.currentItem);break;case"ArrowLeft":this._tieredMenuEventService.closeItemMenuEvent.emit(this.tieredMenuService.currentItem.parent);break;case"ArrowRight":this._tieredMenuEventService.openItemMenuEvent.emit(this.tieredMenuService.currentItem);break;case"ArrowUp":this._tieredMenuEventService.decrementCurrentItemEvent.emit();break;case"ArrowDown":this._tieredMenuEventService.incrementCurrentItemEvent.emit()}},e.prototype.ngOnInit=function(){this.tieredMenuService.currentItems=this.items,this._subscribeEvents(),It()},e.prototype.ngOnDestroy=function(){this._unsubscribe$.next(),this._unsubscribe$.complete(),kt()},e.prototype._incrementCurItem=function(){if(this.tieredMenuService.currentItem){var e=this.tieredMenuService.currentItems.indexOf(this.tieredMenuService.currentItem)+1;e<this.tieredMenuService.currentItems.length?this.tieredMenuService.currentItem=this.tieredMenuService.currentItems[e]:this.tieredMenuService.currentItem=this.tieredMenuService.currentItems[0],this.tieredMenuService.currentItem.divider&&this._incrementCurItem()}else this.tieredMenuService.currentItem=this.tieredMenuService.currentItems[0]},e.prototype._decrementCurItem=function(){if(this.tieredMenuService.currentItem){var e=this.tieredMenuService.currentItems.indexOf(this.tieredMenuService.currentItem)-1;this.tieredMenuService.currentItem=e>=0?this.tieredMenuService.currentItems[e]:this.tieredMenuService.currentItems[this.tieredMenuService.currentItems.length-1],this.tieredMenuService.currentItem.divider&&this._decrementCurItem()}else this.tieredMenuService.currentItem=this.tieredMenuService.currentItems[0]},e.prototype._closeItem=function(e){for(var t,n=this._lastOpenItem;n&&n!=e;)n.isOpen=!1,n=n.parent;e.isOpen=!1,this.tieredMenuService.currentItem=null!=n?n:this.tieredMenuService.items[0],this.tieredMenuService.currentItems=(null===(t=null==n?void 0:n.parent)||void 0===t?void 0:t.submenu)||this.tieredMenuService.items},e.prototype._openItem=function(e){(null==e?void 0:e.submenu)&&(e.isOpen=!0,this.tieredMenuService.currentItems=e.submenu,this.tieredMenuService.currentItem&&(this.tieredMenuService.currentItem=e.submenu[0]),this._lastOpenItem=e)},e.prototype._subscribeEvents=function(){var e=this;this._tieredMenuEventService.incrementCurrentItemEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(){e._incrementCurItem()})),this._tieredMenuEventService.decrementCurrentItemEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(){e._decrementCurItem()})),this._tieredMenuEventService.selectItemEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){t.command&&(t.command(),e._tieredMenuEventService.closeAllMenusEvent.emit())})),this._tieredMenuEventService.openItemMenuEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){var n,o;if(!e.tieredMenuService.currentItems.includes(t)){for(var i=e._lastOpenItem;null===(n=null==i?void 0:i.parent)||void 0===n?void 0:n.parent;)i=i.parent;e._tieredMenuEventService.closeItemMenuEvent.emit(null!==(o=i.parent)&&void 0!==o?o:i)}e._lastOpenItem=t,e._openItem(t)})),this._tieredMenuEventService.closeItemMenuEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){t&&e._closeItem(t)}))},e.ctorParameters=function(){return[{type:Ct},{type:_t}]},pe([t.HostListener("window:resize")],e.prototype,"onResize",null),pe([t.HostListener("document:click",["$event"])],e.prototype,"onDocumentClick",null),pe([t.HostListener("document:keydown",["$event"])],e.prototype,"onKeydownHandler",null),e=pe([t.Component({template:'<div\n class="menu menu--nested"\n [ngStyle]="{\n \'top\': top + \'px\',\n \'left\': left + \'px\'\n }">\n <ng-container *ngTemplateOutlet="itemsTemplate; context: { $implicit: items }"></ng-container>\n</div>\n\n<ng-template #itemsTemplate let-items>\n <div *ngFor="let item of items">\n <s-tiered-menu-item\n *ngIf="item.visible && !item.divider"\n [item]="item"\n [focused]="item === tieredMenuService.currentItem"\n [closeOnClick]="true">\n </s-tiered-menu-item>\n\n <s-tiered-menu-divider *ngIf="item.divider"></s-tiered-menu-divider>\n\n <div *ngIf="item.submenu && item.isOpen">\n <div class="submenu">\n <ng-container *ngTemplateOutlet="itemsTemplate; context: { $implicit: item.submenu }"></ng-container>\n </div>\n </div>\n </div>\n</ng-template>\n',styles:[".menu{background-color:#fff;border:1px solid #ccc;border-radius:6px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;min-width:176px;padding:4px 0;position:absolute;z-index:9999;overflow:auto;width:calc(100vw - 8px)}.menu .submenu{margin-left:24px}"]})],e)}(),Tt=function(){function e(e,n,i,r,a,s){this._appRef=e,this._componentFactoryResolver=n,this._injector=i,this._changeDetectorRef=r,this.tieredMenuService=a,this._tieredMenuEventService=s,this.top=0,this.left=0,this.menuTriggerEvent="hover",this._componentRef=null,this._unsubscribe$=new o.Subject,this.destroyRequest=new t.EventEmitter}var n;return n=e,e.prototype.onResize=function(){this._tieredMenuEventService.closeAllMenusEvent.emit()},e.prototype.onDocumentClick=function(e){var t=e.target;t.closest("s-tiered-menu-item")||t.closest("s-tiered-menu-divider")||this._tieredMenuEventService.closeAllMenusEvent.emit()},e.prototype.onKeydownHandler=function(e){switch(e.key){case"Escape":this._tieredMenuEventService.closeAllMenusEvent.emit();break;case" ":case"Enter":this.tieredMenuService.currentItem.disabled||this._tieredMenuEventService.selectItemEvent.emit(this.tieredMenuService.currentItem);break;case"ArrowLeft":this.items.includes(this.tieredMenuService.currentItem)&&(this._tieredMenuEventService.closeItemMenuEvent.emit(this.tieredMenuService.currentItem),this._changeDetectorRef.detectChanges());break;case"ArrowRight":!this.tieredMenuService.currentItem.disabled&&this.items.includes(this.tieredMenuService.currentItem)&&(this._tieredMenuEventService.openItemMenuEvent.emit(this.tieredMenuService.currentItem),e.stopImmediatePropagation());break;case"ArrowUp":this.tieredMenuService.currentItem&&!this.items.includes(this.tieredMenuService.currentItem)||(this._tieredMenuEventService.decrementCurrentItemEvent.emit(),e.stopImmediatePropagation());break;case"ArrowDown":this.tieredMenuService.currentItem&&!this.items.includes(this.tieredMenuService.currentItem)||(this._tieredMenuEventService.incrementCurrentItemEvent.emit(),e.stopImmediatePropagation())}},e.prototype.ngOnInit=function(){this.tieredMenuService.currentItems=this.items,this._subscribeEvents(),It()},e.prototype.ngOnDestroy=function(){this._unsubscribe$.next(),this._unsubscribe$.complete()},e.prototype._incrementCurItem=function(){if(this.tieredMenuService.currentItem){if(this.items.includes(this.tieredMenuService.currentItem)){var e=this.tieredMenuService.currentItems.indexOf(this.tieredMenuService.currentItem)+1;e<this.tieredMenuService.currentItems.length?this.tieredMenuService.currentItem=this.tieredMenuService.currentItems[e]:this.tieredMenuService.currentItem=this.tieredMenuService.currentItems[0],this.tieredMenuService.currentItem.divider&&this._incrementCurItem()}}else this.tieredMenuService.currentItem=this.tieredMenuService.currentItems[0]},e.prototype._decrementCurItem=function(){if(this.tieredMenuService.currentItem){if(this.items.includes(this.tieredMenuService.currentItem)){var e=this.tieredMenuService.currentItems.indexOf(this.tieredMenuService.currentItem)-1;this.tieredMenuService.currentItem=e>=0?this.tieredMenuService.currentItems[e]:this.tieredMenuService.currentItems[this.tieredMenuService.currentItems.length-1],this.tieredMenuService.currentItem.divider&&this._decrementCurItem()}}else this.tieredMenuService.currentItem=this.tieredMenuService.currentItems[0]},e.prototype._createMenu=function(e,t){var o=this;if(!this._componentRef&&e){var i=this._componentFactoryResolver.resolveComponentFactory(n);this._componentRef=i.create(this._injector),this._appRef.attachView(this._componentRef.hostView);var r=this._componentRef.hostView.rootNodes[0];document.body.appendChild(r),this._componentRef.instance.items=e,this._componentRef.instance.destroyRequest.subscribe((function(e){o._destroy(e)})),this._menuDivElement=r.querySelector(".menu"),this._setMenuPosition(t)}},e.prototype._destroy=function(e){void 0===e&&(e=!0),null!==this._componentRef&&(this._appRef.detachView(this._componentRef.hostView),this._componentRef.destroy(),this._componentRef=null,this._menuDivElement=null),e&&this.destroyRequest.emit()},e.prototype._setMenuPosition=function(e){var t,n;if(null!==this._componentRef){var o=e.top,i=e.right,r=e.bottom,a=e.left,s=37*(null===(t=this._componentRef.instance.items)||void 0===t?void 0:t.reduce((function(e,t){return t.divider?e:e+1}),0))+5*(null===(n=this._componentRef.instance.items)||void 0===n?void 0:n.reduce((function(e,t){return t.divider?e+1:e}),0))+8+8,l=this._menuDivElement.getBoundingClientRect().width,c=window.innerWidth-i,p=window.innerHeight-r;this._componentRef.instance.left=c>l?i:a-l,this._componentRef.instance.top=p<=s?Math.max(window.innerHeight-s,window.scrollY):window.scrollY+o}},e.prototype._subscribeEvents=function(){var e=this;this._tieredMenuEventService.incrementCurrentItemEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(){e._incrementCurItem()})),this._tieredMenuEventService.decrementCurrentItemEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(){e._decrementCurItem()})),this._tieredMenuEventService.selectItemEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){t.submenu?e._tieredMenuEventService.openItemMenuEvent.emit(t):t.command&&(e._tieredMenuEventService.closeAllMenusEvent.emit(),t.command())})),this._tieredMenuEventService.closeAllMenusEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(){e._destroy(),e.tieredMenuService.currentItem=null,e.tieredMenuService.currentItems=e.tieredMenuService.items,e.tieredMenuService.markAllItemsAsClosed(e.tieredMenuService.items),kt()})),this._tieredMenuEventService.openItemMenuEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){if(e.tieredMenuService.currentItem){if(e.tieredMenuService.currentItem.parent===t)return;if(!e.tieredMenuService.searchTheHierarchy(e.tieredMenuService.currentItem.parent,t)){var n=e.tieredMenuService.currentItem;for(n.isOpen=!1;(null==n?void 0:n.parent)!==t.parent;)e._tieredMenuEventService.closeItemMenuEvent.emit(n),e._changeDetectorRef.detectChanges(),n=n.parent;n&&(n.isOpen=!1)}}if(t.submenu&&!t.isOpen&&e.items.includes(t)){var o=document.querySelector("#"+t.id).getBoundingClientRect(),i={top:o.top,right:o.right,left:o.left,bottom:o.bottom};e._createMenu(t.submenu,i),e.tieredMenuService.currentItems=t.submenu,e.tieredMenuService.currentItem=t.submenu[0],t.isOpen=!0}})),this._tieredMenuEventService.closeItemMenuEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){var n,o;e.items.some((function(e){return e.id===t.id}))&&(t.parent?t.parent.isOpen=!1:kt(),e.tieredMenuService.currentItems=(null===(o=null===(n=null==t?void 0:t.parent)||void 0===n?void 0:n.parent)||void 0===o?void 0:o.submenu)||e.tieredMenuService.items,e.tieredMenuService.currentItem=t.parent,e.destroyRequest.emit(!1))}))},e.ctorParameters=function(){return[{type:t.ApplicationRef},{type:t.ComponentFactoryResolver},{type:t.Injector},{type:t.ChangeDetectorRef},{type:Ct},{type:_t}]},pe([t.Output()],e.prototype,"destroyRequest",void 0),pe([t.HostListener("window:resize")],e.prototype,"onResize",null),pe([t.HostListener("document:click",["$event"])],e.prototype,"onDocumentClick",null),pe([t.HostListener("document:keydown",["$event"])],e.prototype,"onKeydownHandler",null),e=n=pe([t.Component({selector:"s-tiered-menu",template:'<div\n class="menu"\n [ngStyle]="{\n \'left\': left + \'px\',\n \'top\': top + \'px\'\n }">\n\n <div *ngFor="let item of items">\n <s-tiered-menu-item\n *ngIf="item.visible && !item.divider"\n [item]="item"\n [focused]="item === tieredMenuService.currentItem"\n [highlight]="item.isOpen"\n triggerEvent="hover"\n [closeOnClick]="false">\n </s-tiered-menu-item>\n <s-tiered-menu-divider *ngIf="item.divider"></s-tiered-menu-divider>\n </div>\n</div>',styles:[".menu{background-color:#fff;border:1px solid #ccc;border-radius:6px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;max-height:100vh;min-width:176px;padding:4px 0;overflow-y:auto;position:absolute;z-index:9999}"]})],e)}(),Et=function(){function e(){}return e=pe([t.Injectable()],e)}(),Mt=function(){function e(e,t,n,i,r,a,s,l){this._elementRef=e,this._appRef=t,this._componentFactoryResolver=n,this._injector=i,this._tieredMenuEventService=r,this._tieredMenuService=a,this._tieredMenuGlobalService=s,this._changeDetectorRef=l,this.focusedItem=void 0,this.triggerEvent="click",this._componentRef=null,this._isNested=!1,this._isOpen=!1,this._unsubscribe$=new o.Subject}return e.prototype.ngOnInit=function(){var e;this._itemsAreValid=!!(null===(e=this.items)||void 0===e?void 0:e.length),this._itemsAreValid&&this._subscribeEvents()},e.prototype.ngDoCheck=function(){if(this._itemsAreValid){this._previousItems||(this._previousItems=this._tieredMenuService.cloneItems(this.items));var e=!1;if(this.items.length!==this._previousItems.length)e=!0;else for(var t=0;t<this.items.length;t++)if(!this._compareItems(this.items[t],this._previousItems[t])){e=!0;break}e&&(this._updateServiceItems(),this._changeDetectorRef.detectChanges(),this._rebuildMenu()),this._previousItems=this._tieredMenuService.cloneItems(this.items)}},e.prototype.ngOnDestroy=function(){this._itemsAreValid&&(this._unsubscribe$.next(),this._unsubscribe$.complete(),this._destroy())},e.prototype.onClick=function(e){this._itemsAreValid&&("click"!==this.triggerEvent||this._isOpen||(this._lastActiveElement=document.activeElement,this._createMenu(),e.preventDefault(),e.stopPropagation()))},e.prototype._createMenu=function(){var e,t,n;this._updateServiceItems(),!this._componentRef&&(null===(e=this._tieredMenuService.items)||void 0===e?void 0:e.length)>0&&(null===(t=this._tieredMenuGlobalService.lastInstance)||void 0===t||t._destroy(),this._tieredMenuGlobalService.lastInstance=this,null===(n=this._lastActiveElement)||void 0===n||n.blur(),this._isOpen=!0,this._isNested=document.body.clientWidth<600,this._isNested?this._createNestedMenu():this._createTieredMenu())},e.prototype._createTieredMenu=function(){var e,t=this;if(!this._componentRef&&(null===(e=this._tieredMenuService.items)||void 0===e?void 0:e.length)>0){var n=this._componentFactoryResolver.resolveComponentFactory(Tt);this._componentRef=n.create(this._injector),this._appRef.attachView(this._componentRef.hostView);var o=this._componentRef.hostView.rootNodes[0];document.body.appendChild(o),this._setMenuComponentProperties(),this._componentRef.instance.destroyRequest.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(){t._destroy()})),this._setMenuPosition()}},e.prototype._createNestedMenu=function(){var e;if(!this._componentRef&&(null===(e=this._tieredMenuService.items)||void 0===e?void 0:e.length)>0){var t=this._componentFactoryResolver.resolveComponentFactory(St);this._componentRef=t.create(this._injector),this._appRef.attachView(this._componentRef.hostView);var n=this._componentRef.hostView.rootNodes[0];document.body.appendChild(n),this._setMenuComponentProperties(),this._setMenuPosition()}},e.prototype._destroy=function(){this._componentRef&&(this._isOpen=!1,window.clearTimeout(this._showTimeout),this._appRef.detachView(this._componentRef.hostView),this._componentRef.destroy(),this._componentRef=null,this._tieredMenuService.currentItems=this._tieredMenuService.items,this._tieredMenuService.currentItem=this._tieredMenuService.items[0],this._tieredMenuEventService.closeAllMenusEvent.emit())},e.prototype._setMenuPosition=function(){var e,t;if(null!==this._componentRef){this._componentRef.instance.top=8;var n=this._elementRef.nativeElement.getBoundingClientRect(),o=n.bottom,i=n.left,r=n.right,a=37*(null===(e=this._componentRef.instance.items)||void 0===e?void 0:e.reduce((function(e,t){return t.divider?e:e+1}),0))+5*(null===(t=this._componentRef.instance.items)||void 0===t?void 0:t.reduce((function(e,t){return t.divider?e+1:e}),0))+8+4,s=window.innerWidth-r,l=window.innerHeight-o;this._componentRef.instance.top=o,this._componentRef.instance.left=i,this._componentRef.instance.top=l<=a?Math.max(scrollY+o-a,0):window.scrollY+o+4,this._componentRef.instance.left=s>176?window.scrollX+i:window.scrollX+r-176,this._isNested&&(this._componentRef.instance.left=4)}},e.prototype._setMenuComponentProperties=function(){null!=this._componentRef&&(this._componentRef.instance.items=this._tieredMenuService.items)},e.prototype._subscribeEvents=function(){var e=this;this._tieredMenuEventService.closeAllMenusEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(){e._tieredMenuService.items=e._tieredMenuService.markAllItemsAsClosed(e._tieredMenuService.items),e._destroy(),kt()}))},e.prototype._compareItems=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},e.prototype._rebuildMenu=function(){this._destroy()},e.prototype._updateServiceItems=function(){var e,t=this;this._tieredMenuService.items=this._tieredMenuService.normalizeData(this.items),this._tieredMenuService.currentItems=this._tieredMenuService.items,this._tieredMenuService.currentItem=null!==(e=this._tieredMenuService.items.find((function(e){var n;return e.label===(null===(n=t.focusedItem)||void 0===n?void 0:n.label)})))&&void 0!==e?e:this._tieredMenuService.items[0]},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ApplicationRef},{type:t.ComponentFactoryResolver},{type:t.Injector},{type:_t},{type:Ct},{type:Et},{type:t.ChangeDetectorRef}]},pe([t.Input()],e.prototype,"items",void 0),pe([t.Input()],e.prototype,"focusedItem",void 0),pe([t.Input()],e.prototype,"triggerEvent",void 0),pe([t.HostListener("click",["$event"])],e.prototype,"onClick",null),e=pe([t.Directive({selector:"[sTieredMenu]",providers:[_t,Ct]})],e)}(),Lt=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[Mt,Tt,St,wt,xt],exports:[Mt],providers:[Et]})],e)}(),Ft=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,s.RouterModule,He,g.TieredMenuModule,Lt,Re],declarations:[yt],exports:[yt]})],e)}(),Ot=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,o,i=e.which||e.keyCode,r=/iphone/i.test(navigator.userAgent);this.oldVal=this.input.value,8===i||46===i||r&&127===i?(n=(t=this.caret()).begin,(o=t.end)-n==0&&(n=46!==i?this.seekPrev(n):o=this.seekNext(n-1),o=46===i?this.seekNext(o):o),this.clearBuffer(n,o),this.shiftL(n,o-1),this.updateModel(e),e.preventDefault()):13===i?(this.onInputBlur(e),this.updateModel(e)):27===i&&(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,o,i,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&&(o=String.fromCharCode(r),this.tests[n].test(o)))if(this.shiftR(n),this.buffer[n]=o,this.writeBuffer(),i=this.seekNext(n),/android/i.test(navigator.userAgent)){setTimeout((function(){t.caret(i)}),0)}else this.caret(i);e.preventDefault()}this.updateModel(e),this.updateFilledState()}}},e.prototype.createCompleteMask=function(){switch(this.host.selectionMode){case"range":return this.mask+" "+this.host.rangeSeparator+" "+this.mask;case"single":case"multiple":return this.mask}},e.prototype.checkVal=function(e){var t,n,o=this.input.value,i=-1,r=0;for(t=0;t<this.len;t++)if(this.tests[t]){for(this.buffer[t]=this.getPlaceholder(t);r++<o.length;)if(n=o.charAt(r-1),this.tests[t].test(n)){this.buffer[t]=n,i=t;break}if(r>o.length){this.clearBuffer(t+1,this.len);break}}else this.buffer[t]===o.charAt(r)&&r++,t<this.partialPosition&&(i=t);return e?this.writeBuffer():i+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,i+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(){var e=this.createCompleteMask();this.tests=[],this.partialPosition=e.length,this.len=e.length,this.firstNonMaskPos=null,this.defs={9:"[0-9]"};for(var t=e.split(""),n=0;n<t.length;n++){"?"==(o=t[n])?(this.len--,this.partialPosition=n):this.defs[o]?(this.tests.push(new RegExp(this.defs[o])),null===this.firstNonMaskPos&&(this.firstNonMaskPos=this.tests.length-1),n<this.partialPosition&&(this.lastRequiredNonMaskPos=this.tests.length-1)):this.tests.push(null)}this.buffer=[];for(n=0;n<t.length;n++){var o;"?"!=(o=t[n])&&(this.defs[o]?this.buffer.push(this.getPlaceholder(n)):this.buffer.push(o))}this.defaultBuffer=this.buffer.join("")},e.prototype.caret=function(e,t){var n,o,i;if(this.input.offsetParent&&this.input===document.activeElement)return"number"!=typeof e?(this.input.setSelectionRange?(o=this.input.selectionStart,i=this.input.selectionEnd):document.selection&&document.selection.createRange&&(i=(o=0-(n=document.selection.createRange()).duplicate().moveStart("character",-1e5))+n.text.length),{begin:o,end:i}):(o=e,i="number"==typeof t?t:o,void(this.input.setSelectionRange?this.input.setSelectionRange(o,i):this.input.createTextRange&&((n=this.input.createTextRange()).collapse(!0),n.moveEnd("character",i),n.moveStart("character",o),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,o;if(!(e<0)){for(o=this.seekNext(t),n=e;n<this.len;n++)if(this.tests[n]){if(!(o<this.len&&this.tests[n].test(this.buffer[o])))break;this.buffer[n]=this.buffer[o],this.buffer[o]=this.getPlaceholder(o),o=this.seekNext(o)}this.writeBuffer(),this.caret(Math.max(this.firstNonMaskPos,e))}},e.prototype.shiftR=function(e){var t,n,o,i=this.getPlaceholder(e);for(t=e;t<this.len;t++)if(this.tests[t]){if(n=this.seekNext(t),o=this.buffer[t],this.buffer[t]=i,!(n<this.len&&this.tests[n].test(o)))break;i=o}},e.prototype.handleAndroidInput=function(e){var t=this,n=this.input.value,o=this.caret();if(this.oldVal&&this.oldVal.length&&this.oldVal.length>n.length){for(this.checkVal(!0);o.begin>0&&!this.tests[o.begin-1];)o.begin--;if(0===o.begin)for(;o.begin<this.firstNonMaskPos&&!this.tests[o.begin];)o.begin++;setTimeout((function(){if(t.caret(o.begin,o.begin),t.isCompleted()){var e=n.replace(t.slotChar,"");t.updateCalendarValue(e)}}),0)}else{for(this.checkVal(!0);o.begin<this.len&&!this.tests[o.begin];)o.begin++;setTimeout((function(){if(t.caret(o.begin,o.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,o=document.querySelectorAll(this.SELECTORS),i=!1,r=!0;o.forEach((function(o){if(!e.shiftKey&&i&&o.id)return t.focusableElement(o.id,r),i=!1,void e.preventDefault();var a=window.document.activeElement.tagName;if(e.shiftKey&&o.id&&"INPUT"===o.tagName&&"BUTTON"==a&&(n=o.id,r=!1),o.id===t.host.inputId){if(n)return t.focusableElement(n,r),e.preventDefault(),void(r=!0);i=!0}else e.shiftKey&&o.id&&(n=o.id)}))}},e.prototype.focusableElement=function(e,t){window.document.getElementById(e).focus(),t&&this.host.hideOverlay()},e.ctorParameters=function(){return[{type:v.Calendar},{type:t.Renderer2}]},pe([t.Input()],e.prototype,"slotChar",void 0),pe([t.Input()],e.prototype,"autoClear",void 0),pe([t.HostListener("keydown",["$event"])],e.prototype,"onKeydownEventTest",null),e=pe([t.Directive({selector:"p-calendar[sCalendarMask]"})],e)}(),Rt=function(){function e(){}return e=pe([t.NgModule({declarations:[Ot],imports:[r.CommonModule],exports:[Ot]})],e)}(),At=function(){function e(e){this.template=e}return e.ctorParameters=function(){return[{type:t.TemplateRef}]},pe([t.Input("sTemplate")],e.prototype,"type",void 0),e=pe([t.Directive({selector:"[sTemplate]"})],e)}();(bt=e.CardTemplateTypes||(e.CardTemplateTypes={})).Header="header",bt.Body="body",bt.Footer="footer";var Dt,Pt=function(){function n(){this.fullWidth=!1,this.title="",this.subtitle="",this.icon="",this.showBanner=!1}return n.prototype.ngAfterContentInit=function(){this._getTemplates(),this._loadImage()},Object.defineProperty(n.prototype,"hasHeader",{get:function(){var e=!!this.headerTemplate,t=this.title||this.subtitle||this.icon;return e||t},enumerable:!0,configurable:!0}),n.prototype._getHeaderTemplate=function(){return this._getCustomTemplate(e.CardTemplateTypes.Header)},n.prototype._getBodyTemplate=function(){return this._getCustomTemplate(e.CardTemplateTypes.Body)},n.prototype._getFooterTemplate=function(){return this._getCustomTemplate(e.CardTemplateTypes.Footer)},n.prototype._getCustomTemplate=function(e){var t;return null===(t=this.templates.find((function(t){return t.type===e})))||void 0===t?void 0:t.template},n.prototype._getTemplates=function(){this.headerTemplate=this._getHeaderTemplate(),this.bodyTemplate=this._getBodyTemplate(),this.footerTemplate=this._getFooterTemplate()},n.prototype._loadImage=function(){var e=this,t=new Image;t.src=this.bannerImage,t.onload=function(){return e.showBanner=!0},t.onerror=function(){return e.showBanner=!1}},pe([t.Input()],n.prototype,"bannerImage",void 0),pe([t.Input()],n.prototype,"fullWidth",void 0),pe([t.Input()],n.prototype,"title",void 0),pe([t.Input()],n.prototype,"subtitle",void 0),pe([t.Input()],n.prototype,"icon",void 0),pe([t.ContentChildren(At)],n.prototype,"templates",void 0),n=pe([t.Component({selector:"s-card",template:'<div class="card" [ngClass]="{ \'card--full-width\': fullWidth }">\n <div\n *ngIf="showBanner"\n class="banner"\n [ngStyle]="{\'background-image\': \'url(\' + bannerImage + \')\'}">\n </div>\n\n <ng-container *ngIf="hasHeader">\n <div class="header">\n <ng-container *ngIf="headerTemplate">\n <ng-container *ngTemplateOutlet="headerTemplate"></ng-container>\n </ng-container>\n <ng-container *ngIf="!headerTemplate">\n <div class="header-content">\n <div class="header-icon" *ngIf="icon">\n <i [class]="icon"></i>\n </div>\n <div>\n <div class="header-title" *ngIf="title">\n {{ title }}\n </div>\n <div class="header-subtitle" *ngIf="subtitle">\n {{ subtitle }}\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n </ng-container>\n <div *ngIf="bodyTemplate" class="body">\n <ng-container *ngTemplateOutlet="bodyTemplate"></ng-container>\n </div>\n <ng-container *ngIf="!bodyTemplate">\n <div class="body">\n <ng-content></ng-content>\n </div>\n </ng-container>\n <div *ngIf="footerTemplate" class="footer">\n <ng-container *ngTemplateOutlet="footerTemplate"></ng-container>\n </div>\n</div>\n',styles:[".card{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;background-color:#fff;border-radius:4px;box-shadow:0 1px 5px 0 #00000040;overflow:hidden}.card--full-width{width:100%}.card .banner{background-repeat:no-repeat;background-size:cover;height:150px;width:100%}.card .header{padding:16px 12px}.card .header-content{display:-ms-flexbox;display:flex;gap:12px}.card .header-title{color:#212533;font-size:14px;font-style:normal;font-weight:700}.card .header-subtitle{color:#6e7280;font-size:14px;font-style:normal;font-weight:400}.card .header-icon{border-radius:50%;background-color:#dedce5;width:3em;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-height:3em}.card .body,.card .footer{padding:16px}.card .body+.footer,.card .header+.body{border-top:1px solid #c1c1cc}"]})],n)}(),Vt=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[At],exports:[At]})],e)}(),Bt=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[Pt],exports:[Pt,Vt]})],e)}(),Nt=function(){function e(){this.messages=[]}return e.prototype.ngAfterViewInit=function(){var e=this;this.scrollToBottom(),this.messageElements.changes.subscribe((function(){e.scrollToBottom()}))},e.prototype.scrollToBottom=function(){var e,t;null===(t=null===(e=this.messageElements)||void 0===e?void 0:e.last)||void 0===t||t.nativeElement.scrollIntoView({behavior:"smooth"})},pe([t.Input()],e.prototype,"messages",void 0),pe([t.ViewChildren("messageElements",{read:t.ElementRef})],e.prototype,"messageElements",void 0),e=pe([t.Component({selector:"s-chat",template:'<div class="chat-container">\n <s-chat-message #messageElements *ngFor="let message of messages" [message]="message"> </s-chat-message>\n</div>\n',styles:[".chat-container{min-height:500px;overflow:auto}"]})],e)}(),zt=function(){function e(){this.fileName=null}return e.prototype.ngOnChanges=function(e){e.message&&(this.fileName=this.message.attachmentUrl?this.getFileNameByUrl(this.message.attachmentUrl):null)},e.prototype.getFileNameByUrl=function(e){var t=e.match(/[^\\\/]+$/);return t?t[0]:null},pe([t.Input()],e.prototype,"message",void 0),e=pe([t.Component({selector:"s-chat-message",template:'<div class="chat-message" [class.chat-message--mine]="message.isMine">\n <div class="chat-message-wrapper">\n <div class="header">\n <img class="thumbnail" [src]="message.thumbnailUrl" alt="Thumbnail" />\n <span class="name">{{ message.senderName }}</span>\n <span *ngIf="message.sentAt" class="date">{{ message.sentAt | localizedDate: "L LTS" | async }}</span>\n </div>\n <p class="body">{{ message.text }}</p>\n\n <div *ngIf="message.attachmentUrl" class="attachment">\n <span class="attachment-label">{{ "platform.angular_components.attachment" | translate }}:</span>\n <a class="attachment-anchor" [href]="message.attachmentUrl" [download]="fileName">{{ fileName }}</a>\n </div>\n </div>\n</div>\n',styles:['.chat-message{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;padding:10px 20px}.chat-message .chat-message-wrapper{background-color:#cabbd0;border-radius:16px 16px 16px 0;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;max-width:85%;padding:20px}.chat-message .chat-message-wrapper .header{-ms-flex-align:center;align-items:center;color:#000;display:-ms-flexbox;display:flex;font-family:"Open Sans",sans-serif;gap:8px}.chat-message .chat-message-wrapper .header .thumbnail{border-radius:50%;height:32px;object-fit:cover;object-position:center;width:32px;background-color:#fff}.chat-message .chat-message-wrapper .header .name{font-size:14px;font-weight:700}.chat-message .chat-message-wrapper .header .date{font-size:12px}.chat-message .chat-message-wrapper .body{color:#000;font-family:"Open Sans",sans-serif;font-size:12px}.chat-message .chat-message-wrapper .attachment{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;gap:10px;margin-top:12px;-webkit-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-wrap:wrap;flex-wrap:wrap}.chat-message .chat-message-wrapper .attachment-label{color:#0e1119;font-family:"Open Sans",sans-serif;font-size:12px;font-weight:700}.chat-message .chat-message-wrapper .attachment-anchor{background-color:#fff;border-radius:4px;padding:0 12px;text-decoration:none}.chat-message--mine{-ms-flex-pack:end;justify-content:flex-end}.chat-message--mine .chat-message-wrapper{background-color:#eeebf2;border-radius:16px 16px 0}']})],e)}(),Ut=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,mt,b.TranslateModule.forChild()],declarations:[Nt,zt],exports:[Nt]})],e)}(),jt=function(){function e(){this.state={checked:!1,indeterminate:!1,children:{}},this._onChange=function(){},this._onTouched=function(){}}var n;return n=e,e.prototype.writeValue=function(e){this.state=e||{checked:!1,indeterminate:!1,disabled:!1,children:this._initializeChildren(this.data)}},e.prototype.registerOnChange=function(e){this._onChange=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype._initializeChildren=function(e){var t=this,n={};return e.children&&e.children.forEach((function(e){n[e.label]={checked:!1,indeterminate:!1,children:t._initializeChildren(e)}})),n},e.prototype.updateParent=function(){var e=this;if(this.data.children&&this.data.children.length>0){var t=this.data.children.every((function(t){var n;return null===(n=e.state.children[t.label])||void 0===n?void 0:n.checked})),n=this.data.children.some((function(t){var n,o;return(null===(n=e.state.children[t.label])||void 0===n?void 0:n.checked)||(null===(o=e.state.children[t.label])||void 0===o?void 0:o.indeterminate)}));this.state.checked=t,this.state.indeterminate=!t&&n}this._onChange(this.state),this._onTouched()},e.prototype.onCheckboxChange=function(){this.state.disabled||(this.state.checked=!this.state.checked,this.state.indeterminate=!1,this._toggleChildrenCheck(this.data,this.state,this.state.checked),this._onChange(this.state),this._onTouched())},Object.defineProperty(e.prototype,"renderType",{get:function(){return this.data.renderType||"inline"},enumerable:!0,configurable:!0}),e.prototype._toggleChildrenCheck=function(e,t,n){var o,i=this;(null===(o=e.children)||void 0===o?void 0:o.length)&&e.children.forEach((function(e){t.children[e.label]||(t.children[e.label]={checked:!1,indeterminate:!1,children:i._initializeChildren(e)}),t.children[e.label].checked=n,t.children[e.label].indeterminate=!1,e.children&&i._toggleChildrenCheck(e,t.children[e.label],n)}))},pe([t.Input()],e.prototype,"data",void 0),e=n=pe([t.Component({selector:"s-checkbox",template:'<div class="checkbox">\n <label>\n <div\n class="checkbox-wrapper"\n [class.checkbox-wrapper-inline]="renderType === \'inline\'"\n [class.checkbox-wrapper-block]="renderType === \'block\'"\n [ngClass]="{ \'checkbox-wrapper--disabled\': state.disabled }">\n <input\n type="checkbox"\n class="checkbox-input"\n [disabled]="state.disabled"\n [ngClass]="{\n \'checkbox-input--checked\': state.checked,\n \'checkbox-input--indeterminate\': state.indeterminate\n }"\n (change)="onCheckboxChange()"\n [attr.aria-checked]="state.indeterminate ? \'mixed\' : state.checked"\n [attr.aria-disabled]="state.disabled"\n role="checkbox" />\n {{ data.label }}\n </div>\n </label>\n <div *ngIf="data.children && data.children.length" class="checkbox-children">\n <s-checkbox\n *ngFor="let child of data.children"\n [data]="child"\n [ngModel]="state.children[child.label]"\n (ngModelChange)="updateParent()">\n </s-checkbox>\n </div>\n</div>\n',providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:['.checkbox{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:10px;margin-bottom:10px}.checkbox .checkbox-wrapper{color:#212533;display:-ms-flexbox;display:flex;font-family:"Open Sans" sans-serif;font-size:14px;gap:12px}.checkbox .checkbox-wrapper-inline{-ms-flex-align:center;align-items:center}.checkbox .checkbox-wrapper-block{-ms-flex-direction:column-reverse;flex-direction:column-reverse}.checkbox .checkbox-wrapper .checkbox-input{-webkit-appearance:none;appearance:none;background-color:#fff;border:1px solid #c1c1cc;border-radius:4px;cursor:pointer;-ms-flex-negative:0;flex-shrink:0;height:20px;width:20px;position:relative}.checkbox .checkbox-wrapper .checkbox-input--checked{background-color:#428bca;border-color:#428bca}.checkbox .checkbox-wrapper .checkbox-input--checked::after{border:solid #fff;border-width:0 2px 2px 0;content:"";height:12px;left:6px;position:absolute;top:2px;transform:rotate(45deg);width:6px}.checkbox .checkbox-wrapper .checkbox-input--indeterminate{background-color:#428bca;border-color:#428bca}.checkbox .checkbox-wrapper .checkbox-input--indeterminate::after{background-color:#fff;content:"";height:2px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:10px}.checkbox .checkbox-wrapper:not(.checkbox-wrapper--disabled) .checkbox-input:not(.checkbox-input--checked):hover{background-color:#e5eaea;border-color:#ccc}.checkbox .checkbox-wrapper--disabled{opacity:.5;cursor:auto}.checkbox .checkbox-children{margin-left:20px}']})],e)}(),Ht=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule],declarations:[jt],exports:[jt]})],e)}();(Dt=e.Languages||(e.Languages={})).TaxCalculation="TaxCalculation",Dt.Json="Json",(e.Themes||(e.Themes={})).SDSLight="SDSLight";var $t,Gt,qt,Wt,Yt,Kt,Zt=function(){function e(){}return e.getLinter=function(t){var n=e._LINTERS.get(t);if(n)return n()},e._LINTERS=new Map([]),e}(),Xt=function(){function t(){this.$onCoreFinishLoad=new o.ReplaySubject(1),this.$onCodeChange=new o.Subject,this.$onCodeValidityChange=new o.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.setPayload=function(e){var t=this.getSafeCode(e);this.setCodeWithCursorPreservation(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=Zt.getLinter(e)},t.prototype.validateCode=function(e){return ue(this,void 0,void 0,(function(){var t;return me(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}(),Jt=function(){function e(e){this.coreFacade=e,this.codeChange=new t.EventEmitter,this.isCodeValidChange=new t.EventEmitter,this.onCodeChange=new t.EventEmitter,this.onComponentFinishLoad=new t.EventEmitter,this._ngUnsubscribe=new o.Subject,this._onChange=function(){},this._onTouched=function(){}}var n;return n=e,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}),Object.defineProperty(e.prototype,"payload",{set:function(e){this.coreFacade.setPayload(e)},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.code=e},e.prototype.registerOnChange=function(e){this._onChange=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},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(i.take(1)).subscribe((function(){return e.onComponentFinishLoad.emit()})),this.coreFacade.getOnCodeChangeObservable().pipe(i.takeUntil(this._ngUnsubscribe)).subscribe((function(t){e.codeChange.emit(t),e.onCodeChange.emit(t),e._onTouched(),e._onChange(t)})),this.coreFacade.getOnCodeValidityChangeObservable().pipe(i.takeUntil(this._ngUnsubscribe)).subscribe((function(t){e.isCodeValidChange.emit(t)}))},e.ctorParameters=function(){return[{type:Xt}]},pe([t.Input()],e.prototype,"editorOptions",null),pe([t.Input()],e.prototype,"code",null),pe([t.Input()],e.prototype,"payload",null),pe([t.Output()],e.prototype,"codeChange",void 0),pe([t.Output()],e.prototype,"isCodeValidChange",void 0),pe([t.Output()],e.prototype,"onCodeChange",void 0),pe([t.Output()],e.prototype,"onComponentFinishLoad",void 0),pe([t.ViewChild("coreWrapper")],e.prototype,"coreWrapperElement",void 0),e=n=pe([t.Component({selector:"s-code-editor",template:'<div #coreWrapper class="core-wrapper"></div>',providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:[".core-wrapper{height:100%;border:1px solid #c1c1cc;border-radius:3px}"]})],e)}();!function(e){e.ASC="ASC",e.DESC="DESC"}($t||($t={})),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"}(Gt||(Gt={})),function(e){e[e.ListContextMetadataById=0]="ListContextMetadataById",e[e.ListBlobMetadata=1]="ListBlobMetadata",e[e.ListExpressionMetadata=2]="ListExpressionMetadata",e[e.ListFacadeMetadataNames=3]="ListFacadeMetadataNames",e[e.GetFacadeMetadataByPath=4]="GetFacadeMetadataByPath"}(qt||(qt={})),function(e){e.Keyword="keyword",e.Context="context",e.Expression="expression",e.UserExpression="userExpression",e.Entity="entity",e.FinalValue="finalValue"}(Wt||(Wt={})),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"}(Yt||(Yt={}));var Qt=w.LRLanguage.define({parser:C.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:[k.styleTags((Kt={},Kt[Object.values(Yt).join(" ")]=k.tags.keyword,Kt.String=k.tags.string,Kt.Number=k.tags.number,Kt))]})});function en(e){return ue(this,void 0,void 0,(function(){return me(this,(function(t){return[2,e.json()]}))}))}function tn(e){return ue(this,void 0,void 0,(function(){var t;return me(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 nn,on=function(){function e(){}return e.GET=function(e,t){return void 0===t&&(t={}),ue(this,void 0,void 0,(function(){var n;return me(this,(function(o){switch(o.label){case 0:return[4,this.interceptRequest(e,ce(ce({},t),{method:"GET"}))];case 1:return n=o.sent(),[2,this.formatResponse(n)]}}))}))},e.POST=function(e,t,n){return void 0===n&&(n={}),ue(this,void 0,void 0,(function(){var o,i;return me(this,(function(r){switch(r.label){case 0:return(o=new Headers(n.headers)).append("Content-Type","application/json"),o.append("Accept","application/json"),[4,this.interceptRequest(e,ce(ce({},n),{method:"POST",body:JSON.stringify(t),headers:o}))];case 1:return i=r.sent(),[2,this.formatResponse(i)]}}))}))},e.interceptRequest=function(e,t){return void 0===t&&(t={}),ue(this,void 0,void 0,(function(){var n,o,i,r,a;return me(this,(function(s){switch(s.label){case 0:return s.trys.push([0,4,,5]),e.includes("://")?[3,3]:[4,p.service.getRestUrl()];case 1:return n=s.sent(),[4,p.user.getAuthHeader()];case 2:return o=s.sent(),(i=new Headers(t.headers)).append("Authorization",o),r=new Request(n+e,ce(ce({},t),{headers:i})),[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 ue(this,void 0,void 0,(function(){var n,o,i,r;return me(this,(function(a){switch(a.label){case 0:return n=t.headers.get("content-type"),(o=e._responseFormatterMap.get(n))?[4,o(t)]:[3,2];case 1:return r=a.sent(),[3,3];case 2:r={},a.label=3;case 3:if(i=r,t.ok)return[2,i];throw new Error(JSON.stringify(i))}}))}))},e._responseFormatterMap=new Map([["application/json",en],["application/octet-stream",tn]]),e}(),rn=function(){function e(){}return e.translate=function(t){var n,o;if(null==t)return"";var i=""+e._TRANSLATION_PREFIX+t;return null!==(o=(null!==(n=Object.values(e._translations)[0])&&void 0!==n?n:{})[i])&&void 0!==o?o:i},e.setTranslations=function(t){e._translations=null!=t?t:{}},e.setTranslationsPrefix=function(t){var n=null!=t?t:{},o=n.domain+"."+n.service+".";e._TRANSLATION_PREFIX=o},e._translations={},e._TRANSLATION_PREFIX="",e}(),an=new t.InjectionToken("hostProjectConfigs"),sn=function(){function e(){}var n;return n=e,e.forRoot=function(e){return{ngModule:n,providers:[{provide:an,useValue:e}]}},e=n=pe([t.NgModule({})],e)}(),ln=function(){function e(e,t){this.translate=e,this.hostProjectConfigs=t,this.factoryTranslations(this.translate,this.hostProjectConfigs)}return e.prototype.factoryTranslations=function(e,t){rn.setTranslations(e.translations),rn.setTranslationsPrefix(t)},e.ctorParameters=function(){return[{type:b.TranslateService},{type:void 0,decorators:[{type:t.Inject,args:[an]}]}]},e=pe([t.NgModule(),de(1,t.Inject(an))],e)}();!function(e){e[e.Error=0]="Error",e[e.Info=1]="Info",e[e.Warning=2]="Warning"}(nn||(nn={}));var cn=new Map([[nn.Error,"error"],[nn.Info,"info"],[nn.Warning,"warning"]]);var pn=function(){function e(){}return e.listContextMetadataById=function(t,n){return ue(this,void 0,void 0,(function(){return me(this,(function(o){return[2,on.POST(e.BASE_URL+"/queries/listContextMetadataById",t,{signal:n})]}))}))},e.listExpressionMetadata=function(t,n){return ue(this,void 0,void 0,(function(){return me(this,(function(o){return[2,on.POST(e.BASE_URL+"/queries/listExpressionMetadata",t,{signal:n})]}))}))},e.listFacadeMetadataNames=function(t,n){return ue(this,void 0,void 0,(function(){return me(this,(function(o){return[2,on.POST(e.BASE_URL+"/queries/listFacadeMetadataNames",t,{signal:n})]}))}))},e.getFacadeMetadataByPath=function(t,n){return ue(this,void 0,void 0,(function(){return me(this,(function(o){return[2,on.POST(e.BASE_URL+"/queries/getFacadeMetadataByPath",t,{signal:n})]}))}))},e.BASE_URL="platform/rule_metadata",e}();var dn,un,mn=null;function hn(){return[x.StateField.define({create:gn,update:function(e,t){return gn(t.state)},provide:function(e){return S.showTooltip.compute([e],(function(t){return t.field(e)}))}}),y.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 fn(e){mn=e,Bn.updateEditorView()}function gn(e){if(mn){var t=mn.outerHTML,n={pos:e.selection.ranges[0].head,create:function(){return{dom:vn(t)}}};return mn=null,n}}function vn(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 bn(){var e;dn||((e=document.createElement("span")).innerText=rn.translate("core_language_tax_calculation_fetching_suggestions"),dn=e),fn(dn)}function yn(){var e;un||((e=document.createElement("span")).innerText=rn.translate("core_language_tax_calculation_no_suggestions"),un=e),fn(un)}var xn=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 _n(e){return'"\\'+e+'"'}var wn,Cn="core_language_tax_calculation";function kn(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(wn){var t=ce({},wn),n=e.state.doc.toString().length;return t.from=t.from>n?n:t.from,wn=null,t}!function(e){var t=new AbortController;setTimeout((function(){t.signal.aborted||(bn(),function(e,t){var n,o,i,r;ue(this,void 0,void 0,(function(){var a,s,l,c;return me(this,(function(p){return a=null!==(r=null===(o=null===(n=null==e?void 0:e.state)||void 0===n?void 0:n.doc)||void 0===o?void 0:o.toString().substring(0,null!==(i=null==e?void 0:e.pos)&&void 0!==i?i: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,o;if(null==e)return"";var i=e.substring(0,e.length-t);return(null!==(o=null===(n=i.match(/(\w*\.)*$/))||void 0===n?void 0:n[0])&&void 0!==o?o:"").replace(/\.$/,"")}(a,s.length),c=function(e,t,n){var o,i=function(){var e,t=xn.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:qt.ListContextMetadataById,request:pn.listContextMetadataById({id:i.contexts},n)}),r.push({requestType:qt.ListExpressionMetadata,request:pn.listExpressionMetadata({context:i.contexts,subcontext:null!==(o=i.subContexts)&&void 0!==o?o:[],name:t,pageRequest:{offset:0,size:20}},n)});else if(e.includes(".")){var a=e.split(".");r.push({requestType:qt.GetFacadeMetadataByPath,request:pn.getFacadeMetadataByPath({context:a[0],entityName:a[1],fields:void 0===a[2]?void 0:a.slice(2)},n)})}else r.push({requestType:qt.ListFacadeMetadataNames,request:pn.listFacadeMetadataNames({context:[e],name:t,pageRequest:{offset:0,size:30}},n)});return r.map((function(e){return function(e){return ue(this,void 0,void 0,(function(){var t,n;return me(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),t=[ce({},e)],n={},[4,e.request];case 1:return[2,ce.apply(void 0,t.concat([(n.response=o.sent(),n)]))];case 2:return o.sent(),[3,3];case 3:return[2]}}))}))}(e)}))}(l,s,t.signal),Promise.all(c).then((function(n){if(!t.signal.aborted){var o=function(e,t){return e.filter((function(e){return e.label.toLowerCase().startsWith(t.toLowerCase())}))}([].concat(function(e){return""!==e?[]:[{label:Yt.SE,apply:"SE ()\nENTAO\n\tacao\nFIM_SE"},{label:Yt.SENAO,apply:"SENAO\n\tacao"},{label:Yt.CONTENHA,apply:"CONTENHA(condicao)"},{label:Yt.ENTAO,apply:"ENTAO\n\tacao"},{label:Yt.FIM_SE,apply:"FIM_SE "},{label:Yt.NAO,apply:"NAO "},{label:Yt.E,apply:"E "},{label:Yt.OU,apply:"OU "}].map((function(e){return ce(ce({},e),{detail:rn.translate(Cn+"_keyword"),type:Wt.Keyword})}))}(l),function(e){var t,n,o=e.find((function(e){return(null==e?void 0:e.requestType)===qt.ListContextMetadataById}));if(o)return(null!==(n=null===(t=o.response)||void 0===t?void 0:t.contextMetadata)&&void 0!==n?n:[]).map((function(e){return{label:e.name,detail:rn.translate(Cn+"_context"),apply:e.name,type:Wt.Context}}));return[]}(n),function(e){var t,n,o=e.find((function(e){return(null==e?void 0:e.requestType)===qt.ListExpressionMetadata}));if(o)return(null!==(n=null===(t=o.response)||void 0===t?void 0:t.expressionMetadata)&&void 0!==n?n:[]).map((function(e){return{label:e.name,detail:rn.translate(Cn+"_"+(e.type===Gt.PUBLIC_EXPRESSION?"senior_expression":"user_expression")),apply:e.name,info:e.description,type:e.type===Gt.PUBLIC_EXPRESSION?Wt.Expression:Wt.UserExpression}}));return[]}(n),function(e){var t,n,o,i,r,a=e.find((function(e){return(null==e?void 0:e.requestType)===qt.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:rn.translate(Cn+"_entity"),apply:e.name,type:Wt.Entity}}));var s=e.find((function(e){return(null==e?void 0:e.requestType)===qt.GetFacadeMetadataByPath}));if(s)return(null!==(r=null===(i=null===(o=s.response)||void 0===o?void 0:o.facadeMetadata)||void 0===i?void 0:i.fields)&&void 0!==r?r:[]).map((function(e){return{label:e.name,detail:rn.translate(Cn+"_"+(e.type===Gt.ENTITY?"entity":"field")),apply:e.name,type:e.type===Gt.ENTITY?Wt.Entity:Wt.FinalValue}}));return[]}(n)),s);if(o.length){var i=function(e){return e.sort((function(e,t){return En.indexOf(e.type)-En.indexOf(t.type)}))}(function(e,t){return e.map((function(e){return ce(ce({},e),{apply:Tn(t,""+e.apply)})}))}(o,s));wn={from:e.pos,filter:!1,options:i},I.startCompletion(Bn.getEditorView())}else yn()}})),[2]}))}))}(e,t))}),500),In=Bn.getEditorView().contentDOM,Sn=function(){In.removeEventListener("keydown",Sn),In.removeEventListener("click",Sn),t.abort()},In.addEventListener("keydown",Sn),In.addEventListener("click",Sn)}(e)}}var In,Sn=function(){};function Tn(e,t){return function(n,o,i,r){var a=i-e.length;n.dispatch({changes:{from:a,to:r,insert:t},selection:{anchor:a+t.length},userEvent:"input.complete",annotations:I.pickedCompletion.of(o)})}}var En=[Wt.Keyword,Wt.Context,Wt.UserExpression,Wt.Expression,Wt.Entity,Wt.FinalValue];function Mn(){return new w.LanguageSupport(Qt,[[I.autocompletion({override:[kn]}),[hn()],[hn()],y.EditorView.theme({".cm-completionIcon":{"font-family":"'Font Awesome 5 Pro'","font-weight":"900"},".cm-completionIcon-keyword::after":{content:_n("f084")},".cm-completionIcon-context::after":{content:_n("f466")},".cm-completionIcon-expression::after":{content:_n("f505")},".cm-completionIcon-userExpression::after":{content:_n("f4ff")},".cm-completionIcon-entity::after":{content:_n("f126")},".cm-completionIcon-finalValue::after":{content:_n("f192")}})]])}var Ln=w.LRLanguage.define({parser:C.buildParser('\n@top JsonDocument { JsonValue }\n\nJsonValue {\n JsonObject |\n JsonArray |\n JsonString |\n JsonNumber |\n JsonBoolean |\n JsonNull\n}\n\nJsonObject {\n "{" (JsonPair ("," JsonPair)*)? "}"\n}\n\nJsonPair {\n JsonString ":" JsonValue\n}\n\nJsonArray {\n "[" (JsonValue ("," JsonValue)*)? "]"\n}\n\n@tokens {\n JsonString { \'"\' (![\\n"])* \'"\'? }\n JsonNumber {\n \'-\'? std.digit+\n (\'.\' std.digit+)?\n (("e" | "E") ("+" | "-")? std.digit+)?\n }\n JsonBoolean { "true" | "false" }\n JsonNull { "null" }\n space { $[ \t\n\r]+ }\n "{" "}"\n "[" "]"\n ":" ","\n}\n\n@skip { space }\n\n@detectDelim\n').configure({props:[k.styleTags({JsonString:k.tags.string,JsonNumber:k.tags.number,"JsonBoolean JsonNull":k.tags.keyword,'"{"':k.tags.brace,'"}"':k.tags.brace,'"["':k.tags.brace,'"]"':k.tags.brace,'":"':k.tags.operator,'","':k.tags.punctuation})]})});function Fn(){return new w.LanguageSupport(Ln)}var On=function(){function t(){}return t.getLanguage=function(e){var n=t._LANGUAGES.get(e);return n?n():[]},t._LANGUAGES=new Map([[e.Languages.TaxCalculation,Mn],[e.Languages.Json,Fn]]),t}();var Rn=k.HighlightStyle.define([{tag:k.tags.keyword,color:"#008080"},{tag:k.tags.string,color:"#9C3A3A"},{tag:k.tags.number,color:"#400753"}]);var An={"font-family":"'Noto Sans Mono', 'sans-serif'","font-style":"normal","font-size":"1rem"};function Dn(){return[[y.EditorView.theme({"&.cm-editor.cm-focused":{outline:"none"}}),[y.EditorView.baseTheme({"&.cm-editor":{height:"100%"}})],[y.EditorView.theme({".cm-scroller":ce(ce({},An),{"letter-spacing":"0","line-height":"1.5em","font-variation-settings":"'wght' 400",color:"#333333"}),".cm-tooltip.cm-tooltip-autocomplete > ul":ce(ce({},An),{"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"}})],[T.lineNumbers(),y.EditorView.theme({".cm-gutters":{"background-color":"#fff",color:"#428BCA","border-right":"none"},".cm-gutter":{padding:"0 2rem 0 2rem"}})],[y.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"}})]],Rn]}var Pn,Vn=function(){function t(){}return t.getTheme=function(e){var n=t._THEMES.get(e);return n?n():[]},t._THEMES=new Map([[e.Themes.SDSLight,Dn]]),t}(),Bn=function(e){function t(){var t=e.call(this)||this;return t._codeReceivedBeforeViewCreation="",t._editorOptionsReceivedBeforeViewCreation=[],t}return le(t,e),t.getEditorView=function(){return t._editorView},t.updateEditorView=function(){for(var e,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];(e=t._editorView).dispatch.apply(e,ge(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=On.getLanguage(e.language),o=Vn.getTheme(e.theme);t._editorView?t.updateEditorView({effects:x.StateEffect.reconfigure.of([n,o,this.getCodeChangeListenerExtension()])}):this._editorOptionsReceivedBeforeViewCreation=[n,o]},t.prototype.highlightCode=function(e){var n=function(e,t){return e.map((function(e){var n,o;return{from:e.start||0,to:e.end||t,message:null!==(n=e.message)&&void 0!==n?n:"",severity:null!==(o=cn.get(e.severity))&&void 0!==o?o:"error"}}))}(e,t._editorView.state.doc.length);t.updateEditorView(_.setDiagnostics(t._editorView.state,n))},t.prototype.setObservablesListeners=function(){var e=this;t.$onCompletionItemsUpdate.pipe(i.takeUntil(t._ngUnsubscribe)).subscribe((function(t){return e.updateCompletionItems(t)}))},t.prototype.createEditorView=function(e){t._editorView=new y.EditorView({parent:e,state:x.EditorState.create({doc:this._codeReceivedBeforeViewCreation,extensions:[this._editorOptionsReceivedBeforeViewCreation,this.getCodeChangeListenerExtension()]})}),this.notifyCoreFinishLoad()},t.prototype.getCodeChangeListenerExtension=function(){var e=this;return y.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.prototype.setCodeWithCursorPreservation=function(e){if(t._editorView){if(t._editorView.state.doc.toString()!==e){var n=t._editorView.state.selection.main;t.updateEditorView({changes:{from:0,to:t._editorView.state.doc.length,insert:e},selection:{anchor:Math.min(n.anchor,e.length),head:Math.min(n.head,e.length)}})}}else this._codeReceivedBeforeViewCreation=e},t.$onCompletionItemsUpdate=new o.Subject,t._ngUnsubscribe=new o.Subject,t._editorView=null,t}(Xt),Nn=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,ln],declarations:[Jt],exports:[Jt],providers:[{provide:Xt,useClass:Bn}]})],e)}(),zn=function(){function e(){this.buttonId="s-collapse-button-"+o.nextId++,this.expandedLabel="Mostrar menos",this.collapsedLabel="Mostrar mais",this.disabled=!1,this.collapse=!0,this.collapsed=!0}var o;return o=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,pe([t.Input()],e.prototype,"buttonId",void 0),pe([t.Input()],e.prototype,"expandedLabel",void 0),pe([t.Input()],e.prototype,"collapsedLabel",void 0),pe([t.Input()],e.prototype,"disabled",void 0),pe([t.Input()],e.prototype,"collapse",void 0),e=o=pe([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:[n.trigger("collapseContent",[n.state("void",n.style({height:0,opacity:0})),n.state("*",n.style({height:"*",opacity:1})),n.transition("void <=> *",n.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:35px;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)}(),Un=function(){function e(){}return e=pe([t.NgModule({declarations:[zn],exports:[zn],imports:[r.CommonModule]})],e)}(),jn=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){var n;return null===(n=e.errorMessages)||void 0===n?void 0:n[t]})):[]},e.nextId=0,pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"control",void 0),pe([t.Input()],e.prototype,"errorMessages",void 0),pe([t.Input()],e.prototype,"form",void 0),e=n=pe([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)}(),Hn=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule],declarations:[jn],exports:[jn]})],e)}(),$n=[{id:"gb",ddi:"+44",mask:"00-0000-0000"},{id:"br",ddi:"+55",mask:["(00) 0000-00009","(00) 00000-0000"]},{id:"ar",ddi:"+54",mask:["(00) 0000-00009","(000) 0000-0000"]},{id:"bo",ddi:"+591",mask:"0 000 0000"},{id:"cl",ddi:"+56",mask:"0 0000 0000"},{id:"co",ddi:"+57",mask:["0 00000009","000 0000000"]},{id:"cr",ddi:"+506",mask:"0000 0000"},{id:"cu",ddi:"+53",mask:["000 0009","00 000000"]},{id:"ec",ddi:"+593",mask:["000 00009","000 000 000"]},{id:"sv",ddi:"+503",mask:"0000 0000"},{id:"gt",ddi:"+502",mask:"0000 0000"},{id:"ht",ddi:"+509",mask:"0000 0000"},{id:"hn",ddi:"+504",mask:"0000-0000"},{id:"mx",ddi:"+52",mask:["00 0000 00009","0 00 0000 0000"]},{id:"ni",ddi:"+505",mask:"0000 0000"},{id:"pa",ddi:"+507",mask:"0000 0000"},{id:"py",ddi:"+595",mask:["00 000 0009","000 000000"]},{id:"pe",ddi:"+51",mask:"000 000 000"},{id:"do",ddi:"+1809",mask:"000 000-0000"},{id:"uy",ddi:"+598",mask:["0000 00009","0000 00000"]},{id:"ve",ddi:"+58",mask:"000-0000000"},{id:"us",ddi:"+1",mask:"000-000-0000"},{id:"ca",ddi:"+1",mask:"000-000-0000"},{id:"cn",ddi:"+86",mask:"000 0000 0000"},{id:"as",ddi:"+1684",mask:"000-0000"},{id:"ai",ddi:"+1264",mask:"000-0000"},{id:"ag",ddi:"+1268",mask:"000-0000"},{id:"bs",ddi:"+1242",mask:"000-0000"},{id:"bb",ddi:"+1246",mask:"000-0000"},{id:"bm",ddi:"+1441",mask:"000-0000"},{id:"vg",ddi:"+1284",mask:"000-0000"},{id:"ky",ddi:"+1345",mask:"000-0000"},{id:"dm",ddi:"+1767",mask:"000-0000"},{id:"gd",ddi:"+1473",mask:"000-0000"},{id:"gu",ddi:"+1671",mask:"000-0000"},{id:"jm",ddi:"+1876",mask:"000-0000"},{id:"ms",ddi:"+1664",mask:"000-0000"},{id:"mp",ddi:"+1670",mask:"000-0000"},{id:"pr",ddi:"+1",mask:"000-0000"},{id:"kn",ddi:"+1869",mask:"000-0000"},{id:"lc",ddi:"+1758",mask:"000-0000"},{id:"vc",ddi:"+1784",mask:"000-0000"},{id:"tt",ddi:"+1868",mask:"000-0000"},{id:"tc",ddi:"+1649",mask:"000-0000"},{id:"fi",ddi:"+358",mask:"000 0000000"},{id:"rs",ddi:"+381",mask:"000 0000000"},{id:"zm",ddi:"+260",mask:"000 0000000"},{id:"af",ddi:"+93",mask:"000 000 0000"},{id:"al",ddi:"+355",mask:"000 000 0000"},{id:"hr",ddi:"+385",mask:"000 000 0000"},{id:"et",ddi:"+251",mask:"000 000 0000"},{id:"gh",ddi:"+233",mask:"000 000 0000"},{id:"gr",ddi:"+30",mask:"000 000 0000"},{id:"ie",ddi:"+353",mask:"000 000 0000"},{id:"it",ddi:"+39",mask:"000 000 0000"},{id:"lr",ddi:"+231",mask:"000 000 0000"},{id:"na",ddi:"+264",mask:"000 000 0000"},{id:"nz",ddi:"+64",mask:"000 000 0000"},{id:"sa",ddi:"+966",mask:"000 000 0000"},{id:"za",ddi:"+27",mask:"000 000 0000"},{id:"lk",ddi:"+94",mask:"000 000 0000"},{id:"sd",ddi:"+249",mask:"000 000 0000"},{id:"th",ddi:"+66",mask:"000 000 0000"},{id:"ua",ddi:"+380",mask:"000 000 0000"},{id:"ae",ddi:"+971",mask:"000 000 0000"},{id:"va",ddi:"+39",mask:"000 000 0000"},{id:"zw",ddi:"+263",mask:"000 000 0000"},{id:"dz",ddi:"+213",mask:"0000 00 00 00"},{id:"be",ddi:"+32",mask:"0000 00 00 00"},{id:"yt",ddi:"+262",mask:"0000 00 00 00"},{id:"bl",ddi:"+590",mask:"0000 00 00 00"},{id:"mf",ddi:"+1599",mask:"0000 00 00 00"},{id:"ad",ddi:"+376",mask:"000-000"},{id:"ao",ddi:"+244",mask:"000 000 000"},{id:"ba",ddi:"+387",mask:"000 000 000"},{id:"bg",ddi:"+359",mask:"000 000 000"},{id:"kh",ddi:"+855",mask:"000 000 000"},{id:"cz",ddi:"+420",mask:"000 000 000"},{id:"gq",ddi:"+240",mask:"000 000 000"},{id:"gw",ddi:"+245",mask:"000 000 000"},{id:"li",ddi:"+423",mask:"000 000 000"},{id:"lu",ddi:"+352",mask:"000 000 000"},{id:"mk",ddi:"+389",mask:"000 000 000"},{id:"me",ddi:"+382",mask:"000 000 000"},{id:"pl",ddi:"+48",mask:"000 000 000"},{id:"pt",ddi:"+351",mask:"000 000 000"},{id:"si",ddi:"+386",mask:"000 000 000"},{id:"am",ddi:"+374",mask:"000 000000"},{id:"aw",ddi:"+297",mask:"000 0000"},{id:"bn",ddi:"+673",mask:"000 0000"},{id:"fj",ddi:"+679",mask:"000 0000"},{id:"gm",ddi:"+220",mask:"000 0000"},{id:"gy",ddi:"+592",mask:"000 0000"},{id:"is",ddi:"+354",mask:"000 0000"},{id:"fm",ddi:"+691",mask:"000 0000"},{id:"nr",ddi:"+674",mask:"000 0000"},{id:"nu",ddi:"+683",mask:"000 0000"},{id:"pw",ddi:"+680",mask:"000 0000"},{id:"st",ddi:"+239",mask:"000 0000"},{id:"to",ddi:"+676",mask:"000 0000"},{id:"vu",ddi:"+678",mask:"000 0000"},{id:"fk",ddi:"+500",mask:"00000"},{id:"fo",ddi:"+298",mask:"00000"},{id:"sh",ddi:"+290",mask:"00000"},{id:"au",ddi:"+61",mask:"0000 000 000"},{id:"cx",ddi:"+61",mask:"0000 000 000"},{id:"cc",ddi:"+61",mask:"0000 000 000"},{id:"cd",ddi:"+243",mask:"0000 000 000"},{id:"kg",ddi:"+996",mask:"0000 000 000"},{id:"ro",ddi:"+40",mask:"0000 000 000"},{id:"rw",ddi:"+250",mask:"0000 000 000"},{id:"sk",ddi:"+421",mask:"0000 000 000"},{id:"sy",ddi:"+963",mask:"0000 000 000"},{id:"tw",ddi:"+886",mask:"0000 000 000"},{id:"tz",ddi:"+255",mask:"0000 000 000"},{id:"ye",ddi:"+967",mask:"0000 000 000"},{id:"at",ddi:"+43",mask:"0000 000000"},{id:"ke",ddi:"+254",mask:"0000 000000"},{id:"ug",ddi:"+256",mask:"0000 000000"},{id:"az",ddi:"+994",mask:"000 000 00 00"},{id:"ch",ddi:"+41",mask:"000 000 00 00"},{id:"vn",ddi:"+84",mask:"000 000 00 00"},{id:"bh",ddi:"+973",mask:"0000 0000"},{id:"ee",ddi:"+372",mask:"0000 0000"},{id:"sz",ddi:"+268",mask:"0000 0000"},{id:"hk",ddi:"+852",mask:"0000 0000"},{id:"ls",ddi:"+266",mask:"0000 0000"},{id:"mo",ddi:"+853",mask:"0000 0000"},{id:"mt",ddi:"+356",mask:"0000 0000"},{id:"mu",ddi:"+230",mask:"0000 0000"},{id:"mn",ddi:"+976",mask:"0000 0000"},{id:"om",ddi:"+968",mask:"0000 0000"},{id:"pg",ddi:"+675",mask:"0000 0000"},{id:"qa",ddi:"+974",mask:"0000 0000"},{id:"sg",ddi:"+65",mask:"0000 0000"},{id:"tl",ddi:"+670",mask:"0000 0000"},{id:"bd",ddi:"+880",mask:"00000 000000"},{id:"im",ddi:"+44",mask:"00000 000000"},{id:"by",ddi:"+375",mask:"0 000 000-00-00"},{id:"bz",ddi:"+501",mask:"000-0000"},{id:"mv",ddi:"+960",mask:"000-0000"},{id:"mh",ddi:"+692",mask:"000-0000"},{id:"sr",ddi:"+597",mask:"000-0000"},{id:"bj",ddi:"+229",mask:"00 00 00 00"},{id:"bt",ddi:"+975",mask:"00 00 00 00"},{id:"bf",ddi:"+226",mask:"00 00 00 00"},{id:"bi",ddi:"+257",mask:"00 00 00 00"},{id:"cf",ddi:"+236",mask:"00 00 00 00"},{id:"td",ddi:"+235",mask:"00 00 00 00"},{id:"ci",ddi:"+225",mask:"00 00 00 00"},{id:"dk",ddi:"+45",mask:"00 00 00 00"},{id:"dj",ddi:"+253",mask:"00 00 00 00"},{id:"fr",ddi:"+33",mask:"00 00 00 00"},{id:"pf",ddi:"+689",mask:"00 00 00 00"},{id:"ga",ddi:"+241",mask:"00 00 00 00"},{id:"ml",ddi:"+223",mask:"00 00 00 00"},{id:"mr",ddi:"+222",mask:"00 00 00 00"},{id:"ne",ddi:"+227",mask:"00 00 00 00"},{id:"sm",ddi:"+378",mask:"00 00 00 00"},{id:"tg",ddi:"+228",mask:"00 00 00 00"},{id:"gi",ddi:"+350",mask:"00000000"},{id:"ki",ddi:"+686",mask:"00000000"},{id:"tv",ddi:"+688",mask:"00000000"},{id:"bw",ddi:"+267",mask:"00 000 000"},{id:"er",ddi:"+291",mask:"00 000 000"},{id:"lv",ddi:"+371",mask:"00 000 000"},{id:"lb",ddi:"+961",mask:"00 000 000"},{id:"tn",ddi:"+216",mask:"00 000 000"},{id:"cm",ddi:"+237",mask:"0 00 00 00 00"},{id:"cv",ddi:"+238",mask:"000 00 00"},{id:"km",ddi:"+269",mask:"000 00 00"},{id:"pm",ddi:"+508",mask:"000 00 00"},{id:"cg",ddi:"+242",mask:"00 000 0000"},{id:"mz",ddi:"+258",mask:"00 000 0000"},{id:"mm",ddi:"+95",mask:"00 000 0000"},{id:"ck",ddi:"+682",mask:"00 000"},{id:"cy",ddi:"+357",mask:"00 000000"},{id:"eg",ddi:"+20",mask:"0000 000 0000"},{id:"ir",ddi:"+98",mask:"0000 000 0000"},{id:"iq",ddi:"+964",mask:"0000 000 0000"},{id:"ng",ddi:"+234",mask:"0000 000 0000"},{id:"kp",ddi:"+850",mask:"0000 000 0000"},{id:"ph",ddi:"+63",mask:"0000 000 0000"},{id:"ge",ddi:"+995",mask:"000 00 00 00"},{id:"gn",ddi:"+224",mask:"000 00 00 00"},{id:"es",ddi:"+34",mask:"000 00 00 00"},{id:"de",ddi:"+49",mask:"00000 0000000"},{id:"gl",ddi:"+299",mask:"00 00 00"},{id:"wf",ddi:"+681",mask:"00 00 00"},{id:"hu",ddi:"+36",mask:"(00) 000 0000"},{id:"in",ddi:"+91",mask:"000000 00000"},{id:"id",ddi:"+62",mask:"0000-000-000"},{id:"il",ddi:"+972",mask:"000-000-0000"},{id:"jp",ddi:"+81",mask:"000-000-0000"},{id:"jo",ddi:"+962",mask:"00 0000 0000"},{id:"kz",ddi:"+7",mask:"0 (000) 000-0000"},{id:"kw",ddi:"+965",mask:"000 00000"},{id:"la",ddi:"+856",mask:"000 00 000 000"},{id:"ly",ddi:"+218",mask:"000-0000000"},{id:"lt",ddi:"+370",mask:"(0-000) 00000"},{id:"np",ddi:"+977",mask:"(0-000) 00000"},{id:"mg",ddi:"+261",mask:"000 00 000 00"},{id:"mw",ddi:"+265",mask:"000 00 000 00"},{id:"my",ddi:"+60",mask:"000-000 0000"},{id:"md",ddi:"+373",mask:"0000 00 000"},{id:"mc",ddi:"+377",mask:"00 00 00 00 00"},{id:"ma",ddi:"+212",mask:"0000-000000"},{id:"nl",ddi:"+31",mask:"00 00000000"},{id:"nc",ddi:"+687",mask:"00.00.00"},{id:"no",ddi:"+47",mask:"000 00 000"},{id:"pk",ddi:"+92",mask:"0000 0000000"},{id:"ru",ddi:"+7",mask:"0 (000) 000-00-00"},{id:"ws",ddi:"+685",mask:"00 00000"},{id:"sb",ddi:"+677",mask:"00 00000"},{id:"sn",ddi:"+221",mask:"00 000 00 00"},{id:"sc",ddi:"+248",mask:"0 000 000"},{id:"sl",ddi:"+232",mask:"(000) 000000"},{id:"so",ddi:"+252",mask:"0 0000000"},{id:"kr",ddi:"+82",mask:"000-0000-0000"},{id:"se",ddi:"+46",mask:"000-000 00 00"},{id:"tj",ddi:"+992",mask:"000 00 0000"},{id:"tk",ddi:"+690",mask:"0000"},{id:"tr",ddi:"+90",mask:"0000 000 00 00"},{id:"tm",ddi:"+993",mask:"0 00 000000"},{id:"uz",ddi:"+998",mask:"0 00 000 00 00"}];(Pn=e.Ordination||(e.Ordination={})).NO="no",Pn.AZ="az",Pn.ZA="za";var Gn,qn=function(){function n(e){this.translate=e}return n.prototype.getCountries=function(t){switch(t){case e.Ordination.AZ:return this.sortAlphabetically();case e.Ordination.ZA:return this.sortAlphabeticallyDescending();case e.Ordination.NO:default:return $n}},n.prototype.sortAlphabetically=function(){var e=this;return $n.sort((function(t,n){var o=e.translate.instant("platform.angular_components_"+t.id),i=e.translate.instant("platform.angular_components_"+n.id);return o.localeCompare(i)}))},n.prototype.sortAlphabeticallyDescending=function(){var e=this;return $n.sort((function(t,n){var o=e.translate.instant("platform.angular_components_"+t.id);return e.translate.instant("platform.angular_components_"+n.id).localeCompare(o)}))},n.ctorParameters=function(){return[{type:b.TranslateService}]},n=pe([t.Injectable()],n)}(),Wn={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},Yn=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,o){var i=this;void 0===e&&(e=[]),void 0===t&&(t=[]),void 0===n&&(n=";"),void 0===o&&(o="download");var r="\ufeff";e.filter((function(e){return e.exportable&&e.field})).forEach((function(t,o){r+='"'+(t.header||t.field)+'"',o<e.length-1&&(r+=n)})),t.forEach((function(t){r+="\n",e.filter((function(e){return e.exportable&&e.field})).forEach((function(o,a){var s;Array.isArray(o.field)?s=o.field.map((function(e){return i.resolveFieldData(t,e)})).flat().filter((function(e){return null!=e})).join(o.separator):s=i.resolveFieldData(t,o.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,o+".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",o+".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("."),o=e,i=0,r=n.length;i<r;++i){if(null==o)return null;o=o[n[i]]}return o}return null},e.isFunction=function(e){return!!(e&&e.constructor&&e.call&&e.apply)},e}(),Kn=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")},Zn=function(){function n(n,o,i,r){var s=this;this._countryPhonePickerService=n,this._translate=o,this._eRef=i,this.platformId=r,this.currentItemIndex=0,this.phone=new a.FormControl(""),this.filter=new a.FormControl(""),this.dropTop=0,this.dropLeft=0,this._open=!1,this.offsetTop=0,this.ordination=e.Ordination.NO,this.selected=new t.EventEmitter,this.blur=new t.EventEmitter,this.focusLost=new t.EventEmitter,this.tabindex=0,this._filterCountries=function(e){s.filteredCountriesList=e?s._countriesList.filter((function(t){return s._translate.instant("platform.angular_components.country_name_"+t.id).toLowerCase().includes(e.toLowerCase())})):s._countriesList}}var o;return o=n,Object.defineProperty(n.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.mask=this.getMask()},enumerable:!0,configurable:!0}),n.prototype.writeValue=function(e){if(this.value=e,null==e?void 0:e.id){var t=this._countriesList.filter((function(t){return t.id==e.id}));t.length&&this.onSelectItem(t[0])}(null==e?void 0:e.rawValue)&&this.phone.setValue(e.rawValue)},n.prototype.registerOnChange=function(e){this._onChange=e},n.prototype.registerOnTouched=function(e){this._onTouched=e},n.prototype.onClickout=function(e){this._eRef.nativeElement.contains(e.target)||this.open&&(this.open=!1)},n.prototype.ngOnInit=function(){var e,t=this,n=this._countryPhonePickerService.getCountries(this.ordination);this.filter.valueChanges.subscribe(this._filterCountries),(null===(e=this.countries)||void 0===e?void 0:e.length)?this._countriesList=n.filter((function(e){return t.countries.includes(e.id)})):this._countriesList=n,this.filteredCountriesList=this._countriesList,this.selectedItem=this._getSelectedCountryDefault(),this.mask=this.getMask(),this.phone.valueChanges.subscribe((function(e){t.value={id:t.selectedItem.id,ddi:t.selectedItem.ddi,rawValue:null!=e?e:"",value:e?""+t._applyMask(e):""},t._onChange&&t._onChange(t.value)}))},n.prototype.onKeydown=function(e){"Enter"===e.key||" "===e.key?(this.open&&(this.selectedItem=this._countriesList[this.currentItemIndex],this.selected.emit(this.selectedItem)),this.open=!this.open):"Escape"===e.key?this.open=!1:"ArrowDown"===e.key?this._moveToDown():"ArrowUp"===e.key&&this._moveToUp()},Object.defineProperty(n.prototype,"open",{get:function(){return this._open},set:function(e){this._open=e,e?this._createDropdownPortal():(this._portalHost&&this._portalHost.hasAttached()&&this._portalHost.detach(),this.phoneInput.nativeElement.focus())},enumerable:!0,configurable:!0}),n.prototype.onSelectItem=function(e){this.open=!1,this.selectedItem=e,this.phone.setValue(""),this.currentItemIndex=this._countriesList.indexOf(this.selectedItem),this.selected.emit(this.selectedItem)},n.prototype.onCleanFilter=function(){this.filter.setValue("")},n.prototype.onPhoneInputFocus=function(){this.open=!1},n.prototype.getMask=function(){var e,t=this.selectedItem.mask;return Array.isArray(t)?!(null===(e=this.value)||void 0===e?void 0:e.rawValue)||this.value.rawValue.length<=t[0].replace(/[^0]/g,"").length?t[0]:t[1]:t},n.prototype.getPlaceholder=function(){return this.mask.replace(/9/g,"")},n.prototype.onBlur=function(e){this.blur.emit(e),this.focusLost.emit(e)},n.prototype._getSelectedCountryDefault=function(){if(!this._countriesList.length)throw new Error("No country loaded");var e=this._countriesList.filter((function(e){return"br"===e.id}));return e.length?e[0]:this._countriesList[0]},n.prototype._moveToUp=function(){if(0!=this.currentItemIndex){this.currentItemIndex--;var e=document.querySelector(".select-list");e.children[this.currentItemIndex].offsetTop-e.offsetTop<=this.offsetTop&&(this.offsetTop-=45,e.scrollTo(0,this.offsetTop))}},n.prototype._moveToDown=function(){if(!(this.currentItemIndex>=this._countriesList.length-1)){this.currentItemIndex++;var e=document.querySelector(".select-list");e.children[this.currentItemIndex].offsetTop-e.offsetTop>this.offsetTop+180&&(this.offsetTop+=45,e.scrollTo(0,this.offsetTop))}},n.prototype._applyMask=function(e){var t,n,o;if(Array.isArray(this.selectedItem.mask)){var i=this.selectedItem.mask[0].replace(/[^0]/g,"");o=e.length<=i.length?this.selectedItem.mask[0]+"\0":this.selectedItem.mask[1]+"\0"}else o=this.selectedItem.mask+"\0";var r="",a="",s=0,l=0;try{for(var c=he(o),p=c.next();!p.done;p=c.next()){var d=p.value;isNaN(parseInt(d))?(s&&(r+="(\\d{"+s+"})",a+="$"+ ++l,s=0),"\0"!==d&&(a+=d)):s++}}catch(e){t={error:e}}finally{try{p&&!p.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return r="^"+r+"*",this.phone.value.replace(new RegExp(r),a)},n.prototype._createDropdownPortal=function(){if(r.isPlatformBrowser(this.platformId)&&!Se(this.dropElement)){var e=document.body,t=this.dropElement.nativeElement.getBoundingClientRect();this.dropTop=t.bottom+window.scrollY,this.dropLeft=t.left+window.scrollX,this._portalHost=new E.DomPortalOutlet(e,null,null,null);var n=new E.TemplatePortal(this.dropdownTemplate,this.viewContainerRef);this._portalHost.attach(n)}},n.ctorParameters=function(){return[{type:qn},{type:b.TranslateService},{type:t.ElementRef},{type:Object,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]},pe([t.ViewChild("dropdownTemplate")],n.prototype,"dropdownTemplate",void 0),pe([t.ViewChild("dropElement",{read:t.ViewContainerRef})],n.prototype,"viewContainerRef",void 0),pe([t.ViewChild("dropElement",{read:t.ElementRef})],n.prototype,"dropElement",void 0),pe([t.ViewChild("#dropdownContainer",{read:t.ElementRef})],n.prototype,"dropdownContainer",void 0),pe([t.Input()],n.prototype,"countries",void 0),pe([t.Input()],n.prototype,"ordination",void 0),pe([t.Output()],n.prototype,"selected",void 0),pe([t.Output()],n.prototype,"blur",void 0),pe([t.Output()],n.prototype,"focusLost",void 0),pe([t.ViewChild("phoneInput",{static:!0})],n.prototype,"phoneInput",void 0),pe([t.HostListener("document:click",["$event"])],n.prototype,"onClickout",null),pe([t.HostBinding("attr.tabindex")],n.prototype,"tabindex",void 0),pe([t.HostListener("keydown",["$event"])],n.prototype,"onKeydown",null),n=o=pe([t.Component({selector:"s-country-phone-picker",template:'<div class="country-phone-picker">\n <div #dropElement class="phone-input">\n <div class="drop" (click)="open = !open">\n <span class="drop-flag" [ngClass]="\'fi fi-\' + selectedItem.id"> </span>\n <span class="drop-icon fas fa-caret-down"></span>\n </div>\n <p class="phone-ddi">{{ selectedItem.ddi }}</p>\n <input\n #phoneInput\n type="tel"\n autofocus\n [mask]="mask"\n [placeholder]="getPlaceholder()"\n [formControl]="phone"\n (focus)="onPhoneInputFocus()"\n (blur)="onBlur(value)"\n />\n </div>\n <ng-template #dropdownTemplate>\n <div\n #dropdownContainer\n *ngIf="open"\n class="dropdown"\n [ngStyle]="{\n position: \'absolute\',\n top: dropTop + \'px\',\n left: dropLeft + \'px\'\n }"\n >\n <div class="search">\n <input class="search-field" type="text" [formControl]="filter" />\n <span class="search-icon fas fa-search"></span>\n <span class="search-clear fa fa-times" (click)="onCleanFilter()"></span>\n </div>\n <ul class="select-list">\n <li\n *ngFor="let country of filteredCountriesList; let i = index"\n class="select-option"\n [ngClass]="{ \'select-option--focused\': i == currentItemIndex }"\n (click)="onSelectItem(country)"\n >\n <span class="select-option__flag" [ngClass]="\'fi fi-\' + country.id"> </span>\n <span class="select-option__name">\n {{ "platform.angular_components.country_name_" + country.id | translate }}\n </span>\n <span class="select-option__ddi">\n {{ country.ddi }}\n </span>\n </li>\n </ul>\n </div>\n </ng-template>\n</div>\n',providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return o})),multi:!0}],styles:[':host.ng-invalid.ng-dirty .phone-input{border-color:#c13018}.country-phone-picker:has(input:focus) .phone-input{border:1px solid #428bca}.country-phone-picker .phone-input{background-color:#fff;border:1px solid #d8d8d8;border-radius:4px;display:-ms-flexbox;display:flex;line-height:normal;overflow:hidden}.country-phone-picker .phone-input .drop{-ms-flex-align:center;align-items:center;cursor:pointer;display:-ms-flexbox;display:flex}.country-phone-picker .phone-input .drop .drop-flag{margin-left:12px}.country-phone-picker .phone-input .drop .drop-icon{font-size:12px;margin:0 8px}.country-phone-picker .phone-input .phone-ddi{margin:8px 0}.country-phone-picker .phone-input input{border:none;-ms-flex-positive:1;flex-grow:1;font-family:"Open Sans",sans-serif;font-size:14px;font-weight:400;line-height:150%;margin-left:8px}.country-phone-picker .phone-input input:focus{color:#697882;outline:0}.dropdown{background-color:#fff;border-radius:4px;box-shadow:0 4px 5px #00000033;padding:4px 0;position:absolute;margin:2px 0;z-index:999999}.dropdown .search{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;padding:8px 12px}.dropdown .search .search-field{border:1px solid #d8d8d8;border-radius:4px;-ms-flex-positive:1;flex-grow:1;font-family:"Open Sans",sans-serif;font-size:14px;font-weight:400;height:36px;line-height:150%;padding:0 32px 0 8px}.dropdown .search .search-icon{color:#333;font-size:12px;position:relative;right:24px}.dropdown .search .search-clear{color:#333;cursor:pointer;font-size:1rem}.dropdown .select-list{list-style:none;max-height:234px;min-width:360px;max-width:100vw;overflow:scroll;padding:0}.dropdown .select-list .select-option{cursor:pointer;display:-ms-flexbox;display:flex;padding:12px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.dropdown .select-list .select-option .select-option__flag{margin-right:12px}.dropdown .select-list .select-option .select-option__name{margin-right:.5rem;max-width:100%;overflow:hidden;text-overflow:ellipsis}.dropdown .select-list .select-option .select-option__ddi{color:#697882;font-size:14px;font-family:"Open Sans",sans-serif;font-weight:400;line-height:150%}.dropdown .select-list .select-option--focused,.dropdown .select-list .select-option:hover{background-color:#e5eaea}']}),de(3,t.Inject(t.PLATFORM_ID))],n)}(),Xn=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,b.TranslateModule,a.ReactiveFormsModule,M.NgxMaskModule.forRoot(),E.PortalModule],declarations:[Zn],exports:[Zn],providers:[qn]})],e)}(),Jn=function(){function e(){}return e.prototype.isFunction=function(e){return e instanceof Function},e.prototype.trigger=function(e){return e()},e}();(Gn=e.FieldType||(e.FieldType={})).Autocomplete="Autocomplete",Gn.Binary="Binary",Gn.Blob="Blob",Gn.Boolean="Boolean",Gn.Checkbox="Checkbox",Gn.Chips="Chips",Gn.CodeEditor="CodeEditor",Gn.CountryPhonePicker="CountryPhonePicker",Gn.Custom="Custom",Gn.Date="Date",Gn.DateTime="DateTime",Gn.Double="Double",Gn.Editor="Editor",Gn.Enum="Enum",Gn.Integer="Integer",Gn.LocalDateTime="LocalDateTime",Gn.Lookup="Lookup",Gn.Money="Money",Gn.Number="Number",Gn.Password="Password",Gn.Radio="Radio",Gn.Slider="Slider",Gn.String="String",Gn.Text="Text",Gn.TextIA="TextIA",Gn.Time="Time",Gn.ProfilePicture="ProfilePicture",Gn.Button="Button";var Qn,eo=function(e){var t=e.sm,n=void 0===t?12:t,o=e.md,i=void 0===o?6:o,r=e.lg,a=void 0===r?6:r,s=e.xl,l=void 0===s?6:s;this.sm=n,this.md=i,this.lg=a,this.xl=l},to=function(){function e(e){var t,n,o,i,r,a,s;this.ignoreLabel=!1,(null===(t=e.footer)||void 0===t?void 0:t.help)&&(e.footer.help=ce({visible:function(){return!0}},null===(n=e.footer)||void 0===n?void 0:n.help)),(null===(o=e.footer)||void 0===o?void 0:o.link)&&(e.footer.link=ce({visible:function(){return!0}},null===(i=e.footer)||void 0===i?void 0:i.link)),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 eo(e.size||{}),this.errorMessages=e.errorMessages,this.bottomTemplate=e.bottomTemplate,this.footer=e.footer,this.defaultValue=e.defaultValue,this.representedBy=e.representedBy,this.CustomFieldClass=e.CustomFieldClass,this.CustomFieldComponentClass=e.CustomFieldComponentClass,this.displayTimeInfoSign=null!==(r=e.displayTimeInfoSign)&&void 0!==r?r:5e3,this.useInfoSignFocusedInputRef=null===(a=e.useInfoSignFocusedInputRef)||void 0===a||a,this.ignoreLabel=null!==(s=e.ignoreLabel)&&void 0!==s&&s}return Object.defineProperty(e.prototype,"gridClass",{get:function(){var e=this;return Object.keys(this.size).map((function(t){return"ui-"+t+"-"+e.size[t]}))},enumerable:!0,configurable:!0}),e}(),no=function(t){function n(n){var o=t.call(this,ce(ce({},n),{type:e.FieldType.Autocomplete}))||this;return o.suggestions=[],Object.assign(o,n),o.suggestionsObservable.subscribe((function(e){return o.suggestions=e})),o}return le(n,t),n}(to),oo=function(e){function t(t){var n,o,i,r=e.call(this,t)||this;return r.allowNegative=null===(n=t.allowNegative)||void 0===n||n,r.numberLocaleOptions=t.numberLocaleOptions,r.browserAutocomplete=t.browserAutocomplete,r.precision=t.precision,r.scale=null!==(o=t.scale)&&void 0!==o?o:2,r.alignTo=r.scale?l.AlignmentOptions.RIGHT:l.AlignmentOptions.LEFT,r.mask=t.mask,r.leftAddon=t.leftAddon,r.rightAddon=t.rightAddon,r.onBlur=t.onBlur,r.onFocus=t.onFocus,r.onComplete=t.onComplete,r.onInput=t.onInput,r.autoClear=null===(i=t.autoClear)||void 0===i||i,r}return le(t,e),t}(to),io=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.showFileUploadDate=t.showFileUploadDate,n}return le(t,e),t}(to),ro=function(e){this.true=e.true,this.false=e.false,this.empty=e.empty,this.clear=e.clear},ao=function(e){function t(t){var n=e.call(this,t)||this;return n.verticalAlignment=t.verticalAlignment,n.optionsLabel=new ro(t.optionsLabel),n.representedBy="radio",n.onBlur=t.onBlur,n.onFocus=t.onFocus,n.onClick=t.onClick,n}return le(t,e),t}(to),so=function(e){function t(t){var n=e.call(this,t)||this;return n.onChange=t.onChange,t.optionsLabel&&(n.optionsLabel=new ro(t.optionsLabel)),n.representedBy="switch",n}return le(t,e),t}(to),lo=function(t){function n(n){var o=t.call(this,n)||this;if(o.view=n.view||"date",o.minDate=n.minDate,o.maxDate=n.maxDate,o.defaultDate=n.defaultDate,o.appendTo=n.appendTo,o.showOnFocus="boolean"!=typeof n.showOnFocus||n.showOnFocus,o.calendarLocaleOptions=n.calendarLocaleOptions,o.onBlur=n.onBlur,o.onFocus=n.onFocus,o.onSelect=n.onSelect,o.onInput=n.onInput,o.onClose=n.onClose,o.onTodayClick=n.onTodayClick,o.onClearClick=n.onClearClick,o.onMonthChange=n.onMonthChange,o.onYearChange=n.onYearChange,o.selectionMode=n.selectionMode||"single",o.rangeSeparator=n.rangeSeparator||"-",o.showSeconds=n.showSeconds,null===o.showSeconds||void 0===o.showSeconds)switch(o.type){case e.FieldType.DateTime:case e.FieldType.LocalDateTime:case e.FieldType.Time:o.showSeconds=!0}return o}return le(n,t),n}(to),co=function(e){function t(t){var n=e.call(this,t)||this;return n.data=t.data,n}return le(t,e),t}(to),po=function(e){function t(t){var n=e.call(this,t)||this;return n.showCopyButton=!1,n.keyFilter=t.keyFilter,n.showCopyButton=t.showCopyButton,n.separator=t.separator,n.onAdd=t.onAdd,n.onRemove=t.onRemove,n.onChipClick=t.onChipClick,n.onFocus=t.onFocus,n.onBlur=t.onBlur,n.onCopy=t.onCopy,n}return le(t,e),t}(to),uo=function(e){function t(t){var n=e.call(this,t)||this;return n.countries=t.countries,n.ordination=t.ordination,n.onSelected=t.onSelected,n.onFocusLost=t.onFocusLost,n}return le(t,e),t}(to);(Qn=e.NumberAlignmentOption||(e.NumberAlignmentOption={})).RIGHT="right",Qn.LEFT="left";var mo,ho=function(n){function o(o,i,r){var a=n.call(this,null,i,o)||this;return a._elementRef=i,a.localeService=r,a.precision=15,a.scale=0,a.alignTo=e.NumberAlignmentOption.LEFT,a.allowNegative=!0,a.pasteRejected=new t.EventEmitter,a.onLocaleService(),a}var r;return le(o,n),r=o,o.prototype.ngOnInit=function(){this.updateVariables(),n.prototype.ngOnInit.call(this),this.pasteListener=this._onPaste.bind(this),this._elementRef.nativeElement.addEventListener("paste",this.pasteListener),this.keypressListener=this._onKeypress.bind(this),this._elementRef.nativeElement.addEventListener("keypress",this.keypressListener)},o.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()},o.prototype.ngOnDestroy=function(){this._elementRef.nativeElement.removeEventListener("paste",this.pasteListener),this._elementRef.nativeElement.removeEventListener("keypress",this.keypressListener)},o.prototype._onPaste=function(e){var t,n,o=null!==(n=null===(t=e.clipboardData)||void 0===t?void 0:t.getData("text"))&&void 0!==n?n:"",i=fe(o.replace(new RegExp("\\"+this.thousandsSeparator,"g"),"").replace(this.decimalSeparator,".").split("."),2),r=i[0],a=i[1],s=void 0===a?"":a;r.replace(/\D/g,"").length+s.slice(0,this.scale).length>this.precision&&(e.preventDefault(),e.stopPropagation(),this.pasteRejected.emit(o))},o.prototype._onKeypress=function(e){var t=e.code;"Minus"===t||"NumpadSubtract"===t?this.allowNegative&&(this.maxLength=this._maxLength+1):"Equal"!==t&&"NumpadAdd"!==t||(this.maxLength=this._maxLength)},o.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()},o.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,this.maxLength=n},o.prototype.onLocaleService=function(){var e=this;this.localeService.getLocale().pipe(i.first()).subscribe((function(){var t,n;e.decimalSeparator=null!==(t=e.decimalSeparator)&&void 0!==t?t:e.localeService.getDecimalSeparator(),e.thousandsSeparator=null!==(n=e.thousandsSeparator)&&void 0!==n?n:e.localeService.getGroupingSeparator()}))},o.ctorParameters=function(){return[{type:t.KeyValueDiffers},{type:t.ElementRef},{type:Xe}]},pe([t.Input()],o.prototype,"precision",void 0),pe([t.Input()],o.prototype,"scale",void 0),pe([t.Input()],o.prototype,"decimalSeparator",void 0),pe([t.Input()],o.prototype,"thousandsSeparator",void 0),pe([t.Input()],o.prototype,"alignTo",void 0),pe([t.Input()],o.prototype,"allowNegative",void 0),pe([t.Input(),t.HostBinding("attr.placeholder")],o.prototype,"placeholder",void 0),pe([t.HostBinding("attr.maxLength")],o.prototype,"maxLength",void 0),pe([t.Output()],o.prototype,"pasteRejected",void 0),o=r=pe([t.Directive({selector:"input[sNumberInput]",providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return r})),multi:!0}]})],o)}(A.CurrencyMaskDirective),fo=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[ho],exports:[ho]})],e)}(),go=function(t){function n(n){var o=t.call(this,n)||this;return o.numberLocaleOptions=n.numberLocaleOptions,o.browserAutocomplete=n.browserAutocomplete,o.precision=n.precision,o.scale=n.scale,o.alignTo=n.alignTo||e.NumberAlignmentOption.LEFT,o.mask=n.mask,o.leftAddon=n.leftAddon,o.rightAddon=n.rightAddon,o.onBlur=n.onBlur,o.onFocus=n.onFocus,o.onComplete=n.onComplete,o.onInput=n.onInput,o}return le(n,t),n}(to),vo=function(t){function n(n){var o=t.call(this,n)||this;return o.numberLocaleOptions=n.numberLocaleOptions,o.alignTo=n.alignTo||e.NumberAlignmentOption.RIGHT,o.scale="function"==typeof n.scale?n.scale():n.scale,o}return le(n,t),n}(go),bo=function(e){function t(t){var n=e.call(this,t)||this;return n.currency=t.currency,n.numberLocaleOptions=t.numberLocaleOptions,n}return le(t,e),t}(vo),yo=function(t){function n(n){var o=t.call(this,ce(ce({},n),{type:e.FieldType.Lookup}))||this;return o.multiple=!1,o.showSearch=!0,o.autocompleteForceSelection=!0,o.showAddOption=!1,o.showEditOption=!1,o.showRemoveOption=!1,o.onSelect=function(e){},o.onUnselect=function(e){},Object.assign(o,n),o.suggestionsObservable.subscribe((function(e){return o.lookupSuggestions=e})),o.searchObservable.pipe(i.delay(0)).subscribe((function(e){var t=e.totalRecords,n=e.gridData,i=e.searchTotalRecordsLabel;o._gridData=n,o._searchTotalRecords=t,o._searchTotalRecordsLabel=i})),o}return le(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}(to),xo=function(e){function t(t){var n=e.call(this,t)||this;return n.inputType=t.inputType,n.keyFilter=t.keyFilter,n.leftAddon=t.leftAddon,n.rightAddon=t.rightAddon,n.maxLength=t.maxLength||9999999,n.passwordStrength=t.passwordStrength,n.passwordStrengthOptions=t.passwordStrengthOptions,n.showToggle=t.showToggle,n.style=t.style,n.onBlur=t.onBlur,n.onFocus=t.onFocus,n.onComplete=t.onComplete,n.onInput=t.onInput,n}return le(t,e),t}(to),_o=function(e){this.label=e.label,this.value=e.value},wo=function(e){function t(t){var n=e.call(this,t)||this;return n.verticalAlignment=t.verticalAlignment,n.clearLabel=t.clearLabel,n.options=t.options,n.onBlur=t.onBlur,n.onFocus=t.onFocus,n.onClick=t.onClick,n}return le(t,e),t}(to),Co=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,n.onClick=t.onClick,n.onChange=t.onChange,n.emptyMessage=t.emptyMessage,n.editable=t.editable,n.filter=t.filter,n.group=t.group,n}return le(t,e),t}(to),ko=function(e){this.label=e.label,this.value=e.value},Io=function(e){function t(t){var n,o,i,r,a,s,l,c,p=e.call(this,t)||this;return p.maxDefault=100,p.onChange=t.onChange,p.onSlideEnd=t.onSlideEnd,p.range=null!==(n=t.range)&&void 0!==n&&n,p.min=null!==(o=t.min)&&void 0!==o?o:0,p.max=null!==(i=t.max)&&void 0!==i?i:p.maxDefault,p.orientation=null!==(r=t.orientation)&&void 0!==r?r:"horizontal",p.step=null!==(a=t.step)&&void 0!==a?a:1,p.animate=null!==(s=t.animate)&&void 0!==s&&s,p.disabled=null!==(l=t.disabled)&&void 0!==l&&l,p.prefix=t.prefix,p.suffix=t.suffix,p.rangeSeparator=null!==(c=t.rangeSeparator)&&void 0!==c?c:" - ",p}return le(t,e),t}(to),So=function(e){function t(t){var n,o,i,r=e.call(this,t)||this;return r.style={resize:"vertical"},r.cols=t.cols,r.rows=t.rows,r.keyFilter=t.keyFilter,r.style=ce(ce({},t.style),r.style),r.readonly=t.readonly,r.speechRecognition=null!==(n=t.speechRecognition)&&void 0!==n&&n,r.keepContext=null!==(o=t.keepContext)&&void 0!==o&&o,r.speechRecognitionPlaceholder=null!==(i=t.speechRecognitionPlaceholder)&&void 0!==i?i:"",r.maxLength=t.maxLength,r}return le(t,e),t}(to),To=function(e){function t(t){var n,o,i,r=e.call(this,t)||this;return r.style={resize:"vertical"},r.cols=t.cols,r.rows=t.rows,r.keyFilter=t.keyFilter,r.style=ce(ce({},t.style),r.style),r.prompt=t.prompt,r.readonly=t.readonly,r.speechRecognition=null!==(n=t.speechRecognition)&&void 0!==n&&n,r.keepContext=null!==(o=t.keepContext)&&void 0!==o&&o,r.speechRecognitionPlaceholder=null!==(i=t.speechRecognitionPlaceholder)&&void 0!==i?i:"",r.maxLength=t.maxLength,r}return le(t,e),t}(to),Eo=function(e){function t(t){var n,o,i=e.call(this,t)||this;return i.mask=t.mask,i.characterPattern=null!==(n=t.characterPattern)&&void 0!==n?n:"[A-Za-z]",i.unmask=null!==(o=t.unmask)&&void 0!==o&&o,i.readonly=t.readonly,i.inputType=t.inputType,i.keyFilter=t.keyFilter,i.leftAddon=t.leftAddon,i.rightAddon=t.rightAddon,i.maxLength=t.maxLength||9999999,i.browserAutocomplete=t.browserAutocomplete,i.style=t.style,i.onBlur=t.onBlur,i.onFocus=t.onFocus,i.onComplete=t.onComplete,i.onInput=t.onInput,i.sortableColumnName=t.sortableColumnName,i}return le(t,e),t}(to),Mo=function(t){function n(n){var o=t.call(this,n)||this;return o.tooltipPosition="top",o.priority=n.priority||e.ButtonPriority.Primary,o.iconClass=n.iconClass||"",o.disabled=n.disabled||!1,o.auxiliary=n.auxiliary||!1,o.caret=n.caret||!1,o.id=n.id||"s-button-"+yt.nextId++,o.onClick=n.onClick||function(){},o.fullWidth=n.fullWidth||!1,o.iconColor=n.iconColor,o.badge=n.badge,o.animation=n.animation,o.slide=n.slide,o.menuOptions=n.menuOptions,o.model=n.model,o.baseZIndex=n.baseZIndex,o.styleClass=n.styleClass,o.rightIconClass=n.rightIconClass,o.tooltipPosition=n.tooltipPosition||"top",o.mouseEnter=n.mouseEnter,o.mouseLeave=n.mouseLeave,o}return le(n,t),n}(to),Lo=function(e){function t(t){var n=e.call(this,t)||this;return n.formats=t.formats,n.readonly=t.readonly,n.modules=t.modules,n.style=t.style,n}return le(t,e),t}(to),Fo=function(e){function t(t){var n=e.call(this,t)||this;return n.simpleTitle=t.simpleTitle,n.actionTitle=t.actionTitle,n.subtitle=t.subtitle,n.aspectRatio=t.aspectRatio,n.cropperLabelsConfig=t.cropperLabelsConfig,n.removeButtonLabel=t.removeButtonLabel,n.changeButtonLabel=t.changeButtonLabel,n.confirmationTexts=t.confirmationTexts,n.maxFileSize=t.maxFileSize,n.accept=t.accept,n.supportedExtensions=t.supportedExtensions,n.onChangeImage=t.onChangeImage,n.onRemovedImage=t.onRemovedImage,n.onInvalidFile=t.onInvalidFile,n}return le(t,e),t}(to),Oo=function(t){switch(this.ignoreLabel=!1,t.type){case e.FieldType.Enum:return new Co(t);case e.FieldType.Autocomplete:return new no(t);case e.FieldType.Money:return new bo(t);case e.FieldType.Integer:return new go(t);case e.FieldType.Double:return new vo(t);case e.FieldType.Number:return new oo(t);case e.FieldType.String:case e.FieldType.Binary:return new Eo(t);case e.FieldType.Password:return new xo(t);case e.FieldType.Text:return new So(t);case e.FieldType.TextIA:return new To(t);case e.FieldType.Boolean:return"switch"===t.representedBy?new so(t):new ao(t);case e.FieldType.Date:case e.FieldType.DateTime:case e.FieldType.LocalDateTime:case e.FieldType.Time:return new lo(t);case e.FieldType.Lookup:return new yo(t);case e.FieldType.Radio:return new wo(t);case e.FieldType.Checkbox:return new co(t);case e.FieldType.Chips:return new po(t);case e.FieldType.CountryPhonePicker:return new uo(t);case e.FieldType.Blob:return new io(t);case e.FieldType.Slider:return new Io(t);case e.FieldType.ProfilePicture:return new Fo(t);case e.FieldType.Editor:return new Lo(t);case e.FieldType.Button:return new Mo(t);case e.FieldType.Custom:return new(0,t.CustomFieldClass)(function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(t,["CustomFieldClass"]))}},Ro=function(e,t){this.label=e,this.value=t},Ao=function(){function r(e,n){this.hotkeysService=e,this.translateService=n,this.id="s-lookup-"+s.nextId++,this.autocompleteForceSelection=!0,this.disabled=!1,this.showSearch=!0,this.lookupAppendTo="body",this.searchFields=[],this.showAddOption=!1,this.showEditOption=!1,this.showRemoveOption=!1,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.onAdd=new t.EventEmitter,this.onEdit=new t.EventEmitter,this.onRemove=new t.EventEmitter,this.onClearButtonClick=new t.EventEmitter,this.dialogVisible=!1,this.collapsed=!1,this.selected=[],this.transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)",this.originalFormValues={},this.ngUnsubscribe=new o.Subject}var s;return s=r,r.prototype.ngOnInit=function(){var t=this;this.searchGridFields||(this.searchGridFields=this.searchFields.filter((function(e){var t;return!e.visible||(null===(t=e.visible)||void 0===t?void 0:t.call(e))})).map((function(e){return new Oo(ce({},e))}))),this.searchFields=this.searchFields.map((function(e){return new Oo(ce(ce({},e),{size:{sm:12,md:12,lg:12,xl:12}}))})),this.searchGridFields=this.searchGridFields.filter((function(e){var t;return!e.visible||(null===(t=e.visible)||void 0===t?void 0:t.call(e))})).map((function(n){n.width=t.getColWidth(n.label);var o=new $e(ce({},n.calendarLocaleOptions));if(null==o?void 0:o.dateFormat){switch(n.type){case e.FieldType.Date:o.dateFormat=t._convertToMomentDateFormat(o.dateFormat);break;case e.FieldType.Time:o.dateFormat=t._convertToMomentHourFormat(o.hourFormat,o.dateFormat)}n.calendarLocaleOptions=o}return n}));var n=this.searchFields.reduce((function(e,n){return e[n.name]=new a.FormControl(n.defaultValue),t.originalFormValues[n.name]=n.defaultValue,e}),{});this.formGroupDialog=new a.FormGroup(n),this._subscribeEvents()},r.prototype.printRecordTotalizer=function(){if(this.searchTotalRecordsLabel)return this.searchTotalRecordsLabel;var e=this.recordLabel?this.searchTotalRecords+" "+this.recordLabel:this.translateService.instant("platform.angular_components.total_record",{count:this.searchTotalRecords}),t=this.recordsLabel?this.searchTotalRecords+" "+this.recordsLabel:this.translateService.instant("platform.angular_components.total_records",{count:this.searchTotalRecords});return 1===this.searchTotalRecords?e:t},r.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},r.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")},r.prototype.ngAfterViewInit=function(){this.autocomplete.onOverlayAnimationDone=function(e){}},r.prototype.ngOnChanges=function(e){this.dialogVisible&&e.searchGridData&&(this.loading=!1),this._setFocusFilter()},r.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},r.prototype.getGridData=function(){return this.searchGridData},r.prototype.getLookupSuggestions=function(){return this.lookupSuggestions},r.prototype.makeSearchRequestParams=function(e){var t=this.formGroupDialog.getRawValue(),n=ce(ce({},e),{filterData:t}),o=e.multiSortMeta;return this.multiSortMeta=o||this.multiSortMeta,n},r.prototype.lazyLoadGrid=function(e){var t=this.makeSearchRequestParams(e);this.onSearchRequest.next(t)},r.prototype.onCompleteMethod=function(e){this.autocompleteForceSelection||this.onChange(""===this.value?null:this.value),this.onLookupRequest.next(e.query)},r.prototype.setDefaultFilters=function(){var e=this;this.defaultFilter&&this.defaultFilter.filter((function(t){var n=t.field;return e.formGroupDialog.contains(n)&&!e.formGroupDialog.get([n]).dirty})).forEach((function(t){var n=t.value,o=t.field;e.formGroupDialog.get([o]).patchValue(n instanceof Function?n():n)}))},r.prototype.showDialog=function(){this.setDefaultFilters(),this.searchGridData=void 0,this.onTouched(),this.hotkeysService.pause(ge(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},r.prototype.hideDialog=function(){var e=this.autocomplete,t=e.inputEL,n=e.multiInputEL;this.dialogVisible=!1,this.collapsed=!1,this.hotkeysService.unpause(ge(this.hotkeysService.pausedHotkeys)),this.multiple?n.nativeElement.focus():t.nativeElement.focus()},r.prototype.search=function(){this.resetTable(),this.collapsed=!0,this.dialog.moveOnTop()},r.prototype.clear=function(){this.formGroupDialog.reset(this.originalFormValues),this.resetTable(),this.onClearButtonClick.emit()},r.prototype.resetTable=function(){this.table.reset()},r.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()}},r.prototype.onSelectionChange=function(e){e&&(Array.isArray(e)?this.selected=e:this.selected=[e])},r.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.writeValue(n),e(n)}},r.prototype.registerOnTouched=function(e){this.onTouched=e},r.prototype.writeValue=function(e){this.value=e},r.prototype.setDisabledState=function(e){this.disabled=e},r.prototype.getFieldValue=function(e,t){return t.split(".").reduce((function(e,t){return void 0===e[t]?"":e[t]}),e)},r.prototype.getBadgeFromValue=function(e,t){var n;return null===(n=null==t?void 0:t.find((function(t){return t.value===e})))||void 0===n?void 0:n.badge},r.prototype.getLabelForValue=function(e,t){if(!t)return e;var n=t.find((function(t){return t.value===e}));return n?n.label:e},r.prototype.isBooleanValue=function(e,t){var n=this.getFieldValue(e,t);return!0===n||!1===n},r.prototype.getBooleanLabel=function(e,t,n){var o=this.getFieldValue(e,t);return!0===o?n.true:!1===o?n.false:this.emptyFieldLabel},r.prototype.isNumber=function(e,t){return!new ae(this.getFieldValue(e,t)).isNaN()},r.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)}))},r.prototype.newHotkey=function(e,t){return new L.Hotkey(e,(function(){return t(),!1}),["INPUT","SELECT","TEXTAREA"])},r.prototype.filterToggle=function(){this.animating||(this.animating=!0,this.collapsed=!this.collapsed)},r.prototype.onToggleDone=function(){this.animating=!1},r.prototype.getColWidth=function(e){var t=e.length;return t<14.286?"14.286em":t+"em"},r.prototype.getScale=function(e){return this.isFunction(e)?e():e},r.prototype.isFunction=function(e){return e instanceof Function},r.prototype.getIntegerMaskConfig=function(e){var t;return{scale:0,thousandsSeparator:null===(t=e.numberLocaleOptions)||void 0===t?void 0:t.thousandsSeparator,prefix:""}},r.prototype.getDoubleMaskConfig=function(e){var t,n;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:""}},r.prototype.getMoneyMaskConfig=function(e){var t,n,o;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===(o=e.numberLocaleOptions)||void 0===o?void 0:o.currencySymbol}},r.prototype.getNumberMaskConfig=function(e){var t,n,o;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===(o=e.numberLocaleOptions)||void 0===o?void 0:o.currencySymbol}},r.prototype.onTableRowDoubleClick=function(e){this.selected=[e],this.select()},r.prototype._setFocusFilter=function(){var e,t,n;if(this.dialogVisible&&!this.collapsed){var o=null===(n=null===(t=null===(e=this.dialog)||void 0===e?void 0:e.contentViewChild)||void 0===t?void 0:t.nativeElement)||void 0===n?void 0:n.getElementsByTagName("input")[0];o&&o.focus()}},r.prototype._subscribeEvents=function(){var e=this;this.onSearchRequest.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(){return e.loading=!0})),this.onSelect.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(){return e.onChange(e.value)})),this.onUnselect.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(){return e.onChange(e.value)})),this.onClear.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(){e.multiple||e.onChange(null)})),this.onFocus.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(){e.onTouched()})),this.onBlur.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){var n=t.target,o=e.value&&e.value[e.lookupDisplayField],i=n.value;if(!e.multiple&&o&&o!=i){n.value="",e.onChange("")}}))},r.nextId=0,r.ctorParameters=function(){return[{type:L.HotkeysService},{type:b.TranslateService}]},pe([t.Input()],r.prototype,"formControlName",void 0),pe([t.Input()],r.prototype,"id",void 0),pe([t.Input()],r.prototype,"autocompleteForceSelection",void 0),pe([t.Input()],r.prototype,"multiple",void 0),pe([t.Input()],r.prototype,"dataKey",void 0),pe([t.Input()],r.prototype,"required",void 0),pe([t.Input()],r.prototype,"disabled",void 0),pe([t.Input()],r.prototype,"showSearch",void 0),pe([t.Input()],r.prototype,"lookupSuggestions",void 0),pe([t.Input()],r.prototype,"lookupDisplayField",void 0),pe([t.Input()],r.prototype,"lookupDisplayFieldTooltip",void 0),pe([t.Input()],r.prototype,"lookupEmptyMessage",void 0),pe([t.Input()],r.prototype,"lookupAppendTo",void 0),pe([t.Input()],r.prototype,"searchEmptyDescription",void 0),pe([t.Input()],r.prototype,"searchGridData",void 0),pe([t.Input()],r.prototype,"searchTotalRecords",void 0),pe([t.Input()],r.prototype,"searchFields",void 0),pe([t.Input()],r.prototype,"searchGridFields",void 0),pe([t.Input()],r.prototype,"multiSortMeta",void 0),pe([t.Input()],r.prototype,"placeholder",void 0),pe([t.Input()],r.prototype,"sortableColumnsDisabled",void 0),pe([t.Input()],r.prototype,"lookupRowProps",void 0),pe([t.Input()],r.prototype,"defaultFilter",void 0),pe([t.Input()],r.prototype,"showAddOption",void 0),pe([t.Input()],r.prototype,"showEditOption",void 0),pe([t.Input()],r.prototype,"showRemoveOption",void 0),pe([t.Output()],r.prototype,"onLookupRequest",void 0),pe([t.Output()],r.prototype,"onSearchRequest",void 0),pe([t.Output()],r.prototype,"onFocus",void 0),pe([t.Output()],r.prototype,"onBlur",void 0),pe([t.Output()],r.prototype,"onKeyUp",void 0),pe([t.Output()],r.prototype,"onSelect",void 0),pe([t.Output()],r.prototype,"onUnselect",void 0),pe([t.Output()],r.prototype,"onClear",void 0),pe([t.Output()],r.prototype,"onAdd",void 0),pe([t.Output()],r.prototype,"onEdit",void 0),pe([t.Output()],r.prototype,"onRemove",void 0),pe([t.Output()],r.prototype,"onClearButtonClick",void 0),pe([t.ViewChild(R.Table,{static:!1})],r.prototype,"table",void 0),pe([t.ViewChild(O.Dialog,{static:!1})],r.prototype,"dialog",void 0),pe([t.ViewChild(F.AutoComplete,{static:!1})],r.prototype,"autocomplete",void 0),pe([t.Input()],r.prototype,"searchTitle",void 0),pe([t.Input()],r.prototype,"searchEmptyTitle",void 0),pe([t.Input()],r.prototype,"searchTotalRecordsLabel",void 0),pe([t.Input()],r.prototype,"filterTitle",void 0),pe([t.Input()],r.prototype,"filterLabel",void 0),pe([t.Input()],r.prototype,"clearLabel",void 0),pe([t.Input()],r.prototype,"cancelLabel",void 0),pe([t.Input()],r.prototype,"selectLabel",void 0),pe([t.Input()],r.prototype,"emptyFieldLabel",void 0),pe([t.Input()],r.prototype,"recordLabel",void 0),pe([t.Input()],r.prototype,"recordsLabel",void 0),r=s=pe([t.Injectable(),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]="autocompleteForceSelection"\n [suggestions]="getLookupSuggestions()"\n (completeMethod)="onCompleteMethod($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 <ng-template let-item pTemplate="selectedItem">\n <span\n class="ui-autocomplete-token-label ng-tns-c65-43 ng-star-inserted"\n [sTooltip]="lookupDisplayFieldTooltip ? item[lookupDisplayField] : null"\n tooltipPosition="top">\n {{item[lookupDisplayField]}}\n </span>\n </ng-template>\n </p-autoComplete>\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<p-dialog\n appendTo="body"\n styleClass="s-lookup-modal"\n [header]="searchTitle || \'platform.angular_components.advanced_search\' | translate"\n [(visible)]="dialogVisible"\n [modal]="true"\n (onHide)="hideDialog()"\n [blockScroll]="true"\n [focusOnShow]="true"\n [draggable]="false"\n [resizable]="false"\n #dialog>\n <div\n *ngIf="dialogVisible"\n class="s-lookup-modal-container">\n <div\n *ngIf="searchFields && searchFields.length"\n class="filter"\n [@collapseContent]="collapsed\n ? { value: \'hidden\', params: { transitionParams: transitionOptions } }\n : { value: \'visible\', params: { transitionParams: transitionOptions } }"\n (@collapseContent.done)="onToggleDone()">\n <form\n [formGroup]="formGroupDialog"\n novalidate\n autocomplete="off">\n <div\n *ngIf="!collapsed"\n class="form-content"\n [@childCollapseContent]="collapsed\n ? { value: \':leave\', params: { transitionParams: transitionOptions } }\n : { value: \':enter\', params: { transitionParams: transitionOptions } }">\n <div class="filter-title sds-section-title">\n {{ filterTitle || "platform.angular_components.filters" | translate }}\n </div>\n <div class="form-fields">\n <s-dynamic-form\n [fields]="searchFields"\n [form]="formGroupDialog">\n </s-dynamic-form>\n </div>\n <div class="ui-g">\n <div class="ui-g-12 no-button-margin">\n <s-button\n [id]="id + \'-filter-button\'"\n type="submit"\n [label]="filterLabel || \'platform.angular_components.filter\' | translate"\n (onClick)="search()"\n sTooltip="(ALT + SHIFT + F)"\n tooltipPosition="top"\n showDelay="500">\n </s-button>\n <s-button\n [id]="id + \'-clear-button\'"\n type="button"\n [label]="clearLabel || \'platform.angular_components.clear\' | translate"\n (onClick)="clear()"\n priority="link"\n sTooltip="(ALT + SHIFT + L)"\n tooltipPosition="top"\n showDelay="500">\n </s-button>\n </div>\n </div>\n </div>\n </form>\n </div>\n <div\n *ngIf="searchFields && searchFields.length"\n class="filter-toggle">\n <button\n [id]="id + \'-filter-toggle-button\'"\n type="button"\n (click)="filterToggle()">\n <span\n class="fa"\n [ngClass]="{\'fa-chevron-left\': !collapsed, \'fa-chevron-right\': collapsed}"\n aria-hidden="true">\n </span>\n </button>\n </div>\n <div\n class="content"\n [ngClass]="{\'empty-content\': !searchTotalRecords && !loading}">\n <s-empty-state\n [id]="id + \'-empty-state\'"\n *ngIf="!searchTotalRecords && !loading"\n [title]="searchEmptyTitle || \'platform.angular_components.no_records_found\' | translate"\n [description]="searchEmptyDescription"\n iconClass="fa fa-search">\n </s-empty-state>\n\n <div class="content-child">\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: loading, indicator: \'logo\' }"\n [multiSortMeta]="multiSortMeta"\n [attr.data-hidden]="!searchTotalRecords && !loading"\n [selectionMode]="multiple ? \'multiple\' : \'single\'"\n (selectionChange)="onSelectionChange($event)">\n <ng-template pTemplate="caption">\n <div class="buttons-container no-button-margin">\n <s-button\n *ngIf="showAddOption"\n priority="default"\n [label]="\'platform.angular_components.add\' | translate"\n (onClick)="onAdd.emit()">\n </s-button>\n <s-button\n *ngIf="showEditOption"\n priority="default"\n [label]="\'platform.angular_components.edit\' | translate"\n [disabled]="selected.length !== 1"\n (onClick)="onEdit.emit(this.selected[0])">\n </s-button>\n <s-button\n *ngIf="showRemoveOption"\n priority="default"\n [label]="\'platform.angular_components.remove\' | translate"\n [disabled]="!selected.length"\n (onClick)="onRemove.emit(this.selected)">\n </s-button>\n </div>\n </ng-template>\n <ng-template pTemplate="colgroup" let-columns>\n <colgroup>\n <col\n *ngIf="multiple"\n style="width: 50px" />\n <col\n *ngFor="let col of columns"\n [style.width]="col.width" />\n </colgroup>\n </ng-template>\n <ng-template pTemplate="header" let-columns>\n <tr>\n <th\n *ngIf="multiple"\n style="width: 50px">\n <s-table-header-checkbox\n [useAllObject]="lookupRowProps ? false : true"\n [rowProps]="lookupRowProps">\n </s-table-header-checkbox>\n </th>\n <th\n [style.width]="col.width"\n *ngFor="let col of columns"\n [pSortableColumn]="col.sortableColumnName ? col.sortableColumnName : col.name"\n [pSortableColumnDisabled]="sortableColumnsDisabled?.includes(col.name)">\n <div class="senior-header">\n <span class="senior-header-title">{{ col.label }}</span>\n <p-sortIcon\n [field]="col.name"\n *ngIf="!sortableColumnsDisabled?.includes(col.name)">\n </p-sortIcon>\n </div>\n </th>\n </tr>\n </ng-template>\n <ng-template\n pTemplate="body"\n let-rowData\n let-columns\n let-rowIndex="rowIndex">\n <tr\n sNavigation\n [pSelectableRow]="rowData"\n [pSelectableRowIndex]="rowIndex"\n sDoubleClick (onDoubleClick)="onTableRowDoubleClick(rowData)">\n <td\n *ngIf="multiple"\n style="width: 50px"\n tabindex="0">\n <p-tableCheckbox\n [value]="rowData"\n [pSelectableRow]="rowData">\n </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 <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 <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 <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 <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 <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 <ng-container *ngSwitchCase="\'Integer\'">\n <ng-container *ngIf="isNumber(rowData, col.name); else emptyTemplate">\n <span> {{ getFieldValue(rowData, col.name) | localizedBignumber: getIntegerMaskConfig(col) | async }} </span>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase="\'Double\'">\n <ng-container *ngIf="isNumber(rowData, col.name); else emptyTemplate">\n <span> {{ getFieldValue(rowData, col.name) | localizedBignumber: getDoubleMaskConfig(col) | async }} </span>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase="\'Money\'">\n <ng-container *ngIf="isNumber(rowData, col.name); else emptyTemplate">\n <span> {{ getFieldValue(rowData, col.name) | localizedBignumber: getMoneyMaskConfig(col) | async }} </span>\n </ng-container>\n </ng-container>\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 <ng-container *ngSwitchCase="\'Enum\'">\n <ng-container *ngIf="getLabelForValue(getFieldValue(rowData, col.name), col.options); else emptyTemplate">\n <ng-container *ngIf="getBadgeFromValue(getFieldValue(rowData, col.name), col.options); then withBadge; else withoutBadge"></ng-container>\n <ng-template #withBadge>\n <s-badge\n [text]="getLabelForValue(getFieldValue(rowData, col.name), col.options)"\n [color]="getBadgeFromValue(getFieldValue(rowData, col.name), col.options).color"\n [type]="getBadgeFromValue(getFieldValue(rowData, col.name), col.options).type"\n [iconClass]="getBadgeFromValue(getFieldValue(rowData, col.name), col.options).iconClass"\n [iconPosition]="getBadgeFromValue(getFieldValue(rowData, col.name), col.options).iconPosition">\n </s-badge>\n </ng-template>\n <ng-template #withoutBadge>\n <span> {{ getLabelForValue(getFieldValue(rowData, col.name), col.options) }} </span>\n </ng-template>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <ng-container *ngIf="col.mask && col.mask({ value: rowData })">\n <ng-container *ngIf="(isNumber(rowData, col.name) || getFieldValue(rowData, col.name))">\n <span>{{ getFieldValue(rowData, col.name) | sMaskFormatter: col.mask({ value: rowData }) }}</span>\n </ng-container>\n </ng-container>\n <ng-container *ngIf="!(col.mask && col.mask({ value: rowData }))">\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 {{ printRecordTotalizer() }}\n </span>\n </ng-template>\n </p-table>\n </div>\n\n </div>\n </div>\n <p-footer>\n <s-button\n [id]="id + \'-select-button\'"\n type="button"\n [label]="selectLabel || \'platform.angular_components.select\' | translate"\n (onClick)="select()"\n sTooltip="(ALT + SHIFT + S)"\n tooltipPosition="top"\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 || \'platform.angular_components.cancel\' | translate"\n (onClick)="hideDialog()"\n sTooltip="(ALT + SHIFT + C)"\n tooltipPosition="top"\n showDelay="500">\n </s-button>\n </p-footer>\n</p-dialog>\n<ng-template #emptyTemplate>\n <span [ngClass]="\'sds-empty-value\'">\n {{ emptyFieldLabel || \'platform.angular_components.not_informed\' | translate }}\n </span>\n</ng-template>\n',providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return s})),multi:!0}],encapsulation:t.ViewEncapsulation.None,animations:[n.trigger("collapseContent",[n.state("hidden",n.style({width:"10px",padding:0})),n.state("visible",n.style({width:"*"})),n.transition("visible <=> hidden",[n.group([n.query("@childCollapseContent",n.animateChild()),n.animate("{{transitionParams}}")])])]),n.trigger("childCollapseContent",[n.state(":leave",n.style({opacity:0})),n.state(":enter",n.style({opacity:1})),n.transition("* <=> *",n.animate("{{transitionParams}}"))])],styles:[".no-button-margin s-button{margin-left:0}s-lookup.ng-dirty.ng-invalid .ui-inputtext{border-color:#c13018;border-right-width:1px}s-lookup.ng-dirty.ng-invalid .button-addon,s-lookup.ng-dirty.ng-invalid .ui-autocomplete-dropdown{border-left:none}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}s-lookup .inputgroup,s-lookup p-autocomplete span.ui-autocomplete-multiple{display:-ms-flexbox;display:flex}s-lookup .inputgroup p-autocomplete{display:inline-block}s-lookup .inputgroup p-autocomplete .ui-autocomplete-input{width:100%}s-lookup .ui-inputtext:focus{border-right-style:none!important}s-lookup .inputgroup p-autocomplete+button:enabled:hover,s-lookup .inputgroup p-autocomplete+button:focus{background-color:#e6e6e6;border-color:#ccc}s-lookup:not(.ng-dirty.ng-invalid) .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{margin-top:15px;-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 .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.empty-content .content-child{display:none}.s-lookup-modal .s-lookup-modal-container .content .content-child{height:100%;overflow:auto}.s-lookup-modal .s-lookup-modal-container .content .buttons-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:10px}.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>.ui-table{height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.s-lookup-modal .s-lookup-modal-container .content p-table>.ui-table .ui-table-scrollable-wrapper{-ms-flex:1;flex:1;overflow:auto}.s-lookup-modal .s-lookup-modal-container .content p-table>.ui-table .ui-table-scrollable-wrapper .ui-table-scrollable-header.ui-widget-header{overflow:inherit}.s-lookup-modal .s-lookup-modal-container .content p-table>.ui-table .ui-table-scrollable-wrapper .ui-table-scrollable-body{overflow:visible}@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%}}.inputgroup p-autocomplete{width:calc(100% - 34px)}"]})],r)}();(mo=e.DynamicType||(e.DynamicType={})).Autocomplete="Autocomplete",mo.Binary="Binary",mo.Boolean="Boolean",mo.Chips="Chips",mo.Date="Date",mo.DateTime="DateTime",mo.LocalDateTime="LocalDateTime",mo.Double="Double",mo.Enum="Enum",mo.Fieldset="Fieldset",mo.Integer="Integer",mo.Lookup="Lookup",mo.Money="Money",mo.Radio="Radio",mo.Row="Row",mo.Section="Section",mo.String="String",mo.Text="Text",mo.Time="Time",mo.Number="Number",mo.Password="Password",mo.Slider="Slider";var Do,Po=function(e){Object.assign(this,ce({},e)),Se(e.visible)&&(this.visible=function(){return!0})},Vo=function(e){function t(t){return e.call(this,t)||this}return le(t,e),t}(Po),Bo=function(e){this.isFlex=!1,Object.assign(this,ce({},e))},No=function(e){function t(t){var n=e.call(this,t)||this;return Object.assign(n,ce({},t)),n}return le(t,e),t}(Bo),zo=function(e){function t(t){var n=e.call(this,t)||this;return n.isFlex=!1,n.justifyContent="flex-start",n.alignItems="flex-start",n.visible=function(){return!0},n.isFlex=t.isFlex||!1,n.justifyContent=t.justifyContent||"flex-start",n.alignItems=t.alignItems||"flex-start",t.visible&&(n.visible=t.visible),n.size=new eo(t.size||{}),n.gridClass=Object.keys(n.size).map((function(e){return"ui-"+e+"-"+n.size[e]})),n}return le(t,e),t}(Bo),Uo=function(t){var n=t.type,o=t.representedBy;switch(n){case e.DynamicType.Autocomplete:return new no(t);case e.DynamicType.Binary:case e.DynamicType.String:return new Eo(t);case e.DynamicType.Password:return new xo(t);case e.DynamicType.Boolean:return"switch"===o?new so(t):new ao(t);case e.DynamicType.Chips:return new po(t);case e.DynamicType.Date:case e.DynamicType.DateTime:case e.DynamicType.LocalDateTime:case e.DynamicType.Time:return new lo(t);case e.DynamicType.Double:return new vo(t);case e.DynamicType.Enum:return new Co(t);case e.DynamicType.Fieldset:return new No(t);case e.DynamicType.Integer:return new go(t);case e.DynamicType.Number:return new oo(t);case e.DynamicType.Lookup:return new yo(t);case e.DynamicType.Money:return new bo(t);case e.DynamicType.Radio:return new wo(t);case e.DynamicType.Row:return new Vo(t);case e.DynamicType.Section:return new zo(t);case e.DynamicType.Slider:return new Io(t);case e.DynamicType.Text:return new So(t)}};(e.GridType||(e.GridType={})).Row="Row",(Do=e.StructureType||(e.StructureType={})).Fieldset="Fieldset",Do.Section="Section";var jo,Ho,$o=function(){function e(){this.errorMessages={}}return pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"configs",void 0),pe([t.Input()],e.prototype,"fields",void 0),pe([t.Input()],e.prototype,"form",void 0),pe([t.Input()],e.prototype,"errorMessages",void 0),e=pe([t.Component({selector:"s-dynamic-form",template:'<div *ngIf="configs; else templateFields">\n <ng-container *ngFor="let config of configs">\n <ng-container\n *sDynamicForm="{\n id: id,\n config: config,\n group: form,\n errorMessages: errorMessages\n }">\n </ng-container>\n </ng-container>\n</div>\n\n<ng-template #templateFields>\n <s-dynamic-field\n [id]="id"\n [fields]="fields"\n [form]="form"\n [errorMessages]="errorMessages">\n </s-dynamic-field>\n</ng-template>\n',encapsulation:t.ViewEncapsulation.None,styles:['label.required:after{content:" *";color:#c13018}']})],e)}(),Go=function(){function e(){this.sLongPressDelay=500,this.sLongPress=new t.EventEmitter,this.mouseUp=new o.Subject,this.mouseDown=new o.Subject,this.ngUnsubscribe=new o.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(i.debounceTime(this.sLongPressDelay),i.takeUntil(this.mouseUp),i.repeat(),i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){return e.sLongPress.emit(t)}))},e.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},pe([t.Input()],e.prototype,"sLongPressDelay",void 0),pe([t.Output()],e.prototype,"sLongPress",void 0),pe([t.HostListener("mouseup",["$event"]),t.HostListener("touchend",["$event"])],e.prototype,"onMouseUp",null),pe([t.HostListener("mousedown",["$event"]),t.HostListener("touchstart",["$event"])],e.prototype,"onMouseDown",null),e=pe([t.Directive({selector:"[sLongPress]"})],e)}(),qo=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},pe([t.Output()],e.prototype,"onDoubleClick",void 0),pe([t.HostListener("click",["$event"])],e.prototype,"onClick",null),e=pe([t.Directive({selector:"[sDoubleClick]"})],e)}(),Wo=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[Go,qo],exports:[Go,qo]})],e)}(),Yo=function(){function e(){this.dismiss=new t.EventEmitter,this.isLeaving=!1,this.timer=null}return e.prototype.startDismissAnimation=function(){var e=this;this.isLeaving=!0,setTimeout((function(){e.dismiss.emit()}),300)},e.prototype.dismissToast=function(){this.timer&&clearTimeout(this.timer),this.startDismissAnimation()},e.prototype.ngOnInit=function(){var e=this;!this.toast.sticky&&this.toast.duration&&(this.timer=setTimeout((function(){e.startDismissAnimation()}),this.toast.duration))},e.prototype.ngOnDestroy=function(){this.timer&&clearTimeout(this.timer)},pe([t.Input()],e.prototype,"toast",void 0),pe([t.Output()],e.prototype,"dismiss",void 0),pe([t.HostBinding("class.toast--leaving")],e.prototype,"isLeaving",void 0),e=pe([t.Component({selector:"s-toast",template:'<div\n class="toast"\n [class.toast--info]="toast.severity === \'info\'"\n [class.toast--success]="toast.severity === \'success\'"\n [class.toast--warning]="toast.severity === \'warning\'"\n [class.toast--error]="toast.severity === \'error\'"\n>\n <div class="toast-content">\n <i\n class="toast-icon fas fa-info"\n [class.fa-info]="toast.severity === \'info\'"\n [class.fa-check]="toast.severity === \'success\'"\n [class.fa-exclamation-triangle]="toast.severity === \'warning\'"\n [class.fa-times]="toast.severity === \'error\'"\n ></i>\n <div class="text-container">\n <span *ngIf="toast.title" class="toast-summary" [innerHTML]="toast.title"></span>\n <span *ngIf="toast.text" [innerHTML]="toast.text"></span>\n </div>\n </div>\n <button *ngIf="toast.closable" class="toast-close-button" (click)="dismissToast()"><i class="fas fa-times"></i></button>\n</div>\n',styles:[':host{display:block}.toast{-ms-flex-align:center;align-items:center;animation:.3s forwards fadeInDown;border-left:3px solid #428bca;border-radius:3px;box-shadow:0 1px 5px 0 rgba(0,0,0,.25);color:#212533;display:-ms-flexbox;display:flex;font-family:"Open Sans" sans-serif;font-size:14px;opacity:0;padding:10px 15px;position:relative;transform:translateY(-20px);width:400px}.toast .toast-content{-ms-flex-align:center;align-items:center;-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;gap:15px}.toast .toast-content .toast-icon{-ms-flex-align:center;align-items:center;background-color:#428bca;border-radius:50%;color:#fff;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;height:40px;-ms-flex-pack:center;justify-content:center;width:40px}.toast .toast-content .text-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.toast .toast-content .text-container .toast-summary{font-weight:700}.toast--success{background-color:#e0f0f0;border-left:3px solid #0c9348}.toast--success .toast-content .toast-icon{background-color:#0c9348}.toast--error{background-color:#fef0f0;border-left:3px solid #c13018}.toast--error .toast-content .toast-icon{background-color:#c13018}.toast--info{background-color:#f1f7f8;border-left:3px solid #428bca}.toast--info .toast-content .toast-icon{background-color:#428bca}.toast--warning{background-color:#fef4e3;border-left:3px solid #fcbf10}.toast--warning .toast-content .toast-icon{background-color:#fcbf10;color:#212533}.toast-close-button{background:0 0;border:none;color:#212533;font-size:1rem;cursor:pointer;margin-left:15px;transition:transform .2s ease-in-out}.toast-close-button:hover{transform:scale(1.1)}@keyframes fadeInDown{from{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeOutUp{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-20px)}}:host.toast--leaving{animation:.3s forwards fadeOutUp}@media (max-width:440px){.toast{width:calc(100% - 40px)}}']})],e)}(),Ko=function(){function e(e,t,n){this.appRef=e,this.injector=t,this.componentFactoryResolver=n,this.activeToasts=[],this.globalToastHostElement=null}return e.prototype.ensureGlobalToastHost=function(){this.globalToastHostElement||(this.globalToastHostElement=document.createElement("div"),document.body.appendChild(this.globalToastHostElement),this.globalToastHostElement.style.display="flex",this.globalToastHostElement.style.flexDirection="column",this.globalToastHostElement.style.position="fixed",this.globalToastHostElement.style.right="20px",this.globalToastHostElement.style.top="20px",this.globalToastHostElement.style.zIndex="99999",this.globalToastHostElement.style.gap="10px")},e.prototype.show=function(e){var t,n=this;this.ensureGlobalToastHost();var o=this.componentFactoryResolver.resolveComponentFactory(Yo).create(this.injector);this.appRef.attachView(o.hostView),e.sticky||(e.duration=null!==(t=e.duration)&&void 0!==t?t:1e4),o.instance.toast=ce({closable:!0},e);var r=o.hostView.rootNodes[0];this.globalToastHostElement.appendChild(r),r.style.display="flex",r.style.justifyContent="center",o.instance.dismiss.pipe(i.first()).subscribe((function(){var e=n.activeToasts.indexOf(o);-1!==e&&(n.appRef.detachView(o.hostView),o.destroy(),n.activeToasts.splice(e,1)),0===n.activeToasts.length&&n.globalToastHostElement&&(n.globalToastHostElement.remove(),n.globalToastHostElement=null)})),this.activeToasts.push(o)},e.ctorParameters=function(){return[{type:t.ApplicationRef},{type:t.Injector},{type:t.ComponentFactoryResolver}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](t.ApplicationRef),t["ɵɵinject"](t.INJECTOR),t["ɵɵinject"](t.ComponentFactoryResolver))},token:e,providedIn:"root"}),e=pe([t.Injectable({providedIn:"root"})],e)}(),Zo=function(){function e(e,t){this.http=e,this._toastService=t}return e.prototype.askIA=function(e,t){var n=this,r=t.prompt?this._replacePlaceholder(e,t):this._createPrompt(e,t);return this.http.post("platform/iassist/api/latest/completions",{prompt:r,provider:"OPEN_AI",parameters:{model:"gpt-3.5-turbo",max_tokens:700,temperature:1}}).pipe(i.catchError((function(e){return n._toastService.show({severity:"error",title:e.status?String(e.status):"Error",text:e.error&&e.error.message||e.statusText||e.message||"Error"}),o.throwError(e)})))},e.prototype._replacePlaceholder=function(e,t){var n=ce(ce({},t),{context:e});delete n.prompt;var o=t.prompt;for(var i in ce(ce({},n),{context:e})){var r=new RegExp("{{\\s*"+i+"\\s*}}","g");o=o.replace(r,n[i])}return console.log("prompt",o),o},e.prototype._createPrompt=function(e,t){return"Crie um texto genérico para preencher o campo de textarea.\n "+(t.label?"O campo tem o label "+t.label+".":"")+"\n "+(t.id?"O campo tem o id "+t.id+".":"")+"\n "+(t.placeholder?"Considere as instruções/sugestões do placeholder: "+t.placeholder+".":"")+"\n Baseie-se no contexto informado pelo usuário: '"+e+'\'.\n O texto deve ser formal e conter informações pertinentes a um campo como este, como se um usuário real tivesse preenchido com as informações necessárias. \n O texto deve ser neutro com relação a generos, raças, religiões, etc.\n O texto deve ser impessoal e não deve conter informações pessoais do usuário.\n Não direcione o texto a ninguém, não use expressões como: caro, atenciosamente. gostaria, agradeço. O texto deve ser genérico.\n \n Exemplos de texto:\n Um campo de descrição de usuário: "Usuário com 20 anos, estudante de engenharia, gosta de jogar futebol e assistir filmes."\n Outro exemplo de descrição de usuário: "Usuário administrador, com acesso total ao sistema, responsável por gerenciar os usuários e os produtos."\n Um campo de descrição de um produto: "O produto é um celular, com tela de 6 polegadas, 128GB de armazenamento, 4GB de memória RAM, câmera de 12MP e bateria de 4000mAh."\n Outro exemplo de descrição de produto: "O produto é uma geladeira, com capacidade de 500 litros, 2 portas, cor branca, com freezer e gaveta de legumes."\n Outro exemplo de descrição de produto: "O produto é uma camiseta, tamanho M, cor azul, 100% algodão, com estampa de um gato."\n \n Em caso de contexto incompleto crie um texto genérico, como se fosse um exemplo de preenchimento do campo.\n O texto é para um campo de textarea, então escreva um texto sucinto.\n Exiba apenas o texto do output'},e.ctorParameters=function(){return[{type:c.HttpClient},{type:Ko}]},e=pe([t.Injectable()],e)}(),Xo=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,pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"iconClass",void 0),pe([t.Input()],e.prototype,"title",void 0),pe([t.Input()],e.prototype,"description",void 0),pe([t.Input()],e.prototype,"showPrimaryAction",void 0),pe([t.Input()],e.prototype,"showSecondaryAction",void 0),pe([t.Input()],e.prototype,"primaryActionLabel",void 0),pe([t.Input()],e.prototype,"secondaryActionLabel",void 0),pe([t.Input()],e.prototype,"primaryModel",void 0),pe([t.Output()],e.prototype,"primaryAction",void 0),pe([t.Output()],e.prototype,"secondaryAction",void 0),e=n=pe([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" (onClick)="primaryAction.next()"></s-button>\n <s-button [id]="id + \'-secondary-action\'" *ngIf="showSecondaryAction && secondaryActionLabel" id="secondaryAction" type="button"\n [label]="secondaryActionLabel" priority="link" (onClick)="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)}(),Jo=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:u.CookieService}]},pe([t.Input()],e.prototype,"iconClass",void 0),pe([t.Input()],e.prototype,"title",void 0),pe([t.Input()],e.prototype,"description",void 0),pe([t.Input()],e.prototype,"primaryActionLabel",void 0),e=pe([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)}(),Qo=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Ft],providers:[u.CookieService],declarations:[Xo,Jo],exports:[Xo,Jo]})],e)}(),ei=function(){function e(){this.BASE_URL_FIELD_CUSTOMIZATION="platform/field_customization",this.TOKEN=new AbortController}return e.prototype.getMetadataCustomField=function(e){return ue(this,void 0,void 0,(function(){return me(this,(function(t){return[2,on.POST(this.BASE_URL_FIELD_CUSTOMIZATION+"/queries/getFileMetadata",e,{signal:this.TOKEN.signal})]}))}))},e=pe([t.Injectable()],e)}();(jo=e.ValidateErrors||(e.ValidateErrors={})).MAX_FILE_SIZE="MAX_FILE_SIZE",jo.MAX_FILE_LIMIT="MAX_FILE_LIMIT",jo.MAX_COMBINED_FILE_SIZE="MAX_COMBINED_FILE_SIZE",jo.UNSUPPORTED_EXTENSION="UNSUPPORTED_EXTENSION",(Ho=e.FileUploadPermissions||(e.FileUploadPermissions={})).Add="add",Ho.Read="read",Ho.Remove="remove";var ti,ni=[e.FileUploadPermissions.Add,e.FileUploadPermissions.Read,e.FileUploadPermissions.Remove],oi=d,ii=function(){function n(n,r,a){this.sanitizer=n,this.fileUploadService=r,this.translate=a,this.ADD_PERMISSION=e.FileUploadPermissions.Add,this.READ_PERMISSION=e.FileUploadPermissions.Read,this.REMOVE_PERMISSION=e.FileUploadPermissions.Remove,this.id="s-file-upload-"+i.nextId++,this.supportedExtensions=[],this.disabled=!1,this.showFileUploadDate=!1,this.permissions=ni,this.uploadHandler=new t.EventEmitter,this.removeFile=new t.EventEmitter,this.cancelUpload=new t.EventEmitter,this.downloadFile=new t.EventEmitter,this.validateErrors=new t.EventEmitter,this._files=[],this.ngUsubscribe=new o.Subject,this.inputValue=""}var i;return i=n,Object.defineProperty(n.prototype,"files",{get:function(){return this._files},set:function(e){var t,n=this;this.showFileUploadDate&&(null===(t=e[0])||void 0===t?void 0:t.objectId)&&this.getUploadDate(e),this._files=e.map((function(e){return n.isImage(e)&&(e.objectURL=n.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(e))),e}))},enumerable:!0,configurable:!0}),n.prototype.ngOnInit=function(){this.supportedExtensions=this.supportedExtensions.map((function(e){return e.replace(".","").toLowerCase()}))},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,o,i=[];if(this.multiple||(this.files=[]),this.isFileLimitExceeded(t))return this.validateErrors.emit({files:t,validation:e.ValidateErrors.MAX_FILE_LIMIT}),void this.clearFileInput();if(this.isFileCombinedSizeExceeded(t))return this.validateErrors.emit({files:t,validation:e.ValidateErrors.MAX_COMBINED_FILE_SIZE}),void this.clearFileInput();try{for(var r=he(t),a=r.next();!a.done;a=r.next()){var s=a.value;this.isUnsupportedFileExtension(s)?this.validateErrors.emit({files:[s],validation:e.ValidateErrors.UNSUPPORTED_EXTENSION}):this.isFileSizeExceeded(s)?this.validateErrors.emit({files:[s],validation:e.ValidateErrors.MAX_FILE_SIZE}):i.push(s)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}i.length&&(this.files=this.files.concat(i),this.uploadHandler.emit({files:i})),this.clearFileInput()},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),this.clearFileInput()},n.prototype.onDowloadFile=function(e){this.downloadFile.emit({index:e,anchor:this.anchor})},n.prototype.update=function(){var e=window.innerWidth;this.isSmallDevice=e<=Wn.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.isFileCombinedSizeExceeded=function(e){return!!this.maxCombinedFileSize&&ge(e,this.files).reduce((function(e,t){return e+t.size}),0)>this.maxCombinedFileSize},n.prototype.isFileSizeExceeded=function(e){return!!this.maxFileSize&&e.size>this.maxFileSize},n.prototype.isUnsupportedFileExtension=function(e){var t;if(null===(t=this.supportedExtensions)||void 0===t?void 0:t.length){var n=e.name.split(".").pop().toLowerCase();return!this.supportedExtensions.includes(n)}return!1},n.prototype.clearFileInput=function(){this.inputUpload.nativeElement.value=null},n.prototype.getUploadDate=function(e){var t=this;e&&this.fileUploadService.getMetadataCustomField({objectId:e[0].objectId}).then((function(e){return t.setModifiedDate(e)}))},n.prototype.setModifiedDate=function(e){var t=oi(e.modified).format("HH"),n=oi(e.modified).format("mm"),o=oi(e.modified).format("DD"),i=oi(e.modified).format("MM"),r=oi(e.modified).format("YYYY");this.modifiedDate=this.translate.instant("platform.angular_components.date_modified_custom_blob",{hour:t,minutes:n,day:o,month:i,fullYear:r})},n.nextId=0,n.ctorParameters=function(){return[{type:K.DomSanitizer},{type:ei},{type:b.TranslateService}]},pe([t.ViewChild("inputUpload",{static:!1})],n.prototype,"inputUpload",void 0),pe([t.ViewChild("anchor",{static:!1})],n.prototype,"anchor",void 0),pe([t.Input()],n.prototype,"id",void 0),pe([t.Input()],n.prototype,"chooseLabel",void 0),pe([t.Input()],n.prototype,"removeLabel",void 0),pe([t.Input()],n.prototype,"cancelLabel",void 0),pe([t.Input()],n.prototype,"successTooltip",void 0),pe([t.Input()],n.prototype,"multiple",void 0),pe([t.Input()],n.prototype,"accept",void 0),pe([t.Input()],n.prototype,"supportedExtensions",void 0),pe([t.Input()],n.prototype,"ariaLabelFileName",void 0),pe([t.Input()],n.prototype,"maxFileSize",void 0),pe([t.Input()],n.prototype,"maxCombinedFileSize",void 0),pe([t.Input()],n.prototype,"fileLimit",void 0),pe([t.Input()],n.prototype,"ariaLabelProgress",void 0),pe([t.Input()],n.prototype,"ariaLabelSuccess",void 0),pe([t.Input()],n.prototype,"ariaLabelError",void 0),pe([t.Input()],n.prototype,"ariaLabelRemove",void 0),pe([t.Input()],n.prototype,"formGroup",void 0),pe([t.Input()],n.prototype,"disabled",void 0),pe([t.Input()],n.prototype,"showFileUploadDate",void 0),pe([t.Input()],n.prototype,"permissions",void 0),pe([t.Input()],n.prototype,"files",null),pe([t.Output()],n.prototype,"uploadHandler",void 0),pe([t.Output()],n.prototype,"removeFile",void 0),pe([t.Output()],n.prototype,"cancelUpload",void 0),pe([t.Output()],n.prototype,"downloadFile",void 0),pe([t.Output()],n.prototype,"validateErrors",void 0),pe([t.HostListener("window:resize")],n.prototype,"onResize",null),n=i=pe([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 *ngIf="permissions.includes(ADD_PERMISSION)"\n [id]="id + \'upload-button\'"\n [label]="chooseLabel || \'platform.angular_components.attach_files\' | translate"\n (onClick)="inputUpload.click()"\n priority="primary"\n [disabled]="disabled || !!formGroup?.disabled || fileLimit === files?.length"\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="permissions.includes(READ_PERMISSION) && file.savedFile || file.progress === 100\n ? descriptionUrl\n : description; context: {\n $implicit: file,\n index: i\n }">\n </ng-container>\n <span *ngIf="modifiedDate" class="s-fileupload-list-file-name-date">{{ modifiedDate }}</span>\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 || \'platform.angular_components.loading_file\' | translate">\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 || \'platform.angular_components.loading_file\' | translate">\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 || \'platform.angular_components.file_attached_successfully\' | translate"\n [pTooltip]="successTooltip || \'platform.angular_components.file_attached_successfully\' | translate"\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 || \'platform.angular_components.cancel\' | translate }}\n </a>\n <a\n *ngIf="permissions.includes(REMOVE_PERMISSION) && !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 || \'platform.angular_components.remove\' | translate">\n {{ removeLabel || \'platform.angular_components.remove\' | translate }}\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{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-item-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 .s-fileupload-list-file-name-date{font-size:.75rem;color:#999}.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)}(),ri=function(){function e(){}return e=pe([t.NgModule({declarations:[ii],imports:[r.CommonModule,Ft,Y.TooltipModule,W.ProgressBarModule,b.TranslateModule],providers:[ei],exports:[ii]})],e)}(),ai=function(){function e(){}return e=pe([t.Component({template:'<svg style="width: 100%; height: 100%;" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M5.81451 18.1054L5.99593 17.6059L7.52166 13.4099L7.60877 13.1726L7.61277 13.1614L7.94285 12.2543L8.01159 12.0648L8.05394 11.949L5.2998 8.52426L5.02726 8.18379C5.00569 8.15821 4.9881 8.13104 4.97292 8.10226C4.90099 7.9632 4.85063 7.81294 4.82186 7.6531C4.73075 7.1344 4.90418 6.60771 5.28382 6.24326C5.29421 6.23447 5.3038 6.22567 5.31419 6.21688L5.47164 6.0914L9.3439 3.00238L9.5469 2.84094L9.57088 2.82096L10.4101 2.15041L11.8007 1.04188C11.2181 0.925188 10.6163 0.863647 10.0001 0.863647C4.95374 0.863647 0.863281 4.9541 0.863281 9.99963C0.863281 13.5346 2.87254 16.5989 5.80971 18.1182" fill="#0FA389"/>\n <path d="M14.099 1.83472L13.9495 2.24632L11.997 7.61074L11.9427 7.7594L11.9003 7.87369L14.7448 11.4103C14.7463 11.4127 14.7479 11.4143 14.7495 11.4167L14.9414 11.654C14.9541 11.67 14.9661 11.6868 14.9765 11.7044C15.0764 11.8698 15.1444 12.0505 15.1779 12.2431C15.273 12.7826 15.0812 13.3284 14.676 13.6897C14.656 13.7129 14.6345 13.7344 14.6105 13.7536L11.8563 15.9507L11.6789 16.0922L11.6022 16.1537L10.7406 16.8402V16.841L10.3937 17.1176L9.85747 17.5452L9.39951 17.9112L8.11035 18.9398C8.72016 19.0677 9.35155 19.1364 9.99973 19.1364C15.0461 19.1364 19.1365 15.046 19.1365 9.99964C19.1365 6.42789 17.0857 3.33727 14.099 1.83472Z" fill="#0FA389"/>\n <path d="M14.7287 12.3222C14.7047 12.1832 14.6551 12.0545 14.5864 11.941L14.3954 11.7036C14.3954 11.7036 14.3946 11.7028 14.3938 11.7028L11.3839 7.96005L10.5031 6.86511L10.4256 6.7676L9.03255 5.03487L8.83674 4.79191C8.79278 4.71678 8.75681 4.63446 8.73204 4.54814C8.72085 4.51058 8.71286 4.47222 8.70566 4.43465C8.68568 4.32196 8.68408 4.21007 8.69847 4.10217L8.62334 4.16291L8.44511 4.30438L5.75731 6.44871L5.60066 6.57339C5.34011 6.82275 5.20584 7.19279 5.27218 7.57482C5.29296 7.68751 5.32892 7.79541 5.37927 7.89292C5.37927 7.89292 5.37927 7.89292 5.38007 7.89371L5.6566 8.23818L8.57139 11.8627L8.63293 11.9394L9.53047 13.0559L9.59041 13.1303L9.98363 13.6186L11.0178 14.9046C11.0186 14.9054 11.0194 14.9069 11.0202 14.9077L11.1361 15.0516V15.0524C11.2184 15.1755 11.2768 15.317 11.3048 15.4728C11.3239 15.5807 11.3263 15.6878 11.3143 15.7925L11.3175 15.7965L11.3943 15.735L11.5717 15.5935L14.3266 13.3964L14.3218 13.3908C14.6335 13.1438 14.8022 12.7394 14.7287 12.3222Z" fill="#F3F3F5"/>\n <path d="M10.6822 15.0082C10.6814 15.0074 10.6806 15.0058 10.6806 15.005L10.5672 14.8643L10.3809 14.6325L10.3282 14.567L10.2211 14.4335L9.40028 13.4129L9.32835 13.3242L8.77289 12.6345L8.68098 12.5194L8.44121 12.2205L8.37168 12.4099L8.04159 13.317L8.0376 13.329L7.95128 13.5664L6.42475 17.7623L6.24333 18.2618L5.90605 19.1881L5.73262 19.6645C5.73182 19.6661 5.73102 19.6677 5.73102 19.6685C5.72863 19.6749 5.72703 19.6821 5.72543 19.6885C5.71584 19.7228 5.71424 19.758 5.72063 19.7948C5.74461 19.929 5.87329 20.0193 6.00836 19.9962C6.04112 19.9898 6.07229 19.9778 6.09867 19.9602C6.09867 19.9602 6.09947 19.9602 6.10027 19.9594L6.14103 19.9266L7.39422 18.9268L9.11496 17.5537L9.57292 17.1877L10.1092 16.7601L10.4561 16.4827L10.4537 16.4811C10.7582 16.2382 10.9236 15.8402 10.8509 15.4294C10.8237 15.2735 10.7654 15.1313 10.6822 15.0082Z" fill="#0C847B"/>\n <path d="M9.17644 4.56325C9.2124 4.68713 9.26915 4.80062 9.34268 4.90053C9.34348 4.90053 9.34428 4.90213 9.34428 4.90213L9.40342 4.97645C9.40502 4.97805 9.40582 4.97885 9.40662 4.98045L9.56806 5.17946L9.64878 5.28096L9.67915 5.31932L9.8414 5.51993L10.5559 6.40947L10.7054 6.59569L11.2169 7.23188L11.5142 7.60192L11.5693 7.45247L13.5202 2.08964L14.1596 0.332135C14.1596 0.330536 14.1604 0.328139 14.1612 0.32654C14.174 0.288177 14.1772 0.246617 14.17 0.205058C14.1468 0.0699879 14.0182 -0.0195258 13.8823 0.00365186C13.8407 0.0116442 13.8024 0.028428 13.7712 0.0540033L12.578 1.00589L12.498 1.06982L10.6958 2.50844L9.85658 3.17819L9.8326 3.19737L9.6296 3.35961L9.45297 3.50028C9.2116 3.73925 9.08692 4.08931 9.15006 4.44976C9.15726 4.48813 9.16525 4.52649 9.17644 4.56325Z" fill="#0C847B"/>\n</svg>'})],e)}(),si=function(){function e(){}return e=pe([t.Component({template:'<svg width="100%" height="100%" viewBox="0 0 348 613" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g filter="url(#filter0_d_2841_2040)">\n <path d="M174.719 518.932L258.161 439.782C264.546 433.762 269.614 426.603 273.072 418.719C276.53 410.834 278.31 402.378 278.31 393.838C278.31 385.298 276.53 376.843 273.072 368.958C269.614 361.073 264.546 353.915 258.161 347.895L174.719 269.199C168.45 263.304 163.474 256.289 160.077 248.56C156.681 240.83 154.933 232.539 154.933 224.165C154.933 215.792 156.681 207.501 160.077 199.771C163.474 192.042 168.45 185.027 174.719 179.132L303.718 301.496C329.517 326.089 344 359.371 344 394.066C344 428.76 329.517 462.043 303.718 486.635L174.719 609C168.45 603.105 163.474 596.09 160.077 588.36C156.681 580.631 154.933 572.34 154.933 563.966C154.933 555.592 156.681 547.301 160.077 539.572C163.474 531.842 168.45 524.828 174.719 518.932ZM173.76 94.0677L90.3189 173.218C83.9334 179.238 78.8659 186.397 75.408 194.281C71.95 202.166 70.1698 210.622 70.1698 219.162C70.1698 227.702 71.95 236.157 75.408 244.042C78.8659 251.927 83.9334 259.085 90.3189 265.105L173.76 344.256C180.03 350.151 185.006 357.166 188.402 364.895C191.798 372.625 193.547 380.916 193.547 389.289C193.547 397.663 191.798 405.954 188.402 413.684C185.006 421.413 180.03 428.428 173.76 434.323L44.2823 311.504C18.4832 286.911 4 253.629 4 218.934C4 184.24 18.4832 150.957 44.2823 126.365L173.76 4C186.213 16.0129 193.192 32.1861 193.192 49.0338C193.192 65.8815 186.213 82.0547 173.76 94.0677Z" fill="white" />\n </g>\n <defs>\n <filter id="filter0_d_2841_2040" x="0" y="0" width="348" height="613" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" >\n <feFlood flood-opacity="0" result="BackgroundImageFix" />\n <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" />\n <feOffset />\n <feGaussianBlur stdDeviation="2" />\n <feComposite in2="hardAlpha" operator="out" />\n <feColorMatrix type="matrix" values="0 0 0 0 0.418936 0 0 0 0 1 0 0 0 0 0.930272 0 0 0 0.35 0" />\n <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_2841_2040" />\n <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_2841_2040" result="shape" />\n </filter>\n </defs>\n</svg>\n'})],e)}();!function(e){e.IAssist="iassist",e.Senior="senior"}(ti||(ti={}));var li,ci=function(){function e(e,t,n){this.viewContainerRef=e,this.componentFactoryResolver=t,this.cdr=n,this._iconClass=this._getIconClass(ti.Senior)}return Object.defineProperty(e.prototype,"sSVGFactory",{set:function(e){this._iconClass=this._getIconClass(e)},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this._createComponent()},e.prototype._createComponent=function(){var e=this.componentFactoryResolver.resolveComponentFactory(this._iconClass);this.viewContainerRef.clear(),this.viewContainerRef.createComponent(e),this.cdr.detectChanges()},e.prototype._getIconClass=function(e){switch(e){case ti.IAssist:return ai;case ti.Senior:default:return si}},e.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.ComponentFactoryResolver},{type:t.ChangeDetectorRef}]},pe([t.Input("sSVGFactory")],e.prototype,"sSVGFactory",null),e=pe([t.Directive({selector:"[sSVGFactory]"})],e)}(),pi=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[ci,ai,si],exports:[ci]})],e)}(),di=function(){function e(){}return e=pe([t.Component({selector:"s-dots-indicator",template:'<div class="dots-indicator">\n <div class="bounce bounce--1"></div>\n <div class="bounce bounce--2"></div>\n <div class="bounce bounce--3"></div>\n</div>\n',styles:[".dots-indicator .bounce{animation:1.2s ease-out infinite bounce;background-color:#333;border-radius:100%;display:inline-block;height:10px;width:10px}.dots-indicator .bounce+.bounce{margin-left:15px}.dots-indicator .bounce.bounce--1{animation-delay:0s}.dots-indicator .bounce.bounce--2{animation-delay:.1s}.dots-indicator .bounce.bounce--3{animation-delay:.2s}@keyframes bounce{100%,80%{transform:scale(1)}90%{transform:scale(1.8)}}"]})],e)}(),ui=function(){function e(){}return e=pe([t.Component({selector:"s-logo-indicator",template:'<div class="logo-indicator">\n <span *sSVGFactory="\'senior\'"></span>\n</div>\n',styles:[".logo-indicator{animation:1s infinite pulsar,1s infinite scale;background-color:#00c89a;border-radius:50%;box-shadow:0 0 0 #00c89ab3;height:64px;padding:calc(64px * .16);position:relative;width:64px}@keyframes pulsar{0%{box-shadow:0 0 0 0 #00c89ab3}70%{box-shadow:0 0 0 40px #00c89a00}100%{box-shadow:0 0 0 0 #00c89a00}}@keyframes scale{0%,100%{transform:scale(1)}50%{transform:scale(1.3)}}"]})],e)}();!function(e){e.Dots="dots",e.Logo="logo"}(li||(li={}));var mi,hi,fi=function(){function e(){this.indicator=li.Dots,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,pe([t.Input()],e.prototype,"indicator",void 0),pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"blockWindow",void 0),pe([t.Input()],e.prototype,"loading",null),e=n=pe([t.Component({selector:"s-loading-state",template:'<div\n [id]="id"\n class="s-loading-state-container"\n [ngClass]="{\n \'loading\': loading,\n \'blocking\': blocking,\n \'fullscreen\': blockWindow\n }">\n <div\n [id]="id + \'-loader\'"\n class="loader">\n <div\n [id]="id + \'-spinner\'"\n class="spinner">\n <ng-container [ngSwitch]="indicator">\n <s-logo-indicator *ngSwitchCase="\'logo\'"></s-logo-indicator>\n <s-dots-indicator *ngSwitchCase="\'dots\'"></s-dots-indicator>\n </ng-container>\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{opacity:0;position:absolute;transition:opacity .2s ease-out,display .2s ease-out;visibility:hidden;inset:1px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.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:-ms-flexbox;display:flex;position:absolute;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.blocking.loading>.loader{opacity:1}.s-loading-state-container.fullscreen>.loader{left:0;position:fixed;top:0;z-index:1005}::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)}(),gi=function(){function e(e,t,n,o){this.target=e,this.template=t,this.componentFactoryResolver=n,this.cdr=o,this._loading=!1,this.indicator=li.Dots}return Object.defineProperty(e.prototype,"sLoadingState",{set:function(e){"boolean"==typeof e?(this._loading=e,this.indicator=li.Dots):"object"==typeof e&&(this._loading=e.loading,this.indicator=e.indicator||li.Dots),this.loaderComponent&&(this.loaderComponent.instance.loading=this._loading,this.loaderComponent.instance.indicator=this.indicator)},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.createComponent()},e.prototype.createComponent=function(){var e=this.componentFactoryResolver.resolveComponentFactory(fi);this.loaderComponent=this.target.createComponent(e),this.loaderComponent.instance.contents=this.template,this.loaderComponent.instance.loading=this._loading,this.loaderComponent.instance.indicator=this.indicator,this.cdr.detectChanges()},e.prototype.ngOnDestroy=function(){this.loaderComponent&&this.loaderComponent.destroy()},e.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.TemplateRef},{type:t.ComponentFactoryResolver},{type:t.ChangeDetectorRef}]},pe([t.Input("sLoadingState")],e.prototype,"sLoadingState",null),e=pe([t.Directive({selector:"[sLoadingState]"})],e)}(),vi=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,pi],declarations:[fi,gi,di,ui],exports:[fi,gi],entryComponents:[fi]})],e)}(),bi=function(){function e(e){this.localeService=e,this.precision=2}var n;return n=e,e.prototype.ngOnInit=function(){var e=this;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+"}))?$",this.localeService.getLocale().pipe(i.first()).subscribe((function(){var t,n;e.decimalSeparator=null!==(t=e.decimalSeparator)&&void 0!==t?t:e.localeService.getDecimalSeparator(),e.thousandsSeparator=null!==(n=e.thousandsSeparator)&&void 0!==n?n:e.localeService.getGroupingSeparator(),e.numberRegex="^((\\+?)|(-?))([0-9]{1,3})+((\\"+e.thousandsSeparator+"[0-9]{3,3})|((\\"+e.thousandsSeparator+"[0-9]{3,3})+(\\"+e.thousandsSeparator+"[0-9]{3,3}))|((\\"+e.thousandsSeparator+"[0-9]{3,3})+(\\"+e.decimalSeparator+"[0-9]{1,2}))|(\\"+e.decimalSeparator+"[0-9]{1,"+e.precision+"}))?$"}))},e.prototype.validate=function(e){return e.value&&!String(e.value).match(new RegExp(this.numberRegex,"g"))?{invalidNumber:!0}:null},e.ctorParameters=function(){return[{type:Xe}]},pe([t.Input()],e.prototype,"decimalSeparator",void 0),pe([t.Input()],e.prototype,"thousandsSeparator",void 0),pe([t.Input()],e.prototype,"precision",void 0),e=n=pe([t.Directive({selector:"input[sLocalizedNumberInput]",providers:[{provide:a.NG_VALIDATORS,useExisting:t.forwardRef((function(){return n})),multi:!0}]})],e)}(),yi=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[bi],exports:[bi]})],e)}(),xi=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,o=[],i=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(i);if(!new RegExp(p).test(d))throw new Error("Value doesn't match mask format");i<r.length&&(o.push(e.charAt(i)),i++)}else o.push(c),s&&l>n&&a.push(l);else n=l}if(o[o.length-1]!==e.charAt(e.length-1)&&a.length){var u=o.join(""),m=void 0,h=void 0,f=void 0,g=void 0;for(l=0;l<a.length;l++){var v=a[l];m=u.substr(0,v-1),h=u.substr(v-1,1),f=u.substr(v,1),g=u.substr(v+1),u=""+m+f+h+g}return""+u+e.substr(e.length-a.length)}return o.join("")},e=pe([t.Pipe({name:"sMaskFormatter"})],e)}(),_i=function(){function e(){}return e=pe([t.NgModule({exports:[xi],declarations:[xi]})],e)}();(mi=e.PasswordStrengths||(e.PasswordStrengths={})).VeryWeak="Very_weak",mi.Weak="weak",mi.Medium="medium",mi.Strong="strong",(hi=e.PasswordStrengthPositions||(e.PasswordStrengthPositions={})).Top="top",hi.Right="right",hi.Left="left";var wi,Ci,ki=function(){function n(t){this.translate=t,this.position=e.PasswordStrengthPositions.Right,this.left=0,this.top=0,this.visible=!1}return n.prototype.ngOnInit=function(){this.title=this.weakTitle},n.prototype.setPasswordStrengthPosition=function(){var t=document.querySelector(".password-strength");switch(this.position){case e.PasswordStrengthPositions.Top:t.classList.add("password-strength--top");break;case e.PasswordStrengthPositions.Right:t.classList.add("password-strength--right");break;case e.PasswordStrengthPositions.Left:t.classList.add("password-strength--left")}},n.prototype.updateIndicators=function(t){var n,o,i,r,a,s=document.querySelector("#strength-indicator-1"),l=document.querySelector("#strength-indicator-2"),c=document.querySelector("#strength-indicator-3"),p=[],d=[s,l,c];switch(t){case e.PasswordStrengths.VeryWeak:this.title=null!==(n=this.weakTitle)&&void 0!==n?n:this.translate.instant("platform.angular_components.weak");break;case e.PasswordStrengths.Weak:this.title=null!==(o=this.weakTitle)&&void 0!==o?o:this.translate.instant("platform.angular_components.weak"),a="strength-indicator--weak",p.push(s);break;case e.PasswordStrengths.Medium:this.title=null!==(i=this.mediumTitle)&&void 0!==i?i:this.translate.instant("platform.angular_components.medium"),a="strength-indicator--medium",p.push(s),p.push(l);break;case e.PasswordStrengths.Strong:this.title=null!==(r=this.strongTitle)&&void 0!==r?r:this.translate.instant("platform.angular_components.strong"),a="strength-indicator--strong",p.push(s),p.push(l),p.push(c)}d.forEach((function(e){e.classList.remove("strength-indicator--weak","strength-indicator--medium","strength-indicator--strong")})),p.forEach((function(e){e.classList.add(a)}))},n.ctorParameters=function(){return[{type:b.TranslateService}]},pe([t.Input()],n.prototype,"weakTitle",void 0),pe([t.Input()],n.prototype,"mediumTitle",void 0),pe([t.Input()],n.prototype,"strongTitle",void 0),pe([t.Input()],n.prototype,"description",void 0),n=pe([t.Component({template:'<div\n class="password-strength"\n [ngStyle]="{\n \'left\': left + \'px\',\n \'top\': top + \'px\'\n }"\n [ngClass]="[\'password-strength--\' + position]">\n <span class="title">{{ title }}</span>\n <div class="strength-indicators">\n <span class="strength-indicator" id="strength-indicator-1"></span>\n <span class="strength-indicator" id="strength-indicator-2"></span>\n <span class="strength-indicator" id="strength-indicator-3"></span>\n </div>\n <span class="content">{{ description }}</span>\n</div>',styles:['.password-strength{position:fixed;transform:translateX(-50%);background-color:#fff;border-radius:2px;box-shadow:0 0 5px 1px #ccc;padding:10px;width:232px;z-index:99999}.password-strength::after{content:"";position:absolute}.password-strength .title{font-family:"Open Sans",sans-serif;font-size:14px;font-weight:700;line-height:150%}.password-strength .strength-indicators{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:10px 0}.password-strength .strength-indicators .strength-indicator{background-color:#ccc;border-radius:2px;display:inline-block;height:3px;width:64px}.password-strength .strength-indicators .strength-indicator--weak{background-color:#c13018}.password-strength .strength-indicators .strength-indicator--medium{background-color:#fcbf10}.password-strength .strength-indicators .strength-indicator--strong{background-color:#0c9348}.password-strength .content{font-family:"Open Sans",sans-serif;font-size:12px;font-weight:400;line-height:150%}.password-strength--top{transform:translate(-50%,-100%)}.password-strength--top::after{top:100%;right:calc(50% - 4px);border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #fff}.password-strength--right{transform:translateY(-50%)}.password-strength--right::after{bottom:calc(50% - 8px);left:-8px;border-top:8px solid transparent;border-right:8px solid #fff;border-bottom:8px solid transparent}.password-strength--left{transform:translate(-100%,-50%)}.password-strength--left::after{bottom:calc(50% - 8px);right:-8px;border-top:8px solid transparent;border-left:8px solid #fff;border-bottom:8px solid transparent}']})],n)}(),Ii=function(){function n(t,n,o,i){this.elementRef=t,this.appRef=n,this.componentFactoryResolver=o,this.injector=i,this.enabled=!0,this.position=e.PasswordStrengthPositions.Right,this.componentRef=null}return n.prototype.ngOnInit=function(){this.validateProperties()},n.prototype.onFocus=function(){var t,n,o,i=null!==(t=this.elementRef.nativeElement.value)&&void 0!==t?t:"";i?(this.createPasswordStrength(),null===(n=this.componentRef)||void 0===n||n.instance.updateIndicators(this.validation(i))):null===(o=this.componentRef)||void 0===o||o.instance.updateIndicators(e.PasswordStrengths.VeryWeak)},n.prototype.onBlur=function(){this.destroyPasswordStrength()},n.prototype.createPasswordStrength=function(){if(this.enabled&&null===this.componentRef){var e=this.componentFactoryResolver.resolveComponentFactory(ki);this.componentRef=e.create(this.injector),this.appRef.attachView(this.componentRef.hostView);var t=this.componentRef.hostView.rootNodes[0];document.body.appendChild(t),this.setPasswordStrengthComponentProperties(),this.showPasswordStrength()}},n.prototype.showPasswordStrength=function(){null!==this.componentRef&&(this.componentRef.instance.visible=!0)},n.prototype.setPasswordStrengthComponentProperties=function(){if(null!=this.componentRef){this.componentRef.instance.position=this.position,this.componentRef.instance.weakTitle=this.weakTitle,this.componentRef.instance.mediumTitle=this.mediumTitle,this.componentRef.instance.strongTitle=this.strongTitle,this.componentRef.instance.description=this.description;for(var t=this.elementRef.nativeElement.getBoundingClientRect(),n=t.top,o=t.right,i=t.bottom,r=t.left,a=i-n,s=o-r,l=!1,c=[];!l;){if(c.includes(e.PasswordStrengthPositions.Top)&&c.includes(e.PasswordStrengthPositions.Right)&&c.includes(e.PasswordStrengthPositions.Left))throw this.destroyPasswordStrength(),new Error("No space to show password strength");switch(this.position){case e.PasswordStrengthPositions.Top:var p=n,d=document.body.clientWidth-o,u=r;if(p<=a+150||d<50||u<50){this.position=e.PasswordStrengthPositions.Right,c.push(e.PasswordStrengthPositions.Top);break}this.componentRef.instance.top=Math.round(n-20),this.componentRef.instance.left=Math.round(s/2+r),l=!0;break;case e.PasswordStrengthPositions.Right:if((d=document.body.clientWidth-o)<=s+150){this.position=e.PasswordStrengthPositions.Left,c.push(e.PasswordStrengthPositions.Right);break}this.componentRef.instance.top=Math.round(n+a/2),this.componentRef.instance.left=Math.round(o+20),l=!0;break;case e.PasswordStrengthPositions.Left:if((u=r)<=s+150){this.position=e.PasswordStrengthPositions.Top,c.push(e.PasswordStrengthPositions.Left);break}this.componentRef.instance.top=Math.round(n+a/2),this.componentRef.instance.left=Math.round(r-20),l=!0}this.componentRef.instance.position=this.position}}},n.prototype.validateProperties=function(){this.validation=this.validation||this.defaultValidator},n.prototype.destroyPasswordStrength=function(){null!==this.componentRef&&(this.appRef.detachView(this.componentRef.hostView),this.componentRef.destroy(),this.componentRef=null)},n.prototype.defaultValidator=function(t){var n=0,o=[new RegExp("(?=.*\\d)"),new RegExp("(?=.*[a-z])"),new RegExp("(?=.*[A-Z])"),new RegExp("(?=.*[!@#$%&*.\\-=+^~])")];return t.length>=6&&n++,o.forEach((function(e){e.test(t)&&n++})),n<1?e.PasswordStrengths.VeryWeak:n<4?e.PasswordStrengths.Weak:n<5?e.PasswordStrengths.Medium:e.PasswordStrengths.Strong},n.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ApplicationRef},{type:t.ComponentFactoryResolver},{type:t.Injector}]},pe([t.Input("sPasswordStrength")],n.prototype,"enabled",void 0),pe([t.Input("psValidation")],n.prototype,"validation",void 0),pe([t.Input("psPosition")],n.prototype,"position",void 0),pe([t.Input("psWeakTitle")],n.prototype,"weakTitle",void 0),pe([t.Input("psMediumTitle")],n.prototype,"mediumTitle",void 0),pe([t.Input("psStrongTitle")],n.prototype,"strongTitle",void 0),pe([t.Input("psDescription")],n.prototype,"description",void 0),pe([t.HostListener("keyup"),t.HostListener("focus")],n.prototype,"onFocus",null),pe([t.HostListener("blur")],n.prototype,"onBlur",null),n=pe([t.Directive({selector:"[sPasswordStrength]"})],n)}(),Si=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[ki,Ii],exports:[Ii]})],e)}(),Ti=function(){function e(e,t){var r=this;this.table=e,this.tableService=t,this.id="s-table-header-checkbox-"+n.nextId++,this.ngUnsubscribe=new o.Subject,this.table.tableService.valueSource$.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(){r.checked=r.updateCheckedState()})),this.table.tableService.selectionSource$.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(){r.checked=r.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,o=n.filteredValue,i=n.value,r=n.dataKey,a=e?o?o.slice():i.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=ge(this.table._selection,s)}else i.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=he(this.table.filteredValue),o=n.next();!o.done;o=n.next()){var i=o.value;if(!this.table.isSelected(i))return!1}}catch(t){e={error:t}}finally{try{o&&!o.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=he(this.table.value),o=n.next();!o.done;o=n.next()){var i=o.value;if(!this.table.isSelected(i))return!1}}catch(t){e={error:t}}finally{try{o&&!o.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:R.Table},{type:R.TableService}]},pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"disabled",void 0),pe([t.Input()],e.prototype,"rowProps",void 0),pe([t.Input()],e.prototype,"useAllObject",void 0),e=n=pe([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)}(),Ei=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],exports:[Ti],declarations:[Ti]})],e)}(),Mi=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,o=this.findPrevSelectableRow(n);o&&o.cells[t].focus()},e.prototype.setUnderColFocus=function(e){var t=e.cellIndex,n=e.parentElement,o=this.findNextSelectableRow(n);o&&o.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},pe([t.HostListener("keydown",["$event"])],e.prototype,"onKeyDown",null),e=pe([t.Directive({selector:"[sNavigation]"})],e)}(),Li=function(e){function n(t){var n=e.call(this,t)||this;return n.dt=t,n}return le(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:R.Table}]},pe([t.Input("sRowToggler")],n.prototype,"data",void 0),pe([t.HostListener("keydown",["$event"])],n.prototype,"onKeydown",null),n=pe([t.Directive({selector:"[sRowToggler]"})],n)}(R.RowToggler),Fi=function(){function e(e,n){this.el=e,this.sTableFrozenPosition="left",this.isTableVisible=!1,this.onColumnsChanged=new t.EventEmitter,this.TABLE_SCROLLABLE_WRAPPER_CLASS=".ui-table-scrollable-wrapper",this.table=n,this.table.styleClass=(this.table.styleClass||"")+" s-table-frozen-position",this.setUpTableEvents(),window.addEventListener("resize",this.handleWindowResize.bind(this));var o=document.getElementsByTagName("head")[0],i=document.createElement("style");i.innerHTML=".s-table-frozen-position .ui-table-frozen-view .sds-expanded-row > td { visibility: hidden; }",o.appendChild(i)}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(),this.tableWrapperObserver&&this.tableWrapperObserver.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,o){var i=n[o];t.innerHTML=null,t.style.padding="0px",e.rowExpandedObserver.observe(i)}))}))},e.prototype.setUpColumnMonitoring=function(){var e=this;this.tableHeadObservable=new MutationObserver((function(){e.synchronizeRowHeight(),e.onColumnsChanged.emit(null)})),ge(this.el.nativeElement.getElementsByTagName("thead")).forEach((function(t){e.tableHeadObservable.observe(t,{subtree:!0,childList:!0})}));var t=this.el.nativeElement.querySelector(this.TABLE_SCROLLABLE_WRAPPER_CLASS);if(t){var n=new MutationObserver((function(){e.synchronizeRowHeight()}));n.observe(t,{subtree:!0,childList:!0}),this.tableWrapperObserver=n}},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 o=t[n].getBoundingClientRect().height,i=e.getBoundingClientRect().height;Math.abs(o-i)>1&&(e.style.height=o+"px",e.innerHTML=null)}))},e.prototype.applyStylesForTable=function(){var e=this.el.nativeElement.querySelector(this.TABLE_SCROLLABLE_WRAPPER_CLASS);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=ge(this.el.nativeElement.getElementsByClassName("ui-table-scrollable-body")).map((function(e){return ge(e.childNodes).find((function(e){return"TABLE"===e.tagName}))}));this._resetRowHeight(e),this._applyMaxRowHeight(e);var t=ge(this.el.nativeElement.getElementsByClassName("ui-table-scrollable-header-box")).map((function(e){return ge(e.childNodes).find((function(e){return"TABLE"===e.tagName}))}));this._resetRowHeight(t),this._applyMaxRowHeight(t)},e.prototype._applyMaxRowHeight=function(e){var t,n,o,i;if(e&&e.length){var r=e.map((function(e){return e.rows.length}));if(r.reduce((function(e,t){return Math.max(e,t)}),r[0])!==r.reduce((function(e,t){return Math.min(e,t)}),r[0]))throw new Error("The number of rows in both tables must be the same");for(var a=e[0],s=0;s<a.rows.length;s++){var l=[];try{for(var c=(t=void 0,he(e)),p=c.next();!p.done;p=c.next()){var d=p.value;l.push(d.rows[s])}}catch(e){t={error:e}}finally{try{p&&!p.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}var u=l.reduce((function(e,t){return Math.max(e,t.getBoundingClientRect().height)}),l[0].getBoundingClientRect().height);try{for(var m=(o=void 0,he(l)),h=m.next();!h.done;h=m.next()){h.value.style.height=u+"px"}}catch(e){o={error:e}}finally{try{h&&!h.done&&(i=m.return)&&i.call(m)}finally{if(o)throw o.error}}}}},e.prototype._resetRowHeight=function(e){var t,n,o,i;try{for(var r=he(e),a=r.next();!a.done;a=r.next()){var s=a.value;try{for(var l=(o=void 0,he(s.rows)),c=l.next();!c.done;c=l.next()){c.value.style.height="unset"}}catch(e){o={error:e}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.ctorParameters=function(){return[{type:t.ElementRef},{type:R.Table}]},pe([t.Input()],e.prototype,"sTableFrozenPosition",void 0),pe([t.Input()],e.prototype,"sTableFrozenValue",null),e=pe([t.Directive({selector:"[sTableFrozenPosition]"})],e)}();(wi=e.EnumColumnFieldType||(e.EnumColumnFieldType={})).STRING="STRING",wi.NUMBER="NUMBER",wi.BOOLEAN="BOOLEAN",wi.DATE="DATE",wi.CURRENCY="CURRENCY",wi.ENUM="ENUM",wi.LOOKUP="LOOKUP",wi.LINK="LINK",wi.TOKENS="TOKENS",(Ci=e.EnumBadgeColors||(e.EnumBadgeColors={})).RED="red",Ci.ORANGE="orange",Ci.YELLOW="yellow",Ci.GREEN="green",Ci.BLUE="blue",Ci.GRAY="gray";var Oi,Ri=d,Ai=function(){function n(e,t,n,o,i){this.localeService=e,this.viewContainerRef=t,this.translate=n,this.numericService=o,this.hostProjectConfigs=i,this.locale={calendar:ce(ce({},this.localeService.getLocaleOptions().calendar),{dateFormat:Kn(this.localeService.getLocaleOptions().calendar.dateFormat)}),number:ce(ce({},this.localeService.getLocaleOptions().number),{scale:0})},this.cellsData=[],this.formattedColumns=[]}return n.prototype.ngOnChanges=function(e){this.validateComponentAttributes(e),e.columns&&e.columns.currentValue!==e.columns.previousValue&&(this.columns=this.sortColumnsBySequence(e.columns.currentValue)),this.createColumnsTemplate(e)},n.prototype.isArray=function(e){return Array.isArray(e)},n.prototype.getCellData=function(e){var t=e.columnValue,n=e.separator,o=e.uninformed;if("string"==typeof t){var i=t.split(n);return i.map((function(e,t){var r=i.length-1===t;return{value:e,isUninformed:e===o,separator:r?null:n}}))}return null},n.prototype.validateComponentAttributes=function(e){var t,n;if(!this.columns&&!(null===(t=e.columns)||void 0===t?void 0:t.currentValue))throw new Error("The 'columns' attribute must be informed!");if(!this.rowValue&&!(null===(n=e.rowValue)||void 0===n?void 0:n.currentValue))throw new Error("The 'rowValue' attribute must be informed!")},n.prototype.createColumnsTemplate=function(e){var t,n,o,i=this;this.viewContainerRef.clear();var r=(null===(t=e.columns)||void 0===t?void 0:t.currentValue)||this.columns,a=(null===(n=e.rowValue)||void 0===n?void 0:n.currentValue)||this.rowValue,s=(null===(o=e.locale)||void 0===o?void 0:o.currentValue)||this.locale;this.formattedColumns=r.map((function(e){return i.getColumnValue(e,a,s)})),this.cellsData=this.formattedColumns.map((function(e){return i.getCellData(e)})),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){var t;return null==e||(null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.numberFormatOptions)&&Se(null==e?void 0:e.value)||this.isArray(e)&&!e.length||"string"==typeof e&&""===e.trim()},n.prototype.getFormattedColumnValue=function(t,n,o,i,r){return r===t.attributes.length?i:t.type===e.EnumColumnFieldType.TOKENS?[].concat.apply([],n.filter((function(e){return e!==i}))):o},n.prototype.getAttributeValue=function(e,t){var n;return e.split("/").forEach((function(e){n||e.split(".").forEach((function(e,o){t&&(0===o?n=t[e]:n&&(n=n[e]))}))})),n},n.prototype.getNumberConfigs=function(e){return ce(ce({},this.locale.number),{scale:null!==e.scale&&void 0!==e.scale?this.getColumnScale(e.scale):this.locale.number.scale,prefix:this.locale.number.currencySymbol+" "})},n.prototype.getDateFormat=function(e,t){return e.dateFormat?e.dateFormat:t.calendar.dateFormat},n.prototype.getColumnValue=function(t,n,o){var i,r,a=this,s=this.getTranslationPrefix(t),c=this.getColumnSeparator(t),p=this.translate.instant(s+"empty_label"),d=t.style,u=t.attributes.map((function(i){var r,c,d=a.getAttributeValue(i,n);if(a.isAttributeValueInvalid(d))return p;var u=a.getNumberConfigs(t);switch(t.type){case e.EnumColumnFieldType.ENUM:return a.translate.instant(t.enumPrefix+d.toString().toLowerCase());case e.EnumColumnFieldType.CURRENCY:return(f=(null===(r=null==d?void 0:d.options)||void 0===r?void 0:r.numberFormatOptions)?d.options.numberFormatOptions:"function"==typeof t.numberFormatOptions?t.numberFormatOptions({rowData:n}):t.numberFormatOptions)?a.numericService.instant(d,{numberFormatOptions:f}):l.applyMask(d,u,a.isNumber(d));case e.EnumColumnFieldType.DATE:var m=a.getDateFormat(t,o);return Ri(d).format(m);case e.EnumColumnFieldType.BOOLEAN:var h=d?"yes":"no";return a.translate.instant(s+h);case e.EnumColumnFieldType.NUMBER:var f;return u.prefix="",(f=(null===(c=null==d?void 0:d.options)||void 0===c?void 0:c.numberFormatOptions)?d.options.numberFormatOptions:"function"==typeof t.numberFormatOptions?t.numberFormatOptions({rowData:n}):t.numberFormatOptions)?a.numericService.instant(d,{numberFormatOptions:f}):l.applyMask(d,u,a.isNumber(d));case e.EnumColumnFieldType.TOKENS:return a.getTokens(d);default:return d}})),m=u.join(c),h=m.split(c).filter((function(e){return e===p})).length;return{style:d,columnValue:this.getFormattedColumnValue(t,u,m,p,h),separator:c,uninformed:p,badgeConfigs:null===(i=null==t?void 0:t.badgeConfigs)||void 0===i?void 0:i.find((function(e){var o;return e.enumValue===n[null!==(o=t.attributes[0])&&void 0!==o?o:t.field]})),color:null===(r=t.color)||void 0===r?void 0:r.call(t,n),type:t.type,tooltip:this.getColumnTooltip(t.tooltip),infoSign:this.getColumnInfoSign(t.infoSign),onLinkClick:t.onLinkClick,onColumnClick:t.onColumnClick,compact:t.compact}},n.prototype.getColumnScale=function(e){return"function"==typeof e?e(this.rowValue):e},n.prototype.getColumnInfoSign=function(e){return null!=e?"function"==typeof e?e(this.rowValue):e:null},n.prototype.getColumnTooltip=function(e){return null!=e?"function"==typeof e?e(this.rowValue):e:""},n.prototype.isNumber=function(e){return!new ae(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.sortColumnsBySequence=function(e){return e.sort((function(e,t){return e.sequence-t.sequence}))},n.ctorParameters=function(){return[{type:Xe},{type:t.ViewContainerRef},{type:b.TranslateService},{type:dt},{type:void 0,decorators:[{type:t.Inject,args:[an]}]}]},pe([t.ViewChild("columnsTemplate",{static:!0})],n.prototype,"columnsTemplate",void 0),pe([t.Input()],n.prototype,"columns",void 0),pe([t.Input()],n.prototype,"rowValue",void 0),pe([t.Input()],n.prototype,"locale",void 0),pe([t.ViewChildren("column")],n.prototype,"testeElements",void 0),n=pe([t.Component({template:'<ng-template #columnsTemplate>\n <td\n *ngFor="let column of formattedColumns; let i = index"\n [ngStyle]="column.style"\n (click)="column.onColumnClick ? column.onColumnClick(rowValue) : null"\n >\n <div\n *ngIf="column.type !== \'TOKENS\' || !isArray(column.columnValue); else tokensTemplate"\n [ngClass]="{ \'compact-column\': column.compact }"\n >\n <span *ngIf="column.type !== \'LINK\'" [sTooltip]="column.tooltip" [escape]="false">\n <ng-container *ngTemplateOutlet="columnValueTemplate"></ng-container>\n </span>\n\n <ng-container *ngIf="column.type === \'LINK\'">\n <span *ngIf="cellsData[i][0].isUninformed; else anchorTemplate" class="sds-empty-value">{{ cellsData[i][0].value }}</span>\n\n <ng-template #anchorTemplate>\n <a [sTooltip]="column.tooltip" [escape]="false" (click)="column.onLinkClick ? column.onLinkClick(rowValue) : null">\n <ng-container *ngTemplateOutlet="columnValueTemplate"></ng-container>\n </a>\n </ng-template>\n </ng-container>\n\n <ng-template #columnValueTemplate>\n <ng-container *ngFor="let cellData of cellsData[i]">\n <span *ngIf="cellData.isUninformed; else isInformedTemplate" class="sds-empty-value">{{ cellData.value }}</span>\n\n <ng-template #isInformedTemplate>\n <s-badge\n *ngIf="column.badgeConfigs; else withoutBadgeTemplate"\n [sTooltip]="column.tooltip"\n [color]="column.badgeConfigs.color"\n [text]="cellData.value"\n ></s-badge>\n\n <ng-template #withoutBadgeTemplate>\n <span\n [ngClass]="{\n \'column-cell-red\': column.color === \'Red\',\n \'column-cell-orange\': column.color === \'Orange\',\n \'column-cell-yellow\': column.color === \'Yellow\',\n \'column-cell-green\': column.color === \'Green\',\n \'column-cell-blue\': column.color === \'Blue\'\n }"\n >{{ cellData.value }}</span\n >\n </ng-template>\n </ng-template>\n\n <span *ngIf="cellData.separator">{{ cellData.separator }}</span>\n </ng-container>\n\n <ng-container *ngIf="!!column.infoSign">\n <span *sInfoSign="column.infoSign"></span>\n </ng-container>\n </ng-template>\n </div>\n\n <ng-template #tokensTemplate>\n <s-token-list [tokens]="column.columnValue" [hidePointerEvents]="true"></s-token-list>\n\n <ng-container *ngIf="!!column.infoSign">\n <span *sInfoSign="column.infoSign"></span>\n </ng-container>\n </ng-template>\n </td>\n</ng-template>\n',selector:"s-table-columns",styles:[":host{display:none}.compact-column{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical;word-break:break-word}.column-cell-red{color:#c13018}.column-cell-orange{color:#f8931f}.column-cell-yellow{color:#fcbf10}.column-cell-green{color:#0c9348}.column-cell-blue{color:#428bca}"]}),de(4,t.Inject(an))],n)}(),Di=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.prototype.onTokenSelected=function(e){e.disabled||this.tokenSelected.next(e)},e.prototype.onTokenRemoved=function(e){e.disabled||this.tokenRemoved.next(e)},e.nextId=0,pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"tokens",void 0),pe([t.Input()],e.prototype,"removableTokens",void 0),pe([t.Input()],e.prototype,"hidePointerEvents",void 0),pe([t.Output()],e.prototype,"tokenSelected",void 0),pe([t.Output()],e.prototype,"tokenRemoved",void 0),e=n=pe([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]="{\n \'no-pointer-events\': hidePointerEvents,\n \'token--disabled\': token.disabled\n }">\n <a\n [id]="(token.id || \'token\') + \'-label\'"\n class="token-label"\n (click)="onTokenSelected(token)">\n {{ token.label }}\n </a>\n <span\n *ngIf="removableTokens && !token.notRemovable"\n [id]="token.id + \'-remove\'"\n class="fas fa-times"\n (click)="onTokenRemoved(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:#e5eaea;border:1px solid #697882;border-radius:4px;color:#333;display:-ms-flexbox;display:flex;font:400 12px/150% "Open Sans",sans-serif;gap:8px;margin:2px 5px 0 0;max-width:100%;padding:2px 8px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.token-list .token-label{max-width:50ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.token-list .token:not(.token--disabled):focus,.token-list .token:not(.token--disabled):hover{background-color:#ccc}.token-list .token a{text-decoration:none;color:#333}.token-list .token--disabled{opacity:50%}.token-list .token--disabled a{cursor:default}']})],e)}(),Pi=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[Di],exports:[Di]})],e)}(),Vi=function(){function e(e,t,n){this.translate=e,this.localeService=t,this.hostProjectConfigs=n,this.exportable=!0,this.enableExportSelectedRecords=!0}return e.prototype.ngOnChanges=function(e){var t;(null===(t=e.totalRecords)||void 0===t?void 0:t.currentValue)&&(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,t=this,n=[{id:"exportCurrentPage",label:this.translate.instant(this.getTranslatePrefix()+"export_current_page"),command:function(){return t.exportCurrentPage()}}];if(this.enableExportSelectedRecords&&n.push({id:"exportSelected",label:this.translate.instant(this.getTranslatePrefix()+"export_selected_records"),command:function(){return t.exportSelectedRecords()}}),this.loadAllRecords&&n.push({id:"exportAll",label:this.translate.instant(this.getTranslatePrefix()+"export_all_records"),command:function(){return t.exportAllRecords()}}),null===(e=this.customActions)||void 0===e?void 0:e.length){var o=this.customActions.map((function(e,t){return{id:"customAction_"+t,label:e.label,command:e.command}}));n.push.apply(n,ge(o))}return n},e.prototype.validateComponent=function(){if(!this.table)throw new Error("Table component not defined")},e.prototype.getColumnsToExport=function(){return ge(this.table.columns).map((function(e){var t,n=ce(ce({},e),{header:e.header,exportable:!0,field:e.field,separator:null!==(t=e.separator)&&void 0!==t?t:" - ",enumPrefix:e.enumPrefix,customExport:e.customExport});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){var t=this.table.value;return this.loadCurrentPageRecords&&(t=this.loadCurrentPageRecords()),t=this.mapCustomExport(e,t),t=this.mapNumberFormatOptionsExport(e,t),this.mapColumnsTranslations(e,t)},e.prototype.getSelectedRowsToExport=function(e){var t=this.table.selection;return this.loadSelectedRecords&&(t=this.loadSelectedRecords()),t=this.mapCustomExport(e,t),t=this.mapNumberFormatOptionsExport(e,t),this.mapColumnsTranslations(e,t)},e.prototype.getPropertyValue=function(e,t){return t.split(".").reduce((function(e,t){return void 0===e[t]?void 0:e[t]}),e)},e.prototype.setPropertyValue=function(e,t,n){this.recursionSetValue(e,t.split("."),n)},e.prototype.recursionSetValue=function(e,t,n){var o=t[0];return 1===t.length?(e[o]=n,e):(e[o]=this.recursionSetValue((null==e?void 0:e[o])||{},t.slice(1),n),e)},e.prototype.mapColumnsTranslations=function(e,t){var n=this,o=e.filter((function(e){return e.enumPrefix}));return o.length?ge(t).map((function(e){var t=ce({},e);return o.forEach((function(o){(Array.isArray(o.field)?o.field:[o.field]).forEach((function(i){var r=n.getPropertyValue(e,i);if(null!=r){var a=n.translateValue(o,r);n.setPropertyValue(t,i,a)}}))})),t})):t},e.prototype.mapNumberFormatOptionsExport=function(e,t){var n=this,o=e.some((function(e){return e.numberFormatOptions})),i=t.some((function(e){return Object.keys(e).some((function(t){var n,o;return null===(o=null===(n=e[t])||void 0===n?void 0:n.options)||void 0===o?void 0:o.numberFormatOptions}))}));return o||i?(o&&(t=t.map((function(t){var o,i,r,a,s,l=e.filter((function(e){return e.numberFormatOptions}));try{for(var c=he(l),p=c.next();!p.done;p=c.next()){var d=p.value,u=d.attributes,m="function"==typeof d.numberFormatOptions?d.numberFormatOptions({rowData:t}):d.numberFormatOptions;try{for(var h=(r=void 0,he(u)),f=h.next();!f.done;f=h.next()){var g=f.value;if(!Se(t[g])&&!(null===(s=t[g].options)||void 0===s?void 0:s.numberFormatOptions)){var v=t[g],b="percent"===m.style?new ae(v).times(100):new ae(v),y=new Intl.NumberFormat(n.localeService.getLocaleOptions().locale,ce(ce({},m),{style:"decimal",useGrouping:!1,roundingMode:"trunc"}));t[g]=y.format(b.toNumber())}}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(r)throw r.error}}}}catch(e){o={error:e}}finally{try{p&&!p.done&&(i=c.return)&&i.call(c)}finally{if(o)throw o.error}}return t}))),i&&(t=t.map((function(e){var t,o,i=Object.keys(e).filter((function(t){var n,o;return null===(o=null===(n=e[t])||void 0===n?void 0:n.options)||void 0===o?void 0:o.numberFormatOptions}));try{for(var r=he(i),a=r.next();!a.done;a=r.next()){var s=a.value,l=e[s].value,c=e[s].options.numberFormatOptions,p="percent"===c.style?new ae(l).times(100):new ae(l),d=new Intl.NumberFormat(n.localeService.getLocaleOptions().locale,ce(ce({},c),{style:"decimal",useGrouping:!1,roundingMode:"trunc"}));e[s]=d.format(p.toNumber())}}catch(e){t={error:e}}finally{try{a&&!a.done&&(o=r.return)&&o.call(r)}finally{if(t)throw t.error}}return e}))),t):t},e.prototype.mapCustomExport=function(e,t){var n=this,o=e.filter((function(e){return e.customExport}));return o.length?ge(t).map((function(e){var t=ce({},e);return o.forEach((function(o){(Array.isArray(o.field)?o.field:[o.field]).forEach((function(i){var r=n.getPropertyValue(e,i);if(null!=r){var a=o.customExport(r);n.setPropertyValue(t,i,a)}}))})),t})):t},e.prototype.translateValue=function(e,t){var n=t.toString().toLowerCase(),o=e.enumPrefix+n,i=this.translate.instant(o);if(o===i&&n.length>1&&(o=""+e.enumPrefix+n.substring(0,1)+"_"+n.substr(1),i=this.translate.instant(o)),o===i){var r=this.convertToSnakeCase(t.toString());o=""+e.enumPrefix+r,i=this.translate.instant(o)}return i},e.prototype.convertToSnakeCase=function(e){return e.replace(/([A-Z])/g,(function(e,t){return"_"+t.toLowerCase()})).replace(/^_/,"")},e.prototype.getExportFileName=function(){var e,t,n=null!==(e=this.translate.currentLang)&&void 0!==e?e:"pt-BR",o=new Date;return(null!==(t=this.exportFileName)&&void 0!==t?t:"download")+"_"+o.toLocaleDateString(n).replace("_","-")+"_"+o.toLocaleTimeString(n).replace(" ","-")},e.prototype.exportCurrentPage=function(){this.validateComponent();var e=this.getColumnsToExport(),t=this.getCurrentPageRowsToExport(e);Yn.exportCSV(e,t,void 0,this.getExportFileName())},e.prototype.exportSelectedRecords=function(){this.validateComponent();var e=this.getColumnsToExport(),t=this.getSelectedRowsToExport(e);Yn.exportCSV(e,t,void 0,this.getExportFileName())},e.prototype.exportAllRecords=function(){return ue(this,void 0,void 0,(function(){var e,t,n;return me(this,(function(o){switch(o.label){case 0:return this.validateComponent(),[4,this.loadAllRecords()];case 1:return e=o.sent(),t=this.getColumnsToExport(),e=this.mapCustomExport(t,e),e=this.mapNumberFormatOptionsExport(t,e),n=this.mapColumnsTranslations(t,e),Yn.exportCSV(t,n,void 0,this.getExportFileName()),[2]}}))}))},e.ctorParameters=function(){return[{type:b.TranslateService},{type:Xe},{type:void 0,decorators:[{type:t.Inject,args:[an]}]}]},pe([t.Input()],e.prototype,"totalRecords",void 0),pe([t.Input()],e.prototype,"exportFileName",void 0),pe([t.Input()],e.prototype,"table",void 0),pe([t.Input()],e.prototype,"exportable",void 0),pe([t.Input()],e.prototype,"enableExportSelectedRecords",void 0),pe([t.Input()],e.prototype,"customActions",void 0),pe([t.Input()],e.prototype,"loadAllRecords",void 0),pe([t.Input()],e.prototype,"loadCurrentPageRecords",void 0),pe([t.Input()],e.prototype,"loadSelectedRecords",void 0),pe([t.Output()],e.prototype,"totalRecordsText",void 0),e=pe([t.Component({template:'<div class="paging-container">\n <span class="total-records">\n {{totalRecordsText}}\n </span>\n <s-button\n *ngIf="exportable"\n 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()">\n </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}"]}),de(2,t.Inject(an))],e)}(),Bi=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Re,Pi,b.TranslateModule,Ft,je,He],exports:[Li,Mi,Ai,Fi,Vi],declarations:[Li,Mi,Ai,Fi,Vi]})],e)}(),Ni=function(){function e(e,t){this.changeDetectorRef=e,this.elementRef=t}return e.prototype.ngAfterViewInit=function(){this.setInputRef(),this.changeDetectorRef.detectChanges()},e.prototype.setInputRef=function(){this.inputRef=this.elementRef.nativeElement.querySelector("input")},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef}]},pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formControl",void 0),e=pe([t.Component({template:'<s-field-label *ngIf="inputRef" [field]="field"\n [fieldContainerRef]="inputRef"></s-field-label>\n \n<div\n [sTooltip]="field.tooltip"\n tooltipPosition="top"\n [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 </s-lookup>\n</div>\n'})],e)}(),zi=function(){function e(){}return e.prototype.onClear=function(){this.formControl.reset()},pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formControl",void 0),e=pe([t.Component({template:'<s-field-label [field]="field"></s-field-label>\n\n<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)}(),Ui=function(){function e(){}return pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formControl",void 0),e=pe([t.Component({template:'<s-field-label [field]="field"></s-field-label>\n\n<div class="ui-grid ui-grid-responsive ui-grid-pad ui-fluid">\n <div class="ui-grid-row">\n <div class="i-grid-col-1">\n <s-switch\n [id]="(field.id || field.name)"\n [inputName]="field.name"\n [formControl]="formControl"\n [sTooltip]="field.tooltip"\n tooltipPosition="top"\n (valueChanged)="field.onChange ? field.onChange($event) : null">\n </s-switch>\n </div>\n <div class="i-grid-col-1" *ngIf="field.optionsLabel">\n <ng-container *ngIf="formControl.value; else caseFalse">\n <span>{{ field.optionsLabel.true }}</span>\n </ng-container>\n <ng-template #caseFalse>\n <span>{{ field.optionsLabel.false }}</span>\n </ng-template>\n </div>\n </div>\n</div>'})],e)}(),ji=function(){function e(e,t,n){this.translateService=e,this.changeDetectorRef=t,this.elementRef=n,this.locale={firstDayOfWeek:0,dayNames:[this.translateService.instant("platform.angular_components.sunday"),this.translateService.instant("platform.angular_components.monday"),this.translateService.instant("platform.angular_components.tuesday"),this.translateService.instant("platform.angular_components.wednesday"),this.translateService.instant("platform.angular_components.thursday"),this.translateService.instant("platform.angular_components.friday"),this.translateService.instant("platform.angular_components.saturday")],dayNamesShort:[this.translateService.instant("platform.angular_components.sunday_short"),this.translateService.instant("platform.angular_components.monday_short"),this.translateService.instant("platform.angular_components.tuesday_short"),this.translateService.instant("platform.angular_components.wednesday_short"),this.translateService.instant("platform.angular_components.thursday_short"),this.translateService.instant("platform.angular_components.friday_short"),this.translateService.instant("platform.angular_components.saturday_short")],dayNamesMin:[this.translateService.instant("platform.angular_components.sunday_min"),this.translateService.instant("platform.angular_components.monday_min"),this.translateService.instant("platform.angular_components.tuesday_min"),this.translateService.instant("platform.angular_components.wednesday_min"),this.translateService.instant("platform.angular_components.thursday_min"),this.translateService.instant("platform.angular_components.friday_min"),this.translateService.instant("platform.angular_components.saturday_min")],monthNames:[this.translateService.instant("platform.angular_components.january"),this.translateService.instant("platform.angular_components.february"),this.translateService.instant("platform.angular_components.march"),this.translateService.instant("platform.angular_components.april"),this.translateService.instant("platform.angular_components.may"),this.translateService.instant("platform.angular_components.june"),this.translateService.instant("platform.angular_components.july"),this.translateService.instant("platform.angular_components.august"),this.translateService.instant("platform.angular_components.september"),this.translateService.instant("platform.angular_components.october"),this.translateService.instant("platform.angular_components.november"),this.translateService.instant("platform.angular_components.december")],monthNamesShort:[this.translateService.instant("platform.angular_components.january_short"),this.translateService.instant("platform.angular_components.february_short"),this.translateService.instant("platform.angular_components.march_short"),this.translateService.instant("platform.angular_components.april_short"),this.translateService.instant("platform.angular_components.may_short"),this.translateService.instant("platform.angular_components.june_short"),this.translateService.instant("platform.angular_components.july_short"),this.translateService.instant("platform.angular_components.august_short"),this.translateService.instant("platform.angular_components.september_short"),this.translateService.instant("platform.angular_components.october_short"),this.translateService.instant("platform.angular_components.november_short"),this.translateService.instant("platform.angular_components.december_short")],today:this.translateService.instant("platform.angular_components.today"),clear:this.translateService.instant("platform.angular_components.clear"),dateFormat:this.translateService.instant("platform.angular_components.date_format"),hourFormat:this.translateService.instant("platform.angular_components.hour_format")}}return e.prototype.ngAfterViewInit=function(){this.setInputRef(),this.changeDetectorRef.detectChanges()},e.prototype.setInputRef=function(){this.inputRef=this.elementRef.nativeElement.querySelector("input")},e.ctorParameters=function(){return[{type:b.TranslateService},{type:t.ChangeDetectorRef},{type:t.ElementRef}]},pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formControl",void 0),pe([t.Input()],e.prototype,"showTime",void 0),pe([t.Input()],e.prototype,"timeOnly",void 0),pe([t.ViewChild("calendar")],e.prototype,"calendar",void 0),e=pe([t.Component({template:'<s-field-label\n *ngIf="inputRef"\n [field]="field"\n [fieldContainerRef]="inputRef">\n</s-field-label>\n\n<div [sTooltip]="field.tooltip" tooltipPosition="top" [showDelay]="500">\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 \x3c!-- A diretiva sCalendarMask não está suportando seleção múltipla. A forma como ela foi escrita não permite identificar a quantidade de datas\n que estão sendo selecionadas. Removi o uso dela quando está com selectionMode=multiple. Analisar a removeção completa desta diretiva. --\x3e\n <p-calendar\n *ngIf="field.selectionMode !== \'multiple\'; else multiple"\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]="timeOnly ? \'fa fa-clock\' : \'fa fa-calendar\'"\n [minDate]="field.minDate"\n [maxDate]="field.maxDate"\n [defaultDate]="field.defaultDate"\n [locale]="field.calendarLocaleOptions || locale"\n [dateFormat]="field.calendarLocaleOptions?.dateFormat || \'platform.angular_components.date_format\' | translate"\n [hourFormat]="field.calendarLocaleOptions?.hourFormat || \'platform.angular_components.hour_format\' | translate"\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\n \x3c!-- A única diferença deste bloco é a remoção da diretiva sCalendarMask. --\x3e\n <ng-template #multiple>\n <p-calendar\n #calendar\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]="timeOnly ? \'fa fa-clock\' : \'fa fa-calendar\'"\n [minDate]="field.minDate"\n [maxDate]="field.maxDate"\n [defaultDate]="field.defaultDate"\n [locale]="field.calendarLocaleOptions || locale"\n [dateFormat]="field.calendarLocaleOptions?.dateFormat || \'platform.angular_components.date_format\' | translate"\n [hourFormat]="field.calendarLocaleOptions?.hourFormat || \'platform.angular_components.hour_format\' | translate"\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 </ng-template>\n</div>\n'})],e)}(),Hi=function(){function e(e,t,n){this.clipboard=e,this.changeDetectorRef=t,this.elementRef=n,this.feedbackMessageVisible=!1,this.copyButtonVisible=!0}return e.prototype.onCopyFieldContent=function(){var e=this;if(this.formControl.value){this.copyButtonVisible=!1,this.feedbackMessageVisible=!0,setTimeout((function(){e.feedbackMessageVisible=!1,e.copyButtonVisible=!0}),3e3);var t=this.formControl.value.join(this.field.separator||"\n");this.clipboard.copy(t),this.field.onCopy&&this.field.onCopy(t)}},e.prototype.ngAfterViewInit=function(){this.setInputRef(),this.changeDetectorRef.detectChanges()},e.prototype.setInputRef=function(){this.inputRef=this.elementRef.nativeElement.querySelector("input")},e.ctorParameters=function(){return[{type:Z.Clipboard},{type:t.ChangeDetectorRef},{type:t.ElementRef}]},pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formControl",void 0),e=pe([t.Component({template:'<s-field-label *ngIf="inputRef" [field]="field"\n [fieldContainerRef]="inputRef"></s-field-label>\n \n<div class="chips-field-wrapper">\n <div style="width: 100%;">\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 [pKeyFilter]="field.keyFilter">\n <ng-template let-item pTemplate="item">\n <span\n class="chip-content"\n [sTooltip]="item">\n {{ item }}\n </span>\n </ng-template>\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 <ng-template let-item pTemplate="item">\n <span\n class="chip-content"\n [sTooltip]="item">\n {{ item }}\n </span>\n </ng-template>\n </p-chips>\n </div>\n \n <button\n *ngIf="field.showCopyButton && formControl.value?.length > 0 && copyButtonVisible"\n class="copy-content-button"\n (click)="onCopyFieldContent()">\n {{ "platform.angular_components.copy_field_content" | translate }}\n </button>\n \n <span\n *ngIf="feedbackMessageVisible"\n class="feedback-message">\n {{ "platform.angular_components.copied_to_clipboard" | translate }}\n </span>\n</div>\n',styles:[".chips-field-wrapper{-ms-flex-align:start;align-items:flex-start;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.chips-field-wrapper .chip-content{display:block;overflow:hidden;padding-right:1rem;text-overflow:ellipsis}.chips-field-wrapper .copy-content-button{background-color:transparent;border:none;color:#2a6496;cursor:pointer;margin-top:8px}.chips-field-wrapper .feedback-message{color:#0c9348;display:block;margin-top:8px;-webkit-user-select:none;-ms-user-select:none;user-select:none}"]})],e)}(),$i=function(){function e(e,t){this.changeDetectorRef=e,this.elementRef=t}return e.prototype.ngAfterViewInit=function(){this.setInputRef(),this.changeDetectorRef.detectChanges()},e.prototype.setInputRef=function(){this.inputRef=this.elementRef.nativeElement.querySelector("input")},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef}]},pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formControl",void 0),e=pe([t.Component({template:'<s-field-label *ngIf="inputRef" [field]="field"\n [fieldContainerRef]="inputRef"></s-field-label>\n\n<s-country-phone-picker\n [formControl]="formControl"\n [ordination]="field.ordination"\n [countries]="field.countries"\n (selected)="field.onSelected"\n (focusLost)="field.onFocusLost">\n</s-country-phone-picker>'})],e)}(),Gi=function(e){function n(t,n){var o=e.call(this)||this;return o.changeDetectorRef=t,o.elementRef=n,o}return le(n,e),n.prototype.onClick=function(){this.dispatchFocusInputRef(),this.addEventOnBlur()},n.prototype.ngAfterViewInit=function(){this.setInputRef(),this.changeDetectorRef.detectChanges()},n.prototype.addEventOnBlur=function(){var e=this;o.fromEvent(document,"click").pipe(i.filter((function(t){return!e.elementRef.nativeElement.contains(t.target)})),i.take(1)).subscribe((function(){return e.inputRef.dispatchEvent(new Event("blur"))}))},n.prototype.setInputRef=function(){this.inputRef=this.elementRef.nativeElement.querySelector("input")},n.prototype.dispatchFocusInputRef=function(){this.inputRef.dispatchEvent(new Event("focus"))},n.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef}]},pe([t.Input()],n.prototype,"field",void 0),pe([t.Input()],n.prototype,"formControl",void 0),pe([t.HostListener("click")],n.prototype,"onClick",null),n=pe([t.Component({template:'<s-field-label *ngIf="inputRef" [field]="field"\n [fieldContainerRef]="inputRef"></s-field-label>\n \n<s-file-upload\n [id]="(field.id || field.name)"\n [accept]="field.accept"\n [files]="field.files"\n [multiple]="field.multiple"\n [chooseLabel]="field.chooseLabel"\n [removeLabel]="field.removeLabel"\n [cancelLabel]="field.cancelLabel"\n [successTooltip]="field.successTooltip"\n (uploadHandler)="field.onUploadFile($event, field)"\n (removeFile)="field.onRemoveFile($event, field)"\n (cancelUpload)="field.onCancelUpload($event, field)"\n (downloadFile)="field.onDownloadFile($event, field)"\n [formGroup]="formControl"\n [showFileUploadDate]="field.showFileUploadDate"> \n</s-file-upload>\n'})],n)}(Jn),qi=function(){function e(){}return pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formControl",void 0),e=pe([t.Component({template:'<s-field-label [field]="field"></s-field-label>\n\n<div [sTooltip]="field.tooltip" tooltipPosition="top" [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 [showSearch]="field.showSearch"\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 [emptyFieldLabel]="field.emptyFieldLabel"\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 [defaultFilter]="field.defaultFilter"\n [autocompleteForceSelection]="field.autocompleteForceSelection"\n [showAddOption]="field.showAddOption"\n [showEditOption]="field.showEditOption"\n [showRemoveOption]="field.showRemoveOption"\n [sortableColumnsDisabled]="field.sortableColumnsDisabled"\n (onAdd)="field.onAdd()"\n (onEdit)="field.onEdit($event)"\n (onRemove)="field.onRemove($event)"\n (onClearButtonClick)="field.onClearButtonClick ? field.onClearButtonClick() : null"\n >\n </s-lookup>\n</div>\n'})],e)}(),Wi=function(){function e(){this.onClick=new t.EventEmitter,this.onFocus=new t.EventEmitter,this.ngUnsubscribe=new o.Subject}return e.prototype.ngOnInit=function(){var e=this;this.onFocus.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onFocus&&e.field.onFocus(t)})),this.onClick.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onClick&&e.field.onClick(t)}))},e.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},e.prototype.onClear=function(){this.formControl.reset()},pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formControl",void 0),pe([t.Output()],e.prototype,"onClick",void 0),pe([t.Output()],e.prototype,"onFocus",void 0),e=pe([t.Component({template:'<s-field-label [field]="field"></s-field-label>\n\n<ng-container *ngIf="field.verticalAlignment;else horizontalAlignment">\n <div class="ui-g">\n <div\n *ngFor="let option of field.options; let i = index"\n class="ui-g-12">\n <ng-container\n [ngTemplateOutlet]="radioButton"\n [ngTemplateOutletContext]="{option: option, index: i}">\n </ng-container>\n </div>\n <s-button\n *ngIf="field.showClear && !field.required() && !formControl.disabled"\n [label]="field.clearLabel || \'Clear selection\'"\n (onClick)="onClear()"\n priority="link">\n </s-button>\n </div>\n</ng-container>\n\n<ng-template #horizontalAlignment>\n <div class="ui-g horizontal-radio-buttons-container">\n <ng-container\n *ngFor="let option of field.options; let i = index"\n [ngTemplateOutlet]="radioButton"\n [ngTemplateOutletContext]="{option: option, index: i}">\n </ng-container>\n </div>\n <s-button\n *ngIf="field.showClear && !field.required() && !formControl.disabled"\n class="horizontal-clear-option"\n [label]="field.clearLabel || \'Clear selection\'"\n (onClick)="onClear()"\n priority="link">\n </s-button>\n</ng-template>\n\n<ng-template #radioButton let-option="option" let-i="index">\n <p-radioButton\n class="radio-button-item"\n [name]="field.name"\n [value]="option.value"\n [label]="option.label"\n [formControl]="formControl"\n [inputId]="(field.id || field.name) + \'-\' + i"\n [sTooltip]="field.tooltip"\n (onClick)="onClick.next($event)"\n (onFocus)="onFocus.next($event)"\n (onBlur)="field.onBlur ? field.onBlur($event) : null">\n </p-radioButton>\n</ng-template>\n',encapsulation:t.ViewEncapsulation.None,styles:["\n s-button.horizontal-clear-option button {\n width: min-content !important;\n }\n\n .horizontal-radio-buttons-container {\n gap: 20px 40px;\n .radio-button-item {\n margin: 0;\n }\n }\n "]})],e)}(),Yi=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return le(n,e),pe([t.Input()],n.prototype,"field",void 0),pe([t.Input()],n.prototype,"formControl",void 0),n=pe([t.Component({template:'<s-field-label [field]="field"></s-field-label>\n\n<p-dropdown\n *ngIf="!field.multiple"\n [filter]="field.filter"\n [inputId]="(field.id || field.name)"\n [name]="field.name"\n [options]="isFunction(field.options) ? field.options() : field.options"\n [group]="field.group"\n [placeholder]="field.placeholder || \' \'"\n [formControl]="formControl"\n [sTooltip]="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 [editable]="field.editable"\n (onClick)="field.onClick ? field.onClick($event) : null"\n (onChange)="field.onChange ? field.onChange($event) : null">\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 [sTooltip]="field.tooltip"\n tooltipPosition="top"\n [emptyFilterMessage]="field.emptyMessage || \'platform.angular_components.no_records_found\' | translate"\n [showDelay]="500"\n [selectedItemsLabel]="field.multipleSelectedLabel || \'platform.angular_components.total_records_selected\' | translate"\n [appendTo]="field.appendTo || \'body\'"\n (onClick)="field.onClick ? field.onClick($event) : null"\n (onChange)="field.onChange ? field.onChange($event) : null">\n</p-multiSelect>\n\n'})],n)}(Jn),Ki=function(n){function r(){var e=null!==n&&n.apply(this,arguments)||this;return e.onChange=new t.EventEmitter,e.onSlideEnd=new t.EventEmitter,e.ngUnsubscribe=new o.Subject,e}return le(r,n),r.prototype.ngOnInit=function(){var e,t,n=(null===(e=this.field)||void 0===e?void 0:e.range)?[this.field.min,this.field.max]:this.field.min;this.isValid(this.formControl.value)||this.formControl.setValue(null!==(t=this.field.defaultValue)&&void 0!==t?t:n),this.subscribeToFormControlEvents()},r.prototype.subscribeToFormControlEvents=function(){var e=this;this.onChange.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onChange&&e.field.onChange(t)})),this.onSlideEnd.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onSlideEnd&&e.field.onSlideEnd(t)}))},r.prototype.isValid=function(e){var t;return(null===(t=this.field)||void 0===t?void 0:t.range)?Array.isArray(e)&&this.isValidRange(e):Number.isInteger(e)&&this.isValidNoRange(e)},r.prototype.isValidRange=function(e){var t,n,o,i,r=fe(e,2),a=r[0],s=r[1];return a>=(null===(t=this.field)||void 0===t?void 0:t.min)&&a<=(null===(n=this.field)||void 0===n?void 0:n.max)&&s>=(null===(o=this.field)||void 0===o?void 0:o.min)&&s<=(null===(i=this.field)||void 0===i?void 0:i.max)},r.prototype.isValidNoRange=function(e){return e>=this.field.min&&e<=this.field.max},r.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},Object.defineProperty(r.prototype,"fieldType",{get:function(){return e.FieldType},enumerable:!0,configurable:!0}),r.prototype.getRangeLabel=function(){var e,t,n,o,i=fe(null!==(e=this.formControl.value)&&void 0!==e?e:[0,0],2),r=i[0],a=i[1],s=null!==(t=this.field.prefix)&&void 0!==t?t:"",l=null!==(n=this.field.suffix)&&void 0!==n?n:"",c=null!==(o=this.field.rangeSeparator)&&void 0!==o?o:" - ";return(!r||r<this.field.min)&&(r=this.field.min),(!a||a>this.field.max)&&(a=this.field.max),""+s+r+l+c+s+a+l},r.prototype.getNonRangeLabel=function(){var e,t,n,o=null===(e=this.formControl)||void 0===e?void 0:e.value,i=null!==(t=this.field.prefix)&&void 0!==t?t:"",r=null!==(n=this.field.suffix)&&void 0!==n?n:"";return(!o||o<this.field.min)&&(o=this.field.min),o>this.field.max&&(o=this.field.max),""+i+o+r},Object.defineProperty(r.prototype,"label",{get:function(){return this.field.range?this.getRangeLabel():this.getNonRangeLabel()},enumerable:!0,configurable:!0}),pe([t.Input()],r.prototype,"field",void 0),pe([t.Input()],r.prototype,"formControl",void 0),pe([t.Output()],r.prototype,"onChange",void 0),pe([t.Output()],r.prototype,"onSlideEnd",void 0),r=pe([t.Component({template:'<s-field-label [field]="field"></s-field-label>\n\n<ng-container>\n <div class="slider-group">\n <div class="slider-label">\n <span>{{label}}</span>\n </div>\n <p-slider \n [id]="(field.id || field.name)"\n [formControl]="formControl"\n [range]="field.range"\n [orientation]="field.orientation"\n [min]="field.min" \n [max]="field.max"\n [step]="field.step"\n [animate]="field.animate" \n (onChange)="field.onChange ? field.onChange($event) : null"\n (onSlideEnd)="field.onSlideEnd ? field.onSlideEnd($event) : null">\n </p-slider>\n </div>\n</ng-container>',styles:[".slider-label{margin-bottom:5px;margin-left:-10px}.slider-group{margin-left:9px;margin-right:11px}"]})],r)}(Jn),Zi=function(){function e(e,t,n,i){this.localeService=e,this.ngZone=t,this.toastService=n,this.translateService=i,this.hasSupportSpeechRecognition=!1,this.isListening=!1,this.microphoneStatus$=new o.Subject,this.TIMEOUT_NO_MESSAGE=3e3,this.setRecognition()}return e.prototype.listen=function(){var e=this,t=new o.Subject;return this.isListening&&t.error("Already listening"),this.hasMicrophoneAccess.then((function(n){if(!n)return e.toastService.show({severity:"error",text:e.translateService.instant("platform.angular_components.no_microphone_permission")}),void t.error("Microphone access is disabled");var o;e.microphoneStatus$.next("active"),e.isListening=!0,e.recognition.continuous=!0,e.recognition.interimResults=!0,e.recognition.maxAlternatives=1;var i="";e.recognition.onresult=function(n){e.ngZone.run((function(){void 0!==o&&clearTimeout(o),o=setTimeout((function(){e.recognition.stop()}),e.TIMEOUT_NO_MESSAGE);for(var r="",a=n.resultIndex;a<n.results.length;++a){var s=n.results[a][0].transcript;n.results[a].isFinal?i+=s+"\n":r+=s}r=r,t.next({text:i+r,isFinal:!1})}))},e.recognition.onerror=function(){e.ngZone.run((function(){void 0!==o&&clearTimeout(o),e.isListening=!1,t.error("Speech recognition error"),e.microphoneStatus$.next("inactive")}))},e.recognition.onend=function(){e.ngZone.run((function(){void 0!==o&&clearTimeout(o),t.next({text:i+"",isFinal:!0}),e.isListening=!1,t.complete(),e.microphoneStatus$.next("inactive")}))},e.recognition.start()})),t},e.prototype.stop=function(){this.recognition.stop()},e.prototype.setRecognition=function(){var e,t=this,n=window.SpeechRecognition||window.webkitSpeechRecognition;n?(this.hasSupportSpeechRecognition=!0,this.recognition=new n,this.recognition.lang=(null===(e=this.localeService.getLocaleOptions())||void 0===e?void 0:e.locale)||"pt-BR",this.recognition.interimResults=!1,this.recognition.maxAlternatives=1,this.localeService.getLocale().subscribe((function(e){return t.recognition.lang=e}))):console.warn("Speech recognition is not supported in this browser.")},Object.defineProperty(e.prototype,"hasMicrophoneAccess",{get:function(){var e=this;return new Promise((function(t){return ue(e,void 0,void 0,(function(){var e,n=this;return me(this,(function(o){switch(o.label){case 0:return[4,navigator.permissions.query({name:"microphone"})];case 1:if("denied"===(e=o.sent()).state)t(!1);else if("granted"===e.state)t(!0);else if("prompt"===e.state)try{navigator.mediaDevices.getUserMedia({audio:!0}).then((function(e){e.getTracks().forEach((function(e){return e.stop()}))})).catch((function(){t(!1)})),e.onchange=function(){n.ngZone.run((function(){t("granted"===e.state)}))}}catch(e){t(!1)}return[2]}}))}))}))},enumerable:!0,configurable:!0}),e.ctorParameters=function(){return[{type:Xe},{type:t.NgZone},{type:Ko},{type:b.TranslateService}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](Xe),t["ɵɵinject"](t.NgZone),t["ɵɵinject"](Ko),t["ɵɵinject"](b.TranslateService))},token:e,providedIn:"root"}),e=pe([t.Injectable({providedIn:"root"})],e)}(),Xi=function(){function n(e,t,n,o){this._iassistService=e,this._formBuilder=t,this._translateService=n,this.speechRecognitionService=o,this.isVisible=!1,this.isLoading=!1}return n.prototype.ngOnInit=function(){this._createDialogFields(),this._createDialogFormGroup()},n.prototype.showDialog=function(){this.isVisible=!0},n.prototype.onHideDialog=function(){this.formGroup.get("context").setValue("")},n.prototype.hideDialog=function(){this.isVisible=!1},n.prototype.submitContext=function(){var e=this,t=this.formGroup.get("context");this.isLoading=!0,this._iassistService.askIA(t.value,{id:this.field.id,label:this.field.label,placeholder:this.field.placeholder,prompt:this.field.prompt}).pipe(i.catchError((function(t){return e.isLoading=!1,o.throwError(t)}))).subscribe((function(t){e.formControl.setValue(t.text),e.isLoading=!1})),this.hideDialog()},n.prototype._createDialogFields=function(){var t,n;this.fields=[new Oo({name:"context",type:e.FieldType.Text,label:this._translateService.instant("platform.angular_components.context"),size:{sm:12,md:12,lg:12,xl:12},speechRecognition:null!==(t=this.field.speechRecognition)&&void 0!==t&&t,keepContext:null!==(n=this.field.keepContext)&&void 0!==n&&n,maxLength:this.field.maxLength})]},n.prototype._createDialogFormGroup=function(){this.formGroup=this._formBuilder.group({context:[""]})},n.ctorParameters=function(){return[{type:Zo},{type:a.FormBuilder},{type:b.TranslateService},{type:Zi}]},pe([t.Input()],n.prototype,"field",void 0),pe([t.Input()],n.prototype,"formControl",void 0),n=pe([t.Component({template:'<s-field-label [field]="field"\n *ngIf="textArea.renderTextArea"\n [fieldContainerRef]="textArea.textAreaElement?.nativeElement"></s-field-label>\n\n<s-loading-state\n [loading]="isLoading"\n [blockWindow]="true">\n</s-loading-state>\n\n<p-dialog\n [(visible)]="isVisible"\n [modal]="true"\n [style]="{ width: \'50vw\' }"\n [draggable]="false"\n [resizable]="false"\n (onHide)="onHideDialog()">\n <p-header>\n <div class="dialog-header">\n <span class="iassist-icon">\n <ng-container [ngTemplateOutlet]="iassistIcon"></ng-container>\n </span>\n IAssist - Content Generator\n </div>\n </p-header>\n <s-dynamic-form\n [fields]="fields"\n [form]="formGroup">\n </s-dynamic-form>\n <p-footer>\n <div class="footer-content">\n <s-button\n id="-submit-button"\n type="button"\n [label]="\'platform.angular_components.generate_text\' | translate"\n (onClick)="submitContext()"\n sTooltip="(ALT + SHIFT + S)"\n showDelay="500">\n </s-button>\n <s-button\n id="-cancel-button"\n type="button"\n priority="link"\n [label]="\'platform.angular_components.cancel\' | translate"\n (onClick)="hideDialog()"\n sTooltip="(ALT + SHIFT + C)"\n showDelay="500">\n </s-button>\n </div>\n </p-footer>\n</p-dialog>\n\n<div class="textarea-ia">\n <s-textarea\n #textArea\n [inputId]="(field.id || field.name)"\n [rows]="field.rows"\n [formControl]="formControl"\n [inputStyle]="field.style"\n [readOnly]="field.readonly ? field.readonly() : false"\n [speechRecognition]="field.speechRecognition"\n [placeholder]="field.placeholder"\n [keepContext]="field.keepContext"\n [speechRecognitionPlaceholder]="field.speechRecognitionPlaceholder"\n [maxLength]="field.maxLength"\n ></s-textarea>\n <button\n class="iassist-button"\n [class.speech-recognition]="field.speechRecognition && speechRecognitionService.hasSupportSpeechRecognition"\n (click)="showDialog()"\n sTooltip="IAssist - Content Generator">\n <ng-container [ngTemplateOutlet]="iassistIcon"></ng-container>\n </button>\n</div>\n\n<ng-template #iassistIcon>\n <svg style="width: 100%; height: 100%;" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M5.81451 18.1054L5.99593 17.6059L7.52166 13.4099L7.60877 13.1726L7.61277 13.1614L7.94285 12.2543L8.01159 12.0648L8.05394 11.949L5.2998 8.52426L5.02726 8.18379C5.00569 8.15821 4.9881 8.13104 4.97292 8.10226C4.90099 7.9632 4.85063 7.81294 4.82186 7.6531C4.73075 7.1344 4.90418 6.60771 5.28382 6.24326C5.29421 6.23447 5.3038 6.22567 5.31419 6.21688L5.47164 6.0914L9.3439 3.00238L9.5469 2.84094L9.57088 2.82096L10.4101 2.15041L11.8007 1.04188C11.2181 0.925188 10.6163 0.863647 10.0001 0.863647C4.95374 0.863647 0.863281 4.9541 0.863281 9.99963C0.863281 13.5346 2.87254 16.5989 5.80971 18.1182" fill="#0FA389"/>\n <path d="M14.099 1.83472L13.9495 2.24632L11.997 7.61074L11.9427 7.7594L11.9003 7.87369L14.7448 11.4103C14.7463 11.4127 14.7479 11.4143 14.7495 11.4167L14.9414 11.654C14.9541 11.67 14.9661 11.6868 14.9765 11.7044C15.0764 11.8698 15.1444 12.0505 15.1779 12.2431C15.273 12.7826 15.0812 13.3284 14.676 13.6897C14.656 13.7129 14.6345 13.7344 14.6105 13.7536L11.8563 15.9507L11.6789 16.0922L11.6022 16.1537L10.7406 16.8402V16.841L10.3937 17.1176L9.85747 17.5452L9.39951 17.9112L8.11035 18.9398C8.72016 19.0677 9.35155 19.1364 9.99973 19.1364C15.0461 19.1364 19.1365 15.046 19.1365 9.99964C19.1365 6.42789 17.0857 3.33727 14.099 1.83472Z" fill="#0FA389"/>\n <path d="M14.7287 12.3222C14.7047 12.1832 14.6551 12.0545 14.5864 11.941L14.3954 11.7036C14.3954 11.7036 14.3946 11.7028 14.3938 11.7028L11.3839 7.96005L10.5031 6.86511L10.4256 6.7676L9.03255 5.03487L8.83674 4.79191C8.79278 4.71678 8.75681 4.63446 8.73204 4.54814C8.72085 4.51058 8.71286 4.47222 8.70566 4.43465C8.68568 4.32196 8.68408 4.21007 8.69847 4.10217L8.62334 4.16291L8.44511 4.30438L5.75731 6.44871L5.60066 6.57339C5.34011 6.82275 5.20584 7.19279 5.27218 7.57482C5.29296 7.68751 5.32892 7.79541 5.37927 7.89292C5.37927 7.89292 5.37927 7.89292 5.38007 7.89371L5.6566 8.23818L8.57139 11.8627L8.63293 11.9394L9.53047 13.0559L9.59041 13.1303L9.98363 13.6186L11.0178 14.9046C11.0186 14.9054 11.0194 14.9069 11.0202 14.9077L11.1361 15.0516V15.0524C11.2184 15.1755 11.2768 15.317 11.3048 15.4728C11.3239 15.5807 11.3263 15.6878 11.3143 15.7925L11.3175 15.7965L11.3943 15.735L11.5717 15.5935L14.3266 13.3964L14.3218 13.3908C14.6335 13.1438 14.8022 12.7394 14.7287 12.3222Z" fill="#F3F3F5"/>\n <path d="M10.6822 15.0082C10.6814 15.0074 10.6806 15.0058 10.6806 15.005L10.5672 14.8643L10.3809 14.6325L10.3282 14.567L10.2211 14.4335L9.40028 13.4129L9.32835 13.3242L8.77289 12.6345L8.68098 12.5194L8.44121 12.2205L8.37168 12.4099L8.04159 13.317L8.0376 13.329L7.95128 13.5664L6.42475 17.7623L6.24333 18.2618L5.90605 19.1881L5.73262 19.6645C5.73182 19.6661 5.73102 19.6677 5.73102 19.6685C5.72863 19.6749 5.72703 19.6821 5.72543 19.6885C5.71584 19.7228 5.71424 19.758 5.72063 19.7948C5.74461 19.929 5.87329 20.0193 6.00836 19.9962C6.04112 19.9898 6.07229 19.9778 6.09867 19.9602C6.09867 19.9602 6.09947 19.9602 6.10027 19.9594L6.14103 19.9266L7.39422 18.9268L9.11496 17.5537L9.57292 17.1877L10.1092 16.7601L10.4561 16.4827L10.4537 16.4811C10.7582 16.2382 10.9236 15.8402 10.8509 15.4294C10.8237 15.2735 10.7654 15.1313 10.6822 15.0082Z" fill="#0C847B"/>\n <path d="M9.17644 4.56325C9.2124 4.68713 9.26915 4.80062 9.34268 4.90053C9.34348 4.90053 9.34428 4.90213 9.34428 4.90213L9.40342 4.97645C9.40502 4.97805 9.40582 4.97885 9.40662 4.98045L9.56806 5.17946L9.64878 5.28096L9.67915 5.31932L9.8414 5.51993L10.5559 6.40947L10.7054 6.59569L11.2169 7.23188L11.5142 7.60192L11.5693 7.45247L13.5202 2.08964L14.1596 0.332135C14.1596 0.330536 14.1604 0.328139 14.1612 0.32654C14.174 0.288177 14.1772 0.246617 14.17 0.205058C14.1468 0.0699879 14.0182 -0.0195258 13.8823 0.00365186C13.8407 0.0116442 13.8024 0.028428 13.7712 0.0540033L12.578 1.00589L12.498 1.06982L10.6958 2.50844L9.85658 3.17819L9.8326 3.19737L9.6296 3.35961L9.45297 3.50028C9.2116 3.73925 9.08692 4.08931 9.15006 4.44976C9.15726 4.48813 9.16525 4.52649 9.17644 4.56325Z" fill="#0C847B"/>\n </svg>\n</ng-template>\n',styles:[".footer-content{display:-ms-flexbox;display:flex;-ms-flex-positive:0;flex-grow:0}.textarea-ia{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;gap:8px}.textarea-ia s-textarea{width:100%}.iassist-button{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border:none;border-radius:50%;box-shadow:none;cursor:pointer;height:32px;width:32px}.dialog-header{display:-ms-flexbox;display:flex;gap:12px}.dialog-header .iassist-icon{display:block;height:24px;width:24px}.speech-recognition{margin-bottom:12.5px}"]})],n)}(),Ji=function(){function e(e){this.changeDetectorRef=e}return e.prototype.ngAfterViewInit=function(){this.changeDetectorRef.detectChanges()},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formControl",void 0),e=pe([t.Component({template:'<s-field-label *ngIf="textArea.textAreaElement" [field]="field"\n [fieldContainerRef]="textArea.textAreaElement?.nativeElement"></s-field-label>\n\n<s-textarea\n #textArea\n [inputId]="(field.id || field.name)"\n [rows]="field.rows"\n [formControl]="formControl"\n [inputStyle]="field.style"\n [readOnly]="field.readonly ? field.readonly() : false"\n [keyFilter]="field.keyFilter"\n [placeholder]="field.placeholder"\n [keepContext]="field.keepContext"\n [speechRecognitionPlaceholder]="field.speechRecognitionPlaceholder"\n [maxLength]="field.maxLength"\n [speechRecognition]="field.speechRecognition">\n</s-textarea>\n'})],e)}(),Qi=function(){function e(){}return pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"config",void 0),pe([t.Input()],e.prototype,"group",void 0),pe([t.Input()],e.prototype,"errorMessages",void 0),e=pe([t.Component({template:'\n <s-fieldset [toggleable]="true" (beforeToggle)="config.beforeToggle ? config.beforeToggle($event) : \'null\'"\n (afterToggle)="config.afterToggle ? config.afterToggle($event) : \'null\'">\n <s-header>{{config.header}}</s-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 </s-fieldset>\n '})],e)}(),er=function(){function e(){}return Object.defineProperty(e.prototype,"flexContainer",{get:function(){return this.config.isFlex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"configs",{get:function(){var e;return((null===(e=this.config)||void 0===e?void 0:e.configs)||[]).filter((function(e){return void 0===e.visible||e.visible()}))},enumerable:!0,configurable:!0}),pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"config",void 0),pe([t.Input()],e.prototype,"group",void 0),pe([t.Input()],e.prototype,"errorMessages",void 0),e=pe([t.Component({selector:"s-section",template:'\n <h3 *ngIf="config?.header" class="sds-section-title">{{config.header}}</h3>\n <section [class.flex-container]="flexContainer" [style.justify-content]="config.justifyContent" [style.align-items]="config.alignItems">\n <ng-container *ngFor="let conf of configs">\n <ng-container *sDynamicForm="{ id: id, config: conf, group: group, errorMessages: errorMessages }"></ng-container>\n </ng-container>\n </section>\n ',styles:["\n .flex-container {\n display: flex\n }\n\n :host {\n height: 100%\n }\n\n section {\n height: 100%;\n }\n "]})],e)}(),tr=function(){function n(){this.FieldType=e.FieldType}return n.prototype.getErrorMessages=function(e){return e?this.isFunction(e)?e():e:this.errorMessages},n.prototype.isFunction=function(e){return e instanceof Function},pe([t.Input()],n.prototype,"id",void 0),pe([t.Input()],n.prototype,"config",void 0),pe([t.Input()],n.prototype,"group",void 0),pe([t.Input()],n.prototype,"errorMessages",void 0),n=pe([t.Component({selector:"s-row",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 <ng-container *ngIf="field.type === FieldType.Custom && field.label" >\n <label *sInfoSign="field.infoSign; displayTime: field.displayTimeInfoSign; useFocusedInputRef: field.useInfoSignFocusedInputRef" [for]="field.name" [ngClass]="{ required: field.required() }" >\n {{ field.label }}\n </label>\n </ng-container>\n\n <ng-container *sDynamicForm="{ id: id, config: field, group: group}"></ng-container>\n\n <s-control-errors [form]="group" [control]="group.controls[field.name]"\n [errorMessages]="getErrorMessages(field.errorMessages)"></s-control-errors>\n\n <ng-container *ngIf="field.footer">\n <ng-container *ngIf="field.footer.help">\n <span *ngIf="field.footer.help.visible({ abstractControl: group.controls[field.name], formField: field })" style="color: #888B99">{{ field.footer.help.text }}</span>\n </ng-container>\n\n <ng-container *ngIf="field.footer.link">\n <div\n *ngIf="field.footer.link.visible({ abstractControl: group.controls[field.name], formField: field })"\n class="ui-g"\n style="margin-left: -17px"\n >\n <s-button\n [label]="field.footer.link.label"\n priority="link"\n (onClick)="field.footer.link.onClick({ abstractControl: group.controls[field.name], formField: field })"\n [auxiliary]="true"\n ></s-button>\n </div>\n </ng-container>\n </ng-container>\n\n <ng-template *ngIf="field?.bottomTemplate" [ngTemplateOutlet]="field.bottomTemplate"></ng-template>\n </div>\n </ng-container>\n </div>\n '})],n)}(),nr=function(){function n(){this.FieldType=e.FieldType}return n.prototype.getErrorMessages=function(e){return e?this.isFunction(e)?ce(ce({},this.errorMessages),e()):ce(ce({},this.errorMessages),e):this.errorMessages},n.prototype.isFunction=function(e){return e instanceof Function},pe([t.Input()],n.prototype,"id",void 0),pe([t.Input()],n.prototype,"fields",void 0),pe([t.Input()],n.prototype,"form",void 0),pe([t.Input()],n.prototype,"errorMessages",void 0),n=pe([t.Component({selector:"s-dynamic-field",template:'<div class="ui-fluid" [formGroup]="form">\n <div class="ui-g">\n <ng-container *ngFor="let field of fields">\n <div\n *ngIf="!field.visible || field.visible()"\n [ngClass]="field.gridClass">\n <ng-container *ngIf="field.ignoreLabel ? false : field.label && field.type === FieldType.Custom">\n <label\n *sInfoSign="field.infoSign; displayTime: field.displayTimeInfoSign; useFocusedInputRef: field.useInfoSignFocusedInputRef"\n [for]="field.name"\n [ngClass]="{ required: field.required() }"\n >\n {{ field.label }}\n </label>\n </ng-container>\n\n <ng-container\n *sDynamicForm="{\n id: id,\n config: field,\n group: form\n }"\n ></ng-container>\n\n <s-control-errors\n [form]="form"\n [control]="form.controls[field.name]"\n [errorMessages]="getErrorMessages(field.errorMessages)"\n ></s-control-errors>\n\n <ng-container *ngIf="field.footer">\n <ng-container *ngIf="field.footer.help">\n <span\n *ngIf="\n field.footer.help.visible({\n abstractControl: form.controls[field.name],\n formField: field\n })\n "\n style="color: #888b99"\n >\n {{ field.footer.help.text }}\n </span>\n </ng-container>\n\n <ng-container *ngIf="field.footer.link">\n <div\n *ngIf="\n field.footer.link.visible({\n abstractControl: form.controls[field.name],\n formField: field\n })\n "\n class="ui-g"\n style="margin-left: -10px"\n >\n <s-button\n [label]="field.footer.link.label"\n priority="link"\n (onClick)="\n field.footer.link.onClick({\n abstractControl:\n form.controls[field.name],\n formField: field\n })\n "\n [auxiliary]="true"\n ></s-button>\n </div>\n </ng-container>\n </ng-container>\n\n <ng-template\n *ngIf="field?.bottomTemplate"\n [ngTemplateOutlet]="field.bottomTemplate"\n ></ng-template>\n </div>\n </ng-container>\n </div>\n</div>\n'})],n)}(),or=function(n){function r(e,i){var r=n.call(this)||this;return r.localeService=e,r.changeDetectorRef=i,r.onInput=new t.EventEmitter,r.onFocus=new t.EventEmitter,r.onComplete=new t.EventEmitter,r.ngUnsubscribe=new o.Subject,r}return le(r,n),r.prototype.ngOnInit=function(){var e=this;this.onLocaleService(),this.onFocus.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onFocus&&e.field.onFocus(t)})),this.onInput.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onInput&&e.field.onInput(t)})),this.onComplete.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onComplete&&e.field.onComplete(t)})),this.onScale()},r.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},Object.defineProperty(r.prototype,"fieldType",{get:function(){return e.FieldType},enumerable:!0,configurable:!0}),r.prototype.onLocaleService=function(){var t=this;this.localeService.getLocale().pipe(i.first()).subscribe({next:function(){var n,o,i;(null===(n=t.field.numberLocaleOptions)||void 0===n?void 0:n.decimalSeparator)||(t.field.numberLocaleOptions=ce(ce({},t.field.numberLocaleOptions),{decimalSeparator:t.localeService.getDecimalSeparator()})),(null===(o=t.field.numberLocaleOptions)||void 0===o?void 0:o.thousandsSeparator)||(t.field.numberLocaleOptions=ce(ce({},t.field.numberLocaleOptions),{thousandsSeparator:t.localeService.getGroupingSeparator()})),(null===(i=t.field.numberLocaleOptions)||void 0===i?void 0:i.currencySymbol)||(t.field.numberLocaleOptions=ce(ce({},t.field.numberLocaleOptions),{currencySymbol:t.field.type===e.FieldType.Integer||t.field.type===e.FieldType.Double?"":"R$"}))},error:function(){var n;return t.field.numberLocaleOptions=null!==(n=t.field.numberLocaleOptions)&&void 0!==n?n:{thousandsSeparator:".",decimalSeparator:",",currencySymbol:t.field.type===e.FieldType.Integer||t.field.type===e.FieldType.Double?"":"R$"}}})},r.prototype.onScale=function(){Se(this.field.scale)&&(this.field.scale=this.field.type===e.FieldType.Integer?0:2)},r.prototype.ngAfterViewInit=function(){this.changeDetectorRef.detectChanges()},r.ctorParameters=function(){return[{type:Xe},{type:t.ChangeDetectorRef}]},pe([t.Input()],r.prototype,"field",void 0),pe([t.Input()],r.prototype,"formControl",void 0),pe([t.Output()],r.prototype,"onInput",void 0),pe([t.Output()],r.prototype,"onFocus",void 0),pe([t.Output()],r.prototype,"onComplete",void 0),pe([t.ViewChild("inputRef")],r.prototype,"inputRef",void 0),r=pe([t.Component({template:'<s-field-label *ngIf="inputRef" [field]="field"\n [fieldContainerRef]="inputRef?.nativeElement"></s-field-label>\n \n<p-inputMask #inputRef\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 [sTooltip]="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 [autoClear]="field.autoClear">\n</p-inputMask>\n\n<ng-template #noMask>\n <ng-container>\n <div class="ui-inputgroup">\n <ng-container *ngIf="field.leftAddon">\n <span *ngIf="field.leftAddon.callback" class="addon-button addon-button--left">\n <s-button\n [label]="field.leftAddon.label"\n [iconClass]="field.leftAddon.icon"\n [priority]="field.leftAddon.priority"\n [disabled]="isFunction(field.leftAddon.disabled) ? field.leftAddon.disabled() : field.leftAddon.disabled"\n (onClick)="field.leftAddon.callback()">\n </s-button>\n </span>\n <span *ngIf="!field.leftAddon.callback" 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 #inputRef\n [id]="(field.id || field.name)"\n type="text"\n [name]="field.name"\n sBignumberInput\n [allowNegative]="field.allowNegative"\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 [sTooltip]="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 <ng-container *ngIf="field.rightAddon">\n <span *ngIf="field.rightAddon.callback" class="addon-button addon-button--right">\n <s-button\n [label]="field.rightAddon.label"\n [iconClass]="field.rightAddon.icon"\n [priority]="field.rightAddon.priority"\n [disabled]="isFunction(field.rightAddon.disabled) ? field.rightAddon.disabled() : field.rightAddon.disabled"\n (onClick)="field.rightAddon.callback()">\n </s-button>\n </span>\n <span *ngIf="!field.rightAddon.callback" 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',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}.addon-button{border:1px solid #c1c1cc}.addon-button s-button .s-button-with-text,.addon-button s-button button{height:100%;min-width:40px!important}.addon-button--left{border-radius:5px 0 0 5px;border-right:none}.addon-button--left s-button button{border-bottom-right-radius:0;border-top-right-radius:0}.addon-button--right{border-left:none;border-radius:0 5px 5px 0}.addon-button--right s-button button{border-bottom-left-radius:0;border-top-left-radius:0}"]})],r)}(Jn),ir=function(e){function n(t,n,o){var i=e.call(this)||this;return i.currencyService=t,i.localeService=n,i.changeDetectorRef=o,i}return le(n,e),n.prototype.ngOnInit=function(){this.onLocaleService()},n.prototype.onLocaleService=function(){var e=this;this.localeService.getLocale().pipe(i.first()).subscribe({next:function(){var t,n,o;(null===(t=e.field.numberLocaleOptions)||void 0===t?void 0:t.decimalSeparator)||(e.field.numberLocaleOptions=ce(ce({},e.field.numberLocaleOptions),{decimalSeparator:e.localeService.getDecimalSeparator()})),(null===(n=e.field.numberLocaleOptions)||void 0===n?void 0:n.thousandsSeparator)||(e.field.numberLocaleOptions=ce(ce({},e.field.numberLocaleOptions),{thousandsSeparator:e.localeService.getGroupingSeparator()})),(null===(o=e.field.numberLocaleOptions)||void 0===o?void 0:o.currencySymbol)||(e.field.numberLocaleOptions=ce(ce({},e.field.numberLocaleOptions),{currencySymbol:"R$"}))},error:function(){var t;return e.field.numberLocaleOptions=null!==(t=e.field.numberLocaleOptions)&&void 0!==t?t:{thousandsSeparator:".",decimalSeparator:",",currencySymbol:"R$"}}})},n.prototype.ngAfterViewInit=function(){this.changeDetectorRef.detectChanges()},n.ctorParameters=function(){return[{type:pt},{type:Xe},{type:t.ChangeDetectorRef}]},pe([t.Input()],n.prototype,"field",void 0),pe([t.Input()],n.prototype,"formControl",void 0),pe([t.ViewChild("inputRef")],n.prototype,"inputRef",void 0),n=pe([t.Component({template:'<s-field-label *ngIf="inputRef" [field]="field"\n [fieldContainerRef]="inputRef?.nativeElement"></s-field-label>\n\n<div class="ui-inputgroup">\n <span\n *ngIf="field.currency || field.numberLocaleOptions?.currencySymbol"\n class="ui-inputgroup-addon"\n >\n {{\n field.currency\n ? currencyService.getCurrencySymbol({\n currency: field.currency()\n })\n : field.numberLocaleOptions.currencySymbol\n }}\n </span>\n <input #inputRef\n *ngIf="!field.mask"\n type="text"\n [id]="field.id || field.name"\n [name]="field.name"\n [formControl]="formControl"\n sNumberInput\n [precision]="\n field.precision\n ? isFunction(field.precision)\n ? trigger(field.precision)\n : field.precision\n : field.currency && field.currency()\n ? currencyService.currencies[field.currency()].precision\n : 15\n "\n [scale]="\n field.scale\n ? isFunction(field.scale)\n ? trigger(field.scale)\n : field.scale\n : field.currency && field.currency()\n ? currencyService.currencies[field.currency()].scale\n : 2\n "\n [decimalSeparator]="field.numberLocaleOptions.decimalSeparator"\n [thousandsSeparator]="field.numberLocaleOptions.thousandsSeparator"\n [alignTo]="field.alignTo"\n [sTooltip]="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 <p-inputMask #inputRef\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 [sTooltip]="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)}(Jn),rr=function(){function e(e){this.changeDetectorRef=e,this.onInput=new t.EventEmitter,this.onFocus=new t.EventEmitter,this.onComplete=new t.EventEmitter,this.ngUnsubscribe=new o.Subject,this.passwordVisible=!1}return e.prototype.ngOnInit=function(){var e=this;this.onFocus.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onFocus&&e.field.onFocus(t)})),this.onInput.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onInput&&e.field.onInput(t)})),this.onComplete.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onComplete&&e.field.onComplete(t)}))},e.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},e.prototype.onChangeVisible=function(){this.passwordVisible=!this.passwordVisible},e.prototype.ngAfterViewInit=function(){this.changeDetectorRef.detectChanges()},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formControl",void 0),pe([t.Output()],e.prototype,"onInput",void 0),pe([t.Output()],e.prototype,"onFocus",void 0),pe([t.Output()],e.prototype,"onComplete",void 0),pe([t.ViewChild("inputRef")],e.prototype,"inputRef",void 0),e=pe([t.Component({template:'<s-field-label *ngIf="inputRef" [field]="field" [fieldContainerRef]="inputRef"></s-field-label>\n\n<div class="password-field" [ngClass]="{ \'password-field--toggle\': field.showToggle }">\n <input\n #inputRef\n [type]="passwordVisible ? \'text\' : \'password\'"\n [id]="field.id || field.name"\n class="password-input"\n [name]="field.name"\n [sTooltip]="field.tooltip"\n tooltipPosition="top"\n [placeholder]="field.placeholder"\n [showDelay]="500"\n [maxLength]="field.maxLength"\n pInputText\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 [sPasswordStrength]="field.passwordStrength"\n [psDescription]="field.passwordStrengthOptions?.description"\n [psWeakTitle]="field.passwordStrengthOptions?.weakTitle"\n [psMediumTitle]="field.passwordStrengthOptions?.mediumTitle"\n [psStrongTitle]="field.passwordStrengthOptions?.strongTitle"\n [psValidation]="field.passwordStrengthOptions?.validation"\n />\n <span *ngIf="field.showToggle" class="toggle-button">\n <s-button\n [iconClass]="passwordVisible ? \'fas fa-eye-slash\' : \'fas fa-eye\'"\n styleClass="password-field-button"\n priority="default"\n (onClick)="onChangeVisible()"\n >\n </s-button>\n </span>\n</div>\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}.password-field{display:-ms-flexbox;display:flex}.password-field--toggle .password-input{border-top-right-radius:0;border-bottom-right-radius:0;border-right:none!important}.password-field--toggle .toggle-button s-button button{border-bottom-left-radius:0;border-top-left-radius:0}"]})],e)}(),ar=function(e){function n(n){var i=e.call(this)||this;return i.changeDetectorRef=n,i.onInput=new t.EventEmitter,i.onFocus=new t.EventEmitter,i.onComplete=new t.EventEmitter,i.ngUnsubscribe=new o.Subject,i}return le(n,e),n.prototype.ngOnInit=function(){var e=this;this.onFocus.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onFocus&&e.field.onFocus(t)})),this.onInput.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onInput&&e.field.onInput(t)})),this.onComplete.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onComplete&&e.field.onComplete(t)}))},n.prototype.ngAfterViewInit=function(){this.changeDetectorRef.detectChanges()},n.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},Object.defineProperty(n.prototype,"inputElement",{get:function(){var e,t;return this.inputRef instanceof N.InputMask?null===(t=null===(e=this.inputRef)||void 0===e?void 0:e.inputViewChild)||void 0===t?void 0:t.nativeElement:this.inputRef},enumerable:!0,configurable:!0}),n.prototype.getCharacterPattern=function(){return"function"==typeof this.field.characterPattern?this.field.characterPattern():this.field.characterPattern},n.prototype.getUnmask=function(){return"function"==typeof this.field.unmask?this.field.unmask():this.field.unmask},n.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},pe([t.Input()],n.prototype,"field",void 0),pe([t.Input()],n.prototype,"formControl",void 0),pe([t.Output()],n.prototype,"onInput",void 0),pe([t.Output()],n.prototype,"onFocus",void 0),pe([t.Output()],n.prototype,"onComplete",void 0),pe([t.ViewChild("inputRef")],n.prototype,"inputRef",void 0),n=pe([t.Component({template:'<s-field-label *ngIf="inputElement" [field]="field" [fieldContainerRef]="inputElement"></s-field-label>\n\n<p-inputMask\n #inputRef\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 [characterPattern]="getCharacterPattern()"\n [unmask]="getUnmask()"\n [placeholder]="field.placeholder"\n slotChar="_"\n [sTooltip]="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 [readonly]="field.readonly ? field.readonly() : false"\n [autocomplete]="field.browserAutocomplete ? \'on\' : \'off\'"\n>\n</p-inputMask>\n\n<ng-template #noMask>\n <ng-container>\n <div class="ui-inputgroup">\n <ng-container *ngIf="field.leftAddon">\n <span *ngIf="field.leftAddon.callback" class="addon-button addon-button--left">\n <s-button\n [label]="field.leftAddon.label"\n [iconClass]="field.leftAddon.icon"\n [priority]="field.leftAddon.priority"\n [disabled]="isFunction(field.leftAddon.disabled) ? field.leftAddon.disabled() : field.leftAddon.disabled"\n (onClick)="field.leftAddon.callback()"\n >\n </s-button>\n </span>\n <span *ngIf="!field.leftAddon.callback" 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 *ngIf="field.rightAddon.callback" class="addon-button addon-button--right">\n <s-button\n [label]="field.rightAddon.label"\n [iconClass]="field.rightAddon.icon"\n [priority]="field.rightAddon.priority"\n [disabled]="isFunction(field.rightAddon.disabled) ? field.rightAddon.disabled() : field.rightAddon.disabled"\n (onClick)="field.rightAddon.callback()"\n >\n </s-button>\n </span>\n <span *ngIf="!field.rightAddon.callback" 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 #inputRef\n [type]="field.inputType || \'text\'"\n [id]="field.id || field.name"\n [name]="field.name"\n [sTooltip]="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 [readOnly]="field.readonly ? field.readonly() : false"\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 [sTooltip]="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 [readOnly]="field.readonly ? field.readonly() : false"\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}.addon-button{border:1px solid #c1c1cc}.addon-button s-button .s-button-with-text,.addon-button s-button button{height:100%;min-width:40px}.addon-button--left{border-radius:5px 0 0 5px;border-right:none}.addon-button--left s-button button{border-bottom-right-radius:0;border-top-right-radius:0}.addon-button--right{border-left:none;border-radius:0 5px 5px 0}.addon-button--right s-button button{border-bottom-left-radius:0;border-top-left-radius:0}"]})],n)}(Jn),sr=function(){function e(){}return pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formControl",void 0),e=pe([t.Component({template:'<s-checkbox\n [data]="field.data"\n [formControl]="formControl">\n</s-checkbox>'})],e)}(),lr=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return le(n,e),pe([t.Input()],n.prototype,"field",void 0),pe([t.Input()],n.prototype,"formControl",void 0),n=pe([t.Component({template:'<s-field-label [field]="field"></s-field-label>\n\n<p-editor\n [formControl]="formControl"\n [formats]="field.formats"\n [readonly]="field.readonly"\n [modules]="field.modules"\n [style]="field.style">\n</p-editor>'})],n)}(Jn),cr=function(n){function r(e,i,r){var a=n.call(this)||this;return a.localeService=e,a.elementRef=i,a.changeDetectorRef=r,a.onInput=new t.EventEmitter,a.onFocus=new t.EventEmitter,a.onComplete=new t.EventEmitter,a.ngUnsubscribe=new o.Subject,a}return le(r,n),r.prototype.ngOnInit=function(){var e=this;this.onLocaleService(),this.onFocus.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onFocus&&e.field.onFocus(t)})),this.onInput.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onInput&&e.field.onInput(t)})),this.onComplete.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onComplete&&e.field.onComplete(t)}))},r.prototype.ngAfterViewInit=function(){this.setInputRef(),this.changeDetectorRef.detectChanges()},r.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},Object.defineProperty(r.prototype,"numberAlignmentOption",{get:function(){return e.NumberAlignmentOption},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"fieldType",{get:function(){return e.FieldType},enumerable:!0,configurable:!0}),r.prototype.onLocaleService=function(){var e=this;this.localeService.getLocale().pipe(i.first()).subscribe({next:function(){var t,n,o;(null===(t=e.field.numberLocaleOptions)||void 0===t?void 0:t.decimalSeparator)||(e.field.numberLocaleOptions=ce(ce({},e.field.numberLocaleOptions),{decimalSeparator:e.localeService.getDecimalSeparator()})),(null===(n=e.field.numberLocaleOptions)||void 0===n?void 0:n.thousandsSeparator)||(e.field.numberLocaleOptions=ce(ce({},e.field.numberLocaleOptions),{thousandsSeparator:e.localeService.getGroupingSeparator()})),(null===(o=e.field.numberLocaleOptions)||void 0===o?void 0:o.currencySymbol)||(e.field.numberLocaleOptions=ce(ce({},e.field.numberLocaleOptions),{currencySymbol:"R$"}))},error:function(){var t;return e.field.numberLocaleOptions=null!==(t=e.field.numberLocaleOptions)&&void 0!==t?t:{thousandsSeparator:".",decimalSeparator:",",currencySymbol:"R$"}}})},r.prototype.setInputRef=function(){var e=this.elementRef.nativeElement.querySelector("input");this.inputRef=e},r.ctorParameters=function(){return[{type:Xe},{type:t.ElementRef},{type:t.ChangeDetectorRef}]},pe([t.Input()],r.prototype,"field",void 0),pe([t.Input()],r.prototype,"formControl",void 0),pe([t.Output()],r.prototype,"onInput",void 0),pe([t.Output()],r.prototype,"onFocus",void 0),pe([t.Output()],r.prototype,"onComplete",void 0),r=pe([t.Component({template:'<s-field-label *ngIf="inputRef" [field]="field"\n [fieldContainerRef]="inputRef"></s-field-label>\n\n<p-inputMask #inputRef\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 [unmask]="true"\n [placeholder]="field.placeholder"\n slotChar="_"\n [sTooltip]="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<ng-template #noMask>\n <ng-container>\n <div class="ui-inputgroup">\n <ng-container *ngIf="field.leftAddon">\n <span *ngIf="field.leftAddon.callback" class="addon-button addon-button--left">\n <s-button\n [label]="field.leftAddon.label"\n [iconClass]="field.leftAddon.icon"\n [priority]="field.leftAddon.priority"\n [disabled]="isFunction(field.leftAddon.disabled) ? field.leftAddon.disabled() : field.leftAddon.disabled"\n (onClick)="field.leftAddon.callback()">\n </s-button>\n </span>\n <span *ngIf="!field.leftAddon.callback" 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 *ngIf="field.rightAddon.callback" class="addon-button addon-button--right">\n <s-button\n [label]="field.rightAddon.label"\n [iconClass]="field.rightAddon.icon"\n [priority]="field.rightAddon.priority"\n [disabled]="isFunction(field.rightAddon.disabled) ? field.rightAddon.disabled() : field.rightAddon.disabled"\n (onClick)="field.rightAddon.callback()">\n </s-button>\n </span>\n <span *ngIf="!field.rightAddon.callback" 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<ng-template #input>\n <input #inputRef\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 [sTooltip]="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</ng-template>\n<ng-template #localizedNumber>\n <input #inputRef\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 [sTooltip]="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</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}.addon-button{border:1px solid #c1c1cc}.addon-button s-button .s-button-with-text,.addon-button s-button button{height:100%;min-width:40px}.addon-button--left{border-radius:5px 0 0 5px;border-right:none}.addon-button--left s-button button{border-bottom-right-radius:0;border-top-right-radius:0}.addon-button--right{border-left:none;border-radius:0 5px 5px 0}.addon-button--right s-button button{border-bottom-left-radius:0;border-top-left-radius:0}"]})],r)}(Jn),pr=function(){function e(){}return pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formControl",void 0),e=pe([t.Component({template:'<s-field-label [field]="field"></s-field-label>\n\n<s-profile-picture-picker\n [formControl]="formControl"\n [simpleTitle]="field.simpleTitle"\n [actionTitle]="field.actionTitle"\n [subtitle]="field.subtitle"\n [aspectRatio]="field.aspectRatio"\n [cropperLabelsConfig]="field.cropperLabelsConfig"\n [removeButtonLabel]="field.removeButtonLabel"\n [changeButtonLabel]="field.changeButtonLabel"\n [confirmationTexts]="field.confirmationTexts"\n [maxFileSize]="field.maxFileSize"\n [accept]="field.accept"\n [supportedExtensions]="field.supportedExtensions"\n (changedImage)="field.onChangeImage ? field.onChangeImage($event) : null"\n (removedImage)="field.onRemovedImage ? field.onRemovedImage() : null"\n (invalidFile)="field.onInvalidFile ? field.onInvalidFile($event) : null">\n</s-profile-picture-picker>'})],e)}(),dr=function(){function e(){}return e.prototype.clickedButton=function(e){this.field.onClick&&this.field.onClick(e)},e.prototype.handleMouseEnter=function(){this.field.mouseEnter&&this.field.mouseEnter(this.field)},e.prototype.handleMouseLeave=function(){this.field.mouseLeave&&this.field.mouseLeave(this.field)},pe([t.Input()],e.prototype,"field",void 0),e=pe([t.Component({selector:"s-button-field",template:'<section [class.full-width]="field.fullWidth" [class.fit-content]="!field.fullWidth">\n <s-button\n [label]="field.label"\n [priority]="field.priority"\n [iconClass]="field.iconClass"\n [disabled]="field.disabled"\n [auxiliary]="field.auxiliary"\n [caret]="field.caret"\n [id]="field.id"\n [tooltip]="field.tooltip"\n (onClick)="clickedButton($event)"\n [iconColor]="field.iconColor"\n [badge]="field.badge"\n [animation]="field.animation"\n [slide]="field.slide"\n [menuOptions]="field.menuOptions"\n [model]="field.model"\n [baseZIndex]="field.baseZIndex"\n [styleClass]="field.styleClass"\n [rightIconClass]="field.rightIconClass"\n [tooltipPosition]="field.tooltipPosition"\n [type]="field.buttonType"\n [size]="field.buttonSize"\n (mouseenter)="handleMouseEnter()"\n (mouseleave)="handleMouseLeave()">\n </s-button>\n</section>\n',styles:["section{height:100%;display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end}section.full-width{width:100%}section.fit-content{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}"]})],e)}(),ur=function(e){var t=e.group,n=e.errorMessages;this.group=t,this.errorMessages=n},mr=function(t){function n(e){var n=e.group,o=e.field,i=e.errorMessages,r=t.call(this,{group:n,errorMessages:i})||this;return r.field=o,r}return le(n,t),n.prototype.createComponent=function(e,t){var n=e.resolveComponentFactory(this.getComponent()),o=t.createComponent(n);return o.instance.field=this.field,o.instance.formControl=this.group.controls[this.field.name],this._switchEmptyStringToNull(o),o.instance.errorMessages=this.errorMessages,this.setVariablesByType(o),o},n.prototype._switchEmptyStringToNull=function(t){switch(t.instance.field.type){case e.FieldType.Password:case e.FieldType.String:case e.FieldType.Text:case e.FieldType.TextIA:var n=t.instance.formControl.valueChanges.subscribe((function(e){""===e&&t.instance.formControl.setValue(null,{emitEvent:!1})}));return void t.onDestroy((function(){n.unsubscribe()}))}},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 Ni;case e.FieldType.Binary:case e.FieldType.String:return ar;case e.FieldType.Boolean:return"switch"===this.field.representedBy?Ui:zi;case e.FieldType.Checkbox:return sr;case e.FieldType.Chips:return Hi;case e.FieldType.CountryPhonePicker:return $i;case e.FieldType.Date:case e.FieldType.DateTime:case e.FieldType.LocalDateTime:case e.FieldType.Time:return ji;case e.FieldType.Number:case e.FieldType.Integer:case e.FieldType.Double:return or;case e.FieldType.Enum:return Yi;case e.FieldType.Lookup:return qi;case e.FieldType.Money:return ir;case e.FieldType.Radio:return Wi;case e.FieldType.Text:return Ji;case e.FieldType.TextIA:return Xi;case e.FieldType.Password:return rr;case e.FieldType.Blob:return Gi;case e.FieldType.Slider:return Ki;case e.FieldType.ProfilePicture:return pr;case e.FieldType.Editor:return lr;case e.FieldType.Button:return dr;case e.FieldType.Custom:return this.field.CustomFieldComponentClass;default:throw new Error("Trying to use an unsupported type ("+this.field.type+").")}},n}(ur),hr=function(t){function n(e){var n=e.group,o=e.config,i=e.errorMessages,r=t.call(this,{group:n,errorMessages:i})||this;return r.config=o,r}return le(n,t),n.prototype.createComponent=function(e,t){var n=e.resolveComponentFactory(this.getComponent()),o=t.createComponent(n);return o.instance.config=this.config,o.instance.group=this.group,o},n.prototype.updateVariables=function(e){e.instance.structure=this.config,e.instance.group=this.group},n.prototype.getComponent=function(){switch(this.config.type){case e.StructureType.Fieldset:return Qi;case e.StructureType.Section:return er;default:throw new Error("Trying to use an unsupported type ("+this.config.type+").")}},n}(ur),fr=function(t){function n(e){var n=e.group,o=e.config,i=e.errorMessages,r=t.call(this,{group:n,errorMessages:i})||this;return r.config=o,r}return le(n,t),n.prototype.createComponent=function(e,t){var n=e.resolveComponentFactory(this.getComponent()),o=t.createComponent(n);return o.instance.config=this.config,o.instance.group=this.group,o.instance.errorMessages=this.errorMessages,o},n.prototype.updateVariables=function(e){e.instance.config=this.config,e.instance.group=this.group},n.prototype.getComponent=function(){switch(this.config.type){case e.GridType.Row:return tr;default:throw new Error("Trying to use an unsupported type ("+this.config.type+").")}},n}(ur),gr=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,o=e.group,i=e.errorMessages;this.id=t,this.config=n,this.group=o,this.errorMessages=i},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 mr({group:this.group,field:this.config,errorMessages:this.errorMessages});else if(this.isStructure())this.directiveConfig=new hr({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 fr({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.ngOnDestroy=function(){this.component.destroy()},n.prototype.isField=function(){return e.FieldType[this.config.type]},n.prototype.isStructure=function(){return e.StructureType[this.config.type]},n.prototype.isGrid=function(){return e.GridType[this.config.type]},n.ctorParameters=function(){return[{type:t.ComponentFactoryResolver},{type:t.ViewContainerRef}]},pe([t.Input()],n.prototype,"sDynamicForm",null),n=pe([t.Directive({selector:"[sDynamicForm]"})],n)}(),vr=function(){function e(){}return pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"fieldContainerRef",void 0),e=pe([t.Component({selector:"s-field-label",template:'\x3c!--\n Caso esse componente seja alterado/removido/movido,\n alterar a label no row.component.ts e dynamic-field.component.ts\n--\x3e\n\n<span *ngIf="field.label">\n <label\n *sInfoSign="field.infoSign; displayTime: field.displayTimeInfoSign; focusedInputRef: fieldContainerRef; useFocusedInputRef: field.useInfoSignFocusedInputRef"\n [for]="field.name"\n [ngClass]="{ required: field.required() }"\n >\n {{ field.label }}\n </label>\n</span>\n'})],e)}(),br=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,je],declarations:[vr],exports:[vr]})],e)}(),yr=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,Ft,ft,Re,N.InputMaskModule,z.InputTextModule,br],declarations:[or],exports:[or]})],e)}(),xr=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,Ht],declarations:[sr],exports:[sr]})],e)}(),_r=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,fo,Re,N.InputMaskModule,z.InputTextModule,br],declarations:[ir],exports:[ir]})],e)}(),wr=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,X.EditorModule,br],declarations:[lr],exports:[lr]})],e)}(),Cr=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,yi,fo,Ft,Re,N.InputMaskModule,z.InputTextModule,br],declarations:[cr],exports:[cr]})],e)}(),kr=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,Ft,Re,Si,z.InputTextModule,br],declarations:[rr],exports:[rr]})],e)}(),Ir=function(){function e(){}return pe([t.ViewChild("headerTemplate",{static:!0})],e.prototype,"template",void 0),e=pe([t.Component({selector:"s-header",template:"\n <ng-template #headerTemplate>\n <ng-content></ng-content>\n </ng-template>"})],e)}(),Sr=function(){function e(){}return e=pe([t.Component({selector:"s-footer",template:"<ng-content></ng-content>"})],e)}(),Tr=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[Ir,Sr],exports:[Ir,Sr]})],e)}(),Er=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 ee(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"),o=e.width,i=e.height;return t.width=o,t.height=i,n.imageSmoothingEnabled=!0,n.drawImage(e,0,0,o,i),n.globalCompositeOperation="destination-in",n.beginPath(),n.arc(o/2,i/2,Math.min(o,i)/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,pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"visible",void 0),pe([t.Input()],e.prototype,"header",void 0),pe([t.Input()],e.prototype,"cropLabel",void 0),pe([t.Input()],e.prototype,"selectAnotherLabel",void 0),pe([t.Input()],e.prototype,"removeLabel",void 0),pe([t.Input()],e.prototype,"cancelLabel",void 0),pe([t.Input()],e.prototype,"emptyStateTitle",void 0),pe([t.Input()],e.prototype,"emptyStateActionLabel",void 0),pe([t.Input()],e.prototype,"emptyStateIconClass",void 0),pe([t.Input()],e.prototype,"aspectRatio",void 0),pe([t.Input()],e.prototype,"rounded",void 0),pe([t.Input()],e.prototype,"allowSelectAnother",void 0),pe([t.Input()],e.prototype,"allowRemove",void 0),pe([t.Input()],e.prototype,"allowCancel",void 0),pe([t.Input()],e.prototype,"imageSource",void 0),pe([t.Output()],e.prototype,"visibleChange",void 0),pe([t.Output()],e.prototype,"changeImage",void 0),pe([t.Output()],e.prototype,"croppedImage",void 0),pe([t.Output()],e.prototype,"croppedCanvas",void 0),pe([t.Output()],e.prototype,"removedImage",void 0),pe([t.Output()],e.prototype,"cancel",void 0),pe([t.ViewChild("image",{static:!0})],e.prototype,"image",void 0),pe([t.ContentChild(Ir,{static:!0})],e.prototype,"headerSection",void 0),pe([t.ContentChild(Sr,{static:!0})],e.prototype,"footerSection",void 0),e=n=pe([t.Component({selector:"s-image-cropper",template:'<div [id]="id">\n <p-dialog\n styleClass="s-image-cropper {{rounded ? \'s-image-cropper--rounded\' : \'\'}}"\n [header]="headerSection ? \'\' : header"\n [visible]="visible"\n (visibleChange)="onModalVisibleChange($event)"\n [modal]="true"\n [blockScroll]="true"\n [draggable]="false"\n [resizable]="false"\n [closeOnEscape]="allowCancel"\n [closable]="allowCancel"\n appendTo="body">\n\n <p-header *ngIf="headerSection">\n <ng-content select="s-header"></ng-content>\n </p-header>\n\n <s-empty-state\n [id]="id + \'-empty-state\'"\n *ngIf="!imageSource"\n [title]="emptyStateTitle"\n [iconClass]="emptyStateIconClass"\n [primaryActionLabel]="emptyStateActionLabel"\n (primaryAction)="onChangeImage()">\n </s-empty-state>\n\n <div [attr.data-hidden]="!imageSource" class="image-container">\n <img\n [id]="id + \'-cropper\'"\n #image\n [src]="imageSource || \'\'"\n alt="cropped image"/>\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\n [id]="id + \'-cancel-button\'"\n type="button"\n priority="link"\n [label]="cancelLabel"\n (onClick)="onCancel()">\n </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\n [id]="id + \'-remove-button\'"\n type="button"\n priority="secondary"\n [label]="removeLabel"\n (onClick)="onRemoveImage()">\n </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\n [id]="id + \'-select-another-button\'"\n type="button"\n priority="secondary"\n [label]="selectAnotherLabel"\n (onClick)="onChangeImage()">\n </s-button>\n </div>\n\n <div class="ui-sm-12 ui-md-3 ui-lg-2 ui-xl-2">\n <s-button\n [id]="id + \'-crop-button\'"\n type="button"\n [label]="cropLabel"\n (onClick)="onCropImage()">\n </s-button>\n </div>\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.6.2\n * https://fengyuanchen.github.io/cropperjs\n *\n * Copyright 2015-present Chen Fengyuan\n * Released under the MIT license\n *\n * Date: 2024-04-21T07:43:02.731Z\n */.cropper-container{-webkit-touch-callout:none;direction:ltr;font-size:0;line-height:0;position:relative;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.cropper-container img{-webkit-backface-visibility:hidden;backface-visibility:hidden;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;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{width:80%!important}}@media (min-width:1200px){.s-image-cropper{width:60%!important}}']})],e)}(),Mr=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,O.DialogModule,Ft,Qo,Tr],declarations:[Er],exports:[Er,Tr],entryComponents:[Er]})],e)}(),Lr=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(Er).create(this.injector),ngUnsubscribe:new o.Subject};this.activeCropper=n,this.appRef.attachView(n.componentRef.hostView);var r=n.componentRef.hostView.rootNodes[0];document.body.appendChild(r),this.configureInstance(n,e),n.componentRef.instance.visible=!0,n.componentRef.instance.visibleChange.pipe(i.takeUntil(this.activeCropper.ngUnsubscribe),i.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(o){var r=t[o];"function"!=typeof r?n[o]=r:"function"==typeof r&&n[o].pipe(i.takeUntil(e.ngUnsubscribe)).subscribe((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t[o].apply(t,ge(e))}))})),n.visibleChange.pipe(i.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=pe([t.Injectable()],e)}();(Oi=e.ThumbnailSize||(e.ThumbnailSize={})).Small="small",Oi.Medium="medium",Oi.Large="large";var Fr,Or=function(){function e(){}return e.prototype.getBinaryFile=function(e){var t=this;return new Promise((function(n){var o=t.getOrientation.bind(t),i=new XMLHttpRequest;i.addEventListener("load",(function(){if(4===i.readyState&&(200==i.status||0===i.status)){var e=o(i.response);i=null,n(e)}})),i.addEventListener("error",(function(){throw i=null,new Error("Não foi possível carregar a imagem")})),i.open("GET",e.src,!0),i.responseType="arraybuffer",i.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,o=2;o<n;){var i=t.getUint16(o,!1);if(o+=2,65505==i){if(1165519206!=t.getUint32(o+=2,!1))return-1;var r=18761==t.getUint16(o+=6,!1);o+=t.getUint32(o+4,r);var a=t.getUint16(o,r);o+=2;for(var s=0;s<a;s++)if(274==t.getUint16(o+12*s,r))return t.getUint16(o+12*s+8,r)}else{if(65280!=(65280&i))break;o+=t.getUint16(o,!1)}}return-1},e=pe([t.Injectable()],e)}(),Rr=function(){function n(t){this.thumbnailService=t,this.fallback=!1,this.id="s-thumbnail-"+r.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 o.Subject}var r;return r=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(){o.from(e.thumbnailService.getBinaryFile(e.imgEl.nativeElement)).pipe(i.takeUntil(e.ngUnsubscribe)).subscribe((function(t){return e.orientation=t}))}))},n.nextId=0,n.ctorParameters=function(){return[{type:Or}]},pe([t.ViewChild("img",{static:!1})],n.prototype,"imgEl",void 0),pe([t.Input()],n.prototype,"id",void 0),pe([t.Input()],n.prototype,"size",void 0),pe([t.Input()],n.prototype,"imageSource",void 0),pe([t.Input()],n.prototype,"imageFallback",void 0),pe([t.Input()],n.prototype,"imageAlt",void 0),pe([t.Input()],n.prototype,"iconClass",void 0),pe([t.Input()],n.prototype,"hasAction",void 0),pe([t.Input()],n.prototype,"actionIconClass",void 0),pe([t.Input()],n.prototype,"isTile",void 0),pe([t.Input()],n.prototype,"isBrand",void 0),n=r=pe([t.Component({selector:"s-thumbnail",template:'<div\n [id]="id"\n class="thumbnail-container thumbnail-container--{{size}}"\n [ngClass]="{\n \'thumbnail-container--with-action\': hasAction,\n \'thumbnail-container--brand\': isBrand\n }">\n <div\n [id]="id + \'-image-container\'"\n *ngIf="imageSource || imageFallback"\n class="image-container"\n [ngClass]="{\n \'image-container--rounded\': !isBrand\n }">\n <img\n #img\n [id]="id + \'-image\'"\n (error)="fallback = true"\n [src]="imageSource"\n [alt]="imageAlt"\n *ngIf="!fallback"\n [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\n #img\n [id]="id + \'-image-fallback\'"\n (error)="imageFallback = undefined"\n [src]="imageFallback"\n [alt]="imageAlt"\n *ngIf="fallback && imageFallback"\n [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\n *ngIf="fallback && !imageFallback"\n ngClass="far fa-image"\n class="fallback-img-color">\n </i>\n </div>\n <div\n [id]="id + \'-action-icon-container\'"\n *ngIf="hasAction"\n class="action-icon-container action-icon-container--{{size}}">\n <span\n [id]="id + \'-action-icon\'"\n [class]="actionIconClass"\n aria-hidden="true">\n </span>\n </div>\n <div\n [id]="id + \'-icon-container\'"\n *ngIf="!imageSource && !imageFallback"\n class="icon-container icon-container--{{size}}"\n [ngClass]="{\'image-container--rounded\': !isBrand}">\n <span\n [id]="id + \'-icon\'"\n [class]="iconClass"\n aria-hidden="true">\n </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)}(),Ar=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[Rr],exports:[Rr],providers:[Or]})],e)}();(Fr=e.FileValidation||(e.FileValidation={})).MaxFileSize="maxFileSize",Fr.MaxFileLimit="maxFileLimit",Fr.TypeInvalid="typeInvalid",Fr.UnsupportedExtension="unsupportedExtension";var Dr,Pr=function(){function n(e,n,o){this.imageCropperService=e,this.confirmationService=n,this.translateService=o,this.aspectRatio=1,this.supportedExtensions=[],this.changedImage=new t.EventEmitter,this.imageChange=new t.EventEmitter,this.removedImage=new t.EventEmitter,this.invalidFile=new t.EventEmitter}var o;return o=n,Object.defineProperty(n.prototype,"imageBase64",{get:function(){var e;return"string"==typeof this.image?this.image:null===(e=this.image)||void 0===e?void 0:e.base64},enumerable:!0,configurable:!0}),n.prototype.writeValue=function(e){this.image=e},n.prototype.registerOnChange=function(e){this._onChange=e},n.prototype.registerOnTouched=function(e){this._onTouched=e},n.prototype.ngOnInit=function(){this._normalizeSuportedExtensions()},n.prototype.onDragOver=function(e){e.preventDefault(),e.stopPropagation()},n.prototype.onDragLeave=function(e){e.preventDefault(),e.stopPropagation()},n.prototype.onDrop=function(e){var t;e.preventDefault(),e.stopPropagation(),null===(t=this._onTouched)||void 0===t||t.call(this);for(var n=[],o=e.dataTransfer.files,i=0;i<o.length;i++)n.push(o.item(i));this._showImageCropper(n)},n.prototype.onResize=function(){if(this.uploadPicture&&this.info&&this.thumbnail){var e=this._getWidthElement(this.uploadPicture),t=this._getWidthElement(this.info);this._getWidthElement(this.thumbnail)+t>e?this.uploadPicture.nativeElement.classList.add("upload-picture--small"):this.uploadPicture.nativeElement.classList.remove("upload-picture--small")}},n.prototype.selectPhoto=function(){var e,t=this.fileInput.nativeElement;t.value="",t.click(),null===(e=this._onTouched)||void 0===e||e.call(this)},n.prototype.removePhoto=function(){var e,t,n,o,i,r,a,s,l=this;this.confirmationService.confirm({message:null!==(t=null===(e=this.confirmationTexts)||void 0===e?void 0:e.removalMessage)&&void 0!==t?t:this.translateService.instant("platform.angular_components.confirmation_remove_image"),acceptLabel:null!==(o=null===(n=this.confirmationTexts)||void 0===n?void 0:n.removalAcceptLabel)&&void 0!==o?o:this.translateService.instant("platform.angular_components.remove"),rejectLabel:null!==(r=null===(i=this.confirmationTexts)||void 0===i?void 0:i.removalRejectLabel)&&void 0!==r?r:this.translateService.instant("platform.angular_components.cancel"),header:null!==(s=null===(a=this.confirmationTexts)||void 0===a?void 0:a.removalHeader)&&void 0!==s?s:this.translateService.instant("platform.angular_components.remove_image"),rejectButtonStyleClass:"ui-button-secondary",accept:function(){l.fileInput.nativeElement.value="",l.image=null,l.removedImage.emit()}})},n.prototype.photoSelected=function(e){this._showImageCropper(e.srcElement.files)},n.prototype._showImageCropper=function(e){var t=this;if(this._validateData(e)){var n=e[0],o=new FileReader;o.readAsDataURL(n),o.onloadend=function(e){t.imageCropperService.show(ce({imageSource:e.target.result,croppedImage:function(e){var o;t.changedImage.emit(e);var i={source:n,base64:e};"string"==typeof t.image?(t.image=e,t.imageChange.emit(e)):(t.image=i,t.imageChange.emit(i)),null===(o=t._onChange)||void 0===o||o.call(t,t.image)},changeImage:function(){return t.selectPhoto()},allowSelectAnother:!1,aspectRatio:t.aspectRatio},t.cropperLabelsConfig))}}},n.prototype._normalizeSuportedExtensions=function(){var e;this.supportedExtensions=null===(e=this.supportedExtensions)||void 0===e?void 0:e.map((function(e){return e.replace(".","").toLocaleLowerCase()}))},n.prototype._validateData=function(t){if(!t.length)return!1;if(t.length>1)return this.invalidFile.emit({file:null,validation:e.FileValidation.MaxFileLimit}),!1;var n=t[0];return n.type.includes("image")?this._validateFileExtension(n)?!!this._validateFileSize(n)||(this.invalidFile.emit({file:n,validation:e.FileValidation.MaxFileSize}),!1):(this.invalidFile.emit({file:n,validation:e.FileValidation.UnsupportedExtension}),!1):(this.invalidFile.emit({file:n,validation:e.FileValidation.TypeInvalid}),!1)},n.prototype._validateFileExtension=function(e){var t;if(null===(t=this.supportedExtensions)||void 0===t?void 0:t.length){var n=e.name.split(".").pop().toLowerCase();return this.supportedExtensions.includes(n)}return!0},n.prototype._validateFileSize=function(e){return!this.maxFileSize||e.size<=this.maxFileSize},n.prototype._getWidthElement=function(e){var t=e.nativeElement.getBoundingClientRect(),n=t.left;return t.right-n},n.ctorParameters=function(){return[{type:Lr},{type:J.ConfirmationService},{type:b.TranslateService}]},pe([t.Input()],n.prototype,"simpleTitle",void 0),pe([t.Input()],n.prototype,"actionTitle",void 0),pe([t.Input()],n.prototype,"subtitle",void 0),pe([t.Input()],n.prototype,"aspectRatio",void 0),pe([t.Input()],n.prototype,"cropperLabelsConfig",void 0),pe([t.Input()],n.prototype,"removeButtonLabel",void 0),pe([t.Input()],n.prototype,"changeButtonLabel",void 0),pe([t.Input()],n.prototype,"confirmationTexts",void 0),pe([t.Input()],n.prototype,"maxFileSize",void 0),pe([t.Input()],n.prototype,"accept",void 0),pe([t.Input()],n.prototype,"supportedExtensions",void 0),pe([t.Input()],n.prototype,"image",void 0),pe([t.ViewChild("uploadPicture")],n.prototype,"uploadPicture",void 0),pe([t.ViewChild("info")],n.prototype,"info",void 0),pe([t.ViewChild("thumbnail",{read:t.ElementRef})],n.prototype,"thumbnail",void 0),pe([t.ViewChild("fileInput",{read:t.ElementRef})],n.prototype,"fileInput",void 0),pe([t.Output()],n.prototype,"changedImage",void 0),pe([t.Output()],n.prototype,"imageChange",void 0),pe([t.Output()],n.prototype,"removedImage",void 0),pe([t.Output()],n.prototype,"invalidFile",void 0),pe([t.HostListener("dragover",["$event"])],n.prototype,"onDragOver",null),pe([t.HostListener("dragleave",["$event"])],n.prototype,"onDragLeave",null),pe([t.HostListener("drop",["$event"])],n.prototype,"onDrop",null),pe([t.HostListener("window:resize")],n.prototype,"onResize",null),n=o=pe([t.Component({selector:"s-profile-picture-picker",template:'<p-confirmDialog></p-confirmDialog>\n\n<input #fileInput [accept]="accept" class="file-input" type="file" (change)="photoSelected($event)">\n<div #uploadPicture class="upload-picture">\n <s-thumbnail\n #thumbnail\n iconClass="far fa-user"\n [imageSource]="imageBase64"\n [hasAction]="!image"\n (click)="selectPhoto()">\n </s-thumbnail>\n <div #info class="info">\n <ng-container *ngIf="image; then withImage; else noImage"></ng-container>\n <p class="subtitle">{{ subtitle }}</p>\n </div>\n</div>\n\n<ng-template #withImage>\n <div class="buttons">\n <s-button\n [label]="changeButtonLabel || \'platform.angular_components.change_photo\' | translate"\n priority="primary"\n (onClick)="selectPhoto()">\n </s-button>\n <s-button\n [label]="removeButtonLabel || \'platform.angular_components.remove\' | translate"\n priority="secondary"\n (onClick)="removePhoto()">\n </s-button>\n </div>\n</ng-template>\n\n<ng-template #noImage>\n <p class="title">\n {{ simpleTitle || \'platform.angular_components.drag_your_photo_or\' | translate }}\n <span\n class="action-title"\n (click)="selectPhoto()">\n {{ actionTitle || \'platform.angular_components.select_a_file\' | translate }}\n </span>\n </p>\n</ng-template>',providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return o})),multi:!0}],styles:['.file-input{display:none}.upload-picture{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.upload-picture .info{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:12px 20px;-ms-flex-align:start;align-items:flex-start}.upload-picture .info .title{font-family:"Open Sans",sans-serif;font-weight:700;font-size:.875rem;line-height:150%;color:#333}.upload-picture .info .title .action-title{cursor:pointer;color:#428bca}.upload-picture .info .buttons{display:-ms-flexbox;display:flex;gap:8px}.upload-picture .info .buttons s-button{margin:0}.upload-picture .info .subtitle{padding:6px 0;font-family:"Open Sans",sans-serif;font-weight:400;font-size:.75rem;line-height:150%;color:#697882;text-align:center}.upload-picture--small .info{-ms-flex-align:center;align-items:center}.upload-picture--small .info .subtitle,.upload-picture--small .info .title{text-align:center}.upload-picture--small .info .buttons{-ms-flex-pack:center;justify-content:center;-ms-flex-wrap:wrap;flex-wrap:wrap}']})],n)}(),Vr=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,b.TranslateModule,Ft,Ar,Mr,Q.ConfirmDialogModule],declarations:[Pr],exports:[Pr],providers:[Lr,J.ConfirmationService]})],e)}(),Br=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,Vr,br],declarations:[pr],exports:[pr]})],e)}(),Nr=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,Ft,Re,N.InputMaskModule,z.InputTextModule,j.KeyFilterModule,br],declarations:[ar],exports:[ar]})],e)}(),zr=function(){function e(e){this.cdr=e,this.onChange=function(){},this.onTouched=function(){},this.disabled=!1,this.value="",this.inputId="textarea-"+Math.random(),this.rows=5,this.speechRecognition=!1,this.keepContext=!1,this.speechRecognitionPlaceholder="",this._inputStyle={resize:"vertical"},this.readOnly=!1,this.renderTextArea=!1}var n;return n=e,Object.defineProperty(e.prototype,"textAreaElement",{get:function(){return this._textAreaElement},set:function(e){var t=this;this._textAreaElement=e,setTimeout((function(){t.renderTextArea=!0,t.cdr.detectChanges()}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputStyle",{get:function(){return this._inputStyle},set:function(e){this._inputStyle=ce(ce({},e),this._inputStyle)},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.setValue=function(e){this.disabled||(this.value=e,this.writeValue(this.value),this.onChange(this.value),this.onTouched(this.value))},e.prototype.handleRecognizedText=function(e){this.setValue(e)},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},pe([t.ViewChild("textArea",{read:t.ElementRef})],e.prototype,"textAreaElement",null),pe([t.Input()],e.prototype,"inputId",void 0),pe([t.Input()],e.prototype,"rows",void 0),pe([t.Input()],e.prototype,"speechRecognition",void 0),pe([t.Input()],e.prototype,"keyFilter",void 0),pe([t.Input()],e.prototype,"keepContext",void 0),pe([t.Input()],e.prototype,"speechRecognitionPlaceholder",void 0),pe([t.Input()],e.prototype,"maxLength",void 0),pe([t.Input()],e.prototype,"placeholder",void 0),pe([t.Input()],e.prototype,"inputStyle",null),pe([t.Input()],e.prototype,"readOnly",void 0),e=n=pe([t.Component({selector:"s-textarea",template:'<textarea\n *ngIf="keyFilter"\n #textArea\n class="textarea"\n [pKeyFilter]="keyFilter"\n [id]="inputId"\n [rows]="rows"\n [(ngModel)]="value"\n [disabled]="disabled"\n [ngStyle]="inputStyle"\n [readOnly]="readOnly"\n [placeholder]="placeholder ? placeholder : \'\'"\n [maxlength]="maxLength"\n (ngModelChange)="setValue($event)">\n</textarea>\n\n<textarea\n *ngIf="!keyFilter"\n #textArea\n class="textarea"\n [id]="inputId"\n [rows]="rows"\n [(ngModel)]="value"\n [disabled]="disabled"\n [ngStyle]="inputStyle"\n [readOnly]="readOnly"\n [placeholder]="placeholder ? placeholder : \'\'"\n [maxlength]="maxLength"\n (ngModelChange)="setValue($event)">\n</textarea>\n\n<s-speech-recognition\n *ngIf="speechRecognition && renderTextArea"\n [textAreaElement]="textAreaElement.nativeElement"\n [keepContext]="keepContext"\n [speechRecognitionPlaceholder]="speechRecognitionPlaceholder"\n (recognizedText)="handleRecognizedText($event)">\n</s-speech-recognition>\n',providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:[".textarea{border-radius:3px;border:1px solid #c1c1cc;background:#fff;width:100%;max-width:100%;min-height:4em;min-width:10em;outline:0;padding:8px;display:block}.textarea:disabled{opacity:.5}.textarea:focus{transition:border-color .2s ease-out;border:1px solid #428bca}:host.ng-invalid.ng-dirty .textarea{border-color:#c13018}"]})],e)}(),Ur=function(){function e(e,t){this.locale=e,this.ngZone=t,this.utterance=new SpeechSynthesisUtterance,this.voices=[],this.setVoices()}return e.prototype.setVoices=function(){var e=this,t=speechSynthesis.getVoices();t.length||(speechSynthesis.onvoiceschanged=function(){e.ngZone.run((function(){var n;t=speechSynthesis.getVoices();var o=(null===(n=e.locale.getLocaleOptions())||void 0===n?void 0:n.locale)||"pt-BR";e.setActiveVoice(t,o),e.locale.getLocale().subscribe((function(n){e.setActiveVoice(t,n)}))}))})},e.prototype.updateVoice=function(e){this.activeVoice=this.voices.find((function(t){return t.voiceURI===e}))},e.prototype.speak=function(e,t){var n=this;if(void 0===t&&(t=1),this.activeVoice)return new Promise((function(o){n.utterance.text=e,n.utterance.voice=n.activeVoice,n.utterance.rate=t,speechSynthesis.speak(n.utterance),n.utterance.onend=function(){n.ngZone.run((function(){o(!0)}))}}))},e.prototype.pause=function(){speechSynthesis.pause()},e.prototype.resume=function(){speechSynthesis.resume()},e.prototype.cancel=function(){speechSynthesis.cancel()},Object.defineProperty(e.prototype,"hasVoice",{get:function(){return!!this.activeVoice},enumerable:!0,configurable:!0}),e.prototype.setActiveVoice=function(e,t){var n=e.find((function(e){return e.lang===t}));n&&(this.activeVoice=n)},e.ctorParameters=function(){return[{type:Xe},{type:t.NgZone}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](Xe),t["ɵɵinject"](t.NgZone))},token:e,providedIn:"root"}),e=pe([t.Injectable({providedIn:"root"})],e)}(),jr=function(){function e(e,n,i){var r=this;this.speechRecognitionService=e,this.textToSpeechService=n,this.translateService=i,this.keepContext=!1,this.speechRecognitionPlaceholder="",this._recognizedText="",this.originalTextAreaElementText="",this.isDoneTextToSpeech=!1,this.onDestroy$=new o.Subject,this.VOICE_SPEEDS=[.5,1,1.5,2],this.keydownEventListener=function(e){r.disabled&&e.preventDefault()},this.disabled=!1,this.isListeningUserVoice=!1,this.voiceSpeed=1,this.isDisabledMicrophone=!1,this.canRenderMicrophone=!0,this.canRenderTextToSpeech=!0,this.canRenderListeningText=!1,this.canRenderDiscard=!1,this.canRenderAprove=!1,this.canRenderTextToSpeechToolbar=!1,this.isPlayingTextToSpeech=!1,this.recognizedText=new t.EventEmitter}var n;return n=e,e.prototype.ngOnInit=function(){var e=this;if(this.hasSpeechRecognitionBrowserApi){if(!this.textAreaElement)throw new Error("textAreaElement is required");this.textAreaElement.placeholder=this.speechRecognitionPlaceholder?this.speechRecognitionPlaceholder:this.translateService.instant("platform.angular_components.text_area_speech_recognition_placeholder"),this.textAreaElement.addEventListener("keydown",this.keydownEventListener),this.speechRecognitionService.microphoneStatus$.pipe(i.takeUntil(this.onDestroy$)).subscribe((function(t){"active"===t&&e.onCloseToolbar()}))}},e.prototype.onListen=function(){var e=this;this.isDisabledMicrophone||this.isListening||(this.disabled=!0,this.canRenderMicrophone=!1,this.canRenderListeningText=!0,this.originalTextAreaElementText=this.textAreaElement.value,this.textAreaElement.value="",this.isListeningUserVoice=!0,this.speechRecognitionService.listen().pipe(i.takeUntil(this.onDestroy$)).subscribe((function(t){var n=t.text,o=t.isFinal;e._recognizedText=n,e.setTextAreaValue(n),e.scrollTextAreaBottom(),o&&(e.canRenderAprove=!0,e.canRenderDiscard=!0,e.canRenderListeningText=!1,e.isListeningUserVoice=!1)}),(function(){e.isListeningUserVoice=!1,e.canRenderMicrophone=!0,e.isDisabledMicrophone=!1,e.canRenderListeningText=!1,e.disabled=!1})))},e.prototype.scrollTextAreaBottom=function(){var e=this;setTimeout((function(){e.textAreaElement.scrollTop=e.textAreaElement.scrollHeight}),120)},e.prototype.onOpenToolbar=function(){this.isDisabledTextToSpeech||(this.canRenderTextToSpeechToolbar=!0,this.canRenderTextToSpeech=!1,n.TOOLBAR_ACTIVE=!0,this.speak())},e.prototype.onCloseToolbar=function(){this.canRenderTextToSpeechToolbar=!1,this.canRenderTextToSpeech=!0,this.stopTextToSpeech(),this.voiceSpeed=1,n.TOOLBAR_ACTIVE=!1},e.prototype.onDiscard=function(){this.canRenderAprove=!1,this.canRenderDiscard=!1,this.canRenderMicrophone=!0,this.canRenderTextToSpeechToolbar=!1,this.canRenderTextToSpeech=!0,this._recognizedText="",this.setTextAreaValue(this.originalTextAreaElementText),this.disabled=!1,this.stopTextToSpeech(),n.TOOLBAR_ACTIVE=!1},e.prototype.onAprove=function(){if(this.canRenderAprove=!1,this.canRenderDiscard=!1,this.canRenderMicrophone=!0,this.canRenderTextToSpeechToolbar=!1,this.canRenderTextToSpeech=!0,this.keepContext){var e=this.originalTextAreaElementText.length>0?"\n":"";this.originalTextAreaElementText+=""+e+this._recognizedText}else this.originalTextAreaElementText=this._recognizedText;this.recognizedText.emit(this.keepContext?this.originalTextAreaElementText:this._recognizedText),this.scrollTextAreaBottom(),this._recognizedText="",this.disabled=!1,this.textToSpeechService.cancel(),n.TOOLBAR_ACTIVE=!1},e.prototype.ngOnDestroy=function(){this.onDestroy$.next(),this.onDestroy$.complete()},e.prototype.toggleTextToSpeech=function(){this.isPlayingTextToSpeech?this.textToSpeechService.pause():this.isDoneTextToSpeech?this.speak():this.textToSpeechService.resume(),this.isPlayingTextToSpeech=!this.isPlayingTextToSpeech},e.prototype.restartTextToSpeech=function(){this.textToSpeechService.cancel(),this.speak()},e.prototype.updateVoiceSpeed=function(){var e=this.VOICE_SPEEDS.indexOf(this.voiceSpeed),t=this.VOICE_SPEEDS[e+1]?e+1:0;this.voiceSpeed=this.VOICE_SPEEDS[t],this.textToSpeechService.cancel(),this.speak()},e.prototype.stopListening=function(){this.speechRecognitionService.stop()},Object.defineProperty(e.prototype,"isListening",{get:function(){return this.speechRecognitionService.isListening},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasSpeechRecognitionBrowserApi",{get:function(){return this.speechRecognitionService.hasSupportSpeechRecognition},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisabledTextToSpeech",{get:function(){var e=this.textToSpeechService.hasVoice;return!this.textToSpeech||!e||this.isListening||n.TOOLBAR_ACTIVE},enumerable:!0,configurable:!0}),e.prototype.setTextAreaValue=function(e){this.textAreaElement.value=e},e.prototype.stopTextToSpeech=function(){this.isPlayingTextToSpeech=!1,this.textToSpeechService.cancel()},e.prototype.speak=function(){var e=this;this.isDoneTextToSpeech=!1,this.isPlayingTextToSpeech=!0,this.textToSpeechService.speak(this.textToSpeech,this.voiceSpeed).then((function(){e.isPlayingTextToSpeech=!1,e.isDoneTextToSpeech=!0}))},Object.defineProperty(e.prototype,"textToSpeech",{get:function(){return this.textAreaElement.value},enumerable:!0,configurable:!0}),e.TOOLBAR_ACTIVE=!1,e.ctorParameters=function(){return[{type:Zi},{type:Ur},{type:b.TranslateService}]},pe([t.Input()],e.prototype,"textAreaElement",void 0),pe([t.Input()],e.prototype,"keepContext",void 0),pe([t.Input()],e.prototype,"speechRecognitionPlaceholder",void 0),pe([t.Output()],e.prototype,"recognizedText",void 0),e=n=pe([t.Component({selector:"s-speech-recognition",template:'<section class="speech-recognition" *ngIf="hasSpeechRecognitionBrowserApi">\n <div class="speech-recognition-text">\n <ng-container *ngIf="canRenderMicrophone">\n {{ \'platform.angular_components.text_area_before_speech\' | translate }}\n </ng-container>\n\n <ng-container *ngIf="isListeningUserVoice">\n {{ \'platform.angular_components.text_area_while_speech\' | translate }}\n </ng-container>\n\n <ng-container *ngIf="canRenderAprove && canRenderDiscard">\n {{ \'platform.angular_components.text_area_end_speech\' | translate }}\n </ng-container>\n </div>\n <div class="speech-recognition-buttons">\n <span\n *ngIf="canRenderListeningText"\n (click)="stopListening()"\n class="speech-recognition-item speech-recognition-item-regular">\n <i class="far fa-ellipsis-h"></i>\n </span>\n\n <span\n *ngIf="canRenderMicrophone"\n (click)="onListen()"\n class="speech-recognition-item speech-recognition-item-microphone"\n [class.speech-recognition-item-disabled]="isDisabledMicrophone || isListening || disabled">\n <i class="fas fa-microphone"></i>\n </span>\n\n <span\n *ngIf="canRenderAprove"\n (click)="onAprove()"\n class="speech-recognition-item speech-recognition-item-aprove">\n <i class="fas fa-check"></i>\n </span>\n\n <span *ngIf="canRenderDiscard"\n (click)="onDiscard()"\n class="speech-recognition-item speech-recognition-item-discard">\n <i class="fas fa-times"></i>\n </span>\n\n <span\n *ngIf="canRenderTextToSpeech"\n (click)="onOpenToolbar()"\n class="speech-recognition-item speech-recognition-item-regular"\n [class.speech-recognition-item-disabled]="isDisabledTextToSpeech">\n <i class="fas fa-volume-down"></i>\n </span>\n\n <span\n *ngIf="canRenderTextToSpeechToolbar"\n class="speech-recognition-item-toolbar">\n <i class="fas" [class.fa-pause]="isPlayingTextToSpeech" [class.fa-play]="!isPlayingTextToSpeech"\n (click)="toggleTextToSpeech()"></i>\n <i class="fas fa-backward" (click)="restartTextToSpeech()"></i>\n <span (click)="updateVoiceSpeed()">\n {{ voiceSpeed }}x\n </span>\n <i class="fas fa-times" (click)="onCloseToolbar()"></i>\n </span>\n </div>\n</section>\n',styles:[".speech-recognition{display:-ms-flexbox;display:flex;gap:10px;-ms-flex-pack:justify;justify-content:space-between;width:100%}.speech-recognition-buttons{display:-ms-flexbox;display:flex;gap:10px;position:relative;bottom:15px;margin-right:16px}.speech-recognition-item{display:-ms-inline-flexbox;display:inline-flex;height:25px;padding:4px 12px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;gap:8px;border-radius:15px;cursor:pointer;transition:background .1s ease-in}.speech-recognition-item i,.speech-recognition-item span{color:#fff}.speech-recognition-item-disabled{cursor:default!important}.speech-recognition-item-disabled *{opacity:.5}.speech-recognition-item-microphone{background:#428bca}.speech-recognition-item-microphone:not(.speech-recognition-item-disabled):hover{background:#063951}.speech-recognition-item-regular{background:#7892a1}.speech-recognition-item-regular:not(.speech-recognition-item-disabled):hover{background:#697882}.speech-recognition-item-aprove{background:#0c9348}.speech-recognition-item-aprove:not(.speech-recognition-item-disabled):hover{background:#063951}.speech-recognition-item-discard{background:#c13018}.speech-recognition-item-discard:not(.speech-recognition-item-disabled):hover{background:#063951}.speech-recognition-item-toolbar{background:#7892a1;display:-ms-flexbox;display:flex;border-radius:15px;-ms-flex-align:center;align-items:center;color:#fff;height:25px}.speech-recognition-item-toolbar i,.speech-recognition-item-toolbar span{cursor:pointer}.speech-recognition-item-toolbar i:not(:first-child),.speech-recognition-item-toolbar i:not(:last-child){padding:6px}.speech-recognition-item-toolbar i:first-child{padding-left:10px}.speech-recognition-item-toolbar i:last-child{padding-right:10px}.speech-recognition-text{color:#212533;font-size:12px;font-style:normal;font-weight:400;word-break:break-word}"]})],e)}(),Hr=function(){function e(){}return e=pe([t.NgModule({declarations:[jr],imports:[r.CommonModule,b.TranslateModule],exports:[jr]})],e)}(),$r=function(){function e(){}return e=pe([t.NgModule({declarations:[zr],imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,Hr,j.KeyFilterModule],exports:[zr]})],e)}(),Gr=function(){function e(){this.legend="",this.toggleable=!1,this.icon="",this.destroyOnHide=!0,this.beforeToggle=new t.EventEmitter,this.afterToggle=new t.EventEmitter,this.active=!0}return e.prototype.toggleActive=function(e){this.toggleable&&(this.beforeToggle.next({collapsed:this.active,originalEvent:e}),this.active=!this.active,this.afterToggle.next({collapsed:this.active,originalEvent:e}))},pe([t.Input()],e.prototype,"legend",void 0),pe([t.Input()],e.prototype,"toggleable",void 0),pe([t.Input()],e.prototype,"icon",void 0),pe([t.Input()],e.prototype,"destroyOnHide",void 0),pe([t.ContentChild(Ir)],e.prototype,"headerTemplate",void 0),pe([t.Output()],e.prototype,"beforeToggle",void 0),pe([t.Output()],e.prototype,"afterToggle",void 0),e=pe([t.Component({selector:"s-fieldset",template:'<fieldset class="fieldset" [class.fieldset-togglable]="toggleable">\n <legend class="fieldset-title" (sActivatedContent)="toggleActive($event)">\n <ng-container *ngIf="toggleable">\n <i *ngIf="active" class="fas fa-plus"></i>\n <i *ngIf="!active" class="fas fa-minus"></i>\n </ng-container>\n <ng-container *ngIf="headerTemplate?.template">\n <ng-container *ngTemplateOutlet="headerTemplate.template"></ng-container>\n </ng-container>\n <ng-container *ngIf="!headerTemplate">\n <i *ngIf="icon" [class]="icon"></i>\n {{ legend }}\n </ng-container>\n </legend>\n <div *ngIf="destroyOnHide ? (toggleable ? active : true) : true" [@toggleAnimation]="destroyOnHide ? null : active ? \'open\' : \'closed\'">\n <ng-content></ng-content>\n </div>\n</fieldset>\n',animations:[n.trigger("toggleAnimation",[n.transition(":enter",[n.style({opacity:0,height:0}),n.animate("300ms ease-out",n.style({opacity:1,height:"*"}))]),n.transition(":leave",[n.style({opacity:1,height:"*"}),n.animate("300ms ease-in",n.style({opacity:0,height:0}))]),n.state("open",n.style({opacity:1,height:"*"})),n.state("closed",n.style({opacity:0,height:0})),n.transition("open <=> closed",n.animate("300ms ease"))])],styles:['.fieldset{background-color:#fff;border:1px solid #dedce5;border-radius:6px;margin-bottom:10px;min-height:4.5em;padding:6px 8px}.fieldset-title{-ms-flex-align:center;align-items:center;color:#212533;font-family:"Open Sans",sans-serif;font-size:14px;font-weight:700;display:-ms-flexbox;display:flex;padding:0 4px;gap:4px;margin-left:16px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.fieldset-togglable .fieldset-title,.fieldset-togglable .fieldset-title *{cursor:pointer}.hidden{display:none}']})],e)}(),qr=function(){function e(e){var n=this;this.elementRef=e,this.sActivatedContent=new t.EventEmitter,this.tabindex=0,this.disabled=!1,this.EVENT_LISTENER=function(e){if(e instanceof KeyboardEvent){var t=e.key;if(!["Enter"," "].includes(t))return}n.sActivatedContent.next(e)}}return e.prototype.ngOnInit=function(){this.setTabIndex(),this.checkAccessbilityEvents()},e.prototype.setTabIndex=function(){0!==this.element.tabIndex||(this.element.tabIndex=this.tabindex)},e.prototype.checkAccessbilityEvents=function(){this.element.addEventListener("click",this.EVENT_LISTENER),this.element.addEventListener("keydown",this.EVENT_LISTENER)},Object.defineProperty(e.prototype,"element",{get:function(){return this.elementRef.nativeElement},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.element.removeEventListener("click",this.EVENT_LISTENER),this.element.removeEventListener("keydown",this.EVENT_LISTENER)},e.ctorParameters=function(){return[{type:t.ElementRef}]},pe([t.Output()],e.prototype,"sActivatedContent",void 0),pe([t.Input()],e.prototype,"tabindex",void 0),pe([t.Input()],e.prototype,"disabled",void 0),e=pe([t.Directive({selector:"[sActivatedContent]"})],e)}(),Wr=function(){function e(){}return e=pe([t.NgModule({declarations:[qr],imports:[r.CommonModule],exports:[qr]})],e)}(),Yr=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Wr],declarations:[Gr],exports:[Gr]})],e)}(),Kr=function(){function e(){}return e=pe([t.NgModule({imports:[F.AutoCompleteModule,He,ft,Ft,Rt,v.CalendarModule,P.CheckboxModule,V.ChipsModule,r.CommonModule,Hn,Xn,O.DialogModule,B.DropdownModule,Qo,a.FormsModule,L.HotkeyModule,N.InputMaskModule,U.InputTextareaModule,z.InputTextModule,j.KeyFilterModule,vi,mt,yi,$.PanelModule,D.ButtonModule,R.TableModule,H.MultiSelectModule,fo,G.RadioButtonModule,a.ReactiveFormsModule,Re,Yr,Tr,Ei,ri,Bi,je,_i,L.HotkeyModule.forRoot(),Wo,_e,Si,q.SliderModule,b.TranslateModule.forChild(),kr,Nr,Cr,_r,yr,xr,Br,wr,br,$r],declarations:[Ni,zi,Ui,ji,Hi,$i,nr,$o,gr,Qi,Gi,Ao,qi,Wi,tr,er,Yi,Ki,Ji,Xi,dr],exports:[$o,Ao],entryComponents:[Ni,zi,Ui,ji,Hi,$i,Qi,Gi,qi,Wi,tr,er,Yi,Ki,Ji,Xi],providers:[L.HotkeysService,Zo]})],e)}(),Zr=function(){function e(e){this.http=e}return e.prototype.getCustomFields=function(e,t,n,o){var i={entityId:{domain_:e,service_:t,id:n}};return this.http.post(o,i)},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:c.HttpClient}]},e=pe([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"}(Dr||(Dr={}));var Xr=d,Jr=function(){function n(e,t,n,i,r){this.customFieldsService=e,this.localeService=t,this.sanitizer=n,this.translateService=i,this.controlContainer=r,this.invalidErrorLabel=this.translateService.instant("platform.angular_components.invalid_value"),this.customFieldsEndpoint="platform/field_customization/queries/getEntity",this.fileLocationEndpoint="platform/field_customization/actions/requestUpload",this.requestAccessEndpoint="platform/field_customization/actions/requestAccess",this.showFileUploadDate=!1,this.fields=[],this.ready=!1,this.ngUsubscribe=new o.Subject}var r;return r=n,Object.defineProperty(n.prototype,"hasCustomFields",{get:function(){var e;return!!(null===(e=this.fields)||void 0===e?void 0:e.length)},enumerable:!0,configurable:!0}),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.ngOnInit=function(){this._validateInputs(),this._createForm(),this.addDisplayTimeInfoSignToFields()},n.prototype.ngAfterViewInit=function(){var e=this;this.enableOrDisableFields(this.disableFields),this.formGroup.valueChanges.subscribe((function(){var t;return null===(t=e.onChange)||void 0===t?void 0:t.call(e,e.parseFieldsValues())}))},n.prototype.ngOnChanges=function(e){e.disableFields&&this.enableOrDisableFields(e.disableFields.currentValue)},n.prototype.ngOnDestroy=function(){this.ngUsubscribe.next(),this.ngUsubscribe.complete()},n.prototype.registerOnChange=function(e){this.onChange=e},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({emitEvent:!1}):this.formGroup.enable({emitEvent:!1})},n.prototype.getCustomFields=function(){return this.entityObject&&this.entityObject.entity_?o.of(this.entityObject):this.customFieldsService.getCustomFields(this.domain,this.service,this.entity,this.customFieldsEndpoint)},n.prototype.validate=function(){var e=this,t={};return Object.keys(this.formGroup.controls).forEach((function(n){var o=e.formGroup.get(n).errors;o&&(t[n]=o)})),t},n.prototype.cleanFields=function(){this.formGroup.reset()},n.prototype.enableOrDisableFields=function(e){var t,n;if(this.formGroup)try{for(var o=he(Object.keys(this.formGroup.value)),i=o.next();!i.done;i=o.next()){var r=i.value;e?this.formGroup.get(r).disable():this.formGroup.get(r).enable()}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}},n.prototype._validateInputs=function(){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!")},n.prototype._createForm=function(){var e=this;this.formGroup=new a.FormGroup({});var t=[this.getCustomFields(),this.localeService.get()];o.forkJoin(t).pipe(i.takeUntil(this.ngUsubscribe),i.finalize((function(){var t;e.formGroup.markAsPristine(),null===(t=e.parentControl)||void 0===t||t.markAsPristine(),e.ready$&&e.ready$.next(!0)}))).subscribe((function(t){var n=fe(t,2),o=n[0],i=n[1],r={};if(r[Dr.String]={},r[Dr.Boolean]={defaultValue:!1},r[Dr.Integer]={},r[Dr.Double]={defaultMask:""},r[Dr.Money]={},r[Dr.Date]={},r[Dr.DateTime]={},r[Dr.LocalDateTime]={},r[Dr.Time]={},r[Dr.Blob]={},r[Dr.Enum]={},r[Dr.Binary]={},r[Dr.Any]={},o&&o.entity_){var s=o.entity_,l=s.active,c=s.fields;l&&(c.filter((function(e){return e.customizable&&e.customization&&e.customization.active})).forEach((function(t){var n,o=e.getFormField(t,i),s=t.type;t.type===Dr.Blob&&e.value&&e.value[o.name]&&e.createBlobToFileUpload(o);var l=t.customization.validationRegex,c=[Dr.Boolean,Dr.Money,Dr.Date,Dr.DateTime,Dr.LocalDateTime,Dr.Time],p=[];l&&!c.includes(s)&&p.push(a.Validators.pattern(l)),s!==Dr.Integer||o.mask||p.push(a.Validators.pattern(/^\-?\d*$/)),(null===(n=o.required)||void 0===n?void 0:n.call(o))&&p.push(a.Validators.required);var d=new a.FormControl({value:r[s].defaultValue,disabled:e.formGroup.disabled},p);e.formGroup.addControl(o.name,d),e.fields.push(o)})),e.createFieldCustomization(c),e.formGroup.patchValue(e.parseValuesForFields(e.value)),e.ready=!0)}}))},n.prototype.parseValuesForFields=function(t){var n=ce({},t);return this.fields.forEach((function(o){var i=o.type,r=o.name,a=t&&t[r];if(i===e.FieldType.Boolean){var s="string"==typeof a,l=!s&&"boolean"!=typeof a;n[r]=l?null:s?"true"===a:a}if(a)switch(i){case e.FieldType.Date:case e.FieldType.DateTime:n[r]=Xr(a).toDate();break;case e.FieldType.LocalDateTime:n[r]=Xr(a,"YYYY-MM-DD[T]HH:mm:ss.SSS").toDate();break;case e.FieldType.Time:n[r]=Xr(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(o){var i=o.type,r=o.name,a=o.mask,s=o.scale,l=t.formGroup.get(r).value;if(l)switch(i){case e.FieldType.Number:a&&(l=new ae(l).toFixed(s).toString());break;case e.FieldType.Date:l=Xr(l).format("YYYY-MM-DD");break;case e.FieldType.DateTime:l=Xr(l).format();break;case e.FieldType.LocalDateTime:l=Xr(l).format("YYYY-MM-DD[T]HH:mm:ss.SSS");break;case e.FieldType.Time:l=Xr(l).format("HH:mm:ss")}null==l&&t.isTypeNumberOrEnum(i)?n[r]=o.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 o,i,r;switch(t.type){case Dr.Blob:r=this.getBlobParameters();break;case Dr.Boolean:r=this.getBooleanParameters();break;case"Enumeration":case Dr.Enum:t.type=e.FieldType.Enum,r=this.getEnumParameters(t);break;case Dr.Money:r={type:e.FieldType.Custom,CustomFieldComponentClass:cr,CustomFieldClass:go,precision:15,scale:2,leftAddon:{label:null!==(i=null===(o=null==n?void 0:n.number)||void 0===o?void 0:o.currencySymbol)&&void 0!==i?i:"R$"},ignoreLabel:!0};break;case Dr.Double:r={type:e.FieldType.Custom,CustomFieldComponentClass:cr,CustomFieldClass:go,precision:15,scale:2,ignoreLabel:!0};break;case Dr.Integer:r={type:e.FieldType.Custom,CustomFieldComponentClass:cr,CustomFieldClass:go,precision:15,scale:0,ignoreLabel:!0};break;case Dr.Any:t.type=e.FieldType.String}return new Oo(ce({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)},showFileUploadDate:this.showFileUploadDate}},n.prototype.createFieldCustomization=function(e){this.hasBlob=!!e.filter((function(e){return e.type===Dr.Blob})).length,this.hasBlob&&this.formGroup.addControl("fieldCustomization",new a.FormArray([new a.FormGroup({domain:new a.FormControl(this.domain),service:new a.FormControl(this.service),entity:new a.FormControl(this.entity),toDelete:new a.FormControl({value:{},disabled:!1}),toInsert:new a.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,o=e.index,r=e.anchor,a=t.files[o];a.objectURL?r.nativeElement.click():this.customFieldsService.requestAccess(a.objectId,this.requestAccessEndpoint).pipe(i.takeUntil(this.ngUsubscribe)).subscribe((function(e){var s=e.fileName,l=e.uri;n.customFieldsService.getFile(l).pipe(i.takeUntil(n.ngUsubscribe)).subscribe((function(e){var i=new File([e],s);i.objectURL=n.sanitizer.bypassSecurityTrustUrl(l),r.nativeElement.setAttribute("href",l),i.objectId=a.objectId,i.savedFile=!0,t.files[o]=i,t.files=ge(t.files),r.nativeElement.click()}))}))},n.prototype.uploadFile=function(e,t){var n=this,r=e.files,a=this.fields.find((function(e){return e.name===t.name}));a.files&&a.files.length&&this.removeFile({file:a.files[0]},a),a.files=r;for(var s=function(e){var t=r[e];t.savedFile||t.progress||(t.isUploading=!0,l.formGroup.get(a.name).setValidators(function(e){return function(){return e.isUploading?{isUploading:!0}:null}}(t)),l.formGroup.get(a.name).updateValueAndValidity(),l.customFieldsService.getFileLocationUrl({domain:l.domain,service:l.service,entityName:l.entity,field:a.name,fileName:t.name},l.fileLocationEndpoint).pipe(i.takeUntil(l.ngUsubscribe),i.catchError((function(t){return o.of(n.defaltCatchError(a,t,e))}))).subscribe((function(r){var s=r.location,l=r.version,p=r.objectId;t.version=l,t.objectId=p,t.uploadSubscribe=n.customFieldsService.uploadTempFile(s,t).pipe(i.takeUntil(n.ngUsubscribe),i.catchError((function(t){return o.of(n.defaltCatchError(a,t,e))})),i.finalize((function(){t.isUploading=!1}))).subscribe((function(e){var o,i=e.type;if(n.uploadCanceled)n.uploadCanceled&&i===c.HttpEventType.Response&&(n.uploadCanceled=!1);else if(i===c.HttpEventType.UploadProgress)t.progress=100*Math.round(e.loaded/e.total);else if(i===c.HttpEventType.Response){t.objectURL=n.sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(t));var r={objectId:p,name:t.name,version:t.version},s=n.formGroup.get("fieldCustomization").value[0].toInsert;n.formGroup.get("fieldCustomization").value[0].toInsert=ce(ce({},s),((o={})[a.name]=r,o)),n.formGroup.get(a.name).setValue(t.objectId+"/"+t.name),n.formGroup.get(a.name).clearValidators(),n.formGroup.get(a.name).updateValueAndValidity(),a.files=[t]}})),a.files=[t]})))},l=this,p=0;p<r.length;p++)s(p)},n.prototype.removeFile=function(e,t){var n,o=e.file,i=this.fields.find((function(e){return e.name===t.name}));if(i.files=[],o.objectId){var r=o.savedFile?""+o.objectId:o.objectId+"/"+o.name,a=this.formGroup.get("fieldCustomization").value[0].toDelete;delete this.formGroup.get("fieldCustomization").value[0].toInsert[i.name],this.formGroup.get("fieldCustomization").value[0].toDelete=ce(ce({},a),((n={})[i.name]=ge(a[i.name]||[],[r]),n))}this.formGroup.get(i.name).clearValidators(),this.formGroup.get(i.name).setValue(""),this.formGroup.get(i.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,r=e.files;return r[n].error=t,r[n].isUploading=!1,e.files=ge(r),this.formGroup.get(e.name).setValidators([(i=r[n],function(){return i.error?{uploadError:!0}:null})]),this.formGroup.get(e.name).updateValueAndValidity(),o.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.prototype.addDisplayTimeInfoSignToFields=function(){var e=this;this.fields.forEach((function(t){t.displayTimeInfoSign=e.displayTimeInfoSign}))},n.ctorParameters=function(){return[{type:Zr},{type:Xe},{type:K.DomSanitizer},{type:b.TranslateService},{type:a.ControlContainer,decorators:[{type:t.Optional}]}]},pe([t.Input()],n.prototype,"domain",void 0),pe([t.Input()],n.prototype,"service",void 0),pe([t.Input()],n.prototype,"entity",void 0),pe([t.Input()],n.prototype,"invalidErrorLabel",void 0),pe([t.Input()],n.prototype,"entityObject",void 0),pe([t.Input()],n.prototype,"customFieldsEndpoint",void 0),pe([t.Input()],n.prototype,"fileLocationEndpoint",void 0),pe([t.Input()],n.prototype,"requestAccessEndpoint",void 0),pe([t.Input()],n.prototype,"requiredErrorMessage",void 0),pe([t.Input()],n.prototype,"displayTimeInfoSign",void 0),pe([t.Input()],n.prototype,"showFileUploadDate",void 0),pe([t.Input()],n.prototype,"ready$",void 0),pe([t.Input()],n.prototype,"disableFields",void 0),n=r=pe([t.Component({selector:"s-custom-fields",template:'<s-dynamic-form [fields]="fields"\n [form]="formGroup"\n [errorMessages]="{\n pattern: invalidErrorLabel,\n required: requiredErrorMessage}">\n</s-dynamic-form>',providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:r,multi:!0},{provide:a.NG_VALIDATORS,useExisting:r,multi:!0}]}),de(4,t.Optional())],n)}();var Qr,ea=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,c.HttpClientModule,mt,Kr,b.TranslateModule],declarations:[Jr],exports:[Jr],providers:[Zr,b.TranslateService]})],e)}(),ta=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()||(f.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))},pe([t.Input()],e.prototype,"table",void 0),e=pe([t.Directive({selector:"p-table[sEditableOverlay]"})],e)}(),na=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[ta],exports:[ta]})],e)}(),oa=d,ia=function(){function e(){}return e.parse=function(e){return oa(e).toDate()},e.toString=function(e,t){return void 0===t&&(t=!1),oa(e,t?"YYYY-MM-DD hh:mm:ss.SSS":"YYYY-MM-DD").toString()},e.format=function(e,t,n){void 0===t&&(t="YYYY-MM-DD HH:mm:ss.SSS"),void 0===n&&(n="en");var o=oa(e).locale(n).startOf("month").format("MMMM"),i=o.charAt(0).toUpperCase()+o.slice(1),r=oa(e).locale(n),a={YYYY:r.format("YYYY"),MM:r.format("MM"),DD:r.format("DD"),ddd:r.format("ddd").toUpperCase().replace(".",""),HH:r.format("HH"),mm:r.format("mm"),ss:r.format("ss"),SSS:r.format("SSS"),D:r.format("D"),MMMM:i,MMM:i},s=t,l=[];return Object.keys(a).sort((function(e,t){return t.length-e.length})).forEach((function(e){s.includes(e)&&(s=s.replace(e,"$"+l.length),l.push(a[e]))})),l.forEach((function(e,t){s=s.replace("$"+t,e)})),s},e.diff=function(e,t,n){var o=oa(e).diff(t,"millisecond"),i=oa(e).diff(t,"second"),r=oa(e).diff(t,"minute"),a=oa(e).diff(t,"hour"),s=oa(e).diff(t,"day"),l=oa(e).diff(t,"month"),c=oa(e).diff(t,"year");return n.endsWith("s")||(n+="s"),Math.floor({milliseconds:o,seconds:i,minutes:r,hours:a,days:s,months:l,years:c}[n])},e.today=function(){var e=oa().format("YYY-MM-DD");return new Date(e)},e.now=function(){return oa().toDate()},e.add=function(e,t,n){return oa(e).add(t,n).toDate()},e.startOf=function(e,t){var n,o=((n={}).year=6,n.month=5,n.day=4,n.hour=3,n.minute=2,n.second=1,n.millisecond=0,n);function i(e){var n=o[t];return o[e]<=n}var r=[e.getFullYear(),i("year")?0:e.getMonth(),i("month")?1:e.getDate(),i("day")?0:e.getHours(),i("hour")?0:e.getMinutes(),i("minute")?0:e.getSeconds(),i("second")?0:e.getMilliseconds()];return new Date(r[0],r[1],r[2],r[3],r[4],r[5],r[6])},e.clone=function(e){return oa(e).toDate()},e.getDateValues=function(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]},e.getDaysInMonth=function(e){return oa(e,"YYYY-MM").daysInMonth()},e}(),ra=function(e,t){return"string"==typeof e?(t||document).querySelector(e):e||null},aa=function(e,t){var n=document.createElementNS("http://www.w3.org/2000/svg",e);for(var o in t){if("append_to"===o)t.append_to.appendChild(n);else"innerHTML"===o?n.innerHTML=t.innerHTML:n.setAttribute(o,t[o])}return n},sa=function(e,t,n,o,i,r){void 0===i&&(i="0.4s"),void 0===r&&(r="0.1s");var a=e.querySelector("animate");if(a)return ra.attr(a,{attributeName:t,from:n,to:o,dur:i,begin:"click + "+r},null),e;var s=aa("animate",{attributeName:t,from:n,to:o,dur:i,begin:r,calcMode:"spline",values:n+";"+o,keyTimes:"0; 1",keySplines:la("ease-out")});return e.appendChild(s),e},la=function(e){return{ease:".25 .1 .25 1",linear:"0 0 1 1","ease-in":".42 0 1 1","ease-out":"0 0 .58 1","ease-in-out":".42 0 .58 1"}[e]};ra.on=function(e,t,n,o){o?ra.delegate(e,t,n,o):ra.bind(e,t,o=n)},ra.off=function(e,t,n){e.removeEventListener(t,n)},ra.bind=function(e,t,n){t.split(/\s+/).forEach((function(t){e.addEventListener(t,n)}))},ra.delegate=function(e,t,n,o){e.addEventListener(t,(function(e){var t=e.target.closest(n);t&&(e.delegatedTarget=t,o.call(this,e,t))}))},ra.closest=function(e,t){return t?t.matches(e)?t:void 0:null},ra.attr=function(e,t,n){if(!n&&"string"==typeof t)return e.getAttribute(t);if("object"!=typeof t)e.setAttribute(t,n);else for(var o in t)ra.attr(e,o,t[o])},(Qr=e.ViewMode||(e.ViewMode={})).QuarterHour="quarterHour",Qr.Hour="hour",Qr.QuarterDay="quarterDay",Qr.HalfDay="halfDay",Qr.Day="day",Qr.Week="week",Qr.Month="month",Qr.Year="year";var ca=function(){function t(e,t){this._isPopUpOpen=!1,this._setDefaults(e,t),this._prepare(),this._draw(),this._bind()}return Object.defineProperty(t.prototype,"arrows",{get:function(){return this._arrows},set:function(e){this._arrows=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"task",{get:function(){return this._task},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"group",{get:function(){return this._group},enumerable:!0,configurable:!0}),t.prototype.updateBarPosition=function(e){var t=this,n=e.x,o=e.width,i=this.element;if(n){if(!this.task.dependencies.map((function(e){return t._gantt.get_bar(e).element.getX()})).reduce((function(e,t){return n>=t}),n))return void(o=null);this._updateAttr(i,"x",n)}o&&o>=this._gantt.options.columnWidth&&this._updateAttr(i,"width",o),this._updateLabelPosition(),this._updateArrowPosition()},t.prototype.dateChanged=function(){var e=!1,t=this._computeStartEndDate(),n=t.newStartDate,o=t.newEndDate;this.task.start!==n&&(e=!0,this.task.start=n),this.task.end!==o&&(e=!0,this.task.end=o),e&&this._gantt.trigger_event("onDateChange",[this.task,n,ia.add(o,-1,"second")])},t.prototype.setActionCompleted=function(){var e=this;this._actionCompleted=!0,setTimeout((function(){e._actionCompleted=!1}),1e3)},t.prototype._setDefaults=function(e,t){this._actionCompleted=!1,this._gantt=e,this._task=t},t.prototype._prepare=function(){this._prepareValues(),this._prepareHelpers()},t.prototype._prepareValues=function(){this._invalid=this.task.invalid,this._height=this._gantt.options.barHeight,this._x=this._computeX(),this._y=this._computeY(),this._cornerRadius=this._gantt.options.barCornerRadius,this._duration=ia.diff(this.task.end,this.task.start,"minute")/this._gantt.options.step/60,this._width=this._gantt.options.columnWidth*this._duration,this._group=aa("g",{class:"bar-wrapper "+(this.task.custom_class||""),"data-id":this.task.id}),this._barGroup=aa("g",{class:"bar-group",append_to:this.group})},t.prototype._prepareHelpers=function(){SVGElement.prototype.getX=function(){return+this.getAttribute("x")},SVGElement.prototype.getY=function(){return+this.getAttribute("y")},SVGElement.prototype.getWidth=function(){return+this.getAttribute("width")},SVGElement.prototype.getHeight=function(){return+this.getAttribute("height")},SVGElement.prototype.getEndX=function(){return this.getX()+this.getWidth()}},t.prototype._draw=function(){this._drawBar(),this._drawLabel()},t.prototype._drawBar=function(){this._element=aa("rect",{x:this._x,y:this._y,width:this._width,height:this._height,rx:this._cornerRadius,ry:this._cornerRadius,class:"bar",append_to:this._barGroup,fill:this.task.color}),function(e,t,n,o){var i=sa(e,t,n,o);if(i===e){var r=document.createEvent("HTMLEvents");r.initEvent("click",!0,!0),i.dispatchEvent(r)}}(this.element,"width",0,this._width),this._invalid&&this.element.classList.add("bar-invalid")},t.prototype._drawLabel=function(){var e=this;aa("text",{x:this._x+this._width/2,y:this._y+this._height/2,innerHTML:this.task.showTaskName?this.task.name:"",class:"bar-label",append_to:this._barGroup}),requestAnimationFrame((function(){return e._updateLabelPosition()}))},t.prototype._bind=function(){this._invalid||this._setupClickEvent()},t.prototype._setupClickEvent=function(){var e=this;this._gantt.options.hasPopup?(ra.on(this.group,"focus "+this._gantt.options.popupTrigger,(function(t){e._actionCompleted||(e._showPopup(),e._gantt.unselect_all(),e.group.classList.add("active"))}),null),ra.on(this.group,"dblclick",(function(t){e._actionCompleted||e._gantt.trigger_event("onClick",[e.task])}),null)):(ra.on(this.group,"mouseenter",(function(t){e._isPopUpOpen||(e._showPopup({x:t.clientX,y:e.group.getBoundingClientRect().top+30,position:"middle"}),e._isPopUpOpen=!0)}),null),ra.on(this.group,"mouseleave",(function(t){e._gantt.hide_popup(),e._isPopUpOpen=!1}),null),ra.on(this.group,"focus click",(function(t){e._actionCompleted||(e._gantt.unselect_all(),e.group.classList.add("active"),e._gantt.trigger_event("onClick",[e.task]))}),null))},t.prototype._showPopup=function(e){if(!this._gantt.bar_being_dragged){var t={};this._gantt.options.showOnlyHours||(t.startDate=ia.format(this.task.start,"DD/MM/YYYY",this._gantt.options.language),t.endDate=ia.format(this.task.end,"DD/MM/YYYY",this._gantt.options.language)),this._gantt.options.showOnlyDays||(t.startHour=ia.format(this.task.start,"HH:mm:ss",this._gantt.options.language),t.endHour=ia.format(this.task.end,"HH:mm:ss",this._gantt.options.language)),this._gantt.show_popup(ce({target_element:this.element,title:this.task.name,subtitle:t,task:this.task},e))}},t.prototype._computeStartEndDate=function(){var e=this.element,t=e.getX()/this._gantt.options.columnWidth,n=ia.add(this._gantt.minDate,t*this._gantt.options.step,"hour"),o=e.getWidth()/this._gantt.options.columnWidth;return{newStartDate:n,newEndDate:ia.add(n,o*this._gantt.options.step,"hour")}},t.prototype._computeX=function(){var t,n=this._gantt.options,o=n.step,i=n.columnWidth;this._gantt.view_is([e.ViewMode.QuarterHour,e.ViewMode.Hour,e.ViewMode.QuarterDay,e.ViewMode.HalfDay,e.ViewMode.Day])?t=ia.diff(this.task.start,this._gantt.minDate,"minutes")/o*(i/60):t=ia.diff(this.task.start,this._gantt.minDate,"hour")/o*i;return t},t.prototype._computeY=function(){return this._gantt.options.headerHeight+this._gantt.options.padding+this.task._index*(this._height+this._gantt.options.padding)},t.prototype._updateAttr=function(e,t,n){return n=+n,isNaN(n)||e.setAttribute(t,n),e},t.prototype._updateLabelPosition=function(){var e=this.element,t=this.group.querySelector(".bar-label");t.getBBox().width>e.getWidth()?(t.classList.add("big"),t.setAttribute("x",e.getX()+e.getWidth()+5)):(t.classList.remove("big"),t.setAttribute("x",e.getX()+e.getWidth()/2))},t.prototype._updateArrowPosition=function(){var e,t;this._arrows=this._arrows||[];try{for(var n=he(this._arrows),o=n.next();!o.done;o=n.next()){o.value.update()}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t}(),pa=function(){function e(e,t){this.parent=e,this.customHtml=t,this.make()}return e.prototype.show=function(e){var t,n,o,i;if(!e.target_element)throw new Error("target_element is required to show popup");e.position||(e.position="left");var r,a=e.target_element;if(this.parent.style.display="block",this.customHtml){var s=this.customHtml(e.task);s+='<div class="pointer"></div>',this.parent.innerHTML=s,this.pointer=this.parent.querySelector(".pointer")}else this.title.innerHTML=e.title,this.startDate.innerHTML=null!==(t=e.subtitle.startDate)&&void 0!==t?t:"",this.startHour.innerHTML=null!==(n=e.subtitle.startHour)&&void 0!==n?n:"",this.endDate.innerHTML=null!==(o=e.subtitle.endDate)&&void 0!==o?o:"",this.endHour.innerHTML=null!==(i=e.subtitle.endHour)&&void 0!==i?i:"",this.parent.style.width=this.parent.clientWidth+"px";a instanceof HTMLElement?r=a.getBoundingClientRect():a instanceof SVGElement&&(r=e.target_element.getBBox()),"middle"===e.position?(this.parent.style.position="fixed",this.parent.style.top=e.y+"px",this.pointer.style.transform="rotateZ(180deg)",this.pointer.style.top="-10px",e.x-17+this.parent.offsetWidth>window.innerWidth?(this.parent.style.left=e.x-this.parent.offsetWidth+17+"px",this.pointer.style.right="16px",this.pointer.style.left="auto"):(this.parent.style.left=e.x-17+"px",this.pointer.style.left="16px",this.pointer.style.right="auto")):"left"===e.position&&(this.parent.style.left=r.x+(r.width+10)+"px",this.parent.style.top=r.y+"px",this.pointer.style.transform="rotateZ(90deg)",this.pointer.style.left="-7px",this.pointer.style.top="2px"),this.parent.style.opacity=1},e.prototype.make=function(){this.parent.innerHTML='\n <div class="popup">\n <div class="wrp-title">\n <span class="title"></span>\n </div>\n <div class="wrp-subtitle">\n <span class="icon fas fa-calendar-alt"></span>\n <div style="margin-right: 15px">\n <p class="startDate"></p>\n <p class="startHour"></p>\n </div>\n <div>\n <p class="endDate"></p>\n <p class="endHour"></p>\n </div>\n </div>\n <div class="pointer"></div>\n </div>\n ',this.hide(),this.title=this.parent.querySelector(".title"),this.startDate=this.parent.querySelector(".startDate"),this.startHour=this.parent.querySelector(".startHour"),this.endDate=this.parent.querySelector(".endDate"),this.endHour=this.parent.querySelector(".endHour"),this.pointer=this.parent.querySelector(".pointer")},e.prototype.hide=function(){this.parent.style.opacity=0,this.parent.style.display="none",this.parent.style.left=0},e}(),da=function(){function e(e,t,n){this._gantt=e,this._fromTask=t,this._toTask=n,this.calculatePath(),this.draw()}return Object.defineProperty(e.prototype,"fromTask",{get:function(){return this._fromTask},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"toTask",{get:function(){return this._toTask},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),e.prototype.update=function(){this.calculatePath(),this._element.setAttribute("d",this._path)},e.prototype.calculatePath=function(){for(var e=this,t=this.fromTask.element.getX()+this.fromTask.element.getWidth()/2;e.toTask.element.getX()<t+e._gantt.options.padding&&t>e.fromTask.element.getX()+e._gantt.options.padding;)t-=10;var n=this._gantt.options.headerHeight+this._gantt.options.barHeight+(this._gantt.options.padding+this._gantt.options.barHeight)*this.fromTask.task._index+this._gantt.options.padding,o=this.toTask.element.getX()-this._gantt.options.padding/2,i=this._gantt.options.headerHeight+this._gantt.options.barHeight/2+(this._gantt.options.padding+this._gantt.options.barHeight)*this.toTask.task._index+this._gantt.options.padding,r=this.fromTask.task._index>this.toTask.task._index,a=this._gantt.options.arrowCurve,s=r?1:0,l=r?-a:a,c=r?i+this._gantt.options.arrowCurve:i-this._gantt.options.arrowCurve;if(this._path="\n M "+t+" "+n+"\n V "+c+"\n a "+a+" "+a+" 0 0 "+s+" "+a+" "+l+"\n L "+o+" "+i+"\n m -5 -5\n l 5 5\n l -5 5",this.toTask.element.getX()<this.fromTask.element.getX()+this._gantt.options.padding){var p=this._gantt.options.padding/2-a,d=this.toTask.element.getY()+this.toTask.element.getHeight()/2-l,u=this.toTask.element.getX()-this._gantt.options.padding;this._path="\n M "+t+" "+n+"\n v "+p+"\n a "+a+" "+a+" 0 0 1 -"+a+" "+a+"\n H "+u+"\n a "+a+" "+a+" 0 0 "+s+" -"+a+" "+l+"\n V "+d+"\n a "+a+" "+a+" 0 0 "+s+" "+a+" "+l+"\n L "+o+" "+i+"\n m -5 -5\n l 5 5\n l -5 5"}},e.prototype.draw=function(){this._element=aa("path",{d:this._path,"data-from":this.fromTask.task.id,"data-to":this.toTask.task.id})},e}(),ua={headerHeight:94,columnWidth:30,step:24,barHeight:20,barCornerRadius:0,arrowCurve:4,padding:24,viewMode:e.ViewMode.Day,dateFormat:"YYYY-MM-DD",popupTrigger:"click",customPopupHtml:null,language:"en",allowMovement:!0,hasPopup:!0,showOnlyHours:!1,showOnlyDays:!1},ma=function(){function t(e,t,n){this.setup_options(n),this.setup_wrapper(e),this.setup_tasks(t),this.change_view_mode(),this.bind_events()}return Object.defineProperty(t.prototype,"minDate",{get:function(){return this._minDate},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxDate",{get:function(){return this._maxDate},enumerable:!0,configurable:!0}),t.prototype.setup_wrapper=function(e){var t,n;if("string"==typeof e&&(e=document.querySelector(e)),e instanceof HTMLElement)n=e,t=e.querySelector("svg");else{if(!(e instanceof SVGElement))throw new TypeError("Frappé Gantt only supports usage of a string CSS selector, HTML DOM element or SVG DOM element for the 'element' parameter");t=e}t?(this.$svg=t,this.$svg.classList.add("gantt")):this.$svg=aa("svg",{append_to:n,class:"gantt"}),this.$container=document.createElement("div"),this.$container.classList.add("gantt-container"),this.options.containerWidth&&(this.$container.style.width=this.options.containerWidth+"px"),this.$svg.parentElement.appendChild(this.$container),this.$container.appendChild(this.$svg),this.popup_wrapper=document.createElement("div"),this.popup_wrapper.classList.add("popup-wrapper"),this.$container.appendChild(this.popup_wrapper)},t.prototype.setup_options=function(e){this.options=Object.assign({},ua,e)},t.prototype.setup_tasks=function(e){this.tasks=e.map((function(e,t){if(e.color=e.color||"#7892A1",e._start=ia.parse(e.start),e._end=ia.parse(e.end),ia.diff(e._end,e._start,"year")>10&&(e.end=null),e._index=t,"number"==typeof e._row_id&&(e._index=e._row_id),!e.start&&!e.end){var n=ia.today();e._start=n,e._end=ia.add(n,2,"day")}if(!e.start&&e.end&&(e._start=ia.add(e._end,-2,"day")),e.start&&!e.end&&(e._end=ia.add(e._start,2,"day")),ia.getDateValues(e._end).slice(3).every((function(e){return 0===e}))&&(e._end=ia.add(e._end,24,"hour")),e.start&&e.end||(e.invalid=!0),"string"==typeof e.dependencies||!e.dependencies){var o=[];e.dependencies&&(o=e.dependencies.split(",").map((function(e){return e.trim()})).filter((function(e){return e}))),e.dependencies=o}return e.id||(e.id=function(e){return e.name+"_"+Math.random().toString(36).slice(2,12)}(e)),e})),this.setup_dependencies()},t.prototype.setup_dependencies=function(){var e,t,n,o;this.dependency_map={};try{for(var i=he(this.tasks),r=i.next();!r.done;r=i.next()){var a=r.value;try{for(var s=(n=void 0,he(a.dependencies)),l=s.next();!l.done;l=s.next()){var c=l.value;this.dependency_map[c]=this.dependency_map[c]||[],this.dependency_map[c].push(a.id)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},t.prototype.refresh=function(e){this.setup_tasks(e),this.change_view_mode()},t.prototype.change_view_mode=function(e){void 0===e&&(e=this.options.viewMode),this.setup_gantt_dates(),this.update_view_scale(e),this.setup_dates(),this.render(),this.trigger_event("onViewChange",[e])},t.prototype.update_view_scale=function(t){this.options.viewMode=t,t===e.ViewMode.QuarterHour?(this.options.step=1/4,this.options.columnWidth=50):t===e.ViewMode.Hour?(this.options.step=1,this.options.columnWidth=50):t===e.ViewMode.Day?(this.options.step=24,this.options.columnWidth=50):t===e.ViewMode.HalfDay?(this.options.step=12,this.options.columnWidth=50):t===e.ViewMode.QuarterDay?(this.options.step=6,this.options.columnWidth=50):t===e.ViewMode.Week?(this.options.step=168,this.options.columnWidth=140):t===e.ViewMode.Month?(this.options.step=720,this.options.columnWidth=120):t===e.ViewMode.Year&&(this.options.step=8760,this.options.columnWidth=120)},t.prototype.setup_dates=function(){this.setup_date_values()},t.prototype.setup_gantt_dates=function(){var t,n,o,i,r,a,s,l,c,p,d,u,m,h,f,g,v,b;this._minDate=null,this._maxDate=null;try{for(var y=he(this.tasks),x=y.next();!x.done;x=y.next()){var _=x.value;(!this.minDate||_.start<this.minDate)&&(this._minDate=ia.startOf(_.start,"day")),(!this.maxDate||_.end>this.maxDate)&&(this._maxDate=_.end)}}catch(e){t={error:e}}finally{try{x&&!x.done&&(n=y.return)&&n.call(y)}finally{if(t)throw t.error}}switch(this.options.viewMode){case e.ViewMode.QuarterHour:this._minDate=ia.add(this.minDate,-(null!==(o=this.options.marginBeforeStart)&&void 0!==o?o:15),"minutes"),this._maxDate=ia.add(this.maxDate,null!==(i=this.options.marginAfterEnd)&&void 0!==i?i:15,"minutes");case e.ViewMode.Hour:this._minDate=ia.add(this.minDate,-(null!==(r=this.options.marginBeforeStart)&&void 0!==r?r:1),"hour"),this._maxDate=ia.add(this.maxDate,null!==(a=this.options.marginAfterEnd)&&void 0!==a?a:1,"hour");break;case e.ViewMode.QuarterDay:this._minDate=ia.add(this.minDate,-(null!==(s=this.options.marginBeforeStart)&&void 0!==s?s:6),"hour"),this._maxDate=ia.add(this.maxDate,null!==(l=this.options.marginAfterEnd)&&void 0!==l?l:6,"hour");break;case e.ViewMode.HalfDay:this._minDate=ia.add(this.minDate,-(null!==(c=this.options.marginBeforeStart)&&void 0!==c?c:12),"hour"),this._maxDate=ia.add(this.maxDate,null!==(p=this.options.marginAfterEnd)&&void 0!==p?p:12,"hour");break;case e.ViewMode.Day:this._minDate=ia.add(this.minDate,-(null!==(d=this.options.marginBeforeStart)&&void 0!==d?d:1),"day"),this._maxDate=ia.add(this.maxDate,null!==(u=this.options.marginAfterEnd)&&void 0!==u?u:1,"day");break;case e.ViewMode.Week:this._minDate=ia.add(this.minDate,-(null!==(m=this.options.marginBeforeStart)&&void 0!==m?m:1),"week"),this._maxDate=ia.add(this.maxDate,null!==(h=this.options.marginAfterEnd)&&void 0!==h?h:1,"week");break;case e.ViewMode.Month:this._minDate=ia.add(this.minDate,-(null!==(f=this.options.marginBeforeStart)&&void 0!==f?f:1),"month"),this._maxDate=ia.add(this.maxDate,null!==(g=this.options.marginAfterEnd)&&void 0!==g?g:1,"month");break;case e.ViewMode.Year:this._minDate=ia.add(this.minDate,-(null!==(v=this.options.marginBeforeStart)&&void 0!==v?v:1),"year"),this._maxDate=ia.add(this.maxDate,null!==(b=this.options.marginAfterEnd)&&void 0!==b?b:1,"year")}},t.prototype.setup_date_values=function(){this.dates=[];for(var t=null;null===t||t<this.maxDate;)t=t?this.view_is(e.ViewMode.Year)?ia.add(t,1,"year"):this.view_is(e.ViewMode.Month)?ia.add(t,1,"month"):ia.add(t,this.options.step,"hour"):ia.clone(this.minDate),this.dates.push(t);if(this.options.containerWidth){var n=(this.options.containerWidth-1)/this.dates.length;this.options.columnWidth=n<45?45:n}},t.prototype.bind_events=function(){this.bind_grid_click(),this.bind_bar_events()},t.prototype.render=function(){this.clear(),this.setup_layers(),this.make_grid(),this.make_dates(),this.make_bars(),this.make_arrows(),this.map_arrows_on_bars(),this.set_width(),this.set_scroll_position()},t.prototype.setup_layers=function(){var e,t;this.layers={};try{for(var n=he(["grid","date","arrow","progress","bar","details"]),o=n.next();!o.done;o=n.next()){var i=o.value;this.layers[i]=aa("g",{class:i,append_to:this.$svg})}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.make_grid=function(){this.make_grid_background(),this.make_grid_rows(),this.make_grid_header(),this.make_grid_highlights(),this.make_grid_ticks()},t.prototype.make_grid_background=function(){var e=this.dates.length*this.options.columnWidth;this.options.containerWidth&&(e=this.options.containerWidth);var t=ge(new Set(this.tasks.map((function(e){return e._row_id})))),n=this.options.headerHeight+this.options.padding/2+(this.options.barHeight+this.options.padding)*t.length;aa("rect",{x:0,y:0,width:e,height:n,class:"grid-background",append_to:this.layers.grid}),ra.attr(this.$svg,{height:n,width:"100%"},null)},t.prototype.make_grid_rows=function(){var e=this,t=aa("g",{append_to:this.layers.grid}),n=aa("g",{append_to:this.layers.grid}),o=this.dates.length*this.options.columnWidth,i=this.options.barHeight+this.options.padding,r=this.options.headerHeight+this.options.padding/2;this.tasks.forEach((function(a){aa("rect",{x:0,y:r,width:o,height:i,class:"grid-row",append_to:t}),aa("line",{x1:0,y1:r+i,x2:o,y2:r+i,class:"row-line",append_to:n}),r+=e.options.barHeight+e.options.padding}))},t.prototype.make_grid_header=function(){var e=this.dates.length*this.options.columnWidth,t=this.options.headerHeight+10;aa("rect",{x:0,y:0,width:e,height:t,class:"grid-header",append_to:this.layers.grid})},t.prototype.make_grid_ticks=function(){var t,n,o=0,i=this.options.headerHeight+this.options.padding/2,r=(this.options.barHeight+this.options.padding)*this.tasks.length;try{for(var a=he(this.dates),s=a.next();!s.done;s=a.next()){var l=s.value,c="tick";(this.view_is(e.ViewMode.QuarterHour)&&0===l.getHours()&&0===l.getMinutes()||this.view_is([e.ViewMode.Hour,e.ViewMode.QuarterDay,e.ViewMode.HalfDay])&&0===l.getHours()||this.view_is(e.ViewMode.Day)&&1===l.getDate()||this.view_is(e.ViewMode.Week)&&l.getDate()>=1&&l.getDate()<8||this.view_is(e.ViewMode.Month)&&l.getMonth()%3==0)&&(c+=" thick"),aa("path",{d:"M "+o+" "+i+" v "+r,class:c,append_to:this.layers.grid}),this.view_is(e.ViewMode.Month)?o+=ia.getDaysInMonth(l)*this.options.columnWidth/30:o+=this.options.columnWidth}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}},t.prototype.make_grid_highlights=function(){var t,n;if(this.view_is(e.ViewMode.Day)){var o=this.options.columnWidth,i=(this.options.barHeight+this.options.padding)*this.tasks.length+this.options.headerHeight+this.options.padding/2,r=0;try{for(var a=he(this.dates),s=a.next();!s.done;s=a.next()){var l=s.value,c=(this.options.headerHeight+this.options.padding)/2,p=l==ia.today(),d=0==l.getDay()||6==l.getDay(),u=void 0;p?(u="today-highlight",c=(this.options.headerHeight+this.options.padding)/2):d&&(u="weekend-highlight");(p||d)&&aa("rect",{x:r,y:c,rx:3,ry:3,width:o,height:i,class:u,append_to:this.layers.grid}),r+=this.options.columnWidth}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}}},t.prototype.make_dates=function(){for(var e=this.get_dates_to_draw(),t=0;t<e.length;t++){var n=e[t];if(aa("text",{x:n.lower_x,y:n.lower_y+20,innerHTML:n.lower_text,class:"title-2",append_to:this.layers.date}),n.middle_text&&aa("text",{x:n.middle_x,y:n.middle_y,innerHTML:n.middle_text,class:"middle-text",append_to:this.layers.date}),n.upper_text){var o=aa("text",{x:n.upper_x,y:n.upper_y,innerHTML:n.upper_text,class:"upper-text",append_to:this.layers.date});o.getBBox().x2>this.layers.grid.getBBox().width&&o.remove()}}},t.prototype.get_dates_to_draw=function(){var e=this,t=null;return this.dates.map((function(n,o){var i=e.get_date_info(n,t,o);return t=n,i}))},t.prototype.get_date_info=function(e,t,n){t||(t=ia.add(e,1,"year"));var o={quarterHourUpper:e.getDate()!==t.getDate()?ia.format(e,"D MMM",this.options.language):"",quarterHourLower:ia.format(e,"HH:mm",this.options.language),hourUpper:e.getDate()!==t.getDate()?ia.format(e,"D MMM",this.options.language):"",hourLower:ia.format(e,"HH:mm",this.options.language),quarterDayUpper:e.getDate()!==t.getDate()?ia.format(e,"D MMM",this.options.language):"",quarterDayLower:ia.format(e,"HH:mm",this.options.language),halfDayUpper:e.getDate()!==t.getDate()?e.getMonth()!==t.getMonth()||n<2?ia.format(e,"D MMM",this.options.language):ia.format(e,"D",this.options.language):"",halfDayLower:ia.format(e,"HH:mm",this.options.language),dayUpper:e.getMonth()!==t.getMonth()||0===n?ia.format(e,"MMMM",this.options.language):"",dayMiddle:ia.format(e,"ddd",this.options.language),dayLower:ia.format(e,"D",this.options.language),weekUpper:e.getMonth()!==t.getMonth()?ia.format(e,"MMMM",this.options.language):"",weekLower:e.getMonth()!==t.getMonth()?ia.format(e,"D MMM",this.options.language):ia.format(e,"D",this.options.language),monthUpper:e.getFullYear()!==t.getFullYear()?ia.format(e,"YYYY",this.options.language):"",monthLower:ia.format(e,"MMMM",this.options.language),yearUpper:e.getFullYear()!==t.getFullYear()?ia.format(e,"YYYY",this.options.language):"",yearLower:ia.format(e,"YYYY",this.options.language)},i={x:n*this.options.columnWidth,upper_y:this.options.headerHeight-20-25,middle_y:this.options.headerHeight-20,lower_y:this.options.headerHeight-20},r={quarterHourUpper:this.dates.length<14?this.options.columnWidth:24*this.options.columnWidth/2,quarterHourMiddle:this.options.columnWidth/2,quarterHourLower:this.options.columnWidth/2,hourUpper:this.dates.length<14?this.options.columnWidth:24*this.options.columnWidth/2,hourMiddle:this.options.columnWidth/2,hourLower:this.options.columnWidth/2,quarterDayUpper:4*this.options.columnWidth/2,quarterDayMiddle:this.options.columnWidth/2,quarterDayLower:this.options.columnWidth/2,halfDayUpper:2*this.options.columnWidth/2,halfDayMiddle:this.options.columnWidth/2,halfDayLower:this.options.columnWidth/2,dayUpper:this.dates.length<15?this.options.columnWidth:30*this.options.columnWidth/2,dayMiddle:this.options.columnWidth/2-12,dayLower:this.options.columnWidth/2,weekUpper:4*this.options.columnWidth/2,weekMiddle:0,weekLower:0,monthUpper:this.dates.length<15?this.options.columnWidth:12*this.options.columnWidth/2,monthMiddle:0,monthLower:this.options.columnWidth/2,yearUpper:30*this.options.columnWidth/2,yearMiddle:this.options.columnWidth/2,yearLower:this.options.columnWidth/2};return{upper_text:o[this.options.viewMode+"Upper"],middle_text:o[this.options.viewMode+"Middle"],lower_text:o[this.options.viewMode+"Lower"],upper_x:i.x+r[this.options.viewMode+"Upper"],upper_y:i.upper_y,middle_x:i.x+r[this.options.viewMode+"Middle"],middle_y:i.middle_y,lower_x:i.x+r[this.options.viewMode+"Lower"],lower_y:i.lower_y,date:e}},t.prototype.make_bars=function(){var e=this;this.bars=this.tasks.map((function(t){var n=new ca(e,t);return e.layers.bar.appendChild(n.group),n}))},t.prototype.make_arrows=function(){var e,t,n=this;this.arrows=[];var o=function(e){var t;t=e.dependencies.map((function(t){var o=n.get_task(t);if(o){var i=new da(n,n.bars[o._index],n.bars[e._index]);return n.layers.arrow.appendChild(i.element),i}})).filter(Boolean),i.arrows=i.arrows.concat(t)},i=this;try{for(var r=he(this.tasks),a=r.next();!a.done;a=r.next()){o(a.value)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},t.prototype.map_arrows_on_bars=function(){var e,t,n=function(e){e.arrows=o.arrows.filter((function(t){return t.fromTask.task.id===e.task.id||t.toTask.task.id===e.task.id}))},o=this;try{for(var i=he(this.bars),r=i.next();!r.done;r=i.next()){n(r.value)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},t.prototype.set_width=function(){var e=this.$svg.getBoundingClientRect().width,t=this.$svg.querySelector(".grid .grid-row").getAttribute("width");e<t&&this.$svg.setAttribute("width",t)},t.prototype.set_scroll_position=function(){var e=this.$svg.parentElement;if(e){var t=ia.diff(this.get_oldest_starting_date(),this.minDate,"hour")/this.options.step*this.options.columnWidth-this.options.columnWidth;e.scrollLeft=t}},t.prototype.bind_grid_click=function(){var e=this;ra.on(this.$svg,this.options.popupTrigger,".grid-row, .grid-header",(function(){e.unselect_all(),e.hide_popup()}))},t.prototype.bind_bar_events=function(){var e=this,t=!1,n=0,o=!1,i=!1,r=null,a=[];this.bar_being_dragged=null,ra.on(this.$svg,"mousedown",".bar-wrapper, .handle",(function(s,l){var c=ra.closest(".bar-wrapper",l);l.classList.contains("left")?o=!0:l.classList.contains("right")?i=!0:l.classList.contains("bar-wrapper")&&e.options.allowMovement&&(t=!0),c.classList.add("active"),n=s.offsetX;var p=ge([r=c.getAttribute("data-id")],e.get_all_dependent_tasks(r));a=p.map((function(t){return e.get_bar(t)})),e.bar_being_dragged=r,a.forEach((function(e){var t=e.element;t.ox=t.getX(),t.oy=t.getY(),t.owidth=t.getWidth(),t.finaldx=0}))})),ra.on(this.$svg,"mousemove",(function(s){if(t||o||i){var l=s.offsetX-n;a.forEach((function(n){var a=n.element;a.finaldx=e.get_snap_position(l),e.hide_popup(),o?r===n.task.id?n.updateBarPosition({x:a.ox+a.finaldx,width:a.owidth-a.finaldx}):n.updateBarPosition({x:a.ox+a.finaldx}):i?r===n.task.id&&n.updateBarPosition({width:a.owidth+a.finaldx}):t&&n.updateBarPosition({x:a.ox+a.finaldx})}))}}),null),document.addEventListener("mouseup",(function(n){(t||o||i||!e.options.allowMovement)&&a.forEach((function(e){return e.group.classList.remove("active")})),t=!1,o=!1,i=!1})),ra.on(this.$svg,"mouseup",(function(t){e.bar_being_dragged=null,a.forEach((function(e){e.element.finaldx&&(e.dateChanged(),e.setActionCompleted())}))}),null)},t.prototype.get_all_dependent_tasks=function(e){for(var t=this,n=[],o=[e];o.length;){var i=o.reduce((function(e,n){return e=e.concat(t.dependency_map[n])}),[]);n=n.concat(i),o=i.filter((function(e){return!o.includes(e)}))}return n.filter(Boolean)},t.prototype.get_snap_position=function(t){var n,o=t;return this.view_is(e.ViewMode.Hour)?o-(n=t%(this.options.columnWidth/6))+(n<this.options.columnWidth/12?0:this.options.columnWidth/6):this.view_is(e.ViewMode.Week)?o-(n=t%(this.options.columnWidth/7))+(n<this.options.columnWidth/14?0:this.options.columnWidth/7):this.view_is(e.ViewMode.Month)?o-(n=t%(this.options.columnWidth/30))+(n<this.options.columnWidth/60?0:this.options.columnWidth/30):o-(n=t%this.options.columnWidth)+(n<this.options.columnWidth/2?0:this.options.columnWidth)},t.prototype.unselect_all=function(){ge(this.$svg.querySelectorAll(".bar-wrapper")).forEach((function(e){e.classList.remove("active")}))},t.prototype.view_is=function(e){var t=this;return Array.isArray(e)?e.some((function(e){return t.options.viewMode===e})):this.options.viewMode===e},t.prototype.get_task=function(e){return this.tasks.find((function(t){return t.id===e}))},t.prototype.get_bar=function(e){return this.bars.find((function(t){return t.task.id===e}))},t.prototype.show_popup=function(e){this.popup||(this.popup=new pa(this.popup_wrapper,this.options.customPopupHtml)),this.popup.show(e)},t.prototype.hide_popup=function(){this.popup&&this.popup.hide()},t.prototype.trigger_event=function(e,t){this.options[e]&&this.options[e].apply(null,t)},t.prototype.get_oldest_starting_date=function(){return this.tasks.map((function(e){return e._start})).reduce((function(e,t){return t<=e?t:e}))},t.prototype.clear=function(){this.$svg.innerHTML=""},t}();var ha,fa=function(){function n(){this.multipleTaskPerLine=!1,this.showSideTable=!0,this.viewMode=e.ViewMode.Day,this.allowMovement=!0,this.hasPopup=!0,this.fullWidth=!1,this.showOnlyHours=!1,this.showOnlyDays=!1,this.taskClicked=new t.EventEmitter,this.taskDateChanged=new t.EventEmitter,this.viewChanged=new t.EventEmitter}return n.prototype.ngOnInit=function(){this._validateViewMode(),this._validateTasks()},n.prototype.ngAfterViewInit=function(){var e=this;this.fullWidth&&(this.containerWidth=this.outer.nativeElement.offsetWidth-this.side.nativeElement.offsetWidth),this._gantt=new ma("#gantt",this._filterTask(this.tasks),{viewMode:this.viewMode,marginBeforeStart:this.marginBeforeStart,marginAfterEnd:this.marginAfterEnd,language:"pt-br",allowMovement:this.allowMovement,hasPopup:this.hasPopup,containerWidth:this.containerWidth,showOnlyHours:this.showOnlyHours,showOnlyDays:this.showOnlyDays,onClick:function(t){return e.taskClicked.emit(t)},onDateChange:function(t,n,o){return e.taskDateChanged.emit({task:t,start:n,end:o})},onViewChange:function(t){return e.viewChanged.emit(t)}})},n.prototype.ngOnChanges=function(e){this._gantt&&(e.viewMode&&(this._gantt.options.viewMode=e.viewMode.currentValue,this._gantt.change_view_mode()),e.tasks&&this._gantt.refresh(this._filterTask(e.tasks.currentValue)))},n.prototype._filterTask=function(e){var t=[];if(this.multipleTaskPerLine)e.forEach((function(e,n){t.push.apply(t,ge(e.tasks.map((function(e){return ce(ce({},e),{_row_id:n})}))))}),[]);else{var n=0;e.forEach((function(e){t.push.apply(t,ge(e.tasks.map((function(e){return ce(ce({},e),{_row_id:n++})}))))}),[])}return t},n.prototype._validateViewMode=function(){if(![e.ViewMode.QuarterHour,e.ViewMode.Hour,e.ViewMode.QuarterDay,e.ViewMode.HalfDay,e.ViewMode.Day,e.ViewMode.Week,e.ViewMode.Month,e.ViewMode.Year].includes(this.viewMode))throw new Error("Invalid gantt view mode")},n.prototype._validateTasks=function(){this.tasks.forEach((function(e){e.tasks.forEach((function(e){if(e.start>e.end)throw new Error("invalid task. The start date must be less than the end date.")}))}))},pe([t.Input()],n.prototype,"columnTitle",void 0),pe([t.Input()],n.prototype,"multipleTaskPerLine",void 0),pe([t.Input()],n.prototype,"showSideTable",void 0),pe([t.Input()],n.prototype,"viewMode",void 0),pe([t.Input()],n.prototype,"tasks",void 0),pe([t.Input()],n.prototype,"marginBeforeStart",void 0),pe([t.Input()],n.prototype,"marginAfterEnd",void 0),pe([t.Input()],n.prototype,"allowMovement",void 0),pe([t.Input()],n.prototype,"hasPopup",void 0),pe([t.Input()],n.prototype,"containerWidth",void 0),pe([t.Input()],n.prototype,"fullWidth",void 0),pe([t.Input()],n.prototype,"showOnlyHours",void 0),pe([t.Input()],n.prototype,"showOnlyDays",void 0),pe([t.Output()],n.prototype,"taskClicked",void 0),pe([t.Output()],n.prototype,"taskDateChanged",void 0),pe([t.Output()],n.prototype,"viewChanged",void 0),pe([t.ViewChild("outer")],n.prototype,"outer",void 0),pe([t.ViewChild("side")],n.prototype,"side",void 0),n=pe([t.Component({selector:"s-gantt",template:'<div class="outer" #outer>\n <div #side>\n <gantt-side-table\n *ngIf="showSideTable"\n [tasks]="tasks"\n [columnTitle]="columnTitle"\n [multipleTaskPerLine]="multipleTaskPerLine">\n </gantt-side-table>\n </div>\n <svg id="gantt"></svg>\n</div>\n',encapsulation:t.ViewEncapsulation.None,styles:[".outer{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:start;align-items:flex-start;-ms-flex-line-pack:center;align-content:center;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-direction:row;flex-direction:row}",'.gantt{border:1px solid #e0e0e0}.gantt .weekend-highlight{fill:#b8c2cc;opacity:.5;stroke:#ebeff2;stroke-width:1}.gantt .grid-background{fill:none}.gantt .grid-header,.gantt .grid-row{fill:#fff}.gantt .grid-row:nth-child(even){fill:#f5f5f5}.gantt .row-line{stroke:#ebeff2}.gantt .tick{stroke:#e0e0e0;stroke-width:.4}.gantt .tick.thick{stroke:#428bca;stroke-width:2}.gantt .today-highlight{fill:#ffe979;opacity:.5}.gantt .arrow{fill:none;stroke:#666;stroke-width:1.4}.gantt .bar{opacity:.8;stroke:#8d99a6;stroke-width:0;transition:stroke-width .3s;-webkit-user-select:none;-ms-user-select:none;user-select:none}.gantt .bar-invalid{fill:transparent;stroke:#8d99a6;stroke-dasharray:5;stroke-width:1}.gantt .bar-invalid~.bar-label{fill:#555}.gantt .bar-label{fill:#fff;text-anchor:middle;font-size:12px;font-weight:lighter}.gantt .bar-label.big{fill:#555;text-anchor:start}.gantt .bar-wrapper{cursor:pointer;outline:0}.gantt .bar-wrapper.active .bar,.gantt .bar-wrapper:hover .bar{opacity:1}.gantt .bar-wrapper.active .bar{stroke:#212533;stroke-width:2}.gantt .lower-text,.gantt .upper-text{font-size:12px;text-anchor:middle}.gantt .upper-text{fill:#555}.gantt .lower-text{fill:#333}.gantt .hide{display:none}.gantt-container{border-left:1px solid #e0e0e0;font-size:12px;overflow:auto;position:relative}.gantt-container .title-1{fill:#999;font-size:12px;font-weight:400;line-height:150%;text-anchor:middle}.gantt-container .title-2{fill:#333;font-size:14px;font-weight:400;line-height:150%;text-anchor:middle}.gantt-container .popup-wrapper{left:0;position:absolute;top:0}.gantt-container .popup-wrapper .popup{background:#0e1119;border-radius:2px;color:#fff;padding:8px;font-family:"Open Sans" sans-serif;line-height:150%;font-weight:400}.gantt-container .popup-wrapper .popup .wrp-title{border-bottom:1px solid #525966;padding-bottom:10px}.gantt-container .popup-wrapper .popup .wrp-title .title{font-size:14px}.gantt-container .popup-wrapper .popup .wrp-subtitle{color:#dfe2e5;padding-top:10px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.gantt-container .popup-wrapper .popup .wrp-subtitle .icon{margin-right:10px}.gantt-container .popup-wrapper .popup .wrp-subtitle .subtitle{font-size:12px}.gantt-container .popup-wrapper .popup .pointer{border:6px solid transparent;border-top-color:#0e1119;height:6px;margin-left:-4px;position:absolute}']})],n)}(),ga=function(){function e(){this.ROW_HEIGHT=44,this.multipleTaskPerLine=!1}return e.prototype.ngOnInit=function(){this._removeEmptyTasks()},e.prototype._removeEmptyTasks=function(){this.tasks=this.tasks.filter((function(e){return e.tasks.length}))},pe([t.Input()],e.prototype,"columnTitle",void 0),pe([t.Input()],e.prototype,"tasks",void 0),pe([t.Input()],e.prototype,"multipleTaskPerLine",void 0),e=pe([t.Component({selector:"gantt-side-table",template:'<div class="side-table">\n <div class="column-title">\n <span>{{ columnTitle }}</span>\n </div>\n <div class="tasks" >\n <div\n *ngFor="let task of tasks; let i = index"\n class="task"\n [ngStyle]="{\'height.px\': multipleTaskPerLine\n ? ROW_HEIGHT\n : ROW_HEIGHT * task.tasks.length}"\n [sTooltip]="task.title.length > 20 || task.subtitle.length > 20 ? \'<span><strong>\' + task.title + \' </strong></br><span> \' + task.subtitle + \' </span></span>\' : \'\' "\n [escape]="false">\n <div class="title">\n {{ task.title }}\n </div>\n <div class="subtitle">\n {{ task.subtitle }}\n </div>\n </div>\n </div>\n</div>\n',styles:['.side-table{background:#fff;height:100%;min-width:175px}.side-table .column-title{height:106px;border:1px solid #e0e0e0;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center;padding:8px}.side-table .column-title span{font-family:"Open Sans" sans-serif;font-size:14px;font-weight:700;line-height:150%}.side-table .task{-ms-flex-align:center;align-items:center;background-color:#fff;border:1px solid #e0e0e0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-family:"Open Sans",sans-serif;font-weight:400;-ms-flex-pack:center;justify-content:center;line-height:150%;padding:0 5px}.side-table .task .title{color:#333;font-size:14px;max-width:300px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.side-table .task .subtitle{color:#999;font-size:12px;max-width:300px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}']})],e)}(),va=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Re],declarations:[fa,ga],exports:[fa]})],e)}();(ha=e.GlobalSearchSizeEnum||(e.GlobalSearchSizeEnum={})).STANDARD="STANDARD",ha.MEDIUM="MEDIUM",ha.SMALL="SMALL";var ba,ya=function(){function n(){this.id="s-global-search-dropdown-item-"+o.nextId++,this.size=e.GlobalSearchSizeEnum.STANDARD,this.buttonClick=new t.EventEmitter}var o;return o=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,pe([t.Input()],n.prototype,"id",void 0),pe([t.Input()],n.prototype,"primaryLabel",void 0),pe([t.Input()],n.prototype,"secondaryEmptyLabel",void 0),pe([t.Input()],n.prototype,"tertiaryEmptyLabel",void 0),pe([t.Input()],n.prototype,"imageSource",void 0),pe([t.Input()],n.prototype,"imageAlt",void 0),pe([t.Input()],n.prototype,"iconClass",void 0),pe([t.Input()],n.prototype,"secondaryLabel",void 0),pe([t.Input()],n.prototype,"tertiaryLabel",void 0),pe([t.Input()],n.prototype,"size",void 0),pe([t.Input()],n.prototype,"template",void 0),pe([t.Output()],n.prototype,"buttonClick",void 0),pe([t.ContentChild(Rr,{static:!0})],n.prototype,"thumbnailComponent",void 0),pe([t.ViewChild(t.TemplateRef,{static:!0})],n.prototype,"content",void 0),n=o=pe([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)}(),xa=function(){function e(e){this.cdr=e,this.id="s-global-search-"+ya.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(){Yn.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?Yn.addClass(this.globalSearch,"global-search__input-active"):(this.removeActiveClassByGlobalSearch(),this.close()),this.cdr.detectChanges()},e.nextId=0,e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},pe([t.ViewChild("globalSearch",{static:!1})],e.prototype,"globalSearch",void 0),pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"delay",void 0),pe([t.Input()],e.prototype,"totalItensLabel",void 0),pe([t.Input()],e.prototype,"showMoreLabel",void 0),pe([t.Input()],e.prototype,"placeholder",void 0),pe([t.Input()],e.prototype,"isLoading",void 0),pe([t.Input()],e.prototype,"totalElements",void 0),pe([t.Input()],e.prototype,"emptyTitle",void 0),pe([t.Input()],e.prototype,"emptyDescription",void 0),pe([t.Input()],e.prototype,"emptyIcon",void 0),pe([t.Input()],e.prototype,"showFooter",void 0),pe([t.ContentChildren(ya)],e.prototype,"dropdownItens",void 0),pe([t.Output()],e.prototype,"onSearch",void 0),pe([t.Output()],e.prototype,"onFocus",void 0),pe([t.Output()],e.prototype,"onShowMore",void 0),e=pe([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:[n.trigger("expandableContent",[n.state("*",n.style({height:"0"})),n.state("false",n.style({height:"0"})),n.state("true",n.style({height:"*"})),n.transition("* => true",n.animate("200ms ease-out")),n.transition("false <=> true",n.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)}(),_a=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}]},pe([t.Output()],e.prototype,"onScroll",void 0),pe([t.HostListener("scroll")],e.prototype,"scroll",null),e=pe([t.Directive({selector:"[sInfiniteScroll]"})],e)}(),wa=function(){function e(){}return e=pe([t.NgModule({declarations:[_a],imports:[r.CommonModule],exports:[_a]})],e)}(),Ca=function(){function e(){}return e=pe([t.NgModule({declarations:[xa,ya],imports:[r.CommonModule,z.InputTextModule,a.FormsModule,a.ReactiveFormsModule,Y.TooltipModule,Ar,Ft,vi,wa,Qo],exports:[xa,ya,Y.TooltipModule,Ar,Ft,vi,Qo],entryComponents:[xa,ya]})],e)}(),ka=function(){function e(e,t,n){this.clipboard=e,this.toastService=t,this.translateService=n,this.open=!1,this.isLoading=!1,this.likeSelected=!1,this.dislikeSelected=!1}return e.prototype.toggle=function(){var e=!this.open;this.open=e,!0===e&&this.insight.onOpenSidebar?this.insight.onOpenSidebar():!1===e&&this.insight.onCloseSideBar&&this.insight.onCloseSideBar(),!0===e&&this._requestInsight()},e.prototype.onLikeSelected=function(){var e,t;this.likeSelected?this.likeSelected=!1:(this.likeSelected=!0,this.dislikeSelected=!1,null===(t=(e=this.insight).onLikeSelected)||void 0===t||t.call(e))},e.prototype.onDislikeSelected=function(){var e,t;this.dislikeSelected?this.dislikeSelected=!1:(this.dislikeSelected=!0,this.likeSelected=!1,null===(t=(e=this.insight).onDislikeSelected)||void 0===t||t.call(e))},e.prototype.copyContent=function(){var e,t;null===(t=(e=this.insight).onCopy)||void 0===t||t.call(e,this.content),this.clipboard.copy(this.content)&&this.toastService.show({severity:"info",title:this.translateService.instant("platform.angular_components.copied_to_clipboard")})},e.prototype.reloadContent=function(){this._requestInsight()},e.prototype._requestInsight=function(){var e=this;this.isLoading=!0,this.insight.request$.pipe(i.first(),i.finalize((function(){return e.isLoading=!1}))).subscribe((function(t){e.content=te.marked(t),e.insight.onContentLoaded&&e.insight.onContentLoaded()}))},e.ctorParameters=function(){return[{type:Z.Clipboard},{type:Ko},{type:b.TranslateService}]},pe([t.Input()],e.prototype,"insight",void 0),e=pe([t.Component({selector:"s-ia-insight-card",template:'<div class="ia-insight-card" [ngClass]="{ \'ia-insight-card--close\': !open }">\n <div class="header" (click)="toggle()">\n <s-badge text="Insight" iconClass="fal fa-lightbulb"></s-badge>\n <span class="insight-title">{{ insight.title }}</span>\n <span\n class="toggle-icon fas"\n [ngClass]="{\n \'fa-angle-down\': !open,\n \'fa-angle-up\': open\n }"\n >\n </span>\n </div>\n <div class="content">\n <ng-container *ngIf="isLoading; then loadingBlock; else contentBlock"></ng-container>\n <ng-template #loadingBlock>\n <s-ia-insight-card-loader></s-ia-insight-card-loader>\n </ng-template>\n <ng-template #contentBlock>\n <ng-container *ngIf="content; then successBlock; else errorBlock"></ng-container>\n\n <ng-template #successBlock>\n <span class="text" [innerHTML]="content"></span>\n <span class="insight-footer">{{ "platform.angular_components.insight_footer" | translate }}</span>\n </ng-template>\n <ng-template #errorBlock>\n <span class="text text--error">{{ "platform.angular_components.error_loading_insight_alt" | translate }}</span>\n </ng-template>\n\n <div class="options">\n <button [disabled]="!content" (click)="copyContent()" class="option">\n <i class="fal fa-copy"></i>\n </button>\n <button (click)="reloadContent()" class="option">\n <i class="fal fa-redo"></i>\n </button>\n <button\n *ngIf="insight.onLikeSelected"\n [disabled]="!content"\n (click)="onLikeSelected()"\n class="option"\n >\n <i [ngClass]="{\n \'fal\': !likeSelected,\n \'fas\': likeSelected,\n \'fa-thumbs-up\': true\n }"></i>\n </button>\n <button\n *ngIf="insight.onDislikeSelected"\n [disabled]="!content"\n (click)="onDislikeSelected()"\n class="option"\n >\n <i [ngClass]="{\n \'fal\': !dislikeSelected,\n \'fas\': dislikeSelected,\n \'fa-thumbs-down\': true\n }"></i>\n </button>\n </div>\n </ng-template>\n </div>\n</div>\n',styles:['.ia-insight-card{background-color:#fff;border:1px solid #9ecad4;border-radius:4px;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}.ia-insight-card .header{-ms-flex-align:center;align-items:center;background-color:#f1f7f8;border-bottom:1px solid #9ecad4;display:-ms-flexbox;display:flex;gap:8px;min-height:60px;padding:8px 16px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ia-insight-card .header .insight-title{color:#428bca;-ms-flex-positive:1;flex-grow:1;font-family:"Open Sans",sans-serif;font-size:14px;line-height:150%}.ia-insight-card .header .toggle-icon{color:#888b99;font-size:20px}.ia-insight-card .content{-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;cursor:auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:16px;min-height:160px;padding:24px}.ia-insight-card .content .text{color:#212533;font-family:"Open Sans",sans-serif;font-size:14px;width:100%}.ia-insight-card .content .text--error{text-align:center}.ia-insight-card .content .insight-footer{color:#888b99;font-family:"Open Sans",sans-serif;font-size:12px;text-align:center}.ia-insight-card .content .options{display:-ms-flexbox;display:flex;gap:8px}.ia-insight-card .content .options .option{background-color:transparent;border:none;color:#428bca;cursor:pointer;font-size:12px}.ia-insight-card .content .options .option:disabled{color:#c1c1cc;cursor:auto}.ia-insight-card--close{border-color:#dedce5}.ia-insight-card--close .header{background-color:#fbfafc;border:#dedce5}.ia-insight-card--close .header .insight-title{color:#888b99}.ia-insight-card--close .content{display:none}']})],e)}(),Ia=function(){function e(){this.insights=[],this.closedSidebar=new t.EventEmitter,this.openedSidebar=new t.EventEmitter,this.opened=!1}return e.prototype.toggle=function(){this.opened=!this.opened},e.prototype.open=function(){this.opened=!0,this.openedSidebar.emit()},e.prototype.close=function(){this.opened=!1,this.closedSidebar.emit()},pe([t.Input()],e.prototype,"insights",void 0),pe([t.Input()],e.prototype,"hasPermission",void 0),pe([t.Input()],e.prototype,"introText",void 0),pe([t.Input()],e.prototype,"introTemplate",void 0),pe([t.Input()],e.prototype,"emptyText",void 0),pe([t.Input()],e.prototype,"emptyTemplate",void 0),pe([t.Input()],e.prototype,"noPermissionText",void 0),pe([t.Input()],e.prototype,"noPermissionTemplate",void 0),pe([t.Output()],e.prototype,"closedSidebar",void 0),pe([t.Output()],e.prototype,"openedSidebar",void 0),e=pe([t.Component({selector:"s-ia-insight-sidebar",template:'<div\n class="sidebar"\n [class.opened]="opened">\n <div class="header">\n <button (click)="close()" class="option">\n <span class="far fa-chevron-double-right"></span>\n </button>\n <div class="title">\n <span><ng-container [ngTemplateOutlet]="iassistIcon"></ng-container></span>\n <span>Insight</span>\n </div>\n </div>\n <div class="intro">\n <ng-container *ngIf="hasPermission; then permissionBlock; else noPermissionBlock"></ng-container>\n\n <ng-template #permissionBlock>\n <ng-container *ngIf="insights?.length; then introBlock; else emptyBlock"></ng-container>\n \n <ng-template #introBlock>\n <ng-container *ngIf="introTemplate; then introCustomBlock; else introTextBlock"></ng-container>\n\n <ng-template #introCustomBlock>\n <ng-container *ngTemplateOutlet="introTemplate"></ng-container>\n </ng-template>\n\n <ng-template #introTextBlock>\n <span class="text">{{ introText || "platform.angular_components.insight_intro" | translate }}</span>\n </ng-template>\n </ng-template>\n \n <ng-template #emptyBlock>\n <ng-container *ngIf="emptyTemplate; then emptyCustomBlock; else emptyTextBlock"></ng-container>\n\n <ng-template #emptyCustomBlock>\n <ng-container *ngTemplateOutlet="emptyTemplate"></ng-container>\n </ng-template>\n\n <ng-template #emptyTextBlock>\n <span class="text">{{ emptyText || "platform.angular_components.insight_empty" | translate }}</span>\n </ng-template>\n </ng-template>\n </ng-template>\n \n <ng-template #noPermissionBlock>\n <ng-container *ngIf="noPermissionTemplate; then noPermissionCustomBlock; else noPermissionTextBlock"></ng-container>\n\n <ng-template #noPermissionCustomBlock>\n <ng-container *ngTemplateOutlet="noPermissionTemplate"></ng-container>\n </ng-template>\n\n <ng-template #noPermissionTextBlock>\n <span>{{ noPermissionText || "platform.angular_components.insight_no_permission" | translate }}</span>\n </ng-template>\n </ng-template>\n </div>\n <div class="insights">\n <ng-container *ngIf="insights?.length">\n <s-ia-insight-card\n *ngFor="let insight of insights"\n [insight]="insight">\n </s-ia-insight-card>\n </ng-container>\n </div>\n</div>\n\n<ng-template #iassistIcon>\n <div style="width: 28px; height: 28px;">\n <span *sSVGFactory="\'iassist\'"></span>\n </div>\n</ng-template>\n',styles:['.sidebar{background-color:#fff;border-left:1px solid #dedce5;height:100%;overflow-x:hidden;position:fixed;right:-25%;transition:.5s;top:0;width:25%;z-index:1002}.sidebar .header{border-bottom:1px solid #dedce5;display:-ms-flexbox;display:flex;gap:16px;padding:12px 20px}.sidebar .header .option{background-color:transparent;border:none;color:#428bca;cursor:pointer;font-size:16px;padding:12px}.sidebar .header .title{-ms-flex-align:center;align-items:center;color:#212533;display:-ms-flexbox;display:flex;font-family:"Open Sans",sans-serif;font-size:16px;gap:16px;line-height:1;-webkit-user-select:none;-ms-user-select:none;user-select:none}.sidebar .intro{margin:8px 40px}.sidebar .intro .text{color:#212533;display:-ms-flexbox;display:flex;font-family:"Open Sans",sans-serif;font-size:14px;-ms-flex-pack:center;justify-content:center;line-height:1.5;text-align:center;-webkit-user-select:none;-ms-user-select:none;user-select:none}.sidebar.opened{right:0}.sidebar.opened .insights{padding:12px}.insights{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:12px}@media (max-width:1366px){.sidebar{right:-50%;width:50%}}@media (max-width:768px){.sidebar{right:-75%;width:75%}}@media (max-width:600px){.sidebar{right:-100%;width:100%}}']})],e)}(),Sa=function(){function e(){}return e=pe([t.Component({selector:"s-ia-insight-card-loader",template:'<div class="ia-insight-card-loader">\n <div class="loader">\n <div class="loader-icon">\n <div *sSVGFactory="\'iassist\'"></div>\n </div>\n </div>\n \n <span class="loader-label">{{ "platform.angular_components.loading_insight" | translate }}</span>\n</div>\n',styles:['.ia-insight-card-loader{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:24px}.ia-insight-card-loader .loader{-ms-flex-align:center;align-items:center;animation:2s linear infinite spin;border:2px solid #f1f7f8;border-top:2px solid #0fa389;border-radius:50%;display:-ms-flexbox;display:flex;height:48px;-ms-flex-pack:center;justify-content:center;width:48px}.ia-insight-card-loader .loader .loader-icon{animation:2s linear infinite reverse spin;height:32px;transform:translate(-50%,-50%)}.ia-insight-card-loader .loader-label{color:#888b99;font-family:"Open Sans",sans-serif;font-size:16px}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}']})],e)}();(ba=e.IAInsightTemplateTypes||(e.IAInsightTemplateTypes={})).Empty="empty",ba.Intro="intro",ba.NoPermission="noPermission";var Ta,Ea=function(){function n(){this.insights=[],this.hasPermission=!0,this.openIAInsight=new t.EventEmitter,this.closedIAInsight=new t.EventEmitter}return n.prototype.ngAfterContentInit=function(){this._getTemplates()},n.prototype.open=function(){this.sidebar.open()},n.prototype.close=function(){this.sidebar.close()},n.prototype.onOpenSidebar=function(){this.openIAInsight.emit()},n.prototype.onCloseSidebar=function(){this.closedIAInsight.emit()},n.prototype.getIntroTemplate=function(){return this._getCustomTemplate(e.IAInsightTemplateTypes.Intro)},n.prototype.getNoPermissionTemplate=function(){return this._getCustomTemplate(e.IAInsightTemplateTypes.NoPermission)},n.prototype.getEmptyTemplate=function(){return this._getCustomTemplate(e.IAInsightTemplateTypes.Empty)},n.prototype._getCustomTemplate=function(e){var t;return null===(t=this.templates.find((function(t){return t.type===e})))||void 0===t?void 0:t.template},n.prototype._getTemplates=function(){this.introTemplate=this.getIntroTemplate(),this.emptyTemplate=this.getEmptyTemplate(),this.noPermissionTemplate=this.getNoPermissionTemplate()},pe([t.Input()],n.prototype,"insights",void 0),pe([t.Input()],n.prototype,"hasPermission",void 0),pe([t.Input()],n.prototype,"introText",void 0),pe([t.Input()],n.prototype,"emptyText",void 0),pe([t.Input()],n.prototype,"noPermissionText",void 0),pe([t.Output()],n.prototype,"openIAInsight",void 0),pe([t.Output()],n.prototype,"closedIAInsight",void 0),pe([t.ViewChild(Ia)],n.prototype,"sidebar",void 0),pe([t.ContentChildren(At)],n.prototype,"templates",void 0),n=pe([t.Component({selector:"s-ia-insight",template:'<s-ia-insight-sidebar\n #sidebar\n [insights]="insights"\n [hasPermission]="hasPermission"\n [introText]="introText"\n [introTemplate]="introTemplate"\n [emptyText]="emptyText"\n [emptyTemplate]="emptyTemplate"\n [noPermissionText]="noPermissionText"\n (openedSidebar)="onOpenSidebar()"\n (closedSidebar)="onCloseSidebar()"\n [noPermissionTemplate]="noPermissionTemplate"\n>\n</s-ia-insight-sidebar>\n',styles:[""]})],n)}(),Ma=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,b.TranslateModule,He,Ft,Re,Vt,pi],declarations:[Ea,ka,Ia,Sa],exports:[Ea,Vt]})],e)}(),La=function(){function e(){this.useFontAwesomeIcons=!1,this.itemsArray=[],this.selectable=!1,this.selectedChange=new t.EventEmitter}return Object.defineProperty(e.prototype,"items",{set:function(e){Se(e)?this.itemsArray=[]:this.itemsArray=Array.isArray(e)?e:[e]},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){e.selected&&e.selected.isFirstChange()&&this.selectable&&(this.selected.active=!0)},e.prototype.onClickGridMenuItem=function(e){this.selectable&&(this.previousGridMenuItemClicked&&(this.previousGridMenuItemClicked.active=!1),e.active=!e.active,this.previousGridMenuItemClicked=e,this.selectedChange.next(e))},pe([t.Input()],e.prototype,"items",null),pe([t.Input()],e.prototype,"useFontAwesomeIcons",void 0),pe([t.Input()],e.prototype,"selectable",void 0),pe([t.Input()],e.prototype,"selected",void 0),pe([t.Output()],e.prototype,"selectedChange",void 0),e=pe([t.Component({selector:"s-grid-menu",template:'<section class="grid-menu">\n <s-grid-menu-item\n *ngFor="let item of itemsArray"\n [item]="item"\n [iconIsFromFontAwesome]="useFontAwesomeIcons"\n (clickedGridMenuItem)="onClickGridMenuItem($event)"\n ></s-grid-menu-item>\n</section>\n',styles:[".grid-menu{display:-ms-grid;display:grid;gap:20px;grid-template-columns:repeat(auto-fill,200px);-ms-flex-pack:space-evenly;justify-content:space-evenly}"]})],e)}(),Fa=function(){function e(){this.iconIsFromFontAwesome=!1,this.clickedGridMenuItem=new t.EventEmitter,this.fontAwesomePrefix="fal"}return e.prototype.onClick=function(){var e,t;this.disabled||(null===(t=(e=this.item).action)||void 0===t||t.call(e),this.clickedGridMenuItem.emit(this.item))},e.prototype.onMouseEnter=function(){this.disabled||(this.fontAwesomePrefix="fas")},e.prototype.onMouseLeave=function(){this.disabled||(this.fontAwesomePrefix="fal")},Object.defineProperty(e.prototype,"iconFontAwesomeClassName",{get:function(){return(this.item.active?"fas":this.fontAwesomePrefix)+" "+this.item.icon},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"initialLetter",{get:function(){var e="";if(this.item.label){var t=this.item.label.split(" ",2);e=t[0].charAt(0).toUpperCase(),t.length>1&&(e+=t[1].charAt(0).toUpperCase())}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){var e,t;return"function"==typeof(null===(e=this.item)||void 0===e?void 0:e.disabled)?!!this.item.disabled():!!(null===(t=this.item)||void 0===t?void 0:t.disabled)},enumerable:!0,configurable:!0}),pe([t.Input()],e.prototype,"item",void 0),pe([t.Input()],e.prototype,"iconIsFromFontAwesome",void 0),pe([t.Output()],e.prototype,"clickedGridMenuItem",void 0),e=pe([t.Component({selector:"s-grid-menu-item",template:'<button\n class="icon-button"\n [class.icon-button-active]="item.active"\n [class.icon-button--disabled]="disabled"\n (sActivatedContent)="onClick()"\n [disabled]="disabled"\n [tabindex]="disabled ? -1 : 0"\n [class.icon-font-awesome]="iconIsFromFontAwesome"\n (mouseenter)="onMouseEnter()"\n (mouseleave)="onMouseLeave()"\n *ngIf="item"\n>\n <div class="icon-wrapper" [class.icon-image]="!iconIsFromFontAwesome">\n <ng-container *ngIf="item.icon">\n <i *ngIf="iconIsFromFontAwesome" [class]="iconFontAwesomeClassName"> </i>\n <span *ngIf="!iconIsFromFontAwesome" class="icon" style="background-image: url(\'{{ item.icon }}\');"> </span>\n </ng-container>\n\n <ng-container *ngIf="!item.icon">\n <span class="initials">{{ initialLetter }}</span>\n </ng-container>\n </div>\n <span class="title">{{ item.label }}</span>\n</button>\n',styles:['.icon-button{-ms-flex-align:center;align-items:center;background-color:transparent;border:none;cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;gap:12px;-ms-flex-pack:center;justify-content:center;padding:5px;transition:transform .3s ease-in-out;width:200px}.icon-button:not(.icon-button--disabled):hover .initials,.icon-button:not(.icon-button--disabled):hover .title{font-weight:700}.icon-button.icon-font-awesome .title{padding-bottom:1em}.icon-button.icon-font-awesome:not(.icon-button--disabled):hover{border-radius:10px;background-color:#dedce5}.icon-button.icon-font-awesome .icon-wrapper i{color:#009494}.icon-button .icon-wrapper{-ms-flex-item-align:center;align-self:center;border-radius:10px;display:-ms-flexbox;display:flex;height:64px;-ms-flex-pack:center;justify-content:center;overflow:hidden;padding:8px;width:64px;-ms-flex-align:center;align-items:center;font-size:3em}.icon-button .icon-wrapper.icon-image{background-color:#dedce5}.icon-button .icon-wrapper .icon{background-position:center;background-repeat:no-repeat;background-size:cover;display:inline-block;height:100%;width:100%}.icon-button .icon-wrapper .initials{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;font-family:"Open Sans",sans-serif;font-size:20px;font-weight:700}.icon-button .title{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;font-family:"Open Sans",sans-serif;font-size:14px;line-clamp:2;overflow:hidden;text-overflow:ellipsis;width:100%}.icon-button--disabled{cursor:default;opacity:.5}.icon-button:not(.icon-button--disabled):hover{transform:scale(1.05)}.icon-button-active{transform:scale(1.05);border-radius:10px;background-color:#dedce5}.icon-button-active .initials,.icon-button-active .title{font-weight:700}']})],e)}(),Oa=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Wr],declarations:[Fa,La],exports:[Fa,La]})],e)}(),Ra=function(e){this.label=e.label,this.name=e.name,this.tooltip=e.tooltip,this.errorMessages=e.errorMessages},Aa=function(e){function t(t){var n=e.call(this,t)||this;return n.view=t.view||"date",n.minDate=t.minDate,n.maxDate=t.maxDate,n.defaultDate=t.defaultDate,n.appendTo=t.appendTo,n.showOnFocus="boolean"!=typeof t.showOnFocus||t.showOnFocus,n.onBlur=t.onBlur,n.onFocus=t.onFocus,n.onSelect=t.onSelect,n.onInput=t.onInput,n.onClose=t.onClose,n.onTodayClick=t.onTodayClick,n.onClearClick=t.onClearClick,n.onMonthChange=t.onMonthChange,n.onYearChange=t.onYearChange,n.selectionMode=t.selectionMode||"single",n.rangeSeparator=t.rangeSeparator||"-",n.showSeconds=t.showSeconds,n.placeholder=t.placeholder,n}return le(t,e),t}(Ra),Da=function(e){function t(t){var n=e.call(this,t)||this;return n.multiple=!1,n.showSearch=!0,n.autocompleteForceSelection=!0,n.showAddOption=!1,n.showEditOption=!1,n.showRemoveOption=!1,n.onSelect=function(e){},n.onUnselect=function(e){},Object.assign(n,t),n.suggestionsObservable.subscribe((function(e){return n.lookupSuggestions=e})),n.searchObservable.pipe(i.delay(0)).subscribe((function(e){var t=e.totalRecords,o=e.gridData,i=e.searchTotalRecordsLabel;n._gridData=o,n._searchTotalRecords=t,n._searchTotalRecordsLabel=i})),n}return le(t,e),Object.defineProperty(t.prototype,"gridData",{get:function(){return this._gridData},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"searchTotalRecords",{get:function(){return this._searchTotalRecords},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"searchTotalRecordsLabel",{get:function(){return this._searchTotalRecordsLabel},enumerable:!0,configurable:!0}),t}(Ra),Pa=function(e){function t(t){var n,o,i,r,a=e.call(this,t)||this;return a.allowNegative=null===(n=t.allowNegative)||void 0===n||n,a.numberLocaleOptions=t.numberLocaleOptions,a.browserAutocomplete=t.browserAutocomplete,a.precision=t.precision,a.scale=null!==(o=t.scale)&&void 0!==o?o:2,a.alignTo=a.scale?l.AlignmentOptions.RIGHT:l.AlignmentOptions.LEFT,a.mask=t.mask,a.leftAddon=t.leftAddon,a.rightAddon=t.rightAddon,a.onBlur=t.onBlur,a.onFocus=t.onFocus,a.onComplete=t.onComplete,a.onInput=t.onInput,a.autoClear=null===(i=t.autoClear)||void 0===i||i,a.placeholder=null!==(r=t.placeholder)&&void 0!==r?r:"",a}return le(t,e),t}(Ra),Va=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.readonly=t.readonly,n}return le(t,e),t}(Ra),Ba=function(e){function t(t){return e.call(this,t)||this}return le(t,e),t}(Ra),Na=function(e){function t(t){return e.call(this,t)||this}return le(t,e),t}(Ra),za=function(){function e(e){this.localeService=e,this.isEditing=!1}return e.prototype.ngOnInit=function(){this._getCalendarLocaleOptions()},Object.defineProperty(e.prototype,"showEmptyValueButton",{get:function(){var e;return!this.isEditing&&!(null===(e=this.formGroup.get(this.field.name))||void 0===e?void 0:e.value)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showEditButton",{get:function(){var e;return!this.isEditing&&(null===(e=this.formGroup.get(this.field.name))||void 0===e?void 0:e.value)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showValue",{get:function(){var e;return!this.isEditing&&(null===(e=this.formGroup.get(this.field.name))||void 0===e?void 0:e.value)},enumerable:!0,configurable:!0}),e.prototype.onEdit=function(){this.isEditing=!this.isEditing},e.prototype.onCancel=function(){this.isEditing=!this.isEditing},e.prototype.onSave=function(){this.dynamicComponentRef&&this.dynamicComponentRef.instance.saveValue&&(this.formGroup.get(this.field.name).markAsDirty({onlySelf:!0}),this.dynamicComponentRef.instance.saveValue());this.formGroup.get(this.field.name).valid&&(this.isEditing=!this.isEditing)},e.prototype.setDynamicComponentRef=function(e){this.dynamicComponentRef=e},e.prototype.getErrorMessages=function(e){return e?ce(ce({},this.errorMessages),e instanceof Function?e():e):this.errorMessages},e.prototype.getFormattedValue=function(e){if(this.field instanceof Aa)return this.dynamicComponentRef.instance.getValueAsText();if(this.field instanceof Da){var t=this.field;return this.field.multiple?e.map((function(e){return e[t.lookupDisplayField]})).join(" - "):e[t.lookupDisplayField]}return e},e.prototype._getCalendarLocaleOptions=function(){var e=this;this.localeService.get().pipe(i.first()).subscribe((function(t){e._locale=t.locale}))},e.ctorParameters=function(){return[{type:Xe}]},pe([t.ViewChild("formContainer",{read:t.ViewContainerRef,static:!0})],e.prototype,"viewContainerRef",void 0),pe([t.Input()],e.prototype,"label",void 0),pe([t.Input()],e.prototype,"formGroup",void 0),pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"errorMessages",void 0),e=pe([t.Component({selector:"s-inline-edit-item",template:'<div class="inline-edit-item">\n <label\n class="label"\n *sInfoSign="field.tooltip">\n {{ label }}:\n </label>\n\n <div class="content">\n <span *ngIf="showValue" class="value">\n {{ getFormattedValue(formGroup.get(field.name)?.value) }}\n </span>\n\n <s-button\n *ngIf="showEmptyValueButton"\n style="margin-left: -8px"\n priority="link"\n [label]="\'platform.angular_components.add_information\' | translate"\n (onClick)="onEdit()">\n </s-button>\n\n <div [hidden]="!isEditing" class="form-container">\n <ng-container #formContainer></ng-container>\n </div>\n\n <div class="options">\n <s-button\n *ngIf="showEditButton"\n [tooltip]="\'platform.angular_components.edit\' | translate"\n (onClick)="onEdit()"\n priority="link"\n [auxiliary]="true"\n iconClass="fas fa-edit">\n </s-button>\n <s-button\n *ngIf="isEditing"\n [tooltip]="\'platform.angular_components.save\' | translate"\n (onClick)="onSave()"\n priority="default"\n [auxiliary]="true"\n iconClass="fas fa-check"\n styleClass="save-option"\n iconColor="#428bca">\n </s-button>\n <s-button\n *ngIf="isEditing"\n [tooltip]="\'platform.angular_components.cancel\' | translate"\n (onClick)="onCancel()"\n priority="default"\n [auxiliary]="true"\n iconClass="fas fa-times"\n iconColor="#c13018">\n </s-button>\n </div>\n </div>\n <s-control-errors\n [form]="formGroup"\n [control]="formGroup.controls[field.name]"\n [errorMessages]="getErrorMessages(field.errorMessages)">\n </s-control-errors>\n</div>\n',styles:['.inline-edit-item{-ms-flex-align:start;align-items:flex-start;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.inline-edit-item .label{color:#333;font-family:"Open Sans" sans-serif;font-size:14px;font-weight:700;margin-bottom:0}.inline-edit-item .content{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;gap:16px}.inline-edit-item .content .value{color:#999;font-family:"Open Sans" sans-serif;font-size:14px}.inline-edit-item .content .options{display:-ms-flexbox;display:flex}']})],e)}(),Ua=function(){function e(e){this.localeService=e}return e.prototype.ngOnInit=function(){var e;this._getLocaleOptions(),this.formGroup&&this.field&&(this.tempValue=(null===(e=this.formGroup.get(this.field.name))||void 0===e?void 0:e.value)||"")},e.prototype.saveValue=function(){var e;this.formGroup&&this.field&&(null===(e=this.formGroup.get(this.field.name))||void 0===e||e.setValue(this.tempValue))},e.prototype.getValueAsText=function(){return this.calendar.el.nativeElement.querySelector("input").value},e.prototype._getLocaleOptions=function(){var e=this;this.localeService.get().pipe(i.first()).subscribe((function(t){e.calendarLocaleOptions=t.calendar}))},e.ctorParameters=function(){return[{type:Xe}]},pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formGroup",void 0),pe([t.ViewChild(v.Calendar)],e.prototype,"calendar",void 0),e=pe([t.Component({template:'<p-calendar\n #calendar\n sCalendarMask\n [inputId]="field.name"\n [name]="field.name"\n [showIcon]="true"\n [selectionMode]="field.selectionMode"\n [rangeSeparator]="field.rangeSeparator"\n [showSeconds]="field.showSeconds"\n [showOnFocus]="field.showOnFocus"\n icon="fa fa-calendar"\n [minDate]="field.minDate"\n [maxDate]="field.maxDate"\n [dateFormat]="calendarLocaleOptions.dateFormat"\n [hourFormat]="calendarLocaleOptions.hourFormat"\n [defaultDate]="field.defaultDate"\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 [(ngModel)]="tempValue">\n</p-calendar>\n',styles:[""]})],e)}(),ja=function(){function e(){}return e.prototype.ngOnInit=function(){var e;this.formGroup&&this.field&&(this.tempValue=(null===(e=this.formGroup.get(this.field.name))||void 0===e?void 0:e.value)||"")},e.prototype.saveValue=function(){var e;this.formGroup&&this.field&&(null===(e=this.formGroup.get(this.field.name))||void 0===e||e.setValue(this.tempValue))},pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formGroup",void 0),e=pe([t.Component({template:'<s-lookup\n [id]="field.name"\n [multiple]="field.multiple"\n [lookupSuggestions]="field.lookupSuggestions"\n [dataKey]="field.dataKey"\n [placeholder]="field.placeholder"\n [showSearch]="field.showSearch"\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 [searchEmptyTitle]="field.searchEmptyTitle"\n [filterTitle]="field.filterTitle"\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 [defaultFilter]="field.defaultFilter"\n [autocompleteForceSelection]="field.autocompleteForceSelection"\n [showAddOption]="field.showAddOption"\n [showEditOption]="field.showEditOption"\n [showRemoveOption]="field.showRemoveOption"\n (onAdd)="field.onAdd()"\n (onEdit)="field.onEdit($event)"\n (onRemove)="field.onRemove($event)"\n [(ngModel)]="tempValue">\n</s-lookup>\n',styles:[""]})],e)}(),Ha=function(){function e(e){this.localeService=e}return e.prototype.ngOnInit=function(){var e;this._onLocaleService(),this.formGroup&&this.field&&(this.tempValue=(null===(e=this.formGroup.get(this.field.name))||void 0===e?void 0:e.value)||"")},e.prototype.saveValue=function(){var e;this.formGroup&&this.field&&(null===(e=this.formGroup.get(this.field.name))||void 0===e||e.setValue(this.tempValue))},Object.defineProperty(e.prototype,"mask",{get:function(){return"function"==typeof this.field.mask?this.field.mask():this.field.mask},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leftAddonDisabled",{get:function(){return"function"==typeof this.field.leftAddon.disabled?this.field.leftAddon.disabled():this.field.leftAddon.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rightAddonDisabled",{get:function(){return"function"==typeof this.field.rightAddon.disabled?this.field.rightAddon.disabled():this.field.rightAddon.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"precision",{get:function(){return"function"==typeof this.field.precision?this.field.precision():this.field.precision},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scale",{get:function(){return"function"==typeof this.field.scale?this.field.scale():this.field.scale},enumerable:!0,configurable:!0}),e.prototype._onLocaleService=function(){var e=this;this.localeService.getLocale().pipe(i.first()).subscribe({next:function(){var t,n;(null===(t=e.field.numberLocaleOptions)||void 0===t?void 0:t.decimalSeparator)||(e.field.numberLocaleOptions=ce(ce({},e.field.numberLocaleOptions),{decimalSeparator:e.localeService.getDecimalSeparator()})),(null===(n=e.field.numberLocaleOptions)||void 0===n?void 0:n.thousandsSeparator)||(e.field.numberLocaleOptions=ce(ce({},e.field.numberLocaleOptions),{thousandsSeparator:e.localeService.getGroupingSeparator()}))},error:function(){return e.field.numberLocaleOptions={thousandsSeparator:".",decimalSeparator:",",currencySymbol:""}}})},e.ctorParameters=function(){return[{type:Xe}]},pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formGroup",void 0),e=pe([t.Component({template:'<p-inputMask\n *ngIf="field.mask; else noMask"\n type="text"\n [inputId]="field.name"\n [name]="field.name"\n [mask]="mask"\n [placeholder]="field.placeholder"\n slotChar="_"\n [sTooltip]="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 [autoClear]="field.autoClear"\n [(ngModel)]="tempValue">\n</p-inputMask>\n\n<ng-template #noMask>\n <ng-container>\n <div class="ui-inputgroup">\n <ng-container *ngIf="field.leftAddon">\n <span *ngIf="field.leftAddon.callback" class="addon-button addon-button--left">\n <s-button\n [label]="field.leftAddon.label"\n [iconClass]="field.leftAddon.icon"\n [priority]="field.leftAddon.priority"\n [disabled]="leftAddonDisabled"\n (onClick)="field.leftAddon.callback()">\n </s-button>\n </span>\n <span *ngIf="!field.leftAddon.callback" 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.name"\n type="text"\n [name]="field.name"\n sBignumberInput\n [allowNegative]="field.allowNegative"\n [precision]="precision"\n [scale]="scale"\n [alignTo]="field.alignTo"\n [sTooltip]="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 [(ngModel)]="tempValue"/>\n <ng-container *ngIf="field.rightAddon">\n <span *ngIf="field.rightAddon.callback" class="addon-button addon-button--right">\n <s-button\n [label]="field.rightAddon.label"\n [iconClass]="field.rightAddon.icon"\n [priority]="field.rightAddon.priority"\n [disabled]="rightAddonDisabled"\n (onClick)="field.rightAddon.callback()">\n </s-button>\n </span>\n <span *ngIf="!field.rightAddon.callback" 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',styles:[""]})],e)}(),$a=function(){function e(){}return e.prototype.ngOnInit=function(){var e;this.formGroup&&this.field&&(this.tempValue=(null===(e=this.formGroup.get(this.field.name))||void 0===e?void 0:e.value)||"")},e.prototype.saveValue=function(){var e;this.formGroup&&this.field&&(null===(e=this.formGroup.get(this.field.name))||void 0===e||e.setValue(this.tempValue))},pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formGroup",void 0),e=pe([t.Component({template:'<ng-container *ngIf="field.keyFilter; else noKeyFilter">\n <textarea\n [id]="field.name"\n pInputTextarea\n class="textarea-input"\n [rows]="field.rows"\n [cols]="field.cols"\n [pKeyFilter]="field.keyFilter"\n [readonly]="field.readonly ? field.readonly() : false"\n [(ngModel)]="tempValue">\n </textarea>\n</ng-container>\n<ng-template #noKeyFilter>\n <textarea\n [id]="field.name"\n pInputTextarea\n class="textarea-input"\n [rows]="field.rows"\n [cols]="field.cols"\n [readonly]="field.readonly ? field.readonly() : false"\n [(ngModel)]="tempValue">\n </textarea>\n</ng-template>\n',styles:[".textarea-input{resize:vertical}"]})],e)}(),Ga=function(){function e(){}return e.prototype.ngOnInit=function(){var e;this.formGroup&&this.field&&(this.tempValue=(null===(e=this.formGroup.get(this.field.name))||void 0===e?void 0:e.value)||"")},e.prototype.saveValue=function(){var e;this.formGroup&&this.field&&(null===(e=this.formGroup.get(this.field.name))||void 0===e||e.setValue(this.tempValue))},pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formGroup",void 0),e=pe([t.Component({template:'<input\n type="text"\n pInputText\n [(ngModel)]="tempValue" />',styles:[""]})],e)}(),qa=function(){function e(){}return e.prototype.ngOnInit=function(){var e;this.formGroup&&this.field&&(this.tempValue=(null===(e=this.formGroup.get(this.field.name))||void 0===e?void 0:e.value)||"")},e.prototype.saveValue=function(){var e;this.formGroup&&this.field&&(null===(e=this.formGroup.get(this.field.name))||void 0===e||e.setValue(this.tempValue))},pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formGroup",void 0),e=pe([t.Component({template:'<s-text-area-ia [(ngModel)]="tempValue"></s-text-area-ia>',styles:[""]})],e)}(),Wa=function(){function e(e){var t;this.resolver=e,this.fields=[],this._componentMap=((t={})[Aa.name]=Ua,t[Da.name]=ja,t[Ba.name]=Ga,t[Pa.name]=Ha,t[Va.name]=$a,t[Na.name]=qa,t)}return e.prototype.ngOnInit=function(){this._createFields()},e.prototype._createFields=function(){var e,t,n=this;this.container.clear();var o=function(e,t){var o=n.resolver.resolveComponentFactory(e),i=n.container.createComponent(o);return i.instance.field=t,i.instance.formGroup=n.formGroup,i};try{for(var i=he(this.fields),r=i.next();!r.done;r=i.next()){var a=r.value,s=this._componentMap[a.constructor.name];if(s){var l=this.resolver.resolveComponentFactory(za),c=this.container.createComponent(l);c.instance.label=a.label,c.instance.formGroup=this.formGroup,c.instance.field=a,c.instance.errorMessages=this.errorMessages;var p=o(s,a),d=c.instance;d.viewContainerRef.insert(p.hostView),d.setDynamicComponentRef(p)}}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},e.ctorParameters=function(){return[{type:t.ComponentFactoryResolver}]},pe([t.Input()],e.prototype,"formGroup",void 0),pe([t.Input()],e.prototype,"fields",void 0),pe([t.Input()],e.prototype,"errorMessages",void 0),pe([t.ViewChild("formContainer",{read:t.ViewContainerRef,static:!0})],e.prototype,"container",void 0),e=pe([t.Component({selector:"s-inline-edit",template:'<div class="inline-edit">\n <ng-template #formContainer></ng-template>\n</div>\n',styles:[".inline-edit{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:8px}"]})],e)}(),Ya=function(){function n(e,t,n,o){this._iassistService=e,this._formBuilder=t,this._translateService=n,this.speechRecognitionService=o,this.speechRecognition=!1,this.keepContext=!1,this.speechRecognitionPlaceholder="",this.isVisible=!1,this.isLoading=!1}var r;return r=n,n.prototype.ngOnInit=function(){this._createDialogFields(),this._createDialogFormGroup()},n.prototype.writeValue=function(e){this.value=e},n.prototype.registerOnChange=function(e){this._onChange=e},n.prototype.registerOnTouched=function(e){this._onTouched=e},n.prototype.setDisabledState=function(e){this._isDisabled=e},n.prototype.onValueChange=function(e){var t;this.value=e,null===(t=this._onChange)||void 0===t||t.call(this,e)},n.prototype.showDialog=function(){this.isVisible=!0,this._onTouched()},n.prototype.hideDialog=function(){this.isVisible=!1},n.prototype.onHideDialog=function(){this.formGroup.get("context").setValue("")},n.prototype.submitContext=function(){var e=this,t=this.formGroup.get("context");this.isLoading=!0,this._iassistService.askIA(t.value,{id:this.id,label:this.label,placeholder:this.placeholder,prompt:this.prompt}).pipe(i.catchError((function(t){return e.isLoading=!1,o.throwError(t)}))).subscribe((function(t){e.value=t.text,e._onChange(e.value),e.isLoading=!1})),this.hideDialog()},n.prototype._createDialogFields=function(){this.fields=[new Oo({name:"context",type:e.FieldType.Text,label:this._translateService.instant("platform.angular_components.context"),size:{sm:12,md:12,lg:12,xl:12},speechRecognition:this.speechRecognition})]},n.prototype._createDialogFormGroup=function(){this.formGroup=this._formBuilder.group({context:[""]})},n.ctorParameters=function(){return[{type:Zo},{type:a.FormBuilder},{type:b.TranslateService},{type:Zi}]},pe([t.Input()],n.prototype,"id",void 0),pe([t.Input()],n.prototype,"label",void 0),pe([t.Input()],n.prototype,"placeholder",void 0),pe([t.Input()],n.prototype,"prompt",void 0),pe([t.Input()],n.prototype,"readonly",void 0),pe([t.Input()],n.prototype,"rows",void 0),pe([t.Input()],n.prototype,"cols",void 0),pe([t.Input()],n.prototype,"speechRecognition",void 0),pe([t.Input()],n.prototype,"keepContext",void 0),pe([t.Input()],n.prototype,"speechRecognitionPlaceholder",void 0),n=r=pe([t.Component({selector:"s-text-area-ia",template:'<s-loading-state\n [loading]="isLoading"\n [blockWindow]="true">\n</s-loading-state>\n\n<p-dialog\n [(visible)]="isVisible"\n [modal]="true"\n [style]="{ width: \'50vw\' }"\n [draggable]="false"\n [resizable]="false"\n (onHide)="onHideDialog()">\n <p-header>\n <div class="dialog-header">\n <span class="iassist-icon">\n <ng-container [ngTemplateOutlet]="iassistIcon"></ng-container>\n </span>\n IAssist - Content Generator\n </div>\n </p-header>\n <s-dynamic-form\n [fields]="fields"\n [form]="formGroup">\n </s-dynamic-form>\n <p-footer>\n <div class="footer-content">\n <s-button\n id="-submit-button"\n type="button"\n [label]="\'platform.angular_components.generate_text\' | translate"\n (onClick)="submitContext()"\n sTooltip="(ALT + SHIFT + S)"\n showDelay="500">\n </s-button>\n <s-button\n id="-cancel-button"\n type="button"\n priority="link"\n [label]="\'platform.angular_components.cancel\' | translate"\n (onClick)="hideDialog()"\n sTooltip="(ALT + SHIFT + C)"\n showDelay="500">\n </s-button>\n </div>\n </p-footer>\n</p-dialog>\n\n<div class="textarea-ia">\n <s-textarea\n [inputId]="id"\n [rows]="rows"\n [(ngModel)]="value"\n (ngModelChange)="onValueChange($event)"\n [readOnly]="readonly"\n [placeholder]="placeholder"\n [speechRecognition]="speechRecognition"\n [keepContext]="keepContext"\n [speechRecognitionPlaceholder]="speechRecognitionPlaceholder"\n ></s-textarea>\n <button\n class="iassist-button"\n [class.speech-recognition]="speechRecognition && speechRecognitionService.hasSupportSpeechRecognition"\n (click)="showDialog()"\n sTooltip="IAssist - Content Generator">\n <ng-container [ngTemplateOutlet]="iassistIcon"></ng-container>\n </button>\n</div>\n\n<ng-template #iassistIcon>\n <svg style="width: 100%; height: 100%;" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M5.81451 18.1054L5.99593 17.6059L7.52166 13.4099L7.60877 13.1726L7.61277 13.1614L7.94285 12.2543L8.01159 12.0648L8.05394 11.949L5.2998 8.52426L5.02726 8.18379C5.00569 8.15821 4.9881 8.13104 4.97292 8.10226C4.90099 7.9632 4.85063 7.81294 4.82186 7.6531C4.73075 7.1344 4.90418 6.60771 5.28382 6.24326C5.29421 6.23447 5.3038 6.22567 5.31419 6.21688L5.47164 6.0914L9.3439 3.00238L9.5469 2.84094L9.57088 2.82096L10.4101 2.15041L11.8007 1.04188C11.2181 0.925188 10.6163 0.863647 10.0001 0.863647C4.95374 0.863647 0.863281 4.9541 0.863281 9.99963C0.863281 13.5346 2.87254 16.5989 5.80971 18.1182" fill="#0FA389"/>\n <path d="M14.099 1.83472L13.9495 2.24632L11.997 7.61074L11.9427 7.7594L11.9003 7.87369L14.7448 11.4103C14.7463 11.4127 14.7479 11.4143 14.7495 11.4167L14.9414 11.654C14.9541 11.67 14.9661 11.6868 14.9765 11.7044C15.0764 11.8698 15.1444 12.0505 15.1779 12.2431C15.273 12.7826 15.0812 13.3284 14.676 13.6897C14.656 13.7129 14.6345 13.7344 14.6105 13.7536L11.8563 15.9507L11.6789 16.0922L11.6022 16.1537L10.7406 16.8402V16.841L10.3937 17.1176L9.85747 17.5452L9.39951 17.9112L8.11035 18.9398C8.72016 19.0677 9.35155 19.1364 9.99973 19.1364C15.0461 19.1364 19.1365 15.046 19.1365 9.99964C19.1365 6.42789 17.0857 3.33727 14.099 1.83472Z" fill="#0FA389"/>\n <path d="M14.7287 12.3222C14.7047 12.1832 14.6551 12.0545 14.5864 11.941L14.3954 11.7036C14.3954 11.7036 14.3946 11.7028 14.3938 11.7028L11.3839 7.96005L10.5031 6.86511L10.4256 6.7676L9.03255 5.03487L8.83674 4.79191C8.79278 4.71678 8.75681 4.63446 8.73204 4.54814C8.72085 4.51058 8.71286 4.47222 8.70566 4.43465C8.68568 4.32196 8.68408 4.21007 8.69847 4.10217L8.62334 4.16291L8.44511 4.30438L5.75731 6.44871L5.60066 6.57339C5.34011 6.82275 5.20584 7.19279 5.27218 7.57482C5.29296 7.68751 5.32892 7.79541 5.37927 7.89292C5.37927 7.89292 5.37927 7.89292 5.38007 7.89371L5.6566 8.23818L8.57139 11.8627L8.63293 11.9394L9.53047 13.0559L9.59041 13.1303L9.98363 13.6186L11.0178 14.9046C11.0186 14.9054 11.0194 14.9069 11.0202 14.9077L11.1361 15.0516V15.0524C11.2184 15.1755 11.2768 15.317 11.3048 15.4728C11.3239 15.5807 11.3263 15.6878 11.3143 15.7925L11.3175 15.7965L11.3943 15.735L11.5717 15.5935L14.3266 13.3964L14.3218 13.3908C14.6335 13.1438 14.8022 12.7394 14.7287 12.3222Z" fill="#F3F3F5"/>\n <path d="M10.6822 15.0082C10.6814 15.0074 10.6806 15.0058 10.6806 15.005L10.5672 14.8643L10.3809 14.6325L10.3282 14.567L10.2211 14.4335L9.40028 13.4129L9.32835 13.3242L8.77289 12.6345L8.68098 12.5194L8.44121 12.2205L8.37168 12.4099L8.04159 13.317L8.0376 13.329L7.95128 13.5664L6.42475 17.7623L6.24333 18.2618L5.90605 19.1881L5.73262 19.6645C5.73182 19.6661 5.73102 19.6677 5.73102 19.6685C5.72863 19.6749 5.72703 19.6821 5.72543 19.6885C5.71584 19.7228 5.71424 19.758 5.72063 19.7948C5.74461 19.929 5.87329 20.0193 6.00836 19.9962C6.04112 19.9898 6.07229 19.9778 6.09867 19.9602C6.09867 19.9602 6.09947 19.9602 6.10027 19.9594L6.14103 19.9266L7.39422 18.9268L9.11496 17.5537L9.57292 17.1877L10.1092 16.7601L10.4561 16.4827L10.4537 16.4811C10.7582 16.2382 10.9236 15.8402 10.8509 15.4294C10.8237 15.2735 10.7654 15.1313 10.6822 15.0082Z" fill="#0C847B"/>\n <path d="M9.17644 4.56325C9.2124 4.68713 9.26915 4.80062 9.34268 4.90053C9.34348 4.90053 9.34428 4.90213 9.34428 4.90213L9.40342 4.97645C9.40502 4.97805 9.40582 4.97885 9.40662 4.98045L9.56806 5.17946L9.64878 5.28096L9.67915 5.31932L9.8414 5.51993L10.5559 6.40947L10.7054 6.59569L11.2169 7.23188L11.5142 7.60192L11.5693 7.45247L13.5202 2.08964L14.1596 0.332135C14.1596 0.330536 14.1604 0.328139 14.1612 0.32654C14.174 0.288177 14.1772 0.246617 14.17 0.205058C14.1468 0.0699879 14.0182 -0.0195258 13.8823 0.00365186C13.8407 0.0116442 13.8024 0.028428 13.7712 0.0540033L12.578 1.00589L12.498 1.06982L10.6958 2.50844L9.85658 3.17819L9.8326 3.19737L9.6296 3.35961L9.45297 3.50028C9.2116 3.73925 9.08692 4.08931 9.15006 4.44976C9.15726 4.48813 9.16525 4.52649 9.17644 4.56325Z" fill="#0C847B"/>\n </svg>\n</ng-template>\n',providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return r})),multi:!0}],styles:[".footer-content{display:-ms-flexbox;display:flex;-ms-flex-positive:0;flex-grow:0}.textarea-ia{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;gap:8px}.textarea-ia s-textarea{width:100%}.iassist-button{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border:none;border-radius:50%;box-shadow:none;cursor:pointer;height:32px;width:32px}.dialog-header{display:-ms-flexbox;display:flex;gap:12px}.dialog-header .iassist-icon{display:block;height:24px;width:24px}.speech-recognition{margin-bottom:12.5px}"]})],n)}(),Ka=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,b.TranslateModule,O.DialogModule,Ft,Kr,vi,$r],declarations:[Ya],exports:[Ya]})],e)}(),Za=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,b.TranslateModule,ft,Ft,Hn,je,Kr,Ka,Re,v.CalendarModule,N.InputMaskModule,z.InputTextModule,U.InputTextareaModule,j.KeyFilterModule],declarations:[Wa,za,Ua,ja,Ha,Ga,$a,qa],exports:[Wa]})],e)}(),Xa=function(){function e(){this.selectAllColumnItemsEvent=new t.EventEmitter,this.unselectAllColumnItemsEvent=new t.EventEmitter,this.selectItemEvent=new t.EventEmitter,this.unselectItemEvent=new t.EventEmitter}return e.prototype.emitSelectAllColumnItemsEvent=function(e){this.selectAllColumnItemsEvent.emit(e)},e.prototype.emitUnselectAllColumnItemsEvent=function(e){this.unselectAllColumnItemsEvent.emit(e)},e.prototype.emitSelectItemEvent=function(e){this.selectItemEvent.emit(e)},e.prototype.emitUnselectItemEvent=function(e){this.unselectItemEvent.emit(e)},e=pe([t.Injectable()],e)}();(Ta=e.KanbanTemplateTypes||(e.KanbanTemplateTypes={})).ColumnHeader="column-header",Ta.ColumnEmptyMessage="column-empty-message",Ta.ItemHeader="item-header",Ta.ItemBody="item-body",Ta.ItemFooter="item-footer";var Ja,Qa=function(){function n(e){this.kanbanEventService=e,this.showItemCheckboxes=!0,this.showColumnCheckboxes=!0,this.itemsMoved=new t.EventEmitter,this.dataUpdated=new t.EventEmitter,this.itemsSelected=new t.EventEmitter,this.selectedItems=new Set,this.draggingItems=new Set,this._unsubscribe$=new o.Subject}return n.prototype.ngOnInit=function(){this._subscribeEvents(),this._normalizeData(),this._validateInputs()},n.prototype.ngAfterContentInit=function(){this._getTemplates()},n.prototype.ngOnDestroy=function(){this._unsubscribe$.next(),this._unsubscribe$.complete()},n.prototype.drop=function(e){var t,n=this,o=this.data.columns.find((function(t){return t.id===e.previousContainer.id})),i=this.data.columns.find((function(t){return t.id===e.container.id}));if(!o||!i)throw new Error("Unable to obtain information about columns when performing drag and drop");e.previousContainer===e.container?ne.moveItemInArray(e.container.data,e.previousIndex,e.currentIndex):ne.transferArrayItem(e.previousContainer.data,e.container.data,e.previousIndex,e.currentIndex),this.selectedItems.forEach((function(t){var n=e.previousContainer.data.indexOf(t);-1!==n&&t!==e.item.data&&(e.previousContainer===e.container?ne.moveItemInArray(e.container.data,n,e.currentIndex):ne.transferArrayItem(e.previousContainer.data,e.container.data,n,e.currentIndex))})),this.selectedItems.add(e.item.data),this.itemsMoved.emit({items:ge(this.selectedItems),previousColumn:o,targetColumn:i}),(null===(t=this.dataUpdated.observers)||void 0===t?void 0:t.length)&&this.dataUpdated.emit(ce({},this.data)),this.data.columns.forEach((function(e){n.kanbanEventService.emitUnselectAllColumnItemsEvent(e)})),this.selectedItems.clear()},n.prototype.selectItem=function(e,t,n){if(!t.disabled&&!t.frozen)if(e.ctrlKey)this.selectedItems.delete(t)?this.kanbanEventService.emitUnselectItemEvent(t):(this.selectedColumn&&!this.selectedColumn.items.includes(t)&&this.selectedItems.clear(),this.selectedItems.add(t),this.selectedColumn=n,this.kanbanEventService.emitSelectItemEvent(t));else{if(this.selectedItems.delete(t))return;this.selectedItems.clear(),this.selectedItems.add(t),this.selectedColumn=n,this.kanbanEventService.emitSelectItemEvent(t)}},n.prototype.dragStarted=function(){var e=this;this.selectedItems.forEach((function(t){e.draggingItems.add(t)}))},n.prototype.dragReleased=function(){this.draggingItems.clear()},n.prototype.getLinkedColumns=function(e){return this.data.columns.filter((function(t){return t!=e})).map((function(e){return e.id}))},n.prototype.getColumnHeaderTemplate=function(){return this._getCustomTemplate(e.KanbanTemplateTypes.ColumnHeader)},n.prototype.getColumnEmptyMessageTemplate=function(){return this._getCustomTemplate(e.KanbanTemplateTypes.ColumnEmptyMessage)},n.prototype.getItemHeaderTemplate=function(){return this._getCustomTemplate(e.KanbanTemplateTypes.ItemHeader)},n.prototype.getItemBodyTemplate=function(){return this._getCustomTemplate(e.KanbanTemplateTypes.ItemBody)},n.prototype.getItemFooterTemplate=function(){return this._getCustomTemplate(e.KanbanTemplateTypes.ItemFooter)},n.prototype._getCustomTemplate=function(e){var t;return null===(t=this.templates.find((function(t){return t.type===e})))||void 0===t?void 0:t.template},n.prototype._subscribeEvents=function(){var e=this;this.kanbanEventService.selectAllColumnItemsEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){t.items.filter((function(e){return!e.disabled&&!e.frozen})).forEach((function(t){e.selectedItems.add(t)})),e.selectedColumn=t,e.itemsSelected.emit(ge(e.selectedItems))})),this.kanbanEventService.unselectAllColumnItemsEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){e.selectedItems.clear()})),this.kanbanEventService.selectItemEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){e.selectedColumn&&!e.selectedColumn.items.includes(t)&&e.selectedItems.clear(),e.selectedItems.add(t),e.itemsSelected.emit(ge(e.selectedItems)),e.data.columns.forEach((function(n){n.items.forEach((function(o){o!==t||(e.selectedColumn=n)}))}))})),this.kanbanEventService.unselectItemEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){e.selectedItems.delete(t)}))},n.prototype._normalizeData=function(){this.data.columns.forEach((function(e){e.id=e.id||"id-"+Math.random().toString(36).substring(2,9)+"-"+Date.now().toString(36)}))},n.prototype._validateInputs=function(){var e=this.data.columns,t=this.data.columns.map((function(e){return e.id}));if(new Set(t).size!==e.length)throw new Error("Repeated IDs are not accepted.")},n.prototype._getTemplates=function(){this.columnHeaderTemplate=this.getColumnHeaderTemplate(),this.columnEmptyMessageTemplate=this.getColumnEmptyMessageTemplate(),this.itemHeaderTemplate=this.getItemHeaderTemplate(),this.itemBodyTemplate=this.getItemBodyTemplate(),this.itemFooterTemplate=this.getItemFooterTemplate()},n.ctorParameters=function(){return[{type:Xa}]},pe([t.Input()],n.prototype,"data",void 0),pe([t.Input()],n.prototype,"showItemCheckboxes",void 0),pe([t.Input()],n.prototype,"showColumnCheckboxes",void 0),pe([t.Output()],n.prototype,"itemsMoved",void 0),pe([t.Output()],n.prototype,"dataUpdated",void 0),pe([t.Output()],n.prototype,"itemsSelected",void 0),pe([t.ContentChildren(At)],n.prototype,"templates",void 0),n=pe([t.Component({selector:"s-kanban",template:'<div class="kanban">\n <s-kanban-column\n *ngFor="let column of data.columns"\n [data]="column"\n [showCheckbox]="showColumnCheckboxes"\n [headerTemplate]="columnHeaderTemplate">\n <div\n [id]="column.id"\n style="height: 100%; width: 100%;"\n cdkDropList\n #dynamicList="cdkDropList"\n [cdkDropListData]="column.items"\n [cdkDropListConnectedTo]="getLinkedColumns(column)"\n (cdkDropListDropped)="drop($event)">\n\n <ng-container *ngIf="!columnEmptyMessageTemplate; then defaultEmptyMessageTemplate else customEmptyMessageTemplate"></ng-container>\n\n <ng-template #defaultEmptyMessageTemplate>\n <div *ngIf="!column.items.length" class="empty-message">\n <p class="text">\n <span class="fas fa-clock"></span> \n <span>{{ "platform.angular_components.count_items_in_target" | translate:{ count: column.items.length, target: column.title } }}</span>\n </p>\n </div>\n </ng-template>\n\n <ng-template #customEmptyMessageTemplate>\n <ng-container *ngTemplateOutlet="columnEmptyMessageTemplate; context: { $implicit: column }"></ng-container>\n </ng-template>\n\n <div\n *ngFor="let item of column.items"\n cdkDrag\n [cdkDragData]="item"\n [cdkDragDisabled]="item.disabled || item.frozen"\n (cdkDragStarted)="dragStarted()"\n (cdkDragReleased)="dragReleased()"\n (click)="selectItem($event, item, column)">\n \n <ng-container *ngTemplateOutlet="itemTemplate"></ng-container>\n\n <ng-container *cdkDragPreview>\n <ng-container *ngIf="selectedItems.size > 1; then itemDraggingTemplate else itemTemplate"></ng-container>\n </ng-container>\n\n <ng-template #itemTemplate>\n <s-kanban-item\n [item]="item"\n [selected]="selectedItems.has(item)"\n [showCheckbox]="showItemCheckboxes"\n [headerTemplate]="itemHeaderTemplate"\n [bodyTemplate]="itemBodyTemplate"\n [footerTemplate]="itemFooterTemplate">\n </s-kanban-item>\n </ng-template>\n\n <ng-template #itemDraggingTemplate>\n <s-kanban-item-dragging [quantityItems]="selectedItems.size"></s-kanban-item-dragging>\n </ng-template>\n\n <div *cdkDragPlaceholder>\n <div class="placeholder">\n <div class="placeholder-line"></div>\n </div>\n </div>\n </div>\n </div>\n </s-kanban-column>\n</div>\n\n',styles:[".kanban{display:-ms-flexbox;display:flex;gap:16px;overflow:auto;width:100%}.kanban .empty-message{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:16px}.kanban .empty-message .text{overflow:hidden;text-align:center;text-overflow:ellipsis;width:100%;white-space:nowrap}@media screen and (max-width:600px){.kanban{-ms-flex-direction:column;flex-direction:column}}s-kanban-column{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;min-width:292px}.placeholder{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.placeholder .placeholder-line{background-color:#a5a5b2;height:1px;margin:6px 0;width:50%}"]})],n)}(),es=function(){function e(e){this.kanbanEventService=e,this.showCheckbox=!0,this.selectionControl=new a.FormControl(!1),this._unsubscribe$=new o.Subject}return e.prototype.ngOnInit=function(){this._validateInputs(),this._subscriveEvents(),this._createTieredOptions()},e.prototype.ngOnDestroy=function(){this._unsubscribe$.next(),this._unsubscribe$.complete()},e.prototype._createTieredOptions=function(){var e=this;if(this.data.options){var t=[];this.data.options.forEach((function(n){t.push(ce(ce({},n),{command:function(){n.command(e.data)}}))})),this.data.options=t}},e.prototype._subscriveEvents=function(){var e=this;this.selectionControl.valueChanges.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){t?e.kanbanEventService.emitSelectAllColumnItemsEvent(e.data):e.kanbanEventService.emitUnselectAllColumnItemsEvent(e.data)})),this.kanbanEventService.unselectItemEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){e.selectionControl.setValue(!1,{emitEvent:!1})})),this.kanbanEventService.selectItemEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){e.data.items.includes(t)||e.selectionControl.setValue(!1,{emitEvent:!1})})),this.kanbanEventService.selectAllColumnItemsEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){e.data!==t&&e.selectionControl.setValue(!1,{emitEvent:!1})})),this.kanbanEventService.unselectAllColumnItemsEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){e.data!==t&&e.selectionControl.setValue(!1,{emitEvent:!1})}))},e.prototype._validateInputs=function(){if(!this.data)throw new Error("data parameter is required")},e.ctorParameters=function(){return[{type:Xa}]},pe([t.Input()],e.prototype,"data",void 0),pe([t.Input()],e.prototype,"showCheckbox",void 0),pe([t.Input()],e.prototype,"headerTemplate",void 0),e=pe([t.Component({selector:"s-kanban-column",template:'<div class="kanban-column">\n <div class="kanban-column__header">\n <div class="content">\n <form>\n <input\n *ngIf="showCheckbox"\n type="checkbox"\n name="checkbox"\n [formControl]="selectionControl">\n </form>\n\n <ng-container *ngIf="!headerTemplate; then defaultHeaderTemplate else customHeaderTemplate"></ng-container>\n \n <ng-template #defaultHeaderTemplate>\n <div class="header">\n <span class="title">{{ data.title }} ({{ data.items.length }})</span>\n </div>\n </ng-template>\n \n <ng-template #customHeaderTemplate>\n <ng-container *ngTemplateOutlet="headerTemplate; context: { $implicit: data }"></ng-container>\n </ng-template>\n </div>\n <s-button\n *ngIf="data.options"\n priority="default"\n [disabled]="false"\n [auxiliary]="true"\n size="small"\n [model]="data.options">\n </s-button>\n </div>\n <div class="kanban-column__body">\n <ng-content></ng-content>\n </div>\n</div>',styles:['.kanban-column{-ms-flex-align:center;align-items:center;background-color:#fbfafc;border:1px solid #dedce5;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;min-height:120px;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:100%}.kanban-column .kanban-column__header{-ms-flex-align:center;align-items:center;border-bottom:1px solid #dedce5;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:16px 16px 8px;width:100%}.kanban-column .kanban-column__header .content{display:-ms-flexbox;display:flex;gap:16px}.kanban-column .kanban-column__header .content .teste{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-family:"Open Sans" sans-serif}.kanban-column .kanban-column__header .content .teste .title{font-size:14px;font-weight:800}.kanban-column .kanban-column__header .content .teste .description{font-size:12px}.kanban-column .kanban-column__body{display:-ms-flexbox;display:flex;height:100%;-ms-flex-pack:center;justify-content:center;width:100%}']})],e)}(),ts=function(){function e(){this.quantityItems=0}return pe([t.Input()],e.prototype,"quantityItems",void 0),e=pe([t.Component({selector:"s-kanban-item-dragging",template:'<div\n *ngIf="quantityItems"\n class="kanban-item-dragging">\n</div>\n\n<div\n class="kanban-item-dragging"\n [ngClass]="{ \'kanban-item-dragging--over\': quantityItems }">\n <div class="content">\n <input type="checkbox" checked />\n <s-badge\n [text]="\'platform.angular_components.count_items_selected\' | translate:{ count: quantityItems }"\n color="blue">\n </s-badge>\n </div>\n</div>',styles:[".kanban-item-dragging{background-color:#fff;border:1px solid #428bca;border-radius:4px;box-shadow:0 1px 5px 0 rgba(0,0,0,.25);height:52px;padding:16px;width:260px}.kanban-item-dragging .content{display:-ms-flexbox;display:flex;gap:16px}.kanban-item-dragging--over{left:12px;position:relative;top:-64px}"]})],e)}(),ns=function(){function e(e){this._kanbanEventService=e,this.selected=!1,this.showCheckbox=!0}return e.prototype.ngOnInit=function(){this._createTieredOptions()},e.prototype.onSelectedChange=function(e){e?this._kanbanEventService.emitSelectItemEvent(this.item):this._kanbanEventService.emitUnselectItemEvent(this.item)},e.prototype._createTieredOptions=function(){var e=this;if(this.item.options){var t=[];this.item.options.forEach((function(n){t.push(ce(ce({},n),{command:function(){n.command(e.item)}}))})),this.item.options=t}},e.ctorParameters=function(){return[{type:Xa}]},pe([t.Input()],e.prototype,"item",void 0),pe([t.Input()],e.prototype,"selected",void 0),pe([t.Input()],e.prototype,"showCheckbox",void 0),pe([t.Input()],e.prototype,"headerTemplate",void 0),pe([t.Input()],e.prototype,"bodyTemplate",void 0),pe([t.Input()],e.prototype,"footerTemplate",void 0),e=pe([t.Component({selector:"s-kanban-item",template:'<p-tieredMenu\n #optionsMenu\n [popup]="true"\n appendTo="body"\n [baseZIndex]="9999"\n [model]="item.options">\n</p-tieredMenu>\n\n<div\n class="kanban-item"\n [ngClass]="{\n \'kanban-item--selected\': selected && !item.disabled,\n \'kanban-item--disabled\': item.disabled,\n \'kanban-item--frozen\': !item.disabled && item.frozen\n }">\n <div class="kanban-item__header">\n <div class="content">\n <form>\n <input\n *ngIf="showCheckbox && !item.disabled && !item.frozen"\n type="checkbox"\n name="checkbox"\n [(ngModel)]="selected"\n (ngModelChange)="onSelectedChange($event)"\n (click)="$event.stopPropagation()">\n </form>\n <ng-container *ngTemplateOutlet="headerTemplate; context: { $implicit: item }"></ng-container>\n </div>\n <button\n *ngIf="item.options && !item.disabled"\n class="options-button"\n (click)="optionsMenu.toggle($event); $event.stopPropagation();">\n <i class="fas fa-ellipsis-v"></i>\n </button>\n </div>\n <div class="kanban-item__body">\n <ng-container *ngTemplateOutlet="bodyTemplate; context: { $implicit: item }"></ng-container>\n </div>\n <div *ngIf="footerTemplate" class="kanban-item__footer">\n <ng-container *ngTemplateOutlet="footerTemplate; context: { $implicit: item }"></ng-container> \n </div>\n</div>',styles:['.kanban-item{background-color:#fff;border-radius:4px;box-shadow:0 1px 5px 0 rgba(0,0,0,.25);cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:16px;min-width:260px;padding:16px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.kanban-item .kanban-item__header{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.kanban-item .kanban-item__header .content{display:-ms-flexbox;display:flex;gap:16px}.kanban-item .kanban-item__header .options-button{background-color:transparent;border:none;cursor:pointer;margin-right:-8px;padding:0 8px}.kanban-item .kanban-item__body{margin:16px 0}.kanban-item .kanban-item__footer{border-top:1px solid #dedce5;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.kanban-item .kanban-item__footer .date-info{-ms-flex-align:center;align-items:center;color:#6e7280;display:-ms-flexbox;display:flex;font-family:"Open Sans" sans-serif;font-size:12px;gap:4px;line-height:150%}.kanban-item--selected{border:1px solid #428bca}.kanban-item--disabled{opacity:50%}.kanban-item--frozen{box-shadow:none}']})],e)}(),os=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,b.TranslateModule,ne.DragDropModule,He,Ft,g.TieredMenuModule,Vt],declarations:[Qa,ns,es,ts],exports:[Qa,Vt],providers:[Xa]})],e)}(),is=function(){function e(e){this.changeDetectorRef=e,this.changeOnInit=!1,this.stepChanged=new t.EventEmitter,this.currentIndex=0,this.isDisabled=!1,this.tieredMenuItems=[]}var n;return n=e,e.prototype.ngOnInit=function(){this._createTieredMenuItems(),this.changeOnInit&&this.stepChanged.emit({previous:void 0,current:this.steps[this.currentIndex]})},e.prototype.ngAfterViewInit=function(){this._setDefaultValue()},e.prototype._setDefaultValue=function(){var e=this;if(this.defaultValue){this._value=this.defaultValue;var t=this.steps.findIndex((function(t){return t.value===e._value}));this.currentIndex=-1!==t?t:0,this.stepChanged.emit({previous:void 0,current:this.steps[this.currentIndex]}),this.changeDetectorRef.detectChanges()}},e.prototype.writeValue=function(e){var t=this;this._value=e;var n=this.steps.findIndex((function(e){return e.value===t._value}));this.currentIndex=-1!==n?n:0},e.prototype.registerOnChange=function(e){this._onChange=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype.setDisabledState=function(e){this.isDisabled=e},e.prototype.onNext=function(){if(!this.isDisabled){var e=this.steps[this.currentIndex];if(this.currentIndex<this.steps.length-1){this.currentIndex++;var t=this.steps[this.currentIndex];this._onChange&&this._onChange(t.value),this.stepChanged.emit({previous:e,current:t})}this._onTouched&&this._onTouched()}},e.prototype.onPrevious=function(){if(!this.isDisabled){var e=this.steps[this.currentIndex];if(this.currentIndex>0){this.currentIndex--;var t=this.steps[this.currentIndex];this._onChange&&this._onChange(t.value),this.stepChanged.emit({previous:e,current:t})}this._onTouched&&this._onTouched()}},e.prototype._createTieredMenuItems=function(){var e=this;this.steps.forEach((function(t){e.tieredMenuItems.push({label:t.label,command:function(){var n=e.steps.findIndex((function(e){return e===t}));e.currentIndex!==n&&(e._onChange&&e._onChange(t.value),e.stepChanged.emit({previous:e.steps[e.currentIndex],current:t}),e.currentIndex=n),e._onTouched&&e._onTouched()}})}))},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},pe([t.Input()],e.prototype,"steps",void 0),pe([t.Input()],e.prototype,"defaultValue",void 0),pe([t.Input()],e.prototype,"tooltip",void 0),pe([t.Input()],e.prototype,"changeOnInit",void 0),pe([t.Output()],e.prototype,"stepChanged",void 0),e=n=pe([t.Component({selector:"s-navigation-button",template:'<div class="navigation-button" [ngClass]="{ \'navigation-button--disabled\': isDisabled}">\n <button\n class="option option--previous"\n [ngClass]="{ \'option--disabled\': currentIndex === 0 }"\n (click)="onPrevious()">\n <i class="fas fa-chevron-left"></i>\n </button>\n\n <ng-container *ngIf="steps[currentIndex].tooltip || tooltip; then tooltipBlock; else noTooltipBlock"></ng-container>\n\n <ng-template #tooltipBlock>\n <button\n [sTooltip]="steps[currentIndex].tooltip || tooltip"\n class="step"\n sTieredMenu [items]="tieredMenuItems"\n [focusedItem]="tieredMenuItems[currentIndex]">\n {{ steps[currentIndex].label }}\n </button>\n </ng-template>\n\n <ng-template #noTooltipBlock>\n <button class="step">\n {{ steps[currentIndex].label }}\n </button>\n </ng-template>\n\n <button\n class="option option--next"\n [ngClass]="{ \'option--disabled\': currentIndex === steps.length - 1 }"\n (click)="onNext()">\n <i class="fas fa-chevron-right"></i>\n </button>\n</div>\n',providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:['.navigation-button{display:-ms-inline-flexbox;display:inline-flex}.navigation-button .option,.navigation-button .step{background-color:#428bca;border:none;color:#fff}.navigation-button:not(.navigation-button--disabled) .step{cursor:pointer}.navigation-button:not(.navigation-button--disabled) .step:hover{background-color:#063951}.navigation-button .option{padding:8px 12px}.navigation-button .option--previous{border-radius:16px 0 0 16px}.navigation-button .option--next{border-radius:0 16px 16px 0}.navigation-button .option--disabled{opacity:.5}.navigation-button .option:not(.option--disabled):hover{cursor:pointer;background-color:#063951}.navigation-button .step{font-family:"Open Sans",sans-serif;font-size:14px;padding:8px 16px;text-align:center}.navigation-button--disabled{opacity:.5}']})],e)}(),rs=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Lt,Re],declarations:[is],exports:[is]})],e)}();(Ja=e.EnumSeverity||(e.EnumSeverity={})).Default="Default",Ja.Info="Info",Ja.Warn="Warn",Ja.Error="Error",Ja.Success="Success";var as,ss,ls=function(){function e(){this.id="s-object-card-field-"+n.nextId++,this.buttonClick=new t.EventEmitter}var n;return n=e,e.nextId=0,pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"imageSource",void 0),pe([t.Input()],e.prototype,"imageAlt",void 0),pe([t.Input()],e.prototype,"iconClass",void 0),pe([t.Input()],e.prototype,"label",void 0),pe([t.Input()],e.prototype,"description",void 0),pe([t.Input()],e.prototype,"buttonLabel",void 0),pe([t.Input()],e.prototype,"buttonModel",void 0),pe([t.Output()],e.prototype,"buttonClick",void 0),pe([t.ContentChild(Rr,{static:!0})],e.prototype,"thumbnailComponent",void 0),pe([t.ViewChild(t.TemplateRef,{static:!0})],e.prototype,"content",void 0),e=n=pe([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)}(),cs=function(){function n(){this.id="s-object-card-main-"+o.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 o;return o=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<=Wn.SM_MAX?e.ThumbnailSize.Small:e.ThumbnailSize.Medium},n.nextId=0,pe([t.Input()],n.prototype,"id",void 0),pe([t.Input()],n.prototype,"imageSource",void 0),pe([t.Input()],n.prototype,"imageFallback",void 0),pe([t.Input()],n.prototype,"imageAlt",void 0),pe([t.Input()],n.prototype,"iconClass",void 0),pe([t.Input()],n.prototype,"hasThumbnail",void 0),pe([t.Input()],n.prototype,"hasDescription",void 0),pe([t.Input()],n.prototype,"isBrand",void 0),pe([t.Input()],n.prototype,"label",void 0),pe([t.Input()],n.prototype,"description",void 0),pe([t.Input()],n.prototype,"buttonLabel",void 0),pe([t.Input()],n.prototype,"buttonModel",void 0),pe([t.Output()],n.prototype,"buttonClick",void 0),pe([t.ContentChild(Rr,{static:!0})],n.prototype,"thumbnailComponent",void 0),pe([t.HostListener("window:resize")],n.prototype,"onResize",null),n=o=pe([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)}(),ps=function(){function o(n){this.elementRef=n,this.id="s-object-card-"+i.nextId++,this.expanded=!1,this.expandTooltip="Abrir painel",this.collapseTooltip="Fechar painel",this.fieldsMinWidth=200,this.expandedChange=new t.EventEmitter,this.maxVisibleFields=0,this.severity=e.EnumSeverity.Default,this.EnumSeverity=e.EnumSeverity}var i;return i=o,o.prototype.ngAfterViewInit=function(){},o.prototype.ngAfterContentChecked=function(){this.update()},o.prototype.update=function(){var e,t,n,o=window.innerWidth,i=this.elementRef.nativeElement.offsetWidth,r=.3*i>260?.3*i:260,a=this.fieldsMinWidth,s=this.elementRef.nativeElement.getElementsByClassName("s-object-card-field");try{for(var l=he(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=o<=Wn.SM_MAX?0:Math.floor((i-r)/a))&&n<this.fields.length&&(n=Math.floor((i-r-50)/a)),this.maxVisibleFields=n,n>=this.fields.length&&this.expanded&&this.collapse()},o.prototype.toggle=function(){this.expanded?this.collapse():this.expand()},o.prototype.expand=function(){this.expanded=!0,this.expandedChange.emit(this.expanded)},o.prototype.collapse=function(){this.expanded=!1,this.expandedChange.emit(this.expanded)},o.prototype.getExpandedFieldWidth=function(){var e=this.elementRef.nativeElement.offsetWidth;return 12/(e<=Wn.SM_MAX?1:e<=Wn.MD_MAX?2:e<=Wn.LG_MAX?4:6)},o.nextId=0,o.ctorParameters=function(){return[{type:t.ElementRef}]},pe([t.Input()],o.prototype,"id",void 0),pe([t.Input()],o.prototype,"expanded",void 0),pe([t.Input()],o.prototype,"expandTooltip",void 0),pe([t.Input()],o.prototype,"collapseTooltip",void 0),pe([t.Input()],o.prototype,"fieldsMinWidth",void 0),pe([t.Output()],o.prototype,"expandedChange",void 0),pe([t.ContentChild(cs,{static:!0})],o.prototype,"main",void 0),pe([t.ContentChildren(ls,{descendants:!0})],o.prototype,"fields",void 0),pe([t.Input()],o.prototype,"severity",void 0),pe([t.Input()],o.prototype,"borderButtonOptions",void 0),o=i=pe([t.Component({selector:"s-object-card",template:'<div [id]="id" class="container">\n <s-border-button\n *ngIf="\n borderButtonOptions?.visible\n ? borderButtonOptions?.visible(severity)\n : false\n "\n [severity]="severity"\n [options]="borderButtonOptions"\n class="object-card__border-button"\n [@BorderButtonAnimation]\n ></s-border-button>\n\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 \'main-container--severity-default\': severity === EnumSeverity.Default,\n \'main-container--severity-info\': severity === EnumSeverity.Info,\n \'main-container--severity-warn\': severity === EnumSeverity.Warn,\n \'main-container--severity-error\': severity === EnumSeverity.Error,\n \'main-container--severity-success\': severity == EnumSeverity.Success\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\n [id]="id + \'-expandable-container\'"\n [@expandableContent]="expanded"\n class="expandable-container"\n [ngClass]="{\n \'expandable-container--severity-default\':\n severity === EnumSeverity.Default,\n \'expandable-container--severity-info\': severity === EnumSeverity.Info,\n \'expandable-container--severity-warn\': severity === EnumSeverity.Warn,\n \'expandable-container--severity-error\': severity === EnumSeverity.Error,\n \'expandable-container--severity-success\':\n severity == EnumSeverity.Success\n }"\n >\n <div class="ui-g ui-g-12">\n <ng-container\n *ngFor="\n let field of fields.toArray()\n | slice : maxVisibleFields : fields.length\n "\n >\n <div class="ui-g-{{ getExpandedFieldWidth() }}">\n <div class="s-object-card-field">\n <ng-container\n *ngTemplateOutlet="field.content"\n ></ng-container>\n </div>\n </div>\n </ng-container>\n </div>\n </div>\n</div>\n',animations:[n.trigger("expandableContent",[n.state("*",n.style({height:"0"})),n.state("false",n.style({height:"0"})),n.state("true",n.style({height:"*"})),n.transition("* => true",n.animate("200ms ease-out")),n.transition("false <=> true",n.animate("200ms ease-out"))]),n.trigger("BorderButtonAnimation",[n.transition(":enter",[n.style({transform:"scaleY(0)",opacity:0}),n.animate("300ms ease",n.style({transform:"scaleY(1)",opacity:1}))]),n.transition(":leave",[n.style({transform:"scaleY(1)",opacity:1}),n.animate("300ms ease",n.style({transform:"scaleY(0)",opacity:0}))])])],styles:[":host{display:block}.container{margin-bottom:20px;position:relative}.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--severity-default{border-color:#ccc;border-top:initial}.expandable-container--severity-info{transition:border-color .5s;border-color:#428bca;border-top:initial}.expandable-container--severity-warn{transition:border-color .5s;border-color:#f8931f;border-top:initial}.expandable-container--severity-error{transition:border-color .5s;border-color:#c13018;border-top:initial}.expandable-container--severity-success{transition:border-color .5s;border-color:#0c9348;border-top:initial}.main-container--severity-default{border-color:#ccc}.main-container--severity-info{transition:border-color .5s;border-color:#428bca}.main-container--severity-warn{transition:border-color .5s;border-color:#f8931f}.main-container--severity-error{transition:border-color .5s;border-color:#c13018}.main-container--severity-success{transition:border-color .5s;border-color:#0c9348}.object-card__border-button{position:absolute;top:-13px;right:15px;z-index:1}.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)}}"]})],o)}(),ds=function(){function n(){this.severity=e.EnumSeverity.Default,this.EnumSeverity=e.EnumSeverity,this.TooltipPosition=e.TooltipPosition}return pe([t.Input()],n.prototype,"severity",void 0),pe([t.Input()],n.prototype,"options",void 0),n=pe([t.Component({selector:"s-border-button",template:'<button\n class="border-button"\n [ngClass]="{\n \'border-button--severity-default\': severity === EnumSeverity.Default,\n \'border-button--severity-info\': severity === EnumSeverity.Info,\n \'border-button--severity-warn\': severity === EnumSeverity.Warn,\n \'border-button--severity-error\': severity === EnumSeverity.Error,\n \'border-button--severity-success\': severity == EnumSeverity.Success,\n \'border-button--disabled\': options?.disabled\n ? options?.disabled(severity)\n : false\n }"\n (click)="options?.onClick ? options?.onClick(severity) : null"\n [sTooltip]="options?.tooltip ? options?.tooltip(severity) : null"\n [tooltipPosition]="TooltipPosition.Left"\n [disabled]="options?.disabled ? options?.disabled(severity) : false"\n>\n <span class="border-button__label">\n {{ options?.label ? options?.label(severity) : null }}\n </span>\n <span\n *ngIf="options?.icon ? options?.icon(severity) : false"\n class="border-button__icon {{ options?.icon(severity) }}"\n ></span>\n</button>',styles:[".border-button{padding:0 8px;border:1px solid;border-radius:12px;height:23px;max-width:320px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;cursor:pointer}.border-button__label{font-family:Open Sans,sans-serif;font-size:12px;line-height:150%;width:100%;display:block;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.border-button__icon{font-size:12px;color:#333;margin-left:8px}.border-button--severity-default{border-color:#ccc;background-color:#fff}.border-button--severity-info{border-color:#428bca;background-color:#d5e8ec;transition:background-color .5s,border-color .5s}.border-button--severity-info:enabled:hover{background-color:#9ecad4;cursor:pointer}.border-button--severity-info:enabled:active{transition:none;background-color:#67acbc;border-color:#67acbc}.border-button--severity-warn{border-color:#f8931f;background-color:#fce3ba;transition:background-color .5s,border-color .5s}.border-button--severity-warn:enabled:hover{background-color:#f8bf5e;cursor:pointer}.border-button--severity-warn:enabled:active{transition:none;background-color:#f5a319;border-color:#f5a319}.border-button--severity-error{border-color:#c13018;background-color:#fcd2d2;transition:background-color .5s,border-color .5s}.border-button--severity-error:enabled:hover{background-color:#f89696;cursor:pointer}.border-button--severity-error:enabled:active{transition:none;background-color:#f45b5b;border-color:#f45b5b}.border-button--severity-success{border-color:#0c9348;background-color:#e6ffb3;transition:background-color .5s,border-color .5s}.border-button--severity-success:enabled:hover{background-color:#c8ff5c;cursor:pointer}.border-button--severity-success:enabled:active{transition:none;background-color:#ade500;border-color:#ade500}.border-button--disabled:disabled:hover{cursor:default}"]})],n)}(),us=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Re],declarations:[ds],exports:[ds]})],e)}(),ms=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Y.TooltipModule,Ar,Ft,us],declarations:[ps,cs,ls],exports:[Ar,ps,cs,ls]})],e)}(),hs=function(){function o(){this.toggleable=!1,this.collapsed=!1,this.severity=e.EnumSeverity.Default,this.collapsedChange=new t.EventEmitter,this.EnumSeverity=e.EnumSeverity}return o.prototype.ngAfterContentInit=function(){this._getTemplates()},o.prototype.toggleCollapsed=function(){this.collapsed=!this.collapsed,this.collapsedChange.emit(this.collapsed)},o.prototype._getCustomTemplate=function(e){var t;return null===(t=this.templates.find((function(t){return t.type===e})))||void 0===t?void 0:t.template},o.prototype.getHeaderTemplate=function(){return this._getCustomTemplate("header")},o.prototype.getBodyTemplate=function(){return this._getCustomTemplate("body")},o.prototype.getFooterTemplate=function(){return this._getCustomTemplate("footer")},o.prototype._getTemplates=function(){this.headerTemplate=this.getHeaderTemplate(),this.bodyTemplate=this.getBodyTemplate(),this.footerTemplate=this.getFooterTemplate()},pe([t.Input()],o.prototype,"header",void 0),pe([t.Input()],o.prototype,"toggleable",void 0),pe([t.Input()],o.prototype,"collapsed",void 0),pe([t.Input()],o.prototype,"severity",void 0),pe([t.Input()],o.prototype,"borderButtonOptions",void 0),pe([t.Input()],o.prototype,"class",void 0),pe([t.Output()],o.prototype,"collapsedChange",void 0),pe([t.ContentChildren(At)],o.prototype,"templates",void 0),o=pe([t.Component({selector:"s-panel",template:'<div\n [class]="class"\n [ngClass]="{\n \'panel\': true,\n \'panel--success\': severity === EnumSeverity.Success,\n \'panel--info\': severity === EnumSeverity.Info,\n \'panel--warn\': severity === EnumSeverity.Warn,\n \'panel--error\': severity === EnumSeverity.Error,\n \'panel--collapsed\': collapsed\n }"\n>\n <s-border-button\n *ngIf="borderButtonOptions?.visible ? borderButtonOptions?.visible(severity) : false"\n [severity]="severity"\n [options]="borderButtonOptions"\n class="border-button"\n [@BorderButtonAnimation]\n >\n </s-border-button>\n\n <div *ngIf="header || headerTemplate" class="header">\n <div class="header-content">\n <ng-container *ngIf="headerTemplate; then customHeaderTemplate; else simpleHeaderTemplate"></ng-container>\n <ng-template #customHeaderTemplate>\n <ng-container *ngTemplateOutlet="headerTemplate"></ng-container>\n </ng-template>\n <ng-template #simpleHeaderTemplate>\n <span>{{ header }}</span>\n </ng-template>\n </div>\n <button\n *ngIf="toggleable"\n class="collapse-button fas"\n [ngClass]="{\n \'fa-plus\': collapsed,\n \'fa-minus\': !collapsed\n }"\n (click)="toggleCollapsed()"\n ></button>\n </div>\n\n <div *ngIf="!toggleable || !collapsed" class="panel-content">\n <div class="body">\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet="bodyTemplate"></ng-container>\n </div>\n\n <div *ngIf="footerTemplate" class="footer">\n <ng-container *ngTemplateOutlet="footerTemplate"></ng-container>\n </div>\n </div>\n</div>\n',animations:[n.trigger("BorderButtonAnimation",[n.transition(":enter",[n.style({transform:"scaleY(0)",opacity:0}),n.animate("300ms ease",n.style({transform:"scaleY(1)",opacity:1}))]),n.transition(":leave",[n.style({transform:"scaleY(1)",opacity:1}),n.animate("300ms ease",n.style({transform:"scaleY(0)",opacity:0}))])])],styles:[".panel{background-color:#fff;border:1px solid #dedce5;padding:20px;position:relative;transition:border-color .5s}.panel .border-button{position:absolute;right:15px;top:-12px;z-index:10}.panel .header{border-bottom:1px solid #dedce5;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding-bottom:12px;margin-bottom:12px;text-transform:uppercase}.panel .header-content{-ms-flex-positive:1;flex-grow:1}.panel .header .collapse-button{background-color:transparent;border:none;color:#212533;cursor:pointer;height:24px;width:24px}.panel .panel-content .footer{border-top:1px solid #dedce5;padding-top:12px}.panel--success{border-color:#0c9348}.panel--info{border-color:#428bca}.panel--warn{border-color:#f8931f}.panel--error{border-color:#c13018}.panel--collapsed .header{border:none;padding:0}"]})],o)}(),fs=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,us],declarations:[hs],exports:[hs,Vt]})],e)}(),gs=function(){function e(){this.id="s-product-header-"+n.nextId++,this.baseZIndex=0,this.isHeaderFrame=!0}var n;return n=e,e.prototype.ngAfterViewInit=function(){this.container.nativeElement.style.zIndex=String(this.baseZIndex+ ++f.DomHandler.zindex),this.isHeaderFrame?this.container.nativeElement.style.borderBottom="1px solid $default-secondary-color":this.container.nativeElement.style.borderTop="1px solid $default-secondary-color"},e.nextId=0,pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"header",void 0),pe([t.Input()],e.prototype,"baseZIndex",void 0),pe([t.Input()],e.prototype,"isHeaderFrame",void 0),pe([t.ViewChild("headerContainer",{static:!1})],e.prototype,"container",void 0),e=n=pe([t.Component({selector:"s-product-header",template:'<div [id]="id" class="box">\n <div\n #headerContainer\n class="sds-container"\n [class]="isHeaderFrame ? \'header-frame\' : \'primary-header\'"\n >\n <h1 [class]="isHeaderFrame ? \'title\' : \'primary-title\'">{{ header }}</h1>\n <div class="content">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n',styles:[".box{position:relative;width:100%;height:70px}.header-frame{padding-top:15px;padding-bottom:15px;width:100%;top:0;left:0;height:70px;background-color:#fff;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;position:fixed}.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}.primary-header{display:-ms-flexbox;display:flex;width:100%;height:70px;padding:15px 20px;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;border-bottom:1px solid #ddd;background-color:#fff;gap:24px}@media (max-width:768px){.primary-header{width:100%}}.primary-header .primary-title{color:#999;font-weight:400;font-size:16pt;margin-right:15px;min-width:140px;overflow:hidden;text-overflow:ellipsis}"]})],e)}(),vs=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Y.TooltipModule,Ar],declarations:[gs],exports:[gs,Ar]})],e)}();(as=e.ProgressBarColors||(e.ProgressBarColors={})).Blue="blue",as.Green="green",as.Red="red",as.Yellow="yellow",function(e){e.Determinate="determinate",e.Indeterminate="indeterminate"}(ss||(ss={}));var bs=function(){function e(){this.numberFormatOptions={style:"decimal",minimumFractionDigits:0,maximumFractionDigits:2,roundingMode:"trunc"},this.showValue=!0,this.mode=ss.Determinate}return e.prototype.ngOnInit=function(){this.validateInputs()},e.prototype.validateInputs=function(){if(this.value<0||this.value>100)throw new Error("Invalid value for value");if(this.targetValue<0||this.targetValue>100)throw new Error("Invalid value for targetValue");if(this.mode===ss.Indeterminate&&(this.value||this.targetValue||this.targetLabel))throw new Error("When the mode is indeterminate, the value, targetValue and targetLabel parameters are not expected.")},pe([t.Input()],e.prototype,"value",void 0),pe([t.Input()],e.prototype,"numberFormatOptions",void 0),pe([t.Input()],e.prototype,"targetValue",void 0),pe([t.Input()],e.prototype,"label",void 0),pe([t.Input()],e.prototype,"targetLabel",void 0),pe([t.Input()],e.prototype,"activeColor",void 0),pe([t.Input()],e.prototype,"showValue",void 0),pe([t.Input()],e.prototype,"mode",void 0),e=pe([t.Component({selector:"s-progressbar",template:'<ng-container *ngIf="mode === \'determinate\'; then pbDeterminateTemplate else pbIndeterminateTemplate"></ng-container>\n\n<ng-template #pbDeterminateTemplate>\n <s-progressbar-determinate\n [value]="value"\n [numberFormatOptions]="numberFormatOptions"\n [targetValue]="targetValue"\n [targetLabel]="targetLabel"\n [activeColor]="activeColor"\n [showValue]="showValue">\n </s-progressbar-determinate>\n</ng-template>\n\n<ng-template #pbIndeterminateTemplate>\n <s-progressbar-indeterminate\n [activeColor]="activeColor"\n [label]="label">\n </s-progressbar-indeterminate>\n</ng-template>',styles:['.progress-bar{position:relative}.progress-bar .progress-bar-all{background-color:#d8d8d8;border-radius:4px;height:24px;overflow:hidden;width:100%}.progress-bar .progress-bar-all .progress-bar-active{-ms-flex-align:center;align-items:center;color:#fff;display:-ms-flexbox;display:flex;font-family:"Open Sans",sans-serif;font-size:14px;height:100%;-ms-flex-pack:center;justify-content:center;line-height:150%;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:80%}.progress-bar .progress-bar-all .progress-bar-active--blue{background-color:#428bca}.progress-bar .progress-bar-all .progress-bar-active--green{background-color:#0c9348}.progress-bar .progress-bar-all .progress-bar-active--red{background-color:#c13018}.progress-bar .progress-bar-all .progress-bar-active--yellow{background-color:#fcbf10}.progress-bar .target{-ms-flex-align:start;align-items:flex-start;bottom:-38px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:absolute}.progress-bar .target .target-line{background-color:#333;height:40px;margin:8px 0;width:1px}.progress-bar .target .target-label{background-color:#426e78;border-radius:10px;color:#e5eaea;font-family:"Open Sans",sans-serif;font-size:12px;line-height:150%;padding:2px 12px}']})],e)}(),ys=function(){function e(e){this.localeService=e,this.showValue=!0}return e.prototype.ngOnInit=function(){this.validateValues(),this.onGetLocale()},e.prototype.onGetLocale=function(){var e=this;this.localeService.getLocale().subscribe({next:function(t){e.numberFormat=new Intl.NumberFormat(null!=t?t:"pt-BR",e.numberFormatOptions)},error:function(){e.numberFormat=new Intl.NumberFormat("pt-BR",e.numberFormatOptions)}})},e.prototype.validateValues=function(){if(this.value<0||this.value>100)throw new Error("Invalid value for value");if(this.targetValue<0||this.targetValue>100)throw new Error("Invalid value for targetValue")},e.ctorParameters=function(){return[{type:Xe}]},pe([t.Input()],e.prototype,"value",void 0),pe([t.Input()],e.prototype,"numberFormatOptions",void 0),pe([t.Input()],e.prototype,"targetValue",void 0),pe([t.Input()],e.prototype,"targetLabel",void 0),pe([t.Input()],e.prototype,"activeColor",void 0),pe([t.Input()],e.prototype,"showValue",void 0),e=pe([t.Component({selector:"s-progressbar-determinate",template:"<div class=\"progressbar-determinate\">\n <div class=\"progressbar-container\">\n <div\n class=\"progressbar-active\"\n [ngClass]=\"{\n 'progressbar-active--blue' : activeColor === 'blue',\n 'progressbar-active--green': activeColor === 'green',\n 'progressbar-active--red': activeColor === 'red',\n 'progressbar-active--yellow': activeColor === 'yellow'\n }\"\n [ngStyle]=\"{ 'width': value + '%' }\">\n\n {{ showValue && value ? numberFormat.format(value) + '%' : '' }}\n </div>\n </div>\n <div\n *ngIf=\"targetValue\"\n class=\"target\"\n [ngStyle]=\"{\n 'left': targetValue <= 50 ? targetValue + '%' : 'unset',\n 'right': targetValue > 50 ? 100 - targetValue + '%' : 'unset',\n 'align-items': targetValue > 50 ? 'flex-end' : 'flex-start'\n }\">\n <span class=\"target-line\"></span>\n <span class=\"target-label\">\n {{ targetLabel || numberFormat.format(value) + '%' }}\n </span>\n </div>\n </div>\n",styles:['.progressbar-determinate{position:relative}.progressbar-determinate .progressbar-container{background-color:#d8d8d8;border-radius:4px;height:24px;overflow:hidden;width:100%}.progressbar-determinate .progressbar-container .progressbar-active{-ms-flex-align:center;align-items:center;color:#fff;display:-ms-flexbox;display:flex;font-family:"Open Sans",sans-serif;font-size:14px;height:100%;-ms-flex-pack:center;justify-content:center;line-height:150%;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:80%}.progressbar-determinate .progressbar-container .progressbar-active--blue{background-color:#428bca}.progressbar-determinate .progressbar-container .progressbar-active--green{background-color:#0c9348}.progressbar-determinate .progressbar-container .progressbar-active--red{background-color:#c13018}.progressbar-determinate .progressbar-container .progressbar-active--yellow{background-color:#fcbf10;color:#212533}.progressbar-determinate .target{-ms-flex-align:start;align-items:flex-start;bottom:-38px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:absolute}.progressbar-determinate .target .target-line{background-color:#333;height:40px;margin:8px 0;width:1px}.progressbar-determinate .target .target-label{background-color:#426e78;border-radius:10px;color:#e5eaea;font-family:"Open Sans",sans-serif;font-size:12px;line-height:150%;padding:2px 12px}']})],e)}(),xs=function(){function e(){}return pe([t.Input()],e.prototype,"activeColor",void 0),pe([t.Input()],e.prototype,"label",void 0),e=pe([t.Component({selector:"s-progressbar-indeterminate",template:"<div class=\"progressbar-indeterminate\">\n <div class=\"progressbar-container\">\n <div class=\"indeterminate-bar\" [ngClass]=\"{\n 'indeterminate-bar--blue': activeColor === 'blue',\n 'indeterminate-bar--green': activeColor === 'green',\n 'indeterminate-bar--red': activeColor === 'red',\n 'indeterminate-bar--yellow': activeColor === 'yellow'\n }\"></div>\n </div>\n\n <span *ngIf=\"label\" class=\"progressbar-label\">{{ label }}</span>\n</div>\n",styles:['.progressbar-indeterminate{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}.progressbar-indeterminate .progressbar-container{background-color:#d8d8d8;border-radius:4px;height:24px;margin:8px 0;overflow:hidden;width:100%}.progressbar-indeterminate .indeterminate-bar{animation:5s infinite indeterminate-progress;background-color:#428bca;height:100%;width:40%}.progressbar-indeterminate .indeterminate-bar--blue{background-color:#428bca}.progressbar-indeterminate .indeterminate-bar--green{background-color:#0c9348}.progressbar-indeterminate .indeterminate-bar--red{background-color:#c13018}.progressbar-indeterminate .indeterminate-bar--yellow{background-color:#fcbf10}.progressbar-indeterminate .progressbar-label{font-family:"Open Sans" sans-serif;font-size:12px;line-height:150%;color:#212533}@keyframes indeterminate-progress{0%{transform:translateX(-250%)}100%{transform:translateX(250%)}}']})],e)}(),_s=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[bs,ys,xs],exports:[bs]})],e)}(),ws=function(){function e(){this.disabled=!1}var n;return n=e,e.prototype.writeValue=function(e){this.disabled||(this.value=e)},e.prototype.registerOnChange=function(e){this._onChange=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype.onSelect=function(e){this.value=e,this._onChange&&this._onChange(this.value)},pe([t.Input()],e.prototype,"nodes",void 0),pe([t.Input()],e.prototype,"startLabel",void 0),pe([t.Input()],e.prototype,"endLabel",void 0),pe([t.Input()],e.prototype,"disabled",void 0),e=n=pe([t.Component({selector:"s-rating-scale",template:'<div\n class="rating-scale"\n [ngClass]="{ \'rating-scale--disabled\': disabled }">\n <div class="nodes">\n <button\n *ngFor="let node of nodes; index as i"\n class="node"\n [ngClass]="{ \'node--selected\': value?.id === node.id && !disabled }"\n tabindex="0"\n (click)="onSelect(node)"> \n <span\n *ngIf="node.icon"\n class="icon fas"\n [ngClass]="node.icon">\n </span>\n <span\n *ngIf="node.title"\n class="label">\n {{ node.title }}\n </span>\n </button>\n </div>\n <div class="labels">\n <span>{{ startLabel }}</span>\n <span>{{ endLabel }}</span>\n </div>\n</div>',providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:['.rating-scale{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.rating-scale .nodes{display:-ms-flexbox;display:flex}.rating-scale .nodes .node{-ms-flex-align:center;align-items:center;background-color:#fff;border-radius:6px;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:center;justify-content:center;margin:0 2px;padding:8px;border:1px solid #7892a1}.rating-scale .nodes .node .icon{color:#6e7280;font-size:1rem}.rating-scale .nodes .node .label{color:#212533;font-size:.875rem;font-weight:400;line-height:150%}.rating-scale .nodes .node .icon,.rating-scale .nodes .node .label{margin:6px}.rating-scale .nodes .node--selected{background-color:#d5e8ec;border-color:#428bca;color:#428bca}.rating-scale .nodes .node:first-child{margin-left:0}.rating-scale .nodes .node:last-child{margin-right:0}.rating-scale .labels{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:12px 0}.rating-scale .labels span{color:#080808;font-family:"Open Sans" sans-serif;font-size:.875rem;font-weight:400;line-height:150%}.rating-scale--disabled{opacity:.5}.rating-scale:not(.rating-scale--disabled) .node{cursor:pointer}.rating-scale:not(.rating-scale--disabled) .node:hover{background-color:#dedce5}.rating-scale:not(.rating-scale--disabled) .node:focus{border-width:2px;outline:0}']})],e)}(),Cs=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.ReactiveFormsModule],declarations:[ws],exports:[ws]})],e)}(),ks=function(){function e(){this.multiple=!1,this.itemSelected=new t.EventEmitter,this.itemClicked=new t.EventEmitter,this.disabled=!1,this.activeItems=new Set}var n;return n=e,e.prototype.writeValue=function(e){var t=this;e&&(this.activeItems.clear(),Array.isArray(e)?e.forEach((function(e){t.items.forEach((function(n){t._compareItems(e,n)&&t.activeItems.add(n)}))})):this.items.forEach((function(n){t._compareItems(e,n)&&t.activeItems.add(n)})))},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.onItemSelect=function(e){var t,n;this.disabled||e.disabled||(this.itemClicked.emit(e),this.multiple||this.activeItems.clear(),this.activeItems.add(e),this.itemSelected.emit(ge(this.activeItems)),null===(t=this.onChange)||void 0===t||t.call(this,ge(this.activeItems)),null===(n=this.onTouched)||void 0===n||n.call(this,ge(this.activeItems)))},e.prototype._compareItems=function(e,t){var n=function(e,t){var o,i;if(e===t)return!0;if(void 0===e||void 0===t||"object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;var r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;try{for(var s=he(r),l=s.next();!l.done;l=s.next()){var c=l.value;if(!a.includes(c)||!n(e[c],t[c]))return!1}}catch(e){o={error:e}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}for(var c in e)if(e.hasOwnProperty(c)!==t.hasOwnProperty(c))return!1;return!0};return n(e,t)},pe([t.Input()],e.prototype,"items",void 0),pe([t.Input()],e.prototype,"multiple",void 0),pe([t.Output()],e.prototype,"itemSelected",void 0),pe([t.Output()],e.prototype,"itemClicked",void 0),e=n=pe([t.Component({selector:"s-select-button",template:'<div\n class="select-button"\n [ngClass]="{ \'select-button--disabled\': disabled }">\n <s-select-button-item\n *ngFor="let item of items; index as i"\n [label]="item.label"\n [active]="activeItems?.has(item)"\n [disabled]="disabled || item.disabled"\n [first]="i === 0"\n [last]="i === items.length - 1"\n (click)="onItemSelect(item)">\n </s-select-button-item>\n</div>',providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:[".select-button{overflow:hidden}"]})],e)}(),Is=function(){function e(){this.active=!1,this.first=!1,this.last=!1,this.disabled=!1}return pe([t.Input()],e.prototype,"label",void 0),pe([t.Input()],e.prototype,"active",void 0),pe([t.Input()],e.prototype,"first",void 0),pe([t.Input()],e.prototype,"last",void 0),pe([t.Input()],e.prototype,"disabled",void 0),e=pe([t.Component({selector:"s-select-button-item",template:"<button\n class=\"select-button-item\"\n [ngClass]=\"{\n 'select-button-item--active': active,\n 'select-button-item--disabled': disabled,\n 'select-button-item--first': first,\n 'select-button-item--last': last\n }\">\n <span class=\"select-button-item__label\">{{ label }}</span>\n</button>",styles:['.select-button-item{padding:8px 12px;cursor:pointer;background-color:#fff;border:none;border-left:1px solid #c1c1cc;border-top:1px solid #c1c1cc;border-bottom:1px solid #c1c1cc}.select-button-item__label{font-family:"Open Sans" sans-serif;font-size:14px}.select-button-item:not(.select-button-item--disabled):not(.select-button-item--active):hover{background-color:#eeebf2}.select-button-item--active,.select-button-item--active:hover{background-color:#c1c1cc;font-weight:700}.select-button-item--disabled{opacity:.5;cursor:default}.select-button-item--first{border-top-left-radius:2px;border-bottom-left-radius:2px}.select-button-item--last{border-right:1px solid #c1c1cc;border-top-right-radius:2px;border-bottom-right-radius:2px}']})],e)}(),Ss=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[ks,Is],exports:[ks]})],e)}();function Ts(e){return void 0===e&&(e="disabled"),function(t,n,o){var i=o.value;return o.value=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this[e])return i.apply(this,t)},o}}var Es,Ms=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(){f.DomHandler.addClass(document.body,"ui-overflow-hidden-sidebar"),this.focusTrapFactory.create(this.innerSidebar.containerViewChild.nativeElement,!1).focusInitialElementWhenReady()},e.prototype.onHide=function(){f.DomHandler.removeClass(document.body,"ui-overflow-hidden-sidebar")},e.prototype.close=function(e){f.DomHandler.removeClass(document.body,"ui-overflow-hidden-sidebar"),this.visibleChange.emit(!1),e.preventDefault()},e.nextId=0,e.ctorParameters=function(){return[{type:oe.FocusTrapFactory}]},pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"visible",void 0),pe([t.Input()],e.prototype,"header",void 0),pe([t.Input()],e.prototype,"baseZIndex",void 0),pe([t.Input()],e.prototype,"largeSized",void 0),pe([t.Output()],e.prototype,"visibleChange",void 0),pe([t.ViewChild(re.Sidebar,{static:!0})],e.prototype,"innerSidebar",void 0),pe([t.ContentChild(Ir,{static:!0})],e.prototype,"headerSection",void 0),pe([t.ContentChild(Sr,{static:!0})],e.prototype,"footerSection",void 0),e=n=pe([t.Component({selector:"s-sidebar",template:'<p-sidebar\n [id]="id"\n [visible]="visible"\n (visibleChange)="visibleChange.emit($event)"\n [blockScroll]="true"\n [baseZIndex]="baseZIndex"\n [modal]="true"\n [dismissible]="false"\n [showCloseIcon]="false"\n position="right"\n appendTo="body"\n [styleClass]="largeSized ? \'s-sidebar-panel s-sidebar-panel-lg\' : \'s-sidebar-panel\'"\n (onShow)="onShow()"\n (onHide)="onHide()">\n <div\n [id]="id + \'-container\'"\n class="s-sidebar-container">\n <a\n href="#"\n role="button"\n class="s-sidebar-close"\n (click)="close($event)">\n <span\n class="fa fa-times"\n aria-hidden="true">\n </span></a>\n <div\n *ngIf="header && !headerSection" \n [id]="id + \'-header\'"\n class="s-sidebar-header">\n <h2 class="sds-panel-title s-sidebar-header__title">{{header}}</h2>\n </div>\n <div\n *ngIf="headerSection" \n [id]="id + \'-header\'"\n class="s-sidebar-header">\n <ng-content select="s-header"></ng-content>\n </div>\n <p-scrollPanel\n [id]="id + \'-content-container\'"\n class="s-sidebar-content-container"\n styleClass="s-sidebar-content">\n <ng-content></ng-content>\n </p-scrollPanel>\n <div\n *ngIf="footerSection"\n [id]="id + \'-footer\'"\n class="s-sidebar-footer">\n <ng-content select="s-footer"></ng-content>\n </div>\n </div>\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}.s-sidebar-header__title{font-weight:400}"]})],e)}(),Ls=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,oe.A11yModule,re.SidebarModule,ie.ScrollPanelModule,Tr],declarations:[Ms],exports:[Tr,Ms]})],e)}(),Fs=function(){function e(){this.modalCloseMap=new Map}return e.prototype.createSlidePanel=function(e){var t=new o.Subject;return this.modalCloseMap.set(e,t),t.asObservable()},e.prototype.getModalCloseObservable=function(e){return this.modalCloseMap.get(e).asObservable()},e.prototype.closeModal=function(e){var t=this.modalCloseMap.get(e);t&&t.next()},e=pe([t.Injectable()],e)}(),Os=function(){function e(e){this.slidePanelService=e,this.id="slide-panel-"+ ++r.nextId,this.openIcon="fas fa-chevron-right",this.closeIcon="fas fa-chevron-left",this.cache=!1,this.createOpen=!1,this.noOverlap=!1,this.panelOpened=new t.EventEmitter,this.panelClosed=new t.EventEmitter,this.isOpen=!1,this.isSlideOver=!1,this.isAnimating=!1,this.isContentAnimationDisabled=!0,this.slideHeight=0,this._unsubscribe$=new o.Subject}var r;return r=e,e.prototype.onResize=function(){this._checkOverBehavior()},e.prototype.ngOnInit=function(){var e=this;this._checkOverBehavior(),this.slidePanelService.createSlidePanel(this.id).pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(){e.isOpen=!1}))},e.prototype.ngAfterViewInit=function(){var e=this;queueMicrotask((function(){e.createOpen&&(e.isOpen=!0)}))},e.prototype.ngAfterViewChecked=function(){var e=this;queueMicrotask((function(){e._calculateSlideHeight(),e.isContentAnimationDisabled=!1}))},e.prototype.ngOnDestroy=function(){this._unsubscribe$.next(),this._unsubscribe$.complete()},e.prototype.onClickButton=function(){this.isAnimating||(this.isOpen=!this.isOpen,this.isOpen?this.panelOpened.emit():this.panelClosed.emit())},e.prototype.onContentAnimationStart=function(){this.isAnimating=!0},e.prototype.onContentAnimationDone=function(){this.isAnimating=!1},e.prototype._checkOverBehavior=function(){this.isSlideOver=window.innerWidth<=420},e.prototype._calculateSlideHeight=function(){this.slideHeight=this._sideContentRef.nativeElement.clientHeight},e.nextId=0,e.ctorParameters=function(){return[{type:Fs}]},pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"openIcon",void 0),pe([t.Input()],e.prototype,"closeIcon",void 0),pe([t.Input()],e.prototype,"cache",void 0),pe([t.Input()],e.prototype,"createOpen",void 0),pe([t.Input()],e.prototype,"noOverlap",void 0),pe([t.Output()],e.prototype,"panelOpened",void 0),pe([t.Output()],e.prototype,"panelClosed",void 0),pe([t.ViewChild("sideContent")],e.prototype,"_sideContentRef",void 0),pe([t.HostListener("window:resize")],e.prototype,"onResize",null),e=r=pe([t.Component({selector:"s-slide-panel",template:'<div class="slide-panel">\n <div\n class="slide-content"\n [ngClass]="{\n \'slide-content--closed\': !isOpen,\n \'slide-content--over\': isSlideOver,\n \'slide-content--no-overlap\': noOverlap\n }">\n <div\n #mainContainer\n class="main-container"\n [style.maxHeight]="slideHeight + \'px\'">\n <ng-container *ngIf="cache; then cacheTemplate else cachelessTemplate"></ng-container>\n </div>\n <button\n class="button"\n [ngClass]="isOpen ? closeIcon : openIcon"\n (click)="onClickButton()">\n </button>\n </div>\n <div \n #sideContent\n class="side-content">\n <ng-content select="[side-content]"></ng-content>\n </div>\n</div>\n\n<ng-template #cacheTemplate>\n <div\n class="content-container"\n [@cacheAnimation]="isOpen"\n [@.disabled]="isContentAnimationDisabled"\n (@cacheAnimation.start)="onContentAnimationStart()"\n (@cacheAnimation.done)="onContentAnimationDone()">\n <ng-container [ngTemplateOutlet]="slideContentTemplate"></ng-container>\n </div>\n</ng-template>\n\n<ng-template #cachelessTemplate>\n <div\n *ngIf="isOpen"\n class="content-container"\n @cachelessAnimation\n [@.disabled]="isContentAnimationDisabled"\n (@cachelessAnimation.start)="onContentAnimationStart()"\n (@cachelessAnimation.done)="onContentAnimationDone()">\n <ng-container [ngTemplateOutlet]="slideContentTemplate"></ng-container>\n </div>\n</ng-template>\n\n<ng-template #slideContentTemplate>\n <ng-content select="[slide-content]"></ng-content>\n</ng-template>',animations:[n.trigger("cachelessAnimation",[n.transition(":enter",[n.style({width:"0"}),n.animate("200ms linear",n.style({width:"*"}))]),n.transition(":leave",[n.style({width:"*"}),n.animate("200ms linear",n.style({width:"0"}))])]),n.trigger("cacheAnimation",[n.state("true",n.style({width:"*",padding:"0 16px"})),n.state("false",n.style({width:"0px",padding:"0"})),n.transition("* => *",n.animate("200ms"))])],styles:['.slide-panel{display:-ms-flexbox;display:flex;width:100%}.slide-panel .slide-content{display:-ms-flexbox;display:flex;position:relative}.slide-panel .slide-content .main-container{background-color:#eeebf2;display:-ms-flexbox;display:flex;border:1px solid #ccc;overflow:hidden;position:relative}.slide-panel .slide-content .main-container .content-container{overflow-y:auto;overflow-x:hidden;padding:16px}.slide-panel .slide-content .button{-ms-flex-align:center;align-items:center;background-color:#eeebf2;border:1px solid #ccc;border-left:none;border-radius:0 4px 4px 0;cursor:pointer;display:-ms-flexbox;display:flex;font-family:"Font Awesome 5 Pro";font-size:16px;height:32px;-ms-flex-pack:center;justify-content:center;position:absolute;right:-32px;top:16px;width:32px;z-index:99}.slide-panel .slide-content--closed .main-container{border:none}.slide-panel .slide-content--over{position:absolute}.slide-panel .slide-content--no-overlap{margin-right:32px}.slide-panel .side-content{display:-ms-flexbox;display:flex;height:-webkit-max-content;height:max-content;overflow:auto;transition:width .1s linear}']})],e)}(),Rs=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[Os],exports:[Os],providers:[Fs]})],e)}(),As=function(){function e(){var e=this;this.MAX_RANGE_VALUE=100,this.MIN_RANGE_VALUE=0,this.multiple=!1,this.value=0,this.valueChange=new t.EventEmitter,this.step=1,this.hiddenThumb=!1,this.disabled=!1,this.min=this.MIN_RANGE_VALUE,this.max=this.MAX_RANGE_VALUE,this.tabindex=0,this.startValue=0,this.endValue=0,this.movingProgressBar=!1,this.progressLeft=0,this.progressWidth="",this.onChange=function(){},this.onTouched=function(){},this.draggingThumb=null,this.progressBarEventPositionStart=-1,this.startValueBeforeProgressBarEvent=-1,this.rangeBetweenElementsBeforeProgressBarEvent=-1,this.totalRangeBeforeProgressBarEvent=-1,this.mapRangeValuesForSlider=new Map,this.activeMouseDown=!1,this.focusActive=!1,this.onThumbMove=function(t){if(!e.movingProgressBar&&e.draggingThumb){var n=e.getPercentageByEvent(t);if(!(e.multiple&&"start"===e.draggingThumb&&n>e.endValue||e.multiple&&"end"===e.draggingThumb&&n<e.startValue)){var o=e.getValueFromMapByValue(n);if(e.multiple){"start"===e.draggingThumb?e.startValue=e.needParseValues?e.mapRangeValuesForSlider.get(o):n:"end"===e.draggingThumb&&(e.endValue=e.needParseValues?e.mapRangeValuesForSlider.get(o):n),e.setValue([e.startValue,e.endValue]);var i=fe(e.value,2),r=i[0],a=i[1];r===a&&"start"===e.draggingThumb?e.startValue=e.endValue:r===a&&"end"===e.draggingThumb&&(e.endValue=e.startValue)}else{var s=e.value,l=e.needParseValues?o:n,c=!!e.needParseValues&&o===e.value,p=!!(0!==e.step)&&(s+e.step===l||s-e.step===l);if(c&&!p)return;e.endValue=e.needParseValues?e.mapRangeValuesForSlider.get(o):n,e.startValue=e.endValue,e.setValue(e.endValue)}e.setProgress()}}},this.onMouseUp=function(){e.draggingThumb=null,document.removeEventListener("mousemove",e.onThumbMove),document.removeEventListener("mouseup",e.onMouseUp),setTimeout((function(){e.activeMouseDown=!1}),150)},this.handleProgressBarMove=function(t){e.movingProgressBar=!0;var n=e.getPercentageByEvent(t),o=e.progressBarEventPositionStart,i=e.startValueBeforeProgressBarEvent,r=e.rangeBetweenElementsBeforeProgressBarEvent,a=Ds(i,i+r,o,n),s=a.newStart,l=a.newEnd;if(!(s<e.MIN_RANGE_VALUE||l>e.MAX_RANGE_VALUE)){if(e.needParseValues){var c=e.getValueFromMapByValue(i),p=e.getValueFromMapByValue(o),d=e.getValueFromMapByValue(n),u=e.totalRangeBeforeProgressBarEvent,m=Ds(c,c+u,p,d),h=m.newStart,f=m.newEnd;if(h<e.min||f>e.max)return;e.startValue=e.mapRangeValuesForSlider.get(h),e.endValue=e.mapRangeValuesForSlider.get(f)}else e.startValue=s,e.endValue=l;e.setValue([e.startValue,e.endValue]),e.setProgress()}},this.handleProgressBarMoveEnd=function(){e.progressBarEventPositionStart=-1,e.startValueBeforeProgressBarEvent=-1,e.rangeBetweenElementsBeforeProgressBarEvent=-1,e.totalRangeBeforeProgressBarEvent=-1,document.removeEventListener("mousemove",e.handleProgressBarMove),document.removeEventListener("mouseup",e.handleProgressBarMoveEnd),setTimeout((function(){e.movingProgressBar=!1}),150)}}var n;return n=e,e.prototype.ngOnInit=function(){this.setUserRangeMapValues()},e.prototype.ngOnChanges=function(e){var t=this,n=e.min&&!e.min.firstChange,o=e.max&&!e.max.firstChange;(n||o)&&(this.setUserRangeMapValues(),setTimeout((function(){t.setRangeValues()})))},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.setRangeValues()}))},e.prototype.onKeydown=function(e){if(this.focusActive&&!this.disabled){var t="ArrowLeft"===e.key,n="ArrowRight"===e.key;t?this.handleArrowKeyLeft():n&&this.handleArrowKeyRight()}},Object.defineProperty(e.prototype,"tooltipStartText",{get:function(){var e,t;return Array.isArray(this.value)?null===(e=this.value[0])||void 0===e?void 0:e.toString():null===(t=this.value)||void 0===t?void 0:t.toString()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipEndText",{get:function(){var e,t;return Array.isArray(this.value)?null===(e=this.value[1])||void 0===e?void 0:e.toString():null===(t=this.value)||void 0===t?void 0:t.toString()},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e,this.setRangeValues()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.onFocusIn=function(){this.focusActive=!0},e.prototype.onBlur=function(){this.focusActive=!1},e.prototype.onTrackClick=function(e){var t=this;if(!(this.disabled||this.movingProgressBar||this.activeMouseDown)){var n=this.getPercentageByEvent(e),o=this.getValueFromMapByValue(n),i=this.needParseValues?o:n,r=function(){var e=t.getValueFromMapByValue(t.endValue),i=t.needParseValues?t.mapRangeValuesForSlider.get(o):n;t.needParseValues&&e!==o?t.endValue=i:t.needParseValues||(t.endValue=n)};if(this.multiple){var a=fe(this.value,2),s=a[0],l=a[1],c=this.needParseValues?this.mapRangeValuesForSlider.get(s):s,p=this.needParseValues?this.mapRangeValuesForSlider.get(l):l,d=function(){!function(){var e=t.getValueFromMapByValue(t.startValue);if(t.needParseValues&&e!==o){var i=t.needParseValues?t.mapRangeValuesForSlider.get(o):n;t.startValue=i}else t.needParseValues||(t.startValue=n)}(),t.setValue([n,p])},u=function(){r(),t.setValue([c,n])},m=Ps(i,s,l);if(i<s)d();else if(i>l)u();else if(m){var h=(s+l)/2;if(i===h)d();else{var f=i>h;i<h?d():f&&u()}}}else this.setValue(n),r();this.setProgress()}},e.prototype.onProgressMouseDown=function(e){if(this.multiple&&!this.disabled){if(this.progressBarEventPositionStart=this.getPercentageByEvent(e),this.startValueBeforeProgressBarEvent=this.startValue,this.rangeBetweenElementsBeforeProgressBarEvent=this.endValue-this.startValue,this.multiple){var t=fe(this.value,2),n=t[0],o=t[1];this.totalRangeBeforeProgressBarEvent=o-n}document.addEventListener("mousemove",this.handleProgressBarMove),document.addEventListener("mouseup",this.handleProgressBarMoveEnd)}},e.prototype.onMouseDown=function(e,t){this.disabled||(this.draggingThumb=t,this.activeMouseDown=!0,document.addEventListener("mousemove",this.onThumbMove),document.addEventListener("mouseup",this.onMouseUp))},e.prototype.setRangeValues=function(){var e=this,t=function(t,n){e.startValue=e.getClosestValueFromMapSlider(t),e.endValue=e.getClosestValueFromMapSlider(n)};if(null!==this.value&&void 0!==this.value){if(Array.isArray(this.value)&&!this.multiple)throw new Error('You must use "multiple" with value as array');if(this.multiple&&Array.isArray(this.value)?(this.startValue=this.value[0],this.endValue=this.value[1]):this.multiple||(this.startValue=this.value,this.endValue=this.value),t(this.startValue,this.endValue),this.multiple){var n=fe(this.value,2),o=n[0],i=n[1],r=Bs(i,o),a=i>this.max,s=o<this.min,l=a||s;a?o=(i=this.max)-r:s&&(i=(o=this.min)+r),l&&(t(o,i),this.setValue([this.startValue,this.endValue]))}else{var c=this.value,p=c>this.max,d=c<this.min,u=p||d;p?c=this.max:d&&(c=this.min),u&&this.setValue(c,!1)}this.setProgress()}},e.prototype.setProgress=function(){this.multiple?(this.progressLeft=this.startValue,this.progressWidth="calc("+(this.endValue-this.startValue)+"% + 10px)"):(this.progressLeft=0,this.progressWidth="calc("+this.endValue+"% + 10px)")},e.prototype.getPercentageByEvent=function(e){var t=this.track.nativeElement.getBoundingClientRect(),n=Math.round((e.clientX-t.left)/t.width*this.MAX_RANGE_VALUE);return n=Math.max(0,Math.min(n,this.MAX_RANGE_VALUE))},e.prototype.setValue=function(e,t){var n=this;void 0===t&&(t=!0),this.disabled||(this.needParseValues&&t&&(e=Array.isArray(e)?e.map((function(e){return n.getValueFromMapByValue(e)})):this.getValueFromMapByValue(e)),this.value=e,this.valueChange.emit(e),this.writeValue(this.value),this.onChange(this.value),this.onTouched(this.value))},e.prototype.setUserRangeMapValues=function(){var e=this,t=this.min,n=this.max;if(t>n)throw new Error("Max value must be greater than min value");this.mapRangeValuesForSlider.clear();for(var o=n-t,i=Math.floor(o/this.step),r=[],a=t;a<=n;a+=this.step)r.push(a);r[r.length-1]!==n&&r.push(n);var s=r.map((function(n){var i=(n-t)/o*e.MAX_RANGE_VALUE;return parseFloat(i.toFixed(2))}));s[0]=0,s[s.length-1]=this.MAX_RANGE_VALUE;for(var l=(this.MAX_RANGE_VALUE-s[s.length-1])/i,c=1;c<s.length-1;c++)s[c]+=l,s[c]=parseFloat(s[c].toFixed(2));r.forEach((function(t,n){e.mapRangeValuesForSlider.set(t,s[n])}))},e.prototype.getValueFromMapByValue=function(e){var t=Array.from(this.mapRangeValuesForSlider).map((function(e){var t=fe(e,2);return{value:t[0],mapped:t[1]}})),n=t.find((function(t){return t.mapped==e})),o=t.reduce((function(t,n){return Math.abs(n.mapped-e)<Math.abs(t.mapped-e)?n:t}));return n?n.value:o.value},e.prototype.getClosestValueFromMapSlider=function(e){var t=Array.from(this.mapRangeValuesForSlider).map((function(e){var t=fe(e,2);return{value:t[0],mapped:t[1]}}));if(e>=this.max)return t[t.length-1].mapped;if(e<=this.min)return t[0].mapped;var n=t.find((function(t){return t.value==e})),o=t.reduce((function(t,n){return Math.abs(n.value-e)<Math.abs(t.value-e)?n:t})),i=n||o,r=t[0]===i,a=t[t.length-1]===i;return r&&e>this.min?Vs(i.mapped,t[1].mapped):a&&e<this.max?Vs(i.mapped,t[t.length-2].mapped):i.mapped},e.prototype.handleArrowKeyLeft=function(){this.multiple?this._incrementOrDecrementStartAndEndValue(!1):this._incrementOrDecrementEndValue(!1),this.setProgress()},e.prototype.handleArrowKeyRight=function(){this.multiple?this._incrementOrDecrementStartAndEndValue(!0):this._incrementOrDecrementEndValue(!0),this.setProgress()},e.prototype._incrementOrDecrementStartAndEndValue=function(e){var t=fe(this.value,2),n=t[0],o=t[1],i=Bs(o,n);e?(n+=this.step,o+=this.step):(n-=this.step,o-=this.step);var r=n<this.min,a=o>this.max;(r||a)&&(r?o=(n=this.min)+i:a&&(n=(o=this.max)-i)),n<this.min||o>this.max||(this.setValue([n,o],!1),this.needParseValues&&(n=this.getClosestValueFromMapSlider(n),o=this.getClosestValueFromMapSlider(o)),this.startValue=n,this.endValue=o)},e.prototype._incrementOrDecrementEndValue=function(e){var t=this.value;e?t+=this.step:t-=this.step;var n=t;this.needParseValues&&(n=this.getClosestValueFromMapSlider(n)),n<this.MIN_RANGE_VALUE||n>this.MAX_RANGE_VALUE||(this.endValue=n,this.startValue=this.endValue,this.setValue(n))},Object.defineProperty(e.prototype,"needParseValues",{get:function(){return this.max!==this.MAX_RANGE_VALUE||this.min!==this.MIN_RANGE_VALUE},enumerable:!0,configurable:!0}),pe([t.ViewChild("track")],e.prototype,"track",void 0),pe([t.Input()],e.prototype,"multiple",void 0),pe([t.Input()],e.prototype,"value",void 0),pe([t.Output()],e.prototype,"valueChange",void 0),pe([t.Input()],e.prototype,"step",void 0),pe([t.Input()],e.prototype,"hiddenThumb",void 0),pe([t.Input()],e.prototype,"disabled",void 0),pe([t.Input()],e.prototype,"min",void 0),pe([t.Input()],e.prototype,"max",void 0),pe([t.Input()],e.prototype,"minValueLabel",void 0),pe([t.Input()],e.prototype,"maxValueLabel",void 0),pe([t.Input()],e.prototype,"tabindex",void 0),pe([t.HostListener("document:keydown",["$event"])],e.prototype,"onKeydown",null),e=n=pe([t.Component({selector:"s-slider",template:'<div\n class="slider-container"\n [ngClass]="{ \'slider-container--disabled\': disabled }"\n [tabindex]="tabindex"\n (click)="onTrackClick($event)"\n (focus)="onFocusIn()"\n (blur)="onBlur()">\n <div\n #track\n class="slider-track"\n [ngClass]="{\n \'slider-track--hidden-thumb\': hiddenThumb,\n \'slider-track--moving-multiple-thumbs\': movingProgressBar\n }">\n <div\n class="slider-progress"\n (mousedown)="onProgressMouseDown($event)"\n [style.left.%]="progressLeft"\n [style.width]="progressWidth"\n ></div>\n <div\n *ngIf="multiple"\n class="slider-thumb"\n [sTooltip]="tooltipStartText"\n [showDelay]="0"\n (mousedown)="onMouseDown($event, \'start\')"\n [style.left.%]="startValue"\n ></div>\n <div\n [sTooltip]="tooltipEndText"\n class="slider-thumb"\n [showDelay]="0"\n (mousedown)="onMouseDown($event, \'end\')"\n [style.left.%]="endValue"></div>\n </div>\n <div class="footer">\n <span>{{ minValueLabel || min }}</span>\n <span>{{ maxValueLabel || max }}</span>\n </div>\n</div>\n',providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:['.slider-container{height:20px;padding:16px 0 40px;position:relative;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:100%}.slider-container .slider-track{background-color:#ddd;border-radius:3px;cursor:pointer;height:6px;position:relative;width:100%}.slider-container .slider-track .slider-progress{background-color:#428bca;border-radius:3px;cursor:pointer;height:100%;left:0;position:absolute;top:0;width:0}.slider-container .slider-track .slider-thumb{background-color:#fff;border:2px solid #428bca;border-radius:50%;cursor:pointer;height:20px;position:absolute;transform:translateY(-50%);top:50%;width:20px}.slider-container .slider-track .slider-thumb:active{box-shadow:0 0 0 4px #428BCA33}.slider-container .slider-track--hidden-thumb:not(:hover) .slider-thumb{opacity:0}.slider-container .slider-track--moving-multiple-thumbs .slider-thumb{box-shadow:0 0 0 4px #428BCA33}.slider-container .footer{color:#212533;display:-ms-flexbox;display:flex;font-family:"Open Sans",sans-serif;font-size:14px;-ms-flex-pack:justify;justify-content:space-between;margin-top:8px}.slider-container--disabled .slider-track{cursor:default}.slider-container--disabled .slider-track .slider-thumb{border-color:#a5a5b2;cursor:default}.slider-container--disabled .slider-track .slider-thumb:active{box-shadow:none}.slider-container--disabled .slider-track .slider-progress{background-color:#a5a5b2;cursor:default}.slider-container:focus-visible{outline:0}.slider-container:focus-visible .slider-thumb{box-shadow:0 0 0 4px #428BCA33}']})],e)}(),Ds=function(e,t,n,o){var i=o-(n-e);return{newStart:i,newEnd:i+(t-e)}},Ps=function(e,t,n){var o=fe(t<n?[t,n]:[n,t],2),i=o[0],r=o[1];return e>=i&&e<=r},Vs=function(e,t){return parseFloat(((e+t)/2).toFixed(2))},Bs=function(e,t){return Math.abs(e-t)},Ns=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Re],declarations:[As],exports:[As]})],e)}();(Es=e.SplitButtonType||(e.SplitButtonType={})).Primary="primary",Es.Secondary="secondary",Es.Default="default";var zs,Us=function(){function n(n){this.eRef=n,this.disabled=!1,this.type=e.SplitButtonType.Primary,this.buttonClicked=new t.EventEmitter,this.open=!1}return n.prototype.onClickout=function(e){this.eRef.nativeElement.contains(e.target)||this.closeDropdown()},n.prototype.onButtonClick=function(){this.disabled||(this.buttonClicked.emit(),this.closeDropdown())},n.prototype.onDropdownClick=function(){this.disabled||(this.open=!this.open)},n.prototype.onOptionClick=function(e){e.action&&e.action(),this.closeDropdown()},n.prototype.closeDropdown=function(){this.open=!1},n.ctorParameters=function(){return[{type:t.ElementRef}]},pe([t.Input()],n.prototype,"disabled",void 0),pe([t.Input()],n.prototype,"iconClass",void 0),pe([t.Input()],n.prototype,"label",void 0),pe([t.Input()],n.prototype,"type",void 0),pe([t.Input()],n.prototype,"options",void 0),pe([t.Output()],n.prototype,"buttonClicked",void 0),pe([t.HostListener("document:click",["$event"])],n.prototype,"onClickout",null),n=pe([t.Component({selector:"s-split-button",template:'<div class="split-button" [ngClass]="{\n \'split-button--primary\': type == \'primary\',\n \'split-button--secondary\': type == \'secondary\',\n \'split-button--default\': type == \'default\',\n \'split-button--disabled\': disabled\n }">\n <button class="button" (click)="onButtonClick()">\n <span class="button__icon" [ngClass]="iconClass"></span>\n <span class="button__label">{{ label }}</span>\n </button>\n <button class="dropdown" (click)="onDropdownClick()">\n <span class="dropdown__icon" [ngClass]="{\n \'far\': true,\n \'fa-chevron-down\': !open,\n \'fa-chevron-up\': open\n }">\n </span>\n </button>\n</div>\n\n<ul *ngIf="this.open" class="options">\n <li *ngFor="let option of options" (click)="onOptionClick(option)">\n {{ option.title }}\n </li>\n</ul>',styles:['.split-button{display:-ms-flexbox;display:flex;-webkit-user-select:none;-ms-user-select:none;user-select:none;max-height:35px}.split-button .button{-ms-flex-align:center;align-items:center;border:none;border-radius:4px 0 0 4px;display:-ms-flexbox;display:flex;padding:8px 8px 8px 12px;transition:.3s ease-in-out}.split-button .button__icon{font-size:16px;padding:0 4px}.split-button .button__title{font-family:"Open Sans",sans-serif;font-size:14px;font-weight:400;line-height:21px}.split-button .dropdown{-ms-flex-align:center;align-items:center;border:none;border-left:1px solid #608190;border-radius:0 4px 4px 0;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:12px 8px;transition:.3s ease-in-out}.split-button--disabled{opacity:.5}.split-button--primary .button,.split-button--primary .dropdown{background-color:#428bca;color:#fff}.split-button--primary:not(.split-button--primary--disabled) .button,.split-button--primary:not(.split-button--primary--disabled) .dropdown{cursor:pointer}.split-button--primary:not(.split-button--primary--disabled) .button:hover,.split-button--primary:not(.split-button--primary--disabled) .dropdown:hover{background-color:#063951}.split-button--secondary .button,.split-button--secondary .dropdown{background-color:#7892a1;color:#fff}.split-button--secondary:not(.split-button--secondary--disabled) .button,.split-button--secondary:not(.split-button--secondary--disabled) .dropdown{cursor:pointer}.split-button--secondary:not(.split-button--secondary--disabled) .button:hover,.split-button--secondary:not(.split-button--secondary--disabled) .dropdown:hover{background-color:#697882}.split-button--default .button,.split-button--default .dropdown{background-color:unset;border:1px solid #d8d8d8;color:#333}.split-button--default:not(.split-button--default--disabled) .button,.split-button--default:not(.split-button--default--disabled) .dropdown{cursor:pointer}.split-button--default:not(.split-button--default--disabled) .button:hover,.split-button--default:not(.split-button--default--disabled) .dropdown:hover{background-color:#d8d8d8}.options{background-color:#fff;border-radius:4px;box-shadow:0 1px 5px rgba(0,0,0,.25);display:inline-block;list-style:none;margin:2px 0;padding:8px 0;position:absolute;-webkit-user-select:none;-ms-user-select:none;user-select:none;z-index:10}.options li{color:#333;cursor:pointer;font-family:"Open Sans",sans-serif;font-weight:400;font-size:14px;line-height:21px;padding:8px 16px}.options li:hover{background-color:#d8d8d8}']})],n)}(),js=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[Us],exports:[Us]})],e)}(),Hs=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 m.BigNumber(this.ANIMATION_DURATION_MS),n=new m.BigNumber(this.STEP_DURATION_MS),o=t.dividedBy(n),i=new m.BigNumber(this.previousValue.replace(/\D/g,"")),r=new m.BigNumber(this.value.replace(/\D/g,"")),a=r.minus(i).absoluteValue().dividedBy(o),s=i.isLessThan(r);clearInterval(this.intervalId),this.displayValue=this.replaceNumericPositions(this.value);var l=i;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,""),o=(t?t.toString():"").toString().replace(/\D/g,"").padStart(n.length,"0"),i=0;return e.split("").map((function(e){return Number(e)||"0"===e?o[i++]:e})).join("")},e.nextId=0,pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"label",void 0),pe([t.Input()],e.prototype,"alwaysWithBorder",void 0),pe([t.Input()],e.prototype,"lightVersion",void 0),pe([t.Input()],e.prototype,"lightMode",void 0),pe([t.Input()],e.prototype,"iconClass",void 0),pe([t.Input()],e.prototype,"color",void 0),pe([t.Input()],e.prototype,"animateNumbers",void 0),pe([t.Input()],e.prototype,"clickable",void 0),pe([t.Input()],e.prototype,"value",null),pe([t.Input()],e.prototype,"tooltip",void 0),pe([t.Output()],e.prototype,"onClick",void 0),e=n=pe([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{-ms-flex-align:start;align-items:flex-start;color:#fff;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;float:left;height:50px;-ms-flex-pack:center;justify-content:center;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.s-stats-card--clickable:hover .s-stats-card-overlay{opacity:.2}s-stats-card .s-stats-card.s-stats-card--clickable.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),s-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)}(),$s=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Y.TooltipModule],declarations:[Hs],exports:[Hs]})],e)}();(zs=e.StepState||(e.StepState={})).Default="default",zs.Success="success",zs.Warning="warning";var Gs,qs,Ws=function(){function o(){this.id="s-steps-"+i.nextId++,this.activeIndex=0,this.stepSelected=new t.EventEmitter}var i;return i=o,o.prototype.stepClick=function(e,t,n){e.disabled||t==this.activeIndex||this.stepSelected.emit({step:e,index:t,event:n})},Object.defineProperty(o.prototype,"stepState",{get:function(){return e.StepState},enumerable:!0,configurable:!0}),o.prototype.barAnimation=function(e,t){return e<t||e===t},o.prototype.afterBarAnimation=function(e,t){return e<t||e===t-1},Object.defineProperty(o.prototype,"visibledStep",{get:function(){return this.steps.filter((function(e){return!e.hidden}))},enumerable:!0,configurable:!0}),o.nextId=0,pe([t.Input()],o.prototype,"id",void 0),pe([t.Input()],o.prototype,"steps",void 0),pe([t.Input()],o.prototype,"activeIndex",void 0),pe([t.Output()],o.prototype,"stepSelected",void 0),o=i=pe([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:[n.trigger("beforeActiveDesative",[n.state("active",n.style({"background-position":"left bottom"})),n.state("desactive",n.style({"background-position":"right bottom"})),n.transition("active => desactive",[n.animate("50ms 100ms linear")]),n.transition("desactive => active",[n.animate("50ms 250ms linear")])]),n.trigger("activeDesative",[n.state("active",n.style({"background-position":"left bottom"})),n.state("desactive",n.style({"background-position":"right bottom"})),n.transition("active => desactive",[n.animate("100ms 150ms linear")]),n.transition("desactive => active",[n.animate("100ms 150ms linear")])]),n.trigger("afterActiveDesative",[n.state("active",n.style({"background-position":"left bottom"})),n.state("desactive",n.style({"background-position":"right bottom"})),n.transition("active => desactive",[n.animate("50ms 250ms linear")]),n.transition("desactive => active",[n.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}}"]})],o)}(),Ys=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Y.TooltipModule],declarations:[Ws],exports:[Ws]})],e)}(),Ks=function(){function e(){this.selectable=!0,this.combineCheckboxEvent=!0,this.selectionChange=new t.EventEmitter,this.itemOpened=new t.EventEmitter,this._selection=[]}return Object.defineProperty(e.prototype,"selection",{set:function(e){this._selection=ge(e)},enumerable:!0,configurable:!0}),e.prototype.onItemOpened=function(e){this.itemOpened.emit(e)},e.prototype.onItemSelected=function(e){e.selected?this._selection.push(e.item):this._selection.splice(this._selection.findIndex((function(t){return t===e.item})),1),this.selectionChange.emit(this._selection)},e.prototype.isSelected=function(e){return this._selection.some((function(t){return t.id===e.id}))},pe([t.Input()],e.prototype,"items",void 0),pe([t.Input()],e.prototype,"selectable",void 0),pe([t.Input()],e.prototype,"combineCheckboxEvent",void 0),pe([t.Input()],e.prototype,"selection",null),pe([t.Output()],e.prototype,"selectionChange",void 0),pe([t.Output()],e.prototype,"itemOpened",void 0),e=pe([t.Component({selector:"s-thumbnails",template:'<div class="thumbnails">\n <s-thumbnail-item\n *ngFor="let item of items"\n [combineCheckboxEvent]="combineCheckboxEvent"\n [itemData]="item"\n [isCheckable]="selectable"\n [isChecked]="isSelected(item)"\n (checked)="onItemSelected($event)"\n (opened)="onItemOpened($event)">\n </s-thumbnail-item>\n</div>\n',styles:[".thumbnails{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:12px}"]})],e)}(),Zs=function(){function e(){this.isCheckable=!0,this.isChecked=!1,this.combineCheckboxEvent=!0,this.checked=new t.EventEmitter,this.opened=new t.EventEmitter}return e.prototype.ngOnInit=function(){this._validateItemData(),this._createFormGroup()},e.prototype.onClick=function(){this.opened.emit(this.itemData)},e.prototype.checkboxClick=function(e){this.combineCheckboxEvent||e.stopPropagation()},e.prototype._createFormGroup=function(){var e=this;this.checkboxFormGroup=new a.FormGroup({checkbox:new a.FormControl({checked:this.isChecked})}),this.checkboxFormGroup.get("checkbox").valueChanges.subscribe((function(t){e.checked.emit({item:e.itemData,selected:t.checked})}))},e.prototype._validateItemData=function(){if(Se(this.itemData))throw new Error("itemData is required")},pe([t.Input()],e.prototype,"itemData",void 0),pe([t.Input()],e.prototype,"isCheckable",void 0),pe([t.Input()],e.prototype,"isChecked",void 0),pe([t.Input()],e.prototype,"combineCheckboxEvent",void 0),pe([t.Output()],e.prototype,"checked",void 0),pe([t.Output()],e.prototype,"opened",void 0),e=pe([t.Component({selector:"s-thumbnail-item",template:'<button *ngIf="itemData" class="thumbnail-item" (click)="onClick()">\n <div class="thumbnail-item-content">\n <div class="content">\n <ng-container *ngIf="itemData.type === \'video\'">\n <s-thumbnail-item-video\n [imageUrl]="itemData.imageUrl"\n [videoUrl]="itemData.videoUrl">\n </s-thumbnail-item-video>\n </ng-container>\n <ng-container *ngIf="itemData.type === \'image\'">\n <s-thumbnail-item-image [imageUrl]="itemData.imageUrl"></s-thumbnail-item-image>\n </ng-container>\n <ng-container *ngIf="itemData.type === \'audio\'">\n <i class="icon fas fa-volume-down"></i>\n <span class="label">{{ "platform.angular_components.listen" | translate }}</span>\n </ng-container>\n <ng-container *ngIf="itemData.type === \'file\'">\n <i class="icon fas fa-file-alt"></i>\n <span class="label">{{ "platform.angular_components.view" | translate }}</span>\n </ng-container>\n </div>\n <form *ngIf="isCheckable" [formGroup]="checkboxFormGroup" class="checkbox">\n <s-checkbox [data]="{ label: \'\' }" formControlName="checkbox" (click)="checkboxClick($event)"></s-checkbox>\n </form>\n </div>\n <span class="file-name-label">{{ itemData.fileName }}</span>\n</button>\n',styles:['.thumbnail-item{-ms-flex-align:center;align-items:center;background:0 0;border:none;cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;overflow:hidden;width:100px}.thumbnail-item-content{-ms-flex-align:center;align-items:center;background-image:linear-gradient(to top right,#5288b6,#00c89a);border-radius:8px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100px;-ms-flex-pack:center;justify-content:center;position:relative;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:100%;overflow:hidden}.thumbnail-item-content .checkbox{position:absolute;right:8px;top:8px}.thumbnail-item-content .content{-ms-flex-align:center;align-items:center;color:#fff;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:4px;overflow:hidden;width:100%}.thumbnail-item-content .content .icon{font-size:24px}.thumbnail-item-content .content .label{font-size:12px;width:100%;padding:0 8px;overflow:hidden;text-overflow:ellipsis}.thumbnail-item:hover{transform:scale(1.05);transition:.2s ease-in-out}.thumbnail-item .file-name-label{color:#525966;font-family:"Open Sans",sans-serif;font-size:12px;overflow:hidden;text-align:center;text-overflow:ellipsis;text-wrap:nowrap;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:100%}']})],e)}(),Xs=function(){function e(){}return e.prototype.onMouseEnter=function(){var e;(null===(e=this.videoPlayer)||void 0===e?void 0:e.nativeElement)&&this.videoPlayer.nativeElement.play()},e.prototype.onMouseLeave=function(){var e;(null===(e=this.videoPlayer)||void 0===e?void 0:e.nativeElement)&&(this.videoPlayer.nativeElement.pause(),this.videoPlayer.nativeElement.currentTime=0)},pe([t.Input()],e.prototype,"imageUrl",void 0),pe([t.Input()],e.prototype,"videoUrl",void 0),pe([t.ViewChild("videoPlayer")],e.prototype,"videoPlayer",void 0),pe([t.HostListener("mouseenter")],e.prototype,"onMouseEnter",null),pe([t.HostListener("mouseleave")],e.prototype,"onMouseLeave",null),e=pe([t.Component({selector:"s-thumbnail-item-video",template:'<div class="thumbnail-item-video" [ngClass]="{ \'thumbnail-item-video--playable\': videoUrl }">\n <div\n class="thumbnail-image"\n [ngStyle]="{\'backgroundImage\': \'url(\' + imageUrl + \')\'}">\n </div>\n <div class="play-overlay">\n <i class="icon fas fa-play"></i>\n <span class="label">{{ "platform.angular_components.watch" | translate }}</span>\n </div>\n <video\n *ngIf="videoUrl"\n #videoPlayer\n class="thumbnail-video-preview"\n [src]="videoUrl"\n [loop]="true"\n [muted]="true"\n preload="none">\n </video>\n</div>\n',styles:[".thumbnail-item-video{cursor:pointer;height:100px;overflow:hidden;position:relative;width:100px}.thumbnail-item-video .thumbnail-image{background-repeat:no-repeat;background-size:cover;height:100%;width:100%}.thumbnail-item-video .thumbnail-video-preview{height:100%;left:0;width:100%;object-fit:cover;opacity:0;position:absolute;top:0;transition:opacity .3s ease-in-out}.thumbnail-item-video:hover .thumbnail-video-preview{opacity:1}.thumbnail-item-video .play-overlay{-ms-flex-align:center;align-items:center;color:#fff;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:8px;-ms-flex-pack:center;justify-content:center;left:50%;opacity:1;position:absolute;top:50%;transform:translate(-50%,-50%);transition:opacity .3s ease-in-out;width:100%;z-index:10}.thumbnail-item-video .play-overlay .icon{color:#fff;font-size:24px}.thumbnail-item-video .play-overlay .label{overflow:hidden;padding:0 8px;text-overflow:ellipsis;width:100%}.thumbnail-item-video--playable:hover .play-overlay{opacity:0}"]})],e)}(),Js=function(){function e(){}return pe([t.Input()],e.prototype,"imageUrl",void 0),e=pe([t.Component({selector:"s-thumbnail-item-image",template:'<div class="thumbnail-item-image">\n <div\n *ngIf="imageUrl; else noImage"\n class="thumbnail-image"\n [ngStyle]="{ backgroundImage: \'url(\' + imageUrl + \')\' }">\n </div>\n\n <ng-template #noImage>\n <div class="content">\n <i class="icon fas fa-image"></i>\n <span class="label">{{ "platform.angular_components.view" | translate }}</span>\n </div>\n </ng-template>\n</div>\n',styles:['.thumbnail-item-image{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:100px;-ms-flex-pack:center;justify-content:center;width:100px}.thumbnail-item-image .thumbnail-image{background-repeat:no-repeat;background-size:cover;height:100%;width:100%}.thumbnail-item-image .content{-ms-flex-align:center;align-items:center;color:#fff;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-family:"Open Sans",sans-serif;-ms-flex-pack:center;justify-content:center;width:100%}.thumbnail-item-image .content .icon{font-size:24px}.thumbnail-item-image .content .label{font-size:12px;overflow:hidden;padding:0 8px;text-overflow:ellipsis;width:100%}']})],e)}(),Qs=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.ReactiveFormsModule,b.TranslateModule,Ht],declarations:[Ks,Zs,Xs,Js],exports:[Ks]})],e)}(),el=function(){function e(){this.id="s-tile-"+n.nextId++,this.disabled=!1,this.tabIndex=0,this.useThumbnail=!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,pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"label",void 0),pe([t.Input()],e.prototype,"description",void 0),pe([t.Input()],e.prototype,"iconClass",void 0),pe([t.Input()],e.prototype,"imageSource",void 0),pe([t.Input()],e.prototype,"imageAlt",void 0),pe([t.Input()],e.prototype,"disabled",void 0),pe([t.Input()],e.prototype,"tabIndex",void 0),pe([t.Input()],e.prototype,"useThumbnail",void 0),pe([t.Output()],e.prototype,"onClick",void 0),pe([t.HostListener("keydown",["$event"])],e.prototype,"onKeyDown",null),e=n=pe([t.Component({selector:"s-tile",template:'<div\n [id]="id"\n class="tile"\n [attr.tabindex]="disabled ? undefined : tabIndex"\n [attr.aria-label]="label"\n [attr.aria-disabled]="disabled"\n role="button"\n [ngClass]="{ \'tile--disabled\': disabled }"\n (click)="!disabled && onClick.emit($event)">\n <div\n *ngIf="imageSource || iconClass"\n class="thumbnail">\n <ng-container *ngIf="imageSource">\n <div\n *ngIf="!useThumbnail"\n class="image-icon">\n <div\n class="icon"\n [style.background-image]="\'url(\' + imageSource + \')\'">\n </div>\n </div>\n <s-thumbnail\n *ngIf="useThumbnail"\n [id]="id + \'-thumbnail\'"\n [imageSource]="imageSource"\n [imageAlt]="imageAlt || label"\n size="small"\n [isTile]="true"\n >\n </s-thumbnail>\n </ng-container>\n\n <span\n *ngIf="!imageSource && iconClass"\n [id]="id + \'-icon\'"\n [class]="\'icon \' + iconClass"\n aria-hidden="true">\n </span>\n </div>\n <div\n *ngIf="!iconClass && !imageSource"\n class="first-letter-container">\n <div class="first-letter">\n <span>{{ initialLetter }}</span>\n </div>\n </div>\n\n <div class="info">\n <span\n [id]="id + \'-title\'"\n class="title"\n [sTooltip]="label"\n tooltipPosition="top"\n showDelay="500">\n {{ label }}\n </span>\n <span\n [id]="id + \'-description\'"\n class="description"\n [sTooltip]="description"\n tooltipPosition="top"\n showDelay="500">\n {{ description }}\n </span>\n </div>\n</div>\n',styles:[".tile{-ms-flex-align:center;align-items:center;background-color:#fff;border:1px solid #c1c1cc;cursor:pointer;display:-ms-flexbox;display:flex;min-height:80px;overflow:hidden;padding:15px;position:relative;transition:background-color .2s ease-out,border-color .2s ease-out}.tile:focus:not(.tile--disabled),.tile:hover:not(.tile--disabled){background-color:#eeebf2;outline:0}.tile .thumbnail{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-right:15px}.tile .thumbnail .icon{color:#428bca;font-size:2.5rem}.tile .info{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;overflow:hidden}.tile .info .description,.tile .info .title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tile .info .title{color:#428bca;font-size:1.25rem}.tile .info .description{color:#6e7280;font-size:.875rem}.tile .first-letter-container{float:left;margin-right:10px;position:relative;text-align:center}.tile .first-letter-container .first-letter{background-color:#428bca;border-radius:50%;color:#fff;font-size:1.375rem;height:40px;line-height:1.8em;margin:0 auto 5px;width:40px}.tile--disabled{opacity:.5;filter:Alpha(Opacity=50);background-image:none}.tile--disabled,.tile--disabled *{cursor:text!important}.tile .image-icon .icon{height:32px;width:32px;background-size:cover;background-repeat:no-repeat}"]})],e)}(),tl=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Re,Ar],declarations:[el],exports:[el,Ar]})],e)}(),nl=function(){function e(){this.highlightActiveItem=!0,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")},pe([t.Input()],e.prototype,"items",null),pe([t.Input()],e.prototype,"activeIndex",void 0),pe([t.Input()],e.prototype,"highlightActiveItem",void 0),pe([t.Input()],e.prototype,"direction",void 0),pe([t.Input()],e.prototype,"collapsable",void 0),pe([t.Input()],e.prototype,"counterLabel",void 0),pe([t.HostListener("window:resize",["$event"])],e.prototype,"onResize",null),e=pe([t.Component({selector:"s-timeline",template:'<div *ngIf="changeToVertical(); then vertical else horizontal"></div>\n\n<ng-template #horizontal>\n <s-horizontal-timeline *ngIf="items?.length"\n [items]="items"\n [activeIndex]="activeIndex"\n [highlightActiveItem]="highlightActiveItem">\n </s-horizontal-timeline>\n</ng-template>\n\n<ng-template #vertical>\n <s-vertical-timeline *ngIf="items?.length"\n [items]="items"\n [activeIndex]="activeIndex"\n highlightActiveItem="hi"\n [counterLabel]="counterLabel"\n [collapsable]="collapsable"\n [highlightActiveItem]="highlightActiveItem">\n </s-vertical-timeline>\n</ng-template>'})],e)}(),ol=function(){function e(){}return pe([t.Input()],e.prototype,"item",void 0),pe([t.Input()],e.prototype,"isActive",void 0),pe([t.Input()],e.prototype,"highlightActive",void 0),pe([t.Input()],e.prototype,"isComplete",void 0),e=pe([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 'timeline__icon-item--active--highlight': isActive && highlightActive\n }\">\n <div\n class=\"timeline__icon-item__icon\"\n [pTooltip]=\"item.tooltip\"\n tooltipPosition=\"top\"\n [ngStyle]=\"{ backgroundColor: item.color }\">\n <ng-content *ngIf=\"item.icon; then icon_content; else label_text_content\"></ng-content>\n <ng-template #icon_content>\n <span [ngClass]=\"item.icon\"></span>\n </ng-template>\n <ng-template #label_text_content>\n <span class=\"timeline__icon-item__icon__label\" [class.large_label]=\"item.label?.length > 2\">\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--normal .timeline__icon-item__icon .timeline__icon-item__icon__label.large_label{font-size:12px}.timeline__icon-item.timeline__icon-item--active--highlight .timeline__icon-item__icon{font-size:20px;height:40px;padding:10px;width:40px}.timeline__icon-item.timeline__icon-item--active--highlight .timeline__icon-item__icon .timeline__icon-item__icon__label{font-size:22px}.timeline__icon-item.timeline__icon-item--active--highlight .timeline__icon-item__icon .timeline__icon-item__icon__label.large_label{font-size:18px}.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)}(),il=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Y.TooltipModule],declarations:[ol],exports:[ol]})],e)}(),rl=function(){function e(){this.activeIndex=0}return pe([t.Input()],e.prototype,"items",void 0),pe([t.Input()],e.prototype,"activeIndex",void 0),pe([t.Input()],e.prototype,"highlightActiveItem",void 0),e=pe([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 [highlightActive]="highlightActiveItem">\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;line-clamp:4;-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--highlight .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)}(),al=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Y.TooltipModule,il],declarations:[rl],exports:[rl]})],e)}(),sl=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=this.activeIndex<=0?[]:[this.items[0]],this.g1Items=this.items.slice(1,this.activeIndex<0?0:this.activeIndex),this.activeItem=this.activeIndex>=0?[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,pe([t.Input()],e.prototype,"activeIndex",null),pe([t.Input()],e.prototype,"highlightActiveItem",void 0),pe([t.Input()],e.prototype,"items",void 0),pe([t.Input()],e.prototype,"counterLabel",void 0),pe([t.Input()],e.prototype,"collapsable",void 0),e=pe([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 [highlightActive]="highlightActiveItem"\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)}(),ll=function(){function e(){}return e=pe([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;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)}(),cl=function(){function e(){this.isCollapsed=!1,this.change=new t.EventEmitter}return e.prototype.onClick=function(){this.change.emit(!this.isCollapsed)},pe([t.Input()],e.prototype,"isCollapsed",void 0),pe([t.Output()],e.prototype,"change",void 0),e=pe([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)}(),pl=function(){function e(){this.isCollapsedChange=new t.EventEmitter}return e.prototype.onChange=function(e){this.isCollapsed=!this.isCollapsed,this.isCollapsedChange.emit(this.isCollapsed)},pe([t.Input()],e.prototype,"items",void 0),pe([t.Input()],e.prototype,"isCollapsed",void 0),pe([t.Input()],e.prototype,"isCompleted",void 0),pe([t.Input()],e.prototype,"counterLabel",void 0),pe([t.Output()],e.prototype,"isCollapsedChange",void 0),e=pe([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)}(),dl=function(){function e(){}return pe([t.Input()],e.prototype,"items",void 0),pe([t.Input()],e.prototype,"isLast",void 0),pe([t.Input()],e.prototype,"isActive",void 0),pe([t.Input()],e.prototype,"highlightActive",void 0),pe([t.Input()],e.prototype,"isCompleted",void 0),e=pe([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 [highlightActive]="highlightActive">\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)}(),ul=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,il],declarations:[sl,ll,cl,pl,dl],exports:[sl]})],e)}(),ml=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,il,al,ul],declarations:[nl],exports:[nl]})],e)}();(Gs=e.TimelineItemSeverity||(e.TimelineItemSeverity={})).Normal="normal",Gs.Warning="warning",Gs.Error="error",(qs=e.TimelineItemSize||(e.TimelineItemSize={})).Normal="normal",qs.Small="small";var hl,fl=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.color=t.color,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)>3)throw new Error("Label text is expected to be a maximum of three 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}(),gl=function(){function e(e,n){this.eRef=e,this.changeDetectorRef=n,this.footerButtonLabel="Adicionar",this.showFooterButton=!0,this.disabled=!1,this.footerButtonClicked=new t.EventEmitter,this.selected=new t.EventEmitter,this.height=0,this.selectedItemIndex=0,this.currentItemIndex=0,this._open=!1,this.tabindex=0}return Object.defineProperty(e.prototype,"open",{get:function(){return this._open},set:function(e){this._open=e,this.changeDetectorRef.detectChanges(),e&&this._calculateListMaxHeight()},enumerable:!0,configurable:!0}),e.prototype.onClickout=function(e){this.eRef.nativeElement.contains(e.target)||(this.open=!1)},e.prototype.onKeydown=function(e){if("Enter"===e.key||" "===e.key){if(this.open){if(this.workspaces[this.selectedItemIndex].disabled)return;this.selectedItemIndex=this.currentItemIndex,this.selected.emit(this.workspaces[this.selectedItemIndex])}this.open=!this.open}else"Escape"===e.key?this.open=!1:"ArrowDown"===e.key?this.currentItemIndex<this.workspaces.length-1&&(this.currentItemIndex++,this._scrollToCurrentItem()):"ArrowUp"===e.key&&this.currentItemIndex>0&&(this.currentItemIndex--,this._scrollToCurrentItem())},e.prototype.ngOnInit=function(){this.disabled&&(this.tabindex=-1)},e.prototype.validations=function(){if(!this.workspaces.length)throw new Error("Workspaces list is empty.")},e.prototype.buttonOnBlur=function(){this.open=!1,this.currentItemIndex=this.selectedItemIndex},e.prototype.onSelectItem=function(e){e.disabled||(this.open=!1,this.selectedItemIndex=this.workspaces.indexOf(e),this.currentItemIndex=this.selectedItemIndex,this.selected.emit(e))},e.prototype.onFooterButtonClick=function(){this.open=!1,this.footerButtonClicked.emit()},e.prototype._calculateListMaxHeight=function(){var e=this.eRef.nativeElement.querySelector("#workspace-list").getBoundingClientRect().top;this.height=window.innerHeight-e-20-(this.showFooterButton?64:0),this.changeDetectorRef.detectChanges()},e.prototype._scrollToCurrentItem=function(){var e=this.listItems.toArray()[this.currentItemIndex];e&&e.nativeElement.scrollIntoView({behavior:"smooth",block:"nearest"})},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},pe([t.Input()],e.prototype,"workspaces",void 0),pe([t.Input()],e.prototype,"footerButtonLabel",void 0),pe([t.Input()],e.prototype,"showFooterButton",void 0),pe([t.Input()],e.prototype,"disabled",void 0),pe([t.Output()],e.prototype,"footerButtonClicked",void 0),pe([t.Output()],e.prototype,"selected",void 0),pe([t.ViewChildren("listItem")],e.prototype,"listItems",void 0),pe([t.HostBinding("attr.tabindex")],e.prototype,"tabindex",void 0),pe([t.HostListener("document:click",["$event"])],e.prototype,"onClickout",null),pe([t.HostListener("keydown",["$event"])],e.prototype,"onKeydown",null),e=pe([t.Component({selector:"s-workspace-switch",template:'<div\n class="workspace-switch"\n [ngClass]="{ \'workspace-switch--disabled\': disabled }"\n (blur)="buttonOnBlur()">\n <div class="button" (click)="open = !open">\n <div class="item">\n <span class="title">{{ workspaces[selectedItemIndex].title }}</span>\n <span class="subtitle">{{ workspaces[selectedItemIndex].subtitle }}</span>\n </div>\n <div class="icons">\n <span class="fas fa-chevron-up"></span>\n <span class="fas fa-chevron-down"></span>\n </div>\n </div>\n <div *ngIf="!disabled && open" class="drop-panel">\n <ul\n id="workspace-list"\n class="workspace-list"\n [ngStyle]="{ \'max-height\': height + \'px\' }">\n <li\n #listItem\n *ngFor="let workspace of workspaces; let i = index"\n class="workspace"\n [ngClass]="{\n \'workspace--focused\': i == currentItemIndex && !workspace.disabled,\n \'workspace--disabled\': workspace.disabled\n }"\n (click)="onSelectItem(workspace)">\n <div class="item">\n <span class="title">{{ workspace.title }}</span>\n <span class="subtitle">{{ workspace.subtitle }}</span>\n </div>\n <span *ngIf="i === selectedItemIndex" class="active-icon fas fa-check"></span>\n </li>\n </ul>\n <div *ngIf="showFooterButton" class="footer">\n <div class="footer__button" (click)="onFooterButtonClick()">\n <span class="footer__button__icon fas fa-plus"></span>\n <span class="footer__button__title">{{ footerButtonLabel }}</span>\n </div>\n </div>\n </div>\n</div>',styles:['.workspace-switch{border-radius:4px;border:1px solid transparent;width:324px}.workspace-switch .button{-ms-flex-align:center;align-items:center;background-color:#fff;border:none;border-radius:3px;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:100%}.workspace-switch .button .icons{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;margin:0 12px}.workspace-switch .drop-panel{background-color:#fff;border-radius:4px;box-shadow:0 1px 5px rgba(0,0,0,.25);cursor:pointer;margin:20px 0;padding-top:4px;position:absolute;width:324px}.workspace-switch .drop-panel .workspace-list{list-style:none;overflow:auto;padding:0}.workspace-switch .drop-panel .workspace-list .workspace{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-webkit-user-select:none;-ms-user-select:none;user-select:none}.workspace-switch .drop-panel .workspace-list .workspace .active-icon{color:#7892a1;font-size:12px;margin:0 12px}.workspace-switch .drop-panel .workspace-list .workspace--focused{background-color:#f1f7f8}.workspace-switch .drop-panel .workspace-list .workspace--disabled .item .subtitle,.workspace-switch .drop-panel .workspace-list .workspace--disabled .item .title{color:#c1c1cc}.workspace-switch .drop-panel .workspace-list .workspace:hover:not(.workspace--disabled){background-color:#f1f7f8}.workspace-switch .drop-panel .footer{border-top:1px solid #ccc;padding:12px}.workspace-switch .drop-panel .footer .footer__button{-ms-flex-align:center;align-items:center;border:1px solid #d8d8d8;border-radius:4px;padding:8px 12px;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.workspace-switch .drop-panel .footer .footer__button .footer__button__icon{color:#333;margin-right:8px}.workspace-switch .drop-panel .footer .footer__button:active{border:1px solid #428bca}.workspace-switch .item{-ms-flex-align:start;align-items:flex-start;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;padding:12px}.workspace-switch .item .title{color:#333;font-family:"Open Sans",sans-serif;font-size:14px;font-weight:700;line-height:150%;text-transform:uppercase}.workspace-switch .item .subtitle{color:#999;font-family:"Open Sans",sans-serif;font-size:12px;font-weight:400;line-height:150%}.workspace-switch:focus{border:1px solid #428bca}.workspace-switch--disabled .button{cursor:default}.workspace-switch--disabled .button .icons,.workspace-switch--disabled .item .subtitle,.workspace-switch--disabled .item .title{color:#ccc}']})],e)}(),vl=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[gl],exports:[gl]})],e)}(),bl=function(){function e(){}return e.prototype.isBadgeConfiguration=function(e){return"Badge"===e.type},e.prototype.isTextConfiguration=function(e){return"Text"===e.type},e.prototype.isCurrencyConfiguration=function(e){return"Currency"===e.type},e.prototype.isNumberConfiguration=function(e){return"Number"===e.type},e.prototype.isDateConfiguration=function(e){return"Date"===e.type},pe([t.Input()],e.prototype,"configuration",void 0),e=pe([t.Component({selector:"s-label-value",template:'<div class="flex flex-col">\n <p class="font-bold">\n {{ configuration.title }}\n </p>\n\n <ng-container *ngIf="configuration.value; else emptyStateTemplate">\n <ng-container *ngIf="isTextConfiguration(configuration)">\n <span class="sds-readonly">\n {{ configuration.value }}\n </span>\n </ng-container>\n\n <ng-container *ngIf="isBadgeConfiguration(configuration)">\n \x3c!-- TODO: Container para organizar as badges. --\x3e\n <ng-container *ngFor="let badge of configuration.value">\n <s-badge\n [type]="badge.type"\n [color]="badge.color"\n [text]="badge.text"\n [iconClass]="badge.iconClass"\n [iconPosition]="badge.iconPosition"\n ></s-badge>\n </ng-container>\n </ng-container>\n\n <ng-container *ngIf="isCurrencyConfiguration(configuration)">\n <span class="sds-readonly">\n {{\n configuration.value | numeric: { numberFormatOptions: { style: "currency", currency: configuration.currency } } | async\n }}\n </span>\n </ng-container>\n\n <ng-container *ngIf="isNumberConfiguration(configuration)">\n <span class="sds-readonly">\n {{ configuration.value | localizedNumber | async }}\n </span>\n </ng-container>\n\n <ng-container *ngIf="isDateConfiguration(configuration)">\n <span class="sds-readonly">\n {{ configuration.value | localizedDate: configuration.format || "L" | async }}\n </span>\n </ng-container>\n </ng-container>\n</div>\n\n<ng-template #emptyStateTemplate>\n <span class="sds-empty-value">\n {{ "platform.angular_components.not_informed" | translate }}\n </span>\n</ng-template>\n',styles:[".flex{display:-ms-flexbox;display:flex}.flex-col{-ms-flex-direction:column;flex-direction:column}.font-bold{font-weight:700}"]})],e)}(),yl=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,b.TranslateModule,He,mt],providers:[u.CookieService],declarations:[bl],exports:[bl]})],e)}();(hl=e.PicklistTemplateTypes||(e.PicklistTemplateTypes={})).ItemToSelect="item-to-select",hl.SelectedItem="selected-item";var xl=function(){function n(e){this.cdr=e,this.itensToSelect=[],this.selectedItens=[],this.showCheckbox=!1,this.filterBy="",this.selectedItensChange=new t.EventEmitter,this.itensToSelectChange=new t.EventEmitter,this.availableItensFilter="",this.selectedItensFilter="",this.itensToSelectFilterUtil={rawItensToSelect:[],filteredItensToSelect:[]},this.selectedItensFilterUtil={rawSelectedItens:[],filteredSelectedItens:[]},this.selectedItensMap=new Set,this.itensToSelectId=Il("itensToSelect"),this.selectedItensId=Il("selectedItens")}return n.prototype.ngAfterViewInit=function(){var t,n;this.itemToSelectTemplate=null===(t=this.templates.find((function(t){return t.type===e.PicklistTemplateTypes.ItemToSelect})))||void 0===t?void 0:t.template,this.itemSelectedTemplate=null===(n=this.templates.find((function(t){return t.type===e.PicklistTemplateTypes.SelectedItem})))||void 0===n?void 0:n.template,this.itemToSelectTemplate||console.error("Missing template for "+e.PicklistTemplateTypes.ItemToSelect+" add this template using sTemplate directive."),this.itemSelectedTemplate||console.error("Missing template for "+e.PicklistTemplateTypes.SelectedItem+" add this template using sTemplate directive."),this.cdr.detectChanges()},n.prototype.ngOnChanges=function(e){e.itensToSelect&&e.itensToSelect.firstChange&&(this.itensToSelectFilterUtil={rawItensToSelect:this.itensToSelect,filteredItensToSelect:this.itensToSelect}),e.selectedItens&&e.selectedItens.firstChange&&(this.selectedItensFilterUtil={filteredSelectedItens:this.selectedItens,rawSelectedItens:this.selectedItens})},n.prototype.toggleSelected=function(e,t){e.disabled||(this.unselectedItensByListId(this.getOppositiveId(t)),e.selected=!e.selected,e.selected?this.selectedItensMap.add(e):this.selectedItensMap.delete(e),this.cdr.detectChanges())},n.prototype.remove=function(e){var t=this;void 0===e&&(e=!1);var n=Tl(e?this.selectedItensFilterUtil.rawSelectedItens:this.selectedItensMap);n.length&&(n.forEach((function(e){t.itensToSelect.push(e),e.selected=!1,t.selectedItensMap.delete(e)})),this.selectedItens=this.selectedItens.filter((function(e){return!n.includes(e)})),this.selectedItensFilterUtil.rawSelectedItens=this.selectedItens,this.filterSelectedItens(),this.filterItensToSelect(),this.emitData(),this.cdr.detectChanges())},n.prototype.add=function(e){var t=this;void 0===e&&(e=!1);var n=Tl(e?this.itensToSelectFilterUtil.rawItensToSelect:this.selectedItensMap);n.length&&(n.forEach((function(e){t.selectedItens.push(e),e.selected=!1,t.selectedItensMap.delete(e)})),this.itensToSelect=this.itensToSelect.filter((function(e){return!n.includes(e)})),this.itensToSelectFilterUtil.rawItensToSelect=this.itensToSelect,this.filterSelectedItens(),this.filterItensToSelect(),this.emitData(),this.cdr.detectChanges())},n.prototype.filterItensToSelect=function(){var e=this,t=this.availableItensFilter;t=t.trim(),this.itensToSelectFilterUtil.filteredItensToSelect=t?this.itensToSelectFilterUtil.rawItensToSelect.filter((function(n){return Cl(n.data[e.filterBy],t)})):this.itensToSelectFilterUtil.rawItensToSelect,this.cdr.detectChanges()},n.prototype.filterSelectedItens=function(){var e=this,t=this.selectedItensFilter;t=t.trim(),this.selectedItensFilterUtil.filteredSelectedItens=t?this.selectedItensFilterUtil.rawSelectedItens.filter((function(n){return Cl(n.data[e.filterBy],t)})):this.selectedItensFilterUtil.rawSelectedItens},n.prototype.drop=function(e){e.container!==e.previousContainer&&(e.previousContainer.id===this.selectedItensId?this.remove():this.add(),this.cdr.detectChanges())},n.prototype.onDragStart=function(e,t){this.unselectedItensByListId(this.getOppositiveId(t)),e.source.data.selected=!0,this.selectedItensMap.add(e.source.data),this.selectedItensMap.forEach((function(e){return e.invisible=!0})),this.cdr.detectChanges()},n.prototype.onDragRelease=function(){this.selectedItensMap.forEach((function(e){return e.invisible=!1}))},n.prototype.checkAllAvailableItensChange=function(e){this._checkAllSelectedItensChange(e,this.itensToSelectFilterUtil.filteredItensToSelect,this.itensToSelectId)},n.prototype.checkAllSelectedItensChange=function(e){this._checkAllSelectedItensChange(e,this.selectedItensFilterUtil.filteredSelectedItens,this.selectedItensId)},Object.defineProperty(n.prototype,"disableSelectedItensCheckbox",{get:function(){return 0===Tl(this.selectedItensFilterUtil.filteredSelectedItens).length},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"disableItensToSelectCheckbox",{get:function(){return 0===Tl(this.itensToSelectFilterUtil.filteredItensToSelect).length},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"itensToSelectAllSelected",{get:function(){return this._checkAllSelectedByList(this.itensToSelectFilterUtil.filteredItensToSelect)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selectedItensAllSelected",{get:function(){return this._checkAllSelectedByList(this.selectedItensFilterUtil.filteredSelectedItens)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"canAddItens",{get:function(){return this.itensToSelect.filter((function(e){return null==e?void 0:e.selected})).length>0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"canRemoveItens",{get:function(){return this.selectedItens.filter((function(e){return null==e?void 0:e.selected})).length>0},enumerable:!0,configurable:!0}),n.prototype._checkAllSelectedByList=function(e){var t=Tl(e);return!!t.length&&t.every((function(e){return e.selected}))},n.prototype._checkAllSelectedItensChange=function(e,t,n){var o=this;this.unselectedItensByListId(n===this.selectedItensId?this.itensToSelectId:this.selectedItensId),Tl(t).forEach((function(t){t.selected=e,o.selectedItensMap.add(t)})),this.cdr.detectChanges()},n.prototype.unselectedItensByListId=function(e){var t=this;this.getAllElementsByListId(e).forEach((function(e){e.selected=!1,t.selectedItensMap.delete(e)})),this.cdr.detectChanges()},n.prototype.getAllElementsByListId=function(e){return e===this.selectedItensId?this.selectedItensFilterUtil.rawSelectedItens:this.itensToSelectFilterUtil.rawItensToSelect},n.prototype.getOppositiveId=function(e){return e===this.selectedItensId?this.itensToSelectId:this.selectedItensId},n.prototype.emitData=function(){this.itensToSelectChange.emit(Fl(this.itensToSelect)),this.selectedItensChange.emit(Fl(this.selectedItens))},n.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},pe([t.Input()],n.prototype,"itensToSelect",void 0),pe([t.Input()],n.prototype,"selectedItens",void 0),pe([t.Input()],n.prototype,"availableItensLabel",void 0),pe([t.Input()],n.prototype,"availableItensPlaceholder",void 0),pe([t.Input()],n.prototype,"addSelectedItensLabel",void 0),pe([t.Input()],n.prototype,"addAllItensLabel",void 0),pe([t.Input()],n.prototype,"selectedItensLabel",void 0),pe([t.Input()],n.prototype,"selectedItensPlaceholder",void 0),pe([t.Input()],n.prototype,"removeSelectedItemsLabel",void 0),pe([t.Input()],n.prototype,"removeAllItemsLabel",void 0),pe([t.Input()],n.prototype,"showCheckbox",void 0),pe([t.Input()],n.prototype,"filterBy",void 0),pe([t.Output()],n.prototype,"selectedItensChange",void 0),pe([t.Output()],n.prototype,"itensToSelectChange",void 0),pe([t.ContentChildren(At)],n.prototype,"templates",void 0),n=pe([t.Component({selector:"s-picklist",template:'<ng-template #previewRender let-itens="itens" let-template="template">\n <section class="picklist-items">\n <ng-container *ngFor="let item of itens">\n <ng-container *ngTemplateOutlet="template; context: { item: item.data }"></ng-container>\n </ng-container>\n </section>\n</ng-template>\n\n<ng-template #picklistItensRender let-id="id" let-itens="itens" let-template="template" let-listConnectedTo="listConnectedTo">\n <div\n class="picklist-items"\n cdkDropList\n [id]="id"\n [cdkDropListSortingDisabled]="true"\n [cdkDropListData]="itens"\n [cdkDropListConnectedTo]="listConnectedTo"\n (cdkDropListDropped)="drop($event)">\n <div\n *ngFor="let item of itens"\n cdkDrag\n [cdkDragDisabled]="item.disabled"\n [cdkDragData]="item"\n (click)="toggleSelected(item, id)"\n (cdkDragStarted)="onDragStart($event, id)"\n (cdkDragReleased)="onDragRelease()"\n class="picklist-item"\n [class.picklist-disabled]="item.disabled"\n [class.picklist-item-invisible]="item.invisible"\n [class.picklist-item-active]="item.selected">\n <input\n type="checkbox"\n class="input-checkbox"\n [(ngModel)]="item.selected"\n [disabled]="item.disabled"\n *ngIf="showCheckbox">\n <div class="picklist-content">\n <ng-container *ngTemplateOutlet="template; context: { item: item.data, selected: item.selected, disabled: item.disabled }"></ng-container>\n </div>\n <ng-container *cdkDragPreview>\n <ng-container *ngTemplateOutlet="previewRender; context: { itens: selectedItensMap, template: template }"></ng-container>\n </ng-container>\n </div>\n</div>\n</ng-template>\n\n<ng-template #checkboxTitleRender let-disabled="disabled" let-checked="checked" let-changeFn="changeFn">\n <input\n *ngIf="showCheckbox"\n class="input-checkbox"\n type="checkbox"\n [disabled]="disabled"\n [checked]="checked"\n (change)="changeFn($event.target.checked)">\n</ng-template>\n\n<div class="picklist-container">\n <div class="picklist-item-container">\n <div class="picklist-box">\n <div class="picklist-title-container">\n <ng-container *ngIf="!filterBy">\n <ng-container *ngTemplateOutlet="checkboxTitleRender; context: { disabled: disableItensToSelectCheckbox, checked: itensToSelectAllSelected, changeFn: checkAllAvailableItensChange.bind(this) }"></ng-container>\n </ng-container>\n <span class="picklist-title">\n {{ availableItensLabel || \'platform.angular_components.available-items\' | translate }}\n </span>\n </div>\n <div class="picklist-filter" *ngIf="filterBy && showCheckbox">\n <ng-container *ngTemplateOutlet="checkboxTitleRender; context: { disabled: disableItensToSelectCheckbox, checked: itensToSelectAllSelected, changeFn: checkAllAvailableItensChange.bind(this) }"></ng-container>\n <input\n *ngIf="filterBy"\n type="text"\n class="input-search"\n [(ngModel)]="availableItensFilter"\n (ngModelChange)="filterItensToSelect()"\n [placeholder]="availableItensPlaceholder || \'platform.angular_components.picklist-placeholder\' | translate">\n </div>\n <ng-container *ngTemplateOutlet="picklistItensRender;\n context: {\n id: itensToSelectId,\n itens: itensToSelectFilterUtil.filteredItensToSelect,\n template: itemToSelectTemplate,\n listConnectedTo: selectedItensId\n }">\n </ng-container>\n </div>\n <div class="buttons-container">\n <s-button\n [label]="addSelectedItensLabel || \'platform.angular_components.add\' | translate"\n priority="primary"\n rightIconClass="fa fa-fw fa-arrow-right"\n [disabled]="!canAddItens"\n (onClick)="add()"\n [auxiliary]="false"\n [caret]="false">\n </s-button>\n <s-button\n [label]="addAllItensLabel || \'platform.angular_components.add_all\' | translate"\n priority="link"\n (onClick)="add(true)"\n [auxiliary]="false">\n </s-button>\n </div>\n </div>\n <div class="picklist-item-container">\n <div class="picklist-box">\n <div class="picklist-title-container">\n <ng-container *ngIf="!filterBy">\n <ng-container *ngTemplateOutlet="checkboxTitleRender; context: { disabled: disableSelectedItensCheckbox, checked: selectedItensAllSelected, changeFn: checkAllSelectedItensChange.bind(this) }"></ng-container>\n </ng-container>\n <span class="picklist-title">\n {{ selectedItensLabel || \'platform.angular_components.selected-items\' | translate }}\n </span>\n </div>\n <div class="picklist-filter" *ngIf="filterBy && showCheckbox">\n <ng-container *ngTemplateOutlet="checkboxTitleRender; context: { disabled: disableSelectedItensCheckbox, checked: selectedItensAllSelected, changeFn: checkAllSelectedItensChange.bind(this) }"></ng-container>\n <input\n *ngIf="filterBy"\n type="text"\n class="input-search"\n [(ngModel)]="selectedItensFilter"\n (ngModelChange)="filterSelectedItens()"\n [placeholder]="selectedItensPlaceholder || \'platform.angular_components.picklist-placeholder\' | translate">\n </div>\n <ng-container *ngTemplateOutlet="picklistItensRender;\n context: {\n id: selectedItensId,\n itens: selectedItensFilterUtil.filteredSelectedItens,\n template: itemSelectedTemplate,\n listConnectedTo: itensToSelectId\n }">\n\n </ng-container>\n </div>\n <div class="buttons-container">\n <s-button\n [label]="removeSelectedItemsLabel || \'platform.angular_components.remove\' | translate"\n priority="primary"\n iconClass="fa fa-fw fa-arrow-left"\n [disabled]="!canRemoveItens"\n [auxiliary]="false"\n (onClick)="remove()"\n [caret]="false">\n </s-button>\n <s-button\n [label]="removeAllItemsLabel || \'platform.angular_components.remove_all\' | translate"\n priority="link"\n (onClick)="remove(true)"\n [auxiliary]="false">\n </s-button>\n </div>\n </div>\n</div>\n',styles:[".picklist-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;border-radius:4px solid #dedce5;width:100%;background-color:#fff;gap:20px;padding:8px}.picklist-container .picklist-item-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1}.picklist-container .picklist-item-container .picklist-box{border:1px solid #dedce5;padding:8px;height:100%;min-width:200px}.picklist-container .picklist-item-container .picklist-box .picklist-filter{display:-ms-flexbox;display:flex;width:100%}.picklist-container .picklist-item-container .picklist-box .picklist-filter .input-search{border:1px solid #dedce5;min-height:35px;width:100%;border-radius:3px;margin-bottom:10px;margin-top:10px;padding:0 8px;-ms-flex:1;flex:1}.picklist-container .picklist-item-container .picklist-box .picklist-title-container{width:100%;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.picklist-container .picklist-item-container .picklist-box .picklist-title-container .picklist-title{font-family:Open Sans;font-size:14px;font-weight:700;line-height:21px;text-underline-position:from-font;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}.picklist-container .picklist-item-container .picklist-box .picklist-items{max-height:23em;overflow:auto;height:100%;min-height:55px}.picklist-container .picklist-item-container .picklist-box .picklist-items .picklist-content{width:100%;height:100%;padding-right:8px;border-radius:3px;margin-bottom:8px}.picklist-container .picklist-item-container .picklist-box .picklist-items .picklist-item{height:55px;border:3px;display:-ms-flexbox;display:flex}.picklist-container .picklist-item-container .picklist-box .picklist-items .picklist-item:not(.picklist-disabled){cursor:pointer}.picklist-container .picklist-item-container .picklist-box .picklist-items .picklist-item:hover:not(.picklist-disabled,.picklist-item-active,.picklist-item-invisible){background-color:#f1f7f8}.picklist-container .picklist-item-container .picklist-box .picklist-items .picklist-item-active:not(.picklist-item-invisible){background-color:#d5e8ec}.picklist-container .picklist-item-container .picklist-box .picklist-items .picklist-disabled{opacity:.5;background-color:#fbfafc}.picklist-container .picklist-item-container .picklist-box .picklist-items .picklist-item-invisible{display:none!important}.picklist-container .picklist-item-container .buttons-container{padding-top:10px;display:-ms-flexbox;display:flex}.picklist-container .picklist-item-container .input-checkbox{margin:12px}"]})],n)}(),_l=function(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()},wl=_l,Cl=function(e,t){return _l(e).includes(_l(t))},kl=Cl,Il=function(e){return void 0===e&&(e="id"),e+"-"+Math.random().toString(36).substring(2,9)+"-"+Date.now().toString(36)},Sl=Il,Tl=function(e){return(e instanceof Set?Array.from(e):e).filter((function(e){return!e.disabled}))},El=Tl,Ml=function(e){return e.map((function(e){return e.data}))},Ll=Ml,Fl=o.pipe(Tl,Ml),Ol=function(){function e(){}return e=pe([t.NgModule({declarations:[xl],imports:[r.CommonModule,b.TranslateModule,ne.DragDropModule,a.FormsModule,Ft],exports:[xl]})],e)}(),Rl=function(){function e(e){this.cdr=e,this.newItem="",this.value=[],this.placeholder="",this.inputId="chips-"+n._id++,this.allowDuplicated=!0,this.caseSensitiveDuplication=!1,this.addOnTab=!0,this.addOnBlur=!0,this.autofocus=!1,this.infoLabel="",this.showTooltip=!0,this.maxLengthRenderWithoutTooltip=20,this.onAdd=new t.EventEmitter,this.onRemove=new t.EventEmitter,this.onFocus=new t.EventEmitter,this.onBlur=new t.EventEmitter,this.onChipClick=new t.EventEmitter,this.valueChange=new t.EventEmitter,this.isTabEventActive=!1,this.onChange=function(){},this.onTouched=function(){}}var n;return n=e,e.prototype.ngAfterViewInit=function(){var e;this.autofocus&&this.input&&this.input.nativeElement.focus(),this.chipTemplate=null===(e=this.templates.find((function(e){return"chip-container"===e.type})))||void 0===e?void 0:e.template,this.cdr.detectChanges()},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.onKeydown=function(e){var t=this,n="Enter"===e.key,o=this.separator&&e.key===this.separator,i="Tab"===e.key;i&&(this.isTabEventActive=!0,setTimeout((function(){t.isTabEventActive=!1}),50));var r=this.addOnTab&&i;(n||o||r)&&(e.preventDefault(),this.addItem())},e.prototype.onInputFocus=function(e){this.onFocus.emit(e)},e.prototype.onInputLostFocus=function(e){this.addOnBlur&&!this.isTabEventActive&&(this.addItem(),this.onBlur.emit(e))},e.prototype.removeItem=function(e){var t=e.itemIndex,n=e.event,o=this.value[t];this.value.splice(t,1),this.onRemove.emit({value:o,originalEvent:n})},e.prototype.chipClicked=function(e){var t=e.event,n=e.data;this.onChipClick.emit({value:n,originalEvent:t})},e.prototype.addItem=function(){var e,t=this;if(!!this.newItem&&((!this.max||this.value.length!==this.max)&&(!this.maxLength||this.newItem.length<=this.maxLength))){var n=!!this.field,o=this.field?this.value.map((function(e){return e[t.field]})):this.value,i=n?((e={})[this.field]=this.newItem,e):this.newItem,r=o.find((function(e){return t.caseSensitiveDuplication?e===t.newItem:e.toLowerCase()===t.newItem.toLowerCase()})),a=!1;this.allowDuplicated||(a=!!r&&Boolean(r)),a||this.storeValue(i),this.newItem=""}},e.prototype.storeValue=function(e){this.value=ge(this.value,[e]),this.onAdd.emit({value:e}),this.valueChange.emit(this.value),this.writeValue(this.value),this.onChange(this.value),this.onTouched(this.value)},e._id=0,e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},pe([t.Input()],e.prototype,"disabled",void 0),pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"value",void 0),pe([t.Input()],e.prototype,"placeholder",void 0),pe([t.Input()],e.prototype,"max",void 0),pe([t.Input()],e.prototype,"maxLength",void 0),pe([t.Input()],e.prototype,"inputId",void 0),pe([t.Input()],e.prototype,"allowDuplicated",void 0),pe([t.Input()],e.prototype,"caseSensitiveDuplication",void 0),pe([t.Input()],e.prototype,"addOnTab",void 0),pe([t.Input()],e.prototype,"addOnBlur",void 0),pe([t.Input()],e.prototype,"separator",void 0),pe([t.Input()],e.prototype,"autofocus",void 0),pe([t.Input()],e.prototype,"infoLabel",void 0),pe([t.Input()],e.prototype,"keyFilter",void 0),pe([t.Input()],e.prototype,"showTooltip",void 0),pe([t.Input()],e.prototype,"maxLengthRenderWithoutTooltip",void 0),pe([t.Output()],e.prototype,"onAdd",void 0),pe([t.Output()],e.prototype,"onRemove",void 0),pe([t.Output()],e.prototype,"onFocus",void 0),pe([t.Output()],e.prototype,"onBlur",void 0),pe([t.Output()],e.prototype,"onChipClick",void 0),pe([t.Output()],e.prototype,"valueChange",void 0),pe([t.ContentChildren(At)],e.prototype,"templates",void 0),pe([t.ViewChild("input",{read:t.ElementRef})],e.prototype,"input",void 0),pe([t.HostListener("document:keydown",["$event"]),Ts()],e.prototype,"onKeydown",null),pe([Ts()],e.prototype,"onInputLostFocus",null),e=n=pe([t.Component({selector:"s-chips",template:'<ul class="chips-container">\n <li *ngFor="let item of value; let index = index">\n <s-chip-item\n [templateRef]="chipTemplate"\n [dataRender]="item"\n [objectField]="field"\n [itemIndex]="index"\n [disabled]="disabled"\n [showTooltip]="showTooltip"\n [maxLengthRenderWithoutTooltip]="maxLengthRenderWithoutTooltip"\n (clickRemove)="removeItem($event)"\n (chipClicked)="chipClicked($event)">\n </s-chip-item>\n </li>\n <ng-container *ngIf="keyFilter">\n <input\n #input\n [disabled]="disabled || max === value?.length"\n [placeholder]="placeholder"\n [maxlength]="maxLength"\n [id]="inputId"\n [(ngModel)]="newItem"\n [pKeyFilter]="keyFilter"\n (focus)="onInputFocus($event)"\n (blur)="onInputLostFocus($event)">\n </ng-container>\n <ng-container *ngIf="!keyFilter">\n <input\n #input\n [disabled]="disabled || max === value?.length"\n [placeholder]="placeholder"\n [maxlength]="maxLength"\n [id]="inputId"\n [(ngModel)]="newItem"\n (focus)="onInputFocus($event)"\n (blur)="onInputLostFocus($event)">\n </ng-container>\n</ul>\n<ng-container *ngIf="infoLabel">\n <span class="info-label">\n {{ infoLabel }}\n </span>\n</ng-container>\n',providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:[".chips-container{width:100%;padding:8px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;border-radius:3px;border:1px solid #c1c1cc;background-color:#fff;list-style:none;gap:8px}.chips-container input{background-color:#fff;width:100%;border:none;min-height:2em;min-width:15%;-ms-flex:1;flex:1}.chips-container input:focus-visible{outline:0}.info-label{color:#888b99;font-size:12px;font-style:normal;font-weight:400}"]})],e)}(),Al=function(){function e(){this.disabled=!1,this.itemIndex=-1,this.showTooltip=!0,this.maxLengthRenderWithoutTooltip=20,this.clickRemove=new t.EventEmitter,this.chipClicked=new t.EventEmitter}return e.prototype.clickedRemove=function(e){this.clickRemove.emit({index:this.itemIndex,event:e})},e.prototype.onChipClicked=function(e){this.chipClicked.emit({event:e,data:this.dataRender})},Object.defineProperty(e.prototype,"_text",{get:function(){var e=this._rawText;return e.substring(0,e.length>this.maxLengthRenderWithoutTooltip?this.maxLengthRenderWithoutTooltip:e.length)+(e.length>this.maxLengthRenderWithoutTooltip?"...":"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_rawText",{get:function(){return this.objectField?this.dataRender[this.objectField]||"":this.dataRender||""},enumerable:!0,configurable:!0}),pe([t.Input()],e.prototype,"dataRender",void 0),pe([t.Input()],e.prototype,"objectField",void 0),pe([t.Input()],e.prototype,"disabled",void 0),pe([t.Input()],e.prototype,"templateRef",void 0),pe([t.Input()],e.prototype,"itemIndex",void 0),pe([t.Input()],e.prototype,"showTooltip",void 0),pe([t.Input()],e.prototype,"maxLengthRenderWithoutTooltip",void 0),pe([t.Output()],e.prototype,"clickRemove",void 0),pe([t.Output()],e.prototype,"chipClicked",void 0),pe([Ts()],e.prototype,"clickedRemove",null),pe([Ts()],e.prototype,"onChipClicked",null),e=pe([t.Component({selector:"s-chip-item",template:'<ng-template #itemRender>\n <div\n class="chip-item"\n [class.chip-item-disabled]="disabled"\n (click)="onChipClicked($event)"\n [sTooltip]="_rawText"\n [showDelay]="0"\n [visible]="showTooltip ? _rawText.length > maxLengthRenderWithoutTooltip : false">\n <ng-container *ngIf="templateRef">\n <ng-container *ngTemplateOutlet="templateRef; context: { $implicit: dataRender, text: _text }"></ng-container>\n </ng-container>\n <ng-container *ngIf="!templateRef">\n {{ _text }}\n </ng-container>\n <i class="fas fa-times" (click)="clickedRemove($event)"></i>\n </div>\n</ng-template>\n\n\n<ng-container *ngIf="objectField && !templateRef">\n <ng-container *ngTemplateOutlet="itemRender;"></ng-container>\n</ng-container>\n\n<ng-container *ngIf="!objectField && !templateRef">\n <ng-container *ngTemplateOutlet="itemRender;"></ng-container>\n</ng-container>\n\n<ng-container *ngIf="templateRef">\n <ng-container *ngTemplateOutlet="itemRender"></ng-container>\n</ng-container>\n',styles:[".chip-item{border-radius:4px;border:1px solid #888b99;background-color:#eeebf2;word-break:break-word;font-size:12px;font-weight:400;text-align:center;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px;padding:0 8px}.chip-item i{cursor:pointer}.chip-item:hover:not(.chip-item-disabled){background:#c1c1cc}.chip-item-disabled{opacity:.5}.chip-item-disabled i{cursor:default}"]})],e)}(),Dl=function(){function e(){}return e=pe([t.NgModule({declarations:[Rl,Al],imports:[r.CommonModule,a.FormsModule,Re,j.KeyFilterModule],exports:[Rl]})],e)}(),Pl=function(){function e(){this.VALID_POSITIONS=["top","bottom","left","right"],this.VALID_ARROW_POSITIONS=["beginning","end","middle"],this._position="bottom",this.popoverContent=null,this.closeButton=!0,this.icon="",this.header="",this.footer="",this.button="",this.visible=!1,this.arrowElement=null,this._arrowPosition="beginning",this.closed=new o.Subject}return Object.defineProperty(e.prototype,"position",{get:function(){return this._position},set:function(e){if(!this.VALID_POSITIONS.includes(e))throw new Error("Invalid position: "+e+". Valid positions: "+this.VALID_POSITIONS);this._position=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arrowPosition",{get:function(){return this._arrowPosition},set:function(e){if(!this.VALID_ARROW_POSITIONS.includes(e))throw new Error("Invalid arrow position: "+e+". Valid arrow positions: "+this.VALID_ARROW_POSITIONS);this._arrowPosition=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentIsString",{get:function(){return"string"==typeof this.popoverContent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasHeaderContainer",{get:function(){var e=this.hasHeaderText,t=this.hasIcon,n=this.closeButton;return e||t||n},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasFooter",{get:function(){var e=this.hasFooterText,t=this.button&&this.button.length>0;return e||t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasHeaderText",{get:function(){return this.header&&this.header.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasFooterText",{get:function(){return this.footer&&this.footer.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasIcon",{get:function(){return this.icon&&this.icon.length>0},enumerable:!0,configurable:!0}),e.prototype.close=function(){this.closed.next()},e.prototype.clickButton=function(){this.buttonClicked.emit()},e.prototype.ngOnDestroy=function(){this.closed.complete()},pe([t.ViewChild("arrowElement",{read:t.ElementRef,static:!0})],e.prototype,"arrowElement",void 0),e=pe([t.Component({selector:"s-help-popover",template:'<div\n class="popover-container"\n [style.visibility]="visible ? \'visible\' : \'hidden\'"\n [class.popover-container-top]="position === \'top\'"\n [class.popover-container-right]="position === \'right\'"\n [class.popover-container-bottom]="position === \'bottom\'"\n [class.popover-container-left]="position === \'left\'">\n\n <div\n class="arrow-container"\n [class.arrow-container-beginning]="arrowPosition === \'beginning\'"\n [class.arrow-container-middle]="arrowPosition === \'middle\'"\n [class.arrow-container-end]="arrowPosition === \'end\'">\n <div\n class="arrow" #arrowElement>\n </div>\n </div>\n <div class="popover">\n <div\n class="popover-header-container"\n [class.space-between]="hasIcon || hasHeaderText"\n [class.flex-end]="!(hasIcon || hasHeaderText) && closeButton"\n *ngIf="hasHeaderContainer">\n <div class="popover-header-container-text" *ngIf="hasIcon || hasHeaderText">\n <div class="popover-icon" *ngIf="hasIcon">\n <i [class]="icon"></i>\n </div>\n <div class="popover-header-text" *ngIf="hasHeaderText">\n {{ header }}\n </div>\n </div>\n <div class="popover-close-button" *ngIf="closeButton">\n <i class="fas fa-times" (click)="close()"></i>\n </div>\n </div>\n\n <div class="popover-content">\n <ng-container *ngIf="contentIsString">\n {{ popoverContent }}\n </ng-container>\n <ng-container *ngIf="!contentIsString">\n <ng-container *ngTemplateOutlet="popoverContent"></ng-container>\n </ng-container>\n </div>\n\n <div class="separator" *ngIf="hasFooter"></div>\n\n <div class="popover-footer-container" *ngIf="hasFooter" [class.space-between]="hasFooterText" [class.flex-end]="!hasFooterText">\n <p class="popover-footer-text" *ngIf="hasFooterText">\n {{ footer }}\n </p>\n <div class="popover-footer-button" *ngIf="button && button.length > 0">\n <s-button\n [label]="button"\n priority="primary"\n size="small"\n (onClick)="clickButton()"\n [disabled]="false"\n [auxiliary]="false">\n </s-button>\n </div>\n </div>\n </div>\n</div>\n',styles:[':host{display:block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.popover-container{z-index:1050;position:relative}.popover-container .space-between{-ms-flex-pack:justify;justify-content:space-between}.popover-container .flex-end{-ms-flex-pack:end;justify-content:flex-end}.popover-container-top{display:-ms-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.popover-container-top .arrow{width:0;height:0;position:relative;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid #fff;border-bottom:0 solid transparent}.popover-container-bottom .arrow{width:0;height:0;position:relative;border-left:10px solid transparent;border-right:10px solid transparent;border-bottom:10px solid #fff;border-top:0 solid transparent}.popover-container-left{display:-ms-flexbox;display:flex;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex-align:center;align-items:center}.popover-container-left .arrow{width:0;height:0;position:relative;border-top:10px solid transparent;border-bottom:10px solid transparent;border-left:10px solid #fff;border-right:0 solid transparent}.popover-container-right{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.popover-container-right .arrow{width:0;height:0;position:relative;border-top:10px solid transparent;border-bottom:10px solid transparent;border-right:10px solid #fff;border-left:0 solid transparent}.popover-container-bottom .arrow-container,.popover-container-top .arrow-container{display:-ms-flexbox;display:flex}.popover-container-bottom .arrow-container-beginning,.popover-container-top .arrow-container-beginning{-ms-flex-pack:start;justify-content:flex-start}.popover-container-bottom .arrow-container-beginning .arrow,.popover-container-top .arrow-container-beginning .arrow{margin-left:12px}.popover-container-bottom .arrow-container-middle,.popover-container-top .arrow-container-middle{-ms-flex-pack:center;justify-content:center}.popover-container-bottom .arrow-container-end,.popover-container-top .arrow-container-end{-ms-flex-pack:end;justify-content:flex-end}.popover-container-bottom .arrow-container-end .arrow,.popover-container-top .arrow-container-end .arrow{margin-right:12px}.popover-container-left .arrow-container,.popover-container-right .arrow-container{display:-ms-flexbox;display:flex;-ms-flex-item-align:stretch;align-self:stretch}.popover-container-left .arrow-container-beginning,.popover-container-right .arrow-container-beginning{-ms-flex-align:start;align-items:flex-start}.popover-container-left .arrow-container-beginning .arrow,.popover-container-right .arrow-container-beginning .arrow{margin-top:12px}.popover-container-left .arrow-container-middle,.popover-container-right .arrow-container-middle{-ms-flex-align:center;align-items:center}.popover-container-left .arrow-container-end,.popover-container-right .arrow-container-end{-ms-flex-align:end;align-items:flex-end}.popover-container-left .arrow-container-end .arrow,.popover-container-right .arrow-container-end .arrow{margin-bottom:12px}.popover-container .popover{min-width:200px;max-width:305px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border-radius:3px;background:#fff;box-shadow:0 1px 5px 0 rgba(0,0,0,.25)}.popover-container .popover-content,.popover-container .popover-footer-container,.popover-container .popover-header-container{padding:8px}.popover-container .popover-close-button i{cursor:pointer}.popover-container .popover-footer-text{color:#212533;font-family:"Open Sans";font-size:12px;font-style:normal;font-weight:400}.popover-container .popover-header-container{display:-ms-flexbox;display:flex}.popover-container .popover-header-container-text{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;gap:8px}.popover-container .popover .separator{width:100%;border:1px solid #dedce5}.popover-container .popover-footer-container{display:-ms-flexbox;display:flex;gap:8px;-ms-flex-align:center;align-items:center}']})],e)}(),Vl=function(){function e(e,n,i,r){var a=this;this.element=e,this.injector=n,this.componentFactoryResolver=i,this.appRef=r,this.MUTATION_OBSERVER_CONFIG={attributes:!0,childList:!0,subtree:!0},this.OBSERVER_CALLBACK=function(){a.componentRef&&a.applyPositionIntoElement()},this.RESIZE_OBSERVER=function(){a.onResize$.next()},this.sHelpPopover=null,this.closeButton=!0,this.popoverIcon="",this.popoverHeader="",this.popoverFooter="",this.popoverButtonText="",this.popoverArrowPosition="beginning",this._popoverPosition="bottom",this.buttonClicked=new t.EventEmitter,this.onDestroy$=new o.Subject,this.componentRef=null,this.mutationObserverPopoverElement=null,this.mutationObserverPopoverContent=null,this.internalPosition="bottom",this.onResize$=new o.Subject,this.manualTrigger=!1,this.listener=function(e){var t=a.componentRef.location.nativeElement.getBoundingClientRect();Te(e,t)&&a.destroy()}}return Object.defineProperty(e.prototype,"popoverPosition",{get:function(){return this._popoverPosition},set:function(e){this._popoverPosition=e,this.internalPosition=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=new MutationObserver(this.OBSERVER_CALLBACK);this.mutationObserverPopoverElement=e,e.observe(this.element.nativeElement,this.MUTATION_OBSERVER_CONFIG),window.addEventListener("resize",this.RESIZE_OBSERVER),window.addEventListener("scrollend",this.OBSERVER_CALLBACK),this.onResize$.pipe(i.takeUntil(this.onDestroy$),i.debounceTime(100)).subscribe(this.OBSERVER_CALLBACK)},e.prototype.show=function(){this.manualTrigger=!0,this._createComponent()},e.prototype.doClick=function(){this.manualTrigger||this._createComponent()},e.prototype.ngOnDestroy=function(){this.onDestroy$.next(),this.onDestroy$.complete(),this.destroy(),this.mutationObserverPopoverElement&&this.mutationObserverPopoverElement.disconnect(),window.removeEventListener("resize",this.RESIZE_OBSERVER),window.removeEventListener("scrollend",this.OBSERVER_CALLBACK)},e.prototype._createComponent=function(){var e=this;if(this.sHelpPopover){this.componentRef&&this.destroy();var t=this.componentFactoryResolver.resolveComponentFactory(Pl).create(this.injector);this.componentRef=t,this.mutationObserverPopoverContent&&this.mutationObserverPopoverContent.disconnect(),this.mutationObserverPopoverContent=new MutationObserver(this.OBSERVER_CALLBACK),this.mutationObserverPopoverContent.observe(this.componentRef.location.nativeElement.querySelector(".popover-content"),this.MUTATION_OBSERVER_CONFIG),document.body.appendChild(t.location.nativeElement),this.appRef.attachView(t.hostView),setTimeout((function(){document.addEventListener("click",e.listener)}));var n=t.instance;n.popoverContent=this.sHelpPopover,n.closeButton=this.closeButton,n.icon=this.popoverIcon,n.header=this.popoverHeader,n.footer=this.popoverFooter,n.button=this.popoverButtonText,n.position=this.internalPosition,n.arrowPosition=this.popoverArrowPosition,n.buttonClicked=this.buttonClicked,n.closed.pipe(i.takeUntil(this.onDestroy$)).subscribe((function(){e.destroy()})),this.applyPositionIntoElement()}},e.prototype.destroy=function(){document.removeEventListener("click",this.listener),this.componentRef&&(this.componentRef.destroy(),this.componentRef=null),this.internalPosition=this.popoverPosition,this.mutationObserverPopoverContent&&this.mutationObserverPopoverContent.disconnect()},e.prototype.applyPositionIntoElement=function(){var e=this,t=Ee(this.element.nativeElement),n=this.validPosition;this.internalPosition=n,this.popoverComponentInstance.position=this.internalPosition,setTimeout((function(){switch(e.internalPosition){case"bottom":e.applyPopoverPositionBottom(t);break;case"top":e.applyPopoverPositionTop(t);break;case"left":e.applyPopoverPositionLeft(t);break;case"right":e.applyPopoverPositionRight(t)}e.popoverComponentInstance.visible=!0}))},e.prototype.applyPopoverPositionBottom=function(e){var t=this.getPopoverElement,n=this.getHorizontalLeft(e);t.style.position="absolute",t.style.left=n+"px",t.style.top="calc("+e.top+"px + "+e.elementHeight+"px)"},e.prototype.applyPopoverPositionTop=function(e){var t=this.getPopoverElement,n=this.getHorizontalLeft(e),o=t.getBoundingClientRect().height;t.style.position="absolute",t.style.left=n+"px",t.style.top="calc("+e.top+"px - "+o+"px)"},e.prototype.applyPopoverPositionLeft=function(e){var t=this.getPopoverElement,n=t.getBoundingClientRect().width;t.style.position="absolute",t.style.left="calc("+e.right+"px - "+(n+e.elementWidth)+"px)",t.style.top=this.getVerticalTop(e)},e.prototype.applyPopoverPositionRight=function(e){var t=this.getPopoverElement;t.style.position="absolute",t.style.left="calc("+e.right+"px)",t.style.top=this.getVerticalTop(e)},e.prototype.getHorizontalLeft=function(e){var t=this.getPopoverElement.getBoundingClientRect().width,n=e.left;return"end"===this.popoverArrowPosition?n=e.right-t:"middle"===this.popoverArrowPosition&&(n=e.left+e.elementWidth/2-t/2),n},e.prototype.getVerticalTop=function(e){var t=Ee(this.componentRef.instance.arrowElement.nativeElement),n=Ee(this.componentRef.location.nativeElement),o=this.getPopoverElement.getBoundingClientRect().height,i="calc("+e.top+"px - "+o/2+"px + "+e.elementHeight/2+"px)",r=t.elementHeight/2;if("beginning"===this.popoverArrowPosition){var a=t.top-n.top;i="calc("+e.top+"px + "+e.elementHeight/2+"px - "+(a+r)+"px)"}else if("end"===this.popoverArrowPosition){var s=n.top+n.elementHeight-(t.top+t.elementHeight);i="calc("+e.top+"px - "+n.elementHeight+"px + "+e.elementHeight/2+"px + "+(s+r)+"px)"}return i},e.prototype.getLeftoverContentAvailableForPopover=function(){return Me(this.element.nativeElement)},Object.defineProperty(e.prototype,"getPopoverElement",{get:function(){return this.componentRef.location.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popoverComponentInstance",{get:function(){return this.componentRef.instance},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validPosition",{get:function(){var e,t=this.getLeftoverContentAvailableForPopover(),n=t.freeDistanceToBottom,o=t.freeDistanceToTop,i=t.freeDistanceToLeft,r=t.freeDistanceToRight,a=Ee(this.componentRef.location.nativeElement),s=a.elementWidth,l=a.elementHeight,c=n-l,p=o-l,d=p>0,u=i-s>0,m=r-s>0;if(c>0&&"bottom"===this.popoverPosition?e="bottom":d&&"top"===this.popoverPosition?e="top":u&&"left"===this.popoverPosition?e="left":m&&"right"===this.popoverPosition&&(e="right"),!e){var h=[{position:"bottom",freeDistance:c},{position:"top",freeDistance:p}].filter((function(e){return e.freeDistance>0}));return 0===h.length?this.popoverPosition:h.sort((function(e,t){return t.freeDistance-e.freeDistance}))[0].position}return this.popoverPosition},enumerable:!0,configurable:!0}),e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Injector},{type:t.ComponentFactoryResolver},{type:t.ApplicationRef}]},pe([t.Input()],e.prototype,"sHelpPopover",void 0),pe([t.Input()],e.prototype,"closeButton",void 0),pe([t.Input()],e.prototype,"popoverIcon",void 0),pe([t.Input()],e.prototype,"popoverHeader",void 0),pe([t.Input()],e.prototype,"popoverFooter",void 0),pe([t.Input()],e.prototype,"popoverButtonText",void 0),pe([t.Input()],e.prototype,"popoverArrowPosition",void 0),pe([t.Input()],e.prototype,"popoverPosition",null),pe([t.Output()],e.prototype,"buttonClicked",void 0),pe([t.HostListener("click")],e.prototype,"doClick",null),e=pe([t.Directive({selector:"[sHelpPopover]",exportAs:"sHelpPopover"})],e)}(),Bl=function(){function e(){}return e=pe([t.NgModule({declarations:[Pl,Vl],imports:[r.CommonModule,Ft],exports:[Vl]})],e)}(),Nl=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[Yo]})],e)}(),zl=function(){function e(){this.treeData=[],this._selected=[],this.loading=!1,this.selectionMode="single",this.showCheckbox=!1,this.allExpanded=!1,this.selectedChange=new t.EventEmitter,this.treeNodeItemClicked=new t.EventEmitter,this.treeNodeEdit=new t.EventEmitter,this.nodeExpanded=new t.EventEmitter,this.nodeCollapsed=new t.EventEmitter}return Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(e){e||(e=[]),Array.isArray(e)||(e=[e]),this._selected=e},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.onChanges(e)},e.prototype.onTreeNodeItemClicked=function(e){var t=e.item;this.treeNodeItemClicked.emit(jl(t)),this.toggleChecked(t)},e.prototype.onTreeNodeEdit=function(e){var t=e.revertAction,n=e.item,o=e.newValue,i=e.previousValue;this.treeNodeEdit.emit({revertAction:t,item:jl(n),newValue:o,previousValue:i})},e.prototype.onNodeExpanded=function(e){this.nodeExpanded.emit(jl(e))},e.prototype.onNodeCollapsed=function(e){this.nodeCollapsed.emit(jl(e))},e.prototype.toggleChecked=function(e){var t=!e.checked;this.multiple||(Ul(this.treeData).forEach((function(e){return e.checked=!1})),this.selected=[e]),e.checked=t,this.multiple&&this.checkTreeDataChildren(e),this.setSelected()},e.prototype.checkTreeDataChildren=function(e){var t=e.checked;e.children&&e.children.forEach((function(e){var n=Ul(e.children||[]);e.checked=t,n.forEach((function(e){return e.checked=t}))}));var n=function(e){var t;if(null===(t=e.children)||void 0===t?void 0:t.length){e.children.forEach(n);var o=function(e){return{allChildrenChecked:e.children.every((function(e){return!0===e.checked})),someChildrenChecked:e.children.some((function(e){return!0===e.checked||null===e.checked})),allChildrenUnchecked:e.children.every((function(e){return!1===e.checked||void 0===e.checked}))}}(e),i=o.allChildrenChecked,r=o.someChildrenChecked,a=o.allChildrenUnchecked;i?e.checked=!0:r?e.checked=null:a&&(e.checked=!1)}};this.treeData.forEach(n)},e.prototype.setSelected=function(){var e=this.selectedElements;this.selected=ge(e),this.selectedChange.emit(e)},e.prototype.onChanges=function(e){var t=e.allExpanded,n=function(t){var n;if(e[t])return(!e[t].previousValue||0===e[t].previousValue.length)&&(null===(n=e[t].currentValue)||void 0===n?void 0:n.length)>0};(n("selected")&&this.syncSelectedChanges(),n("treeData"))&&(this.allExpanded&&this.expandAll());t&&(this.allExpanded?this.expandAll():this.collapseAll())},e.prototype.syncSelectedChanges=function(){var e=this,t=Ul(this.treeData);this.selected.forEach((function(n){var o=t.find((function(e){return e.id===n.id}));o&&(o.checked=!0),o.children&&e.multiple&&o.children.forEach((function(t){t.checked=!0,e.selected.some((function(e){return e.id===t.id}))||e.selected.push(t)}))})),this.selectedElements.filter((function(t){return!e.selected.some((function(e){return e.id===t.id}))})).forEach((function(t){e.checkTreeDataChildren(t)})),this.setSelected()},e.prototype.collapseAll=function(){Ul(this.treeData).forEach((function(e){e.isExpanded=!1}))},e.prototype.expandAll=function(){Ul(this.treeData).forEach((function(e){e.isExpanded=!0}))},Object.defineProperty(e.prototype,"selectedElements",{get:function(){return Ul(this.treeData).filter((function(e){return e.checked})).filter((function(e){var t;return!0!==e.leaf&&!(null===(t=e.children)||void 0===t?void 0:t.length)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiple",{get:function(){return"multiple"===this.selectionMode},enumerable:!0,configurable:!0}),pe([t.Input()],e.prototype,"treeData",void 0),pe([t.Input()],e.prototype,"selected",null),pe([t.Input()],e.prototype,"loading",void 0),pe([t.Input()],e.prototype,"selectionMode",void 0),pe([t.Input()],e.prototype,"showCheckbox",void 0),pe([t.Input()],e.prototype,"allExpanded",void 0),pe([t.Output()],e.prototype,"selectedChange",void 0),pe([t.Output()],e.prototype,"treeNodeItemClicked",void 0),pe([t.Output()],e.prototype,"treeNodeEdit",void 0),pe([t.Output()],e.prototype,"nodeExpanded",void 0),pe([t.Output()],e.prototype,"nodeCollapsed",void 0),e=pe([t.Component({selector:"s-tree",template:'<div class="tree" *sLoadingState="loading">\n <s-tree-node-item\n *ngFor="let item of treeData"\n [showCheckbox]="showCheckbox"\n [treeNodeItem]="item"\n (nodeExpanded)="onNodeExpanded($event)"\n (nodeCollapsed)="onNodeCollapsed($event)"\n (treeNodeEdit)="onTreeNodeEdit($event)"\n (treeNodeItemClicked)="onTreeNodeItemClicked($event)">\n </s-tree-node-item>\n</div>\n',styles:[".tree{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:5px;border:1px solid #ddd;border-radius:4px;padding:15px;margin:15px}"]})],e)}(),Ul=function(e){var t=[];return function e(n){var o,i;try{for(var r=he(n),a=r.next();!a.done;a=r.next()){var s=a.value;t.push(s),s.children&&s.children.length&&e(s.children)}}catch(e){o={error:e}}finally{try{a&&!a.done&&(i=r.return)&&i.call(r)}finally{if(o)throw o.error}}}(e),t},jl=function(e){var t=e.id,n=e.label,o=e.icon,i=e.checked,r=e.isExpanded,a=e.payload,s=e.editable,l=e.children,c={id:t,label:n,icon:o,checked:i,isExpanded:r,payload:a,editable:s,_children:null==l?void 0:l.map(jl),get children(){return this._children},set children(t){this._children=t,e.children=t}};return Object.defineProperty(c,"_children",{enumerable:!1}),c},Hl=function(){function e(e,n){this.cdr=e,this.translateService=n,this.ariaLevel=0,this.showCheckbox=!1,this.treeNodeItemClicked=new t.EventEmitter,this.treeNodeEdit=new t.EventEmitter,this.nodeExpanded=new t.EventEmitter,this.nodeCollapsed=new t.EventEmitter}return Object.defineProperty(e.prototype,"hasChildren",{get:function(){return this.treeNodeItem.children&&this.treeNodeItem.children.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"editable",{get:function(){var e;return(null===(e=this.treeNodeItem)||void 0===e?void 0:e.editable)||!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaLabel",{get:function(){return this.translateService.instant("platform.angular_components.select")+" "+this.treeNodeItem.label},enumerable:!0,configurable:!0}),e.prototype.expandNode=function(){this.hasChildren&&!this.treeNodeItem.isExpanded&&this.toggleExpanded(this.treeNodeItem)},e.prototype.collapseNode=function(){this.hasChildren&&this.treeNodeItem.isExpanded&&this.toggleExpanded(this.treeNodeItem)},e.prototype.onCheckboxEnter=function(e){var t=!0!==e.checked;e.checked=t,this.treeNodeItemClicked.emit({item:e,event:new KeyboardEvent("keydown",{key:"Enter"})})},e.prototype.handleTreeNodeItemClick=function(e,t){var n=t||this.treeNodeItem;this.treeNodeItemClicked.emit({item:n,event:e})},e.prototype.handleTreeNodeItemClicked=function(e){var t=e.event,n=e.item;n.isEditing||this.handleTreeNodeItemClick(t,n)},e.prototype.toggleExpanded=function(e){e.isExpanded=!e.isExpanded,e.isExpanded?this.nodeExpanded.emit(e):this.nodeCollapsed.emit(e)},e.prototype.toggleEditing=function(e){var t;if(e.stopPropagation(),this.treeNodeItem.isEditing=!this.treeNodeItem.isEditing,this.cdr.detectChanges(),this.treeNodeItem.isEditing){this.treeNodeItem.editNewValue=this.treeNodeItem.label;var n=null===(t=this.input)||void 0===t?void 0:t.nativeElement;null==n||n.focus()}},e.prototype.cancelEdit=function(e){e.stopPropagation(),this.treeNodeItem.isEditing=!1,this.treeNodeItem.editNewValue="",this.treeNodeItem.editPreviousValue="",this.cdr.detectChanges()},e.prototype.saveEdit=function(e){var t=this;if(e.stopPropagation(),this.treeNodeItem.isEditing=!1,this.treeNodeItem.editNewValue){this.treeNodeItem.editPreviousValue=this.treeNodeItem.label,this.treeNodeItem.label=this.treeNodeItem.editNewValue;this.treeNodeEdit.emit({revertAction:function(){t.treeNodeItem.label=t.treeNodeItem.editPreviousValue,t.treeNodeItem.isEditing=!1,t.cdr.detectChanges()},item:this.treeNodeItem,newValue:this.treeNodeItem.editNewValue,previousValue:this.treeNodeItem.editPreviousValue})}},e.prototype.treeNodeEditChildEvent=function(e){this.treeNodeEdit.emit(e)},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:b.TranslateService}]},pe([t.Input()],e.prototype,"ariaLevel",void 0),pe([t.Input()],e.prototype,"showCheckbox",void 0),pe([t.Input()],e.prototype,"treeNodeItem",void 0),pe([t.Output()],e.prototype,"treeNodeItemClicked",void 0),pe([t.Output()],e.prototype,"treeNodeEdit",void 0),pe([t.Output()],e.prototype,"nodeExpanded",void 0),pe([t.Output()],e.prototype,"nodeCollapsed",void 0),pe([t.ViewChild("input",{read:t.ElementRef})],e.prototype,"input",void 0),e=pe([t.Component({selector:"s-tree-node-item",template:'<div\n *ngIf="treeNodeItem"\n class="tree-node-item"\n role="treeitem"\n [class.tree-node-item-selected]="treeNodeItem.checked"\n [class.selectable]="hasChildren"\n [attr.aria-expanded]="hasChildren ? treeNodeItem.isExpanded : null"\n [attr.aria-selected]="treeNodeItem.checked === true"\n [attr.aria-label]="treeNodeItem.label"\n [attr.aria-level]="ariaLevel"\n tabindex="0"\n (keydown.enter)="handleTreeNodeItemClick($event)"\n (keydown.arrowRight)="expandNode()"\n (keydown.arrowLeft)="collapseNode()"\n>\n <div class="arrow" *ngIf="hasChildren || treeNodeItem.leaf === true" (click)="toggleExpanded(treeNodeItem)">\n <i [class]="treeNodeItem.collapsedIcon || \'fas fa-chevron-right\'" *ngIf="!treeNodeItem.isExpanded"></i>\n <i [class]="treeNodeItem.expandedIcon || \'fas fa-chevron-down\'" *ngIf="treeNodeItem.isExpanded"></i>\n </div>\n\n <div class="tree-node-item-text" (click)="handleTreeNodeItemClick($event)">\n <span class="tree-node-item-text-icon" *ngIf="treeNodeItem.icon || treeNodeItem.isEditing">\n <i [class]="treeNodeItem.icon" *ngIf="treeNodeItem.icon && !treeNodeItem.isEditing"></i>\n <i class="fas fa-edit edit" *ngIf="treeNodeItem.isEditing" (click)="saveEdit($event)"></i>\n </span>\n\n <span class="tree-node-item-text-checkbox" *ngIf="showCheckbox && !treeNodeItem.isEditing">\n <input\n type="checkbox"\n [checked]="treeNodeItem.checked === true"\n [indeterminate]="treeNodeItem.checked === null"\n [attr.aria-checked]="treeNodeItem.checked === null ? \'mixed\' : treeNodeItem.checked"\n [attr.aria-label]="ariaLabel"\n role="checkbox"\n tabindex="0"\n (keydown.enter)="onCheckboxEnter(treeNodeItem)"\n />\n </span>\n\n <span class="tree-node-item-text-label">\n <ng-container *ngIf="treeNodeItem.isEditing">\n <input\n #input\n type="text"\n pInputText\n class="tree-node-item-text-input"\n [(ngModel)]="treeNodeItem.editNewValue"\n (keydown.enter)="saveEdit($event)"\n (keydown.escape)="cancelEdit($event)"\n (click)="$event.stopPropagation()"\n aria-label="Editar nome do item"\n aria-live="polite"\n />\n </ng-container>\n <ng-container *ngIf="!treeNodeItem.isEditing">\n {{ treeNodeItem.label }}\n </ng-container>\n </span>\n\n <span class="tree-node-item-text-editable" *ngIf="editable">\n <i class="fas fa-pencil-alt" (click)="toggleEditing($event)" aria-label="Editar item" tabindex="0"></i>\n </span>\n </div>\n</div>\n\n<div\n *ngIf="hasChildren && treeNodeItem.isExpanded"\n @fadeExpand\n class="child"\n role="group"\n @childrenAnimation\n>\n <s-tree-node-item\n *ngFor="let child of treeNodeItem.children"\n [showCheckbox]="showCheckbox"\n [treeNodeItem]="child"\n [ariaLevel]="ariaLevel + 1"\n (treeNodeItemClicked)="handleTreeNodeItemClicked($event)"\n (treeNodeEdit)="treeNodeEditChildEvent($event)"\n (nodeExpanded)="nodeExpanded.emit($event)"\n (nodeCollapsed)="nodeCollapsed.emit($event)"\n class="child-item"\n >\n </s-tree-node-item>\n</div>\n',animations:[n.trigger("fadeExpand",[n.transition(":enter",[n.style({height:"0px",opacity:0,overflow:"hidden"}),n.animate("200ms ease-out",n.style({height:"*",opacity:1}))]),n.transition(":leave",[n.animate("150ms ease-in",n.style({height:"0px",opacity:0}))])]),n.trigger("childrenAnimation",[n.transition(":enter",[n.query(":enter",[n.style({opacity:0,transform:"translateY(-10px)"}),n.stagger(60,[n.animate("200ms ease-out",n.style({opacity:1,transform:"translateY(0)"}))])],{optional:!0})])])],styles:['.tree-node-item{width:100%;display:-ms-flexbox;display:flex;cursor:pointer}.tree-node-item .arrow{padding:3px 9px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.tree-node-item-text{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;padding:3px 0;-ms-flex-align:center;align-items:center}.tree-node-item-text:hover{background:#f1f7f8}.tree-node-item-text-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding-right:9px}.tree-node-item-text-icon .edit{color:#428bca}.tree-node-item-text-label{color:#212533;font-family:"Open Sans";font-size:14px;font-style:normal;font-weight:400;line-height:150%;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1}.tree-node-item-text-checkbox{padding-right:9px;display:-ms-flexbox;display:flex}.tree-node-item-text-checkbox input[type=checkbox]{accent-color:#428bca;width:14px;height:14px}.tree-node-item-text-editable{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}.tree-node-item-text-editable i{padding:9px}.tree-node-item-text-input{-ms-flex:1;flex:1}.tree-node-item.selectable .tree-node-item-text-label{font-family:"Open Sans";font-size:14px;font-style:normal;font-weight:700}.tree-node-item.selectable *{cursor:pointer}.tree-node-item-selected .tree-node-item-text{background:#d5e8ec}.child{overflow:hidden;padding-left:2.2em;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:5px}.child-item:first-child{padding-top:5px}']})],e)}(),$l=function(){function e(){}return e=pe([t.NgModule({declarations:[Hl,zl],imports:[r.CommonModule,a.FormsModule,z.InputTextModule,vi,b.TranslateModule],exports:[zl]})],e)}();e.AccessibilityEventDirective=qr,e.AccessibilityEventsModule=Wr,e.AccordionComponent=ye,e.AccordionModule=Ae,e.AccordionPanelComponent=be,e.AlertComponent=De,e.AlertModule=Pe,e.AngularComponentsModule=sn,e.AutocompleteField=no,e.BadgeComponent=Ne,e.BadgeModule=He,e.BaseFieldComponent=Jn,e.BignumberField=oo,e.BignumberInputDirective=ht,e.BignumberInputModule=ft,e.BooleanField=ao,e.BooleanOptionsLabel=ro,e.BreadcrumbComponent=gt,e.BreadcrumbModule=vt,e.Breakpoints=Wn,e.ButtonComponent=yt,e.ButtonField=Mo,e.ButtonModule=Ft,e.CalendarField=lo,e.CalendarLocaleOptions=$e,e.CalendarMaskDirective=Ot,e.CalendarMaskModule=Rt,e.CardComponent=Pt,e.CardModule=Bt,e.ChatComponent=Nt,e.ChatModule=Ut,e.CheckDisabled=Ts,e.CheckboxComponent=jt,e.CheckboxModule=Ht,e.ChipsComponent=Rl,e.ChipsField=po,e.ChipsModule=Dl,e.CodeEditorModule=Nn,e.CollapseLinkComponent=zn,e.CollapseLinkModule=Un,e.ControlErrorsComponent=jn,e.ControlErrorsModule=Hn,e.CountryPhonePickerComponent=Zn,e.CountryPhonePickerModule=Xn,e.CurrencyField=bo,e.CurrencyService=pt,e.CustomFieldsComponent=Jr,e.CustomFieldsModule=ea,e.CustomFieldsService=Zr,e.DEFAULT_CALENDAR_LOCALE_OPTIONS=We,e.DEFAULT_LOCALE_OPTIONS=Ke,e.DEFAULT_NUMBER_LOCALE_OPTIONS=Ye,e.DebounceUtils=Ie,e.DoubleClickDirective=qo,e.DynamicConfig=Uo,e.DynamicFormComponent=$o,e.DynamicFormModule=Kr,e.EditableOverlayDirective=ta,e.EditableOverlayModule=na,e.EmptyStateComponent=Xo,e.EmptyStateModule=Qo,e.ExportUtils=Yn,e.Field=to,e.Fieldset=No,e.FieldsetComponent=Gr,e.FieldsetModule=Yr,e.FileUploadComponent=ii,e.FileUploadModule=ri,e.FooterComponent=Sr,e.FormField=Oo,e.GanttComponent=fa,e.GanttModule=va,e.GlobalSearchComponent=xa,e.GlobalSearchDropdownItemComponent=ya,e.GlobalSearchModule=Ca,e.Grid=Po,e.GridMenuComponent=La,e.GridMenuModule=Oa,e.HeaderComponent=Ir,e.HelpPopoverComponent=Pl,e.HelpPopoverDirective=Vl,e.HelpPopoverModule=Bl,e.HostProjectConfigsInjectionToken=an,e.IAInsightComponent=Ea,e.IAInsightModule=Ma,e.ImageCropperComponent=Er,e.ImageCropperModule=Mr,e.ImageCropperService=Lr,e.InfoSignDirective=Ue,e.InfoSignModule=je,e.InlineEditCalendarField=Aa,e.InlineEditComponent=Wa,e.InlineEditField=Ra,e.InlineEditLookupField=Da,e.InlineEditModule=Za,e.InlineEditNumberField=Pa,e.InlineEditTextAreaField=Va,e.InlineEditTextAreaIAField=Na,e.InlineEditTextField=Ba,e.KanbanComponent=Qa,e.KanbanModule=os,e.LabelValueComponent=bl,e.LabelValueModule=yl,e.LoadingStateComponent=fi,e.LoadingStateDirective=gi,e.LoadingStateModule=vi,e.LocaleModule=mt,e.LocaleOptions=qe,e.LocaleService=Xe,e.LocalizedCurrencyPipe=tt,e.LocalizedCurrencyPipeOptions=et,e.LocalizedDateImpurePipe=rt,e.LocalizedDatePipe=it,e.LocalizedNumberInputDirective=bi,e.LocalizedNumberInputModule=yi,e.LocalizedNumberPipe=at,e.LocalizedTimeImpurePipe=ct,e.LocalizedTimePipe=lt,e.LongPressDirective=Go,e.LookupComponent=Ao,e.LookupField=yo,e.MaskFormatterModule=_i,e.MaskFormatterPipe=xi,e.MouseEventsModule=Wo,e.NavigationButtonComponent=is,e.NavigationButtonModule=rs,e.NavigationDirective=Mi,e.NumberField=go,e.NumberInputDirective=ho,e.NumberInputModule=fo,e.NumberLocaleOptions=Ge,e.NumericService=dt,e.ObjectCardComponent=ps,e.ObjectCardFieldComponent=ls,e.ObjectCardMainComponent=cs,e.ObjectCardModule=ms,e.Option=Ro,e.PanelComponent=hs,e.PanelModule=fs,e.PasswordField=xo,e.PasswordStrengthComponent=ki,e.PasswordStrengthDirective=Ii,e.PasswordStrengthModule=Si,e.PicklistComponent=xl,e.PicklistModule=Ol,e.ProductHeaderComponent=gs,e.ProductHeaderModule=vs,e.ProfilePicturePickerComponent=Pr,e.ProfilePicturePickerModule=Vr,e.ProgressBarComponent=bs,e.ProgressBarModule=_s,e.RadioButtonField=wo,e.RatingScaleComponent=ws,e.RatingScaleModule=Cs,e.RationButtonOption=_o,e.Row=Vo,e.RowTogllerDirective=Li,e.SVGFactoryDirective=ci,e.SVGFactoryModule=pi,e.Section=zo,e.SelectButtonComponent=ks,e.SelectButtonModule=Ss,e.SelectField=Co,e.SelectOption=ko,e.SidebarComponent=Ms,e.SidebarModule=Ls,e.SlidePanelComponent=Os,e.SlidePanelModule=Rs,e.SliderComponent=As,e.SliderModule=Ns,e.SplitButtonComponent=Us,e.SplitButtonModule=js,e.StatsCardComponent=Hs,e.StatsCardModule=$s,e.StepsComponent=Ws,e.StepsModule=Ys,e.Structure=Bo,e.StructureModule=Tr,e.SwitchComponent=xe,e.SwitchModule=_e,e.TableFrozenPositionDirective=Fi,e.TableHeaderCheckboxComponent=Ti,e.TableHeaderCheckboxModule=Ei,e.TableModule=Bi,e.TaxCalculationLanguageConfigs=xn,e.TemplateDirective=At,e.TemplateModule=Vt,e.TextAreaComponent=zr,e.TextAreaField=So,e.TextAreaIAComponent=Ya,e.TextAreaIAModule=Ka,e.TextAreaModule=$r,e.TextField=Eo,e.ThumbnailComponent=Rr,e.ThumbnailModule=Ar,e.ThumbnailsComponent=Ks,e.ThumbnailsModule=Qs,e.TieredMenuDirective=Mt,e.TieredMenuModule=Lt,e.TileComponent=el,e.TileModule=tl,e.TimelineComponent=nl,e.TimelineItem=fl,e.TimelineModule=ml,e.ToastComponent=Yo,e.ToastModule=Nl,e.ToastService=Ko,e.TokenListComponent=Di,e.TokenListModule=Pi,e.TooltipModule=Re,e.TreeComponent=zl,e.TreeModule=$l,e.WorkspaceSwitchComponent=gl,e.WorkspaceSwitchModule=vl,e.convertToMomentDateFormat=Kn,e.countries=$n,e.fallback={"platform.angular_components.attachment":"anexo","platform.angular_components.watch":"assistir","platform.angular_components.view":"visualizar","platform.angular_components.listen":"ouvir","platform.angular_components.drag_your_photo_or":"Arraste sua foto ou","platform.angular_components.select_a_file":"selecione um arquivo","platform.angular_components.change_photo":"Alterar foto","platform.angular_components.remove_image":"Remover imagem","platform.angular_components.confirmation_remove_image":"Deseja remover a imagem? Não pode ser revertida.","platform.angular_components.strong":"Forte","platform.angular_components.medium":"Média","platform.angular_components.weak":"Fraca","platform.angular_components.invalid_value":"Valor inválido","platform.angular_components.insight_intro":"Olá! Aqui você encontrará insights valiosos a partir dos seus dados","platform.angular_components.insight_empty":"Ainda não há Insights na página","platform.angular_components.error_loading_insight_alt":"Não foi possível carregar o insight no momento. Por favor, verifique sua conexão com a internet e tente novamente.","platform.angular_components.loading_insight":"Carregando insight valioso...","platform.angular_components.insight_no_permission":"Olá! Você não possui acesso à página de insights. Entre em contato com o administrador para saber mais","platform.angular_components.count_items_in_target":"{{ count }} itens em {{ target }}","platform.angular_components.count_items_selected":"{{ count }} itens selecionados","platform.angular_components.january":"Janeiro","platform.angular_components.february":"Fevereiro","platform.angular_components.march":"Março","platform.angular_components.april":"Abril","platform.angular_components.may":"Maio","platform.angular_components.june":"Junho","platform.angular_components.july":"Julho","platform.angular_components.august":"Agosto","platform.angular_components.september":"Setembro","platform.angular_components.october":"Outubro","platform.angular_components.november":"Novembro","platform.angular_components.december":"Dezembro","platform.angular_components.january_short":"Jan","platform.angular_components.february_short":"Fev","platform.angular_components.march_short":"Mar","platform.angular_components.april_short":"Abr","platform.angular_components.may_short":"Mai","platform.angular_components.june_short":"Jun","platform.angular_components.july_short":"Jul","platform.angular_components.august_short":"Ago","platform.angular_components.september_short":"Set","platform.angular_components.october_short":"Out","platform.angular_components.november_short":"Nov","platform.angular_components.december_short":"Dez","platform.angular_components.sunday":"Domingo","platform.angular_components.monday":"Segunda-feira","platform.angular_components.tuesday":"Terça-feira","platform.angular_components.wednesday":"Quarta-feira","platform.angular_components.thursday":"Quinta-feira","platform.angular_components.friday":"Sexta-feira","platform.angular_components.saturday":"Sábado","platform.angular_components.sunday_short":"Dom","platform.angular_components.monday_short":"Seg","platform.angular_components.tuesday_short":"Ter","platform.angular_components.wednesday_short":"Qua","platform.angular_components.thursday_short":"Qui","platform.angular_components.friday_short":"Sex","platform.angular_components.saturday_short":"Sáb","platform.angular_components.sunday_min":"D","platform.angular_components.monday_min":"S","platform.angular_components.tuesday_min":"T","platform.angular_components.wednesday_min":"Q","platform.angular_components.thursday_min":"Q","platform.angular_components.friday_min":"S","platform.angular_components.saturday_min":"S","platform.angular_components.today":"Hoje","platform.angular_components.hour_format":"24","platform.angular_components.date_format":"dd/mm/yy","platform.angular_components.ia_text_generator":"Gerador de texto por IA","platform.angular_components.attach_files":"Anexar arquivos","platform.angular_components.add_information":"Adicionar informação","platform.angular_components.add":"Adicionar","platform.angular_components.edit":"Editar","platform.angular_components.remove":"Remover","platform.angular_components.save":"Salvar","platform.angular_components.file_attached_successfully":"Arquivo anexado com sucesso","platform.angular_components.loading_file":"Carregando arquivo","platform.angular_components.iassist_text_generator":"IAssist Gerador de texto","platform.angular_components.copied_to_clipboard":"Copiado para área de transferência","platform.angular_components.copy_field_content":"Copiar conteúdo preenchido","platform.angular_components.generate_text":"Gerar texto","platform.angular_components.context":"Contexto","platform.angular_components.filters":"Filtros","platform.angular_components.filter":"Filtrar","platform.angular_components.clear":"Limpar","platform.angular_components.cancel":"Cancelar","platform.angular_components.select":"Selecionar","platform.angular_components.not_informed":"Não informado","platform.angular_components.advanced_search":"Pesquisa avançada","platform.angular_components.no_records_found":"Nenhum registro encontrado","platform.angular_components.total_record":"{{ count }} registro encontrado","platform.angular_components.total_records":"{{ count }} registros encontrados","platform.angular_components.total_records_selected":"{0} registros selecionados","platform.angular_components.country_name_br":"Brasil","platform.angular_components.country_name_us":"Estados Unidos","platform.angular_components.country_name_co":"Colômbia","platform.angular_components.country_name_ar":"Argentina","platform.angular_components.country_name_cl":"Chile","platform.angular_components.country_name_py":"Paraguai","platform.angular_components.country_name_uy":"Uruguai","platform.angular_components.country_name_cn":"China","platform.angular_components.country_name_ca":"Canadá","platform.angular_components.country_name_as":"Samoa Americana","platform.angular_components.country_name_ai":"Anguilla","platform.angular_components.country_name_ag":"Antígua e Barbuda","platform.angular_components.country_name_bs":"Bahamas","platform.angular_components.country_name_bb":"Barbados","platform.angular_components.country_name_bm":"Bermuda","platform.angular_components.country_name_vg":"Ilhas Virgens Britânicas","platform.angular_components.country_name_ky":"Ilhas Cayman","platform.angular_components.country_name_dm":"Dominica","platform.angular_components.country_name_do":"República Dominicana","platform.angular_components.country_name_gd":"Granada","platform.angular_components.country_name_gu":"Guam","platform.angular_components.country_name_jm":"Jamaica","platform.angular_components.country_name_ms":"Montserrat","platform.angular_components.country_name_mp":"Ilhas Mariana do Norte","platform.angular_components.country_name_pr":"Porto Rico","platform.angular_components.country_name_kn":"Saint Kitts and Nevis","platform.angular_components.country_name_lc":"Saint Lucia","platform.angular_components.country_name_vc":"Saint Vincent and the Grenadines","platform.angular_components.country_name_tt":"Trinidad e Tobago","platform.angular_components.country_name_tc":"Ilhas Turcas e Caicos","platform.angular_components.country_name_fi":"Finlândia","platform.angular_components.country_name_rs":"Sérvia","platform.angular_components.country_name_zm":"Zâmbia","platform.angular_components.country_name_af":"Afghanistão","platform.angular_components.country_name_al":"Albânia","platform.angular_components.country_name_hr":"Croácia","platform.angular_components.country_name_ec":"Equador","platform.angular_components.country_name_et":"Etiópia","platform.angular_components.country_name_gh":"Gana","platform.angular_components.country_name_gr":"Grécia","platform.angular_components.country_name_ie":"Irlanda","platform.angular_components.country_name_it":"Itália","platform.angular_components.country_name_lr":"Libéria","platform.angular_components.country_name_na":"Namíbia","platform.angular_components.country_name_nz":"Nova Zelândia","platform.angular_components.country_name_sa":"Arábia Saudita","platform.angular_components.country_name_za":"África do Sul","platform.angular_components.country_name_lk":"Sri Lanka","platform.angular_components.country_name_sd":"Sudão","platform.angular_components.country_name_th":"Tailândia","platform.angular_components.country_name_ua":"Ucrânia","platform.angular_components.country_name_ae":"Emirados Árabes Unidos","platform.angular_components.country_name_va":"Vaticano","platform.angular_components.country_name_zw":"Zimbábue","platform.angular_components.country_name_dz":"Argélia","platform.angular_components.country_name_be":"Bélgica","platform.angular_components.country_name_yt":"Mayotte","platform.angular_components.country_name_bl":"Saint Barthelemy","platform.angular_components.country_name_mf":"Saint Martin","platform.angular_components.country_name_ad":"Andora","platform.angular_components.country_name_ao":"Angola","platform.angular_components.country_name_ba":"Bósnia e Herzegovina","platform.angular_components.country_name_bg":"Bulgária","platform.angular_components.country_name_kh":"Camboja","platform.angular_components.country_name_cz":"República Checa","platform.angular_components.country_name_gq":"Guiné Equatorial","platform.angular_components.country_name_gw":"Guiné-Bissau","platform.angular_components.country_name_li":"Liechtenstein","platform.angular_components.country_name_lu":"Luxemburgo","platform.angular_components.country_name_mk":"Macedónia","platform.angular_components.country_name_me":"Montenegro","platform.angular_components.country_name_pe":"Peru","platform.angular_components.country_name_pl":"Polónia","platform.angular_components.country_name_pt":"Portugal","platform.angular_components.country_name_si":"Slovenia","platform.angular_components.country_name_am":"Arménia","platform.angular_components.country_name_aw":"Aruba","platform.angular_components.country_name_bn":"Brunei","platform.angular_components.country_name_fj":"Fiji","platform.angular_components.country_name_gm":"Gâmbia","platform.angular_components.country_name_gy":"Guiana","platform.angular_components.country_name_is":"Islândia","platform.angular_components.country_name_fm":"Micronésia","platform.angular_components.country_name_nr":"Nauru","platform.angular_components.country_name_nu":"Niue","platform.angular_components.country_name_pw":"Palau","platform.angular_components.country_name_st":"Sao Tome e Principe","platform.angular_components.country_name_to":"Tonga","platform.angular_components.country_name_vu":"Vanuatu","platform.angular_components.country_name_fk":"Ilhas Falkland (Malvinas)","platform.angular_components.country_name_fo":"Ilhas Feroé","platform.angular_components.country_name_sh":"Saint Helena","platform.angular_components.country_name_au":"Austrália","platform.angular_components.country_name_cx":"Christmas Island","platform.angular_components.country_name_cc":"Ilhas Cocos (Keeling)","platform.angular_components.country_name_cd":"República Democrática do Congo","platform.angular_components.country_name_kg":"Quirguistão","platform.angular_components.country_name_ro":"Roménia","platform.angular_components.country_name_rw":"Ruanda","platform.angular_components.country_name_sk":"Slovakia","platform.angular_components.country_name_sy":"Syria","platform.angular_components.country_name_tw":"Taiwan","platform.angular_components.country_name_tz":"Tanzânia","platform.angular_components.country_name_ye":"Iémen (Iémen, Yemen)","platform.angular_components.country_name_at":"Áustria","platform.angular_components.country_name_ke":"Quénia (Kenya)","platform.angular_components.country_name_ug":"Uganda","platform.angular_components.country_name_az":"Azerbaijão","platform.angular_components.country_name_ch":"Suiça","platform.angular_components.country_name_vn":"Vietnã (Vietname)","platform.angular_components.country_name_bh":"Bahrein","platform.angular_components.country_name_cr":"Costa Rica","platform.angular_components.country_name_sv":"El Salvador","platform.angular_components.country_name_ee":"Estónia","platform.angular_components.country_name_sz":"Suazilândia","platform.angular_components.country_name_gt":"Guatemala","platform.angular_components.country_name_hk":"Hong Kong","platform.angular_components.country_name_ls":"Lesoto","platform.angular_components.country_name_mo":"Macau","platform.angular_components.country_name_mt":"Malta","platform.angular_components.country_name_mu":"Maurícia","platform.angular_components.country_name_mn":"Mongólia","platform.angular_components.country_name_ni":"Nicaragua","platform.angular_components.country_name_om":"Omã","platform.angular_components.country_name_pg":"Papua-Nova Guiné","platform.angular_components.country_name_qa":"Catar","platform.angular_components.country_name_sg":"Cingapura","platform.angular_components.country_name_tl":"Timor-Leste","platform.angular_components.country_name_bd":"Bangladesh","platform.angular_components.country_name_im":"Ilha de Man","platform.angular_components.country_name_by":"Bielorrússia","platform.angular_components.country_name_bz":"Belize","platform.angular_components.country_name_mv":"Maldivas","platform.angular_components.country_name_mh":"Ilhas Marshall","platform.angular_components.country_name_sr":"Suriname","platform.angular_components.country_name_bj":"Benim","platform.angular_components.country_name_bt":"Butão","platform.angular_components.country_name_bf":"Burkina Faso","platform.angular_components.country_name_bi":"Burundi","platform.angular_components.country_name_cf":"República Centro-Africana","platform.angular_components.country_name_td":"Chad","platform.angular_components.country_name_ci":"Costa do Marfim","platform.angular_components.country_name_dk":"Dinamarca","platform.angular_components.country_name_dj":"Djibouti","platform.angular_components.country_name_fr":"França","platform.angular_components.country_name_pf":"Polinésia Francesa","platform.angular_components.country_name_ga":"Gabão","platform.angular_components.country_name_ml":"Mali","platform.angular_components.country_name_mr":"Mauritânia","platform.angular_components.country_name_ne":"Níger","platform.angular_components.country_name_sm":"San Marino","platform.angular_components.country_name_tg":"Togo","platform.angular_components.country_name_bo":"Bolívia","platform.angular_components.country_name_gi":"Gibraltar","platform.angular_components.country_name_ki":"Kiribati","platform.angular_components.country_name_tv":"Tuvalu","platform.angular_components.country_name_bw":"Botswana","platform.angular_components.country_name_er":"Eritreia","platform.angular_components.country_name_lv":"Letônia","platform.angular_components.country_name_lb":"Líbano","platform.angular_components.country_name_tn":"Tunísia","platform.angular_components.country_name_cm":"Camarões","platform.angular_components.country_name_cv":"Cabo Verde","platform.angular_components.country_name_km":"Comores","platform.angular_components.country_name_pm":"Saint Pierre and Miquelon","platform.angular_components.country_name_cg":"República do Congo","platform.angular_components.country_name_mz":"Moçambique","platform.angular_components.country_name_mm":"Myanmar (Burma)","platform.angular_components.country_name_ck":"Ilhas Cook","platform.angular_components.country_name_cu":"Cuba","platform.angular_components.country_name_cy":"Chipre","platform.angular_components.country_name_eg":"Egito","platform.angular_components.country_name_ir":"Irã","platform.angular_components.country_name_iq":"Iraque","platform.angular_components.country_name_ng":"Nigéria","platform.angular_components.country_name_kp":"Coreia do Norte","platform.angular_components.country_name_ph":"Filipinas","platform.angular_components.country_name_ge":"Geórgia","platform.angular_components.country_name_gn":"Guiné","platform.angular_components.country_name_es":"Espanha","platform.angular_components.country_name_de":"Alemanha","platform.angular_components.country_name_gl":"Groelândia","platform.angular_components.country_name_wf":"Wallis e Futuna","platform.angular_components.country_name_ht":"Haiti","platform.angular_components.country_name_hn":"Honduras","platform.angular_components.country_name_pa":"Panamá","platform.angular_components.country_name_hu":"Hungria","platform.angular_components.country_name_in":"India","platform.angular_components.country_name_id":"Indonésia","platform.angular_components.country_name_il":"Israel","platform.angular_components.country_name_jp":"Japão","platform.angular_components.country_name_jo":"Jordânia","platform.angular_components.country_name_kz":"Cazaquistão","platform.angular_components.country_name_kw":"Kuwait","platform.angular_components.country_name_la":"Laos","platform.angular_components.country_name_ly":"Líbia","platform.angular_components.country_name_lt":"Lituânia","platform.angular_components.country_name_np":"Nepal","platform.angular_components.country_name_mg":"Madagáscar","platform.angular_components.country_name_mw":"Malawi","platform.angular_components.country_name_my":"Malásia","platform.angular_components.country_name_mx":"México","platform.angular_components.country_name_md":"Moldávia","platform.angular_components.country_name_mc":"Monaco","platform.angular_components.country_name_ma":"Marrocos","platform.angular_components.country_name_nl":"Países Baixos","platform.angular_components.country_name_nc":"Nova Caledônia","platform.angular_components.country_name_no":"Noruega","platform.angular_components.country_name_pk":"Paquistão","platform.angular_components.country_name_ru":"Rússia","platform.angular_components.country_name_ws":"Samoa","platform.angular_components.country_name_sb":"Ilhas Salomão","platform.angular_components.country_name_sn":"Senegal","platform.angular_components.country_name_sc":"Seychelles","platform.angular_components.country_name_sl":"Serra Leoa","platform.angular_components.country_name_so":"Somalia","platform.angular_components.country_name_kr":"Coreia do Sul","platform.angular_components.country_name_se":"Suécia","platform.angular_components.country_name_tj":"Tajiquistão","platform.angular_components.country_name_tk":"Tokelau","platform.angular_components.country_name_tr":"Turquia","platform.angular_components.country_name_tm":"Turquemenistão","platform.angular_components.country_name_uz":"Uzbequistão","platform.angular_components.country_name_ve":"Venezuela","platform.angular_components.date_modified_custom_blob":"Enviado às {{hour}}:{{minutes}} de {{day}}/{{month}}/{{fullYear}}","platform.angular_components.available-items":"Itens disponíveis","platform.angular_components.selected-items":"Itens selecionados","platform.angular_components.picklist-placeholder":"Busque pelo nome ou termo","platform.angular_components.add_all":"Adicionar todos","platform.angular_components.remove_all":"Remover todos","platform.angular_components.country_name_gb":"Reino Unido","platform.angular_components.insight_footer":"Conteúdo gerado por inteligência artificial. Sujeito a imprecisões.","platform.angular_components.text_area_speech_recognition_placeholder":"Preencha o campo com, pelo menos, uma frase","platform.angular_components.text_area_before_speech":"Grave ou ouça o texto clicando nos ícones","platform.angular_components.text_area_while_speech":"Clique novamente no ícone para finalizar","platform.angular_components.text_area_end_speech":"Gravação finalizada","platform.angular_components.no_microphone_permission":"O acesso ao microfone está bloqueado. Ative a permissão nas configurações do navegador para continuar usando este recurso."},e.getElementLeftoverContentAvailable=Me,e.getElementPositionInfo=Ee,e.isMousePositionOutsideOfElement=Te,e.isNullOrUndefined=Se,e.parseItensPickList=function(e,t){return e.map((function(e){return{data:e,disabled:!!t&&t(e)}}))},e.ɵ0=wl,e.ɵ1=kl,e.ɵ2=Sl,e.ɵ3=El,e.ɵ4=Ll,e.ɵa=ke,e.ɵb=Oe,e.ɵba=Ai,e.ɵbb=Vi,e.ɵbc=kr,e.ɵbd=br,e.ɵbe=vr,e.ɵbf=rr,e.ɵbg=Nr,e.ɵbh=ar,e.ɵbi=Cr,e.ɵbj=cr,e.ɵbk=_r,e.ɵbl=ir,e.ɵbm=yr,e.ɵbn=or,e.ɵbo=xr,e.ɵbp=sr,e.ɵbq=Br,e.ɵbr=Or,e.ɵbs=pr,e.ɵbt=wr,e.ɵbu=lr,e.ɵbv=Hr,e.ɵbw=jr,e.ɵbx=Zi,e.ɵby=Ur,e.ɵbz=Ni,e.ɵc=ze,e.ɵca=zi,e.ɵcb=Ui,e.ɵcc=ji,e.ɵcd=Hi,e.ɵce=$i,e.ɵcf=nr,e.ɵcg=gr,e.ɵch=Qi,e.ɵci=Gi,e.ɵcj=qi,e.ɵck=Wi,e.ɵcl=tr,e.ɵcm=er,e.ɵcn=Yi,e.ɵco=Ki,e.ɵcp=Ji,e.ɵcq=Xi,e.ɵcr=Zo,e.ɵcs=dr,e.ɵcu=vo,e.ɵcv=ga,e.ɵcw=wa,e.ɵcx=_a,e.ɵcy=Ia,e.ɵcz=ka,e.ɵd=_t,e.ɵda=Sa,e.ɵdb=Fa,e.ɵdc=za,e.ɵdd=Ua,e.ɵde=ja,e.ɵdf=Ha,e.ɵdg=Ga,e.ɵdh=$a,e.ɵdi=qa,e.ɵdj=Xa,e.ɵdk=ns,e.ɵdl=es,e.ɵdm=ts,e.ɵdn=Ge,e.ɵdo=us,e.ɵdp=ds,e.ɵdq=ys,e.ɵdr=xs,e.ɵds=Is,e.ɵdt=Fs,e.ɵdu=Zs,e.ɵdv=Xs,e.ɵdw=Js,e.ɵdx=il,e.ɵdy=ol,e.ɵdz=al,e.ɵe=Ct,e.ɵea=rl,e.ɵeb=ul,e.ɵec=sl,e.ɵed=ll,e.ɵee=cl,e.ɵef=pl,e.ɵeg=dl,e.ɵeh=Al,e.ɵei=Hl,e.ɵf=Et,e.ɵg=Tt,e.ɵh=St,e.ɵi=wt,e.ɵj=xt,e.ɵk=nt,e.ɵl=Je,e.ɵm=Qe,e.ɵn=ut,e.ɵo=zt,e.ɵp=ln,e.ɵq=Jt,e.ɵr=Xt,e.ɵs=Bn,e.ɵt=qn,e.ɵu=Jo,e.ɵv=ai,e.ɵw=si,e.ɵx=di,e.ɵy=ui,e.ɵz=ei,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
16
|
+
var se=function(e,t){return(se=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 le(e,t){function n(){this.constructor=e}se(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ce=function(){return(ce=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function pe(e,t,n,o){var i,r=arguments.length,a=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(r<3?i(a):r>3?i(t,n,a):i(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a}function de(e,t){return function(n,o){t(n,o,e)}}function ue(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}l((o=o.apply(e,t||[])).next())}))}function me(e,t){var n,o,i,r,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[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,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==r[0]&&2!==r[0])){a=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(6===r[0]&&a.label<i[1]){a.label=i[1],i=r;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(r);break}i[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}function he(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function fe(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)a.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return a}function ge(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(fe(arguments[t]));return e}var ve,be=function(){function e(){this.disabled=!1,this.cache=!1,this.validationMessageIcon="fas fa-exclamation-circle",this.validationMessageIconColor="Red",this.panelOpened=new t.EventEmitter,this.panelClosed=new t.EventEmitter,this.isAnimating=!1,this.isContentAnimationDisabled=!0,this._isOpen=!1}return Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._isOpen},set:function(e){this._isOpen=e},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){if("disabled"in e&&this.switchControl&&(e.disabled.currentValue?this.switchControl.disable({emitEvent:!1}):this.switchControl.enable({emitEvent:!1})),"switch"in e&&"switchControl"in e)throw new Error("You can't set switch and switchControl together.")},e.prototype.ngAfterViewInit=function(){var e=this;queueMicrotask((function(){e.isContentAnimationDisabled=!1}))},e.prototype.onIconButtonsClick=function(e,t){this.disabled||(e.stopPropagation(),t())},e.prototype.onTabClick=function(){this.disabled||this.isAnimating||(this.isOpen=!this.isOpen)},e.prototype.onContentAnimationStart=function(){this.isAnimating=!0},e.prototype.onContentAnimationDone=function(){this.isAnimating=!1,this.isOpen?this.panelOpened.emit():this.panelClosed.emit()},pe([t.Input()],e.prototype,"header",void 0),pe([t.Input()],e.prototype,"buttons",void 0),pe([t.Input()],e.prototype,"disabled",void 0),pe([t.Input()],e.prototype,"switch",void 0),pe([t.Input()],e.prototype,"switchControl",void 0),pe([t.Input()],e.prototype,"validationMessage",void 0),pe([t.Input()],e.prototype,"cache",void 0),pe([t.Input()],e.prototype,"validationMessageIcon",void 0),pe([t.Input()],e.prototype,"validationMessageIconColor",void 0),pe([t.Output()],e.prototype,"panelOpened",void 0),pe([t.Output()],e.prototype,"panelClosed",void 0),e=pe([t.Component({selector:"s-accordion-panel",template:'<div\n class="accordion-panel"\n [ngClass]="{\n \'accordion-panel--open\': isOpen,\n \'accordion-panel--disabled\': disabled\n }">\n <div class="header" (click)="onTabClick()">\n <div class="header__title">\n <span class="icon" [ngClass]="isOpen ? \'fas fa-minus\' : \'fas fa-plus\'"></span>\n <span\n *ngIf="validationMessage"\n class="exclamation-icon"\n [class]="validationMessageIcon"\n [class.exclamation-icon-red]="validationMessageIconColor === \'Red\'"\n [class.exclamation-icon-orange]="validationMessageIconColor === \'Orange\'"\n [class.exclamation-icon-yellow]="validationMessageIconColor === \'Yellow\'"\n [class.exclamation-icon-green]="validationMessageIconColor === \'Green\'"\n [class.exclamation-icon-blue]="validationMessageIconColor === \'Blue\'"\n [sTooltip]="validationMessage">\n </span>\n <span class="title">{{ header }}</span>\n </div>\n <div class="header__controls">\n <button\n *ngFor="let button of buttons"\n class="icon-button"\n [ngClass]="button.icon"\n (click)="onIconButtonsClick($event, button.onClick)">\n </button>\n <s-switch\n *ngIf="switchControl"\n class="switch"\n [formControl]="switchControl"\n (click)="$event.stopPropagation()">\n </s-switch>\n <s-switch\n *ngIf="!switchControl && switch"\n class="switch"\n [disabled]="disabled"\n [(ngModel)]="switch.state"\n (click)="$event.stopPropagation()"\n (valueChanged)="switch.onChange($event)">\n </s-switch>\n </div>\n </div>\n <ng-container *ngIf="cache; then cacheTemplate else cachelessTemplate"></ng-container>\n</div>\n\n<ng-template #cacheTemplate>\n <div\n class="content"\n [@cacheAnimation]="isOpen"\n [@.disabled]="isContentAnimationDisabled"\n (@cacheAnimation.start)="onContentAnimationStart()"\n (@cacheAnimation.done)="onContentAnimationDone()">\n <div class="content-container">\n <ng-container [ngTemplateOutlet]="panelContent"></ng-container>\n </div>\n </div>\n</ng-template>\n\n<ng-template #cachelessTemplate>\n <div\n *ngIf="isOpen"\n class="content"\n @cachelessAnimation\n [@.disabled]="isContentAnimationDisabled"\n (@cachelessAnimation.start)="onContentAnimationStart()"\n (@cachelessAnimation.done)="onContentAnimationDone()">\n <div class="content-container">\n <ng-container [ngTemplateOutlet]="panelContent"></ng-container>\n </div>\n </div>\n</ng-template>\n\n<ng-template #panelContent>\n <ng-content></ng-content>\n</ng-template>\n',animations:[n.trigger("cachelessAnimation",[n.transition(":enter",[n.style({height:"0"}),n.animate("200ms linear",n.style({height:"*"}))]),n.transition(":leave",[n.style({height:"*"}),n.animate("200ms linear",n.style({height:"0"}))])]),n.trigger("cacheAnimation",[n.state("true",n.style({height:"*"})),n.state("false",n.style({height:"0px"})),n.transition("* => *",n.animate("200ms"))])],styles:['.accordion-panel{border-bottom:1px solid #c1c1cc}.accordion-panel .header{-ms-flex-align:center;align-items:center;background-color:#fff;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:16px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.accordion-panel .header .header__title{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.accordion-panel .header .header__title .icon{color:#212533;font-size:1rem;margin-right:12px}.accordion-panel .header .header__title .exclamation-icon{font-size:1rem;margin-right:12px}.accordion-panel .header .header__title .exclamation-icon-red{color:#c13018}.accordion-panel .header .header__title .exclamation-icon-orange{color:#f8931f}.accordion-panel .header .header__title .exclamation-icon-yellow{color:#fcbf10}.accordion-panel .header .header__title .exclamation-icon-green{color:#0c9348}.accordion-panel .header .header__title .exclamation-icon-blue{color:#428bca}.accordion-panel .header .header__title .title{font-family:"Open Sans" sans-serif;font-size:.875rem;font-weight:700;line-height:150%;text-transform:uppercase}.accordion-panel .header .header__controls{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;margin-left:16px}.accordion-panel .header .header__controls .icon-button{color:#212533;cursor:pointer;font-size:1rem;margin-left:12px;padding:4px;border:none;background:0 0}.accordion-panel .header .header__controls .switch{padding-left:16px}.accordion-panel .content{background-color:#fff;overflow:hidden}.accordion-panel .content .content-container{margin:20px}.accordion-panel--open .header{background-color:#eeebf2;border-bottom:1px solid #c1c1cc}.accordion-panel--disabled .header{cursor:auto}.accordion-panel--disabled .header .header__title .icon,.accordion-panel--disabled .header .header__title .title{color:#c1c1cc}.accordion-panel--disabled .header .header__controls .icon-button{color:#c1c1cc;cursor:auto}.accordion-panel--disabled .exclamation-icon{opacity:.5}']})],e)}(),ye=function(){function e(){this.multiple=!1,this._unsubscribe$=new o.Subject,this._panels=[]}return e.prototype.ngAfterContentInit=function(){this._panels=this.panelsComponents.toArray(),this._openSubs=new Array(this._panels.length),this._setBehavior(this.multiple),this._setupTabs()},e.prototype.ngOnChanges=function(e){e.multiple&&this._setBehavior(e.multiple.currentValue)},e.prototype.ngOnDestroy=function(){this._unsubscribe$.next(),this._unsubscribe$.complete()},e.prototype._setupTabs=function(){var e;if((null===(e=this._panels)||void 0===e?void 0:e.length)&&void 0!==this.activeIndex&&null!==this.activeIndex){var t=this._panels[this.activeIndex];if(!t)throw new Error("activeIndex does not represent any panel.");t.disabled||(this._panels[this.activeIndex].isOpen=!0)}},e.prototype._closeOtherTabs=function(e){this._panels.forEach((function(t,n){n!==e&&(t.isOpen=!1)}))},e.prototype._setBehavior=function(e){e?this._enableMultiplePanelBehavior():this._enableSinglePanelBehavior()},e.prototype._enableSinglePanelBehavior=function(){var e=this;this._panels.forEach((function(t,n){e._openSubs[n]=t.panelOpened.pipe(i.takeUntil(e._unsubscribe$)).subscribe((function(){e._closeOtherTabs(n)}))}))},e.prototype._enableMultiplePanelBehavior=function(){var e=this;this._panels.forEach((function(t,n){e._openSubs[n]&&e._openSubs[n].unsubscribe()}))},pe([t.Input()],e.prototype,"activeIndex",void 0),pe([t.Input()],e.prototype,"multiple",void 0),pe([t.ContentChildren(be)],e.prototype,"panelsComponents",void 0),e=pe([t.Component({selector:"s-accordion",template:'<div class="accordion">\n <ng-content></ng-content>\n</div>',styles:[".accordion{border:1px solid #c1c1cc;border-radius:6px;overflow:hidden}"]})],e)}(),xe=function(){function e(){this.readonly=!1,this.disabled=!1,this.valueChanged=new t.EventEmitter,this.value=!1}var n;return n=e,e.prototype.onFocusIn=function(){this.switchRef.nativeElement.classList.add("switch--focus")},e.prototype.onFocusOut=function(){this.switchRef.nativeElement.classList.remove("switch--focus")},e.prototype.writeValue=function(e){this.disabled||(this.value=e)},e.prototype.registerOnChange=function(e){this._onChange=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.toggleCheck=function(){this.value=!this.value,this.valueChanged.emit(this.value),this._onChange&&this._onChange(this.value),this._onTouched&&this._onTouched(this.value)},pe([t.Input()],e.prototype,"readonly",void 0),pe([t.Input()],e.prototype,"trueLabel",void 0),pe([t.Input()],e.prototype,"falseLabel",void 0),pe([t.Input()],e.prototype,"inputId",void 0),pe([t.Input()],e.prototype,"inputName",void 0),pe([t.Input()],e.prototype,"disabled",void 0),pe([t.Output()],e.prototype,"valueChanged",void 0),pe([t.Input()],e.prototype,"value",void 0),pe([t.ViewChild("switch",{static:!0})],e.prototype,"switchRef",void 0),pe([t.HostListener("focusin")],e.prototype,"onFocusIn",null),pe([t.HostListener("focusout")],e.prototype,"onFocusOut",null),e=n=pe([t.Component({selector:"s-switch",template:'<div #switch class="switch" [ngClass]="{ \'switch--disabled\': disabled }">\n <label class="switch-toggle">\n <input\n #input\n [id]="inputId"\n [name]="inputName"\n type="checkbox"\n [checked]="value"\n [disabled]="readonly || disabled"\n (change)="toggleCheck()">\n <span class="slider"></span>\n </label>\n <span class="label">\n {{ value ? trueLabel : falseLabel }}\n </span>\n</div>',providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:['.switch{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}.switch .switch-toggle{display:inline-block;height:24px;margin:0;position:relative;width:40px}.switch .switch-toggle input{height:0;opacity:0;width:0}.switch .switch-toggle input:checked+.slider{background-color:#428bca;border-radius:15px}.switch .switch-toggle input:checked+.slider:before{transform:translateX(16px)}.switch .switch-toggle .slider{background-color:#a5a5b2;border-radius:15px;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:.4s}.switch .switch-toggle .slider:before{background-color:#fff;border-radius:50%;bottom:4px;content:"";height:16px;left:4px;position:absolute;transition:.4s;width:16px}.switch .label{color:#212533;font-family:"Open Sans" sans-serif;font-size:.875rem;font-weight:400;line-height:150%;margin-left:12px}.switch--disabled{opacity:.5}.switch--focus .switch-toggle .slider{box-shadow:0 0 0 2px #428BCA80}']})],e)}(),_e=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[xe],exports:[xe]})],e)}();(ve=e.TooltipPosition||(e.TooltipPosition={})).Top="top",ve.Bottom="bottom",ve.Left="left",ve.Right="right";var we,Ce,ke=function(){function n(){this.tooltip="",this.position=e.TooltipPosition.Top,this.left=0,this.top=0,this.visible=!1,this.escape=!1}return n=pe([t.Component({template:'<div\n id="tooltip"\n class="tooltip"\n [ngClass]="[\'tooltip--\' + position]"\n [class.tooltip--visible]="visible"\n [ngStyle]="{\n \'left\': left + \'px\',\n \'top\': top + \'px\'\n }">\n <ng-template\n *ngIf="escape;\n then escapeTemplate;\n else noEscapeTemplate">\n </ng-template> \n</div>\n\n<ng-template #noEscapeTemplate>\n <span\n class="tooltip__content"\n [innerHTML]="tooltip">\n </span>\n</ng-template>\n\n<ng-template #escapeTemplate>\n <span class="tooltip__content">\n {{ tooltip }}\n </span>\n</ng-template>',styles:['.tooltip{background-color:#000;border-radius:2px;color:#fff;font-family:"Open Sans",sans-serif;font-size:14px;font-weight:400;line-height:21px;opacity:0;padding:8px;transform:translateX(-50%);text-align:center;max-width:220px;word-wrap:break-word;z-index:99999;position:absolute}.tooltip--visible{opacity:1;transition:opacity .3s}.tooltip::before{content:"";height:0;position:absolute;width:0}.tooltip--bottom{margin-top:5px;transform:translateX(-50%)}.tooltip--bottom::before{border:5px solid transparent;border-bottom:5px solid #000;left:calc(50% - 5px);top:-10px}.tooltip--top{margin-bottom:5px;transform:translate(-50%,-100%)}.tooltip--top::before{border:5px solid transparent;border-top:5px solid #000;left:calc(50% - 5px);bottom:-10px}.tooltip--left{margin-right:28px;transform:translate(calc(-100% - 7px),-50%)}.tooltip--left::before{border:5px solid transparent;border-left:5px solid #000;right:-10px;bottom:calc(50% - 5px)}.tooltip--right{margin-left:7px;transform:translateY(-50%)}.tooltip--right::before{border:5px solid transparent;border-right:5px solid #000;left:-10px;bottom:calc(50% - 5px)}']})],n)}(),Ie=function(){function e(){}return e.prototype.debounce=function(e,t){var n,o=this;return void 0===t&&(t=300),function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];clearTimeout(n),n=setTimeout((function(){e.apply(o,i)}),t)}},e.prototype.debounceLeading=function(e,t){var n,o=this;return void 0===t&&(t=300),function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];n||e.apply(o,i),clearTimeout(n),n=setTimeout((function(){n=null}),t)}},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e},token:e,providedIn:"root"}),e=pe([t.Injectable({providedIn:"root"})],e)}(),Se=function(e){return null==e},Te=function(e,t){var n=e.clientX,o=e.clientY;return n<t.left||n>=t.right||o<t.top||o>=t.bottom},Ee=function(e){var t=e.getBoundingClientRect(),n=window.scrollY||document.documentElement.scrollTop,o=window.scrollX||document.documentElement.scrollLeft,i=t.height,r=t.width,a=i/2,s=r/2;return{top:t.top+n,left:t.left+o,right:t.left+o+r,elementHeight:i,elementWidth:r,elementVerticalCenter:a,elementHorizontalCenter:s}},Me=function(e){var t=window.innerWidth,n=e.getBoundingClientRect();return{freeDistanceToBottom:window.innerHeight-n.bottom,freeDistanceToTop:n.top,freeDistanceToLeft:n.left,freeDistanceToRight:t-n.right}},Le=function(e){return"function"==typeof structuredClone?structuredClone(e):JSON.parse(JSON.stringify(e))};!function(e){e.Pressing="pressing",e.Tap="tap"}(we||(we={})),function(e){e.Focus="focus",e.Hover="hover"}(Ce||(Ce={}));var Fe,Oe,Re=function(){function n(t,n,o,i,r,a){var s=this;this.elementRef=t,this.appRef=n,this.componentFactoryResolver=o,this.injector=i,this.debounceUtils=r,this.renderer=a,this.position=e.TooltipPosition.Top,this.showDelay=500,this.tooltipEvent=Ce.Hover,this.escape=!1,this.visible=!0,this.mobileBehavior=we.Pressing,this.componentRef=null,this.tooltipCreatedByFocus=!1,this.debounceCreateTooltipFunction=this.debounceUtils.debounceLeading((function(){return s._createTooltip(!0,!0)}))}return n.prototype.ngOnInit=function(){this.validatePosition(),this.updateTooltipVisibilityWhenFocusOnInput()},n.prototype.ngOnDestroy=function(){this.destroy()},n.prototype.updateTooltipVisibilityWhenFocusOnInput=function(){var e=this;if(this.focusedInputRef){var t=this.focusedInputRef,n=this.getIconFromFocusedInput();this.renderer.listen(t,"focus",(function(){n&&(e._createTooltip(!1,!1),e.tooltipCreatedByFocus=!0)})),this.renderer.listen(t,"blur",(function(){n&&(e.removeTooltip(n),e.destroy(),e.tooltipCreatedByFocus=!1)}))}},n.prototype.getIconFromFocusedInput=function(){return this.elementRef.nativeElement},n.prototype.removeTooltip=function(e){var t=e.querySelector(".tooltip");t&&t.remove()},n.prototype.onClick=function(){this.tooltipEvent!==Ce.Hover||navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/iPhone/i)||this.destroy()},n.prototype.onFocus=function(){this.tooltipEvent===Ce.Focus&&this._createTooltip(!0,!0)},n.prototype.onBlur=function(){this.tooltipEvent===Ce.Focus&&this.destroy()},n.prototype.onMouseEnter=function(){(this.tooltipEvent===Ce.Hover||this.focusedInputRef)&&this.debounceCreateTooltipFunction()},n.prototype.onMouseLeave=function(){this.tooltipEvent!==Ce.Hover&&!this.focusedInputRef||this.tooltipCreatedByFocus||this.destroy()},n.prototype.onTouchStart=function(){var e=this;if(this.tooltipEvent===Ce.Hover){window.clearTimeout(this.touchTimeout);var t=this.mobileBehavior===we.Pressing?this.showDelay:0;this.touchTimeout=window.setTimeout((function(){e._createTooltip(!0,!0)}),t)}},n.prototype.onTouchEnd=function(){this.tooltipEvent===Ce.Hover&&this.mobileBehavior===we.Pressing&&(window.clearTimeout(this.touchTimeout),this.destroy())},n.prototype.validatePosition=function(){if(![e.TooltipPosition.Top,e.TooltipPosition.Right,e.TooltipPosition.Bottom,e.TooltipPosition.Left].includes(this.position))throw this.position=e.TooltipPosition.Top,new Error("Tooltip "+this.position+" position is unexpected")},n.prototype.getDomElement=function(){var e=this.componentFactoryResolver.resolveComponentFactory(ke);return this.componentRef=e.create(this.injector),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.rootNodes[0]},n.prototype._createTooltip=function(e,t){var n,o=this;void 0===e&&(e=!1),void 0===t&&(t=!0);var i=(null===(n=this.tooltip)||void 0===n?void 0:n.length)>0,r=null!==this.componentRef;if(i&&!r){var a=this.getDomElement();document.body.appendChild(a),this.tooltipDivElement=a.querySelector(".tooltip"),this.setTooltipComponentProperties();var s=e?this.showDelay:0;setTimeout((function(){o.showTooltip()}),s),this.renderer.listen(window,"scroll",(function(){o.setTooltipPositionProperty()})),t&&this.displayTime&&setTimeout((function(){o.destroy()}),this.displayTime)}},n.prototype.showTooltip=function(){null!==this.componentRef&&(this.componentRef.instance.visible=this.visible,this.setTooltipPositionProperty())},n.prototype.setTooltipPositionProperty=function(){var t=this;if(this.componentRef){var n=this.elementRef.nativeElement.getBoundingClientRect(),o=n.left,i=n.right,r=Ee(this.tooltipDivElement),a=Me(this.elementRef.nativeElement),s=Ee(this.elementRef.nativeElement),l=[e.TooltipPosition.Left,e.TooltipPosition.Right].includes(this.position)?r.elementWidth:r.elementHorizontalCenter,c=a.freeDistanceToTop>r.elementHeight,p=a.freeDistanceToLeft>l,d=a.freeDistanceToRight>l,u=a.freeDistanceToBottom>r.elementHeight,m=s.top+s.elementVerticalCenter,h=[{pos:e.TooltipPosition.Top,check:function(){return c&&p&&d},set:function(){return{left:o+(i-o)/2,top:s.top-5}}},{pos:e.TooltipPosition.Bottom,check:function(){return u&&p&&d},set:function(){return{left:o+(i-o)/2,top:s.top+s.elementHeight}}},{pos:e.TooltipPosition.Left,check:function(){return p&&c&&u},set:function(){return{left:o,top:m}}},{pos:e.TooltipPosition.Right,check:function(){return d&&c&&u},set:function(){return{left:i,top:m}}}],f=h.find((function(e){return e.pos===t.position})),g=f,v=f.check();if(v)g=f;else if(!v){var b=h.find((function(e){return e.check()}));b&&(g=b)}var y=g.set(),x=y.left,_=y.top;this.componentRef.instance.left=Math.round(x),this.componentRef.instance.top=Math.round(_),this.componentRef.instance.position=g.pos}},n.prototype.setTooltipComponentProperties=function(){null!==this.componentRef&&(this.componentRef.instance.tooltip=this.tooltip,this.componentRef.instance.escape=this.escape)},n.prototype.destroy=function(){Se(this.componentRef)||(window.clearTimeout(this.showTimeout),this.appRef.detachView(this.componentRef.hostView),this.componentRef.destroy(),this.componentRef=null,this.tooltipDivElement=null)},n.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ApplicationRef},{type:t.ComponentFactoryResolver},{type:t.Injector},{type:Ie},{type:t.Renderer2}]},pe([t.Input("sTooltip")],n.prototype,"tooltip",void 0),pe([t.Input("tooltipPosition")],n.prototype,"position",void 0),pe([t.Input()],n.prototype,"showDelay",void 0),pe([t.Input()],n.prototype,"displayTime",void 0),pe([t.Input()],n.prototype,"tooltipEvent",void 0),pe([t.Input()],n.prototype,"escape",void 0),pe([t.Input()],n.prototype,"visible",void 0),pe([t.Input()],n.prototype,"mobileBehavior",void 0),pe([t.Input()],n.prototype,"focusedInputRef",void 0),pe([t.HostListener("click"),t.HostListener("keydown")],n.prototype,"onClick",null),pe([t.HostListener("focus")],n.prototype,"onFocus",null),pe([t.HostListener("blur")],n.prototype,"onBlur",null),pe([t.HostListener("mouseenter")],n.prototype,"onMouseEnter",null),pe([t.HostListener("mouseleave"),t.HostListener("wheel")],n.prototype,"onMouseLeave",null),pe([t.HostListener("touchstart")],n.prototype,"onTouchStart",null),pe([t.HostListener("touchend")],n.prototype,"onTouchEnd",null),n=pe([t.Directive({selector:"[sTooltip]"})],n)}(),Ae=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[ke,Re],exports:[Re]})],e)}(),De=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,Ae,_e],declarations:[ye,be],exports:[ye,be]})],e)}(),Pe=function(){function e(){this.severity="info",this.closable=!0,this.close=new t.EventEmitter,this._isOpen=!0}return Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!0,configurable:!0}),e.prototype.closeAlert=function(){this._isOpen=!1},e.prototype.showAlert=function(){this._isOpen=!0},e.prototype.onClose=function(){this.close.emit(),this.closeAlert()},pe([t.Input()],e.prototype,"severity",void 0),pe([t.Input()],e.prototype,"summary",void 0),pe([t.Input()],e.prototype,"detail",void 0),pe([t.Input()],e.prototype,"closable",void 0),pe([t.Output()],e.prototype,"close",void 0),e=pe([t.Component({selector:"s-alert",template:"<div class=\"alert\" [ngClass]=\"{\n 'alert--info': severity === 'info',\n 'alert--success': severity === 'success',\n 'alert--warning': severity === 'warning',\n 'alert--error': severity === 'error'\n}\">\n <div class=\"content\">\n <div class=\"icon-container\">\n <i class=\"fas fa-info\" [ngClass]=\"{\n 'fa-info': severity === 'info',\n 'fa-check': severity === 'success',\n 'fa-exclamation-triangle': severity === 'warning',\n 'fa-times': severity === 'error'\n }\"></i>\n </div>\n <div class=\"text-container\">\n <div class=\"text\">\n <span *ngIf=\"summary\" class=\"summary\">{{ summary }}</span>\n <span *ngIf=\"detail\" class=\"detail\">{{ detail }}</span>\n </div>\n </div>\n </div>\n <button *ngIf=\"closable\" class=\"close-option\" (click)=\"onClose()\">\n <i class=\"fas fa-times\"></i>\n </button>\n</div>",styles:['.alert{-ms-flex-align:center;align-items:center;background-color:#f1f7f8;border-left:4px solid #428bca;border-radius:4px;box-shadow:1px 1px 2px rgba(0,0,0,.2);display:-ms-flexbox;display:flex;gap:16px;-ms-flex-pack:justify;justify-content:space-between;margin:8px;padding:12px 16px}.alert .content{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;gap:16px}.alert .content .icon-container{-ms-flex-align:center;align-items:center;background-color:#428bca;border-radius:50%;color:#fff;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-negative:0;flex-shrink:0;height:40px;-ms-flex-pack:center;justify-content:center;width:40px}.alert .content .text-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:16px}.alert .content .text-container .text{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:start;justify-content:flex-start}.alert .content .text-container .text .detail,.alert .content .text-container .text .summary{color:#212533;font-family:"Open Sans",sans-serif;font-size:14px}.alert .content .text-container .text .summary{font-weight:700}.alert .close-option{background-color:transparent;border:none;color:#212533;cursor:pointer;font-size:16px;padding:4px}.alert--info{background-color:#f1f7f8;border-color:#428bca}.alert--info .content .icon-container{background-color:#428bca;color:#fff}.alert--success{background-color:#e0f0f0;border-color:#0c9348}.alert--success .content .icon-container{background-color:#0c9348;color:#fff}.alert--warning{background-color:#fef4e3;border-color:#fcbf10}.alert--warning .content .icon-container{background-color:#fcbf10;color:#212533}.alert--error{background-color:#fef0f0;border-color:#c13018}.alert--error .content .icon-container{background-color:#c13018;color:#fff}']})],e)}(),Ve=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[Pe],exports:[Pe]})],e)}();(Fe=e.BadgeColors||(e.BadgeColors={})).Red="red",Fe.Orange="orange",Fe.Yellow="yellow",Fe.Blue="blue",Fe.Green="green",Fe.Gray="gray",function(e){e.Pill="pill",e.Chip="chip"}(Oe||(Oe={}));var Be,Ne,ze=function(){function n(){this.selectable=!1,this.selected=new t.EventEmitter}return n.prototype.onClick=function(){this.selected.emit(this.text)},n.prototype.ngOnInit=function(){this._setDefaultValues()},n.prototype._setDefaultValues=function(){var t,n,o;this.type=null!==(t=this.type)&&void 0!==t?t:Oe.Pill,this.color=null!==(n=this.color)&&void 0!==n?n:e.BadgeColors.Blue,this.iconPosition=null!==(o=this.iconPosition)&&void 0!==o?o:"left"},pe([t.Input()],n.prototype,"type",void 0),pe([t.Input()],n.prototype,"color",void 0),pe([t.Input()],n.prototype,"title",void 0),pe([t.Input()],n.prototype,"text",void 0),pe([t.Input()],n.prototype,"selectable",void 0),pe([t.Input()],n.prototype,"iconClass",void 0),pe([t.Input()],n.prototype,"iconPosition",void 0),pe([t.Input()],n.prototype,"infoSign",void 0),pe([t.Output()],n.prototype,"selected",void 0),pe([t.HostListener("click")],n.prototype,"onClick",null),n=pe([t.Component({selector:"s-badge",template:"<span\n class=\"badge\"\n [ngClass]=\"{\n 'badge--pill': type === 'pill',\n 'badge--chip': type === 'chip', \n 'badge--red': color === 'red',\n 'badge--orange': color === 'orange',\n 'badge--yellow': color === 'yellow',\n 'badge--blue': color === 'blue',\n 'badge--green': color === 'green',\n 'badge--gray': color === 'gray',\n 'badge--selectable': selectable\n }\">\n <ng-container *ngIf=\"infoSign\">\n <span *sInfoSign=\"infoSign.text; displayTime: infoSign.displayTime\"></span>\n </ng-container>\n <span\n *ngIf=\"iconClass\"\n [class]=\"'badge-icon ' + iconClass\"\n [ngClass]=\"{\n 'badge-icon--left': iconPosition === 'left' && text,\n 'badge-icon--right': iconPosition === 'right' && text\n }\">\n </span>\n <span *ngIf=\"title\" class=\"badge-title\">{{ title }}:</span>\n <span class=\"badge-text\">{{ text }}</span>\n</span>",styles:['.badge{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;gap:8px;min-height:1.25rem;-ms-flex-pack:center;justify-content:center;min-width:20px;padding:0 .5rem}.badge--chip{border-radius:4px}.badge--pill{border-radius:12px}.badge ::ng-deep .info-sign .info-sign__icon{padding:0!important}.badge .badge-title{color:#212533;font-family:"Open Sans",sans-serif;font-size:12px;font-weight:700;line-height:150%}.badge .badge-text{color:#212533;font-family:"Open Sans",sans-serif;font-size:.75rem;font-weight:400;line-height:150%}.badge .badge-icon{color:#212533;font-size:10px}.badge .badge-icon--right{-ms-flex-order:2;order:2}.badge--red{background-color:#fcd2d2;border:1px solid #c13018}.badge--orange{background-color:#fce3ba;border:1px solid #f8931f}.badge--yellow{background-color:#fef4e3;border:1px solid #fcbf10}.badge--blue{background-color:#d5e8ec;border:1px solid #428bca}.badge--green{background-color:#e6ffb3;border:1px solid #0c9348}.badge--gray{background-color:#e5eaea;border:1px solid #697882}.badge--selectable{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}']})],n)}(),Ue=function(){function e(){}return e=pe([t.Component({selector:"s-info-sign-component",template:'<span class="info-sign">\n <span *ngTemplateOutlet="templateRef"></span>\n <i\n class="info-sign__icon fa fa-info-circle"\n aria-hidden="true"\n [sTooltip]="tooltip"\n [escape]="false"\n tooltipPosition="top"\n [displayTime]="displayTime"\n mobileBehavior="tap"\n showDelay="0"\n [tooltipEvent]="focusedInputRef ? \'focus\' : \'hover\'"\n [focusedInputRef]="focusedInputRef">\n </i>\n</span>\n',styles:[".info-sign{-ms-flex-align:baseline;align-items:baseline;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:start;justify-content:flex-start}.info-sign .info-sign__icon{padding:0 12px}"]})],e)}(),je=function(){function e(e,t,n){this.templateRef=e,this.viewContainer=t,this.componentFactoryResolver=n,this.displayTime=5e3,this.useFocusedInputRef=!0}return e.prototype.ngOnChanges=function(){this.createInfoSign()},e.prototype.ngOnInit=function(){this.createInfoSign()},e.prototype.ngOnDestroy=function(){this.componentRef&&this.componentRef.destroy()},e.prototype.createInfoSign=function(){if(!this.componentRef&&this.sInfoSign){this.viewContainer.clear();var e=this.componentFactoryResolver.resolveComponentFactory(Ue);this.componentRef=this.viewContainer.createComponent(e);var t=this.componentRef.instance;t.templateRef=this.templateRef,t.tooltip=this.sInfoSign,t.displayTime=this.displayTime,this.useFocusedInputRef&&(t.focusedInputRef=this.focusedInputRef)}else this.componentRef&&this.sInfoSign?this.componentRef.instance.tooltip=this.sInfoSign:(this.viewContainer.clear(),this.viewContainer.createEmbeddedView(this.templateRef))},e.ctorParameters=function(){return[{type:t.TemplateRef},{type:t.ViewContainerRef},{type:t.ComponentFactoryResolver}]},pe([t.Input()],e.prototype,"sInfoSign",void 0),pe([t.Input("sInfoSignDisplayTime")],e.prototype,"displayTime",void 0),pe([t.Input("sInfoSignFocusedInputRef")],e.prototype,"focusedInputRef",void 0),pe([t.Input("sInfoSignUseFocusedInputRef")],e.prototype,"useFocusedInputRef",void 0),e=pe([t.Directive({selector:"[sInfoSign]"})],e)}(),He=function(){function e(){}return e=pe([t.NgModule({imports:[Ae,r.CommonModule],declarations:[je,Ue],exports:[je],entryComponents:[Ue]})],e)}(),$e=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,s.RouterModule,He],declarations:[ze],exports:[ze,s.RouterModule]})],e)}(),Ge=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","Dez"],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]}))},qe=function(e){void 0===e&&(e={}),this.thousandsSeparator=".",this.decimalSeparator=",",this.currencySymbol="R$",Object.assign(this,e)},We=function(e){var t=this;void 0===e&&(e={}),this.calendar=new Ge,this.number=new qe,Object.keys(e).forEach((function(n){return t[n]=e[n]||t[n]}))},Ye=new Ge,Ke=new qe,Ze=new We,Xe=d,Je=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?o.of(this.localeOptions):this.getLocaleConfig().pipe(i.tap((function(t){return e.localeOptions=ce(ce({},t),{locale:e.locale})})))},e.prototype.getLocale=function(){var e=this;return this.locale?o.of(this.locale):o.from(this.getUserData()).pipe(i.map((function(t){return e.locale=t.locale||t.tenantLocale||"pt-BR",e.locale})))},e.prototype.getLocaleOptions=function(){return this.localeOptions},e.prototype.getUserData=function(){try{return o.of(JSON.parse(this.cookieService.get("com.senior.token")))}catch(e){return console.warn("Unable to obtain user locale from cookie, calling getUser"),p.user.getUserData()}},e.prototype.getLocaleConfig=function(){var e=this;return this.getLocale().pipe(i.switchMap((function(t){return Xe.locale(t),e.http.get(e.localeOptionsAddress+"/"+e.localeOptionsVersion+"/"+t+".json").pipe(i.map((function(e){return new We(e)})))})),i.catchError((function(e){return console.warn("Error getting locale configuration. Using fallback.",e),o.of(new We)})))},e.prototype.getGroupingSeparator=function(){var e,t=new Intl.NumberFormat(this.locale,{style:"decimal",useGrouping:!0,minimumFractionDigits:5,maximumFractionDigits:5});return this.locale.includes("fr")?" ":null===(e=t.formatToParts(1e3).find((function(e){return"group"===e.type})))||void 0===e?void 0:e.value},e.prototype.getDecimalSeparator=function(){var e;return null===(e=new Intl.NumberFormat(this.locale,{style:"decimal",minimumFractionDigits:5,maximumFractionDigits:5}).formatToParts(1.2).find((function(e){return"decimal"===e.type})))||void 0===e?void 0:e.value},e.ctorParameters=function(){return[{type:c.HttpClient},{type:u.CookieService}]},e=pe([t.Injectable()],e)}(),Qe=function(){function e(e){this.localeService=e}return e.prototype.transform=function(e,t){return null!=e?this.applyMask(e,t):o.of(e)},e.prototype.applyMask=function(e,t){return this.localeService.get().pipe(i.map((function(n){var o,i,r,a,s,c,p,d,u,m,h,f={prefix:null!==(r=null!==(o=null==t?void 0:t.prefix)&&void 0!==o?o:null===(i=null==n?void 0:n.number)||void 0===i?void 0:i.currencySymbol)&&void 0!==r?r:"R$",thousandsSeparator:null!==(c=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!==c?c:".",decimalSeparator:null!==(u=null!==(p=null==t?void 0:t.decimalSeparator)&&void 0!==p?p:null===(d=null==n?void 0:n.number)||void 0===d?void 0:d.decimalSeparator)&&void 0!==u?u:",",scale:null!==(m=null==t?void 0:t.scale)&&void 0!==m?m:2,allowNegative:null===(h=null==t?void 0:t.allowNegative)||void 0===h||h},g=!new ae(e).isNaN();return l.applyMask(e,f,g)})))},e.ctorParameters=function(){return[{type:Je}]},e=pe([t.Pipe({name:"localizedBignumber"})],e)}(),et=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return le(n,e),n.prototype.transform=function(t,n){return e.prototype.transform.call(this,t,n)},n=pe([t.Pipe({name:"localizedBignumberImpure",pure:!1})],n)}(Qe),tt=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,t)||this;return n.scale=2,n}return le(t,e),t}(qe),nt=function(){function e(e){this.localeService=e}return e.prototype.transform=function(e,t){return t||(t=new tt),null!=e?this.applyMask(e,t):o.of(e)},e.prototype.applyMask=function(e,t){return this.localeService.get().pipe(i.map((function(n){var o=ce(ce({},n.number),t),i=o.scale,r=o.currencySymbol,a=o.thousandsSeparator,s=o.decimalSeparator,l=Number(e).toFixed(i),c=l.replace(/[^0-9]/g,""),p=c.slice(0,c.length-i).replace(/^0*/g,"").replace(/\B(?=(\d{3})+(?!\d))/g,a)||"0",d=c.slice(c.length-i),u=i?p+s+d:p,m=!Number(c);return""+(l.includes("-")&&!m?"-":"")+r+u})))},e.ctorParameters=function(){return[{type:Je}]},e=pe([t.Pipe({name:"localizedCurrency"})],e)}(),ot=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return le(n,e),n.prototype.transform=function(t,n){return void 0===n&&(n=new tt),e.prototype.transform.call(this,t,n)},n=pe([t.Pipe({name:"localizedCurrencyImpure",pure:!1})],n)}(nt),it=d,rt=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(i.map((function(){return e?it(e).format(t):e})))},e.ctorParameters=function(){return[{type:Je}]},e=pe([t.Pipe({name:"localizedDate"})],e)}(),at=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return le(n,e),n=pe([t.Pipe({name:"localizedDateImpure",pure:!1})],n)}(rt),st=function(){function e(e){this.localeService=e}return e.prototype.transform=function(e,t){return o.from(this.localeService.getLocale()).pipe(i.map((function(n){var o=Number(e);if(e||!isNaN(o))return new Intl.NumberFormat(n,{minimumFractionDigits:t||0}).format(Number(e))})))},e.ctorParameters=function(){return[{type:Je}]},e=pe([t.Pipe({name:"localizedNumber"})],e)}(),lt=d,ct=function(){function e(e){this.localeService=e}return e.prototype.transform=function(e,t){return void 0===t&&(t="LTS"),this.localeService.get().pipe(i.map((function(){return e?lt(e,"HH:mm:ss").format(t):e})))},e.ctorParameters=function(){return[{type:Je}]},e=pe([t.Pipe({name:"localizedTime"})],e)}(),pt=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return le(n,e),n=pe([t.Pipe({name:"localizedTimeImpure",pure:!1})],n)}(ct),dt=function(){function e(e){this.localeService=e,this.currencies={KHR:{precision:12,scale:2},SSP:{precision:12,scale:2},XCD:{precision:12,scale:2},EGP:{precision:12,scale:2},KWD:{precision:12,scale:3},YER:{precision:12,scale:2},HUF:{precision:12,scale:2},MXN:{precision:12,scale:2},MYR:{precision:12,scale:2},ZWL:{precision:12,scale:2},MUR:{precision:12,scale:2},DKK:{precision:12,scale:2},NOK:{precision:12,scale:2},DJF:{precision:12,scale:0},CRC:{precision:12,scale:2},BND:{precision:12,scale:2},NAD:{precision:12,scale:2},MKD:{precision:12,scale:2},CDF:{precision:12,scale:2},GNF:{precision:12,scale:0},EUR:{precision:12,scale:2},OMR:{precision:12,scale:3},CLP:{precision:12,scale:0},BSD:{precision:12,scale:2},TOP:{precision:12,scale:2},IRR:{precision:12,scale:2},BGN:{precision:12,scale:2},BZD:{precision:12,scale:2},CNY:{precision:12,scale:2},FJD:{precision:12,scale:2},SRD:{precision:12,scale:2},SOS:{precision:12,scale:2},GYD:{precision:12,scale:2},VUV:{precision:12,scale:0},MWK:{precision:12,scale:2},MRU:{precision:12,scale:2},LSL:{precision:12,scale:2},ERN:{precision:12,scale:2},BMD:{precision:12,scale:2},WST:{precision:12,scale:2},LRD:{precision:12,scale:2},GMD:{precision:12,scale:2},ARS:{precision:12,scale:2},ZAR:{precision:12,scale:2},RSD:{precision:12,scale:2},MDL:{precision:12,scale:2},USD:{precision:12,scale:2},QAR:{precision:12,scale:2},HRK:{precision:12,scale:2},GIP:{precision:12,scale:2},NPR:{precision:12,scale:2},"002":{precision:9,scale:4},PLN:{precision:12,scale:2},MAD:{precision:12,scale:2},BAM:{precision:12,scale:2},BTN:{precision:12,scale:2},BBD:{precision:12,scale:2},SHP:{precision:12,scale:2},LKR:{precision:12,scale:2},KPW:{precision:12,scale:2},LAK:{precision:12,scale:2},SZL:{precision:12,scale:2},PHP:{precision:12,scale:2},RWF:{precision:12,scale:0},ISK:{precision:12,scale:0},XOF:{precision:12,scale:0},AUD:{precision:12,scale:2},NGN:{precision:12,scale:2},KGS:{precision:12,scale:2},KYD:{precision:12,scale:2},PGK:{precision:12,scale:2},DZD:{precision:12,scale:2},XAF:{precision:12,scale:0},PEN:{precision:12,scale:2},JPY:{precision:12,scale:0},SBD:{precision:12,scale:2},UGX:{precision:12,scale:0},AMD:{precision:12,scale:2},AED:{precision:12,scale:2},ALL:{precision:12,scale:2},XPF:{precision:12,scale:0},AFN:{precision:12,scale:2},RON:{precision:12,scale:2},TND:{precision:12,scale:3},NZD:{precision:12,scale:2},JOD:{precision:12,scale:3},VND:{precision:12,scale:0},ETB:{precision:12,scale:2},PYG:{precision:12,scale:0},JMD:{precision:12,scale:2},KES:{precision:12,scale:2},IDR:{precision:12,scale:2},HKD:{precision:12,scale:2},BDT:{precision:12,scale:2},GBP:{precision:12,scale:2},AOA:{precision:12,scale:2},PKR:{precision:12,scale:2},TRY:{precision:12,scale:2},SLL:{precision:12,scale:2},CVE:{precision:12,scale:2},LYD:{precision:12,scale:3},ILS:{precision:12,scale:2},UZS:{precision:12,scale:2},CHF:{precision:12,scale:2},SVC:{precision:12,scale:2},BRL:{precision:12,scale:2},GHS:{precision:12,scale:2},CUP:{precision:12,scale:2},FKP:{precision:12,scale:2},NIO:{precision:12,scale:2},GEL:{precision:12,scale:2},TTD:{precision:12,scale:2},AAA:{precision:1,scale:1},COP:{precision:12,scale:2},MGA:{precision:12,scale:2},INR:{precision:12,scale:2},KRW:{precision:12,scale:0},HNL:{precision:12,scale:2},MMK:{precision:12,scale:2},TZS:{precision:12,scale:2},THB:{precision:12,scale:2},TMT:{precision:12,scale:2},SAR:{precision:12,scale:2},UYU:{precision:12,scale:2},BIF:{precision:12,scale:0},MVR:{precision:12,scale:2},RUB:{precision:12,scale:2},GTQ:{precision:12,scale:2},SCR:{precision:12,scale:2},IQD:{precision:12,scale:3},UAH:{precision:12,scale:2},BYN:{precision:12,scale:2},VES:{precision:12,scale:2},BOB:{precision:12,scale:2},SGD:{precision:12,scale:2},ZMW:{precision:12,scale:2},CZK:{precision:12,scale:2},TJS:{precision:12,scale:2},DOP:{precision:12,scale:2},AZN:{precision:12,scale:2},PAB:{precision:12,scale:2},STN:{precision:12,scale:2},SDG:{precision:12,scale:2},BWP:{precision:12,scale:2},BHD:{precision:12,scale:3},CAD:{precision:12,scale:2},MNT:{precision:12,scale:2},MOP:{precision:12,scale:2},HTG:{precision:12,scale:2},KZT:{precision:12,scale:2},LBP:{precision:12,scale:2},SYP:{precision:12,scale:2},TWD:{precision:12,scale:2},MZN:{precision:12,scale:2},ANG:{precision:12,scale:2},SEK:{precision:12,scale:2},KMF:{precision:12,scale:0},AWG:{precision:12,scale:2}}}return e.prototype.getCurrencySymbol=function(e){var t,n,o=e.currency;return null!==(n=null===(t=new Intl.NumberFormat(this.localeService.getLocaleOptions().locale,{style:"currency",currency:null!=o?o:"BRL",currencyDisplay:"narrowSymbol",maximumFractionDigits:5}).formatToParts(1).find((function(e){return"currency"===e.type})))||void 0===t?void 0:t.value)&&void 0!==n?n:""},e.ctorParameters=function(){return[{type:Je}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](Je))},token:e,providedIn:"root"}),e=pe([t.Injectable({providedIn:"root"})],e)}(),ut=function(){function e(e,t){this.localeService=e,this.currencyService=t}return e.prototype.instant=function(e,t){var n,o,i,r,a,s,l,c,p,d,u,m;return Se(e)?null:((t=ce(ce({},t),{locale:null!==(i=null!==(n=null==t?void 0:t.locale)&&void 0!==n?n:null===(o=this.localeService.getLocaleOptions())||void 0===o?void 0:o.locale)&&void 0!==i?i:"pt-BR",numberFormatOptions:ce(ce({useGrouping:!0},null==t?void 0:t.numberFormatOptions),{currency:"currency"===(null===(r=null==t?void 0:t.numberFormatOptions)||void 0===r?void 0:r.style)?null!==(s=null===(a=null==t?void 0:t.numberFormatOptions)||void 0===a?void 0:a.currency)&&void 0!==s?s:"BRL":void 0,currencyDisplay:"currency"===(null===(l=null==t?void 0:t.numberFormatOptions)||void 0===l?void 0:l.style)?null!==(p=null===(c=null==t?void 0:t.numberFormatOptions)||void 0===c?void 0:c.currencyDisplay)&&void 0!==p?p:"narrowSymbol":void 0,minimumFractionDigits:null!==(u=null===(d=null==t?void 0:t.numberFormatOptions)||void 0===d?void 0:d.minimumFractionDigits)&&void 0!==u?u:this.getCurrencyMinimumFractionDigits(null===(m=null==t?void 0:t.numberFormatOptions)||void 0===m?void 0:m.currency)})})).numberFormatOptions.roundingMode="trunc",new Intl.NumberFormat(t.locale,t.numberFormatOptions).format("number"===this.getType(e)||"string"===this.getType(e)?e:e.toString()))},e.prototype.getCurrencyMinimumFractionDigits=function(e){var t;return e?null===(t=this.currencyService.currencies[e.toUpperCase()])||void 0===t?void 0:t.scale:null},e.prototype.getType=function(e){if(null===e)return"null";var t=typeof e;if("object"!==t&&"function"!==t)return t;var n=e[Symbol.toStringTag];if("string"==typeof n)return n;if("function"===t&&Function.prototype.toString.call(e).startsWith("class"))return"class";var o=e.constructor.name;return"string"==typeof o&&""!==o?o:t},e.ctorParameters=function(){return[{type:Je},{type:dt}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](Je),t["ɵɵinject"](dt))},token:e,providedIn:"root"}),e=pe([t.Injectable({providedIn:"root"})],e)}(),mt=function(){function e(e,t){this.numericService=e,this.localeService=t}return e.prototype.transform=function(e,t){var n=this;return(null==t?void 0:t.locale)?o.of(this.numericService.instant(e,t)):this.localeService.getLocale().pipe(i.map((function(o){return n.numericService.instant(e,{locale:o,numberFormatOptions:null==t?void 0:t.numberFormatOptions})})))},e.ctorParameters=function(){return[{type:ut},{type:Je}]},e=pe([t.Pipe({name:"numeric"})],e)}(),ht=function(){function e(){}var n;return n=e,e.forRoot=function(){return{ngModule:n,providers:[Je,nt,rt,ct,st,ot,at,pt,Qe,et,mt]}},e.forChild=function(){return{ngModule:n}},e=n=pe([t.NgModule({imports:[r.CommonModule],exports:[nt,rt,ct,st,ot,at,pt,Qe,et,mt],declarations:[nt,rt,ct,st,ot,at,pt,Qe,et,mt]})],e)}(),ft=function(e){function n(n){var o=e.call(this,n)||this;return o.precision=15,o.scale=0,o.alignTo=l.AlignmentOptions.LEFT,o.allowNegative=!0,o.pasteRejected=new t.EventEmitter,o._angularComponentsLocaleService=n.get(Je),o.onLocaleService(),o}var o;return le(n,e),o=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.onPaste=function(e){var t,n,o=null!==(n=null===(t=e.clipboardData)||void 0===t?void 0:t.getData("text"))&&void 0!==n?n:"",i=fe(o.replace(new RegExp("\\"+this.thousandsSeparator,"g"),"").replace(this.decimalSeparator,".").split("."),2),r=i[0],a=i[1],s=void 0===a?"":a;r.replace(/\D/g,"").length+s.slice(0,this.scale).length>this.precision&&(e.preventDefault(),this.pasteRejected.emit(o))},n.prototype.onKeypress=function(e){var t=e.code;"Minus"===t||"NumpadSubtract"===t?this.allowNegative&&(this.maxLength=this._maxLength+1):"Equal"!==t&&"NumpadAdd"!==t||(this.maxLength=this._maxLength)},n.prototype.updateVariables=function(){var e;this.options={align:this.alignTo,decimalSeparator:this.decimalSeparator,thousandsSeparator:null!==(e=this.thousandsSeparator)&&void 0!==e?e:".",scale:this.scale||0,prefix:"",suffix:"",allowNegative:this.allowNegative},this.calculateMaxLength()},n.prototype.calculateMaxLength=function(){var e,t,n=this.decimalSeparator.length,o=null!==(t=null===(e=this.thousandsSeparator)||void 0===e?void 0:e.length)&&void 0!==t?t:1,i=this.precision+(this.scale?n:0);i+=Math.ceil((this.precision-(this.scale?this.scale:0))/3-1)*o,this._maxLength=i,this.maxLength=i},n.prototype.onLocaleService=function(){var e=this;this._angularComponentsLocaleService.getLocale().pipe(i.first()).subscribe((function(){var t,n;e.decimalSeparator=null!==(t=e.decimalSeparator)&&void 0!==t?t:e._angularComponentsLocaleService.getDecimalSeparator(),e.thousandsSeparator=null!==(n=e.thousandsSeparator)&&void 0!==n?n:e._angularComponentsLocaleService.getGroupingSeparator()}))},n.ctorParameters=function(){return[{type:t.Injector}]},pe([t.Input()],n.prototype,"precision",void 0),pe([t.Input()],n.prototype,"scale",void 0),pe([t.Input()],n.prototype,"decimalSeparator",void 0),pe([t.Input()],n.prototype,"thousandsSeparator",void 0),pe([t.Input()],n.prototype,"alignTo",void 0),pe([t.Input()],n.prototype,"allowNegative",void 0),pe([t.Input(),t.HostBinding("attr.placeholder")],n.prototype,"placeholder",void 0),pe([t.HostBinding("attr.maxLength")],n.prototype,"maxLength",void 0),pe([t.Output()],n.prototype,"pasteRejected",void 0),pe([t.HostListener("paste",["$event"])],n.prototype,"onPaste",null),pe([t.HostListener("keypress",["$event"])],n.prototype,"onKeypress",null),n=o=pe([t.Directive({selector:"input[sBignumberInput]",providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return o})),multi:!0}]})],n)}(l.CurrencyMaskDirective),gt=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[ft],exports:[ft]})],e)}(),vt=function(){function e(e,t){var n=this;this.activatedRoute=e,this.router=t,this.targetHomeUrl="_self",this.ngUnsubscribe=new o.Subject,this.router.events.pipe(i.takeUntil(this.ngUnsubscribe),i.filter((function(e){return e instanceof s.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===s.PRIMARY_OUTLET;return e.children.reduce((function(e,n){return ge(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=ce(ce({},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,o){return t.getMenuItem(n,o===e.length-1)})):void 0}},e.prototype.getMenuItem=function(e,t){void 0===t&&(t=!1);var n=this.getTitle(e),o=e.pathFromRoot;return{label:n,routerLink:o.slice(0,o.indexOf(e)+1).reduce((function(e,t){return ge(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,o=t.data.routeTitle;if(!o)throw new Error("No routeTitle defined for the route /"+n.path);return o},e.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},e.ctorParameters=function(){return[{type:s.ActivatedRoute},{type:s.Router}]},pe([t.Input()],e.prototype,"homeUrl",void 0),pe([t.Input()],e.prototype,"targetHomeUrl",void 0),e=pe([t.Component({selector:"s-breadcrumb",template:'<h1 class="sds-page-title">{{title}}</h1>\n<p-breadcrumb [home]="home" [model]="items"></p-breadcrumb>'})],e)}(),bt=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,h.BreadcrumbModule,s.RouterModule],declarations:[vt],exports:[vt,s.RouterModule]})],e)}();(e.ButtonAnimation||(e.ButtonAnimation={})).Rotate="rotate",(Be=e.ButtonPriority||(e.ButtonPriority={})).Default="default",Be.Primary="primary",Be.Secondary="secondary",Be.Link="link",Be.Danger="danger",(Ne=e.ButtonSize||(e.ButtonSize={})).Default="default",Ne.Small="small";var yt,xt=function(){function n(){this.minWidth="40px",this.id="s-button-"+o.nextId++,this.tooltipPosition="top",this.caret=!0,this.baseZIndex=0,this.disabled=!1,this.auxiliary=!1,this.type="button",this.priority=e.ButtonPriority.Primary,this.model=[],this.menuOptions=[],this.size=e.ButtonSize.Default,this.onClick=new t.EventEmitter}var o;return o=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,o=this.model&&this.model.length;(n||t&&o)&&(this.minWidth="80px"),n&&t&&o&&(this.minWidth="100px")},n.prototype.updateTooltipZIndex=function(){this.tooltipZIndex=this.baseZIndex+ ++f.DomHandler.zindex},n.prototype.isRotateAnimation=function(){return this.animation===e.ButtonAnimation.Rotate},n.nextId=0,pe([t.HostBinding("style.min-width")],n.prototype,"minWidth",void 0),pe([t.Input()],n.prototype,"id",void 0),pe([t.Input()],n.prototype,"label",void 0),pe([t.Input()],n.prototype,"tooltip",void 0),pe([t.Input()],n.prototype,"tooltipPosition",void 0),pe([t.Input()],n.prototype,"iconClass",void 0),pe([t.Input()],n.prototype,"rightIconClass",void 0),pe([t.Input()],n.prototype,"caret",void 0),pe([t.Input()],n.prototype,"styleClass",void 0),pe([t.Input()],n.prototype,"baseZIndex",void 0),pe([t.Input()],n.prototype,"disabled",void 0),pe([t.Input()],n.prototype,"auxiliary",void 0),pe([t.Input()],n.prototype,"type",void 0),pe([t.Input()],n.prototype,"priority",void 0),pe([t.Input()],n.prototype,"model",void 0),pe([t.Input()],n.prototype,"menuOptions",void 0),pe([t.Input()],n.prototype,"size",void 0),pe([t.Input()],n.prototype,"slide",void 0),pe([t.Input()],n.prototype,"animation",void 0),pe([t.Input()],n.prototype,"badge",void 0),pe([t.Input()],n.prototype,"iconColor",void 0),pe([t.Output()],n.prototype,"onClick",void 0),pe([t.ViewChild(g.TieredMenu,{static:!0})],n.prototype,"menu",void 0),n=o=pe([t.Component({selector:"s-button",template:'\x3c!-- Remover na próxima major. --\x3e\n<p-tieredMenu\n [id]="id + \'-menu\'"\n [popup]="true"\n appendTo="body"\n [baseZIndex]="baseZIndex">\n</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-priority-danger\': priority === \'danger\',\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 sTieredMenu\n [items]="menuOptions"\n [disabled]="disabled"\n [sTooltip]="tooltip"\n [tooltipPosition]="tooltipPosition"\n [showDelay]="500"\n (click)="onClick.emit($event)"\n (mouseenter)="updateTooltipZIndex()">\n <div *ngIf="badge" class="badge">\n <s-badge\n [color]="badge.color"\n [text]="badge.text"\n [iconClass]="badge.iconClass">\n </s-badge>\n </div>\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 [ngStyle]="{ color: iconColor }"\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 [ngStyle]="{ color: iconColor }"\n aria-hidden="true">\n </span>\n <span\n *ngIf="caret && (model && model.length) || (menuOptions && menuOptions.length)" \n class="fa fa-fw fa-caret-down"\n aria-hidden="true">\n </span>\n</button>\n',styles:[':host{display:inline-block}button{-ms-flex-align:center;align-items:center;border:1px solid;border-radius:4px;cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;font-family:"Open Sans",sans-serif;font-size:14px;height:35px;-ms-flex-pack:center;justify-content:center;max-width:100%;min-width:40px;outline:0;overflow:visible;padding:5px 10px;position:relative;text-decoration:none;text-transform:none;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{height:25px;padding:0 20px}button.s-button-size-default{height:35px}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{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}button.s-button-multiple .s-button-text{-ms-flex-align:left;align-items:left;display:-ms-flexbox;display:flex;-ms-flex-pack:left;justify-content:left}button.s-button-with-icon .s-button-text{-ms-flex-align:right;align-items:right;display:-ms-flexbox;display:flex;-ms-flex-pack:right;justify-content:right}.s-button-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.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}.s-button-priority-danger{background-color:#9c3a3a;border-color:#9c3a3a}.s-button-priority-danger .s-button-icon,.s-button-priority-danger .s-button-menu-icon,.s-button-priority-danger .s-button-right-icon,.s-button-priority-danger .s-button-text{color:#fff}.s-button-priority-danger:hover{background-color:#642525}.s-button-priority-danger:focus{background-color:#642525;border-color:#22dce6}.s-button-priority-danger.s-button-active:not(:disabled),.s-button-priority-danger:active:not(:disabled){background-color:#521e1e;border-color:#521e1e}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{opacity:1;position:relative;transition:1s;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{transform:rotate(360deg);transition:1.5s}.badge{position:absolute;top:-10px;right:-10px;z-index:99}']})],n)}(),_t=function(){function e(){}return e=pe([t.Component({selector:"s-tiered-menu-divider",template:'<div class="divider"></div>',styles:[".divider{margin:2px 0;height:1px;background-color:#ccc}"]})],e)}(),wt=function(){function e(){this.incrementCurrentItemEvent=new t.EventEmitter,this.decrementCurrentItemEvent=new t.EventEmitter,this.closeAllMenusEvent=new t.EventEmitter,this.selectItemEvent=new t.EventEmitter,this.openItemMenuEvent=new t.EventEmitter,this.closeItemMenuEvent=new t.EventEmitter,this.createMenuEvent=new t.EventEmitter}return e=pe([t.Injectable()],e)}(),Ct=function(){function e(e){this._tieredMenuEventService=e,this.focused=!1,this.highlight=!1,this.triggerEvent="click",this.closeOnClick=!1}return e.prototype.onClick=function(){this.item.disabled||(this.item.submenu?this.item.isOpen?this.closeOnClick&&this._tieredMenuEventService.closeItemMenuEvent.emit(this.item):this._tieredMenuEventService.openItemMenuEvent.emit(this.item):this._tieredMenuEventService.selectItemEvent.emit(this.item))},e.prototype.onMouseEnter=function(){var e=this;this.item.disabled||"hover"!==this.triggerEvent||this.item.isOpen||(this._showTimeout=window.setTimeout((function(){e._tieredMenuEventService.openItemMenuEvent.emit(e.item)}),300))},e.prototype.onMouseLeave=function(){window.clearTimeout(this._showTimeout)},e.ctorParameters=function(){return[{type:wt}]},pe([t.Input()],e.prototype,"item",void 0),pe([t.Input()],e.prototype,"focused",void 0),pe([t.Input()],e.prototype,"highlight",void 0),pe([t.Input()],e.prototype,"triggerEvent",void 0),pe([t.Input()],e.prototype,"closeOnClick",void 0),pe([t.HostListener("click"),t.HostListener("touchend")],e.prototype,"onClick",null),pe([t.HostListener("mouseenter")],e.prototype,"onMouseEnter",null),pe([t.HostListener("mouseleave")],e.prototype,"onMouseLeave",null),e=pe([t.Component({selector:"s-tiered-menu-item",template:'<div\n [id]="item.id"\n class="tiered-menu-item"\n [ngClass]="{\n \'tiered-menu-item--open\': item.isOpen,\n \'tiered-menu-item--focused\': focused,\n \'tiered-menu-item--disabled\': item.disabled\n }">\n <div class="tiered-menu-item-content">\n <span class="icon" [ngClass]="item.iconClass"></span>\n <span class="label">{{ item.label }}</span>\n </div>\n <span\n *ngIf="item.submenu"\n class="submenu-icon"\n [ngClass]="{\n \'fas\': true,\n \'fa-chevron-left\': item.isOpen,\n \'fa-chevron-right\': !item.isOpen\n }">\n </span>\n</div>',styles:[".tiered-menu-item{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:8px 16px;-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.tiered-menu-item .tiered-menu-item-content .label{margin:0 12px}.tiered-menu-item:hover{background-color:#e9e6e6}.tiered-menu-item--focused{background-color:#ccc!important}.tiered-menu-item--open{background-color:#e4e2e2}.tiered-menu-item--disabled{opacity:50%;cursor:default}"]})],e)}(),kt=function(){function e(){this.currentItems=[],this.items=[]}return e.prototype.normalizeData=function(e,t){var n=this;return e.map((function(e){var o=ce({visible:!0},e);return o.submenu&&(o.submenu=n.normalizeData(o.submenu,o)),o.id=n._generateId(),o.parent=t,o.isOpen=!1,o}))},e.prototype.markAllItemsAsClosed=function(e){var t=this;return e.map((function(e){var n=ce({},e);return n.submenu&&(n.submenu=t.markAllItemsAsClosed(n.submenu)),n.isOpen=!1,n}))},e.prototype.searchTheHierarchy=function(e,t){for(var n=t;n;){if(n===e)return!0;n=n.parent}return!1},e.prototype.cloneItems=function(e){return JSON.parse(JSON.stringify(e))},e.prototype._generateId=function(){return"id-"+Math.random().toString(36).substring(2,9)+"-"+Math.random().toString(36).substring(2,9)+"-"+Math.random().toString(36).substring(2,9)},e=pe([t.Injectable()],e)}(),It=function(){document.body.style.overflow="auto"},St=function(){document.body.style.overflow="hidden"},Tt=function(){function e(e,t){this.tieredMenuService=e,this._tieredMenuEventService=t,this.top=0,this.left=0,this._unsubscribe$=new o.Subject}return e.prototype.onResize=function(){this._tieredMenuEventService.closeAllMenusEvent.emit()},e.prototype.onDocumentClick=function(e){var t=e.target;t.closest("s-tiered-menu-item")||t.closest("s-tiered-menu-divider")||this._tieredMenuEventService.closeAllMenusEvent.emit()},e.prototype.onKeydownHandler=function(e){switch(e.key){case"Escape":this._tieredMenuEventService.closeAllMenusEvent.emit();break;case" ":case"Enter":this._tieredMenuEventService.selectItemEvent.emit(this.tieredMenuService.currentItem);break;case"ArrowLeft":this._tieredMenuEventService.closeItemMenuEvent.emit(this.tieredMenuService.currentItem.parent);break;case"ArrowRight":this._tieredMenuEventService.openItemMenuEvent.emit(this.tieredMenuService.currentItem);break;case"ArrowUp":this._tieredMenuEventService.decrementCurrentItemEvent.emit();break;case"ArrowDown":this._tieredMenuEventService.incrementCurrentItemEvent.emit()}},e.prototype.ngOnInit=function(){this.tieredMenuService.currentItems=this.items,this._subscribeEvents(),St()},e.prototype.ngOnDestroy=function(){this._unsubscribe$.next(),this._unsubscribe$.complete(),It()},e.prototype._incrementCurItem=function(){if(this.tieredMenuService.currentItem){var e=this.tieredMenuService.currentItems.indexOf(this.tieredMenuService.currentItem)+1;e<this.tieredMenuService.currentItems.length?this.tieredMenuService.currentItem=this.tieredMenuService.currentItems[e]:this.tieredMenuService.currentItem=this.tieredMenuService.currentItems[0],this.tieredMenuService.currentItem.divider&&this._incrementCurItem()}else this.tieredMenuService.currentItem=this.tieredMenuService.currentItems[0]},e.prototype._decrementCurItem=function(){if(this.tieredMenuService.currentItem){var e=this.tieredMenuService.currentItems.indexOf(this.tieredMenuService.currentItem)-1;this.tieredMenuService.currentItem=e>=0?this.tieredMenuService.currentItems[e]:this.tieredMenuService.currentItems[this.tieredMenuService.currentItems.length-1],this.tieredMenuService.currentItem.divider&&this._decrementCurItem()}else this.tieredMenuService.currentItem=this.tieredMenuService.currentItems[0]},e.prototype._closeItem=function(e){for(var t,n=this._lastOpenItem;n&&n!=e;)n.isOpen=!1,n=n.parent;e.isOpen=!1,this.tieredMenuService.currentItem=null!=n?n:this.tieredMenuService.items[0],this.tieredMenuService.currentItems=(null===(t=null==n?void 0:n.parent)||void 0===t?void 0:t.submenu)||this.tieredMenuService.items},e.prototype._openItem=function(e){(null==e?void 0:e.submenu)&&(e.isOpen=!0,this.tieredMenuService.currentItems=e.submenu,this.tieredMenuService.currentItem&&(this.tieredMenuService.currentItem=e.submenu[0]),this._lastOpenItem=e)},e.prototype._subscribeEvents=function(){var e=this;this._tieredMenuEventService.incrementCurrentItemEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(){e._incrementCurItem()})),this._tieredMenuEventService.decrementCurrentItemEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(){e._decrementCurItem()})),this._tieredMenuEventService.selectItemEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){t.command&&(t.command(),e._tieredMenuEventService.closeAllMenusEvent.emit())})),this._tieredMenuEventService.openItemMenuEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){var n,o;if(!e.tieredMenuService.currentItems.includes(t)){for(var i=e._lastOpenItem;null===(n=null==i?void 0:i.parent)||void 0===n?void 0:n.parent;)i=i.parent;e._tieredMenuEventService.closeItemMenuEvent.emit(null!==(o=i.parent)&&void 0!==o?o:i)}e._lastOpenItem=t,e._openItem(t)})),this._tieredMenuEventService.closeItemMenuEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){t&&e._closeItem(t)}))},e.ctorParameters=function(){return[{type:kt},{type:wt}]},pe([t.HostListener("window:resize")],e.prototype,"onResize",null),pe([t.HostListener("document:click",["$event"])],e.prototype,"onDocumentClick",null),pe([t.HostListener("document:keydown",["$event"])],e.prototype,"onKeydownHandler",null),e=pe([t.Component({template:'<div\n class="menu menu--nested"\n [ngStyle]="{\n \'top\': top + \'px\',\n \'left\': left + \'px\'\n }">\n <ng-container *ngTemplateOutlet="itemsTemplate; context: { $implicit: items }"></ng-container>\n</div>\n\n<ng-template #itemsTemplate let-items>\n <div *ngFor="let item of items">\n <s-tiered-menu-item\n *ngIf="item.visible && !item.divider"\n [item]="item"\n [focused]="item === tieredMenuService.currentItem"\n [closeOnClick]="true">\n </s-tiered-menu-item>\n\n <s-tiered-menu-divider *ngIf="item.divider"></s-tiered-menu-divider>\n\n <div *ngIf="item.submenu && item.isOpen">\n <div class="submenu">\n <ng-container *ngTemplateOutlet="itemsTemplate; context: { $implicit: item.submenu }"></ng-container>\n </div>\n </div>\n </div>\n</ng-template>\n',styles:[".menu{background-color:#fff;border:1px solid #ccc;border-radius:6px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;min-width:176px;padding:4px 0;position:absolute;z-index:9999;overflow:auto;width:calc(100vw - 8px)}.menu .submenu{margin-left:24px}"]})],e)}(),Et=function(){function e(e,n,i,r,a,s){this._appRef=e,this._componentFactoryResolver=n,this._injector=i,this._changeDetectorRef=r,this.tieredMenuService=a,this._tieredMenuEventService=s,this.top=0,this.left=0,this.menuTriggerEvent="hover",this._componentRef=null,this._unsubscribe$=new o.Subject,this.destroyRequest=new t.EventEmitter}var n;return n=e,e.prototype.onResize=function(){this._tieredMenuEventService.closeAllMenusEvent.emit()},e.prototype.onDocumentClick=function(e){var t=e.target;t.closest("s-tiered-menu-item")||t.closest("s-tiered-menu-divider")||this._tieredMenuEventService.closeAllMenusEvent.emit()},e.prototype.onKeydownHandler=function(e){switch(e.key){case"Escape":this._tieredMenuEventService.closeAllMenusEvent.emit();break;case" ":case"Enter":this.tieredMenuService.currentItem.disabled||this._tieredMenuEventService.selectItemEvent.emit(this.tieredMenuService.currentItem);break;case"ArrowLeft":this.items.includes(this.tieredMenuService.currentItem)&&(this._tieredMenuEventService.closeItemMenuEvent.emit(this.tieredMenuService.currentItem),this._changeDetectorRef.detectChanges());break;case"ArrowRight":!this.tieredMenuService.currentItem.disabled&&this.items.includes(this.tieredMenuService.currentItem)&&(this._tieredMenuEventService.openItemMenuEvent.emit(this.tieredMenuService.currentItem),e.stopImmediatePropagation());break;case"ArrowUp":this.tieredMenuService.currentItem&&!this.items.includes(this.tieredMenuService.currentItem)||(this._tieredMenuEventService.decrementCurrentItemEvent.emit(),e.stopImmediatePropagation());break;case"ArrowDown":this.tieredMenuService.currentItem&&!this.items.includes(this.tieredMenuService.currentItem)||(this._tieredMenuEventService.incrementCurrentItemEvent.emit(),e.stopImmediatePropagation())}},e.prototype.ngOnInit=function(){this.tieredMenuService.currentItems=this.items,this._subscribeEvents(),St()},e.prototype.ngOnDestroy=function(){this._unsubscribe$.next(),this._unsubscribe$.complete()},e.prototype._incrementCurItem=function(){if(this.tieredMenuService.currentItem){if(this.items.includes(this.tieredMenuService.currentItem)){var e=this.tieredMenuService.currentItems.indexOf(this.tieredMenuService.currentItem)+1;e<this.tieredMenuService.currentItems.length?this.tieredMenuService.currentItem=this.tieredMenuService.currentItems[e]:this.tieredMenuService.currentItem=this.tieredMenuService.currentItems[0],this.tieredMenuService.currentItem.divider&&this._incrementCurItem()}}else this.tieredMenuService.currentItem=this.tieredMenuService.currentItems[0]},e.prototype._decrementCurItem=function(){if(this.tieredMenuService.currentItem){if(this.items.includes(this.tieredMenuService.currentItem)){var e=this.tieredMenuService.currentItems.indexOf(this.tieredMenuService.currentItem)-1;this.tieredMenuService.currentItem=e>=0?this.tieredMenuService.currentItems[e]:this.tieredMenuService.currentItems[this.tieredMenuService.currentItems.length-1],this.tieredMenuService.currentItem.divider&&this._decrementCurItem()}}else this.tieredMenuService.currentItem=this.tieredMenuService.currentItems[0]},e.prototype._createMenu=function(e,t){var o=this;if(!this._componentRef&&e){var i=this._componentFactoryResolver.resolveComponentFactory(n);this._componentRef=i.create(this._injector),this._appRef.attachView(this._componentRef.hostView);var r=this._componentRef.hostView.rootNodes[0];document.body.appendChild(r),this._componentRef.instance.items=e,this._componentRef.instance.destroyRequest.subscribe((function(e){o._destroy(e)})),this._menuDivElement=r.querySelector(".menu"),this._setMenuPosition(t)}},e.prototype._destroy=function(e){void 0===e&&(e=!0),null!==this._componentRef&&(this._appRef.detachView(this._componentRef.hostView),this._componentRef.destroy(),this._componentRef=null,this._menuDivElement=null),e&&this.destroyRequest.emit()},e.prototype._setMenuPosition=function(e){var t,n;if(null!==this._componentRef){var o=e.top,i=e.right,r=e.bottom,a=e.left,s=37*(null===(t=this._componentRef.instance.items)||void 0===t?void 0:t.reduce((function(e,t){return t.divider?e:e+1}),0))+5*(null===(n=this._componentRef.instance.items)||void 0===n?void 0:n.reduce((function(e,t){return t.divider?e+1:e}),0))+8+8,l=this._menuDivElement.getBoundingClientRect().width,c=window.innerWidth-i,p=window.innerHeight-r;this._componentRef.instance.left=c>l?i:a-l,this._componentRef.instance.top=p<=s?Math.max(window.innerHeight-s,window.scrollY):window.scrollY+o}},e.prototype._subscribeEvents=function(){var e=this;this._tieredMenuEventService.incrementCurrentItemEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(){e._incrementCurItem()})),this._tieredMenuEventService.decrementCurrentItemEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(){e._decrementCurItem()})),this._tieredMenuEventService.selectItemEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){t.submenu?e._tieredMenuEventService.openItemMenuEvent.emit(t):t.command&&(e._tieredMenuEventService.closeAllMenusEvent.emit(),t.command())})),this._tieredMenuEventService.closeAllMenusEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(){e._destroy(),e.tieredMenuService.currentItem=null,e.tieredMenuService.currentItems=e.tieredMenuService.items,e.tieredMenuService.markAllItemsAsClosed(e.tieredMenuService.items),It()})),this._tieredMenuEventService.openItemMenuEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){if(e.tieredMenuService.currentItem){if(e.tieredMenuService.currentItem.parent===t)return;if(!e.tieredMenuService.searchTheHierarchy(e.tieredMenuService.currentItem.parent,t)){var n=e.tieredMenuService.currentItem;for(n.isOpen=!1;(null==n?void 0:n.parent)!==t.parent;)e._tieredMenuEventService.closeItemMenuEvent.emit(n),e._changeDetectorRef.detectChanges(),n=n.parent;n&&(n.isOpen=!1)}}if(t.submenu&&!t.isOpen&&e.items.includes(t)){var o=document.querySelector("#"+t.id).getBoundingClientRect(),i={top:o.top,right:o.right,left:o.left,bottom:o.bottom};e._createMenu(t.submenu,i),e.tieredMenuService.currentItems=t.submenu,e.tieredMenuService.currentItem=t.submenu[0],t.isOpen=!0}})),this._tieredMenuEventService.closeItemMenuEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){var n,o;e.items.some((function(e){return e.id===t.id}))&&(t.parent?t.parent.isOpen=!1:It(),e.tieredMenuService.currentItems=(null===(o=null===(n=null==t?void 0:t.parent)||void 0===n?void 0:n.parent)||void 0===o?void 0:o.submenu)||e.tieredMenuService.items,e.tieredMenuService.currentItem=t.parent,e.destroyRequest.emit(!1))}))},e.ctorParameters=function(){return[{type:t.ApplicationRef},{type:t.ComponentFactoryResolver},{type:t.Injector},{type:t.ChangeDetectorRef},{type:kt},{type:wt}]},pe([t.Output()],e.prototype,"destroyRequest",void 0),pe([t.HostListener("window:resize")],e.prototype,"onResize",null),pe([t.HostListener("document:click",["$event"])],e.prototype,"onDocumentClick",null),pe([t.HostListener("document:keydown",["$event"])],e.prototype,"onKeydownHandler",null),e=n=pe([t.Component({selector:"s-tiered-menu",template:'<div\n class="menu"\n [ngStyle]="{\n \'left\': left + \'px\',\n \'top\': top + \'px\'\n }">\n\n <div *ngFor="let item of items">\n <s-tiered-menu-item\n *ngIf="item.visible && !item.divider"\n [item]="item"\n [focused]="item === tieredMenuService.currentItem"\n [highlight]="item.isOpen"\n triggerEvent="hover"\n [closeOnClick]="false">\n </s-tiered-menu-item>\n <s-tiered-menu-divider *ngIf="item.divider"></s-tiered-menu-divider>\n </div>\n</div>',styles:[".menu{background-color:#fff;border:1px solid #ccc;border-radius:6px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;max-height:100vh;min-width:176px;padding:4px 0;overflow-y:auto;position:absolute;z-index:9999}"]})],e)}(),Mt=function(){function e(){}return e=pe([t.Injectable()],e)}(),Lt=function(){function e(e,t,n,i,r,a,s,l){this._elementRef=e,this._appRef=t,this._componentFactoryResolver=n,this._injector=i,this._tieredMenuEventService=r,this._tieredMenuService=a,this._tieredMenuGlobalService=s,this._changeDetectorRef=l,this.focusedItem=void 0,this.triggerEvent="click",this._componentRef=null,this._isNested=!1,this._isOpen=!1,this._unsubscribe$=new o.Subject}return e.prototype.ngOnInit=function(){var e;this._itemsAreValid=!!(null===(e=this.items)||void 0===e?void 0:e.length),this._itemsAreValid&&this._subscribeEvents()},e.prototype.ngDoCheck=function(){if(this._itemsAreValid){this._previousItems||(this._previousItems=this._tieredMenuService.cloneItems(this.items));var e=!1;if(this.items.length!==this._previousItems.length)e=!0;else for(var t=0;t<this.items.length;t++)if(!this._compareItems(this.items[t],this._previousItems[t])){e=!0;break}e&&(this._updateServiceItems(),this._changeDetectorRef.detectChanges(),this._rebuildMenu()),this._previousItems=this._tieredMenuService.cloneItems(this.items)}},e.prototype.ngOnDestroy=function(){this._itemsAreValid&&(this._unsubscribe$.next(),this._unsubscribe$.complete(),this._destroy())},e.prototype.onClick=function(e){this._itemsAreValid&&("click"!==this.triggerEvent||this._isOpen||(this._lastActiveElement=document.activeElement,this._createMenu(),e.preventDefault(),e.stopPropagation()))},e.prototype._createMenu=function(){var e,t,n;this._updateServiceItems(),!this._componentRef&&(null===(e=this._tieredMenuService.items)||void 0===e?void 0:e.length)>0&&(null===(t=this._tieredMenuGlobalService.lastInstance)||void 0===t||t._destroy(),this._tieredMenuGlobalService.lastInstance=this,null===(n=this._lastActiveElement)||void 0===n||n.blur(),this._isOpen=!0,this._isNested=document.body.clientWidth<600,this._isNested?this._createNestedMenu():this._createTieredMenu())},e.prototype._createTieredMenu=function(){var e,t=this;if(!this._componentRef&&(null===(e=this._tieredMenuService.items)||void 0===e?void 0:e.length)>0){var n=this._componentFactoryResolver.resolveComponentFactory(Et);this._componentRef=n.create(this._injector),this._appRef.attachView(this._componentRef.hostView);var o=this._componentRef.hostView.rootNodes[0];document.body.appendChild(o),this._setMenuComponentProperties(),this._componentRef.instance.destroyRequest.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(){t._destroy()})),this._setMenuPosition()}},e.prototype._createNestedMenu=function(){var e;if(!this._componentRef&&(null===(e=this._tieredMenuService.items)||void 0===e?void 0:e.length)>0){var t=this._componentFactoryResolver.resolveComponentFactory(Tt);this._componentRef=t.create(this._injector),this._appRef.attachView(this._componentRef.hostView);var n=this._componentRef.hostView.rootNodes[0];document.body.appendChild(n),this._setMenuComponentProperties(),this._setMenuPosition()}},e.prototype._destroy=function(){this._componentRef&&(this._isOpen=!1,window.clearTimeout(this._showTimeout),this._appRef.detachView(this._componentRef.hostView),this._componentRef.destroy(),this._componentRef=null,this._tieredMenuService.currentItems=this._tieredMenuService.items,this._tieredMenuService.currentItem=this._tieredMenuService.items[0],this._tieredMenuEventService.closeAllMenusEvent.emit())},e.prototype._setMenuPosition=function(){var e,t;if(null!==this._componentRef){this._componentRef.instance.top=8;var n=this._elementRef.nativeElement.getBoundingClientRect(),o=n.bottom,i=n.left,r=n.right,a=37*(null===(e=this._componentRef.instance.items)||void 0===e?void 0:e.reduce((function(e,t){return t.divider?e:e+1}),0))+5*(null===(t=this._componentRef.instance.items)||void 0===t?void 0:t.reduce((function(e,t){return t.divider?e+1:e}),0))+8+4,s=window.innerWidth-r,l=window.innerHeight-o;this._componentRef.instance.top=o,this._componentRef.instance.left=i,this._componentRef.instance.top=l<=a?Math.max(scrollY+o-a,0):window.scrollY+o+4,this._componentRef.instance.left=s>176?window.scrollX+i:window.scrollX+r-176,this._isNested&&(this._componentRef.instance.left=4)}},e.prototype._setMenuComponentProperties=function(){null!=this._componentRef&&(this._componentRef.instance.items=this._tieredMenuService.items)},e.prototype._subscribeEvents=function(){var e=this;this._tieredMenuEventService.closeAllMenusEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(){e._tieredMenuService.items=e._tieredMenuService.markAllItemsAsClosed(e._tieredMenuService.items),e._destroy(),It()}))},e.prototype._compareItems=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},e.prototype._rebuildMenu=function(){this._destroy()},e.prototype._updateServiceItems=function(){var e,t=this;this._tieredMenuService.items=this._tieredMenuService.normalizeData(this.items),this._tieredMenuService.currentItems=this._tieredMenuService.items,this._tieredMenuService.currentItem=null!==(e=this._tieredMenuService.items.find((function(e){var n;return e.label===(null===(n=t.focusedItem)||void 0===n?void 0:n.label)})))&&void 0!==e?e:this._tieredMenuService.items[0]},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ApplicationRef},{type:t.ComponentFactoryResolver},{type:t.Injector},{type:wt},{type:kt},{type:Mt},{type:t.ChangeDetectorRef}]},pe([t.Input()],e.prototype,"items",void 0),pe([t.Input()],e.prototype,"focusedItem",void 0),pe([t.Input()],e.prototype,"triggerEvent",void 0),pe([t.HostListener("click",["$event"])],e.prototype,"onClick",null),e=pe([t.Directive({selector:"[sTieredMenu]",providers:[wt,kt]})],e)}(),Ft=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[Lt,Et,Tt,Ct,_t],exports:[Lt],providers:[Mt]})],e)}(),Ot=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,s.RouterModule,$e,g.TieredMenuModule,Ft,Ae],declarations:[xt],exports:[xt]})],e)}(),Rt=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,o,i=e.which||e.keyCode,r=/iphone/i.test(navigator.userAgent);this.oldVal=this.input.value,8===i||46===i||r&&127===i?(n=(t=this.caret()).begin,(o=t.end)-n==0&&(n=46!==i?this.seekPrev(n):o=this.seekNext(n-1),o=46===i?this.seekNext(o):o),this.clearBuffer(n,o),this.shiftL(n,o-1),this.updateModel(e),e.preventDefault()):13===i?(this.onInputBlur(e),this.updateModel(e)):27===i&&(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,o,i,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&&(o=String.fromCharCode(r),this.tests[n].test(o)))if(this.shiftR(n),this.buffer[n]=o,this.writeBuffer(),i=this.seekNext(n),/android/i.test(navigator.userAgent)){setTimeout((function(){t.caret(i)}),0)}else this.caret(i);e.preventDefault()}this.updateModel(e),this.updateFilledState()}}},e.prototype.createCompleteMask=function(){switch(this.host.selectionMode){case"range":return this.mask+" "+this.host.rangeSeparator+" "+this.mask;case"single":case"multiple":return this.mask}},e.prototype.checkVal=function(e){var t,n,o=this.input.value,i=-1,r=0;for(t=0;t<this.len;t++)if(this.tests[t]){for(this.buffer[t]=this.getPlaceholder(t);r++<o.length;)if(n=o.charAt(r-1),this.tests[t].test(n)){this.buffer[t]=n,i=t;break}if(r>o.length){this.clearBuffer(t+1,this.len);break}}else this.buffer[t]===o.charAt(r)&&r++,t<this.partialPosition&&(i=t);return e?this.writeBuffer():i+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,i+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(){var e=this.createCompleteMask();this.tests=[],this.partialPosition=e.length,this.len=e.length,this.firstNonMaskPos=null,this.defs={9:"[0-9]"};for(var t=e.split(""),n=0;n<t.length;n++){"?"==(o=t[n])?(this.len--,this.partialPosition=n):this.defs[o]?(this.tests.push(new RegExp(this.defs[o])),null===this.firstNonMaskPos&&(this.firstNonMaskPos=this.tests.length-1),n<this.partialPosition&&(this.lastRequiredNonMaskPos=this.tests.length-1)):this.tests.push(null)}this.buffer=[];for(n=0;n<t.length;n++){var o;"?"!=(o=t[n])&&(this.defs[o]?this.buffer.push(this.getPlaceholder(n)):this.buffer.push(o))}this.defaultBuffer=this.buffer.join("")},e.prototype.caret=function(e,t){var n,o,i;if(this.input.offsetParent&&this.input===document.activeElement)return"number"!=typeof e?(this.input.setSelectionRange?(o=this.input.selectionStart,i=this.input.selectionEnd):document.selection&&document.selection.createRange&&(i=(o=0-(n=document.selection.createRange()).duplicate().moveStart("character",-1e5))+n.text.length),{begin:o,end:i}):(o=e,i="number"==typeof t?t:o,void(this.input.setSelectionRange?this.input.setSelectionRange(o,i):this.input.createTextRange&&((n=this.input.createTextRange()).collapse(!0),n.moveEnd("character",i),n.moveStart("character",o),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,o;if(!(e<0)){for(o=this.seekNext(t),n=e;n<this.len;n++)if(this.tests[n]){if(!(o<this.len&&this.tests[n].test(this.buffer[o])))break;this.buffer[n]=this.buffer[o],this.buffer[o]=this.getPlaceholder(o),o=this.seekNext(o)}this.writeBuffer(),this.caret(Math.max(this.firstNonMaskPos,e))}},e.prototype.shiftR=function(e){var t,n,o,i=this.getPlaceholder(e);for(t=e;t<this.len;t++)if(this.tests[t]){if(n=this.seekNext(t),o=this.buffer[t],this.buffer[t]=i,!(n<this.len&&this.tests[n].test(o)))break;i=o}},e.prototype.handleAndroidInput=function(e){var t=this,n=this.input.value,o=this.caret();if(this.oldVal&&this.oldVal.length&&this.oldVal.length>n.length){for(this.checkVal(!0);o.begin>0&&!this.tests[o.begin-1];)o.begin--;if(0===o.begin)for(;o.begin<this.firstNonMaskPos&&!this.tests[o.begin];)o.begin++;setTimeout((function(){if(t.caret(o.begin,o.begin),t.isCompleted()){var e=n.replace(t.slotChar,"");t.updateCalendarValue(e)}}),0)}else{for(this.checkVal(!0);o.begin<this.len&&!this.tests[o.begin];)o.begin++;setTimeout((function(){if(t.caret(o.begin,o.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,o=document.querySelectorAll(this.SELECTORS),i=!1,r=!0;o.forEach((function(o){if(!e.shiftKey&&i&&o.id)return t.focusableElement(o.id,r),i=!1,void e.preventDefault();var a=window.document.activeElement.tagName;if(e.shiftKey&&o.id&&"INPUT"===o.tagName&&"BUTTON"==a&&(n=o.id,r=!1),o.id===t.host.inputId){if(n)return t.focusableElement(n,r),e.preventDefault(),void(r=!0);i=!0}else e.shiftKey&&o.id&&(n=o.id)}))}},e.prototype.focusableElement=function(e,t){window.document.getElementById(e).focus(),t&&this.host.hideOverlay()},e.ctorParameters=function(){return[{type:v.Calendar},{type:t.Renderer2}]},pe([t.Input()],e.prototype,"slotChar",void 0),pe([t.Input()],e.prototype,"autoClear",void 0),pe([t.HostListener("keydown",["$event"])],e.prototype,"onKeydownEventTest",null),e=pe([t.Directive({selector:"p-calendar[sCalendarMask]"})],e)}(),At=function(){function e(){}return e=pe([t.NgModule({declarations:[Rt],imports:[r.CommonModule],exports:[Rt]})],e)}(),Dt=function(){function e(e){this.template=e}return e.ctorParameters=function(){return[{type:t.TemplateRef}]},pe([t.Input("sTemplate")],e.prototype,"type",void 0),e=pe([t.Directive({selector:"[sTemplate]"})],e)}();(yt=e.CardTemplateTypes||(e.CardTemplateTypes={})).Header="header",yt.Body="body",yt.Footer="footer";var Pt,Vt=function(){function n(){this.fullWidth=!1,this.title="",this.subtitle="",this.icon="",this.showBanner=!1}return n.prototype.ngAfterContentInit=function(){this._getTemplates(),this._loadImage()},Object.defineProperty(n.prototype,"hasHeader",{get:function(){var e=!!this.headerTemplate,t=this.title||this.subtitle||this.icon;return e||t},enumerable:!0,configurable:!0}),n.prototype._getHeaderTemplate=function(){return this._getCustomTemplate(e.CardTemplateTypes.Header)},n.prototype._getBodyTemplate=function(){return this._getCustomTemplate(e.CardTemplateTypes.Body)},n.prototype._getFooterTemplate=function(){return this._getCustomTemplate(e.CardTemplateTypes.Footer)},n.prototype._getCustomTemplate=function(e){var t;return null===(t=this.templates.find((function(t){return t.type===e})))||void 0===t?void 0:t.template},n.prototype._getTemplates=function(){this.headerTemplate=this._getHeaderTemplate(),this.bodyTemplate=this._getBodyTemplate(),this.footerTemplate=this._getFooterTemplate()},n.prototype._loadImage=function(){var e=this,t=new Image;t.src=this.bannerImage,t.onload=function(){return e.showBanner=!0},t.onerror=function(){return e.showBanner=!1}},pe([t.Input()],n.prototype,"bannerImage",void 0),pe([t.Input()],n.prototype,"fullWidth",void 0),pe([t.Input()],n.prototype,"title",void 0),pe([t.Input()],n.prototype,"subtitle",void 0),pe([t.Input()],n.prototype,"icon",void 0),pe([t.ContentChildren(Dt)],n.prototype,"templates",void 0),n=pe([t.Component({selector:"s-card",template:'<div class="card" [ngClass]="{ \'card--full-width\': fullWidth }">\n <div\n *ngIf="showBanner"\n class="banner"\n [ngStyle]="{\'background-image\': \'url(\' + bannerImage + \')\'}">\n </div>\n\n <ng-container *ngIf="hasHeader">\n <div class="header">\n <ng-container *ngIf="headerTemplate">\n <ng-container *ngTemplateOutlet="headerTemplate"></ng-container>\n </ng-container>\n <ng-container *ngIf="!headerTemplate">\n <div class="header-content">\n <div class="header-icon" *ngIf="icon">\n <i [class]="icon"></i>\n </div>\n <div>\n <div class="header-title" *ngIf="title">\n {{ title }}\n </div>\n <div class="header-subtitle" *ngIf="subtitle">\n {{ subtitle }}\n </div>\n </div>\n </div>\n </ng-container>\n </div>\n </ng-container>\n <div *ngIf="bodyTemplate" class="body">\n <ng-container *ngTemplateOutlet="bodyTemplate"></ng-container>\n </div>\n <ng-container *ngIf="!bodyTemplate">\n <div class="body">\n <ng-content></ng-content>\n </div>\n </ng-container>\n <div *ngIf="footerTemplate" class="footer">\n <ng-container *ngTemplateOutlet="footerTemplate"></ng-container>\n </div>\n</div>\n',styles:[".card{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;background-color:#fff;border-radius:4px;box-shadow:0 1px 5px 0 #00000040;overflow:hidden}.card--full-width{width:100%}.card .banner{background-repeat:no-repeat;background-size:cover;height:150px;width:100%}.card .header{padding:16px 12px}.card .header-content{display:-ms-flexbox;display:flex;gap:12px}.card .header-title{color:#212533;font-size:14px;font-style:normal;font-weight:700}.card .header-subtitle{color:#6e7280;font-size:14px;font-style:normal;font-weight:400}.card .header-icon{border-radius:50%;background-color:#dedce5;width:3em;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-height:3em}.card .body,.card .footer{padding:16px}.card .body+.footer,.card .header+.body{border-top:1px solid #c1c1cc}"]})],n)}(),Bt=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[Dt],exports:[Dt]})],e)}(),Nt=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[Vt],exports:[Vt,Bt]})],e)}(),zt=function(){function e(){this.messages=[]}return e.prototype.ngAfterViewInit=function(){var e=this;this.scrollToBottom(),this.messageElements.changes.subscribe((function(){e.scrollToBottom()}))},e.prototype.scrollToBottom=function(){var e,t;null===(t=null===(e=this.messageElements)||void 0===e?void 0:e.last)||void 0===t||t.nativeElement.scrollIntoView({behavior:"smooth"})},pe([t.Input()],e.prototype,"messages",void 0),pe([t.ViewChildren("messageElements",{read:t.ElementRef})],e.prototype,"messageElements",void 0),e=pe([t.Component({selector:"s-chat",template:'<div class="chat-container">\n <s-chat-message #messageElements *ngFor="let message of messages" [message]="message"> </s-chat-message>\n</div>\n',styles:[".chat-container{min-height:500px;overflow:auto}"]})],e)}(),Ut=function(){function e(){this.fileName=null}return e.prototype.ngOnChanges=function(e){e.message&&(this.fileName=this.message.attachmentUrl?this.getFileNameByUrl(this.message.attachmentUrl):null)},e.prototype.getFileNameByUrl=function(e){var t=e.match(/[^\\\/]+$/);return t?t[0]:null},pe([t.Input()],e.prototype,"message",void 0),e=pe([t.Component({selector:"s-chat-message",template:'<div class="chat-message" [class.chat-message--mine]="message.isMine">\n <div class="chat-message-wrapper">\n <div class="header">\n <img class="thumbnail" [src]="message.thumbnailUrl" alt="Thumbnail" />\n <span class="name">{{ message.senderName }}</span>\n <span *ngIf="message.sentAt" class="date">{{ message.sentAt | localizedDate: "L LTS" | async }}</span>\n </div>\n <p class="body">{{ message.text }}</p>\n\n <div *ngIf="message.attachmentUrl" class="attachment">\n <span class="attachment-label">{{ "platform.angular_components.attachment" | translate }}:</span>\n <a class="attachment-anchor" [href]="message.attachmentUrl" [download]="fileName">{{ fileName }}</a>\n </div>\n </div>\n</div>\n',styles:['.chat-message{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;padding:10px 20px}.chat-message .chat-message-wrapper{background-color:#cabbd0;border-radius:16px 16px 16px 0;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;max-width:85%;padding:20px}.chat-message .chat-message-wrapper .header{-ms-flex-align:center;align-items:center;color:#000;display:-ms-flexbox;display:flex;font-family:"Open Sans",sans-serif;gap:8px}.chat-message .chat-message-wrapper .header .thumbnail{border-radius:50%;height:32px;object-fit:cover;object-position:center;width:32px;background-color:#fff}.chat-message .chat-message-wrapper .header .name{font-size:14px;font-weight:700}.chat-message .chat-message-wrapper .header .date{font-size:12px}.chat-message .chat-message-wrapper .body{color:#000;font-family:"Open Sans",sans-serif;font-size:12px}.chat-message .chat-message-wrapper .attachment{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;gap:10px;margin-top:12px;-webkit-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-wrap:wrap;flex-wrap:wrap}.chat-message .chat-message-wrapper .attachment-label{color:#0e1119;font-family:"Open Sans",sans-serif;font-size:12px;font-weight:700}.chat-message .chat-message-wrapper .attachment-anchor{background-color:#fff;border-radius:4px;padding:0 12px;text-decoration:none}.chat-message--mine{-ms-flex-pack:end;justify-content:flex-end}.chat-message--mine .chat-message-wrapper{background-color:#eeebf2;border-radius:16px 16px 0}']})],e)}(),jt=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,ht,b.TranslateModule.forChild()],declarations:[zt,Ut],exports:[zt]})],e)}(),Ht=function(){function e(){this.state={checked:!1,indeterminate:!1,children:{}},this._onChange=function(){},this._onTouched=function(){}}var n;return n=e,e.prototype.writeValue=function(e){this.state=e||{checked:!1,indeterminate:!1,disabled:!1,children:this._initializeChildren(this.data)}},e.prototype.registerOnChange=function(e){this._onChange=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype._initializeChildren=function(e){var t=this,n={};return e.children&&e.children.forEach((function(e){n[e.label]={checked:!1,indeterminate:!1,children:t._initializeChildren(e)}})),n},e.prototype.updateParent=function(){var e=this;if(this.data.children&&this.data.children.length>0){var t=this.data.children.every((function(t){var n;return null===(n=e.state.children[t.label])||void 0===n?void 0:n.checked})),n=this.data.children.some((function(t){var n,o;return(null===(n=e.state.children[t.label])||void 0===n?void 0:n.checked)||(null===(o=e.state.children[t.label])||void 0===o?void 0:o.indeterminate)}));this.state.checked=t,this.state.indeterminate=!t&&n}this._onChange(this.state),this._onTouched()},e.prototype.onCheckboxChange=function(){this.state.disabled||(this.state.checked=!this.state.checked,this.state.indeterminate=!1,this._toggleChildrenCheck(this.data,this.state,this.state.checked),this._onChange(this.state),this._onTouched())},Object.defineProperty(e.prototype,"renderType",{get:function(){return this.data.renderType||"inline"},enumerable:!0,configurable:!0}),e.prototype._toggleChildrenCheck=function(e,t,n){var o,i=this;(null===(o=e.children)||void 0===o?void 0:o.length)&&e.children.forEach((function(e){t.children[e.label]||(t.children[e.label]={checked:!1,indeterminate:!1,children:i._initializeChildren(e)}),t.children[e.label].checked=n,t.children[e.label].indeterminate=!1,e.children&&i._toggleChildrenCheck(e,t.children[e.label],n)}))},pe([t.Input()],e.prototype,"data",void 0),e=n=pe([t.Component({selector:"s-checkbox",template:'<div class="checkbox">\n <label>\n <div\n class="checkbox-wrapper"\n [class.checkbox-wrapper-inline]="renderType === \'inline\'"\n [class.checkbox-wrapper-block]="renderType === \'block\'"\n [ngClass]="{ \'checkbox-wrapper--disabled\': state.disabled }">\n <input\n type="checkbox"\n class="checkbox-input"\n [disabled]="state.disabled"\n [ngClass]="{\n \'checkbox-input--checked\': state.checked,\n \'checkbox-input--indeterminate\': state.indeterminate\n }"\n (change)="onCheckboxChange()"\n [attr.aria-checked]="state.indeterminate ? \'mixed\' : state.checked"\n [attr.aria-disabled]="state.disabled"\n role="checkbox" />\n {{ data.label }}\n </div>\n </label>\n <div *ngIf="data.children && data.children.length" class="checkbox-children">\n <s-checkbox\n *ngFor="let child of data.children"\n [data]="child"\n [ngModel]="state.children[child.label]"\n (ngModelChange)="updateParent()">\n </s-checkbox>\n </div>\n</div>\n',providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:['.checkbox{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:10px;margin-bottom:10px}.checkbox .checkbox-wrapper{color:#212533;display:-ms-flexbox;display:flex;font-family:"Open Sans" sans-serif;font-size:14px;gap:12px}.checkbox .checkbox-wrapper-inline{-ms-flex-align:center;align-items:center}.checkbox .checkbox-wrapper-block{-ms-flex-direction:column-reverse;flex-direction:column-reverse}.checkbox .checkbox-wrapper .checkbox-input{-webkit-appearance:none;appearance:none;background-color:#fff;border:1px solid #c1c1cc;border-radius:4px;cursor:pointer;-ms-flex-negative:0;flex-shrink:0;height:20px;width:20px;position:relative}.checkbox .checkbox-wrapper .checkbox-input--checked{background-color:#428bca;border-color:#428bca}.checkbox .checkbox-wrapper .checkbox-input--checked::after{border:solid #fff;border-width:0 2px 2px 0;content:"";height:12px;left:6px;position:absolute;top:2px;transform:rotate(45deg);width:6px}.checkbox .checkbox-wrapper .checkbox-input--indeterminate{background-color:#428bca;border-color:#428bca}.checkbox .checkbox-wrapper .checkbox-input--indeterminate::after{background-color:#fff;content:"";height:2px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:10px}.checkbox .checkbox-wrapper:not(.checkbox-wrapper--disabled) .checkbox-input:not(.checkbox-input--checked):hover{background-color:#e5eaea;border-color:#ccc}.checkbox .checkbox-wrapper--disabled{opacity:.5;cursor:auto}.checkbox .checkbox-children{margin-left:20px}']})],e)}(),$t=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule],declarations:[Ht],exports:[Ht]})],e)}();(Pt=e.Languages||(e.Languages={})).TaxCalculation="TaxCalculation",Pt.Json="Json",(e.Themes||(e.Themes={})).SDSLight="SDSLight";var Gt,qt,Wt,Yt,Kt,Zt,Xt=function(){function e(){}return e.getLinter=function(t){var n=e._LINTERS.get(t);if(n)return n()},e._LINTERS=new Map([]),e}(),Jt=function(){function t(){this.$onCoreFinishLoad=new o.ReplaySubject(1),this.$onCodeChange=new o.Subject,this.$onCodeValidityChange=new o.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.setPayload=function(e){var t=this.getSafeCode(e);this.setCodeWithCursorPreservation(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=Xt.getLinter(e)},t.prototype.validateCode=function(e){return ue(this,void 0,void 0,(function(){var t;return me(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}(),Qt=function(){function e(e){this.coreFacade=e,this.codeChange=new t.EventEmitter,this.isCodeValidChange=new t.EventEmitter,this.onCodeChange=new t.EventEmitter,this.onComponentFinishLoad=new t.EventEmitter,this._ngUnsubscribe=new o.Subject,this._onChange=function(){},this._onTouched=function(){}}var n;return n=e,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}),Object.defineProperty(e.prototype,"payload",{set:function(e){this.coreFacade.setPayload(e)},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.code=e},e.prototype.registerOnChange=function(e){this._onChange=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},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(i.take(1)).subscribe((function(){return e.onComponentFinishLoad.emit()})),this.coreFacade.getOnCodeChangeObservable().pipe(i.takeUntil(this._ngUnsubscribe)).subscribe((function(t){e.codeChange.emit(t),e.onCodeChange.emit(t),e._onTouched(),e._onChange(t)})),this.coreFacade.getOnCodeValidityChangeObservable().pipe(i.takeUntil(this._ngUnsubscribe)).subscribe((function(t){e.isCodeValidChange.emit(t)}))},e.ctorParameters=function(){return[{type:Jt}]},pe([t.Input()],e.prototype,"editorOptions",null),pe([t.Input()],e.prototype,"code",null),pe([t.Input()],e.prototype,"payload",null),pe([t.Output()],e.prototype,"codeChange",void 0),pe([t.Output()],e.prototype,"isCodeValidChange",void 0),pe([t.Output()],e.prototype,"onCodeChange",void 0),pe([t.Output()],e.prototype,"onComponentFinishLoad",void 0),pe([t.ViewChild("coreWrapper")],e.prototype,"coreWrapperElement",void 0),e=n=pe([t.Component({selector:"s-code-editor",template:'<div #coreWrapper class="core-wrapper"></div>',providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:[".core-wrapper{height:100%;border:1px solid #c1c1cc;border-radius:3px}"]})],e)}();!function(e){e.ASC="ASC",e.DESC="DESC"}(Gt||(Gt={})),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"}(qt||(qt={})),function(e){e[e.ListContextMetadataById=0]="ListContextMetadataById",e[e.ListBlobMetadata=1]="ListBlobMetadata",e[e.ListExpressionMetadata=2]="ListExpressionMetadata",e[e.ListFacadeMetadataNames=3]="ListFacadeMetadataNames",e[e.GetFacadeMetadataByPath=4]="GetFacadeMetadataByPath"}(Wt||(Wt={})),function(e){e.Keyword="keyword",e.Context="context",e.Expression="expression",e.UserExpression="userExpression",e.Entity="entity",e.FinalValue="finalValue"}(Yt||(Yt={})),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"}(Kt||(Kt={}));var en=w.LRLanguage.define({parser:C.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:[k.styleTags((Zt={},Zt[Object.values(Kt).join(" ")]=k.tags.keyword,Zt.String=k.tags.string,Zt.Number=k.tags.number,Zt))]})});function tn(e){return ue(this,void 0,void 0,(function(){return me(this,(function(t){return[2,e.json()]}))}))}function nn(e){return ue(this,void 0,void 0,(function(){var t;return me(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 on,rn=function(){function e(){}return e.GET=function(e,t){return void 0===t&&(t={}),ue(this,void 0,void 0,(function(){var n;return me(this,(function(o){switch(o.label){case 0:return[4,this.interceptRequest(e,ce(ce({},t),{method:"GET"}))];case 1:return n=o.sent(),[2,this.formatResponse(n)]}}))}))},e.POST=function(e,t,n){return void 0===n&&(n={}),ue(this,void 0,void 0,(function(){var o,i;return me(this,(function(r){switch(r.label){case 0:return(o=new Headers(n.headers)).append("Content-Type","application/json"),o.append("Accept","application/json"),[4,this.interceptRequest(e,ce(ce({},n),{method:"POST",body:JSON.stringify(t),headers:o}))];case 1:return i=r.sent(),[2,this.formatResponse(i)]}}))}))},e.interceptRequest=function(e,t){return void 0===t&&(t={}),ue(this,void 0,void 0,(function(){var n,o,i,r,a;return me(this,(function(s){switch(s.label){case 0:return s.trys.push([0,4,,5]),e.includes("://")?[3,3]:[4,p.service.getRestUrl()];case 1:return n=s.sent(),[4,p.user.getAuthHeader()];case 2:return o=s.sent(),(i=new Headers(t.headers)).append("Authorization",o),r=new Request(n+e,ce(ce({},t),{headers:i})),[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 ue(this,void 0,void 0,(function(){var n,o,i,r;return me(this,(function(a){switch(a.label){case 0:return n=t.headers.get("content-type"),(o=e._responseFormatterMap.get(n))?[4,o(t)]:[3,2];case 1:return r=a.sent(),[3,3];case 2:r={},a.label=3;case 3:if(i=r,t.ok)return[2,i];throw new Error(JSON.stringify(i))}}))}))},e._responseFormatterMap=new Map([["application/json",tn],["application/octet-stream",nn]]),e}(),an=function(){function e(){}return e.translate=function(t){var n,o;if(null==t)return"";var i=""+e._TRANSLATION_PREFIX+t;return null!==(o=(null!==(n=Object.values(e._translations)[0])&&void 0!==n?n:{})[i])&&void 0!==o?o:i},e.setTranslations=function(t){e._translations=null!=t?t:{}},e.setTranslationsPrefix=function(t){var n=null!=t?t:{},o=n.domain+"."+n.service+".";e._TRANSLATION_PREFIX=o},e._translations={},e._TRANSLATION_PREFIX="",e}(),sn=new t.InjectionToken("hostProjectConfigs"),ln=function(){function e(){}var n;return n=e,e.forRoot=function(e){return{ngModule:n,providers:[{provide:sn,useValue:e}]}},e=n=pe([t.NgModule({})],e)}(),cn=function(){function e(e,t){this.translate=e,this.hostProjectConfigs=t,this.factoryTranslations(this.translate,this.hostProjectConfigs)}return e.prototype.factoryTranslations=function(e,t){an.setTranslations(e.translations),an.setTranslationsPrefix(t)},e.ctorParameters=function(){return[{type:b.TranslateService},{type:void 0,decorators:[{type:t.Inject,args:[sn]}]}]},e=pe([t.NgModule(),de(1,t.Inject(sn))],e)}();!function(e){e[e.Error=0]="Error",e[e.Info=1]="Info",e[e.Warning=2]="Warning"}(on||(on={}));var pn=new Map([[on.Error,"error"],[on.Info,"info"],[on.Warning,"warning"]]);var dn=function(){function e(){}return e.listContextMetadataById=function(t,n){return ue(this,void 0,void 0,(function(){return me(this,(function(o){return[2,rn.POST(e.BASE_URL+"/queries/listContextMetadataById",t,{signal:n})]}))}))},e.listExpressionMetadata=function(t,n){return ue(this,void 0,void 0,(function(){return me(this,(function(o){return[2,rn.POST(e.BASE_URL+"/queries/listExpressionMetadata",t,{signal:n})]}))}))},e.listFacadeMetadataNames=function(t,n){return ue(this,void 0,void 0,(function(){return me(this,(function(o){return[2,rn.POST(e.BASE_URL+"/queries/listFacadeMetadataNames",t,{signal:n})]}))}))},e.getFacadeMetadataByPath=function(t,n){return ue(this,void 0,void 0,(function(){return me(this,(function(o){return[2,rn.POST(e.BASE_URL+"/queries/getFacadeMetadataByPath",t,{signal:n})]}))}))},e.BASE_URL="platform/rule_metadata",e}();var un,mn,hn=null;function fn(){return[x.StateField.define({create:vn,update:function(e,t){return vn(t.state)},provide:function(e){return S.showTooltip.compute([e],(function(t){return t.field(e)}))}}),y.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 gn(e){hn=e,Nn.updateEditorView()}function vn(e){if(hn){var t=hn.outerHTML,n={pos:e.selection.ranges[0].head,create:function(){return{dom:bn(t)}}};return hn=null,n}}function bn(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 yn(){var e;un||((e=document.createElement("span")).innerText=an.translate("core_language_tax_calculation_fetching_suggestions"),un=e),gn(un)}function xn(){var e;mn||((e=document.createElement("span")).innerText=an.translate("core_language_tax_calculation_no_suggestions"),mn=e),gn(mn)}var _n=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 wn(e){return'"\\'+e+'"'}var Cn,kn="core_language_tax_calculation";function In(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(Cn){var t=ce({},Cn),n=e.state.doc.toString().length;return t.from=t.from>n?n:t.from,Cn=null,t}!function(e){var t=new AbortController;setTimeout((function(){t.signal.aborted||(yn(),function(e,t){var n,o,i,r;ue(this,void 0,void 0,(function(){var a,s,l,c;return me(this,(function(p){return a=null!==(r=null===(o=null===(n=null==e?void 0:e.state)||void 0===n?void 0:n.doc)||void 0===o?void 0:o.toString().substring(0,null!==(i=null==e?void 0:e.pos)&&void 0!==i?i: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,o;if(null==e)return"";var i=e.substring(0,e.length-t);return(null!==(o=null===(n=i.match(/(\w*\.)*$/))||void 0===n?void 0:n[0])&&void 0!==o?o:"").replace(/\.$/,"")}(a,s.length),c=function(e,t,n){var o,i=function(){var e,t=_n.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:Wt.ListContextMetadataById,request:dn.listContextMetadataById({id:i.contexts},n)}),r.push({requestType:Wt.ListExpressionMetadata,request:dn.listExpressionMetadata({context:i.contexts,subcontext:null!==(o=i.subContexts)&&void 0!==o?o:[],name:t,pageRequest:{offset:0,size:20}},n)});else if(e.includes(".")){var a=e.split(".");r.push({requestType:Wt.GetFacadeMetadataByPath,request:dn.getFacadeMetadataByPath({context:a[0],entityName:a[1],fields:void 0===a[2]?void 0:a.slice(2)},n)})}else r.push({requestType:Wt.ListFacadeMetadataNames,request:dn.listFacadeMetadataNames({context:[e],name:t,pageRequest:{offset:0,size:30}},n)});return r.map((function(e){return function(e){return ue(this,void 0,void 0,(function(){var t,n;return me(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),t=[ce({},e)],n={},[4,e.request];case 1:return[2,ce.apply(void 0,t.concat([(n.response=o.sent(),n)]))];case 2:return o.sent(),[3,3];case 3:return[2]}}))}))}(e)}))}(l,s,t.signal),Promise.all(c).then((function(n){if(!t.signal.aborted){var o=function(e,t){return e.filter((function(e){return e.label.toLowerCase().startsWith(t.toLowerCase())}))}([].concat(function(e){return""!==e?[]:[{label:Kt.SE,apply:"SE ()\nENTAO\n\tacao\nFIM_SE"},{label:Kt.SENAO,apply:"SENAO\n\tacao"},{label:Kt.CONTENHA,apply:"CONTENHA(condicao)"},{label:Kt.ENTAO,apply:"ENTAO\n\tacao"},{label:Kt.FIM_SE,apply:"FIM_SE "},{label:Kt.NAO,apply:"NAO "},{label:Kt.E,apply:"E "},{label:Kt.OU,apply:"OU "}].map((function(e){return ce(ce({},e),{detail:an.translate(kn+"_keyword"),type:Yt.Keyword})}))}(l),function(e){var t,n,o=e.find((function(e){return(null==e?void 0:e.requestType)===Wt.ListContextMetadataById}));if(o)return(null!==(n=null===(t=o.response)||void 0===t?void 0:t.contextMetadata)&&void 0!==n?n:[]).map((function(e){return{label:e.name,detail:an.translate(kn+"_context"),apply:e.name,type:Yt.Context}}));return[]}(n),function(e){var t,n,o=e.find((function(e){return(null==e?void 0:e.requestType)===Wt.ListExpressionMetadata}));if(o)return(null!==(n=null===(t=o.response)||void 0===t?void 0:t.expressionMetadata)&&void 0!==n?n:[]).map((function(e){return{label:e.name,detail:an.translate(kn+"_"+(e.type===qt.PUBLIC_EXPRESSION?"senior_expression":"user_expression")),apply:e.name,info:e.description,type:e.type===qt.PUBLIC_EXPRESSION?Yt.Expression:Yt.UserExpression}}));return[]}(n),function(e){var t,n,o,i,r,a=e.find((function(e){return(null==e?void 0:e.requestType)===Wt.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:an.translate(kn+"_entity"),apply:e.name,type:Yt.Entity}}));var s=e.find((function(e){return(null==e?void 0:e.requestType)===Wt.GetFacadeMetadataByPath}));if(s)return(null!==(r=null===(i=null===(o=s.response)||void 0===o?void 0:o.facadeMetadata)||void 0===i?void 0:i.fields)&&void 0!==r?r:[]).map((function(e){return{label:e.name,detail:an.translate(kn+"_"+(e.type===qt.ENTITY?"entity":"field")),apply:e.name,type:e.type===qt.ENTITY?Yt.Entity:Yt.FinalValue}}));return[]}(n)),s);if(o.length){var i=function(e){return e.sort((function(e,t){return Mn.indexOf(e.type)-Mn.indexOf(t.type)}))}(function(e,t){return e.map((function(e){return ce(ce({},e),{apply:En(t,""+e.apply)})}))}(o,s));Cn={from:e.pos,filter:!1,options:i},I.startCompletion(Nn.getEditorView())}else xn()}})),[2]}))}))}(e,t))}),500),Sn=Nn.getEditorView().contentDOM,Tn=function(){Sn.removeEventListener("keydown",Tn),Sn.removeEventListener("click",Tn),t.abort()},Sn.addEventListener("keydown",Tn),Sn.addEventListener("click",Tn)}(e)}}var Sn,Tn=function(){};function En(e,t){return function(n,o,i,r){var a=i-e.length;n.dispatch({changes:{from:a,to:r,insert:t},selection:{anchor:a+t.length},userEvent:"input.complete",annotations:I.pickedCompletion.of(o)})}}var Mn=[Yt.Keyword,Yt.Context,Yt.UserExpression,Yt.Expression,Yt.Entity,Yt.FinalValue];function Ln(){return new w.LanguageSupport(en,[[I.autocompletion({override:[In]}),[fn()],[fn()],y.EditorView.theme({".cm-completionIcon":{"font-family":"'Font Awesome 5 Pro'","font-weight":"900"},".cm-completionIcon-keyword::after":{content:wn("f084")},".cm-completionIcon-context::after":{content:wn("f466")},".cm-completionIcon-expression::after":{content:wn("f505")},".cm-completionIcon-userExpression::after":{content:wn("f4ff")},".cm-completionIcon-entity::after":{content:wn("f126")},".cm-completionIcon-finalValue::after":{content:wn("f192")}})]])}var Fn=w.LRLanguage.define({parser:C.buildParser('\n@top JsonDocument { JsonValue }\n\nJsonValue {\n JsonObject |\n JsonArray |\n JsonString |\n JsonNumber |\n JsonBoolean |\n JsonNull\n}\n\nJsonObject {\n "{" (JsonPair ("," JsonPair)*)? "}"\n}\n\nJsonPair {\n JsonString ":" JsonValue\n}\n\nJsonArray {\n "[" (JsonValue ("," JsonValue)*)? "]"\n}\n\n@tokens {\n JsonString { \'"\' (![\\n"])* \'"\'? }\n JsonNumber {\n \'-\'? std.digit+\n (\'.\' std.digit+)?\n (("e" | "E") ("+" | "-")? std.digit+)?\n }\n JsonBoolean { "true" | "false" }\n JsonNull { "null" }\n space { $[ \t\n\r]+ }\n "{" "}"\n "[" "]"\n ":" ","\n}\n\n@skip { space }\n\n@detectDelim\n').configure({props:[k.styleTags({JsonString:k.tags.string,JsonNumber:k.tags.number,"JsonBoolean JsonNull":k.tags.keyword,'"{"':k.tags.brace,'"}"':k.tags.brace,'"["':k.tags.brace,'"]"':k.tags.brace,'":"':k.tags.operator,'","':k.tags.punctuation})]})});function On(){return new w.LanguageSupport(Fn)}var Rn=function(){function t(){}return t.getLanguage=function(e){var n=t._LANGUAGES.get(e);return n?n():[]},t._LANGUAGES=new Map([[e.Languages.TaxCalculation,Ln],[e.Languages.Json,On]]),t}();var An=k.HighlightStyle.define([{tag:k.tags.keyword,color:"#008080"},{tag:k.tags.string,color:"#9C3A3A"},{tag:k.tags.number,color:"#400753"}]);var Dn={"font-family":"'Noto Sans Mono', 'sans-serif'","font-style":"normal","font-size":"1rem"};function Pn(){return[[y.EditorView.theme({"&.cm-editor.cm-focused":{outline:"none"}}),[y.EditorView.baseTheme({"&.cm-editor":{height:"100%"}})],[y.EditorView.theme({".cm-scroller":ce(ce({},Dn),{"letter-spacing":"0","line-height":"1.5em","font-variation-settings":"'wght' 400",color:"#333333"}),".cm-tooltip.cm-tooltip-autocomplete > ul":ce(ce({},Dn),{"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"}})],[T.lineNumbers(),y.EditorView.theme({".cm-gutters":{"background-color":"#fff",color:"#428BCA","border-right":"none"},".cm-gutter":{padding:"0 2rem 0 2rem"}})],[y.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"}})]],An]}var Vn,Bn=function(){function t(){}return t.getTheme=function(e){var n=t._THEMES.get(e);return n?n():[]},t._THEMES=new Map([[e.Themes.SDSLight,Pn]]),t}(),Nn=function(e){function t(){var t=e.call(this)||this;return t._codeReceivedBeforeViewCreation="",t._editorOptionsReceivedBeforeViewCreation=[],t}return le(t,e),t.getEditorView=function(){return t._editorView},t.updateEditorView=function(){for(var e,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];(e=t._editorView).dispatch.apply(e,ge(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=Rn.getLanguage(e.language),o=Bn.getTheme(e.theme);t._editorView?t.updateEditorView({effects:x.StateEffect.reconfigure.of([n,o,this.getCodeChangeListenerExtension()])}):this._editorOptionsReceivedBeforeViewCreation=[n,o]},t.prototype.highlightCode=function(e){var n=function(e,t){return e.map((function(e){var n,o;return{from:e.start||0,to:e.end||t,message:null!==(n=e.message)&&void 0!==n?n:"",severity:null!==(o=pn.get(e.severity))&&void 0!==o?o:"error"}}))}(e,t._editorView.state.doc.length);t.updateEditorView(_.setDiagnostics(t._editorView.state,n))},t.prototype.setObservablesListeners=function(){var e=this;t.$onCompletionItemsUpdate.pipe(i.takeUntil(t._ngUnsubscribe)).subscribe((function(t){return e.updateCompletionItems(t)}))},t.prototype.createEditorView=function(e){t._editorView=new y.EditorView({parent:e,state:x.EditorState.create({doc:this._codeReceivedBeforeViewCreation,extensions:[this._editorOptionsReceivedBeforeViewCreation,this.getCodeChangeListenerExtension()]})}),this.notifyCoreFinishLoad()},t.prototype.getCodeChangeListenerExtension=function(){var e=this;return y.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.prototype.setCodeWithCursorPreservation=function(e){if(t._editorView){if(t._editorView.state.doc.toString()!==e){var n=t._editorView.state.selection.main;t.updateEditorView({changes:{from:0,to:t._editorView.state.doc.length,insert:e},selection:{anchor:Math.min(n.anchor,e.length),head:Math.min(n.head,e.length)}})}}else this._codeReceivedBeforeViewCreation=e},t.$onCompletionItemsUpdate=new o.Subject,t._ngUnsubscribe=new o.Subject,t._editorView=null,t}(Jt),zn=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,cn],declarations:[Qt],exports:[Qt],providers:[{provide:Jt,useClass:Nn}]})],e)}(),Un=function(){function e(){this.buttonId="s-collapse-button-"+o.nextId++,this.expandedLabel="Mostrar menos",this.collapsedLabel="Mostrar mais",this.disabled=!1,this.collapse=!0,this.collapsed=!0}var o;return o=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,pe([t.Input()],e.prototype,"buttonId",void 0),pe([t.Input()],e.prototype,"expandedLabel",void 0),pe([t.Input()],e.prototype,"collapsedLabel",void 0),pe([t.Input()],e.prototype,"disabled",void 0),pe([t.Input()],e.prototype,"collapse",void 0),e=o=pe([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:[n.trigger("collapseContent",[n.state("void",n.style({height:0,opacity:0})),n.state("*",n.style({height:"*",opacity:1})),n.transition("void <=> *",n.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:35px;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)}(),jn=function(){function e(){}return e=pe([t.NgModule({declarations:[Un],exports:[Un],imports:[r.CommonModule]})],e)}(),Hn=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){var n;return null===(n=e.errorMessages)||void 0===n?void 0:n[t]})):[]},e.nextId=0,pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"control",void 0),pe([t.Input()],e.prototype,"errorMessages",void 0),pe([t.Input()],e.prototype,"form",void 0),e=n=pe([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)}(),$n=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule],declarations:[Hn],exports:[Hn]})],e)}(),Gn=[{id:"gb",ddi:"+44",mask:"00-0000-0000"},{id:"br",ddi:"+55",mask:["(00) 0000-00009","(00) 00000-0000"]},{id:"ar",ddi:"+54",mask:["(00) 0000-00009","(000) 0000-0000"]},{id:"bo",ddi:"+591",mask:"0 000 0000"},{id:"cl",ddi:"+56",mask:"0 0000 0000"},{id:"co",ddi:"+57",mask:["0 00000009","000 0000000"]},{id:"cr",ddi:"+506",mask:"0000 0000"},{id:"cu",ddi:"+53",mask:["000 0009","00 000000"]},{id:"ec",ddi:"+593",mask:["000 00009","000 000 000"]},{id:"sv",ddi:"+503",mask:"0000 0000"},{id:"gt",ddi:"+502",mask:"0000 0000"},{id:"ht",ddi:"+509",mask:"0000 0000"},{id:"hn",ddi:"+504",mask:"0000-0000"},{id:"mx",ddi:"+52",mask:["00 0000 00009","0 00 0000 0000"]},{id:"ni",ddi:"+505",mask:"0000 0000"},{id:"pa",ddi:"+507",mask:"0000 0000"},{id:"py",ddi:"+595",mask:["00 000 0009","000 000000"]},{id:"pe",ddi:"+51",mask:"000 000 000"},{id:"do",ddi:"+1809",mask:"000 000-0000"},{id:"uy",ddi:"+598",mask:["0000 00009","0000 00000"]},{id:"ve",ddi:"+58",mask:"000-0000000"},{id:"us",ddi:"+1",mask:"000-000-0000"},{id:"ca",ddi:"+1",mask:"000-000-0000"},{id:"cn",ddi:"+86",mask:"000 0000 0000"},{id:"as",ddi:"+1684",mask:"000-0000"},{id:"ai",ddi:"+1264",mask:"000-0000"},{id:"ag",ddi:"+1268",mask:"000-0000"},{id:"bs",ddi:"+1242",mask:"000-0000"},{id:"bb",ddi:"+1246",mask:"000-0000"},{id:"bm",ddi:"+1441",mask:"000-0000"},{id:"vg",ddi:"+1284",mask:"000-0000"},{id:"ky",ddi:"+1345",mask:"000-0000"},{id:"dm",ddi:"+1767",mask:"000-0000"},{id:"gd",ddi:"+1473",mask:"000-0000"},{id:"gu",ddi:"+1671",mask:"000-0000"},{id:"jm",ddi:"+1876",mask:"000-0000"},{id:"ms",ddi:"+1664",mask:"000-0000"},{id:"mp",ddi:"+1670",mask:"000-0000"},{id:"pr",ddi:"+1",mask:"000-0000"},{id:"kn",ddi:"+1869",mask:"000-0000"},{id:"lc",ddi:"+1758",mask:"000-0000"},{id:"vc",ddi:"+1784",mask:"000-0000"},{id:"tt",ddi:"+1868",mask:"000-0000"},{id:"tc",ddi:"+1649",mask:"000-0000"},{id:"fi",ddi:"+358",mask:"000 0000000"},{id:"rs",ddi:"+381",mask:"000 0000000"},{id:"zm",ddi:"+260",mask:"000 0000000"},{id:"af",ddi:"+93",mask:"000 000 0000"},{id:"al",ddi:"+355",mask:"000 000 0000"},{id:"hr",ddi:"+385",mask:"000 000 0000"},{id:"et",ddi:"+251",mask:"000 000 0000"},{id:"gh",ddi:"+233",mask:"000 000 0000"},{id:"gr",ddi:"+30",mask:"000 000 0000"},{id:"ie",ddi:"+353",mask:"000 000 0000"},{id:"it",ddi:"+39",mask:"000 000 0000"},{id:"lr",ddi:"+231",mask:"000 000 0000"},{id:"na",ddi:"+264",mask:"000 000 0000"},{id:"nz",ddi:"+64",mask:"000 000 0000"},{id:"sa",ddi:"+966",mask:"000 000 0000"},{id:"za",ddi:"+27",mask:"000 000 0000"},{id:"lk",ddi:"+94",mask:"000 000 0000"},{id:"sd",ddi:"+249",mask:"000 000 0000"},{id:"th",ddi:"+66",mask:"000 000 0000"},{id:"ua",ddi:"+380",mask:"000 000 0000"},{id:"ae",ddi:"+971",mask:"000 000 0000"},{id:"va",ddi:"+39",mask:"000 000 0000"},{id:"zw",ddi:"+263",mask:"000 000 0000"},{id:"dz",ddi:"+213",mask:"0000 00 00 00"},{id:"be",ddi:"+32",mask:"0000 00 00 00"},{id:"yt",ddi:"+262",mask:"0000 00 00 00"},{id:"bl",ddi:"+590",mask:"0000 00 00 00"},{id:"mf",ddi:"+1599",mask:"0000 00 00 00"},{id:"ad",ddi:"+376",mask:"000-000"},{id:"ao",ddi:"+244",mask:"000 000 000"},{id:"ba",ddi:"+387",mask:"000 000 000"},{id:"bg",ddi:"+359",mask:"000 000 000"},{id:"kh",ddi:"+855",mask:"000 000 000"},{id:"cz",ddi:"+420",mask:"000 000 000"},{id:"gq",ddi:"+240",mask:"000 000 000"},{id:"gw",ddi:"+245",mask:"000 000 000"},{id:"li",ddi:"+423",mask:"000 000 000"},{id:"lu",ddi:"+352",mask:"000 000 000"},{id:"mk",ddi:"+389",mask:"000 000 000"},{id:"me",ddi:"+382",mask:"000 000 000"},{id:"pl",ddi:"+48",mask:"000 000 000"},{id:"pt",ddi:"+351",mask:"000 000 000"},{id:"si",ddi:"+386",mask:"000 000 000"},{id:"am",ddi:"+374",mask:"000 000000"},{id:"aw",ddi:"+297",mask:"000 0000"},{id:"bn",ddi:"+673",mask:"000 0000"},{id:"fj",ddi:"+679",mask:"000 0000"},{id:"gm",ddi:"+220",mask:"000 0000"},{id:"gy",ddi:"+592",mask:"000 0000"},{id:"is",ddi:"+354",mask:"000 0000"},{id:"fm",ddi:"+691",mask:"000 0000"},{id:"nr",ddi:"+674",mask:"000 0000"},{id:"nu",ddi:"+683",mask:"000 0000"},{id:"pw",ddi:"+680",mask:"000 0000"},{id:"st",ddi:"+239",mask:"000 0000"},{id:"to",ddi:"+676",mask:"000 0000"},{id:"vu",ddi:"+678",mask:"000 0000"},{id:"fk",ddi:"+500",mask:"00000"},{id:"fo",ddi:"+298",mask:"00000"},{id:"sh",ddi:"+290",mask:"00000"},{id:"au",ddi:"+61",mask:"0000 000 000"},{id:"cx",ddi:"+61",mask:"0000 000 000"},{id:"cc",ddi:"+61",mask:"0000 000 000"},{id:"cd",ddi:"+243",mask:"0000 000 000"},{id:"kg",ddi:"+996",mask:"0000 000 000"},{id:"ro",ddi:"+40",mask:"0000 000 000"},{id:"rw",ddi:"+250",mask:"0000 000 000"},{id:"sk",ddi:"+421",mask:"0000 000 000"},{id:"sy",ddi:"+963",mask:"0000 000 000"},{id:"tw",ddi:"+886",mask:"0000 000 000"},{id:"tz",ddi:"+255",mask:"0000 000 000"},{id:"ye",ddi:"+967",mask:"0000 000 000"},{id:"at",ddi:"+43",mask:"0000 000000"},{id:"ke",ddi:"+254",mask:"0000 000000"},{id:"ug",ddi:"+256",mask:"0000 000000"},{id:"az",ddi:"+994",mask:"000 000 00 00"},{id:"ch",ddi:"+41",mask:"000 000 00 00"},{id:"vn",ddi:"+84",mask:"000 000 00 00"},{id:"bh",ddi:"+973",mask:"0000 0000"},{id:"ee",ddi:"+372",mask:"0000 0000"},{id:"sz",ddi:"+268",mask:"0000 0000"},{id:"hk",ddi:"+852",mask:"0000 0000"},{id:"ls",ddi:"+266",mask:"0000 0000"},{id:"mo",ddi:"+853",mask:"0000 0000"},{id:"mt",ddi:"+356",mask:"0000 0000"},{id:"mu",ddi:"+230",mask:"0000 0000"},{id:"mn",ddi:"+976",mask:"0000 0000"},{id:"om",ddi:"+968",mask:"0000 0000"},{id:"pg",ddi:"+675",mask:"0000 0000"},{id:"qa",ddi:"+974",mask:"0000 0000"},{id:"sg",ddi:"+65",mask:"0000 0000"},{id:"tl",ddi:"+670",mask:"0000 0000"},{id:"bd",ddi:"+880",mask:"00000 000000"},{id:"im",ddi:"+44",mask:"00000 000000"},{id:"by",ddi:"+375",mask:"0 000 000-00-00"},{id:"bz",ddi:"+501",mask:"000-0000"},{id:"mv",ddi:"+960",mask:"000-0000"},{id:"mh",ddi:"+692",mask:"000-0000"},{id:"sr",ddi:"+597",mask:"000-0000"},{id:"bj",ddi:"+229",mask:"00 00 00 00"},{id:"bt",ddi:"+975",mask:"00 00 00 00"},{id:"bf",ddi:"+226",mask:"00 00 00 00"},{id:"bi",ddi:"+257",mask:"00 00 00 00"},{id:"cf",ddi:"+236",mask:"00 00 00 00"},{id:"td",ddi:"+235",mask:"00 00 00 00"},{id:"ci",ddi:"+225",mask:"00 00 00 00"},{id:"dk",ddi:"+45",mask:"00 00 00 00"},{id:"dj",ddi:"+253",mask:"00 00 00 00"},{id:"fr",ddi:"+33",mask:"00 00 00 00"},{id:"pf",ddi:"+689",mask:"00 00 00 00"},{id:"ga",ddi:"+241",mask:"00 00 00 00"},{id:"ml",ddi:"+223",mask:"00 00 00 00"},{id:"mr",ddi:"+222",mask:"00 00 00 00"},{id:"ne",ddi:"+227",mask:"00 00 00 00"},{id:"sm",ddi:"+378",mask:"00 00 00 00"},{id:"tg",ddi:"+228",mask:"00 00 00 00"},{id:"gi",ddi:"+350",mask:"00000000"},{id:"ki",ddi:"+686",mask:"00000000"},{id:"tv",ddi:"+688",mask:"00000000"},{id:"bw",ddi:"+267",mask:"00 000 000"},{id:"er",ddi:"+291",mask:"00 000 000"},{id:"lv",ddi:"+371",mask:"00 000 000"},{id:"lb",ddi:"+961",mask:"00 000 000"},{id:"tn",ddi:"+216",mask:"00 000 000"},{id:"cm",ddi:"+237",mask:"0 00 00 00 00"},{id:"cv",ddi:"+238",mask:"000 00 00"},{id:"km",ddi:"+269",mask:"000 00 00"},{id:"pm",ddi:"+508",mask:"000 00 00"},{id:"cg",ddi:"+242",mask:"00 000 0000"},{id:"mz",ddi:"+258",mask:"00 000 0000"},{id:"mm",ddi:"+95",mask:"00 000 0000"},{id:"ck",ddi:"+682",mask:"00 000"},{id:"cy",ddi:"+357",mask:"00 000000"},{id:"eg",ddi:"+20",mask:"0000 000 0000"},{id:"ir",ddi:"+98",mask:"0000 000 0000"},{id:"iq",ddi:"+964",mask:"0000 000 0000"},{id:"ng",ddi:"+234",mask:"0000 000 0000"},{id:"kp",ddi:"+850",mask:"0000 000 0000"},{id:"ph",ddi:"+63",mask:"0000 000 0000"},{id:"ge",ddi:"+995",mask:"000 00 00 00"},{id:"gn",ddi:"+224",mask:"000 00 00 00"},{id:"es",ddi:"+34",mask:"000 00 00 00"},{id:"de",ddi:"+49",mask:"00000 0000000"},{id:"gl",ddi:"+299",mask:"00 00 00"},{id:"wf",ddi:"+681",mask:"00 00 00"},{id:"hu",ddi:"+36",mask:"(00) 000 0000"},{id:"in",ddi:"+91",mask:"000000 00000"},{id:"id",ddi:"+62",mask:"0000-000-000"},{id:"il",ddi:"+972",mask:"000-000-0000"},{id:"jp",ddi:"+81",mask:"000-000-0000"},{id:"jo",ddi:"+962",mask:"00 0000 0000"},{id:"kz",ddi:"+7",mask:"0 (000) 000-0000"},{id:"kw",ddi:"+965",mask:"000 00000"},{id:"la",ddi:"+856",mask:"000 00 000 000"},{id:"ly",ddi:"+218",mask:"000-0000000"},{id:"lt",ddi:"+370",mask:"(0-000) 00000"},{id:"np",ddi:"+977",mask:"(0-000) 00000"},{id:"mg",ddi:"+261",mask:"000 00 000 00"},{id:"mw",ddi:"+265",mask:"000 00 000 00"},{id:"my",ddi:"+60",mask:"000-000 0000"},{id:"md",ddi:"+373",mask:"0000 00 000"},{id:"mc",ddi:"+377",mask:"00 00 00 00 00"},{id:"ma",ddi:"+212",mask:"0000-000000"},{id:"nl",ddi:"+31",mask:"00 00000000"},{id:"nc",ddi:"+687",mask:"00.00.00"},{id:"no",ddi:"+47",mask:"000 00 000"},{id:"pk",ddi:"+92",mask:"0000 0000000"},{id:"ru",ddi:"+7",mask:"0 (000) 000-00-00"},{id:"ws",ddi:"+685",mask:"00 00000"},{id:"sb",ddi:"+677",mask:"00 00000"},{id:"sn",ddi:"+221",mask:"00 000 00 00"},{id:"sc",ddi:"+248",mask:"0 000 000"},{id:"sl",ddi:"+232",mask:"(000) 000000"},{id:"so",ddi:"+252",mask:"0 0000000"},{id:"kr",ddi:"+82",mask:"000-0000-0000"},{id:"se",ddi:"+46",mask:"000-000 00 00"},{id:"tj",ddi:"+992",mask:"000 00 0000"},{id:"tk",ddi:"+690",mask:"0000"},{id:"tr",ddi:"+90",mask:"0000 000 00 00"},{id:"tm",ddi:"+993",mask:"0 00 000000"},{id:"uz",ddi:"+998",mask:"0 00 000 00 00"}];(Vn=e.Ordination||(e.Ordination={})).NO="no",Vn.AZ="az",Vn.ZA="za";var qn,Wn=function(){function n(e){this.translate=e}return n.prototype.getCountries=function(t){switch(t){case e.Ordination.AZ:return this.sortAlphabetically();case e.Ordination.ZA:return this.sortAlphabeticallyDescending();case e.Ordination.NO:default:return Gn}},n.prototype.sortAlphabetically=function(){var e=this;return Gn.sort((function(t,n){var o=e.translate.instant("platform.angular_components_"+t.id),i=e.translate.instant("platform.angular_components_"+n.id);return o.localeCompare(i)}))},n.prototype.sortAlphabeticallyDescending=function(){var e=this;return Gn.sort((function(t,n){var o=e.translate.instant("platform.angular_components_"+t.id);return e.translate.instant("platform.angular_components_"+n.id).localeCompare(o)}))},n.ctorParameters=function(){return[{type:b.TranslateService}]},n=pe([t.Injectable()],n)}(),Yn={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},Kn=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,o){var i=this;void 0===e&&(e=[]),void 0===t&&(t=[]),void 0===n&&(n=";"),void 0===o&&(o="download");var r="\ufeff";e.filter((function(e){return e.exportable&&e.field})).forEach((function(t,o){r+='"'+(t.header||t.field)+'"',o<e.length-1&&(r+=n)})),t.forEach((function(t){r+="\n",e.filter((function(e){return e.exportable&&e.field})).forEach((function(o,a){var s;Array.isArray(o.field)?s=o.field.map((function(e){return i.resolveFieldData(t,e)})).flat().filter((function(e){return null!=e})).join(o.separator):s=i.resolveFieldData(t,o.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,o+".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",o+".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("."),o=e,i=0,r=n.length;i<r;++i){if(null==o)return null;o=o[n[i]]}return o}return null},e.isFunction=function(e){return!!(e&&e.constructor&&e.call&&e.apply)},e}(),Zn=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")},Xn=function(){function n(n,o,i,r){var s=this;this._countryPhonePickerService=n,this._translate=o,this._eRef=i,this.platformId=r,this.currentItemIndex=0,this.phone=new a.FormControl(""),this.filter=new a.FormControl(""),this.dropTop=0,this.dropLeft=0,this._open=!1,this.offsetTop=0,this.ordination=e.Ordination.NO,this.selected=new t.EventEmitter,this.blur=new t.EventEmitter,this.focusLost=new t.EventEmitter,this.tabindex=0,this._filterCountries=function(e){s.filteredCountriesList=e?s._countriesList.filter((function(t){return s._translate.instant("platform.angular_components.country_name_"+t.id).toLowerCase().includes(e.toLowerCase())})):s._countriesList}}var o;return o=n,Object.defineProperty(n.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.mask=this.getMask()},enumerable:!0,configurable:!0}),n.prototype.writeValue=function(e){if(this.value=e,null==e?void 0:e.id){var t=this._countriesList.filter((function(t){return t.id==e.id}));t.length&&this.onSelectItem(t[0])}(null==e?void 0:e.rawValue)&&this.phone.setValue(e.rawValue)},n.prototype.registerOnChange=function(e){this._onChange=e},n.prototype.registerOnTouched=function(e){this._onTouched=e},n.prototype.onClickout=function(e){this._eRef.nativeElement.contains(e.target)||this.open&&(this.open=!1)},n.prototype.ngOnInit=function(){var e,t=this,n=this._countryPhonePickerService.getCountries(this.ordination);this.filter.valueChanges.subscribe(this._filterCountries),(null===(e=this.countries)||void 0===e?void 0:e.length)?this._countriesList=n.filter((function(e){return t.countries.includes(e.id)})):this._countriesList=n,this.filteredCountriesList=this._countriesList,this.selectedItem=this._getSelectedCountryDefault(),this.mask=this.getMask(),this.phone.valueChanges.subscribe((function(e){t.value={id:t.selectedItem.id,ddi:t.selectedItem.ddi,rawValue:null!=e?e:"",value:e?""+t._applyMask(e):""},t._onChange&&t._onChange(t.value)}))},n.prototype.onKeydown=function(e){"Enter"===e.key||" "===e.key?(this.open&&(this.selectedItem=this._countriesList[this.currentItemIndex],this.selected.emit(this.selectedItem)),this.open=!this.open):"Escape"===e.key?this.open=!1:"ArrowDown"===e.key?this._moveToDown():"ArrowUp"===e.key&&this._moveToUp()},Object.defineProperty(n.prototype,"open",{get:function(){return this._open},set:function(e){this._open=e,e?this._createDropdownPortal():(this._portalHost&&this._portalHost.hasAttached()&&this._portalHost.detach(),this.phoneInput.nativeElement.focus())},enumerable:!0,configurable:!0}),n.prototype.onSelectItem=function(e){this.open=!1,this.selectedItem=e,this.phone.setValue(""),this.currentItemIndex=this._countriesList.indexOf(this.selectedItem),this.selected.emit(this.selectedItem)},n.prototype.onCleanFilter=function(){this.filter.setValue("")},n.prototype.onPhoneInputFocus=function(){this.open=!1},n.prototype.getMask=function(){var e,t=this.selectedItem.mask;return Array.isArray(t)?!(null===(e=this.value)||void 0===e?void 0:e.rawValue)||this.value.rawValue.length<=t[0].replace(/[^0]/g,"").length?t[0]:t[1]:t},n.prototype.getPlaceholder=function(){return this.mask.replace(/9/g,"")},n.prototype.onBlur=function(e){this.blur.emit(e),this.focusLost.emit(e)},n.prototype._getSelectedCountryDefault=function(){if(!this._countriesList.length)throw new Error("No country loaded");var e=this._countriesList.filter((function(e){return"br"===e.id}));return e.length?e[0]:this._countriesList[0]},n.prototype._moveToUp=function(){if(0!=this.currentItemIndex){this.currentItemIndex--;var e=document.querySelector(".select-list");e.children[this.currentItemIndex].offsetTop-e.offsetTop<=this.offsetTop&&(this.offsetTop-=45,e.scrollTo(0,this.offsetTop))}},n.prototype._moveToDown=function(){if(!(this.currentItemIndex>=this._countriesList.length-1)){this.currentItemIndex++;var e=document.querySelector(".select-list");e.children[this.currentItemIndex].offsetTop-e.offsetTop>this.offsetTop+180&&(this.offsetTop+=45,e.scrollTo(0,this.offsetTop))}},n.prototype._applyMask=function(e){var t,n,o;if(Array.isArray(this.selectedItem.mask)){var i=this.selectedItem.mask[0].replace(/[^0]/g,"");o=e.length<=i.length?this.selectedItem.mask[0]+"\0":this.selectedItem.mask[1]+"\0"}else o=this.selectedItem.mask+"\0";var r="",a="",s=0,l=0;try{for(var c=he(o),p=c.next();!p.done;p=c.next()){var d=p.value;isNaN(parseInt(d))?(s&&(r+="(\\d{"+s+"})",a+="$"+ ++l,s=0),"\0"!==d&&(a+=d)):s++}}catch(e){t={error:e}}finally{try{p&&!p.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return r="^"+r+"*",this.phone.value.replace(new RegExp(r),a)},n.prototype._createDropdownPortal=function(){if(r.isPlatformBrowser(this.platformId)&&!Se(this.dropElement)){var e=document.body,t=this.dropElement.nativeElement.getBoundingClientRect();this.dropTop=t.bottom+window.scrollY,this.dropLeft=t.left+window.scrollX,this._portalHost=new E.DomPortalOutlet(e,null,null,null);var n=new E.TemplatePortal(this.dropdownTemplate,this.viewContainerRef);this._portalHost.attach(n)}},n.ctorParameters=function(){return[{type:Wn},{type:b.TranslateService},{type:t.ElementRef},{type:Object,decorators:[{type:t.Inject,args:[t.PLATFORM_ID]}]}]},pe([t.ViewChild("dropdownTemplate")],n.prototype,"dropdownTemplate",void 0),pe([t.ViewChild("dropElement",{read:t.ViewContainerRef})],n.prototype,"viewContainerRef",void 0),pe([t.ViewChild("dropElement",{read:t.ElementRef})],n.prototype,"dropElement",void 0),pe([t.ViewChild("#dropdownContainer",{read:t.ElementRef})],n.prototype,"dropdownContainer",void 0),pe([t.Input()],n.prototype,"countries",void 0),pe([t.Input()],n.prototype,"ordination",void 0),pe([t.Output()],n.prototype,"selected",void 0),pe([t.Output()],n.prototype,"blur",void 0),pe([t.Output()],n.prototype,"focusLost",void 0),pe([t.ViewChild("phoneInput",{static:!0})],n.prototype,"phoneInput",void 0),pe([t.HostListener("document:click",["$event"])],n.prototype,"onClickout",null),pe([t.HostBinding("attr.tabindex")],n.prototype,"tabindex",void 0),pe([t.HostListener("keydown",["$event"])],n.prototype,"onKeydown",null),n=o=pe([t.Component({selector:"s-country-phone-picker",template:'<div class="country-phone-picker">\n <div #dropElement class="phone-input">\n <div class="drop" (click)="open = !open">\n <span class="drop-flag" [ngClass]="\'fi fi-\' + selectedItem.id"> </span>\n <span class="drop-icon fas fa-caret-down"></span>\n </div>\n <p class="phone-ddi">{{ selectedItem.ddi }}</p>\n <input\n #phoneInput\n type="tel"\n autofocus\n [mask]="mask"\n [placeholder]="getPlaceholder()"\n [formControl]="phone"\n (focus)="onPhoneInputFocus()"\n (blur)="onBlur(value)"\n />\n </div>\n <ng-template #dropdownTemplate>\n <div\n #dropdownContainer\n *ngIf="open"\n class="dropdown"\n [ngStyle]="{\n position: \'absolute\',\n top: dropTop + \'px\',\n left: dropLeft + \'px\'\n }"\n >\n <div class="search">\n <input class="search-field" type="text" [formControl]="filter" />\n <span class="search-icon fas fa-search"></span>\n <span class="search-clear fa fa-times" (click)="onCleanFilter()"></span>\n </div>\n <ul class="select-list">\n <li\n *ngFor="let country of filteredCountriesList; let i = index"\n class="select-option"\n [ngClass]="{ \'select-option--focused\': i == currentItemIndex }"\n (click)="onSelectItem(country)"\n >\n <span class="select-option__flag" [ngClass]="\'fi fi-\' + country.id"> </span>\n <span class="select-option__name">\n {{ "platform.angular_components.country_name_" + country.id | translate }}\n </span>\n <span class="select-option__ddi">\n {{ country.ddi }}\n </span>\n </li>\n </ul>\n </div>\n </ng-template>\n</div>\n',providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return o})),multi:!0}],styles:[':host.ng-invalid.ng-dirty .phone-input{border-color:#c13018}.country-phone-picker:has(input:focus) .phone-input{border:1px solid #428bca}.country-phone-picker .phone-input{background-color:#fff;border:1px solid #d8d8d8;border-radius:4px;display:-ms-flexbox;display:flex;line-height:normal;overflow:hidden}.country-phone-picker .phone-input .drop{-ms-flex-align:center;align-items:center;cursor:pointer;display:-ms-flexbox;display:flex}.country-phone-picker .phone-input .drop .drop-flag{margin-left:12px}.country-phone-picker .phone-input .drop .drop-icon{font-size:12px;margin:0 8px}.country-phone-picker .phone-input .phone-ddi{margin:8px 0}.country-phone-picker .phone-input input{border:none;-ms-flex-positive:1;flex-grow:1;font-family:"Open Sans",sans-serif;font-size:14px;font-weight:400;line-height:150%;margin-left:8px}.country-phone-picker .phone-input input:focus{color:#697882;outline:0}.dropdown{background-color:#fff;border-radius:4px;box-shadow:0 4px 5px #00000033;padding:4px 0;position:absolute;margin:2px 0;z-index:999999}.dropdown .search{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;padding:8px 12px}.dropdown .search .search-field{border:1px solid #d8d8d8;border-radius:4px;-ms-flex-positive:1;flex-grow:1;font-family:"Open Sans",sans-serif;font-size:14px;font-weight:400;height:36px;line-height:150%;padding:0 32px 0 8px}.dropdown .search .search-icon{color:#333;font-size:12px;position:relative;right:24px}.dropdown .search .search-clear{color:#333;cursor:pointer;font-size:1rem}.dropdown .select-list{list-style:none;max-height:234px;min-width:360px;max-width:100vw;overflow:scroll;padding:0}.dropdown .select-list .select-option{cursor:pointer;display:-ms-flexbox;display:flex;padding:12px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.dropdown .select-list .select-option .select-option__flag{margin-right:12px}.dropdown .select-list .select-option .select-option__name{margin-right:.5rem;max-width:100%;overflow:hidden;text-overflow:ellipsis}.dropdown .select-list .select-option .select-option__ddi{color:#697882;font-size:14px;font-family:"Open Sans",sans-serif;font-weight:400;line-height:150%}.dropdown .select-list .select-option--focused,.dropdown .select-list .select-option:hover{background-color:#e5eaea}']}),de(3,t.Inject(t.PLATFORM_ID))],n)}(),Jn=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,b.TranslateModule,a.ReactiveFormsModule,M.NgxMaskModule.forRoot(),E.PortalModule],declarations:[Xn],exports:[Xn],providers:[Wn]})],e)}(),Qn=function(){function e(){}return e.prototype.isFunction=function(e){return e instanceof Function},e.prototype.trigger=function(e){return e()},e}();(qn=e.FieldType||(e.FieldType={})).Autocomplete="Autocomplete",qn.Binary="Binary",qn.Blob="Blob",qn.Boolean="Boolean",qn.Checkbox="Checkbox",qn.Chips="Chips",qn.CodeEditor="CodeEditor",qn.CountryPhonePicker="CountryPhonePicker",qn.Custom="Custom",qn.Date="Date",qn.DateTime="DateTime",qn.Double="Double",qn.Editor="Editor",qn.Enum="Enum",qn.Integer="Integer",qn.LocalDateTime="LocalDateTime",qn.Lookup="Lookup",qn.Money="Money",qn.Number="Number",qn.Password="Password",qn.Radio="Radio",qn.Slider="Slider",qn.String="String",qn.Text="Text",qn.TextIA="TextIA",qn.Time="Time",qn.ProfilePicture="ProfilePicture",qn.Button="Button";var eo,to=function(e){var t=e.sm,n=void 0===t?12:t,o=e.md,i=void 0===o?6:o,r=e.lg,a=void 0===r?6:r,s=e.xl,l=void 0===s?6:s;this.sm=n,this.md=i,this.lg=a,this.xl=l},no=function(){function e(e){var t,n,o,i,r,a,s;this.ignoreLabel=!1,(null===(t=e.footer)||void 0===t?void 0:t.help)&&(e.footer.help=ce({visible:function(){return!0}},null===(n=e.footer)||void 0===n?void 0:n.help)),(null===(o=e.footer)||void 0===o?void 0:o.link)&&(e.footer.link=ce({visible:function(){return!0}},null===(i=e.footer)||void 0===i?void 0:i.link)),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 to(e.size||{}),this.errorMessages=e.errorMessages,this.bottomTemplate=e.bottomTemplate,this.footer=e.footer,this.defaultValue=e.defaultValue,this.representedBy=e.representedBy,this.CustomFieldClass=e.CustomFieldClass,this.CustomFieldComponentClass=e.CustomFieldComponentClass,this.displayTimeInfoSign=null!==(r=e.displayTimeInfoSign)&&void 0!==r?r:5e3,this.useInfoSignFocusedInputRef=null===(a=e.useInfoSignFocusedInputRef)||void 0===a||a,this.ignoreLabel=null!==(s=e.ignoreLabel)&&void 0!==s&&s}return Object.defineProperty(e.prototype,"gridClass",{get:function(){var e=this;return Object.keys(this.size).map((function(t){return"ui-"+t+"-"+e.size[t]}))},enumerable:!0,configurable:!0}),e}(),oo=function(t){function n(n){var o=t.call(this,ce(ce({},n),{type:e.FieldType.Autocomplete}))||this;return o.suggestions=[],Object.assign(o,n),o.suggestionsObservable.subscribe((function(e){return o.suggestions=e})),o}return le(n,t),n}(no),io=function(e){function t(t){var n,o,i,r=e.call(this,t)||this;return r.allowNegative=null===(n=t.allowNegative)||void 0===n||n,r.numberLocaleOptions=t.numberLocaleOptions,r.browserAutocomplete=t.browserAutocomplete,r.precision=t.precision,r.scale=null!==(o=t.scale)&&void 0!==o?o:2,r.alignTo=r.scale?l.AlignmentOptions.RIGHT:l.AlignmentOptions.LEFT,r.mask=t.mask,r.leftAddon=t.leftAddon,r.rightAddon=t.rightAddon,r.onBlur=t.onBlur,r.onFocus=t.onFocus,r.onComplete=t.onComplete,r.onInput=t.onInput,r.autoClear=null===(i=t.autoClear)||void 0===i||i,r}return le(t,e),t}(no),ro=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.showFileUploadDate=t.showFileUploadDate,n}return le(t,e),t}(no),ao=function(e){this.true=e.true,this.false=e.false,this.empty=e.empty,this.clear=e.clear},so=function(e){function t(t){var n=e.call(this,t)||this;return n.verticalAlignment=t.verticalAlignment,n.optionsLabel=new ao(t.optionsLabel),n.representedBy="radio",n.onBlur=t.onBlur,n.onFocus=t.onFocus,n.onClick=t.onClick,n}return le(t,e),t}(no),lo=function(e){function t(t){var n=e.call(this,t)||this;return n.onChange=t.onChange,t.optionsLabel&&(n.optionsLabel=new ao(t.optionsLabel)),n.representedBy="switch",n}return le(t,e),t}(no),co=function(t){function n(n){var o=t.call(this,n)||this;if(o.view=n.view||"date",o.minDate=n.minDate,o.maxDate=n.maxDate,o.defaultDate=n.defaultDate,o.appendTo=n.appendTo,o.showOnFocus="boolean"!=typeof n.showOnFocus||n.showOnFocus,o.calendarLocaleOptions=n.calendarLocaleOptions,o.onBlur=n.onBlur,o.onFocus=n.onFocus,o.onSelect=n.onSelect,o.onInput=n.onInput,o.onClose=n.onClose,o.onTodayClick=n.onTodayClick,o.onClearClick=n.onClearClick,o.onMonthChange=n.onMonthChange,o.onYearChange=n.onYearChange,o.selectionMode=n.selectionMode||"single",o.rangeSeparator=n.rangeSeparator||"-",o.showSeconds=n.showSeconds,null===o.showSeconds||void 0===o.showSeconds)switch(o.type){case e.FieldType.DateTime:case e.FieldType.LocalDateTime:case e.FieldType.Time:o.showSeconds=!0}return o}return le(n,t),n}(no),po=function(e){function t(t){var n=e.call(this,t)||this;return n.data=t.data,n}return le(t,e),t}(no),uo=function(e){function t(t){var n=e.call(this,t)||this;return n.showCopyButton=!1,n.keyFilter=t.keyFilter,n.showCopyButton=t.showCopyButton,n.separator=t.separator,n.onAdd=t.onAdd,n.onRemove=t.onRemove,n.onChipClick=t.onChipClick,n.onFocus=t.onFocus,n.onBlur=t.onBlur,n.onCopy=t.onCopy,n}return le(t,e),t}(no),mo=function(e){function t(t){var n=e.call(this,t)||this;return n.countries=t.countries,n.ordination=t.ordination,n.onSelected=t.onSelected,n.onFocusLost=t.onFocusLost,n}return le(t,e),t}(no);(eo=e.NumberAlignmentOption||(e.NumberAlignmentOption={})).RIGHT="right",eo.LEFT="left";var ho,fo=function(n){function o(o,i,r){var a=n.call(this,null,i,o)||this;return a._elementRef=i,a.localeService=r,a.precision=15,a.scale=0,a.alignTo=e.NumberAlignmentOption.LEFT,a.allowNegative=!0,a.pasteRejected=new t.EventEmitter,a.onLocaleService(),a}var r;return le(o,n),r=o,o.prototype.ngOnInit=function(){this.updateVariables(),n.prototype.ngOnInit.call(this),this.pasteListener=this._onPaste.bind(this),this._elementRef.nativeElement.addEventListener("paste",this.pasteListener),this.keypressListener=this._onKeypress.bind(this),this._elementRef.nativeElement.addEventListener("keypress",this.keypressListener)},o.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()},o.prototype.ngOnDestroy=function(){this._elementRef.nativeElement.removeEventListener("paste",this.pasteListener),this._elementRef.nativeElement.removeEventListener("keypress",this.keypressListener)},o.prototype._onPaste=function(e){var t,n,o=null!==(n=null===(t=e.clipboardData)||void 0===t?void 0:t.getData("text"))&&void 0!==n?n:"",i=fe(o.replace(new RegExp("\\"+this.thousandsSeparator,"g"),"").replace(this.decimalSeparator,".").split("."),2),r=i[0],a=i[1],s=void 0===a?"":a;r.replace(/\D/g,"").length+s.slice(0,this.scale).length>this.precision&&(e.preventDefault(),e.stopPropagation(),this.pasteRejected.emit(o))},o.prototype._onKeypress=function(e){var t=e.code;"Minus"===t||"NumpadSubtract"===t?this.allowNegative&&(this.maxLength=this._maxLength+1):"Equal"!==t&&"NumpadAdd"!==t||(this.maxLength=this._maxLength)},o.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()},o.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,this.maxLength=n},o.prototype.onLocaleService=function(){var e=this;this.localeService.getLocale().pipe(i.first()).subscribe((function(){var t,n;e.decimalSeparator=null!==(t=e.decimalSeparator)&&void 0!==t?t:e.localeService.getDecimalSeparator(),e.thousandsSeparator=null!==(n=e.thousandsSeparator)&&void 0!==n?n:e.localeService.getGroupingSeparator()}))},o.ctorParameters=function(){return[{type:t.KeyValueDiffers},{type:t.ElementRef},{type:Je}]},pe([t.Input()],o.prototype,"precision",void 0),pe([t.Input()],o.prototype,"scale",void 0),pe([t.Input()],o.prototype,"decimalSeparator",void 0),pe([t.Input()],o.prototype,"thousandsSeparator",void 0),pe([t.Input()],o.prototype,"alignTo",void 0),pe([t.Input()],o.prototype,"allowNegative",void 0),pe([t.Input(),t.HostBinding("attr.placeholder")],o.prototype,"placeholder",void 0),pe([t.HostBinding("attr.maxLength")],o.prototype,"maxLength",void 0),pe([t.Output()],o.prototype,"pasteRejected",void 0),o=r=pe([t.Directive({selector:"input[sNumberInput]",providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return r})),multi:!0}]})],o)}(A.CurrencyMaskDirective),go=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[fo],exports:[fo]})],e)}(),vo=function(t){function n(n){var o=t.call(this,n)||this;return o.numberLocaleOptions=n.numberLocaleOptions,o.browserAutocomplete=n.browserAutocomplete,o.precision=n.precision,o.scale=n.scale,o.alignTo=n.alignTo||e.NumberAlignmentOption.LEFT,o.mask=n.mask,o.leftAddon=n.leftAddon,o.rightAddon=n.rightAddon,o.onBlur=n.onBlur,o.onFocus=n.onFocus,o.onComplete=n.onComplete,o.onInput=n.onInput,o}return le(n,t),n}(no),bo=function(t){function n(n){var o=t.call(this,n)||this;return o.numberLocaleOptions=n.numberLocaleOptions,o.alignTo=n.alignTo||e.NumberAlignmentOption.RIGHT,o.scale="function"==typeof n.scale?n.scale():n.scale,o}return le(n,t),n}(vo),yo=function(e){function t(t){var n=e.call(this,t)||this;return n.currency=t.currency,n.numberLocaleOptions=t.numberLocaleOptions,n}return le(t,e),t}(bo),xo=function(t){function n(n){var o=t.call(this,ce(ce({},n),{type:e.FieldType.Lookup}))||this;return o.multiple=!1,o.showSearch=!0,o.autocompleteForceSelection=!0,o.showAddOption=!1,o.showEditOption=!1,o.showRemoveOption=!1,o.onSelect=function(e){},o.onUnselect=function(e){},Object.assign(o,n),o.suggestionsObservable.subscribe((function(e){return o.lookupSuggestions=e})),o.searchObservable.pipe(i.delay(0)).subscribe((function(e){var t=e.totalRecords,n=e.gridData,i=e.searchTotalRecordsLabel;o._gridData=n,o._searchTotalRecords=t,o._searchTotalRecordsLabel=i})),o}return le(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}(no),_o=function(e){function t(t){var n=e.call(this,t)||this;return n.inputType=t.inputType,n.keyFilter=t.keyFilter,n.leftAddon=t.leftAddon,n.rightAddon=t.rightAddon,n.maxLength=t.maxLength||9999999,n.passwordStrength=t.passwordStrength,n.passwordStrengthOptions=t.passwordStrengthOptions,n.showToggle=t.showToggle,n.style=t.style,n.onBlur=t.onBlur,n.onFocus=t.onFocus,n.onComplete=t.onComplete,n.onInput=t.onInput,n}return le(t,e),t}(no),wo=function(e){this.label=e.label,this.value=e.value},Co=function(e){function t(t){var n=e.call(this,t)||this;return n.verticalAlignment=t.verticalAlignment,n.clearLabel=t.clearLabel,n.options=t.options,n.onBlur=t.onBlur,n.onFocus=t.onFocus,n.onClick=t.onClick,n}return le(t,e),t}(no),ko=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,n.onClick=t.onClick,n.onChange=t.onChange,n.emptyMessage=t.emptyMessage,n.editable=t.editable,n.filter=t.filter,n.group=t.group,n}return le(t,e),t}(no),Io=function(e){this.label=e.label,this.value=e.value},So=function(e){function t(t){var n,o,i,r,a,s,l,c,p=e.call(this,t)||this;return p.maxDefault=100,p.onChange=t.onChange,p.onSlideEnd=t.onSlideEnd,p.range=null!==(n=t.range)&&void 0!==n&&n,p.min=null!==(o=t.min)&&void 0!==o?o:0,p.max=null!==(i=t.max)&&void 0!==i?i:p.maxDefault,p.orientation=null!==(r=t.orientation)&&void 0!==r?r:"horizontal",p.step=null!==(a=t.step)&&void 0!==a?a:1,p.animate=null!==(s=t.animate)&&void 0!==s&&s,p.disabled=null!==(l=t.disabled)&&void 0!==l&&l,p.prefix=t.prefix,p.suffix=t.suffix,p.rangeSeparator=null!==(c=t.rangeSeparator)&&void 0!==c?c:" - ",p}return le(t,e),t}(no),To=function(e){function t(t){var n,o,i,r=e.call(this,t)||this;return r.style={resize:"vertical"},r.cols=t.cols,r.rows=t.rows,r.keyFilter=t.keyFilter,r.style=ce(ce({},t.style),r.style),r.readonly=t.readonly,r.speechRecognition=null!==(n=t.speechRecognition)&&void 0!==n&&n,r.keepContext=null!==(o=t.keepContext)&&void 0!==o&&o,r.speechRecognitionPlaceholder=null!==(i=t.speechRecognitionPlaceholder)&&void 0!==i?i:"",r.maxLength=t.maxLength,r}return le(t,e),t}(no),Eo=function(e){function t(t){var n,o,i,r=e.call(this,t)||this;return r.style={resize:"vertical"},r.cols=t.cols,r.rows=t.rows,r.keyFilter=t.keyFilter,r.style=ce(ce({},t.style),r.style),r.prompt=t.prompt,r.readonly=t.readonly,r.speechRecognition=null!==(n=t.speechRecognition)&&void 0!==n&&n,r.keepContext=null!==(o=t.keepContext)&&void 0!==o&&o,r.speechRecognitionPlaceholder=null!==(i=t.speechRecognitionPlaceholder)&&void 0!==i?i:"",r.maxLength=t.maxLength,r}return le(t,e),t}(no),Mo=function(e){function t(t){var n,o,i=e.call(this,t)||this;return i.mask=t.mask,i.characterPattern=null!==(n=t.characterPattern)&&void 0!==n?n:"[A-Za-z]",i.unmask=null!==(o=t.unmask)&&void 0!==o&&o,i.readonly=t.readonly,i.inputType=t.inputType,i.keyFilter=t.keyFilter,i.leftAddon=t.leftAddon,i.rightAddon=t.rightAddon,i.maxLength=t.maxLength||9999999,i.browserAutocomplete=t.browserAutocomplete,i.style=t.style,i.onBlur=t.onBlur,i.onFocus=t.onFocus,i.onComplete=t.onComplete,i.onInput=t.onInput,i.sortableColumnName=t.sortableColumnName,i}return le(t,e),t}(no),Lo=function(t){function n(n){var o=t.call(this,n)||this;return o.tooltipPosition="top",o.priority=n.priority||e.ButtonPriority.Primary,o.iconClass=n.iconClass||"",o.disabled=n.disabled||!1,o.auxiliary=n.auxiliary||!1,o.caret=n.caret||!1,o.id=n.id||"s-button-"+xt.nextId++,o.onClick=n.onClick||function(){},o.fullWidth=n.fullWidth||!1,o.iconColor=n.iconColor,o.badge=n.badge,o.animation=n.animation,o.slide=n.slide,o.menuOptions=n.menuOptions,o.model=n.model,o.baseZIndex=n.baseZIndex,o.styleClass=n.styleClass,o.rightIconClass=n.rightIconClass,o.tooltipPosition=n.tooltipPosition||"top",o.mouseEnter=n.mouseEnter,o.mouseLeave=n.mouseLeave,o}return le(n,t),n}(no),Fo=function(e){function t(t){var n=e.call(this,t)||this;return n.formats=t.formats,n.readonly=t.readonly,n.modules=t.modules,n.style=t.style,n}return le(t,e),t}(no),Oo=function(e){function t(t){var n=e.call(this,t)||this;return n.simpleTitle=t.simpleTitle,n.actionTitle=t.actionTitle,n.subtitle=t.subtitle,n.aspectRatio=t.aspectRatio,n.cropperLabelsConfig=t.cropperLabelsConfig,n.removeButtonLabel=t.removeButtonLabel,n.changeButtonLabel=t.changeButtonLabel,n.confirmationTexts=t.confirmationTexts,n.maxFileSize=t.maxFileSize,n.accept=t.accept,n.supportedExtensions=t.supportedExtensions,n.onChangeImage=t.onChangeImage,n.onRemovedImage=t.onRemovedImage,n.onInvalidFile=t.onInvalidFile,n}return le(t,e),t}(no),Ro=function(t){switch(this.ignoreLabel=!1,t.type){case e.FieldType.Enum:return new ko(t);case e.FieldType.Autocomplete:return new oo(t);case e.FieldType.Money:return new yo(t);case e.FieldType.Integer:return new vo(t);case e.FieldType.Double:return new bo(t);case e.FieldType.Number:return new io(t);case e.FieldType.String:case e.FieldType.Binary:return new Mo(t);case e.FieldType.Password:return new _o(t);case e.FieldType.Text:return new To(t);case e.FieldType.TextIA:return new Eo(t);case e.FieldType.Boolean:return"switch"===t.representedBy?new lo(t):new so(t);case e.FieldType.Date:case e.FieldType.DateTime:case e.FieldType.LocalDateTime:case e.FieldType.Time:return new co(t);case e.FieldType.Lookup:return new xo(t);case e.FieldType.Radio:return new Co(t);case e.FieldType.Checkbox:return new po(t);case e.FieldType.Chips:return new uo(t);case e.FieldType.CountryPhonePicker:return new mo(t);case e.FieldType.Blob:return new ro(t);case e.FieldType.Slider:return new So(t);case e.FieldType.ProfilePicture:return new Oo(t);case e.FieldType.Editor:return new Fo(t);case e.FieldType.Button:return new Lo(t);case e.FieldType.Custom:return new(0,t.CustomFieldClass)(function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(n[o[i]]=e[o[i]])}return n}(t,["CustomFieldClass"]))}},Ao=function(e,t){this.label=e,this.value=t},Do=function(){function r(e,n){this.hotkeysService=e,this.translateService=n,this.id="s-lookup-"+s.nextId++,this.autocompleteForceSelection=!0,this.disabled=!1,this.showSearch=!0,this.lookupAppendTo="body",this.searchFields=[],this.showAddOption=!1,this.showEditOption=!1,this.showRemoveOption=!1,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.onAdd=new t.EventEmitter,this.onEdit=new t.EventEmitter,this.onRemove=new t.EventEmitter,this.onClearButtonClick=new t.EventEmitter,this.dialogVisible=!1,this.collapsed=!1,this.selected=[],this.transitionOptions="400ms cubic-bezier(0.86, 0, 0.07, 1)",this.originalFormValues={},this.ngUnsubscribe=new o.Subject}var s;return s=r,r.prototype.ngOnInit=function(){var t=this;this.searchGridFields||(this.searchGridFields=this.searchFields.filter((function(e){var t;return!e.visible||(null===(t=e.visible)||void 0===t?void 0:t.call(e))})).map((function(e){return new Ro(ce({},e))}))),this.searchFields=this.searchFields.map((function(e){return new Ro(ce(ce({},e),{size:{sm:12,md:12,lg:12,xl:12}}))})),this.searchGridFields=this.searchGridFields.filter((function(e){var t;return!e.visible||(null===(t=e.visible)||void 0===t?void 0:t.call(e))})).map((function(n){n.width=t.getColWidth(n.label);var o=new Ge(ce({},n.calendarLocaleOptions));if(null==o?void 0:o.dateFormat){switch(n.type){case e.FieldType.Date:o.dateFormat=t._convertToMomentDateFormat(o.dateFormat);break;case e.FieldType.Time:o.dateFormat=t._convertToMomentHourFormat(o.hourFormat,o.dateFormat)}n.calendarLocaleOptions=o}return n}));var n=this.searchFields.reduce((function(e,n){return e[n.name]=new a.FormControl(n.defaultValue),t.originalFormValues[n.name]=n.defaultValue,e}),{});this.formGroupDialog=new a.FormGroup(n),this._subscribeEvents()},r.prototype.printRecordTotalizer=function(){if(this.searchTotalRecordsLabel)return this.searchTotalRecordsLabel;var e=this.recordLabel?this.searchTotalRecords+" "+this.recordLabel:this.translateService.instant("platform.angular_components.total_record",{count:this.searchTotalRecords}),t=this.recordsLabel?this.searchTotalRecords+" "+this.recordsLabel:this.translateService.instant("platform.angular_components.total_records",{count:this.searchTotalRecords});return 1===this.searchTotalRecords?e:t},r.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},r.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")},r.prototype.ngAfterViewInit=function(){this.autocomplete.onOverlayAnimationDone=function(e){}},r.prototype.ngOnChanges=function(e){this.dialogVisible&&e.searchGridData&&(this.loading=!1),this._setFocusFilter()},r.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},r.prototype.getGridData=function(){return this.searchGridData},r.prototype.getLookupSuggestions=function(){return this.lookupSuggestions},r.prototype.makeSearchRequestParams=function(e){var t=this.formGroupDialog.getRawValue(),n=ce(ce({},e),{filterData:t}),o=e.multiSortMeta;return this.multiSortMeta=o||this.multiSortMeta,n},r.prototype.lazyLoadGrid=function(e){var t=this.makeSearchRequestParams(e);this.onSearchRequest.next(t)},r.prototype.onCompleteMethod=function(e){this.autocompleteForceSelection||this.onChange(""===this.value?null:this.value),this.onLookupRequest.next(e.query)},r.prototype.setDefaultFilters=function(){var e=this;this.defaultFilter&&this.defaultFilter.filter((function(t){var n=t.field;return e.formGroupDialog.contains(n)&&!e.formGroupDialog.get([n]).dirty})).forEach((function(t){var n=t.value,o=t.field;e.formGroupDialog.get([o]).patchValue(n instanceof Function?n():n)}))},r.prototype.showDialog=function(){this.setDefaultFilters(),this.searchGridData=void 0,this.onTouched(),this.hotkeysService.pause(ge(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},r.prototype.hideDialog=function(){var e=this.autocomplete,t=e.inputEL,n=e.multiInputEL;this.dialogVisible=!1,this.collapsed=!1,this.hotkeysService.unpause(ge(this.hotkeysService.pausedHotkeys)),this.multiple?n.nativeElement.focus():t.nativeElement.focus()},r.prototype.search=function(){this.resetTable(),this.collapsed=!0,this.dialog.moveOnTop()},r.prototype.clear=function(){this.formGroupDialog.reset(this.originalFormValues),this.resetTable(),this.onClearButtonClick.emit()},r.prototype.resetTable=function(){this.table.reset()},r.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()}},r.prototype.onSelectionChange=function(e){e&&(Array.isArray(e)?this.selected=e:this.selected=[e])},r.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.writeValue(n),e(n)}},r.prototype.registerOnTouched=function(e){this.onTouched=e},r.prototype.writeValue=function(e){this.value=e},r.prototype.setDisabledState=function(e){this.disabled=e},r.prototype.getFieldValue=function(e,t){return t.split(".").reduce((function(e,t){return void 0===e[t]?"":e[t]}),e)},r.prototype.getBadgeFromValue=function(e,t){var n;return null===(n=null==t?void 0:t.find((function(t){return t.value===e})))||void 0===n?void 0:n.badge},r.prototype.getLabelForValue=function(e,t){if(!t)return e;var n=t.find((function(t){return t.value===e}));return n?n.label:e},r.prototype.isBooleanValue=function(e,t){var n=this.getFieldValue(e,t);return!0===n||!1===n},r.prototype.getBooleanLabel=function(e,t,n){var o=this.getFieldValue(e,t);return!0===o?n.true:!1===o?n.false:this.emptyFieldLabel},r.prototype.isNumber=function(e,t){return!new ae(this.getFieldValue(e,t)).isNaN()},r.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)}))},r.prototype.newHotkey=function(e,t){return new L.Hotkey(e,(function(){return t(),!1}),["INPUT","SELECT","TEXTAREA"])},r.prototype.filterToggle=function(){this.animating||(this.animating=!0,this.collapsed=!this.collapsed)},r.prototype.onToggleDone=function(){this.animating=!1},r.prototype.getColWidth=function(e){var t=e.length;return t<14.286?"14.286em":t+"em"},r.prototype.getScale=function(e){return this.isFunction(e)?e():e},r.prototype.isFunction=function(e){return e instanceof Function},r.prototype.getIntegerMaskConfig=function(e){var t;return{scale:0,thousandsSeparator:null===(t=e.numberLocaleOptions)||void 0===t?void 0:t.thousandsSeparator,prefix:""}},r.prototype.getDoubleMaskConfig=function(e){var t,n;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:""}},r.prototype.getMoneyMaskConfig=function(e){var t,n,o;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===(o=e.numberLocaleOptions)||void 0===o?void 0:o.currencySymbol}},r.prototype.getNumberMaskConfig=function(e){var t,n,o;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===(o=e.numberLocaleOptions)||void 0===o?void 0:o.currencySymbol}},r.prototype.onTableRowDoubleClick=function(e){this.selected=[e],this.select()},r.prototype._setFocusFilter=function(){var e,t,n;if(this.dialogVisible&&!this.collapsed){var o=null===(n=null===(t=null===(e=this.dialog)||void 0===e?void 0:e.contentViewChild)||void 0===t?void 0:t.nativeElement)||void 0===n?void 0:n.getElementsByTagName("input")[0];o&&o.focus()}},r.prototype._subscribeEvents=function(){var e=this;this.onSearchRequest.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(){return e.loading=!0})),this.onSelect.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(){return e.onChange(e.value)})),this.onUnselect.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(){return e.onChange(e.value)})),this.onClear.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(){e.multiple||e.onChange(null)})),this.onFocus.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(){e.onTouched()})),this.onBlur.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){var n=t.target,o=e.value&&e.value[e.lookupDisplayField],i=n.value;if(!e.multiple&&o&&o!=i){n.value="",e.onChange("")}}))},r.nextId=0,r.ctorParameters=function(){return[{type:L.HotkeysService},{type:b.TranslateService}]},pe([t.Input()],r.prototype,"formControlName",void 0),pe([t.Input()],r.prototype,"id",void 0),pe([t.Input()],r.prototype,"autocompleteForceSelection",void 0),pe([t.Input()],r.prototype,"multiple",void 0),pe([t.Input()],r.prototype,"dataKey",void 0),pe([t.Input()],r.prototype,"required",void 0),pe([t.Input()],r.prototype,"disabled",void 0),pe([t.Input()],r.prototype,"showSearch",void 0),pe([t.Input()],r.prototype,"lookupSuggestions",void 0),pe([t.Input()],r.prototype,"lookupDisplayField",void 0),pe([t.Input()],r.prototype,"lookupDisplayFieldTooltip",void 0),pe([t.Input()],r.prototype,"lookupEmptyMessage",void 0),pe([t.Input()],r.prototype,"lookupAppendTo",void 0),pe([t.Input()],r.prototype,"searchEmptyDescription",void 0),pe([t.Input()],r.prototype,"searchGridData",void 0),pe([t.Input()],r.prototype,"searchTotalRecords",void 0),pe([t.Input()],r.prototype,"searchFields",void 0),pe([t.Input()],r.prototype,"searchGridFields",void 0),pe([t.Input()],r.prototype,"multiSortMeta",void 0),pe([t.Input()],r.prototype,"placeholder",void 0),pe([t.Input()],r.prototype,"sortableColumnsDisabled",void 0),pe([t.Input()],r.prototype,"lookupRowProps",void 0),pe([t.Input()],r.prototype,"defaultFilter",void 0),pe([t.Input()],r.prototype,"showAddOption",void 0),pe([t.Input()],r.prototype,"showEditOption",void 0),pe([t.Input()],r.prototype,"showRemoveOption",void 0),pe([t.Output()],r.prototype,"onLookupRequest",void 0),pe([t.Output()],r.prototype,"onSearchRequest",void 0),pe([t.Output()],r.prototype,"onFocus",void 0),pe([t.Output()],r.prototype,"onBlur",void 0),pe([t.Output()],r.prototype,"onKeyUp",void 0),pe([t.Output()],r.prototype,"onSelect",void 0),pe([t.Output()],r.prototype,"onUnselect",void 0),pe([t.Output()],r.prototype,"onClear",void 0),pe([t.Output()],r.prototype,"onAdd",void 0),pe([t.Output()],r.prototype,"onEdit",void 0),pe([t.Output()],r.prototype,"onRemove",void 0),pe([t.Output()],r.prototype,"onClearButtonClick",void 0),pe([t.ViewChild(R.Table,{static:!1})],r.prototype,"table",void 0),pe([t.ViewChild(O.Dialog,{static:!1})],r.prototype,"dialog",void 0),pe([t.ViewChild(F.AutoComplete,{static:!1})],r.prototype,"autocomplete",void 0),pe([t.Input()],r.prototype,"searchTitle",void 0),pe([t.Input()],r.prototype,"searchEmptyTitle",void 0),pe([t.Input()],r.prototype,"searchTotalRecordsLabel",void 0),pe([t.Input()],r.prototype,"filterTitle",void 0),pe([t.Input()],r.prototype,"filterLabel",void 0),pe([t.Input()],r.prototype,"clearLabel",void 0),pe([t.Input()],r.prototype,"cancelLabel",void 0),pe([t.Input()],r.prototype,"selectLabel",void 0),pe([t.Input()],r.prototype,"emptyFieldLabel",void 0),pe([t.Input()],r.prototype,"recordLabel",void 0),pe([t.Input()],r.prototype,"recordsLabel",void 0),r=s=pe([t.Injectable(),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]="autocompleteForceSelection"\n [suggestions]="getLookupSuggestions()"\n (completeMethod)="onCompleteMethod($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 <ng-template let-item pTemplate="selectedItem">\n <span\n class="ui-autocomplete-token-label ng-tns-c65-43 ng-star-inserted"\n [sTooltip]="lookupDisplayFieldTooltip ? item[lookupDisplayField] : null"\n tooltipPosition="top">\n {{item[lookupDisplayField]}}\n </span>\n </ng-template>\n </p-autoComplete>\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<p-dialog\n appendTo="body"\n styleClass="s-lookup-modal"\n [header]="searchTitle || \'platform.angular_components.advanced_search\' | translate"\n [(visible)]="dialogVisible"\n [modal]="true"\n (onHide)="hideDialog()"\n [blockScroll]="true"\n [focusOnShow]="true"\n [draggable]="false"\n [resizable]="false"\n #dialog>\n <div\n *ngIf="dialogVisible"\n class="s-lookup-modal-container">\n <div\n *ngIf="searchFields && searchFields.length"\n class="filter"\n [@collapseContent]="collapsed\n ? { value: \'hidden\', params: { transitionParams: transitionOptions } }\n : { value: \'visible\', params: { transitionParams: transitionOptions } }"\n (@collapseContent.done)="onToggleDone()">\n <form\n [formGroup]="formGroupDialog"\n novalidate\n autocomplete="off">\n <div\n *ngIf="!collapsed"\n class="form-content"\n [@childCollapseContent]="collapsed\n ? { value: \':leave\', params: { transitionParams: transitionOptions } }\n : { value: \':enter\', params: { transitionParams: transitionOptions } }">\n <div class="filter-title sds-section-title">\n {{ filterTitle || "platform.angular_components.filters" | translate }}\n </div>\n <div class="form-fields">\n <s-dynamic-form\n [fields]="searchFields"\n [form]="formGroupDialog">\n </s-dynamic-form>\n </div>\n <div class="ui-g">\n <div class="ui-g-12 no-button-margin">\n <s-button\n [id]="id + \'-filter-button\'"\n type="submit"\n [label]="filterLabel || \'platform.angular_components.filter\' | translate"\n (onClick)="search()"\n sTooltip="(ALT + SHIFT + F)"\n tooltipPosition="top"\n showDelay="500">\n </s-button>\n <s-button\n [id]="id + \'-clear-button\'"\n type="button"\n [label]="clearLabel || \'platform.angular_components.clear\' | translate"\n (onClick)="clear()"\n priority="link"\n sTooltip="(ALT + SHIFT + L)"\n tooltipPosition="top"\n showDelay="500">\n </s-button>\n </div>\n </div>\n </div>\n </form>\n </div>\n <div\n *ngIf="searchFields && searchFields.length"\n class="filter-toggle">\n <button\n [id]="id + \'-filter-toggle-button\'"\n type="button"\n (click)="filterToggle()">\n <span\n class="fa"\n [ngClass]="{\'fa-chevron-left\': !collapsed, \'fa-chevron-right\': collapsed}"\n aria-hidden="true">\n </span>\n </button>\n </div>\n <div\n class="content"\n [ngClass]="{\'empty-content\': !searchTotalRecords && !loading}">\n <s-empty-state\n [id]="id + \'-empty-state\'"\n *ngIf="!searchTotalRecords && !loading"\n [title]="searchEmptyTitle || \'platform.angular_components.no_records_found\' | translate"\n [description]="searchEmptyDescription"\n iconClass="fa fa-search">\n </s-empty-state>\n\n <div class="content-child">\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: loading, indicator: \'logo\' }"\n [multiSortMeta]="multiSortMeta"\n [attr.data-hidden]="!searchTotalRecords && !loading"\n [selectionMode]="multiple ? \'multiple\' : \'single\'"\n (selectionChange)="onSelectionChange($event)">\n <ng-template pTemplate="caption">\n <div class="buttons-container no-button-margin">\n <s-button\n *ngIf="showAddOption"\n priority="default"\n [label]="\'platform.angular_components.add\' | translate"\n (onClick)="onAdd.emit()">\n </s-button>\n <s-button\n *ngIf="showEditOption"\n priority="default"\n [label]="\'platform.angular_components.edit\' | translate"\n [disabled]="selected.length !== 1"\n (onClick)="onEdit.emit(this.selected[0])">\n </s-button>\n <s-button\n *ngIf="showRemoveOption"\n priority="default"\n [label]="\'platform.angular_components.remove\' | translate"\n [disabled]="!selected.length"\n (onClick)="onRemove.emit(this.selected)">\n </s-button>\n </div>\n </ng-template>\n <ng-template pTemplate="colgroup" let-columns>\n <colgroup>\n <col\n *ngIf="multiple"\n style="width: 50px" />\n <col\n *ngFor="let col of columns"\n [style.width]="col.width" />\n </colgroup>\n </ng-template>\n <ng-template pTemplate="header" let-columns>\n <tr>\n <th\n *ngIf="multiple"\n style="width: 50px">\n <s-table-header-checkbox\n [useAllObject]="lookupRowProps ? false : true"\n [rowProps]="lookupRowProps">\n </s-table-header-checkbox>\n </th>\n <th\n [style.width]="col.width"\n *ngFor="let col of columns"\n [pSortableColumn]="col.sortableColumnName ? col.sortableColumnName : col.name"\n [pSortableColumnDisabled]="sortableColumnsDisabled?.includes(col.name)">\n <div class="senior-header">\n <span class="senior-header-title">{{ col.label }}</span>\n <p-sortIcon\n [field]="col.name"\n *ngIf="!sortableColumnsDisabled?.includes(col.name)">\n </p-sortIcon>\n </div>\n </th>\n </tr>\n </ng-template>\n <ng-template\n pTemplate="body"\n let-rowData\n let-columns\n let-rowIndex="rowIndex">\n <tr\n sNavigation\n [pSelectableRow]="rowData"\n [pSelectableRowIndex]="rowIndex"\n sDoubleClick (onDoubleClick)="onTableRowDoubleClick(rowData)">\n <td\n *ngIf="multiple"\n style="width: 50px"\n tabindex="0">\n <p-tableCheckbox\n [value]="rowData"\n [pSelectableRow]="rowData">\n </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 <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 <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 <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 <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 <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 <ng-container *ngSwitchCase="\'Integer\'">\n <ng-container *ngIf="isNumber(rowData, col.name); else emptyTemplate">\n <span> {{ getFieldValue(rowData, col.name) | localizedBignumber: getIntegerMaskConfig(col) | async }} </span>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase="\'Double\'">\n <ng-container *ngIf="isNumber(rowData, col.name); else emptyTemplate">\n <span> {{ getFieldValue(rowData, col.name) | localizedBignumber: getDoubleMaskConfig(col) | async }} </span>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase="\'Money\'">\n <ng-container *ngIf="isNumber(rowData, col.name); else emptyTemplate">\n <span> {{ getFieldValue(rowData, col.name) | localizedBignumber: getMoneyMaskConfig(col) | async }} </span>\n </ng-container>\n </ng-container>\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 <ng-container *ngSwitchCase="\'Enum\'">\n <ng-container *ngIf="getLabelForValue(getFieldValue(rowData, col.name), col.options); else emptyTemplate">\n <ng-container *ngIf="getBadgeFromValue(getFieldValue(rowData, col.name), col.options); then withBadge; else withoutBadge"></ng-container>\n <ng-template #withBadge>\n <s-badge\n [text]="getLabelForValue(getFieldValue(rowData, col.name), col.options)"\n [color]="getBadgeFromValue(getFieldValue(rowData, col.name), col.options).color"\n [type]="getBadgeFromValue(getFieldValue(rowData, col.name), col.options).type"\n [iconClass]="getBadgeFromValue(getFieldValue(rowData, col.name), col.options).iconClass"\n [iconPosition]="getBadgeFromValue(getFieldValue(rowData, col.name), col.options).iconPosition">\n </s-badge>\n </ng-template>\n <ng-template #withoutBadge>\n <span> {{ getLabelForValue(getFieldValue(rowData, col.name), col.options) }} </span>\n </ng-template>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <ng-container *ngIf="col.mask && col.mask({ value: rowData })">\n <ng-container *ngIf="(isNumber(rowData, col.name) || getFieldValue(rowData, col.name))">\n <span>{{ getFieldValue(rowData, col.name) | sMaskFormatter: col.mask({ value: rowData }) }}</span>\n </ng-container>\n </ng-container>\n <ng-container *ngIf="!(col.mask && col.mask({ value: rowData }))">\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 {{ printRecordTotalizer() }}\n </span>\n </ng-template>\n </p-table>\n </div>\n\n </div>\n </div>\n <p-footer>\n <s-button\n [id]="id + \'-select-button\'"\n type="button"\n [label]="selectLabel || \'platform.angular_components.select\' | translate"\n (onClick)="select()"\n sTooltip="(ALT + SHIFT + S)"\n tooltipPosition="top"\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 || \'platform.angular_components.cancel\' | translate"\n (onClick)="hideDialog()"\n sTooltip="(ALT + SHIFT + C)"\n tooltipPosition="top"\n showDelay="500">\n </s-button>\n </p-footer>\n</p-dialog>\n<ng-template #emptyTemplate>\n <span [ngClass]="\'sds-empty-value\'">\n {{ emptyFieldLabel || \'platform.angular_components.not_informed\' | translate }}\n </span>\n</ng-template>\n',providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return s})),multi:!0}],encapsulation:t.ViewEncapsulation.None,animations:[n.trigger("collapseContent",[n.state("hidden",n.style({width:"10px",padding:0})),n.state("visible",n.style({width:"*"})),n.transition("visible <=> hidden",[n.group([n.query("@childCollapseContent",n.animateChild()),n.animate("{{transitionParams}}")])])]),n.trigger("childCollapseContent",[n.state(":leave",n.style({opacity:0})),n.state(":enter",n.style({opacity:1})),n.transition("* <=> *",n.animate("{{transitionParams}}"))])],styles:[".no-button-margin s-button{margin-left:0}s-lookup.ng-dirty.ng-invalid .ui-inputtext{border-color:#c13018;border-right-width:1px}s-lookup.ng-dirty.ng-invalid .button-addon,s-lookup.ng-dirty.ng-invalid .ui-autocomplete-dropdown{border-left:none}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}s-lookup .inputgroup,s-lookup p-autocomplete span.ui-autocomplete-multiple{display:-ms-flexbox;display:flex}s-lookup .inputgroup p-autocomplete{display:inline-block}s-lookup .inputgroup p-autocomplete .ui-autocomplete-input{width:100%}s-lookup .ui-inputtext:focus{border-right-style:none!important}s-lookup .inputgroup p-autocomplete+button:enabled:hover,s-lookup .inputgroup p-autocomplete+button:focus{background-color:#e6e6e6;border-color:#ccc}s-lookup:not(.ng-dirty.ng-invalid) .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{margin-top:15px;-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 .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.empty-content .content-child{display:none}.s-lookup-modal .s-lookup-modal-container .content .content-child{height:100%;overflow:auto}.s-lookup-modal .s-lookup-modal-container .content .buttons-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:10px}.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>.ui-table{height:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.s-lookup-modal .s-lookup-modal-container .content p-table>.ui-table .ui-table-scrollable-wrapper{-ms-flex:1;flex:1;overflow:auto}.s-lookup-modal .s-lookup-modal-container .content p-table>.ui-table .ui-table-scrollable-wrapper .ui-table-scrollable-header.ui-widget-header{overflow:inherit}.s-lookup-modal .s-lookup-modal-container .content p-table>.ui-table .ui-table-scrollable-wrapper .ui-table-scrollable-body{overflow:visible}@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%}}.inputgroup p-autocomplete{width:calc(100% - 34px)}"]})],r)}();(ho=e.DynamicType||(e.DynamicType={})).Autocomplete="Autocomplete",ho.Binary="Binary",ho.Boolean="Boolean",ho.Chips="Chips",ho.Date="Date",ho.DateTime="DateTime",ho.LocalDateTime="LocalDateTime",ho.Double="Double",ho.Enum="Enum",ho.Fieldset="Fieldset",ho.Integer="Integer",ho.Lookup="Lookup",ho.Money="Money",ho.Radio="Radio",ho.Row="Row",ho.Section="Section",ho.String="String",ho.Text="Text",ho.Time="Time",ho.Number="Number",ho.Password="Password",ho.Slider="Slider";var Po,Vo=function(e){Object.assign(this,ce({},e)),Se(e.visible)&&(this.visible=function(){return!0})},Bo=function(e){function t(t){return e.call(this,t)||this}return le(t,e),t}(Vo),No=function(e){this.isFlex=!1,Object.assign(this,ce({},e))},zo=function(e){function t(t){var n=e.call(this,t)||this;return Object.assign(n,ce({},t)),n}return le(t,e),t}(No),Uo=function(e){function t(t){var n=e.call(this,t)||this;return n.isFlex=!1,n.justifyContent="flex-start",n.alignItems="flex-start",n.visible=function(){return!0},n.isFlex=t.isFlex||!1,n.justifyContent=t.justifyContent||"flex-start",n.alignItems=t.alignItems||"flex-start",t.visible&&(n.visible=t.visible),n.size=new to(t.size||{}),n.gridClass=Object.keys(n.size).map((function(e){return"ui-"+e+"-"+n.size[e]})),n}return le(t,e),t}(No),jo=function(t){var n=t.type,o=t.representedBy;switch(n){case e.DynamicType.Autocomplete:return new oo(t);case e.DynamicType.Binary:case e.DynamicType.String:return new Mo(t);case e.DynamicType.Password:return new _o(t);case e.DynamicType.Boolean:return"switch"===o?new lo(t):new so(t);case e.DynamicType.Chips:return new uo(t);case e.DynamicType.Date:case e.DynamicType.DateTime:case e.DynamicType.LocalDateTime:case e.DynamicType.Time:return new co(t);case e.DynamicType.Double:return new bo(t);case e.DynamicType.Enum:return new ko(t);case e.DynamicType.Fieldset:return new zo(t);case e.DynamicType.Integer:return new vo(t);case e.DynamicType.Number:return new io(t);case e.DynamicType.Lookup:return new xo(t);case e.DynamicType.Money:return new yo(t);case e.DynamicType.Radio:return new Co(t);case e.DynamicType.Row:return new Bo(t);case e.DynamicType.Section:return new Uo(t);case e.DynamicType.Slider:return new So(t);case e.DynamicType.Text:return new To(t)}};(e.GridType||(e.GridType={})).Row="Row",(Po=e.StructureType||(e.StructureType={})).Fieldset="Fieldset",Po.Section="Section";var Ho,$o,Go=function(){function e(){this.errorMessages={}}return pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"configs",void 0),pe([t.Input()],e.prototype,"fields",void 0),pe([t.Input()],e.prototype,"form",void 0),pe([t.Input()],e.prototype,"errorMessages",void 0),e=pe([t.Component({selector:"s-dynamic-form",template:'<div *ngIf="configs; else templateFields">\n <ng-container *ngFor="let config of configs">\n <ng-container\n *sDynamicForm="{\n id: id,\n config: config,\n group: form,\n errorMessages: errorMessages\n }">\n </ng-container>\n </ng-container>\n</div>\n\n<ng-template #templateFields>\n <s-dynamic-field\n [id]="id"\n [fields]="fields"\n [form]="form"\n [errorMessages]="errorMessages">\n </s-dynamic-field>\n</ng-template>\n',encapsulation:t.ViewEncapsulation.None,styles:['label.required:after{content:" *";color:#c13018}']})],e)}(),qo=function(){function e(){this.sLongPressDelay=500,this.sLongPress=new t.EventEmitter,this.mouseUp=new o.Subject,this.mouseDown=new o.Subject,this.ngUnsubscribe=new o.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(i.debounceTime(this.sLongPressDelay),i.takeUntil(this.mouseUp),i.repeat(),i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){return e.sLongPress.emit(t)}))},e.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},pe([t.Input()],e.prototype,"sLongPressDelay",void 0),pe([t.Output()],e.prototype,"sLongPress",void 0),pe([t.HostListener("mouseup",["$event"]),t.HostListener("touchend",["$event"])],e.prototype,"onMouseUp",null),pe([t.HostListener("mousedown",["$event"]),t.HostListener("touchstart",["$event"])],e.prototype,"onMouseDown",null),e=pe([t.Directive({selector:"[sLongPress]"})],e)}(),Wo=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},pe([t.Output()],e.prototype,"onDoubleClick",void 0),pe([t.HostListener("click",["$event"])],e.prototype,"onClick",null),e=pe([t.Directive({selector:"[sDoubleClick]"})],e)}(),Yo=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[qo,Wo],exports:[qo,Wo]})],e)}(),Ko=function(){function e(){this.dismiss=new t.EventEmitter,this.isLeaving=!1,this.timer=null}return e.prototype.startDismissAnimation=function(){var e=this;this.isLeaving=!0,setTimeout((function(){e.dismiss.emit()}),300)},e.prototype.dismissToast=function(){this.timer&&clearTimeout(this.timer),this.startDismissAnimation()},e.prototype.ngOnInit=function(){var e=this;!this.toast.sticky&&this.toast.duration&&(this.timer=setTimeout((function(){e.startDismissAnimation()}),this.toast.duration))},e.prototype.ngOnDestroy=function(){this.timer&&clearTimeout(this.timer)},pe([t.Input()],e.prototype,"toast",void 0),pe([t.Output()],e.prototype,"dismiss",void 0),pe([t.HostBinding("class.toast--leaving")],e.prototype,"isLeaving",void 0),e=pe([t.Component({selector:"s-toast",template:'<div\n class="toast"\n [class.toast--info]="toast.severity === \'info\'"\n [class.toast--success]="toast.severity === \'success\'"\n [class.toast--warning]="toast.severity === \'warning\'"\n [class.toast--error]="toast.severity === \'error\'"\n>\n <div class="toast-content">\n <i\n class="toast-icon fas fa-info"\n [class.fa-info]="toast.severity === \'info\'"\n [class.fa-check]="toast.severity === \'success\'"\n [class.fa-exclamation-triangle]="toast.severity === \'warning\'"\n [class.fa-times]="toast.severity === \'error\'"\n ></i>\n <div class="text-container">\n <span *ngIf="toast.title" class="toast-summary" [innerHTML]="toast.title"></span>\n <span *ngIf="toast.text" [innerHTML]="toast.text"></span>\n </div>\n </div>\n <button *ngIf="toast.closable" class="toast-close-button" (click)="dismissToast()"><i class="fas fa-times"></i></button>\n</div>\n',styles:[':host{display:block}.toast{-ms-flex-align:center;align-items:center;animation:.3s forwards fadeInDown;border-left:3px solid #428bca;border-radius:3px;box-shadow:0 1px 5px 0 rgba(0,0,0,.25);color:#212533;display:-ms-flexbox;display:flex;font-family:"Open Sans" sans-serif;font-size:14px;opacity:0;padding:10px 15px;position:relative;transform:translateY(-20px);width:400px}.toast .toast-content{-ms-flex-align:center;align-items:center;-ms-flex-positive:1;flex-grow:1;display:-ms-flexbox;display:flex;gap:15px}.toast .toast-content .toast-icon{-ms-flex-align:center;align-items:center;background-color:#428bca;border-radius:50%;color:#fff;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;height:40px;-ms-flex-pack:center;justify-content:center;width:40px}.toast .toast-content .text-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.toast .toast-content .text-container .toast-summary{font-weight:700}.toast--success{background-color:#e0f0f0;border-left:3px solid #0c9348}.toast--success .toast-content .toast-icon{background-color:#0c9348}.toast--error{background-color:#fef0f0;border-left:3px solid #c13018}.toast--error .toast-content .toast-icon{background-color:#c13018}.toast--info{background-color:#f1f7f8;border-left:3px solid #428bca}.toast--info .toast-content .toast-icon{background-color:#428bca}.toast--warning{background-color:#fef4e3;border-left:3px solid #fcbf10}.toast--warning .toast-content .toast-icon{background-color:#fcbf10;color:#212533}.toast-close-button{background:0 0;border:none;color:#212533;font-size:1rem;cursor:pointer;margin-left:15px;transition:transform .2s ease-in-out}.toast-close-button:hover{transform:scale(1.1)}@keyframes fadeInDown{from{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeOutUp{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-20px)}}:host.toast--leaving{animation:.3s forwards fadeOutUp}@media (max-width:440px){.toast{width:calc(100% - 40px)}}']})],e)}(),Zo=function(){function e(e,t,n){this.appRef=e,this.injector=t,this.componentFactoryResolver=n,this.activeToasts=[],this.globalToastHostElement=null}return e.prototype.ensureGlobalToastHost=function(){this.globalToastHostElement||(this.globalToastHostElement=document.createElement("div"),document.body.appendChild(this.globalToastHostElement),this.globalToastHostElement.style.display="flex",this.globalToastHostElement.style.flexDirection="column",this.globalToastHostElement.style.position="fixed",this.globalToastHostElement.style.right="20px",this.globalToastHostElement.style.top="20px",this.globalToastHostElement.style.zIndex="99999",this.globalToastHostElement.style.gap="10px")},e.prototype.show=function(e){var t,n=this;this.ensureGlobalToastHost();var o=this.componentFactoryResolver.resolveComponentFactory(Ko).create(this.injector);this.appRef.attachView(o.hostView),e.sticky||(e.duration=null!==(t=e.duration)&&void 0!==t?t:1e4),o.instance.toast=ce({closable:!0},e);var r=o.hostView.rootNodes[0];this.globalToastHostElement.appendChild(r),r.style.display="flex",r.style.justifyContent="center",o.instance.dismiss.pipe(i.first()).subscribe((function(){var e=n.activeToasts.indexOf(o);-1!==e&&(n.appRef.detachView(o.hostView),o.destroy(),n.activeToasts.splice(e,1)),0===n.activeToasts.length&&n.globalToastHostElement&&(n.globalToastHostElement.remove(),n.globalToastHostElement=null)})),this.activeToasts.push(o)},e.ctorParameters=function(){return[{type:t.ApplicationRef},{type:t.Injector},{type:t.ComponentFactoryResolver}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](t.ApplicationRef),t["ɵɵinject"](t.INJECTOR),t["ɵɵinject"](t.ComponentFactoryResolver))},token:e,providedIn:"root"}),e=pe([t.Injectable({providedIn:"root"})],e)}(),Xo=function(){function e(e,t){this.http=e,this._toastService=t}return e.prototype.askIA=function(e,t){var n=this,r=t.prompt?this._replacePlaceholder(e,t):this._createPrompt(e,t);return this.http.post("platform/iassist/api/latest/completions",{prompt:r,provider:"OPEN_AI",parameters:{model:"gpt-3.5-turbo",max_tokens:700,temperature:1}}).pipe(i.catchError((function(e){return n._toastService.show({severity:"error",title:e.status?String(e.status):"Error",text:e.error&&e.error.message||e.statusText||e.message||"Error"}),o.throwError(e)})))},e.prototype._replacePlaceholder=function(e,t){var n=ce(ce({},t),{context:e});delete n.prompt;var o=t.prompt;for(var i in ce(ce({},n),{context:e})){var r=new RegExp("{{\\s*"+i+"\\s*}}","g");o=o.replace(r,n[i])}return console.log("prompt",o),o},e.prototype._createPrompt=function(e,t){return"Crie um texto genérico para preencher o campo de textarea.\n "+(t.label?"O campo tem o label "+t.label+".":"")+"\n "+(t.id?"O campo tem o id "+t.id+".":"")+"\n "+(t.placeholder?"Considere as instruções/sugestões do placeholder: "+t.placeholder+".":"")+"\n Baseie-se no contexto informado pelo usuário: '"+e+'\'.\n O texto deve ser formal e conter informações pertinentes a um campo como este, como se um usuário real tivesse preenchido com as informações necessárias. \n O texto deve ser neutro com relação a generos, raças, religiões, etc.\n O texto deve ser impessoal e não deve conter informações pessoais do usuário.\n Não direcione o texto a ninguém, não use expressões como: caro, atenciosamente. gostaria, agradeço. O texto deve ser genérico.\n \n Exemplos de texto:\n Um campo de descrição de usuário: "Usuário com 20 anos, estudante de engenharia, gosta de jogar futebol e assistir filmes."\n Outro exemplo de descrição de usuário: "Usuário administrador, com acesso total ao sistema, responsável por gerenciar os usuários e os produtos."\n Um campo de descrição de um produto: "O produto é um celular, com tela de 6 polegadas, 128GB de armazenamento, 4GB de memória RAM, câmera de 12MP e bateria de 4000mAh."\n Outro exemplo de descrição de produto: "O produto é uma geladeira, com capacidade de 500 litros, 2 portas, cor branca, com freezer e gaveta de legumes."\n Outro exemplo de descrição de produto: "O produto é uma camiseta, tamanho M, cor azul, 100% algodão, com estampa de um gato."\n \n Em caso de contexto incompleto crie um texto genérico, como se fosse um exemplo de preenchimento do campo.\n O texto é para um campo de textarea, então escreva um texto sucinto.\n Exiba apenas o texto do output'},e.ctorParameters=function(){return[{type:c.HttpClient},{type:Zo}]},e=pe([t.Injectable()],e)}(),Jo=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,pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"iconClass",void 0),pe([t.Input()],e.prototype,"title",void 0),pe([t.Input()],e.prototype,"description",void 0),pe([t.Input()],e.prototype,"showPrimaryAction",void 0),pe([t.Input()],e.prototype,"showSecondaryAction",void 0),pe([t.Input()],e.prototype,"primaryActionLabel",void 0),pe([t.Input()],e.prototype,"secondaryActionLabel",void 0),pe([t.Input()],e.prototype,"primaryModel",void 0),pe([t.Output()],e.prototype,"primaryAction",void 0),pe([t.Output()],e.prototype,"secondaryAction",void 0),e=n=pe([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" (onClick)="primaryAction.next()"></s-button>\n <s-button [id]="id + \'-secondary-action\'" *ngIf="showSecondaryAction && secondaryActionLabel" id="secondaryAction" type="button"\n [label]="secondaryActionLabel" priority="link" (onClick)="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)}(),Qo=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:u.CookieService}]},pe([t.Input()],e.prototype,"iconClass",void 0),pe([t.Input()],e.prototype,"title",void 0),pe([t.Input()],e.prototype,"description",void 0),pe([t.Input()],e.prototype,"primaryActionLabel",void 0),e=pe([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)}(),ei=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Ot],providers:[u.CookieService],declarations:[Jo,Qo],exports:[Jo,Qo]})],e)}(),ti=function(){function e(){this.BASE_URL_FIELD_CUSTOMIZATION="platform/field_customization",this.TOKEN=new AbortController}return e.prototype.getMetadataCustomField=function(e){return ue(this,void 0,void 0,(function(){return me(this,(function(t){return[2,rn.POST(this.BASE_URL_FIELD_CUSTOMIZATION+"/queries/getFileMetadata",e,{signal:this.TOKEN.signal})]}))}))},e=pe([t.Injectable()],e)}();(Ho=e.ValidateErrors||(e.ValidateErrors={})).MAX_FILE_SIZE="MAX_FILE_SIZE",Ho.MAX_FILE_LIMIT="MAX_FILE_LIMIT",Ho.MAX_COMBINED_FILE_SIZE="MAX_COMBINED_FILE_SIZE",Ho.UNSUPPORTED_EXTENSION="UNSUPPORTED_EXTENSION",($o=e.FileUploadPermissions||(e.FileUploadPermissions={})).Add="add",$o.Read="read",$o.Remove="remove";var ni,oi=[e.FileUploadPermissions.Add,e.FileUploadPermissions.Read,e.FileUploadPermissions.Remove],ii=d,ri=function(){function n(n,r,a){this.sanitizer=n,this.fileUploadService=r,this.translate=a,this.ADD_PERMISSION=e.FileUploadPermissions.Add,this.READ_PERMISSION=e.FileUploadPermissions.Read,this.REMOVE_PERMISSION=e.FileUploadPermissions.Remove,this.id="s-file-upload-"+i.nextId++,this.supportedExtensions=[],this.disabled=!1,this.showFileUploadDate=!1,this.permissions=oi,this.uploadHandler=new t.EventEmitter,this.removeFile=new t.EventEmitter,this.cancelUpload=new t.EventEmitter,this.downloadFile=new t.EventEmitter,this.validateErrors=new t.EventEmitter,this._files=[],this.ngUsubscribe=new o.Subject,this.inputValue=""}var i;return i=n,Object.defineProperty(n.prototype,"files",{get:function(){return this._files},set:function(e){var t,n=this;this.showFileUploadDate&&(null===(t=e[0])||void 0===t?void 0:t.objectId)&&this.getUploadDate(e),this._files=e.map((function(e){return n.isImage(e)&&(e.objectURL=n.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(e))),e}))},enumerable:!0,configurable:!0}),n.prototype.ngOnInit=function(){this.supportedExtensions=this.supportedExtensions.map((function(e){return e.replace(".","").toLowerCase()}))},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,o,i=[];if(this.multiple||(this.files=[]),this.isFileLimitExceeded(t))return this.validateErrors.emit({files:t,validation:e.ValidateErrors.MAX_FILE_LIMIT}),void this.clearFileInput();if(this.isFileCombinedSizeExceeded(t))return this.validateErrors.emit({files:t,validation:e.ValidateErrors.MAX_COMBINED_FILE_SIZE}),void this.clearFileInput();try{for(var r=he(t),a=r.next();!a.done;a=r.next()){var s=a.value;this.isUnsupportedFileExtension(s)?this.validateErrors.emit({files:[s],validation:e.ValidateErrors.UNSUPPORTED_EXTENSION}):this.isFileSizeExceeded(s)?this.validateErrors.emit({files:[s],validation:e.ValidateErrors.MAX_FILE_SIZE}):i.push(s)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(o=r.return)&&o.call(r)}finally{if(n)throw n.error}}i.length&&(this.files=this.files.concat(i),this.uploadHandler.emit({files:i})),this.clearFileInput()},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),this.clearFileInput()},n.prototype.onDowloadFile=function(e){this.downloadFile.emit({index:e,anchor:this.anchor})},n.prototype.update=function(){var e=window.innerWidth;this.isSmallDevice=e<=Yn.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.isFileCombinedSizeExceeded=function(e){return!!this.maxCombinedFileSize&&ge(e,this.files).reduce((function(e,t){return e+t.size}),0)>this.maxCombinedFileSize},n.prototype.isFileSizeExceeded=function(e){return!!this.maxFileSize&&e.size>this.maxFileSize},n.prototype.isUnsupportedFileExtension=function(e){var t;if(null===(t=this.supportedExtensions)||void 0===t?void 0:t.length){var n=e.name.split(".").pop().toLowerCase();return!this.supportedExtensions.includes(n)}return!1},n.prototype.clearFileInput=function(){this.inputUpload.nativeElement.value=null},n.prototype.getUploadDate=function(e){var t=this;e&&this.fileUploadService.getMetadataCustomField({objectId:e[0].objectId}).then((function(e){return t.setModifiedDate(e)}))},n.prototype.setModifiedDate=function(e){var t=ii(e.modified).format("HH"),n=ii(e.modified).format("mm"),o=ii(e.modified).format("DD"),i=ii(e.modified).format("MM"),r=ii(e.modified).format("YYYY");this.modifiedDate=this.translate.instant("platform.angular_components.date_modified_custom_blob",{hour:t,minutes:n,day:o,month:i,fullYear:r})},n.nextId=0,n.ctorParameters=function(){return[{type:K.DomSanitizer},{type:ti},{type:b.TranslateService}]},pe([t.ViewChild("inputUpload",{static:!1})],n.prototype,"inputUpload",void 0),pe([t.ViewChild("anchor",{static:!1})],n.prototype,"anchor",void 0),pe([t.Input()],n.prototype,"id",void 0),pe([t.Input()],n.prototype,"chooseLabel",void 0),pe([t.Input()],n.prototype,"removeLabel",void 0),pe([t.Input()],n.prototype,"cancelLabel",void 0),pe([t.Input()],n.prototype,"successTooltip",void 0),pe([t.Input()],n.prototype,"multiple",void 0),pe([t.Input()],n.prototype,"accept",void 0),pe([t.Input()],n.prototype,"supportedExtensions",void 0),pe([t.Input()],n.prototype,"ariaLabelFileName",void 0),pe([t.Input()],n.prototype,"maxFileSize",void 0),pe([t.Input()],n.prototype,"maxCombinedFileSize",void 0),pe([t.Input()],n.prototype,"fileLimit",void 0),pe([t.Input()],n.prototype,"ariaLabelProgress",void 0),pe([t.Input()],n.prototype,"ariaLabelSuccess",void 0),pe([t.Input()],n.prototype,"ariaLabelError",void 0),pe([t.Input()],n.prototype,"ariaLabelRemove",void 0),pe([t.Input()],n.prototype,"formGroup",void 0),pe([t.Input()],n.prototype,"disabled",void 0),pe([t.Input()],n.prototype,"showFileUploadDate",void 0),pe([t.Input()],n.prototype,"permissions",void 0),pe([t.Input()],n.prototype,"files",null),pe([t.Output()],n.prototype,"uploadHandler",void 0),pe([t.Output()],n.prototype,"removeFile",void 0),pe([t.Output()],n.prototype,"cancelUpload",void 0),pe([t.Output()],n.prototype,"downloadFile",void 0),pe([t.Output()],n.prototype,"validateErrors",void 0),pe([t.HostListener("window:resize")],n.prototype,"onResize",null),n=i=pe([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 *ngIf="permissions.includes(ADD_PERMISSION)"\n [id]="id + \'upload-button\'"\n [label]="chooseLabel || \'platform.angular_components.attach_files\' | translate"\n (onClick)="inputUpload.click()"\n priority="primary"\n [disabled]="disabled || !!formGroup?.disabled || fileLimit === files?.length"\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="permissions.includes(READ_PERMISSION) && file.savedFile || file.progress === 100\n ? descriptionUrl\n : description; context: {\n $implicit: file,\n index: i\n }">\n </ng-container>\n <span *ngIf="modifiedDate" class="s-fileupload-list-file-name-date">{{ modifiedDate }}</span>\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 || \'platform.angular_components.loading_file\' | translate">\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 || \'platform.angular_components.loading_file\' | translate">\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 || \'platform.angular_components.file_attached_successfully\' | translate"\n [pTooltip]="successTooltip || \'platform.angular_components.file_attached_successfully\' | translate"\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 || \'platform.angular_components.cancel\' | translate }}\n </a>\n <a\n *ngIf="permissions.includes(REMOVE_PERMISSION) && !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 || \'platform.angular_components.remove\' | translate">\n {{ removeLabel || \'platform.angular_components.remove\' | translate }}\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{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-item-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 .s-fileupload-list-file-name-date{font-size:.75rem;color:#999}.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)}(),ai=function(){function e(){}return e=pe([t.NgModule({declarations:[ri],imports:[r.CommonModule,Ot,Y.TooltipModule,W.ProgressBarModule,b.TranslateModule],providers:[ti],exports:[ri]})],e)}(),si=function(){function e(){}return e=pe([t.Component({template:'<svg style="width: 100%; height: 100%;" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M5.81451 18.1054L5.99593 17.6059L7.52166 13.4099L7.60877 13.1726L7.61277 13.1614L7.94285 12.2543L8.01159 12.0648L8.05394 11.949L5.2998 8.52426L5.02726 8.18379C5.00569 8.15821 4.9881 8.13104 4.97292 8.10226C4.90099 7.9632 4.85063 7.81294 4.82186 7.6531C4.73075 7.1344 4.90418 6.60771 5.28382 6.24326C5.29421 6.23447 5.3038 6.22567 5.31419 6.21688L5.47164 6.0914L9.3439 3.00238L9.5469 2.84094L9.57088 2.82096L10.4101 2.15041L11.8007 1.04188C11.2181 0.925188 10.6163 0.863647 10.0001 0.863647C4.95374 0.863647 0.863281 4.9541 0.863281 9.99963C0.863281 13.5346 2.87254 16.5989 5.80971 18.1182" fill="#0FA389"/>\n <path d="M14.099 1.83472L13.9495 2.24632L11.997 7.61074L11.9427 7.7594L11.9003 7.87369L14.7448 11.4103C14.7463 11.4127 14.7479 11.4143 14.7495 11.4167L14.9414 11.654C14.9541 11.67 14.9661 11.6868 14.9765 11.7044C15.0764 11.8698 15.1444 12.0505 15.1779 12.2431C15.273 12.7826 15.0812 13.3284 14.676 13.6897C14.656 13.7129 14.6345 13.7344 14.6105 13.7536L11.8563 15.9507L11.6789 16.0922L11.6022 16.1537L10.7406 16.8402V16.841L10.3937 17.1176L9.85747 17.5452L9.39951 17.9112L8.11035 18.9398C8.72016 19.0677 9.35155 19.1364 9.99973 19.1364C15.0461 19.1364 19.1365 15.046 19.1365 9.99964C19.1365 6.42789 17.0857 3.33727 14.099 1.83472Z" fill="#0FA389"/>\n <path d="M14.7287 12.3222C14.7047 12.1832 14.6551 12.0545 14.5864 11.941L14.3954 11.7036C14.3954 11.7036 14.3946 11.7028 14.3938 11.7028L11.3839 7.96005L10.5031 6.86511L10.4256 6.7676L9.03255 5.03487L8.83674 4.79191C8.79278 4.71678 8.75681 4.63446 8.73204 4.54814C8.72085 4.51058 8.71286 4.47222 8.70566 4.43465C8.68568 4.32196 8.68408 4.21007 8.69847 4.10217L8.62334 4.16291L8.44511 4.30438L5.75731 6.44871L5.60066 6.57339C5.34011 6.82275 5.20584 7.19279 5.27218 7.57482C5.29296 7.68751 5.32892 7.79541 5.37927 7.89292C5.37927 7.89292 5.37927 7.89292 5.38007 7.89371L5.6566 8.23818L8.57139 11.8627L8.63293 11.9394L9.53047 13.0559L9.59041 13.1303L9.98363 13.6186L11.0178 14.9046C11.0186 14.9054 11.0194 14.9069 11.0202 14.9077L11.1361 15.0516V15.0524C11.2184 15.1755 11.2768 15.317 11.3048 15.4728C11.3239 15.5807 11.3263 15.6878 11.3143 15.7925L11.3175 15.7965L11.3943 15.735L11.5717 15.5935L14.3266 13.3964L14.3218 13.3908C14.6335 13.1438 14.8022 12.7394 14.7287 12.3222Z" fill="#F3F3F5"/>\n <path d="M10.6822 15.0082C10.6814 15.0074 10.6806 15.0058 10.6806 15.005L10.5672 14.8643L10.3809 14.6325L10.3282 14.567L10.2211 14.4335L9.40028 13.4129L9.32835 13.3242L8.77289 12.6345L8.68098 12.5194L8.44121 12.2205L8.37168 12.4099L8.04159 13.317L8.0376 13.329L7.95128 13.5664L6.42475 17.7623L6.24333 18.2618L5.90605 19.1881L5.73262 19.6645C5.73182 19.6661 5.73102 19.6677 5.73102 19.6685C5.72863 19.6749 5.72703 19.6821 5.72543 19.6885C5.71584 19.7228 5.71424 19.758 5.72063 19.7948C5.74461 19.929 5.87329 20.0193 6.00836 19.9962C6.04112 19.9898 6.07229 19.9778 6.09867 19.9602C6.09867 19.9602 6.09947 19.9602 6.10027 19.9594L6.14103 19.9266L7.39422 18.9268L9.11496 17.5537L9.57292 17.1877L10.1092 16.7601L10.4561 16.4827L10.4537 16.4811C10.7582 16.2382 10.9236 15.8402 10.8509 15.4294C10.8237 15.2735 10.7654 15.1313 10.6822 15.0082Z" fill="#0C847B"/>\n <path d="M9.17644 4.56325C9.2124 4.68713 9.26915 4.80062 9.34268 4.90053C9.34348 4.90053 9.34428 4.90213 9.34428 4.90213L9.40342 4.97645C9.40502 4.97805 9.40582 4.97885 9.40662 4.98045L9.56806 5.17946L9.64878 5.28096L9.67915 5.31932L9.8414 5.51993L10.5559 6.40947L10.7054 6.59569L11.2169 7.23188L11.5142 7.60192L11.5693 7.45247L13.5202 2.08964L14.1596 0.332135C14.1596 0.330536 14.1604 0.328139 14.1612 0.32654C14.174 0.288177 14.1772 0.246617 14.17 0.205058C14.1468 0.0699879 14.0182 -0.0195258 13.8823 0.00365186C13.8407 0.0116442 13.8024 0.028428 13.7712 0.0540033L12.578 1.00589L12.498 1.06982L10.6958 2.50844L9.85658 3.17819L9.8326 3.19737L9.6296 3.35961L9.45297 3.50028C9.2116 3.73925 9.08692 4.08931 9.15006 4.44976C9.15726 4.48813 9.16525 4.52649 9.17644 4.56325Z" fill="#0C847B"/>\n</svg>'})],e)}(),li=function(){function e(){}return e=pe([t.Component({template:'<svg width="100%" height="100%" viewBox="0 0 348 613" fill="none" xmlns="http://www.w3.org/2000/svg">\n <g filter="url(#filter0_d_2841_2040)">\n <path d="M174.719 518.932L258.161 439.782C264.546 433.762 269.614 426.603 273.072 418.719C276.53 410.834 278.31 402.378 278.31 393.838C278.31 385.298 276.53 376.843 273.072 368.958C269.614 361.073 264.546 353.915 258.161 347.895L174.719 269.199C168.45 263.304 163.474 256.289 160.077 248.56C156.681 240.83 154.933 232.539 154.933 224.165C154.933 215.792 156.681 207.501 160.077 199.771C163.474 192.042 168.45 185.027 174.719 179.132L303.718 301.496C329.517 326.089 344 359.371 344 394.066C344 428.76 329.517 462.043 303.718 486.635L174.719 609C168.45 603.105 163.474 596.09 160.077 588.36C156.681 580.631 154.933 572.34 154.933 563.966C154.933 555.592 156.681 547.301 160.077 539.572C163.474 531.842 168.45 524.828 174.719 518.932ZM173.76 94.0677L90.3189 173.218C83.9334 179.238 78.8659 186.397 75.408 194.281C71.95 202.166 70.1698 210.622 70.1698 219.162C70.1698 227.702 71.95 236.157 75.408 244.042C78.8659 251.927 83.9334 259.085 90.3189 265.105L173.76 344.256C180.03 350.151 185.006 357.166 188.402 364.895C191.798 372.625 193.547 380.916 193.547 389.289C193.547 397.663 191.798 405.954 188.402 413.684C185.006 421.413 180.03 428.428 173.76 434.323L44.2823 311.504C18.4832 286.911 4 253.629 4 218.934C4 184.24 18.4832 150.957 44.2823 126.365L173.76 4C186.213 16.0129 193.192 32.1861 193.192 49.0338C193.192 65.8815 186.213 82.0547 173.76 94.0677Z" fill="white" />\n </g>\n <defs>\n <filter id="filter0_d_2841_2040" x="0" y="0" width="348" height="613" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB" >\n <feFlood flood-opacity="0" result="BackgroundImageFix" />\n <feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha" />\n <feOffset />\n <feGaussianBlur stdDeviation="2" />\n <feComposite in2="hardAlpha" operator="out" />\n <feColorMatrix type="matrix" values="0 0 0 0 0.418936 0 0 0 0 1 0 0 0 0 0.930272 0 0 0 0.35 0" />\n <feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_2841_2040" />\n <feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_2841_2040" result="shape" />\n </filter>\n </defs>\n</svg>\n'})],e)}();!function(e){e.IAssist="iassist",e.Senior="senior"}(ni||(ni={}));var ci,pi=function(){function e(e,t,n){this.viewContainerRef=e,this.componentFactoryResolver=t,this.cdr=n,this._iconClass=this._getIconClass(ni.Senior)}return Object.defineProperty(e.prototype,"sSVGFactory",{set:function(e){this._iconClass=this._getIconClass(e)},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this._createComponent()},e.prototype._createComponent=function(){var e=this.componentFactoryResolver.resolveComponentFactory(this._iconClass);this.viewContainerRef.clear(),this.viewContainerRef.createComponent(e),this.cdr.detectChanges()},e.prototype._getIconClass=function(e){switch(e){case ni.IAssist:return si;case ni.Senior:default:return li}},e.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.ComponentFactoryResolver},{type:t.ChangeDetectorRef}]},pe([t.Input("sSVGFactory")],e.prototype,"sSVGFactory",null),e=pe([t.Directive({selector:"[sSVGFactory]"})],e)}(),di=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[pi,si,li],exports:[pi]})],e)}(),ui=function(){function e(){}return e=pe([t.Component({selector:"s-dots-indicator",template:'<div class="dots-indicator">\n <div class="bounce bounce--1"></div>\n <div class="bounce bounce--2"></div>\n <div class="bounce bounce--3"></div>\n</div>\n',styles:[".dots-indicator .bounce{animation:1.2s ease-out infinite bounce;background-color:#333;border-radius:100%;display:inline-block;height:10px;width:10px}.dots-indicator .bounce+.bounce{margin-left:15px}.dots-indicator .bounce.bounce--1{animation-delay:0s}.dots-indicator .bounce.bounce--2{animation-delay:.1s}.dots-indicator .bounce.bounce--3{animation-delay:.2s}@keyframes bounce{100%,80%{transform:scale(1)}90%{transform:scale(1.8)}}"]})],e)}(),mi=function(){function e(){}return e=pe([t.Component({selector:"s-logo-indicator",template:'<div class="logo-indicator">\n <span *sSVGFactory="\'senior\'"></span>\n</div>\n',styles:[".logo-indicator{animation:1s infinite pulsar,1s infinite scale;background-color:#00c89a;border-radius:50%;box-shadow:0 0 0 #00c89ab3;height:64px;padding:calc(64px * .16);position:relative;width:64px}@keyframes pulsar{0%{box-shadow:0 0 0 0 #00c89ab3}70%{box-shadow:0 0 0 40px #00c89a00}100%{box-shadow:0 0 0 0 #00c89a00}}@keyframes scale{0%,100%{transform:scale(1)}50%{transform:scale(1.3)}}"]})],e)}();!function(e){e.Dots="dots",e.Logo="logo"}(ci||(ci={}));var hi,fi,gi=function(){function e(){this.indicator=ci.Dots,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,pe([t.Input()],e.prototype,"indicator",void 0),pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"blockWindow",void 0),pe([t.Input()],e.prototype,"loading",null),e=n=pe([t.Component({selector:"s-loading-state",template:'<div\n [id]="id"\n class="s-loading-state-container"\n [ngClass]="{\n \'loading\': loading,\n \'blocking\': blocking,\n \'fullscreen\': blockWindow\n }">\n <div\n [id]="id + \'-loader\'"\n class="loader">\n <div\n [id]="id + \'-spinner\'"\n class="spinner">\n <ng-container [ngSwitch]="indicator">\n <s-logo-indicator *ngSwitchCase="\'logo\'"></s-logo-indicator>\n <s-dots-indicator *ngSwitchCase="\'dots\'"></s-dots-indicator>\n </ng-container>\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{opacity:0;position:absolute;transition:opacity .2s ease-out,display .2s ease-out;visibility:hidden;inset:1px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.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:-ms-flexbox;display:flex;position:absolute;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.blocking.loading>.loader{opacity:1}.s-loading-state-container.fullscreen>.loader{left:0;position:fixed;top:0;z-index:1005}::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)}(),vi=function(){function e(e,t,n,o){this.target=e,this.template=t,this.componentFactoryResolver=n,this.cdr=o,this._loading=!1,this.indicator=ci.Dots}return Object.defineProperty(e.prototype,"sLoadingState",{set:function(e){"boolean"==typeof e?(this._loading=e,this.indicator=ci.Dots):"object"==typeof e&&(this._loading=e.loading,this.indicator=e.indicator||ci.Dots),this.loaderComponent&&(this.loaderComponent.instance.loading=this._loading,this.loaderComponent.instance.indicator=this.indicator)},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){this.createComponent()},e.prototype.createComponent=function(){var e=this.componentFactoryResolver.resolveComponentFactory(gi);this.loaderComponent=this.target.createComponent(e),this.loaderComponent.instance.contents=this.template,this.loaderComponent.instance.loading=this._loading,this.loaderComponent.instance.indicator=this.indicator,this.cdr.detectChanges()},e.prototype.ngOnDestroy=function(){this.loaderComponent&&this.loaderComponent.destroy()},e.ctorParameters=function(){return[{type:t.ViewContainerRef},{type:t.TemplateRef},{type:t.ComponentFactoryResolver},{type:t.ChangeDetectorRef}]},pe([t.Input("sLoadingState")],e.prototype,"sLoadingState",null),e=pe([t.Directive({selector:"[sLoadingState]"})],e)}(),bi=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,di],declarations:[gi,vi,ui,mi],exports:[gi,vi],entryComponents:[gi]})],e)}(),yi=function(){function e(e){this.localeService=e,this.precision=2}var n;return n=e,e.prototype.ngOnInit=function(){var e=this;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+"}))?$",this.localeService.getLocale().pipe(i.first()).subscribe((function(){var t,n;e.decimalSeparator=null!==(t=e.decimalSeparator)&&void 0!==t?t:e.localeService.getDecimalSeparator(),e.thousandsSeparator=null!==(n=e.thousandsSeparator)&&void 0!==n?n:e.localeService.getGroupingSeparator(),e.numberRegex="^((\\+?)|(-?))([0-9]{1,3})+((\\"+e.thousandsSeparator+"[0-9]{3,3})|((\\"+e.thousandsSeparator+"[0-9]{3,3})+(\\"+e.thousandsSeparator+"[0-9]{3,3}))|((\\"+e.thousandsSeparator+"[0-9]{3,3})+(\\"+e.decimalSeparator+"[0-9]{1,2}))|(\\"+e.decimalSeparator+"[0-9]{1,"+e.precision+"}))?$"}))},e.prototype.validate=function(e){return e.value&&!String(e.value).match(new RegExp(this.numberRegex,"g"))?{invalidNumber:!0}:null},e.ctorParameters=function(){return[{type:Je}]},pe([t.Input()],e.prototype,"decimalSeparator",void 0),pe([t.Input()],e.prototype,"thousandsSeparator",void 0),pe([t.Input()],e.prototype,"precision",void 0),e=n=pe([t.Directive({selector:"input[sLocalizedNumberInput]",providers:[{provide:a.NG_VALIDATORS,useExisting:t.forwardRef((function(){return n})),multi:!0}]})],e)}(),xi=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[yi],exports:[yi]})],e)}(),_i=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,o=[],i=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(i);if(!new RegExp(p).test(d))throw new Error("Value doesn't match mask format");i<r.length&&(o.push(e.charAt(i)),i++)}else o.push(c),s&&l>n&&a.push(l);else n=l}if(o[o.length-1]!==e.charAt(e.length-1)&&a.length){var u=o.join(""),m=void 0,h=void 0,f=void 0,g=void 0;for(l=0;l<a.length;l++){var v=a[l];m=u.substr(0,v-1),h=u.substr(v-1,1),f=u.substr(v,1),g=u.substr(v+1),u=""+m+f+h+g}return""+u+e.substr(e.length-a.length)}return o.join("")},e=pe([t.Pipe({name:"sMaskFormatter"})],e)}(),wi=function(){function e(){}return e=pe([t.NgModule({exports:[_i],declarations:[_i]})],e)}();(hi=e.PasswordStrengths||(e.PasswordStrengths={})).VeryWeak="Very_weak",hi.Weak="weak",hi.Medium="medium",hi.Strong="strong",(fi=e.PasswordStrengthPositions||(e.PasswordStrengthPositions={})).Top="top",fi.Right="right",fi.Left="left";var Ci,ki,Ii=function(){function n(t){this.translate=t,this.position=e.PasswordStrengthPositions.Right,this.left=0,this.top=0,this.visible=!1}return n.prototype.ngOnInit=function(){this.title=this.weakTitle},n.prototype.setPasswordStrengthPosition=function(){var t=document.querySelector(".password-strength");switch(this.position){case e.PasswordStrengthPositions.Top:t.classList.add("password-strength--top");break;case e.PasswordStrengthPositions.Right:t.classList.add("password-strength--right");break;case e.PasswordStrengthPositions.Left:t.classList.add("password-strength--left")}},n.prototype.updateIndicators=function(t){var n,o,i,r,a,s=document.querySelector("#strength-indicator-1"),l=document.querySelector("#strength-indicator-2"),c=document.querySelector("#strength-indicator-3"),p=[],d=[s,l,c];switch(t){case e.PasswordStrengths.VeryWeak:this.title=null!==(n=this.weakTitle)&&void 0!==n?n:this.translate.instant("platform.angular_components.weak");break;case e.PasswordStrengths.Weak:this.title=null!==(o=this.weakTitle)&&void 0!==o?o:this.translate.instant("platform.angular_components.weak"),a="strength-indicator--weak",p.push(s);break;case e.PasswordStrengths.Medium:this.title=null!==(i=this.mediumTitle)&&void 0!==i?i:this.translate.instant("platform.angular_components.medium"),a="strength-indicator--medium",p.push(s),p.push(l);break;case e.PasswordStrengths.Strong:this.title=null!==(r=this.strongTitle)&&void 0!==r?r:this.translate.instant("platform.angular_components.strong"),a="strength-indicator--strong",p.push(s),p.push(l),p.push(c)}d.forEach((function(e){e.classList.remove("strength-indicator--weak","strength-indicator--medium","strength-indicator--strong")})),p.forEach((function(e){e.classList.add(a)}))},n.ctorParameters=function(){return[{type:b.TranslateService}]},pe([t.Input()],n.prototype,"weakTitle",void 0),pe([t.Input()],n.prototype,"mediumTitle",void 0),pe([t.Input()],n.prototype,"strongTitle",void 0),pe([t.Input()],n.prototype,"description",void 0),n=pe([t.Component({template:'<div\n class="password-strength"\n [ngStyle]="{\n \'left\': left + \'px\',\n \'top\': top + \'px\'\n }"\n [ngClass]="[\'password-strength--\' + position]">\n <span class="title">{{ title }}</span>\n <div class="strength-indicators">\n <span class="strength-indicator" id="strength-indicator-1"></span>\n <span class="strength-indicator" id="strength-indicator-2"></span>\n <span class="strength-indicator" id="strength-indicator-3"></span>\n </div>\n <span class="content">{{ description }}</span>\n</div>',styles:['.password-strength{position:fixed;transform:translateX(-50%);background-color:#fff;border-radius:2px;box-shadow:0 0 5px 1px #ccc;padding:10px;width:232px;z-index:99999}.password-strength::after{content:"";position:absolute}.password-strength .title{font-family:"Open Sans",sans-serif;font-size:14px;font-weight:700;line-height:150%}.password-strength .strength-indicators{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:10px 0}.password-strength .strength-indicators .strength-indicator{background-color:#ccc;border-radius:2px;display:inline-block;height:3px;width:64px}.password-strength .strength-indicators .strength-indicator--weak{background-color:#c13018}.password-strength .strength-indicators .strength-indicator--medium{background-color:#fcbf10}.password-strength .strength-indicators .strength-indicator--strong{background-color:#0c9348}.password-strength .content{font-family:"Open Sans",sans-serif;font-size:12px;font-weight:400;line-height:150%}.password-strength--top{transform:translate(-50%,-100%)}.password-strength--top::after{top:100%;right:calc(50% - 4px);border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #fff}.password-strength--right{transform:translateY(-50%)}.password-strength--right::after{bottom:calc(50% - 8px);left:-8px;border-top:8px solid transparent;border-right:8px solid #fff;border-bottom:8px solid transparent}.password-strength--left{transform:translate(-100%,-50%)}.password-strength--left::after{bottom:calc(50% - 8px);right:-8px;border-top:8px solid transparent;border-left:8px solid #fff;border-bottom:8px solid transparent}']})],n)}(),Si=function(){function n(t,n,o,i){this.elementRef=t,this.appRef=n,this.componentFactoryResolver=o,this.injector=i,this.enabled=!0,this.position=e.PasswordStrengthPositions.Right,this.componentRef=null}return n.prototype.ngOnInit=function(){this.validateProperties()},n.prototype.onFocus=function(){var t,n,o,i=null!==(t=this.elementRef.nativeElement.value)&&void 0!==t?t:"";i?(this.createPasswordStrength(),null===(n=this.componentRef)||void 0===n||n.instance.updateIndicators(this.validation(i))):null===(o=this.componentRef)||void 0===o||o.instance.updateIndicators(e.PasswordStrengths.VeryWeak)},n.prototype.onBlur=function(){this.destroyPasswordStrength()},n.prototype.createPasswordStrength=function(){if(this.enabled&&null===this.componentRef){var e=this.componentFactoryResolver.resolveComponentFactory(Ii);this.componentRef=e.create(this.injector),this.appRef.attachView(this.componentRef.hostView);var t=this.componentRef.hostView.rootNodes[0];document.body.appendChild(t),this.setPasswordStrengthComponentProperties(),this.showPasswordStrength()}},n.prototype.showPasswordStrength=function(){null!==this.componentRef&&(this.componentRef.instance.visible=!0)},n.prototype.setPasswordStrengthComponentProperties=function(){if(null!=this.componentRef){this.componentRef.instance.position=this.position,this.componentRef.instance.weakTitle=this.weakTitle,this.componentRef.instance.mediumTitle=this.mediumTitle,this.componentRef.instance.strongTitle=this.strongTitle,this.componentRef.instance.description=this.description;for(var t=this.elementRef.nativeElement.getBoundingClientRect(),n=t.top,o=t.right,i=t.bottom,r=t.left,a=i-n,s=o-r,l=!1,c=[];!l;){if(c.includes(e.PasswordStrengthPositions.Top)&&c.includes(e.PasswordStrengthPositions.Right)&&c.includes(e.PasswordStrengthPositions.Left))throw this.destroyPasswordStrength(),new Error("No space to show password strength");switch(this.position){case e.PasswordStrengthPositions.Top:var p=n,d=document.body.clientWidth-o,u=r;if(p<=a+150||d<50||u<50){this.position=e.PasswordStrengthPositions.Right,c.push(e.PasswordStrengthPositions.Top);break}this.componentRef.instance.top=Math.round(n-20),this.componentRef.instance.left=Math.round(s/2+r),l=!0;break;case e.PasswordStrengthPositions.Right:if((d=document.body.clientWidth-o)<=s+150){this.position=e.PasswordStrengthPositions.Left,c.push(e.PasswordStrengthPositions.Right);break}this.componentRef.instance.top=Math.round(n+a/2),this.componentRef.instance.left=Math.round(o+20),l=!0;break;case e.PasswordStrengthPositions.Left:if((u=r)<=s+150){this.position=e.PasswordStrengthPositions.Top,c.push(e.PasswordStrengthPositions.Left);break}this.componentRef.instance.top=Math.round(n+a/2),this.componentRef.instance.left=Math.round(r-20),l=!0}this.componentRef.instance.position=this.position}}},n.prototype.validateProperties=function(){this.validation=this.validation||this.defaultValidator},n.prototype.destroyPasswordStrength=function(){null!==this.componentRef&&(this.appRef.detachView(this.componentRef.hostView),this.componentRef.destroy(),this.componentRef=null)},n.prototype.defaultValidator=function(t){var n=0,o=[new RegExp("(?=.*\\d)"),new RegExp("(?=.*[a-z])"),new RegExp("(?=.*[A-Z])"),new RegExp("(?=.*[!@#$%&*.\\-=+^~])")];return t.length>=6&&n++,o.forEach((function(e){e.test(t)&&n++})),n<1?e.PasswordStrengths.VeryWeak:n<4?e.PasswordStrengths.Weak:n<5?e.PasswordStrengths.Medium:e.PasswordStrengths.Strong},n.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ApplicationRef},{type:t.ComponentFactoryResolver},{type:t.Injector}]},pe([t.Input("sPasswordStrength")],n.prototype,"enabled",void 0),pe([t.Input("psValidation")],n.prototype,"validation",void 0),pe([t.Input("psPosition")],n.prototype,"position",void 0),pe([t.Input("psWeakTitle")],n.prototype,"weakTitle",void 0),pe([t.Input("psMediumTitle")],n.prototype,"mediumTitle",void 0),pe([t.Input("psStrongTitle")],n.prototype,"strongTitle",void 0),pe([t.Input("psDescription")],n.prototype,"description",void 0),pe([t.HostListener("keyup"),t.HostListener("focus")],n.prototype,"onFocus",null),pe([t.HostListener("blur")],n.prototype,"onBlur",null),n=pe([t.Directive({selector:"[sPasswordStrength]"})],n)}(),Ti=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[Ii,Si],exports:[Si]})],e)}(),Ei=function(){function e(e,t){var r=this;this.table=e,this.tableService=t,this.id="s-table-header-checkbox-"+n.nextId++,this.ngUnsubscribe=new o.Subject,this.table.tableService.valueSource$.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(){r.checked=r.updateCheckedState()})),this.table.tableService.selectionSource$.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(){r.checked=r.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,o=n.filteredValue,i=n.value,r=n.dataKey,a=e?o?o.slice():i.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=ge(this.table._selection,s)}else i.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=he(this.table.filteredValue),o=n.next();!o.done;o=n.next()){var i=o.value;if(!this.table.isSelected(i))return!1}}catch(t){e={error:t}}finally{try{o&&!o.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=he(this.table.value),o=n.next();!o.done;o=n.next()){var i=o.value;if(!this.table.isSelected(i))return!1}}catch(t){e={error:t}}finally{try{o&&!o.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:R.Table},{type:R.TableService}]},pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"disabled",void 0),pe([t.Input()],e.prototype,"rowProps",void 0),pe([t.Input()],e.prototype,"useAllObject",void 0),e=n=pe([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)}(),Mi=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],exports:[Ei],declarations:[Ei]})],e)}(),Li=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,o=this.findPrevSelectableRow(n);o&&o.cells[t].focus()},e.prototype.setUnderColFocus=function(e){var t=e.cellIndex,n=e.parentElement,o=this.findNextSelectableRow(n);o&&o.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},pe([t.HostListener("keydown",["$event"])],e.prototype,"onKeyDown",null),e=pe([t.Directive({selector:"[sNavigation]"})],e)}(),Fi=function(e){function n(t){var n=e.call(this,t)||this;return n.dt=t,n}return le(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:R.Table}]},pe([t.Input("sRowToggler")],n.prototype,"data",void 0),pe([t.HostListener("keydown",["$event"])],n.prototype,"onKeydown",null),n=pe([t.Directive({selector:"[sRowToggler]"})],n)}(R.RowToggler),Oi=function(){function e(e,n){this.el=e,this.sTableFrozenPosition="left",this.isTableVisible=!1,this.onColumnsChanged=new t.EventEmitter,this.TABLE_SCROLLABLE_WRAPPER_CLASS=".ui-table-scrollable-wrapper",this.table=n,this.table.styleClass=(this.table.styleClass||"")+" s-table-frozen-position",this.setUpTableEvents(),window.addEventListener("resize",this.handleWindowResize.bind(this));var o=document.getElementsByTagName("head")[0],i=document.createElement("style");i.innerHTML=".s-table-frozen-position .ui-table-frozen-view .sds-expanded-row > td { visibility: hidden; }",o.appendChild(i)}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(),this.tableWrapperObserver&&this.tableWrapperObserver.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,o){var i=n[o];t.innerHTML=null,t.style.padding="0px",e.rowExpandedObserver.observe(i)}))}))},e.prototype.setUpColumnMonitoring=function(){var e=this;this.tableHeadObservable=new MutationObserver((function(){e.synchronizeRowHeight(),e.onColumnsChanged.emit(null)})),ge(this.el.nativeElement.getElementsByTagName("thead")).forEach((function(t){e.tableHeadObservable.observe(t,{subtree:!0,childList:!0})}));var t=this.el.nativeElement.querySelector(this.TABLE_SCROLLABLE_WRAPPER_CLASS);if(t){var n=new MutationObserver((function(){e.synchronizeRowHeight()}));n.observe(t,{subtree:!0,childList:!0}),this.tableWrapperObserver=n}},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 o=t[n].getBoundingClientRect().height,i=e.getBoundingClientRect().height;Math.abs(o-i)>1&&(e.style.height=o+"px",e.innerHTML=null)}))},e.prototype.applyStylesForTable=function(){var e=this.el.nativeElement.querySelector(this.TABLE_SCROLLABLE_WRAPPER_CLASS);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=ge(this.el.nativeElement.getElementsByClassName("ui-table-scrollable-body")).map((function(e){return ge(e.childNodes).find((function(e){return"TABLE"===e.tagName}))}));this._resetRowHeight(e),this._applyMaxRowHeight(e);var t=ge(this.el.nativeElement.getElementsByClassName("ui-table-scrollable-header-box")).map((function(e){return ge(e.childNodes).find((function(e){return"TABLE"===e.tagName}))}));this._resetRowHeight(t),this._applyMaxRowHeight(t)},e.prototype._applyMaxRowHeight=function(e){var t,n,o,i;if(e&&e.length){var r=e.map((function(e){return e.rows.length}));if(r.reduce((function(e,t){return Math.max(e,t)}),r[0])!==r.reduce((function(e,t){return Math.min(e,t)}),r[0]))throw new Error("The number of rows in both tables must be the same");for(var a=e[0],s=0;s<a.rows.length;s++){var l=[];try{for(var c=(t=void 0,he(e)),p=c.next();!p.done;p=c.next()){var d=p.value;l.push(d.rows[s])}}catch(e){t={error:e}}finally{try{p&&!p.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}var u=l.reduce((function(e,t){return Math.max(e,t.getBoundingClientRect().height)}),l[0].getBoundingClientRect().height);try{for(var m=(o=void 0,he(l)),h=m.next();!h.done;h=m.next()){h.value.style.height=u+"px"}}catch(e){o={error:e}}finally{try{h&&!h.done&&(i=m.return)&&i.call(m)}finally{if(o)throw o.error}}}}},e.prototype._resetRowHeight=function(e){var t,n,o,i;try{for(var r=he(e),a=r.next();!a.done;a=r.next()){var s=a.value;try{for(var l=(o=void 0,he(s.rows)),c=l.next();!c.done;c=l.next()){c.value.style.height="unset"}}catch(e){o={error:e}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.ctorParameters=function(){return[{type:t.ElementRef},{type:R.Table}]},pe([t.Input()],e.prototype,"sTableFrozenPosition",void 0),pe([t.Input()],e.prototype,"sTableFrozenValue",null),e=pe([t.Directive({selector:"[sTableFrozenPosition]"})],e)}();(Ci=e.EnumColumnFieldType||(e.EnumColumnFieldType={})).STRING="STRING",Ci.NUMBER="NUMBER",Ci.BOOLEAN="BOOLEAN",Ci.DATE="DATE",Ci.CURRENCY="CURRENCY",Ci.ENUM="ENUM",Ci.LOOKUP="LOOKUP",Ci.LINK="LINK",Ci.TOKENS="TOKENS",(ki=e.EnumBadgeColors||(e.EnumBadgeColors={})).RED="red",ki.ORANGE="orange",ki.YELLOW="yellow",ki.GREEN="green",ki.BLUE="blue",ki.GRAY="gray";var Ri,Ai=d,Di=function(){function n(e,t,n,o,i){this.localeService=e,this.viewContainerRef=t,this.translate=n,this.numericService=o,this.hostProjectConfigs=i,this.locale={calendar:ce(ce({},this.localeService.getLocaleOptions().calendar),{dateFormat:Zn(this.localeService.getLocaleOptions().calendar.dateFormat)}),number:ce(ce({},this.localeService.getLocaleOptions().number),{scale:0})},this.cellsData=[],this.formattedColumns=[]}return n.prototype.ngOnChanges=function(e){this.validateComponentAttributes(e),e.columns&&e.columns.currentValue!==e.columns.previousValue&&(this.columns=this.sortColumnsBySequence(e.columns.currentValue)),this.createColumnsTemplate(e)},n.prototype.isArray=function(e){return Array.isArray(e)},n.prototype.getCellData=function(e){var t=e.columnValue,n=e.separator,o=e.uninformed;if("string"==typeof t){var i=t.split(n);return i.map((function(e,t){var r=i.length-1===t;return{value:e,isUninformed:e===o,separator:r?null:n}}))}return null},n.prototype.validateComponentAttributes=function(e){var t,n;if(!this.columns&&!(null===(t=e.columns)||void 0===t?void 0:t.currentValue))throw new Error("The 'columns' attribute must be informed!");if(!this.rowValue&&!(null===(n=e.rowValue)||void 0===n?void 0:n.currentValue))throw new Error("The 'rowValue' attribute must be informed!")},n.prototype.createColumnsTemplate=function(e){var t,n,o,i,r=this;this.viewContainerRef.clear();var a=(null===(t=e.columns)||void 0===t?void 0:t.currentValue)||this.columns,s=Le(null!==(o=null===(n=e.rowValue)||void 0===n?void 0:n.currentValue)&&void 0!==o?o:this.rowValue),l=(null===(i=e.locale)||void 0===i?void 0:i.currentValue)||this.locale;this.formattedColumns=a.map((function(e){return r.getColumnValue(e,s,l)})),this.cellsData=this.formattedColumns.map((function(e){return r.getCellData(e)})),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){var t;return null==e||(null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.numberFormatOptions)&&Se(null==e?void 0:e.value)||this.isArray(e)&&!e.length||"string"==typeof e&&""===e.trim()},n.prototype.getFormattedColumnValue=function(t,n,o,i,r){return r===t.attributes.length?i:t.type===e.EnumColumnFieldType.TOKENS?[].concat.apply([],n.filter((function(e){return e!==i}))):o},n.prototype.getAttributeValue=function(e,t){var n;return e.split("/").forEach((function(e){n||e.split(".").forEach((function(e,o){t&&(0===o?n=t[e]:n&&(n=n[e]))}))})),n},n.prototype.getNumberConfigs=function(e){return ce(ce({},this.locale.number),{scale:null!==e.scale&&void 0!==e.scale?this.getColumnScale(e.scale):this.locale.number.scale,prefix:this.locale.number.currencySymbol+" "})},n.prototype.getDateFormat=function(e,t){return e.dateFormat?e.dateFormat:t.calendar.dateFormat},n.prototype.getColumnValue=function(t,n,o){var i,r,a=this,s=this.getTranslationPrefix(t),c=this.getColumnSeparator(t),p=this.translate.instant(s+"empty_label"),d=t.style,u=t.attributes.map((function(i){var r,c,d=a.getAttributeValue(i,n);if(a.isAttributeValueInvalid(d))return p;var u=a.getNumberConfigs(t);switch(t.type){case e.EnumColumnFieldType.ENUM:return a.translate.instant(t.enumPrefix+d.toString().toLowerCase());case e.EnumColumnFieldType.CURRENCY:return(f=(null===(r=null==d?void 0:d.options)||void 0===r?void 0:r.numberFormatOptions)?d.options.numberFormatOptions:"function"==typeof t.numberFormatOptions?t.numberFormatOptions({rowData:n}):t.numberFormatOptions)?a.numericService.instant(d,{numberFormatOptions:f}):l.applyMask(d,u,a.isNumber(d));case e.EnumColumnFieldType.DATE:var m=a.getDateFormat(t,o);return Ai(d).format(m);case e.EnumColumnFieldType.BOOLEAN:var h=d?"yes":"no";return a.translate.instant(s+h);case e.EnumColumnFieldType.NUMBER:var f;return u.prefix="",(f=(null===(c=null==d?void 0:d.options)||void 0===c?void 0:c.numberFormatOptions)?d.options.numberFormatOptions:"function"==typeof t.numberFormatOptions?t.numberFormatOptions({rowData:n}):t.numberFormatOptions)?a.numericService.instant(d,{numberFormatOptions:f}):l.applyMask(d,u,a.isNumber(d));case e.EnumColumnFieldType.TOKENS:return a.getTokens(d);default:return d}})),m=u.join(c),h=m.split(c).filter((function(e){return e===p})).length;return{style:d,columnValue:this.getFormattedColumnValue(t,u,m,p,h),separator:c,uninformed:p,badgeConfigs:null===(i=null==t?void 0:t.badgeConfigs)||void 0===i?void 0:i.find((function(e){var o;return e.enumValue===n[null!==(o=t.attributes[0])&&void 0!==o?o:t.field]})),color:null===(r=t.color)||void 0===r?void 0:r.call(t,n),type:t.type,tooltip:this.getColumnTooltip(t.tooltip),infoSign:this.getColumnInfoSign(t.infoSign),onLinkClick:t.onLinkClick,onColumnClick:t.onColumnClick,compact:t.compact}},n.prototype.getColumnScale=function(e){return"function"==typeof e?e(Le(this.rowValue)):e},n.prototype.getColumnInfoSign=function(e){return null!=e?"function"==typeof e?e(Le(this.rowValue)):e:null},n.prototype.getColumnTooltip=function(e){return null!=e?"function"==typeof e?e(Le(this.rowValue)):e:""},n.prototype.isNumber=function(e){return!new ae(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.sortColumnsBySequence=function(e){return e.sort((function(e,t){return e.sequence-t.sequence}))},n.ctorParameters=function(){return[{type:Je},{type:t.ViewContainerRef},{type:b.TranslateService},{type:ut},{type:void 0,decorators:[{type:t.Inject,args:[sn]}]}]},pe([t.ViewChild("columnsTemplate",{static:!0})],n.prototype,"columnsTemplate",void 0),pe([t.Input()],n.prototype,"columns",void 0),pe([t.Input()],n.prototype,"rowValue",void 0),pe([t.Input()],n.prototype,"locale",void 0),pe([t.ViewChildren("column")],n.prototype,"testeElements",void 0),n=pe([t.Component({template:'<ng-template #columnsTemplate>\n <td\n *ngFor="let column of formattedColumns; let i = index"\n [ngStyle]="column.style"\n (click)="column.onColumnClick ? column.onColumnClick(rowValue) : null"\n >\n <div\n *ngIf="column.type !== \'TOKENS\' || !isArray(column.columnValue); else tokensTemplate"\n [ngClass]="{ \'compact-column\': column.compact }"\n >\n <span *ngIf="column.type !== \'LINK\'" [sTooltip]="column.tooltip" [escape]="false">\n <ng-container *ngTemplateOutlet="columnValueTemplate"></ng-container>\n </span>\n\n <ng-container *ngIf="column.type === \'LINK\'">\n <span *ngIf="cellsData[i][0].isUninformed; else anchorTemplate" class="sds-empty-value">{{ cellsData[i][0].value }}</span>\n\n <ng-template #anchorTemplate>\n <a [sTooltip]="column.tooltip" [escape]="false" (click)="column.onLinkClick ? column.onLinkClick(rowValue) : null">\n <ng-container *ngTemplateOutlet="columnValueTemplate"></ng-container>\n </a>\n </ng-template>\n </ng-container>\n\n <ng-template #columnValueTemplate>\n <ng-container *ngFor="let cellData of cellsData[i]">\n <span *ngIf="cellData.isUninformed; else isInformedTemplate" class="sds-empty-value">{{ cellData.value }}</span>\n\n <ng-template #isInformedTemplate>\n <s-badge\n *ngIf="column.badgeConfigs; else withoutBadgeTemplate"\n [sTooltip]="column.tooltip"\n [color]="column.badgeConfigs.color"\n [text]="cellData.value"\n ></s-badge>\n\n <ng-template #withoutBadgeTemplate>\n <span\n [ngClass]="{\n \'column-cell-red\': column.color === \'Red\',\n \'column-cell-orange\': column.color === \'Orange\',\n \'column-cell-yellow\': column.color === \'Yellow\',\n \'column-cell-green\': column.color === \'Green\',\n \'column-cell-blue\': column.color === \'Blue\'\n }"\n >{{ cellData.value }}</span\n >\n </ng-template>\n </ng-template>\n\n <span *ngIf="cellData.separator">{{ cellData.separator }}</span>\n </ng-container>\n\n <ng-container *ngIf="!!column.infoSign">\n <span *sInfoSign="column.infoSign"></span>\n </ng-container>\n </ng-template>\n </div>\n\n <ng-template #tokensTemplate>\n <s-token-list [tokens]="column.columnValue" [hidePointerEvents]="true"></s-token-list>\n\n <ng-container *ngIf="!!column.infoSign">\n <span *sInfoSign="column.infoSign"></span>\n </ng-container>\n </ng-template>\n </td>\n</ng-template>\n',selector:"s-table-columns",styles:[":host{display:none}.compact-column{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical;word-break:break-word}.column-cell-red{color:#c13018}.column-cell-orange{color:#f8931f}.column-cell-yellow{color:#fcbf10}.column-cell-green{color:#0c9348}.column-cell-blue{color:#428bca}"]}),de(4,t.Inject(sn))],n)}(),Pi=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.prototype.onTokenSelected=function(e){e.disabled||this.tokenSelected.next(e)},e.prototype.onTokenRemoved=function(e){e.disabled||this.tokenRemoved.next(e)},e.nextId=0,pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"tokens",void 0),pe([t.Input()],e.prototype,"removableTokens",void 0),pe([t.Input()],e.prototype,"hidePointerEvents",void 0),pe([t.Output()],e.prototype,"tokenSelected",void 0),pe([t.Output()],e.prototype,"tokenRemoved",void 0),e=n=pe([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]="{\n \'no-pointer-events\': hidePointerEvents,\n \'token--disabled\': token.disabled\n }">\n <a\n [id]="(token.id || \'token\') + \'-label\'"\n class="token-label"\n (click)="onTokenSelected(token)">\n {{ token.label }}\n </a>\n <span\n *ngIf="removableTokens && !token.notRemovable"\n [id]="token.id + \'-remove\'"\n class="fas fa-times"\n (click)="onTokenRemoved(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:#e5eaea;border:1px solid #697882;border-radius:4px;color:#333;display:-ms-flexbox;display:flex;font:400 12px/150% "Open Sans",sans-serif;gap:8px;margin:2px 5px 0 0;max-width:100%;padding:2px 8px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.token-list .token-label{max-width:50ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.token-list .token:not(.token--disabled):focus,.token-list .token:not(.token--disabled):hover{background-color:#ccc}.token-list .token a{text-decoration:none;color:#333}.token-list .token--disabled{opacity:50%}.token-list .token--disabled a{cursor:default}']})],e)}(),Vi=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[Pi],exports:[Pi]})],e)}(),Bi=function(){function e(e,t,n){this.translate=e,this.localeService=t,this.hostProjectConfigs=n,this.exportable=!0,this.enableExportSelectedRecords=!0}return e.prototype.ngOnChanges=function(e){var t;(null===(t=e.totalRecords)||void 0===t?void 0:t.currentValue)&&(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,t=this,n=[{id:"exportCurrentPage",label:this.translate.instant(this.getTranslatePrefix()+"export_current_page"),command:function(){return t.exportCurrentPage()}}];if(this.enableExportSelectedRecords&&n.push({id:"exportSelected",label:this.translate.instant(this.getTranslatePrefix()+"export_selected_records"),command:function(){return t.exportSelectedRecords()}}),this.loadAllRecords&&n.push({id:"exportAll",label:this.translate.instant(this.getTranslatePrefix()+"export_all_records"),command:function(){return t.exportAllRecords()}}),null===(e=this.customActions)||void 0===e?void 0:e.length){var o=this.customActions.map((function(e,t){return{id:"customAction_"+t,label:e.label,command:e.command}}));n.push.apply(n,ge(o))}return n},e.prototype.validateComponent=function(){if(!this.table)throw new Error("Table component not defined")},e.prototype.getColumnsToExport=function(){return ge(this.table.columns).map((function(e){var t,n=ce(ce({},e),{header:e.header,exportable:!0,field:e.field,separator:null!==(t=e.separator)&&void 0!==t?t:" - ",enumPrefix:e.enumPrefix,customExport:e.customExport});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){var t=Le(this.table.value);return this.loadCurrentPageRecords&&(t=this.loadCurrentPageRecords()),t=this.mapCustomExport(e,t),t=this.mapNumberFormatOptionsExport(e,t),this.mapColumnsTranslations(e,t)},e.prototype.getSelectedRowsToExport=function(e){var t=Le(this.table.selection);return this.loadSelectedRecords&&(t=this.loadSelectedRecords()),t=this.mapCustomExport(e,t),t=this.mapNumberFormatOptionsExport(e,t),this.mapColumnsTranslations(e,t)},e.prototype.getPropertyValue=function(e,t){return t.split(".").reduce((function(e,t){return void 0===e[t]?void 0:e[t]}),e)},e.prototype.setPropertyValue=function(e,t,n){this.recursionSetValue(e,t.split("."),n)},e.prototype.recursionSetValue=function(e,t,n){var o=t[0];return 1===t.length?(e[o]=n,e):(e[o]=this.recursionSetValue((null==e?void 0:e[o])||{},t.slice(1),n),e)},e.prototype.mapColumnsTranslations=function(e,t){var n=this,o=e.filter((function(e){return e.enumPrefix}));return o.length?ge(t).map((function(e){var t=ce({},e);return o.forEach((function(o){(Array.isArray(o.field)?o.field:[o.field]).forEach((function(i){var r=n.getPropertyValue(e,i);if(null!=r){var a=n.translateValue(o,r);n.setPropertyValue(t,i,a)}}))})),t})):t},e.prototype.mapNumberFormatOptionsExport=function(e,t){var n=this,o=e.some((function(e){return e.numberFormatOptions})),i=t.some((function(e){return Object.keys(e).some((function(t){var n,o;return null===(o=null===(n=e[t])||void 0===n?void 0:n.options)||void 0===o?void 0:o.numberFormatOptions}))}));return o||i?(o&&(t=t.map((function(t){var o,i,r,a,s,l=e.filter((function(e){return e.numberFormatOptions}));try{for(var c=he(l),p=c.next();!p.done;p=c.next()){var d=p.value,u=d.attributes,m="function"==typeof d.numberFormatOptions?d.numberFormatOptions({rowData:t}):d.numberFormatOptions;try{for(var h=(r=void 0,he(u)),f=h.next();!f.done;f=h.next()){var g=f.value;if(!Se(t[g])&&!(null===(s=t[g].options)||void 0===s?void 0:s.numberFormatOptions)){var v=t[g],b="percent"===m.style?new ae(v).times(100):new ae(v),y=new Intl.NumberFormat(n.localeService.getLocaleOptions().locale,ce(ce({},m),{style:"decimal",useGrouping:!1,roundingMode:"trunc"}));t[g]=y.format(b.toNumber())}}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=h.return)&&a.call(h)}finally{if(r)throw r.error}}}}catch(e){o={error:e}}finally{try{p&&!p.done&&(i=c.return)&&i.call(c)}finally{if(o)throw o.error}}return t}))),i&&(t=t.map((function(e){var t,o,i=Object.keys(e).filter((function(t){var n,o;return null===(o=null===(n=e[t])||void 0===n?void 0:n.options)||void 0===o?void 0:o.numberFormatOptions}));try{for(var r=he(i),a=r.next();!a.done;a=r.next()){var s=a.value,l=e[s].value,c=e[s].options.numberFormatOptions,p="percent"===c.style?new ae(l).times(100):new ae(l),d=new Intl.NumberFormat(n.localeService.getLocaleOptions().locale,ce(ce({},c),{style:"decimal",useGrouping:!1,roundingMode:"trunc"}));e[s]=d.format(p.toNumber())}}catch(e){t={error:e}}finally{try{a&&!a.done&&(o=r.return)&&o.call(r)}finally{if(t)throw t.error}}return e}))),t):t},e.prototype.mapCustomExport=function(e,t){var n=this,o=e.filter((function(e){return e.customExport}));return o.length?ge(t).map((function(e){var t=ce({},e);return o.forEach((function(o){(Array.isArray(o.field)?o.field:[o.field]).forEach((function(i){var r=n.getPropertyValue(e,i);if(null!=r){var a=o.customExport(r);n.setPropertyValue(t,i,a)}}))})),t})):t},e.prototype.translateValue=function(e,t){var n=t.toString().toLowerCase(),o=e.enumPrefix+n,i=this.translate.instant(o);if(o===i&&n.length>1&&(o=""+e.enumPrefix+n.substring(0,1)+"_"+n.substr(1),i=this.translate.instant(o)),o===i){var r=this.convertToSnakeCase(t.toString());o=""+e.enumPrefix+r,i=this.translate.instant(o)}return i},e.prototype.convertToSnakeCase=function(e){return e.replace(/([A-Z])/g,(function(e,t){return"_"+t.toLowerCase()})).replace(/^_/,"")},e.prototype.getExportFileName=function(){var e,t,n=null!==(e=this.translate.currentLang)&&void 0!==e?e:"pt-BR",o=new Date;return(null!==(t=this.exportFileName)&&void 0!==t?t:"download")+"_"+o.toLocaleDateString(n).replace("_","-")+"_"+o.toLocaleTimeString(n).replace(" ","-")},e.prototype.exportCurrentPage=function(){this.validateComponent();var e=this.getColumnsToExport(),t=this.getCurrentPageRowsToExport(e);Kn.exportCSV(e,t,void 0,this.getExportFileName())},e.prototype.exportSelectedRecords=function(){this.validateComponent();var e=this.getColumnsToExport(),t=this.getSelectedRowsToExport(e);Kn.exportCSV(e,t,void 0,this.getExportFileName())},e.prototype.exportAllRecords=function(){return ue(this,void 0,void 0,(function(){var e,t,n;return me(this,(function(o){switch(o.label){case 0:return this.validateComponent(),[4,this.loadAllRecords()];case 1:return e=o.sent(),t=this.getColumnsToExport(),e=this.mapCustomExport(t,e),e=this.mapNumberFormatOptionsExport(t,e),n=this.mapColumnsTranslations(t,e),Kn.exportCSV(t,n,void 0,this.getExportFileName()),[2]}}))}))},e.ctorParameters=function(){return[{type:b.TranslateService},{type:Je},{type:void 0,decorators:[{type:t.Inject,args:[sn]}]}]},pe([t.Input()],e.prototype,"totalRecords",void 0),pe([t.Input()],e.prototype,"exportFileName",void 0),pe([t.Input()],e.prototype,"table",void 0),pe([t.Input()],e.prototype,"exportable",void 0),pe([t.Input()],e.prototype,"enableExportSelectedRecords",void 0),pe([t.Input()],e.prototype,"customActions",void 0),pe([t.Input()],e.prototype,"loadAllRecords",void 0),pe([t.Input()],e.prototype,"loadCurrentPageRecords",void 0),pe([t.Input()],e.prototype,"loadSelectedRecords",void 0),pe([t.Output()],e.prototype,"totalRecordsText",void 0),e=pe([t.Component({template:'<div class="paging-container">\n <span class="total-records">\n {{totalRecordsText}}\n </span>\n <s-button\n *ngIf="exportable"\n 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()">\n </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}"]}),de(2,t.Inject(sn))],e)}(),Ni=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Ae,Vi,b.TranslateModule,Ot,He,$e],exports:[Fi,Li,Di,Oi,Bi],declarations:[Fi,Li,Di,Oi,Bi]})],e)}(),zi=function(){function e(e,t){this.changeDetectorRef=e,this.elementRef=t}return e.prototype.ngAfterViewInit=function(){this.setInputRef(),this.changeDetectorRef.detectChanges()},e.prototype.setInputRef=function(){this.inputRef=this.elementRef.nativeElement.querySelector("input")},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef}]},pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formControl",void 0),e=pe([t.Component({template:'<s-field-label *ngIf="inputRef" [field]="field"\n [fieldContainerRef]="inputRef"></s-field-label>\n \n<div\n [sTooltip]="field.tooltip"\n tooltipPosition="top"\n [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 </s-lookup>\n</div>\n'})],e)}(),Ui=function(){function e(){}return e.prototype.onClear=function(){this.formControl.reset()},pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formControl",void 0),e=pe([t.Component({template:'<s-field-label [field]="field"></s-field-label>\n\n<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)}(),ji=function(){function e(){}return pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formControl",void 0),e=pe([t.Component({template:'<s-field-label [field]="field"></s-field-label>\n\n<div class="ui-grid ui-grid-responsive ui-grid-pad ui-fluid">\n <div class="ui-grid-row">\n <div class="i-grid-col-1">\n <s-switch\n [id]="(field.id || field.name)"\n [inputName]="field.name"\n [formControl]="formControl"\n [sTooltip]="field.tooltip"\n tooltipPosition="top"\n (valueChanged)="field.onChange ? field.onChange($event) : null">\n </s-switch>\n </div>\n <div class="i-grid-col-1" *ngIf="field.optionsLabel">\n <ng-container *ngIf="formControl.value; else caseFalse">\n <span>{{ field.optionsLabel.true }}</span>\n </ng-container>\n <ng-template #caseFalse>\n <span>{{ field.optionsLabel.false }}</span>\n </ng-template>\n </div>\n </div>\n</div>'})],e)}(),Hi=function(){function e(e,t,n){this.translateService=e,this.changeDetectorRef=t,this.elementRef=n,this.locale={firstDayOfWeek:0,dayNames:[this.translateService.instant("platform.angular_components.sunday"),this.translateService.instant("platform.angular_components.monday"),this.translateService.instant("platform.angular_components.tuesday"),this.translateService.instant("platform.angular_components.wednesday"),this.translateService.instant("platform.angular_components.thursday"),this.translateService.instant("platform.angular_components.friday"),this.translateService.instant("platform.angular_components.saturday")],dayNamesShort:[this.translateService.instant("platform.angular_components.sunday_short"),this.translateService.instant("platform.angular_components.monday_short"),this.translateService.instant("platform.angular_components.tuesday_short"),this.translateService.instant("platform.angular_components.wednesday_short"),this.translateService.instant("platform.angular_components.thursday_short"),this.translateService.instant("platform.angular_components.friday_short"),this.translateService.instant("platform.angular_components.saturday_short")],dayNamesMin:[this.translateService.instant("platform.angular_components.sunday_min"),this.translateService.instant("platform.angular_components.monday_min"),this.translateService.instant("platform.angular_components.tuesday_min"),this.translateService.instant("platform.angular_components.wednesday_min"),this.translateService.instant("platform.angular_components.thursday_min"),this.translateService.instant("platform.angular_components.friday_min"),this.translateService.instant("platform.angular_components.saturday_min")],monthNames:[this.translateService.instant("platform.angular_components.january"),this.translateService.instant("platform.angular_components.february"),this.translateService.instant("platform.angular_components.march"),this.translateService.instant("platform.angular_components.april"),this.translateService.instant("platform.angular_components.may"),this.translateService.instant("platform.angular_components.june"),this.translateService.instant("platform.angular_components.july"),this.translateService.instant("platform.angular_components.august"),this.translateService.instant("platform.angular_components.september"),this.translateService.instant("platform.angular_components.october"),this.translateService.instant("platform.angular_components.november"),this.translateService.instant("platform.angular_components.december")],monthNamesShort:[this.translateService.instant("platform.angular_components.january_short"),this.translateService.instant("platform.angular_components.february_short"),this.translateService.instant("platform.angular_components.march_short"),this.translateService.instant("platform.angular_components.april_short"),this.translateService.instant("platform.angular_components.may_short"),this.translateService.instant("platform.angular_components.june_short"),this.translateService.instant("platform.angular_components.july_short"),this.translateService.instant("platform.angular_components.august_short"),this.translateService.instant("platform.angular_components.september_short"),this.translateService.instant("platform.angular_components.october_short"),this.translateService.instant("platform.angular_components.november_short"),this.translateService.instant("platform.angular_components.december_short")],today:this.translateService.instant("platform.angular_components.today"),clear:this.translateService.instant("platform.angular_components.clear"),dateFormat:this.translateService.instant("platform.angular_components.date_format"),hourFormat:this.translateService.instant("platform.angular_components.hour_format")}}return e.prototype.ngAfterViewInit=function(){this.setInputRef(),this.changeDetectorRef.detectChanges()},e.prototype.setInputRef=function(){this.inputRef=this.elementRef.nativeElement.querySelector("input")},e.ctorParameters=function(){return[{type:b.TranslateService},{type:t.ChangeDetectorRef},{type:t.ElementRef}]},pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formControl",void 0),pe([t.Input()],e.prototype,"showTime",void 0),pe([t.Input()],e.prototype,"timeOnly",void 0),pe([t.ViewChild("calendar")],e.prototype,"calendar",void 0),e=pe([t.Component({template:'<s-field-label\n *ngIf="inputRef"\n [field]="field"\n [fieldContainerRef]="inputRef">\n</s-field-label>\n\n<div [sTooltip]="field.tooltip" tooltipPosition="top" [showDelay]="500">\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 \x3c!-- A diretiva sCalendarMask não está suportando seleção múltipla. A forma como ela foi escrita não permite identificar a quantidade de datas\n que estão sendo selecionadas. Removi o uso dela quando está com selectionMode=multiple. Analisar a removeção completa desta diretiva. --\x3e\n <p-calendar\n *ngIf="field.selectionMode !== \'multiple\'; else multiple"\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]="timeOnly ? \'fa fa-clock\' : \'fa fa-calendar\'"\n [minDate]="field.minDate"\n [maxDate]="field.maxDate"\n [defaultDate]="field.defaultDate"\n [locale]="field.calendarLocaleOptions || locale"\n [dateFormat]="field.calendarLocaleOptions?.dateFormat || \'platform.angular_components.date_format\' | translate"\n [hourFormat]="field.calendarLocaleOptions?.hourFormat || \'platform.angular_components.hour_format\' | translate"\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\n \x3c!-- A única diferença deste bloco é a remoção da diretiva sCalendarMask. --\x3e\n <ng-template #multiple>\n <p-calendar\n #calendar\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]="timeOnly ? \'fa fa-clock\' : \'fa fa-calendar\'"\n [minDate]="field.minDate"\n [maxDate]="field.maxDate"\n [defaultDate]="field.defaultDate"\n [locale]="field.calendarLocaleOptions || locale"\n [dateFormat]="field.calendarLocaleOptions?.dateFormat || \'platform.angular_components.date_format\' | translate"\n [hourFormat]="field.calendarLocaleOptions?.hourFormat || \'platform.angular_components.hour_format\' | translate"\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 </ng-template>\n</div>\n'})],e)}(),$i=function(){function e(e,t,n){this.clipboard=e,this.changeDetectorRef=t,this.elementRef=n,this.feedbackMessageVisible=!1,this.copyButtonVisible=!0}return e.prototype.onCopyFieldContent=function(){var e=this;if(this.formControl.value){this.copyButtonVisible=!1,this.feedbackMessageVisible=!0,setTimeout((function(){e.feedbackMessageVisible=!1,e.copyButtonVisible=!0}),3e3);var t=this.formControl.value.join(this.field.separator||"\n");this.clipboard.copy(t),this.field.onCopy&&this.field.onCopy(t)}},e.prototype.ngAfterViewInit=function(){this.setInputRef(),this.changeDetectorRef.detectChanges()},e.prototype.setInputRef=function(){this.inputRef=this.elementRef.nativeElement.querySelector("input")},e.ctorParameters=function(){return[{type:Z.Clipboard},{type:t.ChangeDetectorRef},{type:t.ElementRef}]},pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formControl",void 0),e=pe([t.Component({template:'<s-field-label *ngIf="inputRef" [field]="field"\n [fieldContainerRef]="inputRef"></s-field-label>\n \n<div class="chips-field-wrapper">\n <div style="width: 100%;">\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 [pKeyFilter]="field.keyFilter">\n <ng-template let-item pTemplate="item">\n <span\n class="chip-content"\n [sTooltip]="item">\n {{ item }}\n </span>\n </ng-template>\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 <ng-template let-item pTemplate="item">\n <span\n class="chip-content"\n [sTooltip]="item">\n {{ item }}\n </span>\n </ng-template>\n </p-chips>\n </div>\n \n <button\n *ngIf="field.showCopyButton && formControl.value?.length > 0 && copyButtonVisible"\n class="copy-content-button"\n (click)="onCopyFieldContent()">\n {{ "platform.angular_components.copy_field_content" | translate }}\n </button>\n \n <span\n *ngIf="feedbackMessageVisible"\n class="feedback-message">\n {{ "platform.angular_components.copied_to_clipboard" | translate }}\n </span>\n</div>\n',styles:[".chips-field-wrapper{-ms-flex-align:start;align-items:flex-start;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.chips-field-wrapper .chip-content{display:block;overflow:hidden;padding-right:1rem;text-overflow:ellipsis}.chips-field-wrapper .copy-content-button{background-color:transparent;border:none;color:#2a6496;cursor:pointer;margin-top:8px}.chips-field-wrapper .feedback-message{color:#0c9348;display:block;margin-top:8px;-webkit-user-select:none;-ms-user-select:none;user-select:none}"]})],e)}(),Gi=function(){function e(e,t){this.changeDetectorRef=e,this.elementRef=t}return e.prototype.ngAfterViewInit=function(){this.setInputRef(),this.changeDetectorRef.detectChanges()},e.prototype.setInputRef=function(){this.inputRef=this.elementRef.nativeElement.querySelector("input")},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef}]},pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formControl",void 0),e=pe([t.Component({template:'<s-field-label *ngIf="inputRef" [field]="field"\n [fieldContainerRef]="inputRef"></s-field-label>\n\n<s-country-phone-picker\n [formControl]="formControl"\n [ordination]="field.ordination"\n [countries]="field.countries"\n (selected)="field.onSelected"\n (focusLost)="field.onFocusLost">\n</s-country-phone-picker>'})],e)}(),qi=function(e){function n(t,n){var o=e.call(this)||this;return o.changeDetectorRef=t,o.elementRef=n,o}return le(n,e),n.prototype.onClick=function(){this.dispatchFocusInputRef(),this.addEventOnBlur()},n.prototype.ngAfterViewInit=function(){this.setInputRef(),this.changeDetectorRef.detectChanges()},n.prototype.addEventOnBlur=function(){var e=this;o.fromEvent(document,"click").pipe(i.filter((function(t){return!e.elementRef.nativeElement.contains(t.target)})),i.take(1)).subscribe((function(){return e.inputRef.dispatchEvent(new Event("blur"))}))},n.prototype.setInputRef=function(){this.inputRef=this.elementRef.nativeElement.querySelector("input")},n.prototype.dispatchFocusInputRef=function(){this.inputRef.dispatchEvent(new Event("focus"))},n.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:t.ElementRef}]},pe([t.Input()],n.prototype,"field",void 0),pe([t.Input()],n.prototype,"formControl",void 0),pe([t.HostListener("click")],n.prototype,"onClick",null),n=pe([t.Component({template:'<s-field-label *ngIf="inputRef" [field]="field"\n [fieldContainerRef]="inputRef"></s-field-label>\n \n<s-file-upload\n [id]="(field.id || field.name)"\n [accept]="field.accept"\n [files]="field.files"\n [multiple]="field.multiple"\n [chooseLabel]="field.chooseLabel"\n [removeLabel]="field.removeLabel"\n [cancelLabel]="field.cancelLabel"\n [successTooltip]="field.successTooltip"\n (uploadHandler)="field.onUploadFile($event, field)"\n (removeFile)="field.onRemoveFile($event, field)"\n (cancelUpload)="field.onCancelUpload($event, field)"\n (downloadFile)="field.onDownloadFile($event, field)"\n [formGroup]="formControl"\n [showFileUploadDate]="field.showFileUploadDate"> \n</s-file-upload>\n'})],n)}(Qn),Wi=function(){function e(){}return pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formControl",void 0),e=pe([t.Component({template:'<s-field-label [field]="field"></s-field-label>\n\n<div [sTooltip]="field.tooltip" tooltipPosition="top" [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 [showSearch]="field.showSearch"\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 [emptyFieldLabel]="field.emptyFieldLabel"\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 [defaultFilter]="field.defaultFilter"\n [autocompleteForceSelection]="field.autocompleteForceSelection"\n [showAddOption]="field.showAddOption"\n [showEditOption]="field.showEditOption"\n [showRemoveOption]="field.showRemoveOption"\n [sortableColumnsDisabled]="field.sortableColumnsDisabled"\n (onAdd)="field.onAdd()"\n (onEdit)="field.onEdit($event)"\n (onRemove)="field.onRemove($event)"\n (onClearButtonClick)="field.onClearButtonClick ? field.onClearButtonClick() : null"\n >\n </s-lookup>\n</div>\n'})],e)}(),Yi=function(){function e(){this.onClick=new t.EventEmitter,this.onFocus=new t.EventEmitter,this.ngUnsubscribe=new o.Subject}return e.prototype.ngOnInit=function(){var e=this;this.onFocus.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onFocus&&e.field.onFocus(t)})),this.onClick.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onClick&&e.field.onClick(t)}))},e.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},e.prototype.onClear=function(){this.formControl.reset()},pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formControl",void 0),pe([t.Output()],e.prototype,"onClick",void 0),pe([t.Output()],e.prototype,"onFocus",void 0),e=pe([t.Component({template:'<s-field-label [field]="field"></s-field-label>\n\n<ng-container *ngIf="field.verticalAlignment;else horizontalAlignment">\n <div class="ui-g">\n <div\n *ngFor="let option of field.options; let i = index"\n class="ui-g-12">\n <ng-container\n [ngTemplateOutlet]="radioButton"\n [ngTemplateOutletContext]="{option: option, index: i}">\n </ng-container>\n </div>\n <s-button\n *ngIf="field.showClear && !field.required() && !formControl.disabled"\n [label]="field.clearLabel || \'Clear selection\'"\n (onClick)="onClear()"\n priority="link">\n </s-button>\n </div>\n</ng-container>\n\n<ng-template #horizontalAlignment>\n <div class="ui-g horizontal-radio-buttons-container">\n <ng-container\n *ngFor="let option of field.options; let i = index"\n [ngTemplateOutlet]="radioButton"\n [ngTemplateOutletContext]="{option: option, index: i}">\n </ng-container>\n </div>\n <s-button\n *ngIf="field.showClear && !field.required() && !formControl.disabled"\n class="horizontal-clear-option"\n [label]="field.clearLabel || \'Clear selection\'"\n (onClick)="onClear()"\n priority="link">\n </s-button>\n</ng-template>\n\n<ng-template #radioButton let-option="option" let-i="index">\n <p-radioButton\n class="radio-button-item"\n [name]="field.name"\n [value]="option.value"\n [label]="option.label"\n [formControl]="formControl"\n [inputId]="(field.id || field.name) + \'-\' + i"\n [sTooltip]="field.tooltip"\n (onClick)="onClick.next($event)"\n (onFocus)="onFocus.next($event)"\n (onBlur)="field.onBlur ? field.onBlur($event) : null">\n </p-radioButton>\n</ng-template>\n',encapsulation:t.ViewEncapsulation.None,styles:["\n s-button.horizontal-clear-option button {\n width: min-content !important;\n }\n\n .horizontal-radio-buttons-container {\n gap: 20px 40px;\n .radio-button-item {\n margin: 0;\n }\n }\n "]})],e)}(),Ki=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return le(n,e),pe([t.Input()],n.prototype,"field",void 0),pe([t.Input()],n.prototype,"formControl",void 0),n=pe([t.Component({template:'<s-field-label [field]="field"></s-field-label>\n\n<p-dropdown\n *ngIf="!field.multiple"\n [filter]="field.filter"\n [inputId]="(field.id || field.name)"\n [name]="field.name"\n [options]="isFunction(field.options) ? field.options() : field.options"\n [group]="field.group"\n [placeholder]="field.placeholder || \' \'"\n [formControl]="formControl"\n [sTooltip]="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 [editable]="field.editable"\n (onClick)="field.onClick ? field.onClick($event) : null"\n (onChange)="field.onChange ? field.onChange($event) : null">\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 [sTooltip]="field.tooltip"\n tooltipPosition="top"\n [emptyFilterMessage]="field.emptyMessage || \'platform.angular_components.no_records_found\' | translate"\n [showDelay]="500"\n [selectedItemsLabel]="field.multipleSelectedLabel || \'platform.angular_components.total_records_selected\' | translate"\n [appendTo]="field.appendTo || \'body\'"\n (onClick)="field.onClick ? field.onClick($event) : null"\n (onChange)="field.onChange ? field.onChange($event) : null">\n</p-multiSelect>\n\n'})],n)}(Qn),Zi=function(n){function r(){var e=null!==n&&n.apply(this,arguments)||this;return e.onChange=new t.EventEmitter,e.onSlideEnd=new t.EventEmitter,e.ngUnsubscribe=new o.Subject,e}return le(r,n),r.prototype.ngOnInit=function(){var e,t,n=(null===(e=this.field)||void 0===e?void 0:e.range)?[this.field.min,this.field.max]:this.field.min;this.isValid(this.formControl.value)||this.formControl.setValue(null!==(t=this.field.defaultValue)&&void 0!==t?t:n),this.subscribeToFormControlEvents()},r.prototype.subscribeToFormControlEvents=function(){var e=this;this.onChange.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onChange&&e.field.onChange(t)})),this.onSlideEnd.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onSlideEnd&&e.field.onSlideEnd(t)}))},r.prototype.isValid=function(e){var t;return(null===(t=this.field)||void 0===t?void 0:t.range)?Array.isArray(e)&&this.isValidRange(e):Number.isInteger(e)&&this.isValidNoRange(e)},r.prototype.isValidRange=function(e){var t,n,o,i,r=fe(e,2),a=r[0],s=r[1];return a>=(null===(t=this.field)||void 0===t?void 0:t.min)&&a<=(null===(n=this.field)||void 0===n?void 0:n.max)&&s>=(null===(o=this.field)||void 0===o?void 0:o.min)&&s<=(null===(i=this.field)||void 0===i?void 0:i.max)},r.prototype.isValidNoRange=function(e){return e>=this.field.min&&e<=this.field.max},r.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},Object.defineProperty(r.prototype,"fieldType",{get:function(){return e.FieldType},enumerable:!0,configurable:!0}),r.prototype.getRangeLabel=function(){var e,t,n,o,i=fe(null!==(e=this.formControl.value)&&void 0!==e?e:[0,0],2),r=i[0],a=i[1],s=null!==(t=this.field.prefix)&&void 0!==t?t:"",l=null!==(n=this.field.suffix)&&void 0!==n?n:"",c=null!==(o=this.field.rangeSeparator)&&void 0!==o?o:" - ";return(!r||r<this.field.min)&&(r=this.field.min),(!a||a>this.field.max)&&(a=this.field.max),""+s+r+l+c+s+a+l},r.prototype.getNonRangeLabel=function(){var e,t,n,o=null===(e=this.formControl)||void 0===e?void 0:e.value,i=null!==(t=this.field.prefix)&&void 0!==t?t:"",r=null!==(n=this.field.suffix)&&void 0!==n?n:"";return(!o||o<this.field.min)&&(o=this.field.min),o>this.field.max&&(o=this.field.max),""+i+o+r},Object.defineProperty(r.prototype,"label",{get:function(){return this.field.range?this.getRangeLabel():this.getNonRangeLabel()},enumerable:!0,configurable:!0}),pe([t.Input()],r.prototype,"field",void 0),pe([t.Input()],r.prototype,"formControl",void 0),pe([t.Output()],r.prototype,"onChange",void 0),pe([t.Output()],r.prototype,"onSlideEnd",void 0),r=pe([t.Component({template:'<s-field-label [field]="field"></s-field-label>\n\n<ng-container>\n <div class="slider-group">\n <div class="slider-label">\n <span>{{label}}</span>\n </div>\n <p-slider \n [id]="(field.id || field.name)"\n [formControl]="formControl"\n [range]="field.range"\n [orientation]="field.orientation"\n [min]="field.min" \n [max]="field.max"\n [step]="field.step"\n [animate]="field.animate" \n (onChange)="field.onChange ? field.onChange($event) : null"\n (onSlideEnd)="field.onSlideEnd ? field.onSlideEnd($event) : null">\n </p-slider>\n </div>\n</ng-container>',styles:[".slider-label{margin-bottom:5px;margin-left:-10px}.slider-group{margin-left:9px;margin-right:11px}"]})],r)}(Qn),Xi=function(){function e(e,t,n,i){this.localeService=e,this.ngZone=t,this.toastService=n,this.translateService=i,this.hasSupportSpeechRecognition=!1,this.isListening=!1,this.microphoneStatus$=new o.Subject,this.TIMEOUT_NO_MESSAGE=3e3,this.setRecognition()}return e.prototype.listen=function(){var e=this,t=new o.Subject;return this.isListening&&t.error("Already listening"),this.hasMicrophoneAccess.then((function(n){if(!n)return e.toastService.show({severity:"error",text:e.translateService.instant("platform.angular_components.no_microphone_permission")}),void t.error("Microphone access is disabled");var o;e.microphoneStatus$.next("active"),e.isListening=!0,e.recognition.continuous=!0,e.recognition.interimResults=!0,e.recognition.maxAlternatives=1;var i="";e.recognition.onresult=function(n){e.ngZone.run((function(){void 0!==o&&clearTimeout(o),o=setTimeout((function(){e.recognition.stop()}),e.TIMEOUT_NO_MESSAGE);for(var r="",a=n.resultIndex;a<n.results.length;++a){var s=n.results[a][0].transcript;n.results[a].isFinal?i+=s+"\n":r+=s}r=r,t.next({text:i+r,isFinal:!1})}))},e.recognition.onerror=function(){e.ngZone.run((function(){void 0!==o&&clearTimeout(o),e.isListening=!1,t.error("Speech recognition error"),e.microphoneStatus$.next("inactive")}))},e.recognition.onend=function(){e.ngZone.run((function(){void 0!==o&&clearTimeout(o),t.next({text:i+"",isFinal:!0}),e.isListening=!1,t.complete(),e.microphoneStatus$.next("inactive")}))},e.recognition.start()})),t},e.prototype.stop=function(){this.recognition.stop()},e.prototype.setRecognition=function(){var e,t=this,n=window.SpeechRecognition||window.webkitSpeechRecognition;n?(this.hasSupportSpeechRecognition=!0,this.recognition=new n,this.recognition.lang=(null===(e=this.localeService.getLocaleOptions())||void 0===e?void 0:e.locale)||"pt-BR",this.recognition.interimResults=!1,this.recognition.maxAlternatives=1,this.localeService.getLocale().subscribe((function(e){return t.recognition.lang=e}))):console.warn("Speech recognition is not supported in this browser.")},Object.defineProperty(e.prototype,"hasMicrophoneAccess",{get:function(){var e=this;return new Promise((function(t){return ue(e,void 0,void 0,(function(){var e,n=this;return me(this,(function(o){switch(o.label){case 0:return[4,navigator.permissions.query({name:"microphone"})];case 1:if("denied"===(e=o.sent()).state)t(!1);else if("granted"===e.state)t(!0);else if("prompt"===e.state)try{navigator.mediaDevices.getUserMedia({audio:!0}).then((function(e){e.getTracks().forEach((function(e){return e.stop()}))})).catch((function(){t(!1)})),e.onchange=function(){n.ngZone.run((function(){t("granted"===e.state)}))}}catch(e){t(!1)}return[2]}}))}))}))},enumerable:!0,configurable:!0}),e.ctorParameters=function(){return[{type:Je},{type:t.NgZone},{type:Zo},{type:b.TranslateService}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](Je),t["ɵɵinject"](t.NgZone),t["ɵɵinject"](Zo),t["ɵɵinject"](b.TranslateService))},token:e,providedIn:"root"}),e=pe([t.Injectable({providedIn:"root"})],e)}(),Ji=function(){function n(e,t,n,o){this._iassistService=e,this._formBuilder=t,this._translateService=n,this.speechRecognitionService=o,this.isVisible=!1,this.isLoading=!1}return n.prototype.ngOnInit=function(){this._createDialogFields(),this._createDialogFormGroup()},n.prototype.showDialog=function(){this.isVisible=!0},n.prototype.onHideDialog=function(){this.formGroup.get("context").setValue("")},n.prototype.hideDialog=function(){this.isVisible=!1},n.prototype.submitContext=function(){var e=this,t=this.formGroup.get("context");this.isLoading=!0,this._iassistService.askIA(t.value,{id:this.field.id,label:this.field.label,placeholder:this.field.placeholder,prompt:this.field.prompt}).pipe(i.catchError((function(t){return e.isLoading=!1,o.throwError(t)}))).subscribe((function(t){e.formControl.setValue(t.text),e.isLoading=!1})),this.hideDialog()},n.prototype._createDialogFields=function(){var t,n;this.fields=[new Ro({name:"context",type:e.FieldType.Text,label:this._translateService.instant("platform.angular_components.context"),size:{sm:12,md:12,lg:12,xl:12},speechRecognition:null!==(t=this.field.speechRecognition)&&void 0!==t&&t,keepContext:null!==(n=this.field.keepContext)&&void 0!==n&&n,maxLength:this.field.maxLength})]},n.prototype._createDialogFormGroup=function(){this.formGroup=this._formBuilder.group({context:[""]})},n.ctorParameters=function(){return[{type:Xo},{type:a.FormBuilder},{type:b.TranslateService},{type:Xi}]},pe([t.Input()],n.prototype,"field",void 0),pe([t.Input()],n.prototype,"formControl",void 0),n=pe([t.Component({template:'<s-field-label [field]="field"\n *ngIf="textArea.renderTextArea"\n [fieldContainerRef]="textArea.textAreaElement?.nativeElement"></s-field-label>\n\n<s-loading-state\n [loading]="isLoading"\n [blockWindow]="true">\n</s-loading-state>\n\n<p-dialog\n [(visible)]="isVisible"\n [modal]="true"\n [style]="{ width: \'50vw\' }"\n [draggable]="false"\n [resizable]="false"\n (onHide)="onHideDialog()">\n <p-header>\n <div class="dialog-header">\n <span class="iassist-icon">\n <ng-container [ngTemplateOutlet]="iassistIcon"></ng-container>\n </span>\n IAssist - Content Generator\n </div>\n </p-header>\n <s-dynamic-form\n [fields]="fields"\n [form]="formGroup">\n </s-dynamic-form>\n <p-footer>\n <div class="footer-content">\n <s-button\n id="-submit-button"\n type="button"\n [label]="\'platform.angular_components.generate_text\' | translate"\n (onClick)="submitContext()"\n sTooltip="(ALT + SHIFT + S)"\n showDelay="500">\n </s-button>\n <s-button\n id="-cancel-button"\n type="button"\n priority="link"\n [label]="\'platform.angular_components.cancel\' | translate"\n (onClick)="hideDialog()"\n sTooltip="(ALT + SHIFT + C)"\n showDelay="500">\n </s-button>\n </div>\n </p-footer>\n</p-dialog>\n\n<div class="textarea-ia">\n <s-textarea\n #textArea\n [inputId]="(field.id || field.name)"\n [rows]="field.rows"\n [formControl]="formControl"\n [inputStyle]="field.style"\n [readOnly]="field.readonly ? field.readonly() : false"\n [speechRecognition]="field.speechRecognition"\n [placeholder]="field.placeholder"\n [keepContext]="field.keepContext"\n [speechRecognitionPlaceholder]="field.speechRecognitionPlaceholder"\n [maxLength]="field.maxLength"\n ></s-textarea>\n <button\n class="iassist-button"\n [class.speech-recognition]="field.speechRecognition && speechRecognitionService.hasSupportSpeechRecognition"\n (click)="showDialog()"\n sTooltip="IAssist - Content Generator">\n <ng-container [ngTemplateOutlet]="iassistIcon"></ng-container>\n </button>\n</div>\n\n<ng-template #iassistIcon>\n <svg style="width: 100%; height: 100%;" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M5.81451 18.1054L5.99593 17.6059L7.52166 13.4099L7.60877 13.1726L7.61277 13.1614L7.94285 12.2543L8.01159 12.0648L8.05394 11.949L5.2998 8.52426L5.02726 8.18379C5.00569 8.15821 4.9881 8.13104 4.97292 8.10226C4.90099 7.9632 4.85063 7.81294 4.82186 7.6531C4.73075 7.1344 4.90418 6.60771 5.28382 6.24326C5.29421 6.23447 5.3038 6.22567 5.31419 6.21688L5.47164 6.0914L9.3439 3.00238L9.5469 2.84094L9.57088 2.82096L10.4101 2.15041L11.8007 1.04188C11.2181 0.925188 10.6163 0.863647 10.0001 0.863647C4.95374 0.863647 0.863281 4.9541 0.863281 9.99963C0.863281 13.5346 2.87254 16.5989 5.80971 18.1182" fill="#0FA389"/>\n <path d="M14.099 1.83472L13.9495 2.24632L11.997 7.61074L11.9427 7.7594L11.9003 7.87369L14.7448 11.4103C14.7463 11.4127 14.7479 11.4143 14.7495 11.4167L14.9414 11.654C14.9541 11.67 14.9661 11.6868 14.9765 11.7044C15.0764 11.8698 15.1444 12.0505 15.1779 12.2431C15.273 12.7826 15.0812 13.3284 14.676 13.6897C14.656 13.7129 14.6345 13.7344 14.6105 13.7536L11.8563 15.9507L11.6789 16.0922L11.6022 16.1537L10.7406 16.8402V16.841L10.3937 17.1176L9.85747 17.5452L9.39951 17.9112L8.11035 18.9398C8.72016 19.0677 9.35155 19.1364 9.99973 19.1364C15.0461 19.1364 19.1365 15.046 19.1365 9.99964C19.1365 6.42789 17.0857 3.33727 14.099 1.83472Z" fill="#0FA389"/>\n <path d="M14.7287 12.3222C14.7047 12.1832 14.6551 12.0545 14.5864 11.941L14.3954 11.7036C14.3954 11.7036 14.3946 11.7028 14.3938 11.7028L11.3839 7.96005L10.5031 6.86511L10.4256 6.7676L9.03255 5.03487L8.83674 4.79191C8.79278 4.71678 8.75681 4.63446 8.73204 4.54814C8.72085 4.51058 8.71286 4.47222 8.70566 4.43465C8.68568 4.32196 8.68408 4.21007 8.69847 4.10217L8.62334 4.16291L8.44511 4.30438L5.75731 6.44871L5.60066 6.57339C5.34011 6.82275 5.20584 7.19279 5.27218 7.57482C5.29296 7.68751 5.32892 7.79541 5.37927 7.89292C5.37927 7.89292 5.37927 7.89292 5.38007 7.89371L5.6566 8.23818L8.57139 11.8627L8.63293 11.9394L9.53047 13.0559L9.59041 13.1303L9.98363 13.6186L11.0178 14.9046C11.0186 14.9054 11.0194 14.9069 11.0202 14.9077L11.1361 15.0516V15.0524C11.2184 15.1755 11.2768 15.317 11.3048 15.4728C11.3239 15.5807 11.3263 15.6878 11.3143 15.7925L11.3175 15.7965L11.3943 15.735L11.5717 15.5935L14.3266 13.3964L14.3218 13.3908C14.6335 13.1438 14.8022 12.7394 14.7287 12.3222Z" fill="#F3F3F5"/>\n <path d="M10.6822 15.0082C10.6814 15.0074 10.6806 15.0058 10.6806 15.005L10.5672 14.8643L10.3809 14.6325L10.3282 14.567L10.2211 14.4335L9.40028 13.4129L9.32835 13.3242L8.77289 12.6345L8.68098 12.5194L8.44121 12.2205L8.37168 12.4099L8.04159 13.317L8.0376 13.329L7.95128 13.5664L6.42475 17.7623L6.24333 18.2618L5.90605 19.1881L5.73262 19.6645C5.73182 19.6661 5.73102 19.6677 5.73102 19.6685C5.72863 19.6749 5.72703 19.6821 5.72543 19.6885C5.71584 19.7228 5.71424 19.758 5.72063 19.7948C5.74461 19.929 5.87329 20.0193 6.00836 19.9962C6.04112 19.9898 6.07229 19.9778 6.09867 19.9602C6.09867 19.9602 6.09947 19.9602 6.10027 19.9594L6.14103 19.9266L7.39422 18.9268L9.11496 17.5537L9.57292 17.1877L10.1092 16.7601L10.4561 16.4827L10.4537 16.4811C10.7582 16.2382 10.9236 15.8402 10.8509 15.4294C10.8237 15.2735 10.7654 15.1313 10.6822 15.0082Z" fill="#0C847B"/>\n <path d="M9.17644 4.56325C9.2124 4.68713 9.26915 4.80062 9.34268 4.90053C9.34348 4.90053 9.34428 4.90213 9.34428 4.90213L9.40342 4.97645C9.40502 4.97805 9.40582 4.97885 9.40662 4.98045L9.56806 5.17946L9.64878 5.28096L9.67915 5.31932L9.8414 5.51993L10.5559 6.40947L10.7054 6.59569L11.2169 7.23188L11.5142 7.60192L11.5693 7.45247L13.5202 2.08964L14.1596 0.332135C14.1596 0.330536 14.1604 0.328139 14.1612 0.32654C14.174 0.288177 14.1772 0.246617 14.17 0.205058C14.1468 0.0699879 14.0182 -0.0195258 13.8823 0.00365186C13.8407 0.0116442 13.8024 0.028428 13.7712 0.0540033L12.578 1.00589L12.498 1.06982L10.6958 2.50844L9.85658 3.17819L9.8326 3.19737L9.6296 3.35961L9.45297 3.50028C9.2116 3.73925 9.08692 4.08931 9.15006 4.44976C9.15726 4.48813 9.16525 4.52649 9.17644 4.56325Z" fill="#0C847B"/>\n </svg>\n</ng-template>\n',styles:[".footer-content{display:-ms-flexbox;display:flex;-ms-flex-positive:0;flex-grow:0}.textarea-ia{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;gap:8px}.textarea-ia s-textarea{width:100%}.iassist-button{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border:none;border-radius:50%;box-shadow:none;cursor:pointer;height:32px;width:32px}.dialog-header{display:-ms-flexbox;display:flex;gap:12px}.dialog-header .iassist-icon{display:block;height:24px;width:24px}.speech-recognition{margin-bottom:12.5px}"]})],n)}(),Qi=function(){function e(e){this.changeDetectorRef=e}return e.prototype.ngAfterViewInit=function(){this.changeDetectorRef.detectChanges()},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formControl",void 0),e=pe([t.Component({template:'<s-field-label *ngIf="textArea.textAreaElement" [field]="field"\n [fieldContainerRef]="textArea.textAreaElement?.nativeElement"></s-field-label>\n\n<s-textarea\n #textArea\n [inputId]="(field.id || field.name)"\n [rows]="field.rows"\n [formControl]="formControl"\n [inputStyle]="field.style"\n [readOnly]="field.readonly ? field.readonly() : false"\n [keyFilter]="field.keyFilter"\n [placeholder]="field.placeholder"\n [keepContext]="field.keepContext"\n [speechRecognitionPlaceholder]="field.speechRecognitionPlaceholder"\n [maxLength]="field.maxLength"\n [speechRecognition]="field.speechRecognition">\n</s-textarea>\n'})],e)}(),er=function(){function e(){}return pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"config",void 0),pe([t.Input()],e.prototype,"group",void 0),pe([t.Input()],e.prototype,"errorMessages",void 0),e=pe([t.Component({template:'\n <s-fieldset [toggleable]="true" (beforeToggle)="config.beforeToggle ? config.beforeToggle($event) : \'null\'"\n (afterToggle)="config.afterToggle ? config.afterToggle($event) : \'null\'">\n <s-header>{{config.header}}</s-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 </s-fieldset>\n '})],e)}(),tr=function(){function e(){}return Object.defineProperty(e.prototype,"flexContainer",{get:function(){return this.config.isFlex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"configs",{get:function(){var e;return((null===(e=this.config)||void 0===e?void 0:e.configs)||[]).filter((function(e){return void 0===e.visible||e.visible()}))},enumerable:!0,configurable:!0}),pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"config",void 0),pe([t.Input()],e.prototype,"group",void 0),pe([t.Input()],e.prototype,"errorMessages",void 0),e=pe([t.Component({selector:"s-section",template:'\n <h3 *ngIf="config?.header" class="sds-section-title">{{config.header}}</h3>\n <section [class.flex-container]="flexContainer" [style.justify-content]="config.justifyContent" [style.align-items]="config.alignItems">\n <ng-container *ngFor="let conf of configs">\n <ng-container *sDynamicForm="{ id: id, config: conf, group: group, errorMessages: errorMessages }"></ng-container>\n </ng-container>\n </section>\n ',styles:["\n .flex-container {\n display: flex\n }\n\n :host {\n height: 100%\n }\n\n section {\n height: 100%;\n }\n "]})],e)}(),nr=function(){function n(){this.FieldType=e.FieldType}return n.prototype.getErrorMessages=function(e){return e?this.isFunction(e)?e():e:this.errorMessages},n.prototype.isFunction=function(e){return e instanceof Function},pe([t.Input()],n.prototype,"id",void 0),pe([t.Input()],n.prototype,"config",void 0),pe([t.Input()],n.prototype,"group",void 0),pe([t.Input()],n.prototype,"errorMessages",void 0),n=pe([t.Component({selector:"s-row",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 <ng-container *ngIf="field.type === FieldType.Custom && field.label" >\n <label *sInfoSign="field.infoSign; displayTime: field.displayTimeInfoSign; useFocusedInputRef: field.useInfoSignFocusedInputRef" [for]="field.name" [ngClass]="{ required: field.required() }" >\n {{ field.label }}\n </label>\n </ng-container>\n\n <ng-container *sDynamicForm="{ id: id, config: field, group: group}"></ng-container>\n\n <s-control-errors [form]="group" [control]="group.controls[field.name]"\n [errorMessages]="getErrorMessages(field.errorMessages)"></s-control-errors>\n\n <ng-container *ngIf="field.footer">\n <ng-container *ngIf="field.footer.help">\n <span *ngIf="field.footer.help.visible({ abstractControl: group.controls[field.name], formField: field })" style="color: #888B99">{{ field.footer.help.text }}</span>\n </ng-container>\n\n <ng-container *ngIf="field.footer.link">\n <div\n *ngIf="field.footer.link.visible({ abstractControl: group.controls[field.name], formField: field })"\n class="ui-g"\n style="margin-left: -17px"\n >\n <s-button\n [label]="field.footer.link.label"\n priority="link"\n (onClick)="field.footer.link.onClick({ abstractControl: group.controls[field.name], formField: field })"\n [auxiliary]="true"\n ></s-button>\n </div>\n </ng-container>\n </ng-container>\n\n <ng-template *ngIf="field?.bottomTemplate" [ngTemplateOutlet]="field.bottomTemplate"></ng-template>\n </div>\n </ng-container>\n </div>\n '})],n)}(),or=function(){function n(){this.FieldType=e.FieldType}return n.prototype.getErrorMessages=function(e){return e?this.isFunction(e)?ce(ce({},this.errorMessages),e()):ce(ce({},this.errorMessages),e):this.errorMessages},n.prototype.isFunction=function(e){return e instanceof Function},pe([t.Input()],n.prototype,"id",void 0),pe([t.Input()],n.prototype,"fields",void 0),pe([t.Input()],n.prototype,"form",void 0),pe([t.Input()],n.prototype,"errorMessages",void 0),n=pe([t.Component({selector:"s-dynamic-field",template:'<div class="ui-fluid" [formGroup]="form">\n <div class="ui-g">\n <ng-container *ngFor="let field of fields">\n <div\n *ngIf="!field.visible || field.visible()"\n [ngClass]="field.gridClass">\n <ng-container *ngIf="field.ignoreLabel ? false : field.label && field.type === FieldType.Custom">\n <label\n *sInfoSign="field.infoSign; displayTime: field.displayTimeInfoSign; useFocusedInputRef: field.useInfoSignFocusedInputRef"\n [for]="field.name"\n [ngClass]="{ required: field.required() }"\n >\n {{ field.label }}\n </label>\n </ng-container>\n\n <ng-container\n *sDynamicForm="{\n id: id,\n config: field,\n group: form\n }"\n ></ng-container>\n\n <s-control-errors\n [form]="form"\n [control]="form.controls[field.name]"\n [errorMessages]="getErrorMessages(field.errorMessages)"\n ></s-control-errors>\n\n <ng-container *ngIf="field.footer">\n <ng-container *ngIf="field.footer.help">\n <span\n *ngIf="\n field.footer.help.visible({\n abstractControl: form.controls[field.name],\n formField: field\n })\n "\n style="color: #888b99"\n >\n {{ field.footer.help.text }}\n </span>\n </ng-container>\n\n <ng-container *ngIf="field.footer.link">\n <div\n *ngIf="\n field.footer.link.visible({\n abstractControl: form.controls[field.name],\n formField: field\n })\n "\n class="ui-g"\n style="margin-left: -10px"\n >\n <s-button\n [label]="field.footer.link.label"\n priority="link"\n (onClick)="\n field.footer.link.onClick({\n abstractControl:\n form.controls[field.name],\n formField: field\n })\n "\n [auxiliary]="true"\n ></s-button>\n </div>\n </ng-container>\n </ng-container>\n\n <ng-template\n *ngIf="field?.bottomTemplate"\n [ngTemplateOutlet]="field.bottomTemplate"\n ></ng-template>\n </div>\n </ng-container>\n </div>\n</div>\n'})],n)}(),ir=function(n){function r(e,i){var r=n.call(this)||this;return r.localeService=e,r.changeDetectorRef=i,r.onInput=new t.EventEmitter,r.onFocus=new t.EventEmitter,r.onComplete=new t.EventEmitter,r.ngUnsubscribe=new o.Subject,r}return le(r,n),r.prototype.ngOnInit=function(){var e=this;this.onLocaleService(),this.onFocus.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onFocus&&e.field.onFocus(t)})),this.onInput.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onInput&&e.field.onInput(t)})),this.onComplete.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onComplete&&e.field.onComplete(t)})),this.onScale()},r.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},Object.defineProperty(r.prototype,"fieldType",{get:function(){return e.FieldType},enumerable:!0,configurable:!0}),r.prototype.onLocaleService=function(){var t=this;this.localeService.getLocale().pipe(i.first()).subscribe({next:function(){var n,o,i;(null===(n=t.field.numberLocaleOptions)||void 0===n?void 0:n.decimalSeparator)||(t.field.numberLocaleOptions=ce(ce({},t.field.numberLocaleOptions),{decimalSeparator:t.localeService.getDecimalSeparator()})),(null===(o=t.field.numberLocaleOptions)||void 0===o?void 0:o.thousandsSeparator)||(t.field.numberLocaleOptions=ce(ce({},t.field.numberLocaleOptions),{thousandsSeparator:t.localeService.getGroupingSeparator()})),(null===(i=t.field.numberLocaleOptions)||void 0===i?void 0:i.currencySymbol)||(t.field.numberLocaleOptions=ce(ce({},t.field.numberLocaleOptions),{currencySymbol:t.field.type===e.FieldType.Integer||t.field.type===e.FieldType.Double?"":"R$"}))},error:function(){var n;return t.field.numberLocaleOptions=null!==(n=t.field.numberLocaleOptions)&&void 0!==n?n:{thousandsSeparator:".",decimalSeparator:",",currencySymbol:t.field.type===e.FieldType.Integer||t.field.type===e.FieldType.Double?"":"R$"}}})},r.prototype.onScale=function(){Se(this.field.scale)&&(this.field.scale=this.field.type===e.FieldType.Integer?0:2)},r.prototype.ngAfterViewInit=function(){this.changeDetectorRef.detectChanges()},r.ctorParameters=function(){return[{type:Je},{type:t.ChangeDetectorRef}]},pe([t.Input()],r.prototype,"field",void 0),pe([t.Input()],r.prototype,"formControl",void 0),pe([t.Output()],r.prototype,"onInput",void 0),pe([t.Output()],r.prototype,"onFocus",void 0),pe([t.Output()],r.prototype,"onComplete",void 0),pe([t.ViewChild("inputRef")],r.prototype,"inputRef",void 0),r=pe([t.Component({template:'<s-field-label *ngIf="inputRef" [field]="field"\n [fieldContainerRef]="inputRef?.nativeElement"></s-field-label>\n \n<p-inputMask #inputRef\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 [sTooltip]="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 [autoClear]="field.autoClear">\n</p-inputMask>\n\n<ng-template #noMask>\n <ng-container>\n <div class="ui-inputgroup">\n <ng-container *ngIf="field.leftAddon">\n <span *ngIf="field.leftAddon.callback" class="addon-button addon-button--left">\n <s-button\n [label]="field.leftAddon.label"\n [iconClass]="field.leftAddon.icon"\n [priority]="field.leftAddon.priority"\n [disabled]="isFunction(field.leftAddon.disabled) ? field.leftAddon.disabled() : field.leftAddon.disabled"\n (onClick)="field.leftAddon.callback()">\n </s-button>\n </span>\n <span *ngIf="!field.leftAddon.callback" 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 #inputRef\n [id]="(field.id || field.name)"\n type="text"\n [name]="field.name"\n sBignumberInput\n [allowNegative]="field.allowNegative"\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 [sTooltip]="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 <ng-container *ngIf="field.rightAddon">\n <span *ngIf="field.rightAddon.callback" class="addon-button addon-button--right">\n <s-button\n [label]="field.rightAddon.label"\n [iconClass]="field.rightAddon.icon"\n [priority]="field.rightAddon.priority"\n [disabled]="isFunction(field.rightAddon.disabled) ? field.rightAddon.disabled() : field.rightAddon.disabled"\n (onClick)="field.rightAddon.callback()">\n </s-button>\n </span>\n <span *ngIf="!field.rightAddon.callback" 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',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}.addon-button{border:1px solid #c1c1cc}.addon-button s-button .s-button-with-text,.addon-button s-button button{height:100%;min-width:40px!important}.addon-button--left{border-radius:5px 0 0 5px;border-right:none}.addon-button--left s-button button{border-bottom-right-radius:0;border-top-right-radius:0}.addon-button--right{border-left:none;border-radius:0 5px 5px 0}.addon-button--right s-button button{border-bottom-left-radius:0;border-top-left-radius:0}"]})],r)}(Qn),rr=function(e){function n(t,n,o){var i=e.call(this)||this;return i.currencyService=t,i.localeService=n,i.changeDetectorRef=o,i}return le(n,e),n.prototype.ngOnInit=function(){this.onLocaleService()},n.prototype.onLocaleService=function(){var e=this;this.localeService.getLocale().pipe(i.first()).subscribe({next:function(){var t,n,o;(null===(t=e.field.numberLocaleOptions)||void 0===t?void 0:t.decimalSeparator)||(e.field.numberLocaleOptions=ce(ce({},e.field.numberLocaleOptions),{decimalSeparator:e.localeService.getDecimalSeparator()})),(null===(n=e.field.numberLocaleOptions)||void 0===n?void 0:n.thousandsSeparator)||(e.field.numberLocaleOptions=ce(ce({},e.field.numberLocaleOptions),{thousandsSeparator:e.localeService.getGroupingSeparator()})),(null===(o=e.field.numberLocaleOptions)||void 0===o?void 0:o.currencySymbol)||(e.field.numberLocaleOptions=ce(ce({},e.field.numberLocaleOptions),{currencySymbol:"R$"}))},error:function(){var t;return e.field.numberLocaleOptions=null!==(t=e.field.numberLocaleOptions)&&void 0!==t?t:{thousandsSeparator:".",decimalSeparator:",",currencySymbol:"R$"}}})},n.prototype.ngAfterViewInit=function(){this.changeDetectorRef.detectChanges()},n.ctorParameters=function(){return[{type:dt},{type:Je},{type:t.ChangeDetectorRef}]},pe([t.Input()],n.prototype,"field",void 0),pe([t.Input()],n.prototype,"formControl",void 0),pe([t.ViewChild("inputRef")],n.prototype,"inputRef",void 0),n=pe([t.Component({template:'<s-field-label *ngIf="inputRef" [field]="field"\n [fieldContainerRef]="inputRef?.nativeElement"></s-field-label>\n\n<div class="ui-inputgroup">\n <span\n *ngIf="field.currency || field.numberLocaleOptions?.currencySymbol"\n class="ui-inputgroup-addon"\n >\n {{\n field.currency\n ? currencyService.getCurrencySymbol({\n currency: field.currency()\n })\n : field.numberLocaleOptions.currencySymbol\n }}\n </span>\n <input #inputRef\n *ngIf="!field.mask"\n type="text"\n [id]="field.id || field.name"\n [name]="field.name"\n [formControl]="formControl"\n sNumberInput\n [precision]="\n field.precision\n ? isFunction(field.precision)\n ? trigger(field.precision)\n : field.precision\n : field.currency && field.currency()\n ? currencyService.currencies[field.currency()].precision\n : 15\n "\n [scale]="\n field.scale\n ? isFunction(field.scale)\n ? trigger(field.scale)\n : field.scale\n : field.currency && field.currency()\n ? currencyService.currencies[field.currency()].scale\n : 2\n "\n [decimalSeparator]="field.numberLocaleOptions.decimalSeparator"\n [thousandsSeparator]="field.numberLocaleOptions.thousandsSeparator"\n [alignTo]="field.alignTo"\n [sTooltip]="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 <p-inputMask #inputRef\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 [sTooltip]="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)}(Qn),ar=function(){function e(e){this.changeDetectorRef=e,this.onInput=new t.EventEmitter,this.onFocus=new t.EventEmitter,this.onComplete=new t.EventEmitter,this.ngUnsubscribe=new o.Subject,this.passwordVisible=!1}return e.prototype.ngOnInit=function(){var e=this;this.onFocus.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onFocus&&e.field.onFocus(t)})),this.onInput.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onInput&&e.field.onInput(t)})),this.onComplete.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onComplete&&e.field.onComplete(t)}))},e.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},e.prototype.onChangeVisible=function(){this.passwordVisible=!this.passwordVisible},e.prototype.ngAfterViewInit=function(){this.changeDetectorRef.detectChanges()},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formControl",void 0),pe([t.Output()],e.prototype,"onInput",void 0),pe([t.Output()],e.prototype,"onFocus",void 0),pe([t.Output()],e.prototype,"onComplete",void 0),pe([t.ViewChild("inputRef")],e.prototype,"inputRef",void 0),e=pe([t.Component({template:'<s-field-label *ngIf="inputRef" [field]="field" [fieldContainerRef]="inputRef"></s-field-label>\n\n<div class="password-field" [ngClass]="{ \'password-field--toggle\': field.showToggle }">\n <input\n #inputRef\n [type]="passwordVisible ? \'text\' : \'password\'"\n [id]="field.id || field.name"\n class="password-input"\n [name]="field.name"\n [sTooltip]="field.tooltip"\n tooltipPosition="top"\n [placeholder]="field.placeholder"\n [showDelay]="500"\n [maxLength]="field.maxLength"\n pInputText\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 [sPasswordStrength]="field.passwordStrength"\n [psDescription]="field.passwordStrengthOptions?.description"\n [psWeakTitle]="field.passwordStrengthOptions?.weakTitle"\n [psMediumTitle]="field.passwordStrengthOptions?.mediumTitle"\n [psStrongTitle]="field.passwordStrengthOptions?.strongTitle"\n [psValidation]="field.passwordStrengthOptions?.validation"\n />\n <span *ngIf="field.showToggle" class="toggle-button">\n <s-button\n [iconClass]="passwordVisible ? \'fas fa-eye-slash\' : \'fas fa-eye\'"\n styleClass="password-field-button"\n priority="default"\n (onClick)="onChangeVisible()"\n >\n </s-button>\n </span>\n</div>\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}.password-field{display:-ms-flexbox;display:flex}.password-field--toggle .password-input{border-top-right-radius:0;border-bottom-right-radius:0;border-right:none!important}.password-field--toggle .toggle-button s-button button{border-bottom-left-radius:0;border-top-left-radius:0}"]})],e)}(),sr=function(e){function n(n){var i=e.call(this)||this;return i.changeDetectorRef=n,i.onInput=new t.EventEmitter,i.onFocus=new t.EventEmitter,i.onComplete=new t.EventEmitter,i.ngUnsubscribe=new o.Subject,i}return le(n,e),n.prototype.ngOnInit=function(){var e=this;this.onFocus.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onFocus&&e.field.onFocus(t)})),this.onInput.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onInput&&e.field.onInput(t)})),this.onComplete.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onComplete&&e.field.onComplete(t)}))},n.prototype.ngAfterViewInit=function(){this.changeDetectorRef.detectChanges()},n.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},Object.defineProperty(n.prototype,"inputElement",{get:function(){var e,t;return this.inputRef instanceof N.InputMask?null===(t=null===(e=this.inputRef)||void 0===e?void 0:e.inputViewChild)||void 0===t?void 0:t.nativeElement:this.inputRef},enumerable:!0,configurable:!0}),n.prototype.getCharacterPattern=function(){return"function"==typeof this.field.characterPattern?this.field.characterPattern():this.field.characterPattern},n.prototype.getUnmask=function(){return"function"==typeof this.field.unmask?this.field.unmask():this.field.unmask},n.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},pe([t.Input()],n.prototype,"field",void 0),pe([t.Input()],n.prototype,"formControl",void 0),pe([t.Output()],n.prototype,"onInput",void 0),pe([t.Output()],n.prototype,"onFocus",void 0),pe([t.Output()],n.prototype,"onComplete",void 0),pe([t.ViewChild("inputRef")],n.prototype,"inputRef",void 0),n=pe([t.Component({template:'<s-field-label *ngIf="inputElement" [field]="field" [fieldContainerRef]="inputElement"></s-field-label>\n\n<p-inputMask\n #inputRef\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 [characterPattern]="getCharacterPattern()"\n [unmask]="getUnmask()"\n [placeholder]="field.placeholder"\n slotChar="_"\n [sTooltip]="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 [readonly]="field.readonly ? field.readonly() : false"\n [autocomplete]="field.browserAutocomplete ? \'on\' : \'off\'"\n>\n</p-inputMask>\n\n<ng-template #noMask>\n <ng-container>\n <div class="ui-inputgroup">\n <ng-container *ngIf="field.leftAddon">\n <span *ngIf="field.leftAddon.callback" class="addon-button addon-button--left">\n <s-button\n [label]="field.leftAddon.label"\n [iconClass]="field.leftAddon.icon"\n [priority]="field.leftAddon.priority"\n [disabled]="isFunction(field.leftAddon.disabled) ? field.leftAddon.disabled() : field.leftAddon.disabled"\n (onClick)="field.leftAddon.callback()"\n >\n </s-button>\n </span>\n <span *ngIf="!field.leftAddon.callback" 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 *ngIf="field.rightAddon.callback" class="addon-button addon-button--right">\n <s-button\n [label]="field.rightAddon.label"\n [iconClass]="field.rightAddon.icon"\n [priority]="field.rightAddon.priority"\n [disabled]="isFunction(field.rightAddon.disabled) ? field.rightAddon.disabled() : field.rightAddon.disabled"\n (onClick)="field.rightAddon.callback()"\n >\n </s-button>\n </span>\n <span *ngIf="!field.rightAddon.callback" 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 #inputRef\n [type]="field.inputType || \'text\'"\n [id]="field.id || field.name"\n [name]="field.name"\n [sTooltip]="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 [readOnly]="field.readonly ? field.readonly() : false"\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 [sTooltip]="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 [readOnly]="field.readonly ? field.readonly() : false"\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}.addon-button{border:1px solid #c1c1cc}.addon-button s-button .s-button-with-text,.addon-button s-button button{height:100%;min-width:40px}.addon-button--left{border-radius:5px 0 0 5px;border-right:none}.addon-button--left s-button button{border-bottom-right-radius:0;border-top-right-radius:0}.addon-button--right{border-left:none;border-radius:0 5px 5px 0}.addon-button--right s-button button{border-bottom-left-radius:0;border-top-left-radius:0}"]})],n)}(Qn),lr=function(){function e(){}return pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formControl",void 0),e=pe([t.Component({template:'<s-checkbox\n [data]="field.data"\n [formControl]="formControl">\n</s-checkbox>'})],e)}(),cr=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return le(n,e),pe([t.Input()],n.prototype,"field",void 0),pe([t.Input()],n.prototype,"formControl",void 0),n=pe([t.Component({template:'<s-field-label [field]="field"></s-field-label>\n\n<p-editor\n [formControl]="formControl"\n [formats]="field.formats"\n [readonly]="field.readonly"\n [modules]="field.modules"\n [style]="field.style">\n</p-editor>'})],n)}(Qn),pr=function(n){function r(e,i,r){var a=n.call(this)||this;return a.localeService=e,a.elementRef=i,a.changeDetectorRef=r,a.onInput=new t.EventEmitter,a.onFocus=new t.EventEmitter,a.onComplete=new t.EventEmitter,a.ngUnsubscribe=new o.Subject,a}return le(r,n),r.prototype.ngOnInit=function(){var e=this;this.onLocaleService(),this.onFocus.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onFocus&&e.field.onFocus(t)})),this.onInput.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onInput&&e.field.onInput(t)})),this.onComplete.pipe(i.takeUntil(this.ngUnsubscribe)).subscribe((function(t){e.field.onComplete&&e.field.onComplete(t)}))},r.prototype.ngAfterViewInit=function(){this.setInputRef(),this.changeDetectorRef.detectChanges()},r.prototype.ngOnDestroy=function(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()},Object.defineProperty(r.prototype,"numberAlignmentOption",{get:function(){return e.NumberAlignmentOption},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"fieldType",{get:function(){return e.FieldType},enumerable:!0,configurable:!0}),r.prototype.onLocaleService=function(){var e=this;this.localeService.getLocale().pipe(i.first()).subscribe({next:function(){var t,n,o;(null===(t=e.field.numberLocaleOptions)||void 0===t?void 0:t.decimalSeparator)||(e.field.numberLocaleOptions=ce(ce({},e.field.numberLocaleOptions),{decimalSeparator:e.localeService.getDecimalSeparator()})),(null===(n=e.field.numberLocaleOptions)||void 0===n?void 0:n.thousandsSeparator)||(e.field.numberLocaleOptions=ce(ce({},e.field.numberLocaleOptions),{thousandsSeparator:e.localeService.getGroupingSeparator()})),(null===(o=e.field.numberLocaleOptions)||void 0===o?void 0:o.currencySymbol)||(e.field.numberLocaleOptions=ce(ce({},e.field.numberLocaleOptions),{currencySymbol:"R$"}))},error:function(){var t;return e.field.numberLocaleOptions=null!==(t=e.field.numberLocaleOptions)&&void 0!==t?t:{thousandsSeparator:".",decimalSeparator:",",currencySymbol:"R$"}}})},r.prototype.setInputRef=function(){var e=this.elementRef.nativeElement.querySelector("input");this.inputRef=e},r.ctorParameters=function(){return[{type:Je},{type:t.ElementRef},{type:t.ChangeDetectorRef}]},pe([t.Input()],r.prototype,"field",void 0),pe([t.Input()],r.prototype,"formControl",void 0),pe([t.Output()],r.prototype,"onInput",void 0),pe([t.Output()],r.prototype,"onFocus",void 0),pe([t.Output()],r.prototype,"onComplete",void 0),r=pe([t.Component({template:'<s-field-label *ngIf="inputRef" [field]="field"\n [fieldContainerRef]="inputRef"></s-field-label>\n\n<p-inputMask #inputRef\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 [unmask]="true"\n [placeholder]="field.placeholder"\n slotChar="_"\n [sTooltip]="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<ng-template #noMask>\n <ng-container>\n <div class="ui-inputgroup">\n <ng-container *ngIf="field.leftAddon">\n <span *ngIf="field.leftAddon.callback" class="addon-button addon-button--left">\n <s-button\n [label]="field.leftAddon.label"\n [iconClass]="field.leftAddon.icon"\n [priority]="field.leftAddon.priority"\n [disabled]="isFunction(field.leftAddon.disabled) ? field.leftAddon.disabled() : field.leftAddon.disabled"\n (onClick)="field.leftAddon.callback()">\n </s-button>\n </span>\n <span *ngIf="!field.leftAddon.callback" 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 *ngIf="field.rightAddon.callback" class="addon-button addon-button--right">\n <s-button\n [label]="field.rightAddon.label"\n [iconClass]="field.rightAddon.icon"\n [priority]="field.rightAddon.priority"\n [disabled]="isFunction(field.rightAddon.disabled) ? field.rightAddon.disabled() : field.rightAddon.disabled"\n (onClick)="field.rightAddon.callback()">\n </s-button>\n </span>\n <span *ngIf="!field.rightAddon.callback" 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<ng-template #input>\n <input #inputRef\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 [sTooltip]="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</ng-template>\n<ng-template #localizedNumber>\n <input #inputRef\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 [sTooltip]="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</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}.addon-button{border:1px solid #c1c1cc}.addon-button s-button .s-button-with-text,.addon-button s-button button{height:100%;min-width:40px}.addon-button--left{border-radius:5px 0 0 5px;border-right:none}.addon-button--left s-button button{border-bottom-right-radius:0;border-top-right-radius:0}.addon-button--right{border-left:none;border-radius:0 5px 5px 0}.addon-button--right s-button button{border-bottom-left-radius:0;border-top-left-radius:0}"]})],r)}(Qn),dr=function(){function e(){}return pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formControl",void 0),e=pe([t.Component({template:'<s-field-label [field]="field"></s-field-label>\n\n<s-profile-picture-picker\n [formControl]="formControl"\n [simpleTitle]="field.simpleTitle"\n [actionTitle]="field.actionTitle"\n [subtitle]="field.subtitle"\n [aspectRatio]="field.aspectRatio"\n [cropperLabelsConfig]="field.cropperLabelsConfig"\n [removeButtonLabel]="field.removeButtonLabel"\n [changeButtonLabel]="field.changeButtonLabel"\n [confirmationTexts]="field.confirmationTexts"\n [maxFileSize]="field.maxFileSize"\n [accept]="field.accept"\n [supportedExtensions]="field.supportedExtensions"\n (changedImage)="field.onChangeImage ? field.onChangeImage($event) : null"\n (removedImage)="field.onRemovedImage ? field.onRemovedImage() : null"\n (invalidFile)="field.onInvalidFile ? field.onInvalidFile($event) : null">\n</s-profile-picture-picker>'})],e)}(),ur=function(){function e(){}return e.prototype.clickedButton=function(e){this.field.onClick&&this.field.onClick(e)},e.prototype.handleMouseEnter=function(){this.field.mouseEnter&&this.field.mouseEnter(this.field)},e.prototype.handleMouseLeave=function(){this.field.mouseLeave&&this.field.mouseLeave(this.field)},pe([t.Input()],e.prototype,"field",void 0),e=pe([t.Component({selector:"s-button-field",template:'<section [class.full-width]="field.fullWidth" [class.fit-content]="!field.fullWidth">\n <s-button\n [label]="field.label"\n [priority]="field.priority"\n [iconClass]="field.iconClass"\n [disabled]="field.disabled"\n [auxiliary]="field.auxiliary"\n [caret]="field.caret"\n [id]="field.id"\n [tooltip]="field.tooltip"\n (onClick)="clickedButton($event)"\n [iconColor]="field.iconColor"\n [badge]="field.badge"\n [animation]="field.animation"\n [slide]="field.slide"\n [menuOptions]="field.menuOptions"\n [model]="field.model"\n [baseZIndex]="field.baseZIndex"\n [styleClass]="field.styleClass"\n [rightIconClass]="field.rightIconClass"\n [tooltipPosition]="field.tooltipPosition"\n [type]="field.buttonType"\n [size]="field.buttonSize"\n (mouseenter)="handleMouseEnter()"\n (mouseleave)="handleMouseLeave()">\n </s-button>\n</section>\n',styles:["section{height:100%;display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end}section.full-width{width:100%}section.fit-content{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}"]})],e)}(),mr=function(e){var t=e.group,n=e.errorMessages;this.group=t,this.errorMessages=n},hr=function(t){function n(e){var n=e.group,o=e.field,i=e.errorMessages,r=t.call(this,{group:n,errorMessages:i})||this;return r.field=o,r}return le(n,t),n.prototype.createComponent=function(e,t){var n=e.resolveComponentFactory(this.getComponent()),o=t.createComponent(n);return o.instance.field=this.field,o.instance.formControl=this.group.controls[this.field.name],this._switchEmptyStringToNull(o),o.instance.errorMessages=this.errorMessages,this.setVariablesByType(o),o},n.prototype._switchEmptyStringToNull=function(t){switch(t.instance.field.type){case e.FieldType.Password:case e.FieldType.String:case e.FieldType.Text:case e.FieldType.TextIA:var n=t.instance.formControl.valueChanges.subscribe((function(e){""===e&&t.instance.formControl.setValue(null,{emitEvent:!1})}));return void t.onDestroy((function(){n.unsubscribe()}))}},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 zi;case e.FieldType.Binary:case e.FieldType.String:return sr;case e.FieldType.Boolean:return"switch"===this.field.representedBy?ji:Ui;case e.FieldType.Checkbox:return lr;case e.FieldType.Chips:return $i;case e.FieldType.CountryPhonePicker:return Gi;case e.FieldType.Date:case e.FieldType.DateTime:case e.FieldType.LocalDateTime:case e.FieldType.Time:return Hi;case e.FieldType.Number:case e.FieldType.Integer:case e.FieldType.Double:return ir;case e.FieldType.Enum:return Ki;case e.FieldType.Lookup:return Wi;case e.FieldType.Money:return rr;case e.FieldType.Radio:return Yi;case e.FieldType.Text:return Qi;case e.FieldType.TextIA:return Ji;case e.FieldType.Password:return ar;case e.FieldType.Blob:return qi;case e.FieldType.Slider:return Zi;case e.FieldType.ProfilePicture:return dr;case e.FieldType.Editor:return cr;case e.FieldType.Button:return ur;case e.FieldType.Custom:return this.field.CustomFieldComponentClass;default:throw new Error("Trying to use an unsupported type ("+this.field.type+").")}},n}(mr),fr=function(t){function n(e){var n=e.group,o=e.config,i=e.errorMessages,r=t.call(this,{group:n,errorMessages:i})||this;return r.config=o,r}return le(n,t),n.prototype.createComponent=function(e,t){var n=e.resolveComponentFactory(this.getComponent()),o=t.createComponent(n);return o.instance.config=this.config,o.instance.group=this.group,o},n.prototype.updateVariables=function(e){e.instance.structure=this.config,e.instance.group=this.group},n.prototype.getComponent=function(){switch(this.config.type){case e.StructureType.Fieldset:return er;case e.StructureType.Section:return tr;default:throw new Error("Trying to use an unsupported type ("+this.config.type+").")}},n}(mr),gr=function(t){function n(e){var n=e.group,o=e.config,i=e.errorMessages,r=t.call(this,{group:n,errorMessages:i})||this;return r.config=o,r}return le(n,t),n.prototype.createComponent=function(e,t){var n=e.resolveComponentFactory(this.getComponent()),o=t.createComponent(n);return o.instance.config=this.config,o.instance.group=this.group,o.instance.errorMessages=this.errorMessages,o},n.prototype.updateVariables=function(e){e.instance.config=this.config,e.instance.group=this.group},n.prototype.getComponent=function(){switch(this.config.type){case e.GridType.Row:return nr;default:throw new Error("Trying to use an unsupported type ("+this.config.type+").")}},n}(mr),vr=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,o=e.group,i=e.errorMessages;this.id=t,this.config=n,this.group=o,this.errorMessages=i},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 hr({group:this.group,field:this.config,errorMessages:this.errorMessages});else if(this.isStructure())this.directiveConfig=new fr({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 gr({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.ngOnDestroy=function(){this.component.destroy()},n.prototype.isField=function(){return e.FieldType[this.config.type]},n.prototype.isStructure=function(){return e.StructureType[this.config.type]},n.prototype.isGrid=function(){return e.GridType[this.config.type]},n.ctorParameters=function(){return[{type:t.ComponentFactoryResolver},{type:t.ViewContainerRef}]},pe([t.Input()],n.prototype,"sDynamicForm",null),n=pe([t.Directive({selector:"[sDynamicForm]"})],n)}(),br=function(){function e(){}return pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"fieldContainerRef",void 0),e=pe([t.Component({selector:"s-field-label",template:'\x3c!--\n Caso esse componente seja alterado/removido/movido,\n alterar a label no row.component.ts e dynamic-field.component.ts\n--\x3e\n\n<span *ngIf="field.label">\n <label\n *sInfoSign="field.infoSign; displayTime: field.displayTimeInfoSign; focusedInputRef: fieldContainerRef; useFocusedInputRef: field.useInfoSignFocusedInputRef"\n [for]="field.name"\n [ngClass]="{ required: field.required() }"\n >\n {{ field.label }}\n </label>\n</span>\n'})],e)}(),yr=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,He],declarations:[br],exports:[br]})],e)}(),xr=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,Ot,gt,Ae,N.InputMaskModule,z.InputTextModule,yr],declarations:[ir],exports:[ir]})],e)}(),_r=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,$t],declarations:[lr],exports:[lr]})],e)}(),wr=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,go,Ae,N.InputMaskModule,z.InputTextModule,yr],declarations:[rr],exports:[rr]})],e)}(),Cr=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,X.EditorModule,yr],declarations:[cr],exports:[cr]})],e)}(),kr=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,xi,go,Ot,Ae,N.InputMaskModule,z.InputTextModule,yr],declarations:[pr],exports:[pr]})],e)}(),Ir=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,Ot,Ae,Ti,z.InputTextModule,yr],declarations:[ar],exports:[ar]})],e)}(),Sr=function(){function e(){}return pe([t.ViewChild("headerTemplate",{static:!0})],e.prototype,"template",void 0),e=pe([t.Component({selector:"s-header",template:"\n <ng-template #headerTemplate>\n <ng-content></ng-content>\n </ng-template>"})],e)}(),Tr=function(){function e(){}return e=pe([t.Component({selector:"s-footer",template:"<ng-content></ng-content>"})],e)}(),Er=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[Sr,Tr],exports:[Sr,Tr]})],e)}(),Mr=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 ee(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"),o=e.width,i=e.height;return t.width=o,t.height=i,n.imageSmoothingEnabled=!0,n.drawImage(e,0,0,o,i),n.globalCompositeOperation="destination-in",n.beginPath(),n.arc(o/2,i/2,Math.min(o,i)/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,pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"visible",void 0),pe([t.Input()],e.prototype,"header",void 0),pe([t.Input()],e.prototype,"cropLabel",void 0),pe([t.Input()],e.prototype,"selectAnotherLabel",void 0),pe([t.Input()],e.prototype,"removeLabel",void 0),pe([t.Input()],e.prototype,"cancelLabel",void 0),pe([t.Input()],e.prototype,"emptyStateTitle",void 0),pe([t.Input()],e.prototype,"emptyStateActionLabel",void 0),pe([t.Input()],e.prototype,"emptyStateIconClass",void 0),pe([t.Input()],e.prototype,"aspectRatio",void 0),pe([t.Input()],e.prototype,"rounded",void 0),pe([t.Input()],e.prototype,"allowSelectAnother",void 0),pe([t.Input()],e.prototype,"allowRemove",void 0),pe([t.Input()],e.prototype,"allowCancel",void 0),pe([t.Input()],e.prototype,"imageSource",void 0),pe([t.Output()],e.prototype,"visibleChange",void 0),pe([t.Output()],e.prototype,"changeImage",void 0),pe([t.Output()],e.prototype,"croppedImage",void 0),pe([t.Output()],e.prototype,"croppedCanvas",void 0),pe([t.Output()],e.prototype,"removedImage",void 0),pe([t.Output()],e.prototype,"cancel",void 0),pe([t.ViewChild("image",{static:!0})],e.prototype,"image",void 0),pe([t.ContentChild(Sr,{static:!0})],e.prototype,"headerSection",void 0),pe([t.ContentChild(Tr,{static:!0})],e.prototype,"footerSection",void 0),e=n=pe([t.Component({selector:"s-image-cropper",template:'<div [id]="id">\n <p-dialog\n styleClass="s-image-cropper {{rounded ? \'s-image-cropper--rounded\' : \'\'}}"\n [header]="headerSection ? \'\' : header"\n [visible]="visible"\n (visibleChange)="onModalVisibleChange($event)"\n [modal]="true"\n [blockScroll]="true"\n [draggable]="false"\n [resizable]="false"\n [closeOnEscape]="allowCancel"\n [closable]="allowCancel"\n appendTo="body">\n\n <p-header *ngIf="headerSection">\n <ng-content select="s-header"></ng-content>\n </p-header>\n\n <s-empty-state\n [id]="id + \'-empty-state\'"\n *ngIf="!imageSource"\n [title]="emptyStateTitle"\n [iconClass]="emptyStateIconClass"\n [primaryActionLabel]="emptyStateActionLabel"\n (primaryAction)="onChangeImage()">\n </s-empty-state>\n\n <div [attr.data-hidden]="!imageSource" class="image-container">\n <img\n [id]="id + \'-cropper\'"\n #image\n [src]="imageSource || \'\'"\n alt="cropped image"/>\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\n [id]="id + \'-cancel-button\'"\n type="button"\n priority="link"\n [label]="cancelLabel"\n (onClick)="onCancel()">\n </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\n [id]="id + \'-remove-button\'"\n type="button"\n priority="secondary"\n [label]="removeLabel"\n (onClick)="onRemoveImage()">\n </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\n [id]="id + \'-select-another-button\'"\n type="button"\n priority="secondary"\n [label]="selectAnotherLabel"\n (onClick)="onChangeImage()">\n </s-button>\n </div>\n\n <div class="ui-sm-12 ui-md-3 ui-lg-2 ui-xl-2">\n <s-button\n [id]="id + \'-crop-button\'"\n type="button"\n [label]="cropLabel"\n (onClick)="onCropImage()">\n </s-button>\n </div>\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.6.2\n * https://fengyuanchen.github.io/cropperjs\n *\n * Copyright 2015-present Chen Fengyuan\n * Released under the MIT license\n *\n * Date: 2024-04-21T07:43:02.731Z\n */.cropper-container{-webkit-touch-callout:none;direction:ltr;font-size:0;line-height:0;position:relative;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.cropper-container img{-webkit-backface-visibility:hidden;backface-visibility:hidden;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;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{width:80%!important}}@media (min-width:1200px){.s-image-cropper{width:60%!important}}']})],e)}(),Lr=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,O.DialogModule,Ot,ei,Er],declarations:[Mr],exports:[Mr,Er],entryComponents:[Mr]})],e)}(),Fr=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(Mr).create(this.injector),ngUnsubscribe:new o.Subject};this.activeCropper=n,this.appRef.attachView(n.componentRef.hostView);var r=n.componentRef.hostView.rootNodes[0];document.body.appendChild(r),this.configureInstance(n,e),n.componentRef.instance.visible=!0,n.componentRef.instance.visibleChange.pipe(i.takeUntil(this.activeCropper.ngUnsubscribe),i.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(o){var r=t[o];"function"!=typeof r?n[o]=r:"function"==typeof r&&n[o].pipe(i.takeUntil(e.ngUnsubscribe)).subscribe((function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t[o].apply(t,ge(e))}))})),n.visibleChange.pipe(i.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=pe([t.Injectable()],e)}();(Ri=e.ThumbnailSize||(e.ThumbnailSize={})).Small="small",Ri.Medium="medium",Ri.Large="large";var Or,Rr=function(){function e(){}return e.prototype.getBinaryFile=function(e){var t=this;return new Promise((function(n){var o=t.getOrientation.bind(t),i=new XMLHttpRequest;i.addEventListener("load",(function(){if(4===i.readyState&&(200==i.status||0===i.status)){var e=o(i.response);i=null,n(e)}})),i.addEventListener("error",(function(){throw i=null,new Error("Não foi possível carregar a imagem")})),i.open("GET",e.src,!0),i.responseType="arraybuffer",i.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,o=2;o<n;){var i=t.getUint16(o,!1);if(o+=2,65505==i){if(1165519206!=t.getUint32(o+=2,!1))return-1;var r=18761==t.getUint16(o+=6,!1);o+=t.getUint32(o+4,r);var a=t.getUint16(o,r);o+=2;for(var s=0;s<a;s++)if(274==t.getUint16(o+12*s,r))return t.getUint16(o+12*s+8,r)}else{if(65280!=(65280&i))break;o+=t.getUint16(o,!1)}}return-1},e=pe([t.Injectable()],e)}(),Ar=function(){function n(t){this.thumbnailService=t,this.fallback=!1,this.id="s-thumbnail-"+r.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 o.Subject}var r;return r=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(){o.from(e.thumbnailService.getBinaryFile(e.imgEl.nativeElement)).pipe(i.takeUntil(e.ngUnsubscribe)).subscribe((function(t){return e.orientation=t}))}))},n.nextId=0,n.ctorParameters=function(){return[{type:Rr}]},pe([t.ViewChild("img",{static:!1})],n.prototype,"imgEl",void 0),pe([t.Input()],n.prototype,"id",void 0),pe([t.Input()],n.prototype,"size",void 0),pe([t.Input()],n.prototype,"imageSource",void 0),pe([t.Input()],n.prototype,"imageFallback",void 0),pe([t.Input()],n.prototype,"imageAlt",void 0),pe([t.Input()],n.prototype,"iconClass",void 0),pe([t.Input()],n.prototype,"hasAction",void 0),pe([t.Input()],n.prototype,"actionIconClass",void 0),pe([t.Input()],n.prototype,"isTile",void 0),pe([t.Input()],n.prototype,"isBrand",void 0),n=r=pe([t.Component({selector:"s-thumbnail",template:'<div\n [id]="id"\n class="thumbnail-container thumbnail-container--{{size}}"\n [ngClass]="{\n \'thumbnail-container--with-action\': hasAction,\n \'thumbnail-container--brand\': isBrand\n }">\n <div\n [id]="id + \'-image-container\'"\n *ngIf="imageSource || imageFallback"\n class="image-container"\n [ngClass]="{\n \'image-container--rounded\': !isBrand\n }">\n <img\n #img\n [id]="id + \'-image\'"\n (error)="fallback = true"\n [src]="imageSource"\n [alt]="imageAlt"\n *ngIf="!fallback"\n [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\n #img\n [id]="id + \'-image-fallback\'"\n (error)="imageFallback = undefined"\n [src]="imageFallback"\n [alt]="imageAlt"\n *ngIf="fallback && imageFallback"\n [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\n *ngIf="fallback && !imageFallback"\n ngClass="far fa-image"\n class="fallback-img-color">\n </i>\n </div>\n <div\n [id]="id + \'-action-icon-container\'"\n *ngIf="hasAction"\n class="action-icon-container action-icon-container--{{size}}">\n <span\n [id]="id + \'-action-icon\'"\n [class]="actionIconClass"\n aria-hidden="true">\n </span>\n </div>\n <div\n [id]="id + \'-icon-container\'"\n *ngIf="!imageSource && !imageFallback"\n class="icon-container icon-container--{{size}}"\n [ngClass]="{\'image-container--rounded\': !isBrand}">\n <span\n [id]="id + \'-icon\'"\n [class]="iconClass"\n aria-hidden="true">\n </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)}(),Dr=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[Ar],exports:[Ar],providers:[Rr]})],e)}();(Or=e.FileValidation||(e.FileValidation={})).MaxFileSize="maxFileSize",Or.MaxFileLimit="maxFileLimit",Or.TypeInvalid="typeInvalid",Or.UnsupportedExtension="unsupportedExtension";var Pr,Vr=function(){function n(e,n,o){this.imageCropperService=e,this.confirmationService=n,this.translateService=o,this.aspectRatio=1,this.supportedExtensions=[],this.changedImage=new t.EventEmitter,this.imageChange=new t.EventEmitter,this.removedImage=new t.EventEmitter,this.invalidFile=new t.EventEmitter}var o;return o=n,Object.defineProperty(n.prototype,"imageBase64",{get:function(){var e;return"string"==typeof this.image?this.image:null===(e=this.image)||void 0===e?void 0:e.base64},enumerable:!0,configurable:!0}),n.prototype.writeValue=function(e){this.image=e},n.prototype.registerOnChange=function(e){this._onChange=e},n.prototype.registerOnTouched=function(e){this._onTouched=e},n.prototype.ngOnInit=function(){this._normalizeSuportedExtensions()},n.prototype.onDragOver=function(e){e.preventDefault(),e.stopPropagation()},n.prototype.onDragLeave=function(e){e.preventDefault(),e.stopPropagation()},n.prototype.onDrop=function(e){var t;e.preventDefault(),e.stopPropagation(),null===(t=this._onTouched)||void 0===t||t.call(this);for(var n=[],o=e.dataTransfer.files,i=0;i<o.length;i++)n.push(o.item(i));this._showImageCropper(n)},n.prototype.onResize=function(){if(this.uploadPicture&&this.info&&this.thumbnail){var e=this._getWidthElement(this.uploadPicture),t=this._getWidthElement(this.info);this._getWidthElement(this.thumbnail)+t>e?this.uploadPicture.nativeElement.classList.add("upload-picture--small"):this.uploadPicture.nativeElement.classList.remove("upload-picture--small")}},n.prototype.selectPhoto=function(){var e,t=this.fileInput.nativeElement;t.value="",t.click(),null===(e=this._onTouched)||void 0===e||e.call(this)},n.prototype.removePhoto=function(){var e,t,n,o,i,r,a,s,l=this;this.confirmationService.confirm({message:null!==(t=null===(e=this.confirmationTexts)||void 0===e?void 0:e.removalMessage)&&void 0!==t?t:this.translateService.instant("platform.angular_components.confirmation_remove_image"),acceptLabel:null!==(o=null===(n=this.confirmationTexts)||void 0===n?void 0:n.removalAcceptLabel)&&void 0!==o?o:this.translateService.instant("platform.angular_components.remove"),rejectLabel:null!==(r=null===(i=this.confirmationTexts)||void 0===i?void 0:i.removalRejectLabel)&&void 0!==r?r:this.translateService.instant("platform.angular_components.cancel"),header:null!==(s=null===(a=this.confirmationTexts)||void 0===a?void 0:a.removalHeader)&&void 0!==s?s:this.translateService.instant("platform.angular_components.remove_image"),rejectButtonStyleClass:"ui-button-secondary",accept:function(){l.fileInput.nativeElement.value="",l.image=null,l.removedImage.emit()}})},n.prototype.photoSelected=function(e){this._showImageCropper(e.srcElement.files)},n.prototype._showImageCropper=function(e){var t=this;if(this._validateData(e)){var n=e[0],o=new FileReader;o.readAsDataURL(n),o.onloadend=function(e){t.imageCropperService.show(ce({imageSource:e.target.result,croppedImage:function(e){var o;t.changedImage.emit(e);var i={source:n,base64:e};"string"==typeof t.image?(t.image=e,t.imageChange.emit(e)):(t.image=i,t.imageChange.emit(i)),null===(o=t._onChange)||void 0===o||o.call(t,t.image)},changeImage:function(){return t.selectPhoto()},allowSelectAnother:!1,aspectRatio:t.aspectRatio},t.cropperLabelsConfig))}}},n.prototype._normalizeSuportedExtensions=function(){var e;this.supportedExtensions=null===(e=this.supportedExtensions)||void 0===e?void 0:e.map((function(e){return e.replace(".","").toLocaleLowerCase()}))},n.prototype._validateData=function(t){if(!t.length)return!1;if(t.length>1)return this.invalidFile.emit({file:null,validation:e.FileValidation.MaxFileLimit}),!1;var n=t[0];return n.type.includes("image")?this._validateFileExtension(n)?!!this._validateFileSize(n)||(this.invalidFile.emit({file:n,validation:e.FileValidation.MaxFileSize}),!1):(this.invalidFile.emit({file:n,validation:e.FileValidation.UnsupportedExtension}),!1):(this.invalidFile.emit({file:n,validation:e.FileValidation.TypeInvalid}),!1)},n.prototype._validateFileExtension=function(e){var t;if(null===(t=this.supportedExtensions)||void 0===t?void 0:t.length){var n=e.name.split(".").pop().toLowerCase();return this.supportedExtensions.includes(n)}return!0},n.prototype._validateFileSize=function(e){return!this.maxFileSize||e.size<=this.maxFileSize},n.prototype._getWidthElement=function(e){var t=e.nativeElement.getBoundingClientRect(),n=t.left;return t.right-n},n.ctorParameters=function(){return[{type:Fr},{type:J.ConfirmationService},{type:b.TranslateService}]},pe([t.Input()],n.prototype,"simpleTitle",void 0),pe([t.Input()],n.prototype,"actionTitle",void 0),pe([t.Input()],n.prototype,"subtitle",void 0),pe([t.Input()],n.prototype,"aspectRatio",void 0),pe([t.Input()],n.prototype,"cropperLabelsConfig",void 0),pe([t.Input()],n.prototype,"removeButtonLabel",void 0),pe([t.Input()],n.prototype,"changeButtonLabel",void 0),pe([t.Input()],n.prototype,"confirmationTexts",void 0),pe([t.Input()],n.prototype,"maxFileSize",void 0),pe([t.Input()],n.prototype,"accept",void 0),pe([t.Input()],n.prototype,"supportedExtensions",void 0),pe([t.Input()],n.prototype,"image",void 0),pe([t.ViewChild("uploadPicture")],n.prototype,"uploadPicture",void 0),pe([t.ViewChild("info")],n.prototype,"info",void 0),pe([t.ViewChild("thumbnail",{read:t.ElementRef})],n.prototype,"thumbnail",void 0),pe([t.ViewChild("fileInput",{read:t.ElementRef})],n.prototype,"fileInput",void 0),pe([t.Output()],n.prototype,"changedImage",void 0),pe([t.Output()],n.prototype,"imageChange",void 0),pe([t.Output()],n.prototype,"removedImage",void 0),pe([t.Output()],n.prototype,"invalidFile",void 0),pe([t.HostListener("dragover",["$event"])],n.prototype,"onDragOver",null),pe([t.HostListener("dragleave",["$event"])],n.prototype,"onDragLeave",null),pe([t.HostListener("drop",["$event"])],n.prototype,"onDrop",null),pe([t.HostListener("window:resize")],n.prototype,"onResize",null),n=o=pe([t.Component({selector:"s-profile-picture-picker",template:'<p-confirmDialog></p-confirmDialog>\n\n<input #fileInput [accept]="accept" class="file-input" type="file" (change)="photoSelected($event)">\n<div #uploadPicture class="upload-picture">\n <s-thumbnail\n #thumbnail\n iconClass="far fa-user"\n [imageSource]="imageBase64"\n [hasAction]="!image"\n (click)="selectPhoto()">\n </s-thumbnail>\n <div #info class="info">\n <ng-container *ngIf="image; then withImage; else noImage"></ng-container>\n <p class="subtitle">{{ subtitle }}</p>\n </div>\n</div>\n\n<ng-template #withImage>\n <div class="buttons">\n <s-button\n [label]="changeButtonLabel || \'platform.angular_components.change_photo\' | translate"\n priority="primary"\n (onClick)="selectPhoto()">\n </s-button>\n <s-button\n [label]="removeButtonLabel || \'platform.angular_components.remove\' | translate"\n priority="secondary"\n (onClick)="removePhoto()">\n </s-button>\n </div>\n</ng-template>\n\n<ng-template #noImage>\n <p class="title">\n {{ simpleTitle || \'platform.angular_components.drag_your_photo_or\' | translate }}\n <span\n class="action-title"\n (click)="selectPhoto()">\n {{ actionTitle || \'platform.angular_components.select_a_file\' | translate }}\n </span>\n </p>\n</ng-template>',providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return o})),multi:!0}],styles:['.file-input{display:none}.upload-picture{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.upload-picture .info{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:12px 20px;-ms-flex-align:start;align-items:flex-start}.upload-picture .info .title{font-family:"Open Sans",sans-serif;font-weight:700;font-size:.875rem;line-height:150%;color:#333}.upload-picture .info .title .action-title{cursor:pointer;color:#428bca}.upload-picture .info .buttons{display:-ms-flexbox;display:flex;gap:8px}.upload-picture .info .buttons s-button{margin:0}.upload-picture .info .subtitle{padding:6px 0;font-family:"Open Sans",sans-serif;font-weight:400;font-size:.75rem;line-height:150%;color:#697882;text-align:center}.upload-picture--small .info{-ms-flex-align:center;align-items:center}.upload-picture--small .info .subtitle,.upload-picture--small .info .title{text-align:center}.upload-picture--small .info .buttons{-ms-flex-pack:center;justify-content:center;-ms-flex-wrap:wrap;flex-wrap:wrap}']})],n)}(),Br=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,b.TranslateModule,Ot,Dr,Lr,Q.ConfirmDialogModule],declarations:[Vr],exports:[Vr],providers:[Fr,J.ConfirmationService]})],e)}(),Nr=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,Br,yr],declarations:[dr],exports:[dr]})],e)}(),zr=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,Ot,Ae,N.InputMaskModule,z.InputTextModule,j.KeyFilterModule,yr],declarations:[sr],exports:[sr]})],e)}(),Ur=function(){function e(e){this.cdr=e,this.onChange=function(){},this.onTouched=function(){},this.disabled=!1,this.value="",this.inputId="textarea-"+Math.random(),this.rows=5,this.speechRecognition=!1,this.keepContext=!1,this.speechRecognitionPlaceholder="",this._inputStyle={resize:"vertical"},this.readOnly=!1,this.renderTextArea=!1}var n;return n=e,Object.defineProperty(e.prototype,"textAreaElement",{get:function(){return this._textAreaElement},set:function(e){var t=this;this._textAreaElement=e,setTimeout((function(){t.renderTextArea=!0,t.cdr.detectChanges()}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputStyle",{get:function(){return this._inputStyle},set:function(e){this._inputStyle=ce(ce({},e),this._inputStyle)},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.setValue=function(e){this.disabled||(this.value=e,this.writeValue(this.value),this.onChange(this.value),this.onTouched(this.value))},e.prototype.handleRecognizedText=function(e){this.setValue(e)},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},pe([t.ViewChild("textArea",{read:t.ElementRef})],e.prototype,"textAreaElement",null),pe([t.Input()],e.prototype,"inputId",void 0),pe([t.Input()],e.prototype,"rows",void 0),pe([t.Input()],e.prototype,"speechRecognition",void 0),pe([t.Input()],e.prototype,"keyFilter",void 0),pe([t.Input()],e.prototype,"keepContext",void 0),pe([t.Input()],e.prototype,"speechRecognitionPlaceholder",void 0),pe([t.Input()],e.prototype,"maxLength",void 0),pe([t.Input()],e.prototype,"placeholder",void 0),pe([t.Input()],e.prototype,"inputStyle",null),pe([t.Input()],e.prototype,"readOnly",void 0),e=n=pe([t.Component({selector:"s-textarea",template:'<textarea\n *ngIf="keyFilter"\n #textArea\n class="textarea"\n [pKeyFilter]="keyFilter"\n [id]="inputId"\n [rows]="rows"\n [(ngModel)]="value"\n [disabled]="disabled"\n [ngStyle]="inputStyle"\n [readOnly]="readOnly"\n [placeholder]="placeholder ? placeholder : \'\'"\n [maxlength]="maxLength"\n (ngModelChange)="setValue($event)">\n</textarea>\n\n<textarea\n *ngIf="!keyFilter"\n #textArea\n class="textarea"\n [id]="inputId"\n [rows]="rows"\n [(ngModel)]="value"\n [disabled]="disabled"\n [ngStyle]="inputStyle"\n [readOnly]="readOnly"\n [placeholder]="placeholder ? placeholder : \'\'"\n [maxlength]="maxLength"\n (ngModelChange)="setValue($event)">\n</textarea>\n\n<s-speech-recognition\n *ngIf="speechRecognition && renderTextArea"\n [textAreaElement]="textAreaElement.nativeElement"\n [keepContext]="keepContext"\n [speechRecognitionPlaceholder]="speechRecognitionPlaceholder"\n (recognizedText)="handleRecognizedText($event)">\n</s-speech-recognition>\n',providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:[".textarea{border-radius:3px;border:1px solid #c1c1cc;background:#fff;width:100%;max-width:100%;min-height:4em;min-width:10em;outline:0;padding:8px;display:block}.textarea:disabled{opacity:.5}.textarea:focus{transition:border-color .2s ease-out;border:1px solid #428bca}:host.ng-invalid.ng-dirty .textarea{border-color:#c13018}"]})],e)}(),jr=function(){function e(e,t){this.locale=e,this.ngZone=t,this.utterance=new SpeechSynthesisUtterance,this.voices=[],this.setVoices()}return e.prototype.setVoices=function(){var e=this,t=speechSynthesis.getVoices();t.length||(speechSynthesis.onvoiceschanged=function(){e.ngZone.run((function(){var n;t=speechSynthesis.getVoices();var o=(null===(n=e.locale.getLocaleOptions())||void 0===n?void 0:n.locale)||"pt-BR";e.setActiveVoice(t,o),e.locale.getLocale().subscribe((function(n){e.setActiveVoice(t,n)}))}))})},e.prototype.updateVoice=function(e){this.activeVoice=this.voices.find((function(t){return t.voiceURI===e}))},e.prototype.speak=function(e,t){var n=this;if(void 0===t&&(t=1),this.activeVoice)return new Promise((function(o){n.utterance.text=e,n.utterance.voice=n.activeVoice,n.utterance.rate=t,speechSynthesis.speak(n.utterance),n.utterance.onend=function(){n.ngZone.run((function(){o(!0)}))}}))},e.prototype.pause=function(){speechSynthesis.pause()},e.prototype.resume=function(){speechSynthesis.resume()},e.prototype.cancel=function(){speechSynthesis.cancel()},Object.defineProperty(e.prototype,"hasVoice",{get:function(){return!!this.activeVoice},enumerable:!0,configurable:!0}),e.prototype.setActiveVoice=function(e,t){var n=e.find((function(e){return e.lang===t}));n&&(this.activeVoice=n)},e.ctorParameters=function(){return[{type:Je},{type:t.NgZone}]},e.ɵprov=t["ɵɵdefineInjectable"]({factory:function(){return new e(t["ɵɵinject"](Je),t["ɵɵinject"](t.NgZone))},token:e,providedIn:"root"}),e=pe([t.Injectable({providedIn:"root"})],e)}(),Hr=function(){function e(e,n,i){var r=this;this.speechRecognitionService=e,this.textToSpeechService=n,this.translateService=i,this.keepContext=!1,this.speechRecognitionPlaceholder="",this._recognizedText="",this.originalTextAreaElementText="",this.isDoneTextToSpeech=!1,this.onDestroy$=new o.Subject,this.VOICE_SPEEDS=[.5,1,1.5,2],this.keydownEventListener=function(e){r.disabled&&e.preventDefault()},this.disabled=!1,this.isListeningUserVoice=!1,this.voiceSpeed=1,this.isDisabledMicrophone=!1,this.canRenderMicrophone=!0,this.canRenderTextToSpeech=!0,this.canRenderListeningText=!1,this.canRenderDiscard=!1,this.canRenderAprove=!1,this.canRenderTextToSpeechToolbar=!1,this.isPlayingTextToSpeech=!1,this.recognizedText=new t.EventEmitter}var n;return n=e,e.prototype.ngOnInit=function(){var e=this;if(this.hasSpeechRecognitionBrowserApi){if(!this.textAreaElement)throw new Error("textAreaElement is required");this.textAreaElement.placeholder=this.speechRecognitionPlaceholder?this.speechRecognitionPlaceholder:this.translateService.instant("platform.angular_components.text_area_speech_recognition_placeholder"),this.textAreaElement.addEventListener("keydown",this.keydownEventListener),this.speechRecognitionService.microphoneStatus$.pipe(i.takeUntil(this.onDestroy$)).subscribe((function(t){"active"===t&&e.onCloseToolbar()}))}},e.prototype.onListen=function(){var e=this;this.isDisabledMicrophone||this.isListening||(this.disabled=!0,this.canRenderMicrophone=!1,this.canRenderListeningText=!0,this.originalTextAreaElementText=this.textAreaElement.value,this.textAreaElement.value="",this.isListeningUserVoice=!0,this.speechRecognitionService.listen().pipe(i.takeUntil(this.onDestroy$)).subscribe((function(t){var n=t.text,o=t.isFinal;e._recognizedText=n,e.setTextAreaValue(n),e.scrollTextAreaBottom(),o&&(e.canRenderAprove=!0,e.canRenderDiscard=!0,e.canRenderListeningText=!1,e.isListeningUserVoice=!1)}),(function(){e.isListeningUserVoice=!1,e.canRenderMicrophone=!0,e.isDisabledMicrophone=!1,e.canRenderListeningText=!1,e.disabled=!1})))},e.prototype.scrollTextAreaBottom=function(){var e=this;setTimeout((function(){e.textAreaElement.scrollTop=e.textAreaElement.scrollHeight}),120)},e.prototype.onOpenToolbar=function(){this.isDisabledTextToSpeech||(this.canRenderTextToSpeechToolbar=!0,this.canRenderTextToSpeech=!1,n.TOOLBAR_ACTIVE=!0,this.speak())},e.prototype.onCloseToolbar=function(){this.canRenderTextToSpeechToolbar=!1,this.canRenderTextToSpeech=!0,this.stopTextToSpeech(),this.voiceSpeed=1,n.TOOLBAR_ACTIVE=!1},e.prototype.onDiscard=function(){this.canRenderAprove=!1,this.canRenderDiscard=!1,this.canRenderMicrophone=!0,this.canRenderTextToSpeechToolbar=!1,this.canRenderTextToSpeech=!0,this._recognizedText="",this.setTextAreaValue(this.originalTextAreaElementText),this.disabled=!1,this.stopTextToSpeech(),n.TOOLBAR_ACTIVE=!1},e.prototype.onAprove=function(){if(this.canRenderAprove=!1,this.canRenderDiscard=!1,this.canRenderMicrophone=!0,this.canRenderTextToSpeechToolbar=!1,this.canRenderTextToSpeech=!0,this.keepContext){var e=this.originalTextAreaElementText.length>0?"\n":"";this.originalTextAreaElementText+=""+e+this._recognizedText}else this.originalTextAreaElementText=this._recognizedText;this.recognizedText.emit(this.keepContext?this.originalTextAreaElementText:this._recognizedText),this.scrollTextAreaBottom(),this._recognizedText="",this.disabled=!1,this.textToSpeechService.cancel(),n.TOOLBAR_ACTIVE=!1},e.prototype.ngOnDestroy=function(){this.onDestroy$.next(),this.onDestroy$.complete()},e.prototype.toggleTextToSpeech=function(){this.isPlayingTextToSpeech?this.textToSpeechService.pause():this.isDoneTextToSpeech?this.speak():this.textToSpeechService.resume(),this.isPlayingTextToSpeech=!this.isPlayingTextToSpeech},e.prototype.restartTextToSpeech=function(){this.textToSpeechService.cancel(),this.speak()},e.prototype.updateVoiceSpeed=function(){var e=this.VOICE_SPEEDS.indexOf(this.voiceSpeed),t=this.VOICE_SPEEDS[e+1]?e+1:0;this.voiceSpeed=this.VOICE_SPEEDS[t],this.textToSpeechService.cancel(),this.speak()},e.prototype.stopListening=function(){this.speechRecognitionService.stop()},Object.defineProperty(e.prototype,"isListening",{get:function(){return this.speechRecognitionService.isListening},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasSpeechRecognitionBrowserApi",{get:function(){return this.speechRecognitionService.hasSupportSpeechRecognition},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDisabledTextToSpeech",{get:function(){var e=this.textToSpeechService.hasVoice;return!this.textToSpeech||!e||this.isListening||n.TOOLBAR_ACTIVE},enumerable:!0,configurable:!0}),e.prototype.setTextAreaValue=function(e){this.textAreaElement.value=e},e.prototype.stopTextToSpeech=function(){this.isPlayingTextToSpeech=!1,this.textToSpeechService.cancel()},e.prototype.speak=function(){var e=this;this.isDoneTextToSpeech=!1,this.isPlayingTextToSpeech=!0,this.textToSpeechService.speak(this.textToSpeech,this.voiceSpeed).then((function(){e.isPlayingTextToSpeech=!1,e.isDoneTextToSpeech=!0}))},Object.defineProperty(e.prototype,"textToSpeech",{get:function(){return this.textAreaElement.value},enumerable:!0,configurable:!0}),e.TOOLBAR_ACTIVE=!1,e.ctorParameters=function(){return[{type:Xi},{type:jr},{type:b.TranslateService}]},pe([t.Input()],e.prototype,"textAreaElement",void 0),pe([t.Input()],e.prototype,"keepContext",void 0),pe([t.Input()],e.prototype,"speechRecognitionPlaceholder",void 0),pe([t.Output()],e.prototype,"recognizedText",void 0),e=n=pe([t.Component({selector:"s-speech-recognition",template:'<section class="speech-recognition" *ngIf="hasSpeechRecognitionBrowserApi">\n <div class="speech-recognition-text">\n <ng-container *ngIf="canRenderMicrophone">\n {{ \'platform.angular_components.text_area_before_speech\' | translate }}\n </ng-container>\n\n <ng-container *ngIf="isListeningUserVoice">\n {{ \'platform.angular_components.text_area_while_speech\' | translate }}\n </ng-container>\n\n <ng-container *ngIf="canRenderAprove && canRenderDiscard">\n {{ \'platform.angular_components.text_area_end_speech\' | translate }}\n </ng-container>\n </div>\n <div class="speech-recognition-buttons">\n <span\n *ngIf="canRenderListeningText"\n (click)="stopListening()"\n class="speech-recognition-item speech-recognition-item-regular">\n <i class="far fa-ellipsis-h"></i>\n </span>\n\n <span\n *ngIf="canRenderMicrophone"\n (click)="onListen()"\n class="speech-recognition-item speech-recognition-item-microphone"\n [class.speech-recognition-item-disabled]="isDisabledMicrophone || isListening || disabled">\n <i class="fas fa-microphone"></i>\n </span>\n\n <span\n *ngIf="canRenderAprove"\n (click)="onAprove()"\n class="speech-recognition-item speech-recognition-item-aprove">\n <i class="fas fa-check"></i>\n </span>\n\n <span *ngIf="canRenderDiscard"\n (click)="onDiscard()"\n class="speech-recognition-item speech-recognition-item-discard">\n <i class="fas fa-times"></i>\n </span>\n\n <span\n *ngIf="canRenderTextToSpeech"\n (click)="onOpenToolbar()"\n class="speech-recognition-item speech-recognition-item-regular"\n [class.speech-recognition-item-disabled]="isDisabledTextToSpeech">\n <i class="fas fa-volume-down"></i>\n </span>\n\n <span\n *ngIf="canRenderTextToSpeechToolbar"\n class="speech-recognition-item-toolbar">\n <i class="fas" [class.fa-pause]="isPlayingTextToSpeech" [class.fa-play]="!isPlayingTextToSpeech"\n (click)="toggleTextToSpeech()"></i>\n <i class="fas fa-backward" (click)="restartTextToSpeech()"></i>\n <span (click)="updateVoiceSpeed()">\n {{ voiceSpeed }}x\n </span>\n <i class="fas fa-times" (click)="onCloseToolbar()"></i>\n </span>\n </div>\n</section>\n',styles:[".speech-recognition{display:-ms-flexbox;display:flex;gap:10px;-ms-flex-pack:justify;justify-content:space-between;width:100%}.speech-recognition-buttons{display:-ms-flexbox;display:flex;gap:10px;position:relative;bottom:15px;margin-right:16px}.speech-recognition-item{display:-ms-inline-flexbox;display:inline-flex;height:25px;padding:4px 12px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;gap:8px;border-radius:15px;cursor:pointer;transition:background .1s ease-in}.speech-recognition-item i,.speech-recognition-item span{color:#fff}.speech-recognition-item-disabled{cursor:default!important}.speech-recognition-item-disabled *{opacity:.5}.speech-recognition-item-microphone{background:#428bca}.speech-recognition-item-microphone:not(.speech-recognition-item-disabled):hover{background:#063951}.speech-recognition-item-regular{background:#7892a1}.speech-recognition-item-regular:not(.speech-recognition-item-disabled):hover{background:#697882}.speech-recognition-item-aprove{background:#0c9348}.speech-recognition-item-aprove:not(.speech-recognition-item-disabled):hover{background:#063951}.speech-recognition-item-discard{background:#c13018}.speech-recognition-item-discard:not(.speech-recognition-item-disabled):hover{background:#063951}.speech-recognition-item-toolbar{background:#7892a1;display:-ms-flexbox;display:flex;border-radius:15px;-ms-flex-align:center;align-items:center;color:#fff;height:25px}.speech-recognition-item-toolbar i,.speech-recognition-item-toolbar span{cursor:pointer}.speech-recognition-item-toolbar i:not(:first-child),.speech-recognition-item-toolbar i:not(:last-child){padding:6px}.speech-recognition-item-toolbar i:first-child{padding-left:10px}.speech-recognition-item-toolbar i:last-child{padding-right:10px}.speech-recognition-text{color:#212533;font-size:12px;font-style:normal;font-weight:400;word-break:break-word}"]})],e)}(),$r=function(){function e(){}return e=pe([t.NgModule({declarations:[Hr],imports:[r.CommonModule,b.TranslateModule],exports:[Hr]})],e)}(),Gr=function(){function e(){}return e=pe([t.NgModule({declarations:[Ur],imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,$r,j.KeyFilterModule],exports:[Ur]})],e)}(),qr=function(){function e(){this.legend="",this.toggleable=!1,this.icon="",this.destroyOnHide=!0,this.beforeToggle=new t.EventEmitter,this.afterToggle=new t.EventEmitter,this.active=!0}return e.prototype.toggleActive=function(e){this.toggleable&&(this.beforeToggle.next({collapsed:this.active,originalEvent:e}),this.active=!this.active,this.afterToggle.next({collapsed:this.active,originalEvent:e}))},pe([t.Input()],e.prototype,"legend",void 0),pe([t.Input()],e.prototype,"toggleable",void 0),pe([t.Input()],e.prototype,"icon",void 0),pe([t.Input()],e.prototype,"destroyOnHide",void 0),pe([t.ContentChild(Sr)],e.prototype,"headerTemplate",void 0),pe([t.Output()],e.prototype,"beforeToggle",void 0),pe([t.Output()],e.prototype,"afterToggle",void 0),e=pe([t.Component({selector:"s-fieldset",template:'<fieldset class="fieldset" [class.fieldset-togglable]="toggleable">\n <legend class="fieldset-title" (sActivatedContent)="toggleActive($event)">\n <ng-container *ngIf="toggleable">\n <i *ngIf="active" class="fas fa-plus"></i>\n <i *ngIf="!active" class="fas fa-minus"></i>\n </ng-container>\n <ng-container *ngIf="headerTemplate?.template">\n <ng-container *ngTemplateOutlet="headerTemplate.template"></ng-container>\n </ng-container>\n <ng-container *ngIf="!headerTemplate">\n <i *ngIf="icon" [class]="icon"></i>\n {{ legend }}\n </ng-container>\n </legend>\n <div *ngIf="destroyOnHide ? (toggleable ? active : true) : true" [@toggleAnimation]="destroyOnHide ? null : active ? \'open\' : \'closed\'">\n <ng-content></ng-content>\n </div>\n</fieldset>\n',animations:[n.trigger("toggleAnimation",[n.transition(":enter",[n.style({opacity:0,height:0}),n.animate("300ms ease-out",n.style({opacity:1,height:"*"}))]),n.transition(":leave",[n.style({opacity:1,height:"*"}),n.animate("300ms ease-in",n.style({opacity:0,height:0}))]),n.state("open",n.style({opacity:1,height:"*"})),n.state("closed",n.style({opacity:0,height:0})),n.transition("open <=> closed",n.animate("300ms ease"))])],styles:['.fieldset{background-color:#fff;border:1px solid #dedce5;border-radius:6px;margin-bottom:10px;min-height:4.5em;padding:6px 8px}.fieldset-title{-ms-flex-align:center;align-items:center;color:#212533;font-family:"Open Sans",sans-serif;font-size:14px;font-weight:700;display:-ms-flexbox;display:flex;padding:0 4px;gap:4px;margin-left:16px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.fieldset-togglable .fieldset-title,.fieldset-togglable .fieldset-title *{cursor:pointer}.hidden{display:none}']})],e)}(),Wr=function(){function e(e){var n=this;this.elementRef=e,this.sActivatedContent=new t.EventEmitter,this.tabindex=0,this.disabled=!1,this.EVENT_LISTENER=function(e){if(e instanceof KeyboardEvent){var t=e.key;if(!["Enter"," "].includes(t))return}n.sActivatedContent.next(e)}}return e.prototype.ngOnInit=function(){this.setTabIndex(),this.checkAccessbilityEvents()},e.prototype.setTabIndex=function(){0!==this.element.tabIndex||(this.element.tabIndex=this.tabindex)},e.prototype.checkAccessbilityEvents=function(){this.element.addEventListener("click",this.EVENT_LISTENER),this.element.addEventListener("keydown",this.EVENT_LISTENER)},Object.defineProperty(e.prototype,"element",{get:function(){return this.elementRef.nativeElement},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.element.removeEventListener("click",this.EVENT_LISTENER),this.element.removeEventListener("keydown",this.EVENT_LISTENER)},e.ctorParameters=function(){return[{type:t.ElementRef}]},pe([t.Output()],e.prototype,"sActivatedContent",void 0),pe([t.Input()],e.prototype,"tabindex",void 0),pe([t.Input()],e.prototype,"disabled",void 0),e=pe([t.Directive({selector:"[sActivatedContent]"})],e)}(),Yr=function(){function e(){}return e=pe([t.NgModule({declarations:[Wr],imports:[r.CommonModule],exports:[Wr]})],e)}(),Kr=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Yr],declarations:[qr],exports:[qr]})],e)}(),Zr=function(){function e(){}return e=pe([t.NgModule({imports:[F.AutoCompleteModule,$e,gt,Ot,At,v.CalendarModule,P.CheckboxModule,V.ChipsModule,r.CommonModule,$n,Jn,O.DialogModule,B.DropdownModule,ei,a.FormsModule,L.HotkeyModule,N.InputMaskModule,U.InputTextareaModule,z.InputTextModule,j.KeyFilterModule,bi,ht,xi,$.PanelModule,D.ButtonModule,R.TableModule,H.MultiSelectModule,go,G.RadioButtonModule,a.ReactiveFormsModule,Ae,Kr,Er,Mi,ai,Ni,He,wi,L.HotkeyModule.forRoot(),Yo,_e,Ti,q.SliderModule,b.TranslateModule.forChild(),Ir,zr,kr,wr,xr,_r,Nr,Cr,yr,Gr],declarations:[zi,Ui,ji,Hi,$i,Gi,or,Go,vr,er,qi,Do,Wi,Yi,nr,tr,Ki,Zi,Qi,Ji,ur],exports:[Go,Do],entryComponents:[zi,Ui,ji,Hi,$i,Gi,er,qi,Wi,Yi,nr,tr,Ki,Zi,Qi,Ji],providers:[L.HotkeysService,Xo]})],e)}(),Xr=function(){function e(e){this.http=e}return e.prototype.getCustomFields=function(e,t,n,o){var i={entityId:{domain_:e,service_:t,id:n}};return this.http.post(o,i)},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:c.HttpClient}]},e=pe([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"}(Pr||(Pr={}));var Jr=d,Qr=function(){function n(e,t,n,i,r){this.customFieldsService=e,this.localeService=t,this.sanitizer=n,this.translateService=i,this.controlContainer=r,this.invalidErrorLabel=this.translateService.instant("platform.angular_components.invalid_value"),this.customFieldsEndpoint="platform/field_customization/queries/getEntity",this.fileLocationEndpoint="platform/field_customization/actions/requestUpload",this.requestAccessEndpoint="platform/field_customization/actions/requestAccess",this.showFileUploadDate=!1,this.fields=[],this.ready=!1,this.ngUsubscribe=new o.Subject}var r;return r=n,Object.defineProperty(n.prototype,"hasCustomFields",{get:function(){var e;return!!(null===(e=this.fields)||void 0===e?void 0:e.length)},enumerable:!0,configurable:!0}),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.ngOnInit=function(){this._validateInputs(),this._createForm(),this.addDisplayTimeInfoSignToFields()},n.prototype.ngAfterViewInit=function(){var e=this;this.enableOrDisableFields(this.disableFields),this.formGroup.valueChanges.subscribe((function(){var t;return null===(t=e.onChange)||void 0===t?void 0:t.call(e,e.parseFieldsValues())}))},n.prototype.ngOnChanges=function(e){e.disableFields&&this.enableOrDisableFields(e.disableFields.currentValue)},n.prototype.ngOnDestroy=function(){this.ngUsubscribe.next(),this.ngUsubscribe.complete()},n.prototype.registerOnChange=function(e){this.onChange=e},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({emitEvent:!1}):this.formGroup.enable({emitEvent:!1})},n.prototype.getCustomFields=function(){return this.entityObject&&this.entityObject.entity_?o.of(this.entityObject):this.customFieldsService.getCustomFields(this.domain,this.service,this.entity,this.customFieldsEndpoint)},n.prototype.validate=function(){var e=this,t={};return Object.keys(this.formGroup.controls).forEach((function(n){var o=e.formGroup.get(n).errors;o&&(t[n]=o)})),t},n.prototype.cleanFields=function(){this.formGroup.reset()},n.prototype.enableOrDisableFields=function(e){var t,n;if(this.formGroup)try{for(var o=he(Object.keys(this.formGroup.value)),i=o.next();!i.done;i=o.next()){var r=i.value;e?this.formGroup.get(r).disable():this.formGroup.get(r).enable()}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}},n.prototype._validateInputs=function(){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!")},n.prototype._createForm=function(){var e=this;this.formGroup=new a.FormGroup({});var t=[this.getCustomFields(),this.localeService.get()];o.forkJoin(t).pipe(i.takeUntil(this.ngUsubscribe),i.finalize((function(){var t;e.formGroup.markAsPristine(),null===(t=e.parentControl)||void 0===t||t.markAsPristine(),e.ready$&&e.ready$.next(!0)}))).subscribe((function(t){var n=fe(t,2),o=n[0],i=n[1],r={};if(r[Pr.String]={},r[Pr.Boolean]={defaultValue:!1},r[Pr.Integer]={},r[Pr.Double]={defaultMask:""},r[Pr.Money]={},r[Pr.Date]={},r[Pr.DateTime]={},r[Pr.LocalDateTime]={},r[Pr.Time]={},r[Pr.Blob]={},r[Pr.Enum]={},r[Pr.Binary]={},r[Pr.Any]={},o&&o.entity_){var s=o.entity_,l=s.active,c=s.fields;l&&(c.filter((function(e){return e.customizable&&e.customization&&e.customization.active})).forEach((function(t){var n,o=e.getFormField(t,i),s=t.type;t.type===Pr.Blob&&e.value&&e.value[o.name]&&e.createBlobToFileUpload(o);var l=t.customization.validationRegex,c=[Pr.Boolean,Pr.Money,Pr.Date,Pr.DateTime,Pr.LocalDateTime,Pr.Time],p=[];l&&!c.includes(s)&&p.push(a.Validators.pattern(l)),s!==Pr.Integer||o.mask||p.push(a.Validators.pattern(/^\-?\d*$/)),(null===(n=o.required)||void 0===n?void 0:n.call(o))&&p.push(a.Validators.required);var d=new a.FormControl({value:r[s].defaultValue,disabled:e.formGroup.disabled},p);e.formGroup.addControl(o.name,d),e.fields.push(o)})),e.createFieldCustomization(c),e.formGroup.patchValue(e.parseValuesForFields(e.value)),e.ready=!0)}}))},n.prototype.parseValuesForFields=function(t){var n=ce({},t);return this.fields.forEach((function(o){var i=o.type,r=o.name,a=t&&t[r];if(i===e.FieldType.Boolean){var s="string"==typeof a,l=!s&&"boolean"!=typeof a;n[r]=l?null:s?"true"===a:a}if(a)switch(i){case e.FieldType.Date:case e.FieldType.DateTime:n[r]=Jr(a).toDate();break;case e.FieldType.LocalDateTime:n[r]=Jr(a,"YYYY-MM-DD[T]HH:mm:ss.SSS").toDate();break;case e.FieldType.Time:n[r]=Jr(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(o){var i=o.type,r=o.name,a=o.mask,s=o.scale,l=t.formGroup.get(r).value;if(l)switch(i){case e.FieldType.Number:a&&(l=new ae(l).toFixed(s).toString());break;case e.FieldType.Date:l=Jr(l).format("YYYY-MM-DD");break;case e.FieldType.DateTime:l=Jr(l).format();break;case e.FieldType.LocalDateTime:l=Jr(l).format("YYYY-MM-DD[T]HH:mm:ss.SSS");break;case e.FieldType.Time:l=Jr(l).format("HH:mm:ss")}null==l&&t.isTypeNumberOrEnum(i)?n[r]=o.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 o,i,r;switch(t.type){case Pr.Blob:r=this.getBlobParameters();break;case Pr.Boolean:r=this.getBooleanParameters();break;case"Enumeration":case Pr.Enum:t.type=e.FieldType.Enum,r=this.getEnumParameters(t);break;case Pr.Money:r={type:e.FieldType.Custom,CustomFieldComponentClass:pr,CustomFieldClass:vo,precision:15,scale:2,leftAddon:{label:null!==(i=null===(o=null==n?void 0:n.number)||void 0===o?void 0:o.currencySymbol)&&void 0!==i?i:"R$"},ignoreLabel:!0};break;case Pr.Double:r={type:e.FieldType.Custom,CustomFieldComponentClass:pr,CustomFieldClass:vo,precision:15,scale:2,ignoreLabel:!0};break;case Pr.Integer:r={type:e.FieldType.Custom,CustomFieldComponentClass:pr,CustomFieldClass:vo,precision:15,scale:0,ignoreLabel:!0};break;case Pr.Any:t.type=e.FieldType.String}return new Ro(ce({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)},showFileUploadDate:this.showFileUploadDate}},n.prototype.createFieldCustomization=function(e){this.hasBlob=!!e.filter((function(e){return e.type===Pr.Blob})).length,this.hasBlob&&this.formGroup.addControl("fieldCustomization",new a.FormArray([new a.FormGroup({domain:new a.FormControl(this.domain),service:new a.FormControl(this.service),entity:new a.FormControl(this.entity),toDelete:new a.FormControl({value:{},disabled:!1}),toInsert:new a.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,o=e.index,r=e.anchor,a=t.files[o];a.objectURL?r.nativeElement.click():this.customFieldsService.requestAccess(a.objectId,this.requestAccessEndpoint).pipe(i.takeUntil(this.ngUsubscribe)).subscribe((function(e){var s=e.fileName,l=e.uri;n.customFieldsService.getFile(l).pipe(i.takeUntil(n.ngUsubscribe)).subscribe((function(e){var i=new File([e],s);i.objectURL=n.sanitizer.bypassSecurityTrustUrl(l),r.nativeElement.setAttribute("href",l),i.objectId=a.objectId,i.savedFile=!0,t.files[o]=i,t.files=ge(t.files),r.nativeElement.click()}))}))},n.prototype.uploadFile=function(e,t){var n=this,r=e.files,a=this.fields.find((function(e){return e.name===t.name}));a.files&&a.files.length&&this.removeFile({file:a.files[0]},a),a.files=r;for(var s=function(e){var t=r[e];t.savedFile||t.progress||(t.isUploading=!0,l.formGroup.get(a.name).setValidators(function(e){return function(){return e.isUploading?{isUploading:!0}:null}}(t)),l.formGroup.get(a.name).updateValueAndValidity(),l.customFieldsService.getFileLocationUrl({domain:l.domain,service:l.service,entityName:l.entity,field:a.name,fileName:t.name},l.fileLocationEndpoint).pipe(i.takeUntil(l.ngUsubscribe),i.catchError((function(t){return o.of(n.defaltCatchError(a,t,e))}))).subscribe((function(r){var s=r.location,l=r.version,p=r.objectId;t.version=l,t.objectId=p,t.uploadSubscribe=n.customFieldsService.uploadTempFile(s,t).pipe(i.takeUntil(n.ngUsubscribe),i.catchError((function(t){return o.of(n.defaltCatchError(a,t,e))})),i.finalize((function(){t.isUploading=!1}))).subscribe((function(e){var o,i=e.type;if(n.uploadCanceled)n.uploadCanceled&&i===c.HttpEventType.Response&&(n.uploadCanceled=!1);else if(i===c.HttpEventType.UploadProgress)t.progress=100*Math.round(e.loaded/e.total);else if(i===c.HttpEventType.Response){t.objectURL=n.sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(t));var r={objectId:p,name:t.name,version:t.version},s=n.formGroup.get("fieldCustomization").value[0].toInsert;n.formGroup.get("fieldCustomization").value[0].toInsert=ce(ce({},s),((o={})[a.name]=r,o)),n.formGroup.get(a.name).setValue(t.objectId+"/"+t.name),n.formGroup.get(a.name).clearValidators(),n.formGroup.get(a.name).updateValueAndValidity(),a.files=[t]}})),a.files=[t]})))},l=this,p=0;p<r.length;p++)s(p)},n.prototype.removeFile=function(e,t){var n,o=e.file,i=this.fields.find((function(e){return e.name===t.name}));if(i.files=[],o.objectId){var r=o.savedFile?""+o.objectId:o.objectId+"/"+o.name,a=this.formGroup.get("fieldCustomization").value[0].toDelete;delete this.formGroup.get("fieldCustomization").value[0].toInsert[i.name],this.formGroup.get("fieldCustomization").value[0].toDelete=ce(ce({},a),((n={})[i.name]=ge(a[i.name]||[],[r]),n))}this.formGroup.get(i.name).clearValidators(),this.formGroup.get(i.name).setValue(""),this.formGroup.get(i.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,r=e.files;return r[n].error=t,r[n].isUploading=!1,e.files=ge(r),this.formGroup.get(e.name).setValidators([(i=r[n],function(){return i.error?{uploadError:!0}:null})]),this.formGroup.get(e.name).updateValueAndValidity(),o.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.prototype.addDisplayTimeInfoSignToFields=function(){var e=this;this.fields.forEach((function(t){t.displayTimeInfoSign=e.displayTimeInfoSign}))},n.ctorParameters=function(){return[{type:Xr},{type:Je},{type:K.DomSanitizer},{type:b.TranslateService},{type:a.ControlContainer,decorators:[{type:t.Optional}]}]},pe([t.Input()],n.prototype,"domain",void 0),pe([t.Input()],n.prototype,"service",void 0),pe([t.Input()],n.prototype,"entity",void 0),pe([t.Input()],n.prototype,"invalidErrorLabel",void 0),pe([t.Input()],n.prototype,"entityObject",void 0),pe([t.Input()],n.prototype,"customFieldsEndpoint",void 0),pe([t.Input()],n.prototype,"fileLocationEndpoint",void 0),pe([t.Input()],n.prototype,"requestAccessEndpoint",void 0),pe([t.Input()],n.prototype,"requiredErrorMessage",void 0),pe([t.Input()],n.prototype,"displayTimeInfoSign",void 0),pe([t.Input()],n.prototype,"showFileUploadDate",void 0),pe([t.Input()],n.prototype,"ready$",void 0),pe([t.Input()],n.prototype,"disableFields",void 0),n=r=pe([t.Component({selector:"s-custom-fields",template:'<s-dynamic-form [fields]="fields"\n [form]="formGroup"\n [errorMessages]="{\n pattern: invalidErrorLabel,\n required: requiredErrorMessage}">\n</s-dynamic-form>',providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:r,multi:!0},{provide:a.NG_VALIDATORS,useExisting:r,multi:!0}]}),de(4,t.Optional())],n)}();var ea,ta=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,c.HttpClientModule,ht,Zr,b.TranslateModule],declarations:[Qr],exports:[Qr],providers:[Xr,b.TranslateService]})],e)}(),na=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()||(f.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))},pe([t.Input()],e.prototype,"table",void 0),e=pe([t.Directive({selector:"p-table[sEditableOverlay]"})],e)}(),oa=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[na],exports:[na]})],e)}(),ia=d,ra=function(){function e(){}return e.parse=function(e){return ia(e).toDate()},e.toString=function(e,t){return void 0===t&&(t=!1),ia(e,t?"YYYY-MM-DD hh:mm:ss.SSS":"YYYY-MM-DD").toString()},e.format=function(e,t,n){void 0===t&&(t="YYYY-MM-DD HH:mm:ss.SSS"),void 0===n&&(n="en");var o=ia(e).locale(n).startOf("month").format("MMMM"),i=o.charAt(0).toUpperCase()+o.slice(1),r=ia(e).locale(n),a={YYYY:r.format("YYYY"),MM:r.format("MM"),DD:r.format("DD"),ddd:r.format("ddd").toUpperCase().replace(".",""),HH:r.format("HH"),mm:r.format("mm"),ss:r.format("ss"),SSS:r.format("SSS"),D:r.format("D"),MMMM:i,MMM:i},s=t,l=[];return Object.keys(a).sort((function(e,t){return t.length-e.length})).forEach((function(e){s.includes(e)&&(s=s.replace(e,"$"+l.length),l.push(a[e]))})),l.forEach((function(e,t){s=s.replace("$"+t,e)})),s},e.diff=function(e,t,n){var o=ia(e).diff(t,"millisecond"),i=ia(e).diff(t,"second"),r=ia(e).diff(t,"minute"),a=ia(e).diff(t,"hour"),s=ia(e).diff(t,"day"),l=ia(e).diff(t,"month"),c=ia(e).diff(t,"year");return n.endsWith("s")||(n+="s"),Math.floor({milliseconds:o,seconds:i,minutes:r,hours:a,days:s,months:l,years:c}[n])},e.today=function(){var e=ia().format("YYY-MM-DD");return new Date(e)},e.now=function(){return ia().toDate()},e.add=function(e,t,n){return ia(e).add(t,n).toDate()},e.startOf=function(e,t){var n,o=((n={}).year=6,n.month=5,n.day=4,n.hour=3,n.minute=2,n.second=1,n.millisecond=0,n);function i(e){var n=o[t];return o[e]<=n}var r=[e.getFullYear(),i("year")?0:e.getMonth(),i("month")?1:e.getDate(),i("day")?0:e.getHours(),i("hour")?0:e.getMinutes(),i("minute")?0:e.getSeconds(),i("second")?0:e.getMilliseconds()];return new Date(r[0],r[1],r[2],r[3],r[4],r[5],r[6])},e.clone=function(e){return ia(e).toDate()},e.getDateValues=function(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]},e.getDaysInMonth=function(e){return ia(e,"YYYY-MM").daysInMonth()},e}(),aa=function(e,t){return"string"==typeof e?(t||document).querySelector(e):e||null},sa=function(e,t){var n=document.createElementNS("http://www.w3.org/2000/svg",e);for(var o in t){if("append_to"===o)t.append_to.appendChild(n);else"innerHTML"===o?n.innerHTML=t.innerHTML:n.setAttribute(o,t[o])}return n},la=function(e,t,n,o,i,r){void 0===i&&(i="0.4s"),void 0===r&&(r="0.1s");var a=e.querySelector("animate");if(a)return aa.attr(a,{attributeName:t,from:n,to:o,dur:i,begin:"click + "+r},null),e;var s=sa("animate",{attributeName:t,from:n,to:o,dur:i,begin:r,calcMode:"spline",values:n+";"+o,keyTimes:"0; 1",keySplines:ca("ease-out")});return e.appendChild(s),e},ca=function(e){return{ease:".25 .1 .25 1",linear:"0 0 1 1","ease-in":".42 0 1 1","ease-out":"0 0 .58 1","ease-in-out":".42 0 .58 1"}[e]};aa.on=function(e,t,n,o){o?aa.delegate(e,t,n,o):aa.bind(e,t,o=n)},aa.off=function(e,t,n){e.removeEventListener(t,n)},aa.bind=function(e,t,n){t.split(/\s+/).forEach((function(t){e.addEventListener(t,n)}))},aa.delegate=function(e,t,n,o){e.addEventListener(t,(function(e){var t=e.target.closest(n);t&&(e.delegatedTarget=t,o.call(this,e,t))}))},aa.closest=function(e,t){return t?t.matches(e)?t:void 0:null},aa.attr=function(e,t,n){if(!n&&"string"==typeof t)return e.getAttribute(t);if("object"!=typeof t)e.setAttribute(t,n);else for(var o in t)aa.attr(e,o,t[o])},(ea=e.ViewMode||(e.ViewMode={})).QuarterHour="quarterHour",ea.Hour="hour",ea.QuarterDay="quarterDay",ea.HalfDay="halfDay",ea.Day="day",ea.Week="week",ea.Month="month",ea.Year="year";var pa=function(){function t(e,t){this._isPopUpOpen=!1,this._setDefaults(e,t),this._prepare(),this._draw(),this._bind()}return Object.defineProperty(t.prototype,"arrows",{get:function(){return this._arrows},set:function(e){this._arrows=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"task",{get:function(){return this._task},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"group",{get:function(){return this._group},enumerable:!0,configurable:!0}),t.prototype.updateBarPosition=function(e){var t=this,n=e.x,o=e.width,i=this.element;if(n){if(!this.task.dependencies.map((function(e){return t._gantt.get_bar(e).element.getX()})).reduce((function(e,t){return n>=t}),n))return void(o=null);this._updateAttr(i,"x",n)}o&&o>=this._gantt.options.columnWidth&&this._updateAttr(i,"width",o),this._updateLabelPosition(),this._updateArrowPosition()},t.prototype.dateChanged=function(){var e=!1,t=this._computeStartEndDate(),n=t.newStartDate,o=t.newEndDate;this.task.start!==n&&(e=!0,this.task.start=n),this.task.end!==o&&(e=!0,this.task.end=o),e&&this._gantt.trigger_event("onDateChange",[this.task,n,ra.add(o,-1,"second")])},t.prototype.setActionCompleted=function(){var e=this;this._actionCompleted=!0,setTimeout((function(){e._actionCompleted=!1}),1e3)},t.prototype._setDefaults=function(e,t){this._actionCompleted=!1,this._gantt=e,this._task=t},t.prototype._prepare=function(){this._prepareValues(),this._prepareHelpers()},t.prototype._prepareValues=function(){this._invalid=this.task.invalid,this._height=this._gantt.options.barHeight,this._x=this._computeX(),this._y=this._computeY(),this._cornerRadius=this._gantt.options.barCornerRadius,this._duration=ra.diff(this.task.end,this.task.start,"minute")/this._gantt.options.step/60,this._width=this._gantt.options.columnWidth*this._duration,this._group=sa("g",{class:"bar-wrapper "+(this.task.custom_class||""),"data-id":this.task.id}),this._barGroup=sa("g",{class:"bar-group",append_to:this.group})},t.prototype._prepareHelpers=function(){SVGElement.prototype.getX=function(){return+this.getAttribute("x")},SVGElement.prototype.getY=function(){return+this.getAttribute("y")},SVGElement.prototype.getWidth=function(){return+this.getAttribute("width")},SVGElement.prototype.getHeight=function(){return+this.getAttribute("height")},SVGElement.prototype.getEndX=function(){return this.getX()+this.getWidth()}},t.prototype._draw=function(){this._drawBar(),this._drawLabel()},t.prototype._drawBar=function(){this._element=sa("rect",{x:this._x,y:this._y,width:this._width,height:this._height,rx:this._cornerRadius,ry:this._cornerRadius,class:"bar",append_to:this._barGroup,fill:this.task.color}),function(e,t,n,o){var i=la(e,t,n,o);if(i===e){var r=document.createEvent("HTMLEvents");r.initEvent("click",!0,!0),i.dispatchEvent(r)}}(this.element,"width",0,this._width),this._invalid&&this.element.classList.add("bar-invalid")},t.prototype._drawLabel=function(){var e=this;sa("text",{x:this._x+this._width/2,y:this._y+this._height/2,innerHTML:this.task.showTaskName?this.task.name:"",class:"bar-label",append_to:this._barGroup}),requestAnimationFrame((function(){return e._updateLabelPosition()}))},t.prototype._bind=function(){this._invalid||this._setupClickEvent()},t.prototype._setupClickEvent=function(){var e=this;this._gantt.options.hasPopup?(aa.on(this.group,"focus "+this._gantt.options.popupTrigger,(function(t){e._actionCompleted||(e._showPopup(),e._gantt.unselect_all(),e.group.classList.add("active"))}),null),aa.on(this.group,"dblclick",(function(t){e._actionCompleted||e._gantt.trigger_event("onClick",[e.task])}),null)):(aa.on(this.group,"mouseenter",(function(t){e._isPopUpOpen||(e._showPopup({x:t.clientX,y:e.group.getBoundingClientRect().top+30,position:"middle"}),e._isPopUpOpen=!0)}),null),aa.on(this.group,"mouseleave",(function(t){e._gantt.hide_popup(),e._isPopUpOpen=!1}),null),aa.on(this.group,"focus click",(function(t){e._actionCompleted||(e._gantt.unselect_all(),e.group.classList.add("active"),e._gantt.trigger_event("onClick",[e.task]))}),null))},t.prototype._showPopup=function(e){if(!this._gantt.bar_being_dragged){var t={};this._gantt.options.showOnlyHours||(t.startDate=ra.format(this.task.start,"DD/MM/YYYY",this._gantt.options.language),t.endDate=ra.format(this.task.end,"DD/MM/YYYY",this._gantt.options.language)),this._gantt.options.showOnlyDays||(t.startHour=ra.format(this.task.start,"HH:mm:ss",this._gantt.options.language),t.endHour=ra.format(this.task.end,"HH:mm:ss",this._gantt.options.language)),this._gantt.show_popup(ce({target_element:this.element,title:this.task.name,subtitle:t,task:this.task},e))}},t.prototype._computeStartEndDate=function(){var e=this.element,t=e.getX()/this._gantt.options.columnWidth,n=ra.add(this._gantt.minDate,t*this._gantt.options.step,"hour"),o=e.getWidth()/this._gantt.options.columnWidth;return{newStartDate:n,newEndDate:ra.add(n,o*this._gantt.options.step,"hour")}},t.prototype._computeX=function(){var t,n=this._gantt.options,o=n.step,i=n.columnWidth;this._gantt.view_is([e.ViewMode.QuarterHour,e.ViewMode.Hour,e.ViewMode.QuarterDay,e.ViewMode.HalfDay,e.ViewMode.Day])?t=ra.diff(this.task.start,this._gantt.minDate,"minutes")/o*(i/60):t=ra.diff(this.task.start,this._gantt.minDate,"hour")/o*i;return t},t.prototype._computeY=function(){return this._gantt.options.headerHeight+this._gantt.options.padding+this.task._index*(this._height+this._gantt.options.padding)},t.prototype._updateAttr=function(e,t,n){return n=+n,isNaN(n)||e.setAttribute(t,n),e},t.prototype._updateLabelPosition=function(){var e=this.element,t=this.group.querySelector(".bar-label");t.getBBox().width>e.getWidth()?(t.classList.add("big"),t.setAttribute("x",e.getX()+e.getWidth()+5)):(t.classList.remove("big"),t.setAttribute("x",e.getX()+e.getWidth()/2))},t.prototype._updateArrowPosition=function(){var e,t;this._arrows=this._arrows||[];try{for(var n=he(this._arrows),o=n.next();!o.done;o=n.next()){o.value.update()}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t}(),da=function(){function e(e,t){this.parent=e,this.customHtml=t,this.make()}return e.prototype.show=function(e){var t,n,o,i;if(!e.target_element)throw new Error("target_element is required to show popup");e.position||(e.position="left");var r,a=e.target_element;if(this.parent.style.display="block",this.customHtml){var s=this.customHtml(e.task);s+='<div class="pointer"></div>',this.parent.innerHTML=s,this.pointer=this.parent.querySelector(".pointer")}else this.title.innerHTML=e.title,this.startDate.innerHTML=null!==(t=e.subtitle.startDate)&&void 0!==t?t:"",this.startHour.innerHTML=null!==(n=e.subtitle.startHour)&&void 0!==n?n:"",this.endDate.innerHTML=null!==(o=e.subtitle.endDate)&&void 0!==o?o:"",this.endHour.innerHTML=null!==(i=e.subtitle.endHour)&&void 0!==i?i:"",this.parent.style.width=this.parent.clientWidth+"px";a instanceof HTMLElement?r=a.getBoundingClientRect():a instanceof SVGElement&&(r=e.target_element.getBBox()),"middle"===e.position?(this.parent.style.position="fixed",this.parent.style.top=e.y+"px",this.pointer.style.transform="rotateZ(180deg)",this.pointer.style.top="-10px",e.x-17+this.parent.offsetWidth>window.innerWidth?(this.parent.style.left=e.x-this.parent.offsetWidth+17+"px",this.pointer.style.right="16px",this.pointer.style.left="auto"):(this.parent.style.left=e.x-17+"px",this.pointer.style.left="16px",this.pointer.style.right="auto")):"left"===e.position&&(this.parent.style.left=r.x+(r.width+10)+"px",this.parent.style.top=r.y+"px",this.pointer.style.transform="rotateZ(90deg)",this.pointer.style.left="-7px",this.pointer.style.top="2px"),this.parent.style.opacity=1},e.prototype.make=function(){this.parent.innerHTML='\n <div class="popup">\n <div class="wrp-title">\n <span class="title"></span>\n </div>\n <div class="wrp-subtitle">\n <span class="icon fas fa-calendar-alt"></span>\n <div style="margin-right: 15px">\n <p class="startDate"></p>\n <p class="startHour"></p>\n </div>\n <div>\n <p class="endDate"></p>\n <p class="endHour"></p>\n </div>\n </div>\n <div class="pointer"></div>\n </div>\n ',this.hide(),this.title=this.parent.querySelector(".title"),this.startDate=this.parent.querySelector(".startDate"),this.startHour=this.parent.querySelector(".startHour"),this.endDate=this.parent.querySelector(".endDate"),this.endHour=this.parent.querySelector(".endHour"),this.pointer=this.parent.querySelector(".pointer")},e.prototype.hide=function(){this.parent.style.opacity=0,this.parent.style.display="none",this.parent.style.left=0},e}(),ua=function(){function e(e,t,n){this._gantt=e,this._fromTask=t,this._toTask=n,this.calculatePath(),this.draw()}return Object.defineProperty(e.prototype,"fromTask",{get:function(){return this._fromTask},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"toTask",{get:function(){return this._toTask},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),e.prototype.update=function(){this.calculatePath(),this._element.setAttribute("d",this._path)},e.prototype.calculatePath=function(){for(var e=this,t=this.fromTask.element.getX()+this.fromTask.element.getWidth()/2;e.toTask.element.getX()<t+e._gantt.options.padding&&t>e.fromTask.element.getX()+e._gantt.options.padding;)t-=10;var n=this._gantt.options.headerHeight+this._gantt.options.barHeight+(this._gantt.options.padding+this._gantt.options.barHeight)*this.fromTask.task._index+this._gantt.options.padding,o=this.toTask.element.getX()-this._gantt.options.padding/2,i=this._gantt.options.headerHeight+this._gantt.options.barHeight/2+(this._gantt.options.padding+this._gantt.options.barHeight)*this.toTask.task._index+this._gantt.options.padding,r=this.fromTask.task._index>this.toTask.task._index,a=this._gantt.options.arrowCurve,s=r?1:0,l=r?-a:a,c=r?i+this._gantt.options.arrowCurve:i-this._gantt.options.arrowCurve;if(this._path="\n M "+t+" "+n+"\n V "+c+"\n a "+a+" "+a+" 0 0 "+s+" "+a+" "+l+"\n L "+o+" "+i+"\n m -5 -5\n l 5 5\n l -5 5",this.toTask.element.getX()<this.fromTask.element.getX()+this._gantt.options.padding){var p=this._gantt.options.padding/2-a,d=this.toTask.element.getY()+this.toTask.element.getHeight()/2-l,u=this.toTask.element.getX()-this._gantt.options.padding;this._path="\n M "+t+" "+n+"\n v "+p+"\n a "+a+" "+a+" 0 0 1 -"+a+" "+a+"\n H "+u+"\n a "+a+" "+a+" 0 0 "+s+" -"+a+" "+l+"\n V "+d+"\n a "+a+" "+a+" 0 0 "+s+" "+a+" "+l+"\n L "+o+" "+i+"\n m -5 -5\n l 5 5\n l -5 5"}},e.prototype.draw=function(){this._element=sa("path",{d:this._path,"data-from":this.fromTask.task.id,"data-to":this.toTask.task.id})},e}(),ma={headerHeight:94,columnWidth:30,step:24,barHeight:20,barCornerRadius:0,arrowCurve:4,padding:24,viewMode:e.ViewMode.Day,dateFormat:"YYYY-MM-DD",popupTrigger:"click",customPopupHtml:null,language:"en",allowMovement:!0,hasPopup:!0,showOnlyHours:!1,showOnlyDays:!1},ha=function(){function t(e,t,n){this.setup_options(n),this.setup_wrapper(e),this.setup_tasks(t),this.change_view_mode(),this.bind_events()}return Object.defineProperty(t.prototype,"minDate",{get:function(){return this._minDate},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxDate",{get:function(){return this._maxDate},enumerable:!0,configurable:!0}),t.prototype.setup_wrapper=function(e){var t,n;if("string"==typeof e&&(e=document.querySelector(e)),e instanceof HTMLElement)n=e,t=e.querySelector("svg");else{if(!(e instanceof SVGElement))throw new TypeError("Frappé Gantt only supports usage of a string CSS selector, HTML DOM element or SVG DOM element for the 'element' parameter");t=e}t?(this.$svg=t,this.$svg.classList.add("gantt")):this.$svg=sa("svg",{append_to:n,class:"gantt"}),this.$container=document.createElement("div"),this.$container.classList.add("gantt-container"),this.options.containerWidth&&(this.$container.style.width=this.options.containerWidth+"px"),this.$svg.parentElement.appendChild(this.$container),this.$container.appendChild(this.$svg),this.popup_wrapper=document.createElement("div"),this.popup_wrapper.classList.add("popup-wrapper"),this.$container.appendChild(this.popup_wrapper)},t.prototype.setup_options=function(e){this.options=Object.assign({},ma,e)},t.prototype.setup_tasks=function(e){this.tasks=e.map((function(e,t){if(e.color=e.color||"#7892A1",e._start=ra.parse(e.start),e._end=ra.parse(e.end),ra.diff(e._end,e._start,"year")>10&&(e.end=null),e._index=t,"number"==typeof e._row_id&&(e._index=e._row_id),!e.start&&!e.end){var n=ra.today();e._start=n,e._end=ra.add(n,2,"day")}if(!e.start&&e.end&&(e._start=ra.add(e._end,-2,"day")),e.start&&!e.end&&(e._end=ra.add(e._start,2,"day")),ra.getDateValues(e._end).slice(3).every((function(e){return 0===e}))&&(e._end=ra.add(e._end,24,"hour")),e.start&&e.end||(e.invalid=!0),"string"==typeof e.dependencies||!e.dependencies){var o=[];e.dependencies&&(o=e.dependencies.split(",").map((function(e){return e.trim()})).filter((function(e){return e}))),e.dependencies=o}return e.id||(e.id=function(e){return e.name+"_"+Math.random().toString(36).slice(2,12)}(e)),e})),this.setup_dependencies()},t.prototype.setup_dependencies=function(){var e,t,n,o;this.dependency_map={};try{for(var i=he(this.tasks),r=i.next();!r.done;r=i.next()){var a=r.value;try{for(var s=(n=void 0,he(a.dependencies)),l=s.next();!l.done;l=s.next()){var c=l.value;this.dependency_map[c]=this.dependency_map[c]||[],this.dependency_map[c].push(a.id)}}catch(e){n={error:e}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},t.prototype.refresh=function(e){this.setup_tasks(e),this.change_view_mode()},t.prototype.change_view_mode=function(e){void 0===e&&(e=this.options.viewMode),this.setup_gantt_dates(),this.update_view_scale(e),this.setup_dates(),this.render(),this.trigger_event("onViewChange",[e])},t.prototype.update_view_scale=function(t){this.options.viewMode=t,t===e.ViewMode.QuarterHour?(this.options.step=1/4,this.options.columnWidth=50):t===e.ViewMode.Hour?(this.options.step=1,this.options.columnWidth=50):t===e.ViewMode.Day?(this.options.step=24,this.options.columnWidth=50):t===e.ViewMode.HalfDay?(this.options.step=12,this.options.columnWidth=50):t===e.ViewMode.QuarterDay?(this.options.step=6,this.options.columnWidth=50):t===e.ViewMode.Week?(this.options.step=168,this.options.columnWidth=140):t===e.ViewMode.Month?(this.options.step=720,this.options.columnWidth=120):t===e.ViewMode.Year&&(this.options.step=8760,this.options.columnWidth=120)},t.prototype.setup_dates=function(){this.setup_date_values()},t.prototype.setup_gantt_dates=function(){var t,n,o,i,r,a,s,l,c,p,d,u,m,h,f,g,v,b;this._minDate=null,this._maxDate=null;try{for(var y=he(this.tasks),x=y.next();!x.done;x=y.next()){var _=x.value;(!this.minDate||_.start<this.minDate)&&(this._minDate=ra.startOf(_.start,"day")),(!this.maxDate||_.end>this.maxDate)&&(this._maxDate=_.end)}}catch(e){t={error:e}}finally{try{x&&!x.done&&(n=y.return)&&n.call(y)}finally{if(t)throw t.error}}switch(this.options.viewMode){case e.ViewMode.QuarterHour:this._minDate=ra.add(this.minDate,-(null!==(o=this.options.marginBeforeStart)&&void 0!==o?o:15),"minutes"),this._maxDate=ra.add(this.maxDate,null!==(i=this.options.marginAfterEnd)&&void 0!==i?i:15,"minutes");case e.ViewMode.Hour:this._minDate=ra.add(this.minDate,-(null!==(r=this.options.marginBeforeStart)&&void 0!==r?r:1),"hour"),this._maxDate=ra.add(this.maxDate,null!==(a=this.options.marginAfterEnd)&&void 0!==a?a:1,"hour");break;case e.ViewMode.QuarterDay:this._minDate=ra.add(this.minDate,-(null!==(s=this.options.marginBeforeStart)&&void 0!==s?s:6),"hour"),this._maxDate=ra.add(this.maxDate,null!==(l=this.options.marginAfterEnd)&&void 0!==l?l:6,"hour");break;case e.ViewMode.HalfDay:this._minDate=ra.add(this.minDate,-(null!==(c=this.options.marginBeforeStart)&&void 0!==c?c:12),"hour"),this._maxDate=ra.add(this.maxDate,null!==(p=this.options.marginAfterEnd)&&void 0!==p?p:12,"hour");break;case e.ViewMode.Day:this._minDate=ra.add(this.minDate,-(null!==(d=this.options.marginBeforeStart)&&void 0!==d?d:1),"day"),this._maxDate=ra.add(this.maxDate,null!==(u=this.options.marginAfterEnd)&&void 0!==u?u:1,"day");break;case e.ViewMode.Week:this._minDate=ra.add(this.minDate,-(null!==(m=this.options.marginBeforeStart)&&void 0!==m?m:1),"week"),this._maxDate=ra.add(this.maxDate,null!==(h=this.options.marginAfterEnd)&&void 0!==h?h:1,"week");break;case e.ViewMode.Month:this._minDate=ra.add(this.minDate,-(null!==(f=this.options.marginBeforeStart)&&void 0!==f?f:1),"month"),this._maxDate=ra.add(this.maxDate,null!==(g=this.options.marginAfterEnd)&&void 0!==g?g:1,"month");break;case e.ViewMode.Year:this._minDate=ra.add(this.minDate,-(null!==(v=this.options.marginBeforeStart)&&void 0!==v?v:1),"year"),this._maxDate=ra.add(this.maxDate,null!==(b=this.options.marginAfterEnd)&&void 0!==b?b:1,"year")}},t.prototype.setup_date_values=function(){this.dates=[];for(var t=null;null===t||t<this.maxDate;)t=t?this.view_is(e.ViewMode.Year)?ra.add(t,1,"year"):this.view_is(e.ViewMode.Month)?ra.add(t,1,"month"):ra.add(t,this.options.step,"hour"):ra.clone(this.minDate),this.dates.push(t);if(this.options.containerWidth){var n=(this.options.containerWidth-1)/this.dates.length;this.options.columnWidth=n<45?45:n}},t.prototype.bind_events=function(){this.bind_grid_click(),this.bind_bar_events()},t.prototype.render=function(){this.clear(),this.setup_layers(),this.make_grid(),this.make_dates(),this.make_bars(),this.make_arrows(),this.map_arrows_on_bars(),this.set_width(),this.set_scroll_position()},t.prototype.setup_layers=function(){var e,t;this.layers={};try{for(var n=he(["grid","date","arrow","progress","bar","details"]),o=n.next();!o.done;o=n.next()){var i=o.value;this.layers[i]=sa("g",{class:i,append_to:this.$svg})}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.make_grid=function(){this.make_grid_background(),this.make_grid_rows(),this.make_grid_header(),this.make_grid_highlights(),this.make_grid_ticks()},t.prototype.make_grid_background=function(){var e=this.dates.length*this.options.columnWidth;this.options.containerWidth&&(e=this.options.containerWidth);var t=ge(new Set(this.tasks.map((function(e){return e._row_id})))),n=this.options.headerHeight+this.options.padding/2+(this.options.barHeight+this.options.padding)*t.length;sa("rect",{x:0,y:0,width:e,height:n,class:"grid-background",append_to:this.layers.grid}),aa.attr(this.$svg,{height:n,width:"100%"},null)},t.prototype.make_grid_rows=function(){var e=this,t=sa("g",{append_to:this.layers.grid}),n=sa("g",{append_to:this.layers.grid}),o=this.dates.length*this.options.columnWidth,i=this.options.barHeight+this.options.padding,r=this.options.headerHeight+this.options.padding/2;this.tasks.forEach((function(a){sa("rect",{x:0,y:r,width:o,height:i,class:"grid-row",append_to:t}),sa("line",{x1:0,y1:r+i,x2:o,y2:r+i,class:"row-line",append_to:n}),r+=e.options.barHeight+e.options.padding}))},t.prototype.make_grid_header=function(){var e=this.dates.length*this.options.columnWidth,t=this.options.headerHeight+10;sa("rect",{x:0,y:0,width:e,height:t,class:"grid-header",append_to:this.layers.grid})},t.prototype.make_grid_ticks=function(){var t,n,o=0,i=this.options.headerHeight+this.options.padding/2,r=(this.options.barHeight+this.options.padding)*this.tasks.length;try{for(var a=he(this.dates),s=a.next();!s.done;s=a.next()){var l=s.value,c="tick";(this.view_is(e.ViewMode.QuarterHour)&&0===l.getHours()&&0===l.getMinutes()||this.view_is([e.ViewMode.Hour,e.ViewMode.QuarterDay,e.ViewMode.HalfDay])&&0===l.getHours()||this.view_is(e.ViewMode.Day)&&1===l.getDate()||this.view_is(e.ViewMode.Week)&&l.getDate()>=1&&l.getDate()<8||this.view_is(e.ViewMode.Month)&&l.getMonth()%3==0)&&(c+=" thick"),sa("path",{d:"M "+o+" "+i+" v "+r,class:c,append_to:this.layers.grid}),this.view_is(e.ViewMode.Month)?o+=ra.getDaysInMonth(l)*this.options.columnWidth/30:o+=this.options.columnWidth}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}},t.prototype.make_grid_highlights=function(){var t,n;if(this.view_is(e.ViewMode.Day)){var o=this.options.columnWidth,i=(this.options.barHeight+this.options.padding)*this.tasks.length+this.options.headerHeight+this.options.padding/2,r=0;try{for(var a=he(this.dates),s=a.next();!s.done;s=a.next()){var l=s.value,c=(this.options.headerHeight+this.options.padding)/2,p=l==ra.today(),d=0==l.getDay()||6==l.getDay(),u=void 0;p?(u="today-highlight",c=(this.options.headerHeight+this.options.padding)/2):d&&(u="weekend-highlight");(p||d)&&sa("rect",{x:r,y:c,rx:3,ry:3,width:o,height:i,class:u,append_to:this.layers.grid}),r+=this.options.columnWidth}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}}},t.prototype.make_dates=function(){for(var e=this.get_dates_to_draw(),t=0;t<e.length;t++){var n=e[t];if(sa("text",{x:n.lower_x,y:n.lower_y+20,innerHTML:n.lower_text,class:"title-2",append_to:this.layers.date}),n.middle_text&&sa("text",{x:n.middle_x,y:n.middle_y,innerHTML:n.middle_text,class:"middle-text",append_to:this.layers.date}),n.upper_text){var o=sa("text",{x:n.upper_x,y:n.upper_y,innerHTML:n.upper_text,class:"upper-text",append_to:this.layers.date});o.getBBox().x2>this.layers.grid.getBBox().width&&o.remove()}}},t.prototype.get_dates_to_draw=function(){var e=this,t=null;return this.dates.map((function(n,o){var i=e.get_date_info(n,t,o);return t=n,i}))},t.prototype.get_date_info=function(e,t,n){t||(t=ra.add(e,1,"year"));var o={quarterHourUpper:e.getDate()!==t.getDate()?ra.format(e,"D MMM",this.options.language):"",quarterHourLower:ra.format(e,"HH:mm",this.options.language),hourUpper:e.getDate()!==t.getDate()?ra.format(e,"D MMM",this.options.language):"",hourLower:ra.format(e,"HH:mm",this.options.language),quarterDayUpper:e.getDate()!==t.getDate()?ra.format(e,"D MMM",this.options.language):"",quarterDayLower:ra.format(e,"HH:mm",this.options.language),halfDayUpper:e.getDate()!==t.getDate()?e.getMonth()!==t.getMonth()||n<2?ra.format(e,"D MMM",this.options.language):ra.format(e,"D",this.options.language):"",halfDayLower:ra.format(e,"HH:mm",this.options.language),dayUpper:e.getMonth()!==t.getMonth()||0===n?ra.format(e,"MMMM",this.options.language):"",dayMiddle:ra.format(e,"ddd",this.options.language),dayLower:ra.format(e,"D",this.options.language),weekUpper:e.getMonth()!==t.getMonth()?ra.format(e,"MMMM",this.options.language):"",weekLower:e.getMonth()!==t.getMonth()?ra.format(e,"D MMM",this.options.language):ra.format(e,"D",this.options.language),monthUpper:e.getFullYear()!==t.getFullYear()?ra.format(e,"YYYY",this.options.language):"",monthLower:ra.format(e,"MMMM",this.options.language),yearUpper:e.getFullYear()!==t.getFullYear()?ra.format(e,"YYYY",this.options.language):"",yearLower:ra.format(e,"YYYY",this.options.language)},i={x:n*this.options.columnWidth,upper_y:this.options.headerHeight-20-25,middle_y:this.options.headerHeight-20,lower_y:this.options.headerHeight-20},r={quarterHourUpper:this.dates.length<14?this.options.columnWidth:24*this.options.columnWidth/2,quarterHourMiddle:this.options.columnWidth/2,quarterHourLower:this.options.columnWidth/2,hourUpper:this.dates.length<14?this.options.columnWidth:24*this.options.columnWidth/2,hourMiddle:this.options.columnWidth/2,hourLower:this.options.columnWidth/2,quarterDayUpper:4*this.options.columnWidth/2,quarterDayMiddle:this.options.columnWidth/2,quarterDayLower:this.options.columnWidth/2,halfDayUpper:2*this.options.columnWidth/2,halfDayMiddle:this.options.columnWidth/2,halfDayLower:this.options.columnWidth/2,dayUpper:this.dates.length<15?this.options.columnWidth:30*this.options.columnWidth/2,dayMiddle:this.options.columnWidth/2-12,dayLower:this.options.columnWidth/2,weekUpper:4*this.options.columnWidth/2,weekMiddle:0,weekLower:0,monthUpper:this.dates.length<15?this.options.columnWidth:12*this.options.columnWidth/2,monthMiddle:0,monthLower:this.options.columnWidth/2,yearUpper:30*this.options.columnWidth/2,yearMiddle:this.options.columnWidth/2,yearLower:this.options.columnWidth/2};return{upper_text:o[this.options.viewMode+"Upper"],middle_text:o[this.options.viewMode+"Middle"],lower_text:o[this.options.viewMode+"Lower"],upper_x:i.x+r[this.options.viewMode+"Upper"],upper_y:i.upper_y,middle_x:i.x+r[this.options.viewMode+"Middle"],middle_y:i.middle_y,lower_x:i.x+r[this.options.viewMode+"Lower"],lower_y:i.lower_y,date:e}},t.prototype.make_bars=function(){var e=this;this.bars=this.tasks.map((function(t){var n=new pa(e,t);return e.layers.bar.appendChild(n.group),n}))},t.prototype.make_arrows=function(){var e,t,n=this;this.arrows=[];var o=function(e){var t;t=e.dependencies.map((function(t){var o=n.get_task(t);if(o){var i=new ua(n,n.bars[o._index],n.bars[e._index]);return n.layers.arrow.appendChild(i.element),i}})).filter(Boolean),i.arrows=i.arrows.concat(t)},i=this;try{for(var r=he(this.tasks),a=r.next();!a.done;a=r.next()){o(a.value)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},t.prototype.map_arrows_on_bars=function(){var e,t,n=function(e){e.arrows=o.arrows.filter((function(t){return t.fromTask.task.id===e.task.id||t.toTask.task.id===e.task.id}))},o=this;try{for(var i=he(this.bars),r=i.next();!r.done;r=i.next()){n(r.value)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},t.prototype.set_width=function(){var e=this.$svg.getBoundingClientRect().width,t=this.$svg.querySelector(".grid .grid-row").getAttribute("width");e<t&&this.$svg.setAttribute("width",t)},t.prototype.set_scroll_position=function(){var e=this.$svg.parentElement;if(e){var t=ra.diff(this.get_oldest_starting_date(),this.minDate,"hour")/this.options.step*this.options.columnWidth-this.options.columnWidth;e.scrollLeft=t}},t.prototype.bind_grid_click=function(){var e=this;aa.on(this.$svg,this.options.popupTrigger,".grid-row, .grid-header",(function(){e.unselect_all(),e.hide_popup()}))},t.prototype.bind_bar_events=function(){var e=this,t=!1,n=0,o=!1,i=!1,r=null,a=[];this.bar_being_dragged=null,aa.on(this.$svg,"mousedown",".bar-wrapper, .handle",(function(s,l){var c=aa.closest(".bar-wrapper",l);l.classList.contains("left")?o=!0:l.classList.contains("right")?i=!0:l.classList.contains("bar-wrapper")&&e.options.allowMovement&&(t=!0),c.classList.add("active"),n=s.offsetX;var p=ge([r=c.getAttribute("data-id")],e.get_all_dependent_tasks(r));a=p.map((function(t){return e.get_bar(t)})),e.bar_being_dragged=r,a.forEach((function(e){var t=e.element;t.ox=t.getX(),t.oy=t.getY(),t.owidth=t.getWidth(),t.finaldx=0}))})),aa.on(this.$svg,"mousemove",(function(s){if(t||o||i){var l=s.offsetX-n;a.forEach((function(n){var a=n.element;a.finaldx=e.get_snap_position(l),e.hide_popup(),o?r===n.task.id?n.updateBarPosition({x:a.ox+a.finaldx,width:a.owidth-a.finaldx}):n.updateBarPosition({x:a.ox+a.finaldx}):i?r===n.task.id&&n.updateBarPosition({width:a.owidth+a.finaldx}):t&&n.updateBarPosition({x:a.ox+a.finaldx})}))}}),null),document.addEventListener("mouseup",(function(n){(t||o||i||!e.options.allowMovement)&&a.forEach((function(e){return e.group.classList.remove("active")})),t=!1,o=!1,i=!1})),aa.on(this.$svg,"mouseup",(function(t){e.bar_being_dragged=null,a.forEach((function(e){e.element.finaldx&&(e.dateChanged(),e.setActionCompleted())}))}),null)},t.prototype.get_all_dependent_tasks=function(e){for(var t=this,n=[],o=[e];o.length;){var i=o.reduce((function(e,n){return e=e.concat(t.dependency_map[n])}),[]);n=n.concat(i),o=i.filter((function(e){return!o.includes(e)}))}return n.filter(Boolean)},t.prototype.get_snap_position=function(t){var n,o=t;return this.view_is(e.ViewMode.Hour)?o-(n=t%(this.options.columnWidth/6))+(n<this.options.columnWidth/12?0:this.options.columnWidth/6):this.view_is(e.ViewMode.Week)?o-(n=t%(this.options.columnWidth/7))+(n<this.options.columnWidth/14?0:this.options.columnWidth/7):this.view_is(e.ViewMode.Month)?o-(n=t%(this.options.columnWidth/30))+(n<this.options.columnWidth/60?0:this.options.columnWidth/30):o-(n=t%this.options.columnWidth)+(n<this.options.columnWidth/2?0:this.options.columnWidth)},t.prototype.unselect_all=function(){ge(this.$svg.querySelectorAll(".bar-wrapper")).forEach((function(e){e.classList.remove("active")}))},t.prototype.view_is=function(e){var t=this;return Array.isArray(e)?e.some((function(e){return t.options.viewMode===e})):this.options.viewMode===e},t.prototype.get_task=function(e){return this.tasks.find((function(t){return t.id===e}))},t.prototype.get_bar=function(e){return this.bars.find((function(t){return t.task.id===e}))},t.prototype.show_popup=function(e){this.popup||(this.popup=new da(this.popup_wrapper,this.options.customPopupHtml)),this.popup.show(e)},t.prototype.hide_popup=function(){this.popup&&this.popup.hide()},t.prototype.trigger_event=function(e,t){this.options[e]&&this.options[e].apply(null,t)},t.prototype.get_oldest_starting_date=function(){return this.tasks.map((function(e){return e._start})).reduce((function(e,t){return t<=e?t:e}))},t.prototype.clear=function(){this.$svg.innerHTML=""},t}();var fa,ga=function(){function n(){this.multipleTaskPerLine=!1,this.showSideTable=!0,this.viewMode=e.ViewMode.Day,this.allowMovement=!0,this.hasPopup=!0,this.fullWidth=!1,this.showOnlyHours=!1,this.showOnlyDays=!1,this.taskClicked=new t.EventEmitter,this.taskDateChanged=new t.EventEmitter,this.viewChanged=new t.EventEmitter}return n.prototype.ngOnInit=function(){this._validateViewMode(),this._validateTasks()},n.prototype.ngAfterViewInit=function(){var e=this;this.fullWidth&&(this.containerWidth=this.outer.nativeElement.offsetWidth-this.side.nativeElement.offsetWidth),this._gantt=new ha("#gantt",this._filterTask(this.tasks),{viewMode:this.viewMode,marginBeforeStart:this.marginBeforeStart,marginAfterEnd:this.marginAfterEnd,language:"pt-br",allowMovement:this.allowMovement,hasPopup:this.hasPopup,containerWidth:this.containerWidth,showOnlyHours:this.showOnlyHours,showOnlyDays:this.showOnlyDays,onClick:function(t){return e.taskClicked.emit(t)},onDateChange:function(t,n,o){return e.taskDateChanged.emit({task:t,start:n,end:o})},onViewChange:function(t){return e.viewChanged.emit(t)}})},n.prototype.ngOnChanges=function(e){this._gantt&&(e.viewMode&&(this._gantt.options.viewMode=e.viewMode.currentValue,this._gantt.change_view_mode()),e.tasks&&this._gantt.refresh(this._filterTask(e.tasks.currentValue)))},n.prototype._filterTask=function(e){var t=[];if(this.multipleTaskPerLine)e.forEach((function(e,n){t.push.apply(t,ge(e.tasks.map((function(e){return ce(ce({},e),{_row_id:n})}))))}),[]);else{var n=0;e.forEach((function(e){t.push.apply(t,ge(e.tasks.map((function(e){return ce(ce({},e),{_row_id:n++})}))))}),[])}return t},n.prototype._validateViewMode=function(){if(![e.ViewMode.QuarterHour,e.ViewMode.Hour,e.ViewMode.QuarterDay,e.ViewMode.HalfDay,e.ViewMode.Day,e.ViewMode.Week,e.ViewMode.Month,e.ViewMode.Year].includes(this.viewMode))throw new Error("Invalid gantt view mode")},n.prototype._validateTasks=function(){this.tasks.forEach((function(e){e.tasks.forEach((function(e){if(e.start>e.end)throw new Error("invalid task. The start date must be less than the end date.")}))}))},pe([t.Input()],n.prototype,"columnTitle",void 0),pe([t.Input()],n.prototype,"multipleTaskPerLine",void 0),pe([t.Input()],n.prototype,"showSideTable",void 0),pe([t.Input()],n.prototype,"viewMode",void 0),pe([t.Input()],n.prototype,"tasks",void 0),pe([t.Input()],n.prototype,"marginBeforeStart",void 0),pe([t.Input()],n.prototype,"marginAfterEnd",void 0),pe([t.Input()],n.prototype,"allowMovement",void 0),pe([t.Input()],n.prototype,"hasPopup",void 0),pe([t.Input()],n.prototype,"containerWidth",void 0),pe([t.Input()],n.prototype,"fullWidth",void 0),pe([t.Input()],n.prototype,"showOnlyHours",void 0),pe([t.Input()],n.prototype,"showOnlyDays",void 0),pe([t.Output()],n.prototype,"taskClicked",void 0),pe([t.Output()],n.prototype,"taskDateChanged",void 0),pe([t.Output()],n.prototype,"viewChanged",void 0),pe([t.ViewChild("outer")],n.prototype,"outer",void 0),pe([t.ViewChild("side")],n.prototype,"side",void 0),n=pe([t.Component({selector:"s-gantt",template:'<div class="outer" #outer>\n <div #side>\n <gantt-side-table\n *ngIf="showSideTable"\n [tasks]="tasks"\n [columnTitle]="columnTitle"\n [multipleTaskPerLine]="multipleTaskPerLine">\n </gantt-side-table>\n </div>\n <svg id="gantt"></svg>\n</div>\n',encapsulation:t.ViewEncapsulation.None,styles:[".outer{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:start;align-items:flex-start;-ms-flex-line-pack:center;align-content:center;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-direction:row;flex-direction:row}",'.gantt{border:1px solid #e0e0e0}.gantt .weekend-highlight{fill:#b8c2cc;opacity:.5;stroke:#ebeff2;stroke-width:1}.gantt .grid-background{fill:none}.gantt .grid-header,.gantt .grid-row{fill:#fff}.gantt .grid-row:nth-child(even){fill:#f5f5f5}.gantt .row-line{stroke:#ebeff2}.gantt .tick{stroke:#e0e0e0;stroke-width:.4}.gantt .tick.thick{stroke:#428bca;stroke-width:2}.gantt .today-highlight{fill:#ffe979;opacity:.5}.gantt .arrow{fill:none;stroke:#666;stroke-width:1.4}.gantt .bar{opacity:.8;stroke:#8d99a6;stroke-width:0;transition:stroke-width .3s;-webkit-user-select:none;-ms-user-select:none;user-select:none}.gantt .bar-invalid{fill:transparent;stroke:#8d99a6;stroke-dasharray:5;stroke-width:1}.gantt .bar-invalid~.bar-label{fill:#555}.gantt .bar-label{fill:#fff;text-anchor:middle;font-size:12px;font-weight:lighter}.gantt .bar-label.big{fill:#555;text-anchor:start}.gantt .bar-wrapper{cursor:pointer;outline:0}.gantt .bar-wrapper.active .bar,.gantt .bar-wrapper:hover .bar{opacity:1}.gantt .bar-wrapper.active .bar{stroke:#212533;stroke-width:2}.gantt .lower-text,.gantt .upper-text{font-size:12px;text-anchor:middle}.gantt .upper-text{fill:#555}.gantt .lower-text{fill:#333}.gantt .hide{display:none}.gantt-container{border-left:1px solid #e0e0e0;font-size:12px;overflow:auto;position:relative}.gantt-container .title-1{fill:#999;font-size:12px;font-weight:400;line-height:150%;text-anchor:middle}.gantt-container .title-2{fill:#333;font-size:14px;font-weight:400;line-height:150%;text-anchor:middle}.gantt-container .popup-wrapper{left:0;position:absolute;top:0}.gantt-container .popup-wrapper .popup{background:#0e1119;border-radius:2px;color:#fff;padding:8px;font-family:"Open Sans" sans-serif;line-height:150%;font-weight:400}.gantt-container .popup-wrapper .popup .wrp-title{border-bottom:1px solid #525966;padding-bottom:10px}.gantt-container .popup-wrapper .popup .wrp-title .title{font-size:14px}.gantt-container .popup-wrapper .popup .wrp-subtitle{color:#dfe2e5;padding-top:10px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.gantt-container .popup-wrapper .popup .wrp-subtitle .icon{margin-right:10px}.gantt-container .popup-wrapper .popup .wrp-subtitle .subtitle{font-size:12px}.gantt-container .popup-wrapper .popup .pointer{border:6px solid transparent;border-top-color:#0e1119;height:6px;margin-left:-4px;position:absolute}']})],n)}(),va=function(){function e(){this.ROW_HEIGHT=44,this.multipleTaskPerLine=!1}return e.prototype.ngOnInit=function(){this._removeEmptyTasks()},e.prototype._removeEmptyTasks=function(){this.tasks=this.tasks.filter((function(e){return e.tasks.length}))},pe([t.Input()],e.prototype,"columnTitle",void 0),pe([t.Input()],e.prototype,"tasks",void 0),pe([t.Input()],e.prototype,"multipleTaskPerLine",void 0),e=pe([t.Component({selector:"gantt-side-table",template:'<div class="side-table">\n <div class="column-title">\n <span>{{ columnTitle }}</span>\n </div>\n <div class="tasks" >\n <div\n *ngFor="let task of tasks; let i = index"\n class="task"\n [ngStyle]="{\'height.px\': multipleTaskPerLine\n ? ROW_HEIGHT\n : ROW_HEIGHT * task.tasks.length}"\n [sTooltip]="task.title.length > 20 || task.subtitle.length > 20 ? \'<span><strong>\' + task.title + \' </strong></br><span> \' + task.subtitle + \' </span></span>\' : \'\' "\n [escape]="false">\n <div class="title">\n {{ task.title }}\n </div>\n <div class="subtitle">\n {{ task.subtitle }}\n </div>\n </div>\n </div>\n</div>\n',styles:['.side-table{background:#fff;height:100%;min-width:175px}.side-table .column-title{height:106px;border:1px solid #e0e0e0;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:center;justify-content:center;padding:8px}.side-table .column-title span{font-family:"Open Sans" sans-serif;font-size:14px;font-weight:700;line-height:150%}.side-table .task{-ms-flex-align:center;align-items:center;background-color:#fff;border:1px solid #e0e0e0;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-family:"Open Sans",sans-serif;font-weight:400;-ms-flex-pack:center;justify-content:center;line-height:150%;padding:0 5px}.side-table .task .title{color:#333;font-size:14px;max-width:300px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.side-table .task .subtitle{color:#999;font-size:12px;max-width:300px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}']})],e)}(),ba=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Ae],declarations:[ga,va],exports:[ga]})],e)}();(fa=e.GlobalSearchSizeEnum||(e.GlobalSearchSizeEnum={})).STANDARD="STANDARD",fa.MEDIUM="MEDIUM",fa.SMALL="SMALL";var ya,xa=function(){function n(){this.id="s-global-search-dropdown-item-"+o.nextId++,this.size=e.GlobalSearchSizeEnum.STANDARD,this.buttonClick=new t.EventEmitter}var o;return o=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,pe([t.Input()],n.prototype,"id",void 0),pe([t.Input()],n.prototype,"primaryLabel",void 0),pe([t.Input()],n.prototype,"secondaryEmptyLabel",void 0),pe([t.Input()],n.prototype,"tertiaryEmptyLabel",void 0),pe([t.Input()],n.prototype,"imageSource",void 0),pe([t.Input()],n.prototype,"imageAlt",void 0),pe([t.Input()],n.prototype,"iconClass",void 0),pe([t.Input()],n.prototype,"secondaryLabel",void 0),pe([t.Input()],n.prototype,"tertiaryLabel",void 0),pe([t.Input()],n.prototype,"size",void 0),pe([t.Input()],n.prototype,"template",void 0),pe([t.Output()],n.prototype,"buttonClick",void 0),pe([t.ContentChild(Ar,{static:!0})],n.prototype,"thumbnailComponent",void 0),pe([t.ViewChild(t.TemplateRef,{static:!0})],n.prototype,"content",void 0),n=o=pe([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)}(),_a=function(){function e(e){this.cdr=e,this.id="s-global-search-"+xa.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(){Kn.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?Kn.addClass(this.globalSearch,"global-search__input-active"):(this.removeActiveClassByGlobalSearch(),this.close()),this.cdr.detectChanges()},e.nextId=0,e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},pe([t.ViewChild("globalSearch",{static:!1})],e.prototype,"globalSearch",void 0),pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"delay",void 0),pe([t.Input()],e.prototype,"totalItensLabel",void 0),pe([t.Input()],e.prototype,"showMoreLabel",void 0),pe([t.Input()],e.prototype,"placeholder",void 0),pe([t.Input()],e.prototype,"isLoading",void 0),pe([t.Input()],e.prototype,"totalElements",void 0),pe([t.Input()],e.prototype,"emptyTitle",void 0),pe([t.Input()],e.prototype,"emptyDescription",void 0),pe([t.Input()],e.prototype,"emptyIcon",void 0),pe([t.Input()],e.prototype,"showFooter",void 0),pe([t.ContentChildren(xa)],e.prototype,"dropdownItens",void 0),pe([t.Output()],e.prototype,"onSearch",void 0),pe([t.Output()],e.prototype,"onFocus",void 0),pe([t.Output()],e.prototype,"onShowMore",void 0),e=pe([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:[n.trigger("expandableContent",[n.state("*",n.style({height:"0"})),n.state("false",n.style({height:"0"})),n.state("true",n.style({height:"*"})),n.transition("* => true",n.animate("200ms ease-out")),n.transition("false <=> true",n.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)}(),wa=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}]},pe([t.Output()],e.prototype,"onScroll",void 0),pe([t.HostListener("scroll")],e.prototype,"scroll",null),e=pe([t.Directive({selector:"[sInfiniteScroll]"})],e)}(),Ca=function(){function e(){}return e=pe([t.NgModule({declarations:[wa],imports:[r.CommonModule],exports:[wa]})],e)}(),ka=function(){function e(){}return e=pe([t.NgModule({declarations:[_a,xa],imports:[r.CommonModule,z.InputTextModule,a.FormsModule,a.ReactiveFormsModule,Y.TooltipModule,Dr,Ot,bi,Ca,ei],exports:[_a,xa,Y.TooltipModule,Dr,Ot,bi,ei],entryComponents:[_a,xa]})],e)}(),Ia=function(){function e(e,t,n){this.clipboard=e,this.toastService=t,this.translateService=n,this.open=!1,this.isLoading=!1,this.likeSelected=!1,this.dislikeSelected=!1}return e.prototype.toggle=function(){var e=!this.open;this.open=e,!0===e&&this.insight.onOpenSidebar?this.insight.onOpenSidebar():!1===e&&this.insight.onCloseSideBar&&this.insight.onCloseSideBar(),!0===e&&this._requestInsight()},e.prototype.onLikeSelected=function(){var e,t;this.likeSelected?this.likeSelected=!1:(this.likeSelected=!0,this.dislikeSelected=!1,null===(t=(e=this.insight).onLikeSelected)||void 0===t||t.call(e))},e.prototype.onDislikeSelected=function(){var e,t;this.dislikeSelected?this.dislikeSelected=!1:(this.dislikeSelected=!0,this.likeSelected=!1,null===(t=(e=this.insight).onDislikeSelected)||void 0===t||t.call(e))},e.prototype.copyContent=function(){var e,t;null===(t=(e=this.insight).onCopy)||void 0===t||t.call(e,this.content),this.clipboard.copy(this.content)&&this.toastService.show({severity:"info",title:this.translateService.instant("platform.angular_components.copied_to_clipboard")})},e.prototype.reloadContent=function(){this._requestInsight()},e.prototype._requestInsight=function(){var e=this;this.isLoading=!0,this.insight.request$.pipe(i.first(),i.finalize((function(){return e.isLoading=!1}))).subscribe((function(t){e.content=te.marked(t),e.insight.onContentLoaded&&e.insight.onContentLoaded()}))},e.ctorParameters=function(){return[{type:Z.Clipboard},{type:Zo},{type:b.TranslateService}]},pe([t.Input()],e.prototype,"insight",void 0),e=pe([t.Component({selector:"s-ia-insight-card",template:'<div class="ia-insight-card" [ngClass]="{ \'ia-insight-card--close\': !open }">\n <div class="header" (click)="toggle()">\n <s-badge text="Insight" iconClass="fal fa-lightbulb"></s-badge>\n <span class="insight-title">{{ insight.title }}</span>\n <span\n class="toggle-icon fas"\n [ngClass]="{\n \'fa-angle-down\': !open,\n \'fa-angle-up\': open\n }"\n >\n </span>\n </div>\n <div class="content">\n <ng-container *ngIf="isLoading; then loadingBlock; else contentBlock"></ng-container>\n <ng-template #loadingBlock>\n <s-ia-insight-card-loader></s-ia-insight-card-loader>\n </ng-template>\n <ng-template #contentBlock>\n <ng-container *ngIf="content; then successBlock; else errorBlock"></ng-container>\n\n <ng-template #successBlock>\n <span class="text" [innerHTML]="content"></span>\n <span class="insight-footer">{{ "platform.angular_components.insight_footer" | translate }}</span>\n </ng-template>\n <ng-template #errorBlock>\n <span class="text text--error">{{ "platform.angular_components.error_loading_insight_alt" | translate }}</span>\n </ng-template>\n\n <div class="options">\n <button [disabled]="!content" (click)="copyContent()" class="option">\n <i class="fal fa-copy"></i>\n </button>\n <button (click)="reloadContent()" class="option">\n <i class="fal fa-redo"></i>\n </button>\n <button\n *ngIf="insight.onLikeSelected"\n [disabled]="!content"\n (click)="onLikeSelected()"\n class="option"\n >\n <i [ngClass]="{\n \'fal\': !likeSelected,\n \'fas\': likeSelected,\n \'fa-thumbs-up\': true\n }"></i>\n </button>\n <button\n *ngIf="insight.onDislikeSelected"\n [disabled]="!content"\n (click)="onDislikeSelected()"\n class="option"\n >\n <i [ngClass]="{\n \'fal\': !dislikeSelected,\n \'fas\': dislikeSelected,\n \'fa-thumbs-down\': true\n }"></i>\n </button>\n </div>\n </ng-template>\n </div>\n</div>\n',styles:['.ia-insight-card{background-color:#fff;border:1px solid #9ecad4;border-radius:4px;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}.ia-insight-card .header{-ms-flex-align:center;align-items:center;background-color:#f1f7f8;border-bottom:1px solid #9ecad4;display:-ms-flexbox;display:flex;gap:8px;min-height:60px;padding:8px 16px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ia-insight-card .header .insight-title{color:#428bca;-ms-flex-positive:1;flex-grow:1;font-family:"Open Sans",sans-serif;font-size:14px;line-height:150%}.ia-insight-card .header .toggle-icon{color:#888b99;font-size:20px}.ia-insight-card .content{-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;cursor:auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:16px;min-height:160px;padding:24px}.ia-insight-card .content .text{color:#212533;font-family:"Open Sans",sans-serif;font-size:14px;width:100%}.ia-insight-card .content .text--error{text-align:center}.ia-insight-card .content .insight-footer{color:#888b99;font-family:"Open Sans",sans-serif;font-size:12px;text-align:center}.ia-insight-card .content .options{display:-ms-flexbox;display:flex;gap:8px}.ia-insight-card .content .options .option{background-color:transparent;border:none;color:#428bca;cursor:pointer;font-size:12px}.ia-insight-card .content .options .option:disabled{color:#c1c1cc;cursor:auto}.ia-insight-card--close{border-color:#dedce5}.ia-insight-card--close .header{background-color:#fbfafc;border:#dedce5}.ia-insight-card--close .header .insight-title{color:#888b99}.ia-insight-card--close .content{display:none}']})],e)}(),Sa=function(){function e(){this.insights=[],this.closedSidebar=new t.EventEmitter,this.openedSidebar=new t.EventEmitter,this.opened=!1}return e.prototype.toggle=function(){this.opened=!this.opened},e.prototype.open=function(){this.opened=!0,this.openedSidebar.emit()},e.prototype.close=function(){this.opened=!1,this.closedSidebar.emit()},pe([t.Input()],e.prototype,"insights",void 0),pe([t.Input()],e.prototype,"hasPermission",void 0),pe([t.Input()],e.prototype,"introText",void 0),pe([t.Input()],e.prototype,"introTemplate",void 0),pe([t.Input()],e.prototype,"emptyText",void 0),pe([t.Input()],e.prototype,"emptyTemplate",void 0),pe([t.Input()],e.prototype,"noPermissionText",void 0),pe([t.Input()],e.prototype,"noPermissionTemplate",void 0),pe([t.Output()],e.prototype,"closedSidebar",void 0),pe([t.Output()],e.prototype,"openedSidebar",void 0),e=pe([t.Component({selector:"s-ia-insight-sidebar",template:'<div\n class="sidebar"\n [class.opened]="opened">\n <div class="header">\n <button (click)="close()" class="option">\n <span class="far fa-chevron-double-right"></span>\n </button>\n <div class="title">\n <span><ng-container [ngTemplateOutlet]="iassistIcon"></ng-container></span>\n <span>Insight</span>\n </div>\n </div>\n <div class="intro">\n <ng-container *ngIf="hasPermission; then permissionBlock; else noPermissionBlock"></ng-container>\n\n <ng-template #permissionBlock>\n <ng-container *ngIf="insights?.length; then introBlock; else emptyBlock"></ng-container>\n \n <ng-template #introBlock>\n <ng-container *ngIf="introTemplate; then introCustomBlock; else introTextBlock"></ng-container>\n\n <ng-template #introCustomBlock>\n <ng-container *ngTemplateOutlet="introTemplate"></ng-container>\n </ng-template>\n\n <ng-template #introTextBlock>\n <span class="text">{{ introText || "platform.angular_components.insight_intro" | translate }}</span>\n </ng-template>\n </ng-template>\n \n <ng-template #emptyBlock>\n <ng-container *ngIf="emptyTemplate; then emptyCustomBlock; else emptyTextBlock"></ng-container>\n\n <ng-template #emptyCustomBlock>\n <ng-container *ngTemplateOutlet="emptyTemplate"></ng-container>\n </ng-template>\n\n <ng-template #emptyTextBlock>\n <span class="text">{{ emptyText || "platform.angular_components.insight_empty" | translate }}</span>\n </ng-template>\n </ng-template>\n </ng-template>\n \n <ng-template #noPermissionBlock>\n <ng-container *ngIf="noPermissionTemplate; then noPermissionCustomBlock; else noPermissionTextBlock"></ng-container>\n\n <ng-template #noPermissionCustomBlock>\n <ng-container *ngTemplateOutlet="noPermissionTemplate"></ng-container>\n </ng-template>\n\n <ng-template #noPermissionTextBlock>\n <span>{{ noPermissionText || "platform.angular_components.insight_no_permission" | translate }}</span>\n </ng-template>\n </ng-template>\n </div>\n <div class="insights">\n <ng-container *ngIf="insights?.length">\n <s-ia-insight-card\n *ngFor="let insight of insights"\n [insight]="insight">\n </s-ia-insight-card>\n </ng-container>\n </div>\n</div>\n\n<ng-template #iassistIcon>\n <div style="width: 28px; height: 28px;">\n <span *sSVGFactory="\'iassist\'"></span>\n </div>\n</ng-template>\n',styles:['.sidebar{background-color:#fff;border-left:1px solid #dedce5;height:100%;overflow-x:hidden;position:fixed;right:-25%;transition:.5s;top:0;width:25%;z-index:1002}.sidebar .header{border-bottom:1px solid #dedce5;display:-ms-flexbox;display:flex;gap:16px;padding:12px 20px}.sidebar .header .option{background-color:transparent;border:none;color:#428bca;cursor:pointer;font-size:16px;padding:12px}.sidebar .header .title{-ms-flex-align:center;align-items:center;color:#212533;display:-ms-flexbox;display:flex;font-family:"Open Sans",sans-serif;font-size:16px;gap:16px;line-height:1;-webkit-user-select:none;-ms-user-select:none;user-select:none}.sidebar .intro{margin:8px 40px}.sidebar .intro .text{color:#212533;display:-ms-flexbox;display:flex;font-family:"Open Sans",sans-serif;font-size:14px;-ms-flex-pack:center;justify-content:center;line-height:1.5;text-align:center;-webkit-user-select:none;-ms-user-select:none;user-select:none}.sidebar.opened{right:0}.sidebar.opened .insights{padding:12px}.insights{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:12px}@media (max-width:1366px){.sidebar{right:-50%;width:50%}}@media (max-width:768px){.sidebar{right:-75%;width:75%}}@media (max-width:600px){.sidebar{right:-100%;width:100%}}']})],e)}(),Ta=function(){function e(){}return e=pe([t.Component({selector:"s-ia-insight-card-loader",template:'<div class="ia-insight-card-loader">\n <div class="loader">\n <div class="loader-icon">\n <div *sSVGFactory="\'iassist\'"></div>\n </div>\n </div>\n \n <span class="loader-label">{{ "platform.angular_components.loading_insight" | translate }}</span>\n</div>\n',styles:['.ia-insight-card-loader{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:24px}.ia-insight-card-loader .loader{-ms-flex-align:center;align-items:center;animation:2s linear infinite spin;border:2px solid #f1f7f8;border-top:2px solid #0fa389;border-radius:50%;display:-ms-flexbox;display:flex;height:48px;-ms-flex-pack:center;justify-content:center;width:48px}.ia-insight-card-loader .loader .loader-icon{animation:2s linear infinite reverse spin;height:32px;transform:translate(-50%,-50%)}.ia-insight-card-loader .loader-label{color:#888b99;font-family:"Open Sans",sans-serif;font-size:16px}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}']})],e)}();(ya=e.IAInsightTemplateTypes||(e.IAInsightTemplateTypes={})).Empty="empty",ya.Intro="intro",ya.NoPermission="noPermission";var Ea,Ma=function(){function n(){this.insights=[],this.hasPermission=!0,this.openIAInsight=new t.EventEmitter,this.closedIAInsight=new t.EventEmitter}return n.prototype.ngAfterContentInit=function(){this._getTemplates()},n.prototype.open=function(){this.sidebar.open()},n.prototype.close=function(){this.sidebar.close()},n.prototype.onOpenSidebar=function(){this.openIAInsight.emit()},n.prototype.onCloseSidebar=function(){this.closedIAInsight.emit()},n.prototype.getIntroTemplate=function(){return this._getCustomTemplate(e.IAInsightTemplateTypes.Intro)},n.prototype.getNoPermissionTemplate=function(){return this._getCustomTemplate(e.IAInsightTemplateTypes.NoPermission)},n.prototype.getEmptyTemplate=function(){return this._getCustomTemplate(e.IAInsightTemplateTypes.Empty)},n.prototype._getCustomTemplate=function(e){var t;return null===(t=this.templates.find((function(t){return t.type===e})))||void 0===t?void 0:t.template},n.prototype._getTemplates=function(){this.introTemplate=this.getIntroTemplate(),this.emptyTemplate=this.getEmptyTemplate(),this.noPermissionTemplate=this.getNoPermissionTemplate()},pe([t.Input()],n.prototype,"insights",void 0),pe([t.Input()],n.prototype,"hasPermission",void 0),pe([t.Input()],n.prototype,"introText",void 0),pe([t.Input()],n.prototype,"emptyText",void 0),pe([t.Input()],n.prototype,"noPermissionText",void 0),pe([t.Output()],n.prototype,"openIAInsight",void 0),pe([t.Output()],n.prototype,"closedIAInsight",void 0),pe([t.ViewChild(Sa)],n.prototype,"sidebar",void 0),pe([t.ContentChildren(Dt)],n.prototype,"templates",void 0),n=pe([t.Component({selector:"s-ia-insight",template:'<s-ia-insight-sidebar\n #sidebar\n [insights]="insights"\n [hasPermission]="hasPermission"\n [introText]="introText"\n [introTemplate]="introTemplate"\n [emptyText]="emptyText"\n [emptyTemplate]="emptyTemplate"\n [noPermissionText]="noPermissionText"\n (openedSidebar)="onOpenSidebar()"\n (closedSidebar)="onCloseSidebar()"\n [noPermissionTemplate]="noPermissionTemplate"\n>\n</s-ia-insight-sidebar>\n',styles:[""]})],n)}(),La=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,b.TranslateModule,$e,Ot,Ae,Bt,di],declarations:[Ma,Ia,Sa,Ta],exports:[Ma,Bt]})],e)}(),Fa=function(){function e(){this.useFontAwesomeIcons=!1,this.itemsArray=[],this.selectable=!1,this.selectedChange=new t.EventEmitter}return Object.defineProperty(e.prototype,"items",{set:function(e){Se(e)?this.itemsArray=[]:this.itemsArray=Array.isArray(e)?e:[e]},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){e.selected&&e.selected.isFirstChange()&&this.selectable&&(this.selected.active=!0)},e.prototype.onClickGridMenuItem=function(e){this.selectable&&(this.previousGridMenuItemClicked&&(this.previousGridMenuItemClicked.active=!1),e.active=!e.active,this.previousGridMenuItemClicked=e,this.selectedChange.next(e))},pe([t.Input()],e.prototype,"items",null),pe([t.Input()],e.prototype,"useFontAwesomeIcons",void 0),pe([t.Input()],e.prototype,"selectable",void 0),pe([t.Input()],e.prototype,"selected",void 0),pe([t.Output()],e.prototype,"selectedChange",void 0),e=pe([t.Component({selector:"s-grid-menu",template:'<section class="grid-menu">\n <s-grid-menu-item\n *ngFor="let item of itemsArray"\n [item]="item"\n [iconIsFromFontAwesome]="useFontAwesomeIcons"\n (clickedGridMenuItem)="onClickGridMenuItem($event)"\n ></s-grid-menu-item>\n</section>\n',styles:[".grid-menu{display:-ms-grid;display:grid;gap:20px;grid-template-columns:repeat(auto-fill,200px);-ms-flex-pack:space-evenly;justify-content:space-evenly}"]})],e)}(),Oa=function(){function e(){this.iconIsFromFontAwesome=!1,this.clickedGridMenuItem=new t.EventEmitter,this.fontAwesomePrefix="fal"}return e.prototype.onClick=function(){var e,t;this.disabled||(null===(t=(e=this.item).action)||void 0===t||t.call(e),this.clickedGridMenuItem.emit(this.item))},e.prototype.onMouseEnter=function(){this.disabled||(this.fontAwesomePrefix="fas")},e.prototype.onMouseLeave=function(){this.disabled||(this.fontAwesomePrefix="fal")},Object.defineProperty(e.prototype,"iconFontAwesomeClassName",{get:function(){return(this.item.active?"fas":this.fontAwesomePrefix)+" "+this.item.icon},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"initialLetter",{get:function(){var e="";if(this.item.label){var t=this.item.label.split(" ",2);e=t[0].charAt(0).toUpperCase(),t.length>1&&(e+=t[1].charAt(0).toUpperCase())}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){var e,t;return"function"==typeof(null===(e=this.item)||void 0===e?void 0:e.disabled)?!!this.item.disabled():!!(null===(t=this.item)||void 0===t?void 0:t.disabled)},enumerable:!0,configurable:!0}),pe([t.Input()],e.prototype,"item",void 0),pe([t.Input()],e.prototype,"iconIsFromFontAwesome",void 0),pe([t.Output()],e.prototype,"clickedGridMenuItem",void 0),e=pe([t.Component({selector:"s-grid-menu-item",template:'<button\n class="icon-button"\n [class.icon-button-active]="item.active"\n [class.icon-button--disabled]="disabled"\n (sActivatedContent)="onClick()"\n [disabled]="disabled"\n [tabindex]="disabled ? -1 : 0"\n [class.icon-font-awesome]="iconIsFromFontAwesome"\n (mouseenter)="onMouseEnter()"\n (mouseleave)="onMouseLeave()"\n *ngIf="item"\n>\n <div class="icon-wrapper" [class.icon-image]="!iconIsFromFontAwesome">\n <ng-container *ngIf="item.icon">\n <i *ngIf="iconIsFromFontAwesome" [class]="iconFontAwesomeClassName"> </i>\n <span *ngIf="!iconIsFromFontAwesome" class="icon" style="background-image: url(\'{{ item.icon }}\');"> </span>\n </ng-container>\n\n <ng-container *ngIf="!item.icon">\n <span class="initials">{{ initialLetter }}</span>\n </ng-container>\n </div>\n <span class="title">{{ item.label }}</span>\n</button>\n',styles:['.icon-button{-ms-flex-align:center;align-items:center;background-color:transparent;border:none;cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;gap:12px;-ms-flex-pack:center;justify-content:center;padding:5px;transition:transform .3s ease-in-out;width:200px}.icon-button:not(.icon-button--disabled):hover .initials,.icon-button:not(.icon-button--disabled):hover .title{font-weight:700}.icon-button.icon-font-awesome .title{padding-bottom:1em}.icon-button.icon-font-awesome:not(.icon-button--disabled):hover{border-radius:10px;background-color:#dedce5}.icon-button.icon-font-awesome .icon-wrapper i{color:#009494}.icon-button .icon-wrapper{-ms-flex-item-align:center;align-self:center;border-radius:10px;display:-ms-flexbox;display:flex;height:64px;-ms-flex-pack:center;justify-content:center;overflow:hidden;padding:8px;width:64px;-ms-flex-align:center;align-items:center;font-size:3em}.icon-button .icon-wrapper.icon-image{background-color:#dedce5}.icon-button .icon-wrapper .icon{background-position:center;background-repeat:no-repeat;background-size:cover;display:inline-block;height:100%;width:100%}.icon-button .icon-wrapper .initials{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;font-family:"Open Sans",sans-serif;font-size:20px;font-weight:700}.icon-button .title{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;font-family:"Open Sans",sans-serif;font-size:14px;line-clamp:2;overflow:hidden;text-overflow:ellipsis;width:100%}.icon-button--disabled{cursor:default;opacity:.5}.icon-button:not(.icon-button--disabled):hover{transform:scale(1.05)}.icon-button-active{transform:scale(1.05);border-radius:10px;background-color:#dedce5}.icon-button-active .initials,.icon-button-active .title{font-weight:700}']})],e)}(),Ra=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Yr],declarations:[Oa,Fa],exports:[Oa,Fa]})],e)}(),Aa=function(e){this.label=e.label,this.name=e.name,this.tooltip=e.tooltip,this.errorMessages=e.errorMessages},Da=function(e){function t(t){var n=e.call(this,t)||this;return n.view=t.view||"date",n.minDate=t.minDate,n.maxDate=t.maxDate,n.defaultDate=t.defaultDate,n.appendTo=t.appendTo,n.showOnFocus="boolean"!=typeof t.showOnFocus||t.showOnFocus,n.onBlur=t.onBlur,n.onFocus=t.onFocus,n.onSelect=t.onSelect,n.onInput=t.onInput,n.onClose=t.onClose,n.onTodayClick=t.onTodayClick,n.onClearClick=t.onClearClick,n.onMonthChange=t.onMonthChange,n.onYearChange=t.onYearChange,n.selectionMode=t.selectionMode||"single",n.rangeSeparator=t.rangeSeparator||"-",n.showSeconds=t.showSeconds,n.placeholder=t.placeholder,n}return le(t,e),t}(Aa),Pa=function(e){function t(t){var n=e.call(this,t)||this;return n.multiple=!1,n.showSearch=!0,n.autocompleteForceSelection=!0,n.showAddOption=!1,n.showEditOption=!1,n.showRemoveOption=!1,n.onSelect=function(e){},n.onUnselect=function(e){},Object.assign(n,t),n.suggestionsObservable.subscribe((function(e){return n.lookupSuggestions=e})),n.searchObservable.pipe(i.delay(0)).subscribe((function(e){var t=e.totalRecords,o=e.gridData,i=e.searchTotalRecordsLabel;n._gridData=o,n._searchTotalRecords=t,n._searchTotalRecordsLabel=i})),n}return le(t,e),Object.defineProperty(t.prototype,"gridData",{get:function(){return this._gridData},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"searchTotalRecords",{get:function(){return this._searchTotalRecords},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"searchTotalRecordsLabel",{get:function(){return this._searchTotalRecordsLabel},enumerable:!0,configurable:!0}),t}(Aa),Va=function(e){function t(t){var n,o,i,r,a=e.call(this,t)||this;return a.allowNegative=null===(n=t.allowNegative)||void 0===n||n,a.numberLocaleOptions=t.numberLocaleOptions,a.browserAutocomplete=t.browserAutocomplete,a.precision=t.precision,a.scale=null!==(o=t.scale)&&void 0!==o?o:2,a.alignTo=a.scale?l.AlignmentOptions.RIGHT:l.AlignmentOptions.LEFT,a.mask=t.mask,a.leftAddon=t.leftAddon,a.rightAddon=t.rightAddon,a.onBlur=t.onBlur,a.onFocus=t.onFocus,a.onComplete=t.onComplete,a.onInput=t.onInput,a.autoClear=null===(i=t.autoClear)||void 0===i||i,a.placeholder=null!==(r=t.placeholder)&&void 0!==r?r:"",a}return le(t,e),t}(Aa),Ba=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.readonly=t.readonly,n}return le(t,e),t}(Aa),Na=function(e){function t(t){return e.call(this,t)||this}return le(t,e),t}(Aa),za=function(e){function t(t){return e.call(this,t)||this}return le(t,e),t}(Aa),Ua=function(){function e(e){this.localeService=e,this.isEditing=!1}return e.prototype.ngOnInit=function(){this._getCalendarLocaleOptions()},Object.defineProperty(e.prototype,"showEmptyValueButton",{get:function(){var e;return!this.isEditing&&!(null===(e=this.formGroup.get(this.field.name))||void 0===e?void 0:e.value)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showEditButton",{get:function(){var e;return!this.isEditing&&(null===(e=this.formGroup.get(this.field.name))||void 0===e?void 0:e.value)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showValue",{get:function(){var e;return!this.isEditing&&(null===(e=this.formGroup.get(this.field.name))||void 0===e?void 0:e.value)},enumerable:!0,configurable:!0}),e.prototype.onEdit=function(){this.isEditing=!this.isEditing},e.prototype.onCancel=function(){this.isEditing=!this.isEditing},e.prototype.onSave=function(){this.dynamicComponentRef&&this.dynamicComponentRef.instance.saveValue&&(this.formGroup.get(this.field.name).markAsDirty({onlySelf:!0}),this.dynamicComponentRef.instance.saveValue());this.formGroup.get(this.field.name).valid&&(this.isEditing=!this.isEditing)},e.prototype.setDynamicComponentRef=function(e){this.dynamicComponentRef=e},e.prototype.getErrorMessages=function(e){return e?ce(ce({},this.errorMessages),e instanceof Function?e():e):this.errorMessages},e.prototype.getFormattedValue=function(e){if(this.field instanceof Da)return this.dynamicComponentRef.instance.getValueAsText();if(this.field instanceof Pa){var t=this.field;return this.field.multiple?e.map((function(e){return e[t.lookupDisplayField]})).join(" - "):e[t.lookupDisplayField]}return e},e.prototype._getCalendarLocaleOptions=function(){var e=this;this.localeService.get().pipe(i.first()).subscribe((function(t){e._locale=t.locale}))},e.ctorParameters=function(){return[{type:Je}]},pe([t.ViewChild("formContainer",{read:t.ViewContainerRef,static:!0})],e.prototype,"viewContainerRef",void 0),pe([t.Input()],e.prototype,"label",void 0),pe([t.Input()],e.prototype,"formGroup",void 0),pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"errorMessages",void 0),e=pe([t.Component({selector:"s-inline-edit-item",template:'<div class="inline-edit-item">\n <label\n class="label"\n *sInfoSign="field.tooltip">\n {{ label }}:\n </label>\n\n <div class="content">\n <span *ngIf="showValue" class="value">\n {{ getFormattedValue(formGroup.get(field.name)?.value) }}\n </span>\n\n <s-button\n *ngIf="showEmptyValueButton"\n style="margin-left: -8px"\n priority="link"\n [label]="\'platform.angular_components.add_information\' | translate"\n (onClick)="onEdit()">\n </s-button>\n\n <div [hidden]="!isEditing" class="form-container">\n <ng-container #formContainer></ng-container>\n </div>\n\n <div class="options">\n <s-button\n *ngIf="showEditButton"\n [tooltip]="\'platform.angular_components.edit\' | translate"\n (onClick)="onEdit()"\n priority="link"\n [auxiliary]="true"\n iconClass="fas fa-edit">\n </s-button>\n <s-button\n *ngIf="isEditing"\n [tooltip]="\'platform.angular_components.save\' | translate"\n (onClick)="onSave()"\n priority="default"\n [auxiliary]="true"\n iconClass="fas fa-check"\n styleClass="save-option"\n iconColor="#428bca">\n </s-button>\n <s-button\n *ngIf="isEditing"\n [tooltip]="\'platform.angular_components.cancel\' | translate"\n (onClick)="onCancel()"\n priority="default"\n [auxiliary]="true"\n iconClass="fas fa-times"\n iconColor="#c13018">\n </s-button>\n </div>\n </div>\n <s-control-errors\n [form]="formGroup"\n [control]="formGroup.controls[field.name]"\n [errorMessages]="getErrorMessages(field.errorMessages)">\n </s-control-errors>\n</div>\n',styles:['.inline-edit-item{-ms-flex-align:start;align-items:flex-start;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.inline-edit-item .label{color:#333;font-family:"Open Sans" sans-serif;font-size:14px;font-weight:700;margin-bottom:0}.inline-edit-item .content{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;gap:16px}.inline-edit-item .content .value{color:#999;font-family:"Open Sans" sans-serif;font-size:14px}.inline-edit-item .content .options{display:-ms-flexbox;display:flex}']})],e)}(),ja=function(){function e(e){this.localeService=e}return e.prototype.ngOnInit=function(){var e;this._getLocaleOptions(),this.formGroup&&this.field&&(this.tempValue=(null===(e=this.formGroup.get(this.field.name))||void 0===e?void 0:e.value)||"")},e.prototype.saveValue=function(){var e;this.formGroup&&this.field&&(null===(e=this.formGroup.get(this.field.name))||void 0===e||e.setValue(this.tempValue))},e.prototype.getValueAsText=function(){return this.calendar.el.nativeElement.querySelector("input").value},e.prototype._getLocaleOptions=function(){var e=this;this.localeService.get().pipe(i.first()).subscribe((function(t){e.calendarLocaleOptions=t.calendar}))},e.ctorParameters=function(){return[{type:Je}]},pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formGroup",void 0),pe([t.ViewChild(v.Calendar)],e.prototype,"calendar",void 0),e=pe([t.Component({template:'<p-calendar\n #calendar\n sCalendarMask\n [inputId]="field.name"\n [name]="field.name"\n [showIcon]="true"\n [selectionMode]="field.selectionMode"\n [rangeSeparator]="field.rangeSeparator"\n [showSeconds]="field.showSeconds"\n [showOnFocus]="field.showOnFocus"\n icon="fa fa-calendar"\n [minDate]="field.minDate"\n [maxDate]="field.maxDate"\n [dateFormat]="calendarLocaleOptions.dateFormat"\n [hourFormat]="calendarLocaleOptions.hourFormat"\n [defaultDate]="field.defaultDate"\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 [(ngModel)]="tempValue">\n</p-calendar>\n',styles:[""]})],e)}(),Ha=function(){function e(){}return e.prototype.ngOnInit=function(){var e;this.formGroup&&this.field&&(this.tempValue=(null===(e=this.formGroup.get(this.field.name))||void 0===e?void 0:e.value)||"")},e.prototype.saveValue=function(){var e;this.formGroup&&this.field&&(null===(e=this.formGroup.get(this.field.name))||void 0===e||e.setValue(this.tempValue))},pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formGroup",void 0),e=pe([t.Component({template:'<s-lookup\n [id]="field.name"\n [multiple]="field.multiple"\n [lookupSuggestions]="field.lookupSuggestions"\n [dataKey]="field.dataKey"\n [placeholder]="field.placeholder"\n [showSearch]="field.showSearch"\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 [searchEmptyTitle]="field.searchEmptyTitle"\n [filterTitle]="field.filterTitle"\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 [defaultFilter]="field.defaultFilter"\n [autocompleteForceSelection]="field.autocompleteForceSelection"\n [showAddOption]="field.showAddOption"\n [showEditOption]="field.showEditOption"\n [showRemoveOption]="field.showRemoveOption"\n (onAdd)="field.onAdd()"\n (onEdit)="field.onEdit($event)"\n (onRemove)="field.onRemove($event)"\n [(ngModel)]="tempValue">\n</s-lookup>\n',styles:[""]})],e)}(),$a=function(){function e(e){this.localeService=e}return e.prototype.ngOnInit=function(){var e;this._onLocaleService(),this.formGroup&&this.field&&(this.tempValue=(null===(e=this.formGroup.get(this.field.name))||void 0===e?void 0:e.value)||"")},e.prototype.saveValue=function(){var e;this.formGroup&&this.field&&(null===(e=this.formGroup.get(this.field.name))||void 0===e||e.setValue(this.tempValue))},Object.defineProperty(e.prototype,"mask",{get:function(){return"function"==typeof this.field.mask?this.field.mask():this.field.mask},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leftAddonDisabled",{get:function(){return"function"==typeof this.field.leftAddon.disabled?this.field.leftAddon.disabled():this.field.leftAddon.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rightAddonDisabled",{get:function(){return"function"==typeof this.field.rightAddon.disabled?this.field.rightAddon.disabled():this.field.rightAddon.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"precision",{get:function(){return"function"==typeof this.field.precision?this.field.precision():this.field.precision},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scale",{get:function(){return"function"==typeof this.field.scale?this.field.scale():this.field.scale},enumerable:!0,configurable:!0}),e.prototype._onLocaleService=function(){var e=this;this.localeService.getLocale().pipe(i.first()).subscribe({next:function(){var t,n;(null===(t=e.field.numberLocaleOptions)||void 0===t?void 0:t.decimalSeparator)||(e.field.numberLocaleOptions=ce(ce({},e.field.numberLocaleOptions),{decimalSeparator:e.localeService.getDecimalSeparator()})),(null===(n=e.field.numberLocaleOptions)||void 0===n?void 0:n.thousandsSeparator)||(e.field.numberLocaleOptions=ce(ce({},e.field.numberLocaleOptions),{thousandsSeparator:e.localeService.getGroupingSeparator()}))},error:function(){return e.field.numberLocaleOptions={thousandsSeparator:".",decimalSeparator:",",currencySymbol:""}}})},e.ctorParameters=function(){return[{type:Je}]},pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formGroup",void 0),e=pe([t.Component({template:'<p-inputMask\n *ngIf="field.mask; else noMask"\n type="text"\n [inputId]="field.name"\n [name]="field.name"\n [mask]="mask"\n [placeholder]="field.placeholder"\n slotChar="_"\n [sTooltip]="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 [autoClear]="field.autoClear"\n [(ngModel)]="tempValue">\n</p-inputMask>\n\n<ng-template #noMask>\n <ng-container>\n <div class="ui-inputgroup">\n <ng-container *ngIf="field.leftAddon">\n <span *ngIf="field.leftAddon.callback" class="addon-button addon-button--left">\n <s-button\n [label]="field.leftAddon.label"\n [iconClass]="field.leftAddon.icon"\n [priority]="field.leftAddon.priority"\n [disabled]="leftAddonDisabled"\n (onClick)="field.leftAddon.callback()">\n </s-button>\n </span>\n <span *ngIf="!field.leftAddon.callback" 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.name"\n type="text"\n [name]="field.name"\n sBignumberInput\n [allowNegative]="field.allowNegative"\n [precision]="precision"\n [scale]="scale"\n [alignTo]="field.alignTo"\n [sTooltip]="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 [(ngModel)]="tempValue"/>\n <ng-container *ngIf="field.rightAddon">\n <span *ngIf="field.rightAddon.callback" class="addon-button addon-button--right">\n <s-button\n [label]="field.rightAddon.label"\n [iconClass]="field.rightAddon.icon"\n [priority]="field.rightAddon.priority"\n [disabled]="rightAddonDisabled"\n (onClick)="field.rightAddon.callback()">\n </s-button>\n </span>\n <span *ngIf="!field.rightAddon.callback" 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',styles:[""]})],e)}(),Ga=function(){function e(){}return e.prototype.ngOnInit=function(){var e;this.formGroup&&this.field&&(this.tempValue=(null===(e=this.formGroup.get(this.field.name))||void 0===e?void 0:e.value)||"")},e.prototype.saveValue=function(){var e;this.formGroup&&this.field&&(null===(e=this.formGroup.get(this.field.name))||void 0===e||e.setValue(this.tempValue))},pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formGroup",void 0),e=pe([t.Component({template:'<ng-container *ngIf="field.keyFilter; else noKeyFilter">\n <textarea\n [id]="field.name"\n pInputTextarea\n class="textarea-input"\n [rows]="field.rows"\n [cols]="field.cols"\n [pKeyFilter]="field.keyFilter"\n [readonly]="field.readonly ? field.readonly() : false"\n [(ngModel)]="tempValue">\n </textarea>\n</ng-container>\n<ng-template #noKeyFilter>\n <textarea\n [id]="field.name"\n pInputTextarea\n class="textarea-input"\n [rows]="field.rows"\n [cols]="field.cols"\n [readonly]="field.readonly ? field.readonly() : false"\n [(ngModel)]="tempValue">\n </textarea>\n</ng-template>\n',styles:[".textarea-input{resize:vertical}"]})],e)}(),qa=function(){function e(){}return e.prototype.ngOnInit=function(){var e;this.formGroup&&this.field&&(this.tempValue=(null===(e=this.formGroup.get(this.field.name))||void 0===e?void 0:e.value)||"")},e.prototype.saveValue=function(){var e;this.formGroup&&this.field&&(null===(e=this.formGroup.get(this.field.name))||void 0===e||e.setValue(this.tempValue))},pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formGroup",void 0),e=pe([t.Component({template:'<input\n type="text"\n pInputText\n [(ngModel)]="tempValue" />',styles:[""]})],e)}(),Wa=function(){function e(){}return e.prototype.ngOnInit=function(){var e;this.formGroup&&this.field&&(this.tempValue=(null===(e=this.formGroup.get(this.field.name))||void 0===e?void 0:e.value)||"")},e.prototype.saveValue=function(){var e;this.formGroup&&this.field&&(null===(e=this.formGroup.get(this.field.name))||void 0===e||e.setValue(this.tempValue))},pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"formGroup",void 0),e=pe([t.Component({template:'<s-text-area-ia [(ngModel)]="tempValue"></s-text-area-ia>',styles:[""]})],e)}(),Ya=function(){function e(e){var t;this.resolver=e,this.fields=[],this._componentMap=((t={})[Da.name]=ja,t[Pa.name]=Ha,t[Na.name]=qa,t[Va.name]=$a,t[Ba.name]=Ga,t[za.name]=Wa,t)}return e.prototype.ngOnInit=function(){this._createFields()},e.prototype._createFields=function(){var e,t,n=this;this.container.clear();var o=function(e,t){var o=n.resolver.resolveComponentFactory(e),i=n.container.createComponent(o);return i.instance.field=t,i.instance.formGroup=n.formGroup,i};try{for(var i=he(this.fields),r=i.next();!r.done;r=i.next()){var a=r.value,s=this._componentMap[a.constructor.name];if(s){var l=this.resolver.resolveComponentFactory(Ua),c=this.container.createComponent(l);c.instance.label=a.label,c.instance.formGroup=this.formGroup,c.instance.field=a,c.instance.errorMessages=this.errorMessages;var p=o(s,a),d=c.instance;d.viewContainerRef.insert(p.hostView),d.setDynamicComponentRef(p)}}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},e.ctorParameters=function(){return[{type:t.ComponentFactoryResolver}]},pe([t.Input()],e.prototype,"formGroup",void 0),pe([t.Input()],e.prototype,"fields",void 0),pe([t.Input()],e.prototype,"errorMessages",void 0),pe([t.ViewChild("formContainer",{read:t.ViewContainerRef,static:!0})],e.prototype,"container",void 0),e=pe([t.Component({selector:"s-inline-edit",template:'<div class="inline-edit">\n <ng-template #formContainer></ng-template>\n</div>\n',styles:[".inline-edit{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:8px}"]})],e)}(),Ka=function(){function n(e,t,n,o){this._iassistService=e,this._formBuilder=t,this._translateService=n,this.speechRecognitionService=o,this.speechRecognition=!1,this.keepContext=!1,this.speechRecognitionPlaceholder="",this.isVisible=!1,this.isLoading=!1}var r;return r=n,n.prototype.ngOnInit=function(){this._createDialogFields(),this._createDialogFormGroup()},n.prototype.writeValue=function(e){this.value=e},n.prototype.registerOnChange=function(e){this._onChange=e},n.prototype.registerOnTouched=function(e){this._onTouched=e},n.prototype.setDisabledState=function(e){this._isDisabled=e},n.prototype.onValueChange=function(e){var t;this.value=e,null===(t=this._onChange)||void 0===t||t.call(this,e)},n.prototype.showDialog=function(){this.isVisible=!0,this._onTouched()},n.prototype.hideDialog=function(){this.isVisible=!1},n.prototype.onHideDialog=function(){this.formGroup.get("context").setValue("")},n.prototype.submitContext=function(){var e=this,t=this.formGroup.get("context");this.isLoading=!0,this._iassistService.askIA(t.value,{id:this.id,label:this.label,placeholder:this.placeholder,prompt:this.prompt}).pipe(i.catchError((function(t){return e.isLoading=!1,o.throwError(t)}))).subscribe((function(t){e.value=t.text,e._onChange(e.value),e.isLoading=!1})),this.hideDialog()},n.prototype._createDialogFields=function(){this.fields=[new Ro({name:"context",type:e.FieldType.Text,label:this._translateService.instant("platform.angular_components.context"),size:{sm:12,md:12,lg:12,xl:12},speechRecognition:this.speechRecognition})]},n.prototype._createDialogFormGroup=function(){this.formGroup=this._formBuilder.group({context:[""]})},n.ctorParameters=function(){return[{type:Xo},{type:a.FormBuilder},{type:b.TranslateService},{type:Xi}]},pe([t.Input()],n.prototype,"id",void 0),pe([t.Input()],n.prototype,"label",void 0),pe([t.Input()],n.prototype,"placeholder",void 0),pe([t.Input()],n.prototype,"prompt",void 0),pe([t.Input()],n.prototype,"readonly",void 0),pe([t.Input()],n.prototype,"rows",void 0),pe([t.Input()],n.prototype,"cols",void 0),pe([t.Input()],n.prototype,"speechRecognition",void 0),pe([t.Input()],n.prototype,"keepContext",void 0),pe([t.Input()],n.prototype,"speechRecognitionPlaceholder",void 0),n=r=pe([t.Component({selector:"s-text-area-ia",template:'<s-loading-state\n [loading]="isLoading"\n [blockWindow]="true">\n</s-loading-state>\n\n<p-dialog\n [(visible)]="isVisible"\n [modal]="true"\n [style]="{ width: \'50vw\' }"\n [draggable]="false"\n [resizable]="false"\n (onHide)="onHideDialog()">\n <p-header>\n <div class="dialog-header">\n <span class="iassist-icon">\n <ng-container [ngTemplateOutlet]="iassistIcon"></ng-container>\n </span>\n IAssist - Content Generator\n </div>\n </p-header>\n <s-dynamic-form\n [fields]="fields"\n [form]="formGroup">\n </s-dynamic-form>\n <p-footer>\n <div class="footer-content">\n <s-button\n id="-submit-button"\n type="button"\n [label]="\'platform.angular_components.generate_text\' | translate"\n (onClick)="submitContext()"\n sTooltip="(ALT + SHIFT + S)"\n showDelay="500">\n </s-button>\n <s-button\n id="-cancel-button"\n type="button"\n priority="link"\n [label]="\'platform.angular_components.cancel\' | translate"\n (onClick)="hideDialog()"\n sTooltip="(ALT + SHIFT + C)"\n showDelay="500">\n </s-button>\n </div>\n </p-footer>\n</p-dialog>\n\n<div class="textarea-ia">\n <s-textarea\n [inputId]="id"\n [rows]="rows"\n [(ngModel)]="value"\n (ngModelChange)="onValueChange($event)"\n [readOnly]="readonly"\n [placeholder]="placeholder"\n [speechRecognition]="speechRecognition"\n [keepContext]="keepContext"\n [speechRecognitionPlaceholder]="speechRecognitionPlaceholder"\n ></s-textarea>\n <button\n class="iassist-button"\n [class.speech-recognition]="speechRecognition && speechRecognitionService.hasSupportSpeechRecognition"\n (click)="showDialog()"\n sTooltip="IAssist - Content Generator">\n <ng-container [ngTemplateOutlet]="iassistIcon"></ng-container>\n </button>\n</div>\n\n<ng-template #iassistIcon>\n <svg style="width: 100%; height: 100%;" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M5.81451 18.1054L5.99593 17.6059L7.52166 13.4099L7.60877 13.1726L7.61277 13.1614L7.94285 12.2543L8.01159 12.0648L8.05394 11.949L5.2998 8.52426L5.02726 8.18379C5.00569 8.15821 4.9881 8.13104 4.97292 8.10226C4.90099 7.9632 4.85063 7.81294 4.82186 7.6531C4.73075 7.1344 4.90418 6.60771 5.28382 6.24326C5.29421 6.23447 5.3038 6.22567 5.31419 6.21688L5.47164 6.0914L9.3439 3.00238L9.5469 2.84094L9.57088 2.82096L10.4101 2.15041L11.8007 1.04188C11.2181 0.925188 10.6163 0.863647 10.0001 0.863647C4.95374 0.863647 0.863281 4.9541 0.863281 9.99963C0.863281 13.5346 2.87254 16.5989 5.80971 18.1182" fill="#0FA389"/>\n <path d="M14.099 1.83472L13.9495 2.24632L11.997 7.61074L11.9427 7.7594L11.9003 7.87369L14.7448 11.4103C14.7463 11.4127 14.7479 11.4143 14.7495 11.4167L14.9414 11.654C14.9541 11.67 14.9661 11.6868 14.9765 11.7044C15.0764 11.8698 15.1444 12.0505 15.1779 12.2431C15.273 12.7826 15.0812 13.3284 14.676 13.6897C14.656 13.7129 14.6345 13.7344 14.6105 13.7536L11.8563 15.9507L11.6789 16.0922L11.6022 16.1537L10.7406 16.8402V16.841L10.3937 17.1176L9.85747 17.5452L9.39951 17.9112L8.11035 18.9398C8.72016 19.0677 9.35155 19.1364 9.99973 19.1364C15.0461 19.1364 19.1365 15.046 19.1365 9.99964C19.1365 6.42789 17.0857 3.33727 14.099 1.83472Z" fill="#0FA389"/>\n <path d="M14.7287 12.3222C14.7047 12.1832 14.6551 12.0545 14.5864 11.941L14.3954 11.7036C14.3954 11.7036 14.3946 11.7028 14.3938 11.7028L11.3839 7.96005L10.5031 6.86511L10.4256 6.7676L9.03255 5.03487L8.83674 4.79191C8.79278 4.71678 8.75681 4.63446 8.73204 4.54814C8.72085 4.51058 8.71286 4.47222 8.70566 4.43465C8.68568 4.32196 8.68408 4.21007 8.69847 4.10217L8.62334 4.16291L8.44511 4.30438L5.75731 6.44871L5.60066 6.57339C5.34011 6.82275 5.20584 7.19279 5.27218 7.57482C5.29296 7.68751 5.32892 7.79541 5.37927 7.89292C5.37927 7.89292 5.37927 7.89292 5.38007 7.89371L5.6566 8.23818L8.57139 11.8627L8.63293 11.9394L9.53047 13.0559L9.59041 13.1303L9.98363 13.6186L11.0178 14.9046C11.0186 14.9054 11.0194 14.9069 11.0202 14.9077L11.1361 15.0516V15.0524C11.2184 15.1755 11.2768 15.317 11.3048 15.4728C11.3239 15.5807 11.3263 15.6878 11.3143 15.7925L11.3175 15.7965L11.3943 15.735L11.5717 15.5935L14.3266 13.3964L14.3218 13.3908C14.6335 13.1438 14.8022 12.7394 14.7287 12.3222Z" fill="#F3F3F5"/>\n <path d="M10.6822 15.0082C10.6814 15.0074 10.6806 15.0058 10.6806 15.005L10.5672 14.8643L10.3809 14.6325L10.3282 14.567L10.2211 14.4335L9.40028 13.4129L9.32835 13.3242L8.77289 12.6345L8.68098 12.5194L8.44121 12.2205L8.37168 12.4099L8.04159 13.317L8.0376 13.329L7.95128 13.5664L6.42475 17.7623L6.24333 18.2618L5.90605 19.1881L5.73262 19.6645C5.73182 19.6661 5.73102 19.6677 5.73102 19.6685C5.72863 19.6749 5.72703 19.6821 5.72543 19.6885C5.71584 19.7228 5.71424 19.758 5.72063 19.7948C5.74461 19.929 5.87329 20.0193 6.00836 19.9962C6.04112 19.9898 6.07229 19.9778 6.09867 19.9602C6.09867 19.9602 6.09947 19.9602 6.10027 19.9594L6.14103 19.9266L7.39422 18.9268L9.11496 17.5537L9.57292 17.1877L10.1092 16.7601L10.4561 16.4827L10.4537 16.4811C10.7582 16.2382 10.9236 15.8402 10.8509 15.4294C10.8237 15.2735 10.7654 15.1313 10.6822 15.0082Z" fill="#0C847B"/>\n <path d="M9.17644 4.56325C9.2124 4.68713 9.26915 4.80062 9.34268 4.90053C9.34348 4.90053 9.34428 4.90213 9.34428 4.90213L9.40342 4.97645C9.40502 4.97805 9.40582 4.97885 9.40662 4.98045L9.56806 5.17946L9.64878 5.28096L9.67915 5.31932L9.8414 5.51993L10.5559 6.40947L10.7054 6.59569L11.2169 7.23188L11.5142 7.60192L11.5693 7.45247L13.5202 2.08964L14.1596 0.332135C14.1596 0.330536 14.1604 0.328139 14.1612 0.32654C14.174 0.288177 14.1772 0.246617 14.17 0.205058C14.1468 0.0699879 14.0182 -0.0195258 13.8823 0.00365186C13.8407 0.0116442 13.8024 0.028428 13.7712 0.0540033L12.578 1.00589L12.498 1.06982L10.6958 2.50844L9.85658 3.17819L9.8326 3.19737L9.6296 3.35961L9.45297 3.50028C9.2116 3.73925 9.08692 4.08931 9.15006 4.44976C9.15726 4.48813 9.16525 4.52649 9.17644 4.56325Z" fill="#0C847B"/>\n </svg>\n</ng-template>\n',providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return r})),multi:!0}],styles:[".footer-content{display:-ms-flexbox;display:flex;-ms-flex-positive:0;flex-grow:0}.textarea-ia{display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;gap:8px}.textarea-ia s-textarea{width:100%}.iassist-button{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border:none;border-radius:50%;box-shadow:none;cursor:pointer;height:32px;width:32px}.dialog-header{display:-ms-flexbox;display:flex;gap:12px}.dialog-header .iassist-icon{display:block;height:24px;width:24px}.speech-recognition{margin-bottom:12.5px}"]})],n)}(),Za=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,b.TranslateModule,O.DialogModule,Ot,Zr,bi,Gr],declarations:[Ka],exports:[Ka]})],e)}(),Xa=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,b.TranslateModule,gt,Ot,$n,He,Zr,Za,Ae,v.CalendarModule,N.InputMaskModule,z.InputTextModule,U.InputTextareaModule,j.KeyFilterModule],declarations:[Ya,Ua,ja,Ha,$a,qa,Ga,Wa],exports:[Ya]})],e)}(),Ja=function(){function e(){this.selectAllColumnItemsEvent=new t.EventEmitter,this.unselectAllColumnItemsEvent=new t.EventEmitter,this.selectItemEvent=new t.EventEmitter,this.unselectItemEvent=new t.EventEmitter}return e.prototype.emitSelectAllColumnItemsEvent=function(e){this.selectAllColumnItemsEvent.emit(e)},e.prototype.emitUnselectAllColumnItemsEvent=function(e){this.unselectAllColumnItemsEvent.emit(e)},e.prototype.emitSelectItemEvent=function(e){this.selectItemEvent.emit(e)},e.prototype.emitUnselectItemEvent=function(e){this.unselectItemEvent.emit(e)},e=pe([t.Injectable()],e)}();(Ea=e.KanbanTemplateTypes||(e.KanbanTemplateTypes={})).ColumnHeader="column-header",Ea.ColumnEmptyMessage="column-empty-message",Ea.ItemHeader="item-header",Ea.ItemBody="item-body",Ea.ItemFooter="item-footer";var Qa,es=function(){function n(e){this.kanbanEventService=e,this.showItemCheckboxes=!0,this.showColumnCheckboxes=!0,this.itemsMoved=new t.EventEmitter,this.dataUpdated=new t.EventEmitter,this.itemsSelected=new t.EventEmitter,this.selectedItems=new Set,this.draggingItems=new Set,this._unsubscribe$=new o.Subject}return n.prototype.ngOnInit=function(){this._subscribeEvents(),this._normalizeData(),this._validateInputs()},n.prototype.ngAfterContentInit=function(){this._getTemplates()},n.prototype.ngOnDestroy=function(){this._unsubscribe$.next(),this._unsubscribe$.complete()},n.prototype.drop=function(e){var t,n=this,o=this.data.columns.find((function(t){return t.id===e.previousContainer.id})),i=this.data.columns.find((function(t){return t.id===e.container.id}));if(!o||!i)throw new Error("Unable to obtain information about columns when performing drag and drop");e.previousContainer===e.container?ne.moveItemInArray(e.container.data,e.previousIndex,e.currentIndex):ne.transferArrayItem(e.previousContainer.data,e.container.data,e.previousIndex,e.currentIndex),this.selectedItems.forEach((function(t){var n=e.previousContainer.data.indexOf(t);-1!==n&&t!==e.item.data&&(e.previousContainer===e.container?ne.moveItemInArray(e.container.data,n,e.currentIndex):ne.transferArrayItem(e.previousContainer.data,e.container.data,n,e.currentIndex))})),this.selectedItems.add(e.item.data),this.itemsMoved.emit({items:ge(this.selectedItems),previousColumn:o,targetColumn:i}),(null===(t=this.dataUpdated.observers)||void 0===t?void 0:t.length)&&this.dataUpdated.emit(ce({},this.data)),this.data.columns.forEach((function(e){n.kanbanEventService.emitUnselectAllColumnItemsEvent(e)})),this.selectedItems.clear()},n.prototype.selectItem=function(e,t,n){if(!t.disabled&&!t.frozen)if(e.ctrlKey)this.selectedItems.delete(t)?this.kanbanEventService.emitUnselectItemEvent(t):(this.selectedColumn&&!this.selectedColumn.items.includes(t)&&this.selectedItems.clear(),this.selectedItems.add(t),this.selectedColumn=n,this.kanbanEventService.emitSelectItemEvent(t));else{if(this.selectedItems.delete(t))return;this.selectedItems.clear(),this.selectedItems.add(t),this.selectedColumn=n,this.kanbanEventService.emitSelectItemEvent(t)}},n.prototype.dragStarted=function(){var e=this;this.selectedItems.forEach((function(t){e.draggingItems.add(t)}))},n.prototype.dragReleased=function(){this.draggingItems.clear()},n.prototype.getLinkedColumns=function(e){return this.data.columns.filter((function(t){return t!=e})).map((function(e){return e.id}))},n.prototype.getColumnHeaderTemplate=function(){return this._getCustomTemplate(e.KanbanTemplateTypes.ColumnHeader)},n.prototype.getColumnEmptyMessageTemplate=function(){return this._getCustomTemplate(e.KanbanTemplateTypes.ColumnEmptyMessage)},n.prototype.getItemHeaderTemplate=function(){return this._getCustomTemplate(e.KanbanTemplateTypes.ItemHeader)},n.prototype.getItemBodyTemplate=function(){return this._getCustomTemplate(e.KanbanTemplateTypes.ItemBody)},n.prototype.getItemFooterTemplate=function(){return this._getCustomTemplate(e.KanbanTemplateTypes.ItemFooter)},n.prototype._getCustomTemplate=function(e){var t;return null===(t=this.templates.find((function(t){return t.type===e})))||void 0===t?void 0:t.template},n.prototype._subscribeEvents=function(){var e=this;this.kanbanEventService.selectAllColumnItemsEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){t.items.filter((function(e){return!e.disabled&&!e.frozen})).forEach((function(t){e.selectedItems.add(t)})),e.selectedColumn=t,e.itemsSelected.emit(ge(e.selectedItems))})),this.kanbanEventService.unselectAllColumnItemsEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){e.selectedItems.clear()})),this.kanbanEventService.selectItemEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){e.selectedColumn&&!e.selectedColumn.items.includes(t)&&e.selectedItems.clear(),e.selectedItems.add(t),e.itemsSelected.emit(ge(e.selectedItems)),e.data.columns.forEach((function(n){n.items.forEach((function(o){o!==t||(e.selectedColumn=n)}))}))})),this.kanbanEventService.unselectItemEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){e.selectedItems.delete(t)}))},n.prototype._normalizeData=function(){this.data.columns.forEach((function(e){e.id=e.id||"id-"+Math.random().toString(36).substring(2,9)+"-"+Date.now().toString(36)}))},n.prototype._validateInputs=function(){var e=this.data.columns,t=this.data.columns.map((function(e){return e.id}));if(new Set(t).size!==e.length)throw new Error("Repeated IDs are not accepted.")},n.prototype._getTemplates=function(){this.columnHeaderTemplate=this.getColumnHeaderTemplate(),this.columnEmptyMessageTemplate=this.getColumnEmptyMessageTemplate(),this.itemHeaderTemplate=this.getItemHeaderTemplate(),this.itemBodyTemplate=this.getItemBodyTemplate(),this.itemFooterTemplate=this.getItemFooterTemplate()},n.ctorParameters=function(){return[{type:Ja}]},pe([t.Input()],n.prototype,"data",void 0),pe([t.Input()],n.prototype,"showItemCheckboxes",void 0),pe([t.Input()],n.prototype,"showColumnCheckboxes",void 0),pe([t.Output()],n.prototype,"itemsMoved",void 0),pe([t.Output()],n.prototype,"dataUpdated",void 0),pe([t.Output()],n.prototype,"itemsSelected",void 0),pe([t.ContentChildren(Dt)],n.prototype,"templates",void 0),n=pe([t.Component({selector:"s-kanban",template:'<div class="kanban">\n <s-kanban-column\n *ngFor="let column of data.columns"\n [data]="column"\n [showCheckbox]="showColumnCheckboxes"\n [headerTemplate]="columnHeaderTemplate">\n <div\n [id]="column.id"\n style="height: 100%; width: 100%;"\n cdkDropList\n #dynamicList="cdkDropList"\n [cdkDropListData]="column.items"\n [cdkDropListConnectedTo]="getLinkedColumns(column)"\n (cdkDropListDropped)="drop($event)">\n\n <ng-container *ngIf="!columnEmptyMessageTemplate; then defaultEmptyMessageTemplate else customEmptyMessageTemplate"></ng-container>\n\n <ng-template #defaultEmptyMessageTemplate>\n <div *ngIf="!column.items.length" class="empty-message">\n <p class="text">\n <span class="fas fa-clock"></span> \n <span>{{ "platform.angular_components.count_items_in_target" | translate:{ count: column.items.length, target: column.title } }}</span>\n </p>\n </div>\n </ng-template>\n\n <ng-template #customEmptyMessageTemplate>\n <ng-container *ngTemplateOutlet="columnEmptyMessageTemplate; context: { $implicit: column }"></ng-container>\n </ng-template>\n\n <div\n *ngFor="let item of column.items"\n cdkDrag\n [cdkDragData]="item"\n [cdkDragDisabled]="item.disabled || item.frozen"\n (cdkDragStarted)="dragStarted()"\n (cdkDragReleased)="dragReleased()"\n (click)="selectItem($event, item, column)">\n \n <ng-container *ngTemplateOutlet="itemTemplate"></ng-container>\n\n <ng-container *cdkDragPreview>\n <ng-container *ngIf="selectedItems.size > 1; then itemDraggingTemplate else itemTemplate"></ng-container>\n </ng-container>\n\n <ng-template #itemTemplate>\n <s-kanban-item\n [item]="item"\n [selected]="selectedItems.has(item)"\n [showCheckbox]="showItemCheckboxes"\n [headerTemplate]="itemHeaderTemplate"\n [bodyTemplate]="itemBodyTemplate"\n [footerTemplate]="itemFooterTemplate">\n </s-kanban-item>\n </ng-template>\n\n <ng-template #itemDraggingTemplate>\n <s-kanban-item-dragging [quantityItems]="selectedItems.size"></s-kanban-item-dragging>\n </ng-template>\n\n <div *cdkDragPlaceholder>\n <div class="placeholder">\n <div class="placeholder-line"></div>\n </div>\n </div>\n </div>\n </div>\n </s-kanban-column>\n</div>\n\n',styles:[".kanban{display:-ms-flexbox;display:flex;gap:16px;overflow:auto;width:100%}.kanban .empty-message{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;margin:16px}.kanban .empty-message .text{overflow:hidden;text-align:center;text-overflow:ellipsis;width:100%;white-space:nowrap}@media screen and (max-width:600px){.kanban{-ms-flex-direction:column;flex-direction:column}}s-kanban-column{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;min-width:292px}.placeholder{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.placeholder .placeholder-line{background-color:#a5a5b2;height:1px;margin:6px 0;width:50%}"]})],n)}(),ts=function(){function e(e){this.kanbanEventService=e,this.showCheckbox=!0,this.selectionControl=new a.FormControl(!1),this._unsubscribe$=new o.Subject}return e.prototype.ngOnInit=function(){this._validateInputs(),this._subscriveEvents(),this._createTieredOptions()},e.prototype.ngOnDestroy=function(){this._unsubscribe$.next(),this._unsubscribe$.complete()},e.prototype._createTieredOptions=function(){var e=this;if(this.data.options){var t=[];this.data.options.forEach((function(n){t.push(ce(ce({},n),{command:function(){n.command(e.data)}}))})),this.data.options=t}},e.prototype._subscriveEvents=function(){var e=this;this.selectionControl.valueChanges.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){t?e.kanbanEventService.emitSelectAllColumnItemsEvent(e.data):e.kanbanEventService.emitUnselectAllColumnItemsEvent(e.data)})),this.kanbanEventService.unselectItemEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){e.selectionControl.setValue(!1,{emitEvent:!1})})),this.kanbanEventService.selectItemEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){e.data.items.includes(t)||e.selectionControl.setValue(!1,{emitEvent:!1})})),this.kanbanEventService.selectAllColumnItemsEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){e.data!==t&&e.selectionControl.setValue(!1,{emitEvent:!1})})),this.kanbanEventService.unselectAllColumnItemsEvent.pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(t){e.data!==t&&e.selectionControl.setValue(!1,{emitEvent:!1})}))},e.prototype._validateInputs=function(){if(!this.data)throw new Error("data parameter is required")},e.ctorParameters=function(){return[{type:Ja}]},pe([t.Input()],e.prototype,"data",void 0),pe([t.Input()],e.prototype,"showCheckbox",void 0),pe([t.Input()],e.prototype,"headerTemplate",void 0),e=pe([t.Component({selector:"s-kanban-column",template:'<div class="kanban-column">\n <div class="kanban-column__header">\n <div class="content">\n <form>\n <input\n *ngIf="showCheckbox"\n type="checkbox"\n name="checkbox"\n [formControl]="selectionControl">\n </form>\n\n <ng-container *ngIf="!headerTemplate; then defaultHeaderTemplate else customHeaderTemplate"></ng-container>\n \n <ng-template #defaultHeaderTemplate>\n <div class="header">\n <span class="title">{{ data.title }} ({{ data.items.length }})</span>\n </div>\n </ng-template>\n \n <ng-template #customHeaderTemplate>\n <ng-container *ngTemplateOutlet="headerTemplate; context: { $implicit: data }"></ng-container>\n </ng-template>\n </div>\n <s-button\n *ngIf="data.options"\n priority="default"\n [disabled]="false"\n [auxiliary]="true"\n size="small"\n [model]="data.options">\n </s-button>\n </div>\n <div class="kanban-column__body">\n <ng-content></ng-content>\n </div>\n</div>',styles:['.kanban-column{-ms-flex-align:center;align-items:center;background-color:#fbfafc;border:1px solid #dedce5;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;min-height:120px;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:100%}.kanban-column .kanban-column__header{-ms-flex-align:center;align-items:center;border-bottom:1px solid #dedce5;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:16px 16px 8px;width:100%}.kanban-column .kanban-column__header .content{display:-ms-flexbox;display:flex;gap:16px}.kanban-column .kanban-column__header .content .teste{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-family:"Open Sans" sans-serif}.kanban-column .kanban-column__header .content .teste .title{font-size:14px;font-weight:800}.kanban-column .kanban-column__header .content .teste .description{font-size:12px}.kanban-column .kanban-column__body{display:-ms-flexbox;display:flex;height:100%;-ms-flex-pack:center;justify-content:center;width:100%}']})],e)}(),ns=function(){function e(){this.quantityItems=0}return pe([t.Input()],e.prototype,"quantityItems",void 0),e=pe([t.Component({selector:"s-kanban-item-dragging",template:'<div\n *ngIf="quantityItems"\n class="kanban-item-dragging">\n</div>\n\n<div\n class="kanban-item-dragging"\n [ngClass]="{ \'kanban-item-dragging--over\': quantityItems }">\n <div class="content">\n <input type="checkbox" checked />\n <s-badge\n [text]="\'platform.angular_components.count_items_selected\' | translate:{ count: quantityItems }"\n color="blue">\n </s-badge>\n </div>\n</div>',styles:[".kanban-item-dragging{background-color:#fff;border:1px solid #428bca;border-radius:4px;box-shadow:0 1px 5px 0 rgba(0,0,0,.25);height:52px;padding:16px;width:260px}.kanban-item-dragging .content{display:-ms-flexbox;display:flex;gap:16px}.kanban-item-dragging--over{left:12px;position:relative;top:-64px}"]})],e)}(),os=function(){function e(e){this._kanbanEventService=e,this.selected=!1,this.showCheckbox=!0}return e.prototype.ngOnInit=function(){this._createTieredOptions()},e.prototype.onSelectedChange=function(e){e?this._kanbanEventService.emitSelectItemEvent(this.item):this._kanbanEventService.emitUnselectItemEvent(this.item)},e.prototype._createTieredOptions=function(){var e=this;if(this.item.options){var t=[];this.item.options.forEach((function(n){t.push(ce(ce({},n),{command:function(){n.command(e.item)}}))})),this.item.options=t}},e.ctorParameters=function(){return[{type:Ja}]},pe([t.Input()],e.prototype,"item",void 0),pe([t.Input()],e.prototype,"selected",void 0),pe([t.Input()],e.prototype,"showCheckbox",void 0),pe([t.Input()],e.prototype,"headerTemplate",void 0),pe([t.Input()],e.prototype,"bodyTemplate",void 0),pe([t.Input()],e.prototype,"footerTemplate",void 0),e=pe([t.Component({selector:"s-kanban-item",template:'<p-tieredMenu\n #optionsMenu\n [popup]="true"\n appendTo="body"\n [baseZIndex]="9999"\n [model]="item.options">\n</p-tieredMenu>\n\n<div\n class="kanban-item"\n [ngClass]="{\n \'kanban-item--selected\': selected && !item.disabled,\n \'kanban-item--disabled\': item.disabled,\n \'kanban-item--frozen\': !item.disabled && item.frozen\n }">\n <div class="kanban-item__header">\n <div class="content">\n <form>\n <input\n *ngIf="showCheckbox && !item.disabled && !item.frozen"\n type="checkbox"\n name="checkbox"\n [(ngModel)]="selected"\n (ngModelChange)="onSelectedChange($event)"\n (click)="$event.stopPropagation()">\n </form>\n <ng-container *ngTemplateOutlet="headerTemplate; context: { $implicit: item }"></ng-container>\n </div>\n <button\n *ngIf="item.options && !item.disabled"\n class="options-button"\n (click)="optionsMenu.toggle($event); $event.stopPropagation();">\n <i class="fas fa-ellipsis-v"></i>\n </button>\n </div>\n <div class="kanban-item__body">\n <ng-container *ngTemplateOutlet="bodyTemplate; context: { $implicit: item }"></ng-container>\n </div>\n <div *ngIf="footerTemplate" class="kanban-item__footer">\n <ng-container *ngTemplateOutlet="footerTemplate; context: { $implicit: item }"></ng-container> \n </div>\n</div>',styles:['.kanban-item{background-color:#fff;border-radius:4px;box-shadow:0 1px 5px 0 rgba(0,0,0,.25);cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:16px;min-width:260px;padding:16px;-webkit-user-select:none;-ms-user-select:none;user-select:none}.kanban-item .kanban-item__header{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.kanban-item .kanban-item__header .content{display:-ms-flexbox;display:flex;gap:16px}.kanban-item .kanban-item__header .options-button{background-color:transparent;border:none;cursor:pointer;margin-right:-8px;padding:0 8px}.kanban-item .kanban-item__body{margin:16px 0}.kanban-item .kanban-item__footer{border-top:1px solid #dedce5;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.kanban-item .kanban-item__footer .date-info{-ms-flex-align:center;align-items:center;color:#6e7280;display:-ms-flexbox;display:flex;font-family:"Open Sans" sans-serif;font-size:12px;gap:4px;line-height:150%}.kanban-item--selected{border:1px solid #428bca}.kanban-item--disabled{opacity:50%}.kanban-item--frozen{box-shadow:none}']})],e)}(),is=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.FormsModule,a.ReactiveFormsModule,b.TranslateModule,ne.DragDropModule,$e,Ot,g.TieredMenuModule,Bt],declarations:[es,os,ts,ns],exports:[es,Bt],providers:[Ja]})],e)}(),rs=function(){function e(e){this.changeDetectorRef=e,this.changeOnInit=!1,this.stepChanged=new t.EventEmitter,this.currentIndex=0,this.isDisabled=!1,this.tieredMenuItems=[]}var n;return n=e,e.prototype.ngOnInit=function(){this._createTieredMenuItems(),this.changeOnInit&&this.stepChanged.emit({previous:void 0,current:this.steps[this.currentIndex]})},e.prototype.ngAfterViewInit=function(){this._setDefaultValue()},e.prototype._setDefaultValue=function(){var e=this;if(this.defaultValue){this._value=this.defaultValue;var t=this.steps.findIndex((function(t){return t.value===e._value}));this.currentIndex=-1!==t?t:0,this.stepChanged.emit({previous:void 0,current:this.steps[this.currentIndex]}),this.changeDetectorRef.detectChanges()}},e.prototype.writeValue=function(e){var t=this;this._value=e;var n=this.steps.findIndex((function(e){return e.value===t._value}));this.currentIndex=-1!==n?n:0},e.prototype.registerOnChange=function(e){this._onChange=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype.setDisabledState=function(e){this.isDisabled=e},e.prototype.onNext=function(){if(!this.isDisabled){var e=this.steps[this.currentIndex];if(this.currentIndex<this.steps.length-1){this.currentIndex++;var t=this.steps[this.currentIndex];this._onChange&&this._onChange(t.value),this.stepChanged.emit({previous:e,current:t})}this._onTouched&&this._onTouched()}},e.prototype.onPrevious=function(){if(!this.isDisabled){var e=this.steps[this.currentIndex];if(this.currentIndex>0){this.currentIndex--;var t=this.steps[this.currentIndex];this._onChange&&this._onChange(t.value),this.stepChanged.emit({previous:e,current:t})}this._onTouched&&this._onTouched()}},e.prototype._createTieredMenuItems=function(){var e=this;this.steps.forEach((function(t){e.tieredMenuItems.push({label:t.label,command:function(){var n=e.steps.findIndex((function(e){return e===t}));e.currentIndex!==n&&(e._onChange&&e._onChange(t.value),e.stepChanged.emit({previous:e.steps[e.currentIndex],current:t}),e.currentIndex=n),e._onTouched&&e._onTouched()}})}))},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},pe([t.Input()],e.prototype,"steps",void 0),pe([t.Input()],e.prototype,"defaultValue",void 0),pe([t.Input()],e.prototype,"tooltip",void 0),pe([t.Input()],e.prototype,"changeOnInit",void 0),pe([t.Output()],e.prototype,"stepChanged",void 0),e=n=pe([t.Component({selector:"s-navigation-button",template:'<div class="navigation-button" [ngClass]="{ \'navigation-button--disabled\': isDisabled}">\n <button\n class="option option--previous"\n [ngClass]="{ \'option--disabled\': currentIndex === 0 }"\n (click)="onPrevious()">\n <i class="fas fa-chevron-left"></i>\n </button>\n\n <ng-container *ngIf="steps[currentIndex].tooltip || tooltip; then tooltipBlock; else noTooltipBlock"></ng-container>\n\n <ng-template #tooltipBlock>\n <button\n [sTooltip]="steps[currentIndex].tooltip || tooltip"\n class="step"\n sTieredMenu [items]="tieredMenuItems"\n [focusedItem]="tieredMenuItems[currentIndex]">\n {{ steps[currentIndex].label }}\n </button>\n </ng-template>\n\n <ng-template #noTooltipBlock>\n <button class="step">\n {{ steps[currentIndex].label }}\n </button>\n </ng-template>\n\n <button\n class="option option--next"\n [ngClass]="{ \'option--disabled\': currentIndex === steps.length - 1 }"\n (click)="onNext()">\n <i class="fas fa-chevron-right"></i>\n </button>\n</div>\n',providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:['.navigation-button{display:-ms-inline-flexbox;display:inline-flex}.navigation-button .option,.navigation-button .step{background-color:#428bca;border:none;color:#fff}.navigation-button:not(.navigation-button--disabled) .step{cursor:pointer}.navigation-button:not(.navigation-button--disabled) .step:hover{background-color:#063951}.navigation-button .option{padding:8px 12px}.navigation-button .option--previous{border-radius:16px 0 0 16px}.navigation-button .option--next{border-radius:0 16px 16px 0}.navigation-button .option--disabled{opacity:.5}.navigation-button .option:not(.option--disabled):hover{cursor:pointer;background-color:#063951}.navigation-button .step{font-family:"Open Sans",sans-serif;font-size:14px;padding:8px 16px;text-align:center}.navigation-button--disabled{opacity:.5}']})],e)}(),as=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Ft,Ae],declarations:[rs],exports:[rs]})],e)}();(Qa=e.EnumSeverity||(e.EnumSeverity={})).Default="Default",Qa.Info="Info",Qa.Warn="Warn",Qa.Error="Error",Qa.Success="Success";var ss,ls,cs=function(){function e(){this.id="s-object-card-field-"+n.nextId++,this.buttonClick=new t.EventEmitter}var n;return n=e,e.nextId=0,pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"imageSource",void 0),pe([t.Input()],e.prototype,"imageAlt",void 0),pe([t.Input()],e.prototype,"iconClass",void 0),pe([t.Input()],e.prototype,"label",void 0),pe([t.Input()],e.prototype,"description",void 0),pe([t.Input()],e.prototype,"buttonLabel",void 0),pe([t.Input()],e.prototype,"buttonModel",void 0),pe([t.Output()],e.prototype,"buttonClick",void 0),pe([t.ContentChild(Ar,{static:!0})],e.prototype,"thumbnailComponent",void 0),pe([t.ViewChild(t.TemplateRef,{static:!0})],e.prototype,"content",void 0),e=n=pe([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)}(),ps=function(){function n(){this.id="s-object-card-main-"+o.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 o;return o=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<=Yn.SM_MAX?e.ThumbnailSize.Small:e.ThumbnailSize.Medium},n.nextId=0,pe([t.Input()],n.prototype,"id",void 0),pe([t.Input()],n.prototype,"imageSource",void 0),pe([t.Input()],n.prototype,"imageFallback",void 0),pe([t.Input()],n.prototype,"imageAlt",void 0),pe([t.Input()],n.prototype,"iconClass",void 0),pe([t.Input()],n.prototype,"hasThumbnail",void 0),pe([t.Input()],n.prototype,"hasDescription",void 0),pe([t.Input()],n.prototype,"isBrand",void 0),pe([t.Input()],n.prototype,"label",void 0),pe([t.Input()],n.prototype,"description",void 0),pe([t.Input()],n.prototype,"buttonLabel",void 0),pe([t.Input()],n.prototype,"buttonModel",void 0),pe([t.Output()],n.prototype,"buttonClick",void 0),pe([t.ContentChild(Ar,{static:!0})],n.prototype,"thumbnailComponent",void 0),pe([t.HostListener("window:resize")],n.prototype,"onResize",null),n=o=pe([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)}(),ds=function(){function o(n){this.elementRef=n,this.id="s-object-card-"+i.nextId++,this.expanded=!1,this.expandTooltip="Abrir painel",this.collapseTooltip="Fechar painel",this.fieldsMinWidth=200,this.expandedChange=new t.EventEmitter,this.maxVisibleFields=0,this.severity=e.EnumSeverity.Default,this.EnumSeverity=e.EnumSeverity}var i;return i=o,o.prototype.ngAfterViewInit=function(){},o.prototype.ngAfterContentChecked=function(){this.update()},o.prototype.update=function(){var e,t,n,o=window.innerWidth,i=this.elementRef.nativeElement.offsetWidth,r=.3*i>260?.3*i:260,a=this.fieldsMinWidth,s=this.elementRef.nativeElement.getElementsByClassName("s-object-card-field");try{for(var l=he(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=o<=Yn.SM_MAX?0:Math.floor((i-r)/a))&&n<this.fields.length&&(n=Math.floor((i-r-50)/a)),this.maxVisibleFields=n,n>=this.fields.length&&this.expanded&&this.collapse()},o.prototype.toggle=function(){this.expanded?this.collapse():this.expand()},o.prototype.expand=function(){this.expanded=!0,this.expandedChange.emit(this.expanded)},o.prototype.collapse=function(){this.expanded=!1,this.expandedChange.emit(this.expanded)},o.prototype.getExpandedFieldWidth=function(){var e=this.elementRef.nativeElement.offsetWidth;return 12/(e<=Yn.SM_MAX?1:e<=Yn.MD_MAX?2:e<=Yn.LG_MAX?4:6)},o.nextId=0,o.ctorParameters=function(){return[{type:t.ElementRef}]},pe([t.Input()],o.prototype,"id",void 0),pe([t.Input()],o.prototype,"expanded",void 0),pe([t.Input()],o.prototype,"expandTooltip",void 0),pe([t.Input()],o.prototype,"collapseTooltip",void 0),pe([t.Input()],o.prototype,"fieldsMinWidth",void 0),pe([t.Output()],o.prototype,"expandedChange",void 0),pe([t.ContentChild(ps,{static:!0})],o.prototype,"main",void 0),pe([t.ContentChildren(cs,{descendants:!0})],o.prototype,"fields",void 0),pe([t.Input()],o.prototype,"severity",void 0),pe([t.Input()],o.prototype,"borderButtonOptions",void 0),o=i=pe([t.Component({selector:"s-object-card",template:'<div [id]="id" class="container">\n <s-border-button\n *ngIf="\n borderButtonOptions?.visible\n ? borderButtonOptions?.visible(severity)\n : false\n "\n [severity]="severity"\n [options]="borderButtonOptions"\n class="object-card__border-button"\n [@BorderButtonAnimation]\n ></s-border-button>\n\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 \'main-container--severity-default\': severity === EnumSeverity.Default,\n \'main-container--severity-info\': severity === EnumSeverity.Info,\n \'main-container--severity-warn\': severity === EnumSeverity.Warn,\n \'main-container--severity-error\': severity === EnumSeverity.Error,\n \'main-container--severity-success\': severity == EnumSeverity.Success\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\n [id]="id + \'-expandable-container\'"\n [@expandableContent]="expanded"\n class="expandable-container"\n [ngClass]="{\n \'expandable-container--severity-default\':\n severity === EnumSeverity.Default,\n \'expandable-container--severity-info\': severity === EnumSeverity.Info,\n \'expandable-container--severity-warn\': severity === EnumSeverity.Warn,\n \'expandable-container--severity-error\': severity === EnumSeverity.Error,\n \'expandable-container--severity-success\':\n severity == EnumSeverity.Success\n }"\n >\n <div class="ui-g ui-g-12">\n <ng-container\n *ngFor="\n let field of fields.toArray()\n | slice : maxVisibleFields : fields.length\n "\n >\n <div class="ui-g-{{ getExpandedFieldWidth() }}">\n <div class="s-object-card-field">\n <ng-container\n *ngTemplateOutlet="field.content"\n ></ng-container>\n </div>\n </div>\n </ng-container>\n </div>\n </div>\n</div>\n',animations:[n.trigger("expandableContent",[n.state("*",n.style({height:"0"})),n.state("false",n.style({height:"0"})),n.state("true",n.style({height:"*"})),n.transition("* => true",n.animate("200ms ease-out")),n.transition("false <=> true",n.animate("200ms ease-out"))]),n.trigger("BorderButtonAnimation",[n.transition(":enter",[n.style({transform:"scaleY(0)",opacity:0}),n.animate("300ms ease",n.style({transform:"scaleY(1)",opacity:1}))]),n.transition(":leave",[n.style({transform:"scaleY(1)",opacity:1}),n.animate("300ms ease",n.style({transform:"scaleY(0)",opacity:0}))])])],styles:[":host{display:block}.container{margin-bottom:20px;position:relative}.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--severity-default{border-color:#ccc;border-top:initial}.expandable-container--severity-info{transition:border-color .5s;border-color:#428bca;border-top:initial}.expandable-container--severity-warn{transition:border-color .5s;border-color:#f8931f;border-top:initial}.expandable-container--severity-error{transition:border-color .5s;border-color:#c13018;border-top:initial}.expandable-container--severity-success{transition:border-color .5s;border-color:#0c9348;border-top:initial}.main-container--severity-default{border-color:#ccc}.main-container--severity-info{transition:border-color .5s;border-color:#428bca}.main-container--severity-warn{transition:border-color .5s;border-color:#f8931f}.main-container--severity-error{transition:border-color .5s;border-color:#c13018}.main-container--severity-success{transition:border-color .5s;border-color:#0c9348}.object-card__border-button{position:absolute;top:-13px;right:15px;z-index:1}.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)}}"]})],o)}(),us=function(){function n(){this.severity=e.EnumSeverity.Default,this.EnumSeverity=e.EnumSeverity,this.TooltipPosition=e.TooltipPosition}return pe([t.Input()],n.prototype,"severity",void 0),pe([t.Input()],n.prototype,"options",void 0),n=pe([t.Component({selector:"s-border-button",template:'<button\n class="border-button"\n [ngClass]="{\n \'border-button--severity-default\': severity === EnumSeverity.Default,\n \'border-button--severity-info\': severity === EnumSeverity.Info,\n \'border-button--severity-warn\': severity === EnumSeverity.Warn,\n \'border-button--severity-error\': severity === EnumSeverity.Error,\n \'border-button--severity-success\': severity == EnumSeverity.Success,\n \'border-button--disabled\': options?.disabled\n ? options?.disabled(severity)\n : false\n }"\n (click)="options?.onClick ? options?.onClick(severity) : null"\n [sTooltip]="options?.tooltip ? options?.tooltip(severity) : null"\n [tooltipPosition]="TooltipPosition.Left"\n [disabled]="options?.disabled ? options?.disabled(severity) : false"\n>\n <span class="border-button__label">\n {{ options?.label ? options?.label(severity) : null }}\n </span>\n <span\n *ngIf="options?.icon ? options?.icon(severity) : false"\n class="border-button__icon {{ options?.icon(severity) }}"\n ></span>\n</button>',styles:[".border-button{padding:0 8px;border:1px solid;border-radius:12px;height:23px;max-width:320px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;cursor:pointer}.border-button__label{font-family:Open Sans,sans-serif;font-size:12px;line-height:150%;width:100%;display:block;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.border-button__icon{font-size:12px;color:#333;margin-left:8px}.border-button--severity-default{border-color:#ccc;background-color:#fff}.border-button--severity-info{border-color:#428bca;background-color:#d5e8ec;transition:background-color .5s,border-color .5s}.border-button--severity-info:enabled:hover{background-color:#9ecad4;cursor:pointer}.border-button--severity-info:enabled:active{transition:none;background-color:#67acbc;border-color:#67acbc}.border-button--severity-warn{border-color:#f8931f;background-color:#fce3ba;transition:background-color .5s,border-color .5s}.border-button--severity-warn:enabled:hover{background-color:#f8bf5e;cursor:pointer}.border-button--severity-warn:enabled:active{transition:none;background-color:#f5a319;border-color:#f5a319}.border-button--severity-error{border-color:#c13018;background-color:#fcd2d2;transition:background-color .5s,border-color .5s}.border-button--severity-error:enabled:hover{background-color:#f89696;cursor:pointer}.border-button--severity-error:enabled:active{transition:none;background-color:#f45b5b;border-color:#f45b5b}.border-button--severity-success{border-color:#0c9348;background-color:#e6ffb3;transition:background-color .5s,border-color .5s}.border-button--severity-success:enabled:hover{background-color:#c8ff5c;cursor:pointer}.border-button--severity-success:enabled:active{transition:none;background-color:#ade500;border-color:#ade500}.border-button--disabled:disabled:hover{cursor:default}"]})],n)}(),ms=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Ae],declarations:[us],exports:[us]})],e)}(),hs=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Y.TooltipModule,Dr,Ot,ms],declarations:[ds,ps,cs],exports:[Dr,ds,ps,cs]})],e)}(),fs=function(){function o(){this.toggleable=!1,this.collapsed=!1,this.severity=e.EnumSeverity.Default,this.collapsedChange=new t.EventEmitter,this.EnumSeverity=e.EnumSeverity}return o.prototype.ngAfterContentInit=function(){this._getTemplates()},o.prototype.toggleCollapsed=function(){this.collapsed=!this.collapsed,this.collapsedChange.emit(this.collapsed)},o.prototype._getCustomTemplate=function(e){var t;return null===(t=this.templates.find((function(t){return t.type===e})))||void 0===t?void 0:t.template},o.prototype.getHeaderTemplate=function(){return this._getCustomTemplate("header")},o.prototype.getBodyTemplate=function(){return this._getCustomTemplate("body")},o.prototype.getFooterTemplate=function(){return this._getCustomTemplate("footer")},o.prototype._getTemplates=function(){this.headerTemplate=this.getHeaderTemplate(),this.bodyTemplate=this.getBodyTemplate(),this.footerTemplate=this.getFooterTemplate()},pe([t.Input()],o.prototype,"header",void 0),pe([t.Input()],o.prototype,"toggleable",void 0),pe([t.Input()],o.prototype,"collapsed",void 0),pe([t.Input()],o.prototype,"severity",void 0),pe([t.Input()],o.prototype,"borderButtonOptions",void 0),pe([t.Input()],o.prototype,"class",void 0),pe([t.Output()],o.prototype,"collapsedChange",void 0),pe([t.ContentChildren(Dt)],o.prototype,"templates",void 0),o=pe([t.Component({selector:"s-panel",template:'<div\n [class]="class"\n [ngClass]="{\n \'panel\': true,\n \'panel--success\': severity === EnumSeverity.Success,\n \'panel--info\': severity === EnumSeverity.Info,\n \'panel--warn\': severity === EnumSeverity.Warn,\n \'panel--error\': severity === EnumSeverity.Error,\n \'panel--collapsed\': collapsed\n }"\n>\n <s-border-button\n *ngIf="borderButtonOptions?.visible ? borderButtonOptions?.visible(severity) : false"\n [severity]="severity"\n [options]="borderButtonOptions"\n class="border-button"\n [@BorderButtonAnimation]\n >\n </s-border-button>\n\n <div *ngIf="header || headerTemplate" class="header">\n <div class="header-content">\n <ng-container *ngIf="headerTemplate; then customHeaderTemplate; else simpleHeaderTemplate"></ng-container>\n <ng-template #customHeaderTemplate>\n <ng-container *ngTemplateOutlet="headerTemplate"></ng-container>\n </ng-template>\n <ng-template #simpleHeaderTemplate>\n <span>{{ header }}</span>\n </ng-template>\n </div>\n <button\n *ngIf="toggleable"\n class="collapse-button fas"\n [ngClass]="{\n \'fa-plus\': collapsed,\n \'fa-minus\': !collapsed\n }"\n (click)="toggleCollapsed()"\n ></button>\n </div>\n\n <div *ngIf="!toggleable || !collapsed" class="panel-content">\n <div class="body">\n <ng-content></ng-content>\n <ng-container *ngTemplateOutlet="bodyTemplate"></ng-container>\n </div>\n\n <div *ngIf="footerTemplate" class="footer">\n <ng-container *ngTemplateOutlet="footerTemplate"></ng-container>\n </div>\n </div>\n</div>\n',animations:[n.trigger("BorderButtonAnimation",[n.transition(":enter",[n.style({transform:"scaleY(0)",opacity:0}),n.animate("300ms ease",n.style({transform:"scaleY(1)",opacity:1}))]),n.transition(":leave",[n.style({transform:"scaleY(1)",opacity:1}),n.animate("300ms ease",n.style({transform:"scaleY(0)",opacity:0}))])])],styles:[".panel{background-color:#fff;border:1px solid #dedce5;padding:20px;position:relative;transition:border-color .5s}.panel .border-button{position:absolute;right:15px;top:-12px;z-index:10}.panel .header{border-bottom:1px solid #dedce5;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding-bottom:12px;margin-bottom:12px;text-transform:uppercase}.panel .header-content{-ms-flex-positive:1;flex-grow:1}.panel .header .collapse-button{background-color:transparent;border:none;color:#212533;cursor:pointer;height:24px;width:24px}.panel .panel-content .footer{border-top:1px solid #dedce5;padding-top:12px}.panel--success{border-color:#0c9348}.panel--info{border-color:#428bca}.panel--warn{border-color:#f8931f}.panel--error{border-color:#c13018}.panel--collapsed .header{border:none;padding:0}"]})],o)}(),gs=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,ms],declarations:[fs],exports:[fs,Bt]})],e)}(),vs=function(){function e(){this.id="s-product-header-"+n.nextId++,this.baseZIndex=0,this.isHeaderFrame=!0}var n;return n=e,e.prototype.ngAfterViewInit=function(){this.container.nativeElement.style.zIndex=String(this.baseZIndex+ ++f.DomHandler.zindex),this.isHeaderFrame?this.container.nativeElement.style.borderBottom="1px solid $default-secondary-color":this.container.nativeElement.style.borderTop="1px solid $default-secondary-color"},e.nextId=0,pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"header",void 0),pe([t.Input()],e.prototype,"baseZIndex",void 0),pe([t.Input()],e.prototype,"isHeaderFrame",void 0),pe([t.ViewChild("headerContainer",{static:!1})],e.prototype,"container",void 0),e=n=pe([t.Component({selector:"s-product-header",template:'<div [id]="id" class="box">\n <div\n #headerContainer\n class="sds-container"\n [class]="isHeaderFrame ? \'header-frame\' : \'primary-header\'"\n >\n <h1 [class]="isHeaderFrame ? \'title\' : \'primary-title\'">{{ header }}</h1>\n <div class="content">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n',styles:[".box{position:relative;width:100%;height:70px}.header-frame{padding-top:15px;padding-bottom:15px;width:100%;top:0;left:0;height:70px;background-color:#fff;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;position:fixed}.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}.primary-header{display:-ms-flexbox;display:flex;width:100%;height:70px;padding:15px 20px;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;border-bottom:1px solid #ddd;background-color:#fff;gap:24px}@media (max-width:768px){.primary-header{width:100%}}.primary-header .primary-title{color:#999;font-weight:400;font-size:16pt;margin-right:15px;min-width:140px;overflow:hidden;text-overflow:ellipsis}"]})],e)}(),bs=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Y.TooltipModule,Dr],declarations:[vs],exports:[vs,Dr]})],e)}();(ss=e.ProgressBarColors||(e.ProgressBarColors={})).Blue="blue",ss.Green="green",ss.Red="red",ss.Yellow="yellow",function(e){e.Determinate="determinate",e.Indeterminate="indeterminate"}(ls||(ls={}));var ys=function(){function e(){this.numberFormatOptions={style:"decimal",minimumFractionDigits:0,maximumFractionDigits:2,roundingMode:"trunc"},this.showValue=!0,this.mode=ls.Determinate}return e.prototype.ngOnInit=function(){this.validateInputs()},e.prototype.validateInputs=function(){if(this.value<0||this.value>100)throw new Error("Invalid value for value");if(this.targetValue<0||this.targetValue>100)throw new Error("Invalid value for targetValue");if(this.mode===ls.Indeterminate&&(this.value||this.targetValue||this.targetLabel))throw new Error("When the mode is indeterminate, the value, targetValue and targetLabel parameters are not expected.")},pe([t.Input()],e.prototype,"value",void 0),pe([t.Input()],e.prototype,"numberFormatOptions",void 0),pe([t.Input()],e.prototype,"targetValue",void 0),pe([t.Input()],e.prototype,"label",void 0),pe([t.Input()],e.prototype,"targetLabel",void 0),pe([t.Input()],e.prototype,"activeColor",void 0),pe([t.Input()],e.prototype,"showValue",void 0),pe([t.Input()],e.prototype,"mode",void 0),e=pe([t.Component({selector:"s-progressbar",template:'<ng-container *ngIf="mode === \'determinate\'; then pbDeterminateTemplate else pbIndeterminateTemplate"></ng-container>\n\n<ng-template #pbDeterminateTemplate>\n <s-progressbar-determinate\n [value]="value"\n [numberFormatOptions]="numberFormatOptions"\n [targetValue]="targetValue"\n [targetLabel]="targetLabel"\n [activeColor]="activeColor"\n [showValue]="showValue">\n </s-progressbar-determinate>\n</ng-template>\n\n<ng-template #pbIndeterminateTemplate>\n <s-progressbar-indeterminate\n [activeColor]="activeColor"\n [label]="label">\n </s-progressbar-indeterminate>\n</ng-template>',styles:['.progress-bar{position:relative}.progress-bar .progress-bar-all{background-color:#d8d8d8;border-radius:4px;height:24px;overflow:hidden;width:100%}.progress-bar .progress-bar-all .progress-bar-active{-ms-flex-align:center;align-items:center;color:#fff;display:-ms-flexbox;display:flex;font-family:"Open Sans",sans-serif;font-size:14px;height:100%;-ms-flex-pack:center;justify-content:center;line-height:150%;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:80%}.progress-bar .progress-bar-all .progress-bar-active--blue{background-color:#428bca}.progress-bar .progress-bar-all .progress-bar-active--green{background-color:#0c9348}.progress-bar .progress-bar-all .progress-bar-active--red{background-color:#c13018}.progress-bar .progress-bar-all .progress-bar-active--yellow{background-color:#fcbf10}.progress-bar .target{-ms-flex-align:start;align-items:flex-start;bottom:-38px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:absolute}.progress-bar .target .target-line{background-color:#333;height:40px;margin:8px 0;width:1px}.progress-bar .target .target-label{background-color:#426e78;border-radius:10px;color:#e5eaea;font-family:"Open Sans",sans-serif;font-size:12px;line-height:150%;padding:2px 12px}']})],e)}(),xs=function(){function e(e){this.localeService=e,this.showValue=!0}return e.prototype.ngOnInit=function(){this.validateValues(),this.onGetLocale()},e.prototype.onGetLocale=function(){var e=this;this.localeService.getLocale().subscribe({next:function(t){e.numberFormat=new Intl.NumberFormat(null!=t?t:"pt-BR",e.numberFormatOptions)},error:function(){e.numberFormat=new Intl.NumberFormat("pt-BR",e.numberFormatOptions)}})},e.prototype.validateValues=function(){if(this.value<0||this.value>100)throw new Error("Invalid value for value");if(this.targetValue<0||this.targetValue>100)throw new Error("Invalid value for targetValue")},e.ctorParameters=function(){return[{type:Je}]},pe([t.Input()],e.prototype,"value",void 0),pe([t.Input()],e.prototype,"numberFormatOptions",void 0),pe([t.Input()],e.prototype,"targetValue",void 0),pe([t.Input()],e.prototype,"targetLabel",void 0),pe([t.Input()],e.prototype,"activeColor",void 0),pe([t.Input()],e.prototype,"showValue",void 0),e=pe([t.Component({selector:"s-progressbar-determinate",template:"<div class=\"progressbar-determinate\">\n <div class=\"progressbar-container\">\n <div\n class=\"progressbar-active\"\n [ngClass]=\"{\n 'progressbar-active--blue' : activeColor === 'blue',\n 'progressbar-active--green': activeColor === 'green',\n 'progressbar-active--red': activeColor === 'red',\n 'progressbar-active--yellow': activeColor === 'yellow'\n }\"\n [ngStyle]=\"{ 'width': value + '%' }\">\n\n {{ showValue && value ? numberFormat.format(value) + '%' : '' }}\n </div>\n </div>\n <div\n *ngIf=\"targetValue\"\n class=\"target\"\n [ngStyle]=\"{\n 'left': targetValue <= 50 ? targetValue + '%' : 'unset',\n 'right': targetValue > 50 ? 100 - targetValue + '%' : 'unset',\n 'align-items': targetValue > 50 ? 'flex-end' : 'flex-start'\n }\">\n <span class=\"target-line\"></span>\n <span class=\"target-label\">\n {{ targetLabel || numberFormat.format(value) + '%' }}\n </span>\n </div>\n </div>\n",styles:['.progressbar-determinate{position:relative}.progressbar-determinate .progressbar-container{background-color:#d8d8d8;border-radius:4px;height:24px;overflow:hidden;width:100%}.progressbar-determinate .progressbar-container .progressbar-active{-ms-flex-align:center;align-items:center;color:#fff;display:-ms-flexbox;display:flex;font-family:"Open Sans",sans-serif;font-size:14px;height:100%;-ms-flex-pack:center;justify-content:center;line-height:150%;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:80%}.progressbar-determinate .progressbar-container .progressbar-active--blue{background-color:#428bca}.progressbar-determinate .progressbar-container .progressbar-active--green{background-color:#0c9348}.progressbar-determinate .progressbar-container .progressbar-active--red{background-color:#c13018}.progressbar-determinate .progressbar-container .progressbar-active--yellow{background-color:#fcbf10;color:#212533}.progressbar-determinate .target{-ms-flex-align:start;align-items:flex-start;bottom:-38px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:absolute}.progressbar-determinate .target .target-line{background-color:#333;height:40px;margin:8px 0;width:1px}.progressbar-determinate .target .target-label{background-color:#426e78;border-radius:10px;color:#e5eaea;font-family:"Open Sans",sans-serif;font-size:12px;line-height:150%;padding:2px 12px}']})],e)}(),_s=function(){function e(){}return pe([t.Input()],e.prototype,"activeColor",void 0),pe([t.Input()],e.prototype,"label",void 0),e=pe([t.Component({selector:"s-progressbar-indeterminate",template:"<div class=\"progressbar-indeterminate\">\n <div class=\"progressbar-container\">\n <div class=\"indeterminate-bar\" [ngClass]=\"{\n 'indeterminate-bar--blue': activeColor === 'blue',\n 'indeterminate-bar--green': activeColor === 'green',\n 'indeterminate-bar--red': activeColor === 'red',\n 'indeterminate-bar--yellow': activeColor === 'yellow'\n }\"></div>\n </div>\n\n <span *ngIf=\"label\" class=\"progressbar-label\">{{ label }}</span>\n</div>\n",styles:['.progressbar-indeterminate{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center}.progressbar-indeterminate .progressbar-container{background-color:#d8d8d8;border-radius:4px;height:24px;margin:8px 0;overflow:hidden;width:100%}.progressbar-indeterminate .indeterminate-bar{animation:5s infinite indeterminate-progress;background-color:#428bca;height:100%;width:40%}.progressbar-indeterminate .indeterminate-bar--blue{background-color:#428bca}.progressbar-indeterminate .indeterminate-bar--green{background-color:#0c9348}.progressbar-indeterminate .indeterminate-bar--red{background-color:#c13018}.progressbar-indeterminate .indeterminate-bar--yellow{background-color:#fcbf10}.progressbar-indeterminate .progressbar-label{font-family:"Open Sans" sans-serif;font-size:12px;line-height:150%;color:#212533}@keyframes indeterminate-progress{0%{transform:translateX(-250%)}100%{transform:translateX(250%)}}']})],e)}(),ws=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[ys,xs,_s],exports:[ys]})],e)}(),Cs=function(){function e(){this.disabled=!1}var n;return n=e,e.prototype.writeValue=function(e){this.disabled||(this.value=e)},e.prototype.registerOnChange=function(e){this._onChange=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype.onSelect=function(e){this.value=e,this._onChange&&this._onChange(this.value)},pe([t.Input()],e.prototype,"nodes",void 0),pe([t.Input()],e.prototype,"startLabel",void 0),pe([t.Input()],e.prototype,"endLabel",void 0),pe([t.Input()],e.prototype,"disabled",void 0),e=n=pe([t.Component({selector:"s-rating-scale",template:'<div\n class="rating-scale"\n [ngClass]="{ \'rating-scale--disabled\': disabled }">\n <div class="nodes">\n <button\n *ngFor="let node of nodes; index as i"\n class="node"\n [ngClass]="{ \'node--selected\': value?.id === node.id && !disabled }"\n tabindex="0"\n (click)="onSelect(node)"> \n <span\n *ngIf="node.icon"\n class="icon fas"\n [ngClass]="node.icon">\n </span>\n <span\n *ngIf="node.title"\n class="label">\n {{ node.title }}\n </span>\n </button>\n </div>\n <div class="labels">\n <span>{{ startLabel }}</span>\n <span>{{ endLabel }}</span>\n </div>\n</div>',providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:['.rating-scale{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.rating-scale .nodes{display:-ms-flexbox;display:flex}.rating-scale .nodes .node{-ms-flex-align:center;align-items:center;background-color:#fff;border-radius:6px;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-pack:center;justify-content:center;margin:0 2px;padding:8px;border:1px solid #7892a1}.rating-scale .nodes .node .icon{color:#6e7280;font-size:1rem}.rating-scale .nodes .node .label{color:#212533;font-size:.875rem;font-weight:400;line-height:150%}.rating-scale .nodes .node .icon,.rating-scale .nodes .node .label{margin:6px}.rating-scale .nodes .node--selected{background-color:#d5e8ec;border-color:#428bca;color:#428bca}.rating-scale .nodes .node:first-child{margin-left:0}.rating-scale .nodes .node:last-child{margin-right:0}.rating-scale .labels{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:12px 0}.rating-scale .labels span{color:#080808;font-family:"Open Sans" sans-serif;font-size:.875rem;font-weight:400;line-height:150%}.rating-scale--disabled{opacity:.5}.rating-scale:not(.rating-scale--disabled) .node{cursor:pointer}.rating-scale:not(.rating-scale--disabled) .node:hover{background-color:#dedce5}.rating-scale:not(.rating-scale--disabled) .node:focus{border-width:2px;outline:0}']})],e)}(),ks=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.ReactiveFormsModule],declarations:[Cs],exports:[Cs]})],e)}(),Is=function(){function e(){this.multiple=!1,this.itemSelected=new t.EventEmitter,this.itemClicked=new t.EventEmitter,this.disabled=!1,this.activeItems=new Set}var n;return n=e,e.prototype.writeValue=function(e){var t=this;e&&(this.activeItems.clear(),Array.isArray(e)?e.forEach((function(e){t.items.forEach((function(n){t._compareItems(e,n)&&t.activeItems.add(n)}))})):this.items.forEach((function(n){t._compareItems(e,n)&&t.activeItems.add(n)})))},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.onItemSelect=function(e){var t,n;this.disabled||e.disabled||(this.itemClicked.emit(e),this.multiple||this.activeItems.clear(),this.activeItems.add(e),this.itemSelected.emit(ge(this.activeItems)),null===(t=this.onChange)||void 0===t||t.call(this,ge(this.activeItems)),null===(n=this.onTouched)||void 0===n||n.call(this,ge(this.activeItems)))},e.prototype._compareItems=function(e,t){var n=function(e,t){var o,i;if(e===t)return!0;if(void 0===e||void 0===t||"object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;var r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;try{for(var s=he(r),l=s.next();!l.done;l=s.next()){var c=l.value;if(!a.includes(c)||!n(e[c],t[c]))return!1}}catch(e){o={error:e}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}for(var c in e)if(e.hasOwnProperty(c)!==t.hasOwnProperty(c))return!1;return!0};return n(e,t)},pe([t.Input()],e.prototype,"items",void 0),pe([t.Input()],e.prototype,"multiple",void 0),pe([t.Output()],e.prototype,"itemSelected",void 0),pe([t.Output()],e.prototype,"itemClicked",void 0),e=n=pe([t.Component({selector:"s-select-button",template:'<div\n class="select-button"\n [ngClass]="{ \'select-button--disabled\': disabled }">\n <s-select-button-item\n *ngFor="let item of items; index as i"\n [label]="item.label"\n [active]="activeItems?.has(item)"\n [disabled]="disabled || item.disabled"\n [first]="i === 0"\n [last]="i === items.length - 1"\n (click)="onItemSelect(item)">\n </s-select-button-item>\n</div>',providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:[".select-button{overflow:hidden}"]})],e)}(),Ss=function(){function e(){this.active=!1,this.first=!1,this.last=!1,this.disabled=!1}return pe([t.Input()],e.prototype,"label",void 0),pe([t.Input()],e.prototype,"active",void 0),pe([t.Input()],e.prototype,"first",void 0),pe([t.Input()],e.prototype,"last",void 0),pe([t.Input()],e.prototype,"disabled",void 0),e=pe([t.Component({selector:"s-select-button-item",template:"<button\n class=\"select-button-item\"\n [ngClass]=\"{\n 'select-button-item--active': active,\n 'select-button-item--disabled': disabled,\n 'select-button-item--first': first,\n 'select-button-item--last': last\n }\">\n <span class=\"select-button-item__label\">{{ label }}</span>\n</button>",styles:['.select-button-item{padding:8px 12px;cursor:pointer;background-color:#fff;border:none;border-left:1px solid #c1c1cc;border-top:1px solid #c1c1cc;border-bottom:1px solid #c1c1cc}.select-button-item__label{font-family:"Open Sans" sans-serif;font-size:14px}.select-button-item:not(.select-button-item--disabled):not(.select-button-item--active):hover{background-color:#eeebf2}.select-button-item--active,.select-button-item--active:hover{background-color:#c1c1cc;font-weight:700}.select-button-item--disabled{opacity:.5;cursor:default}.select-button-item--first{border-top-left-radius:2px;border-bottom-left-radius:2px}.select-button-item--last{border-right:1px solid #c1c1cc;border-top-right-radius:2px;border-bottom-right-radius:2px}']})],e)}(),Ts=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[Is,Ss],exports:[Is]})],e)}();function Es(e){return void 0===e&&(e="disabled"),function(t,n,o){var i=o.value;return o.value=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this[e])return i.apply(this,t)},o}}var Ms,Ls=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(){f.DomHandler.addClass(document.body,"ui-overflow-hidden-sidebar"),this.focusTrapFactory.create(this.innerSidebar.containerViewChild.nativeElement,!1).focusInitialElementWhenReady()},e.prototype.onHide=function(){f.DomHandler.removeClass(document.body,"ui-overflow-hidden-sidebar")},e.prototype.close=function(e){f.DomHandler.removeClass(document.body,"ui-overflow-hidden-sidebar"),this.visibleChange.emit(!1),e.preventDefault()},e.nextId=0,e.ctorParameters=function(){return[{type:oe.FocusTrapFactory}]},pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"visible",void 0),pe([t.Input()],e.prototype,"header",void 0),pe([t.Input()],e.prototype,"baseZIndex",void 0),pe([t.Input()],e.prototype,"largeSized",void 0),pe([t.Output()],e.prototype,"visibleChange",void 0),pe([t.ViewChild(re.Sidebar,{static:!0})],e.prototype,"innerSidebar",void 0),pe([t.ContentChild(Sr,{static:!0})],e.prototype,"headerSection",void 0),pe([t.ContentChild(Tr,{static:!0})],e.prototype,"footerSection",void 0),e=n=pe([t.Component({selector:"s-sidebar",template:'<p-sidebar\n [id]="id"\n [visible]="visible"\n (visibleChange)="visibleChange.emit($event)"\n [blockScroll]="true"\n [baseZIndex]="baseZIndex"\n [modal]="true"\n [dismissible]="false"\n [showCloseIcon]="false"\n position="right"\n appendTo="body"\n [styleClass]="largeSized ? \'s-sidebar-panel s-sidebar-panel-lg\' : \'s-sidebar-panel\'"\n (onShow)="onShow()"\n (onHide)="onHide()">\n <div\n [id]="id + \'-container\'"\n class="s-sidebar-container">\n <a\n href="#"\n role="button"\n class="s-sidebar-close"\n (click)="close($event)">\n <span\n class="fa fa-times"\n aria-hidden="true">\n </span></a>\n <div\n *ngIf="header && !headerSection" \n [id]="id + \'-header\'"\n class="s-sidebar-header">\n <h2 class="sds-panel-title s-sidebar-header__title">{{header}}</h2>\n </div>\n <div\n *ngIf="headerSection" \n [id]="id + \'-header\'"\n class="s-sidebar-header">\n <ng-content select="s-header"></ng-content>\n </div>\n <p-scrollPanel\n [id]="id + \'-content-container\'"\n class="s-sidebar-content-container"\n styleClass="s-sidebar-content">\n <ng-content></ng-content>\n </p-scrollPanel>\n <div\n *ngIf="footerSection"\n [id]="id + \'-footer\'"\n class="s-sidebar-footer">\n <ng-content select="s-footer"></ng-content>\n </div>\n </div>\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}.s-sidebar-header__title{font-weight:400}"]})],e)}(),Fs=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,oe.A11yModule,re.SidebarModule,ie.ScrollPanelModule,Er],declarations:[Ls],exports:[Er,Ls]})],e)}(),Os=function(){function e(){this.modalCloseMap=new Map}return e.prototype.createSlidePanel=function(e){var t=new o.Subject;return this.modalCloseMap.set(e,t),t.asObservable()},e.prototype.getModalCloseObservable=function(e){return this.modalCloseMap.get(e).asObservable()},e.prototype.closeModal=function(e){var t=this.modalCloseMap.get(e);t&&t.next()},e=pe([t.Injectable()],e)}(),Rs=function(){function e(e){this.slidePanelService=e,this.id="slide-panel-"+ ++r.nextId,this.openIcon="fas fa-chevron-right",this.closeIcon="fas fa-chevron-left",this.cache=!1,this.createOpen=!1,this.noOverlap=!1,this.panelOpened=new t.EventEmitter,this.panelClosed=new t.EventEmitter,this.isOpen=!1,this.isSlideOver=!1,this.isAnimating=!1,this.isContentAnimationDisabled=!0,this.slideHeight=0,this._unsubscribe$=new o.Subject}var r;return r=e,e.prototype.onResize=function(){this._checkOverBehavior()},e.prototype.ngOnInit=function(){var e=this;this._checkOverBehavior(),this.slidePanelService.createSlidePanel(this.id).pipe(i.takeUntil(this._unsubscribe$)).subscribe((function(){e.isOpen=!1}))},e.prototype.ngAfterViewInit=function(){var e=this;queueMicrotask((function(){e.createOpen&&(e.isOpen=!0)}))},e.prototype.ngAfterViewChecked=function(){var e=this;queueMicrotask((function(){e._calculateSlideHeight(),e.isContentAnimationDisabled=!1}))},e.prototype.ngOnDestroy=function(){this._unsubscribe$.next(),this._unsubscribe$.complete()},e.prototype.onClickButton=function(){this.isAnimating||(this.isOpen=!this.isOpen,this.isOpen?this.panelOpened.emit():this.panelClosed.emit())},e.prototype.onContentAnimationStart=function(){this.isAnimating=!0},e.prototype.onContentAnimationDone=function(){this.isAnimating=!1},e.prototype._checkOverBehavior=function(){this.isSlideOver=window.innerWidth<=420},e.prototype._calculateSlideHeight=function(){this.slideHeight=this._sideContentRef.nativeElement.clientHeight},e.nextId=0,e.ctorParameters=function(){return[{type:Os}]},pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"openIcon",void 0),pe([t.Input()],e.prototype,"closeIcon",void 0),pe([t.Input()],e.prototype,"cache",void 0),pe([t.Input()],e.prototype,"createOpen",void 0),pe([t.Input()],e.prototype,"noOverlap",void 0),pe([t.Output()],e.prototype,"panelOpened",void 0),pe([t.Output()],e.prototype,"panelClosed",void 0),pe([t.ViewChild("sideContent")],e.prototype,"_sideContentRef",void 0),pe([t.HostListener("window:resize")],e.prototype,"onResize",null),e=r=pe([t.Component({selector:"s-slide-panel",template:'<div class="slide-panel">\n <div\n class="slide-content"\n [ngClass]="{\n \'slide-content--closed\': !isOpen,\n \'slide-content--over\': isSlideOver,\n \'slide-content--no-overlap\': noOverlap\n }">\n <div\n #mainContainer\n class="main-container"\n [style.maxHeight]="slideHeight + \'px\'">\n <ng-container *ngIf="cache; then cacheTemplate else cachelessTemplate"></ng-container>\n </div>\n <button\n class="button"\n [ngClass]="isOpen ? closeIcon : openIcon"\n (click)="onClickButton()">\n </button>\n </div>\n <div \n #sideContent\n class="side-content">\n <ng-content select="[side-content]"></ng-content>\n </div>\n</div>\n\n<ng-template #cacheTemplate>\n <div\n class="content-container"\n [@cacheAnimation]="isOpen"\n [@.disabled]="isContentAnimationDisabled"\n (@cacheAnimation.start)="onContentAnimationStart()"\n (@cacheAnimation.done)="onContentAnimationDone()">\n <ng-container [ngTemplateOutlet]="slideContentTemplate"></ng-container>\n </div>\n</ng-template>\n\n<ng-template #cachelessTemplate>\n <div\n *ngIf="isOpen"\n class="content-container"\n @cachelessAnimation\n [@.disabled]="isContentAnimationDisabled"\n (@cachelessAnimation.start)="onContentAnimationStart()"\n (@cachelessAnimation.done)="onContentAnimationDone()">\n <ng-container [ngTemplateOutlet]="slideContentTemplate"></ng-container>\n </div>\n</ng-template>\n\n<ng-template #slideContentTemplate>\n <ng-content select="[slide-content]"></ng-content>\n</ng-template>',animations:[n.trigger("cachelessAnimation",[n.transition(":enter",[n.style({width:"0"}),n.animate("200ms linear",n.style({width:"*"}))]),n.transition(":leave",[n.style({width:"*"}),n.animate("200ms linear",n.style({width:"0"}))])]),n.trigger("cacheAnimation",[n.state("true",n.style({width:"*",padding:"0 16px"})),n.state("false",n.style({width:"0px",padding:"0"})),n.transition("* => *",n.animate("200ms"))])],styles:['.slide-panel{display:-ms-flexbox;display:flex;width:100%}.slide-panel .slide-content{display:-ms-flexbox;display:flex;position:relative}.slide-panel .slide-content .main-container{background-color:#eeebf2;display:-ms-flexbox;display:flex;border:1px solid #ccc;overflow:hidden;position:relative}.slide-panel .slide-content .main-container .content-container{overflow-y:auto;overflow-x:hidden;padding:16px}.slide-panel .slide-content .button{-ms-flex-align:center;align-items:center;background-color:#eeebf2;border:1px solid #ccc;border-left:none;border-radius:0 4px 4px 0;cursor:pointer;display:-ms-flexbox;display:flex;font-family:"Font Awesome 5 Pro";font-size:16px;height:32px;-ms-flex-pack:center;justify-content:center;position:absolute;right:-32px;top:16px;width:32px;z-index:99}.slide-panel .slide-content--closed .main-container{border:none}.slide-panel .slide-content--over{position:absolute}.slide-panel .slide-content--no-overlap{margin-right:32px}.slide-panel .side-content{display:-ms-flexbox;display:flex;height:-webkit-max-content;height:max-content;overflow:auto;transition:width .1s linear}']})],e)}(),As=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[Rs],exports:[Rs],providers:[Os]})],e)}(),Ds=function(){function e(){var e=this;this.MAX_RANGE_VALUE=100,this.MIN_RANGE_VALUE=0,this.multiple=!1,this.value=0,this.valueChange=new t.EventEmitter,this.step=1,this.hiddenThumb=!1,this.disabled=!1,this.min=this.MIN_RANGE_VALUE,this.max=this.MAX_RANGE_VALUE,this.tabindex=0,this.startValue=0,this.endValue=0,this.movingProgressBar=!1,this.progressLeft=0,this.progressWidth="",this.onChange=function(){},this.onTouched=function(){},this.draggingThumb=null,this.progressBarEventPositionStart=-1,this.startValueBeforeProgressBarEvent=-1,this.rangeBetweenElementsBeforeProgressBarEvent=-1,this.totalRangeBeforeProgressBarEvent=-1,this.mapRangeValuesForSlider=new Map,this.activeMouseDown=!1,this.focusActive=!1,this.onThumbMove=function(t){if(!e.movingProgressBar&&e.draggingThumb){var n=e.getPercentageByEvent(t);if(!(e.multiple&&"start"===e.draggingThumb&&n>e.endValue||e.multiple&&"end"===e.draggingThumb&&n<e.startValue)){var o=e.getValueFromMapByValue(n);if(e.multiple){"start"===e.draggingThumb?e.startValue=e.needParseValues?e.mapRangeValuesForSlider.get(o):n:"end"===e.draggingThumb&&(e.endValue=e.needParseValues?e.mapRangeValuesForSlider.get(o):n),e.setValue([e.startValue,e.endValue]);var i=fe(e.value,2),r=i[0],a=i[1];r===a&&"start"===e.draggingThumb?e.startValue=e.endValue:r===a&&"end"===e.draggingThumb&&(e.endValue=e.startValue)}else{var s=e.value,l=e.needParseValues?o:n,c=!!e.needParseValues&&o===e.value,p=!!(0!==e.step)&&(s+e.step===l||s-e.step===l);if(c&&!p)return;e.endValue=e.needParseValues?e.mapRangeValuesForSlider.get(o):n,e.startValue=e.endValue,e.setValue(e.endValue)}e.setProgress()}}},this.onMouseUp=function(){e.draggingThumb=null,document.removeEventListener("mousemove",e.onThumbMove),document.removeEventListener("mouseup",e.onMouseUp),setTimeout((function(){e.activeMouseDown=!1}),150)},this.handleProgressBarMove=function(t){e.movingProgressBar=!0;var n=e.getPercentageByEvent(t),o=e.progressBarEventPositionStart,i=e.startValueBeforeProgressBarEvent,r=e.rangeBetweenElementsBeforeProgressBarEvent,a=Ps(i,i+r,o,n),s=a.newStart,l=a.newEnd;if(!(s<e.MIN_RANGE_VALUE||l>e.MAX_RANGE_VALUE)){if(e.needParseValues){var c=e.getValueFromMapByValue(i),p=e.getValueFromMapByValue(o),d=e.getValueFromMapByValue(n),u=e.totalRangeBeforeProgressBarEvent,m=Ps(c,c+u,p,d),h=m.newStart,f=m.newEnd;if(h<e.min||f>e.max)return;e.startValue=e.mapRangeValuesForSlider.get(h),e.endValue=e.mapRangeValuesForSlider.get(f)}else e.startValue=s,e.endValue=l;e.setValue([e.startValue,e.endValue]),e.setProgress()}},this.handleProgressBarMoveEnd=function(){e.progressBarEventPositionStart=-1,e.startValueBeforeProgressBarEvent=-1,e.rangeBetweenElementsBeforeProgressBarEvent=-1,e.totalRangeBeforeProgressBarEvent=-1,document.removeEventListener("mousemove",e.handleProgressBarMove),document.removeEventListener("mouseup",e.handleProgressBarMoveEnd),setTimeout((function(){e.movingProgressBar=!1}),150)}}var n;return n=e,e.prototype.ngOnInit=function(){this.setUserRangeMapValues()},e.prototype.ngOnChanges=function(e){var t=this,n=e.min&&!e.min.firstChange,o=e.max&&!e.max.firstChange;(n||o)&&(this.setUserRangeMapValues(),setTimeout((function(){t.setRangeValues()})))},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout((function(){e.setRangeValues()}))},e.prototype.onKeydown=function(e){if(this.focusActive&&!this.disabled){var t="ArrowLeft"===e.key,n="ArrowRight"===e.key;t?this.handleArrowKeyLeft():n&&this.handleArrowKeyRight()}},Object.defineProperty(e.prototype,"tooltipStartText",{get:function(){var e,t;return Array.isArray(this.value)?null===(e=this.value[0])||void 0===e?void 0:e.toString():null===(t=this.value)||void 0===t?void 0:t.toString()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltipEndText",{get:function(){var e,t;return Array.isArray(this.value)?null===(e=this.value[1])||void 0===e?void 0:e.toString():null===(t=this.value)||void 0===t?void 0:t.toString()},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e,this.setRangeValues()},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.onFocusIn=function(){this.focusActive=!0},e.prototype.onBlur=function(){this.focusActive=!1},e.prototype.onTrackClick=function(e){var t=this;if(!(this.disabled||this.movingProgressBar||this.activeMouseDown)){var n=this.getPercentageByEvent(e),o=this.getValueFromMapByValue(n),i=this.needParseValues?o:n,r=function(){var e=t.getValueFromMapByValue(t.endValue),i=t.needParseValues?t.mapRangeValuesForSlider.get(o):n;t.needParseValues&&e!==o?t.endValue=i:t.needParseValues||(t.endValue=n)};if(this.multiple){var a=fe(this.value,2),s=a[0],l=a[1],c=this.needParseValues?this.mapRangeValuesForSlider.get(s):s,p=this.needParseValues?this.mapRangeValuesForSlider.get(l):l,d=function(){!function(){var e=t.getValueFromMapByValue(t.startValue);if(t.needParseValues&&e!==o){var i=t.needParseValues?t.mapRangeValuesForSlider.get(o):n;t.startValue=i}else t.needParseValues||(t.startValue=n)}(),t.setValue([n,p])},u=function(){r(),t.setValue([c,n])},m=Vs(i,s,l);if(i<s)d();else if(i>l)u();else if(m){var h=(s+l)/2;if(i===h)d();else{var f=i>h;i<h?d():f&&u()}}}else this.setValue(n),r();this.setProgress()}},e.prototype.onProgressMouseDown=function(e){if(this.multiple&&!this.disabled){if(this.progressBarEventPositionStart=this.getPercentageByEvent(e),this.startValueBeforeProgressBarEvent=this.startValue,this.rangeBetweenElementsBeforeProgressBarEvent=this.endValue-this.startValue,this.multiple){var t=fe(this.value,2),n=t[0],o=t[1];this.totalRangeBeforeProgressBarEvent=o-n}document.addEventListener("mousemove",this.handleProgressBarMove),document.addEventListener("mouseup",this.handleProgressBarMoveEnd)}},e.prototype.onMouseDown=function(e,t){this.disabled||(this.draggingThumb=t,this.activeMouseDown=!0,document.addEventListener("mousemove",this.onThumbMove),document.addEventListener("mouseup",this.onMouseUp))},e.prototype.setRangeValues=function(){var e=this,t=function(t,n){e.startValue=e.getClosestValueFromMapSlider(t),e.endValue=e.getClosestValueFromMapSlider(n)};if(null!==this.value&&void 0!==this.value){if(Array.isArray(this.value)&&!this.multiple)throw new Error('You must use "multiple" with value as array');if(this.multiple&&Array.isArray(this.value)?(this.startValue=this.value[0],this.endValue=this.value[1]):this.multiple||(this.startValue=this.value,this.endValue=this.value),t(this.startValue,this.endValue),this.multiple){var n=fe(this.value,2),o=n[0],i=n[1],r=Ns(i,o),a=i>this.max,s=o<this.min,l=a||s;a?o=(i=this.max)-r:s&&(i=(o=this.min)+r),l&&(t(o,i),this.setValue([this.startValue,this.endValue]))}else{var c=this.value,p=c>this.max,d=c<this.min,u=p||d;p?c=this.max:d&&(c=this.min),u&&this.setValue(c,!1)}this.setProgress()}},e.prototype.setProgress=function(){this.multiple?(this.progressLeft=this.startValue,this.progressWidth="calc("+(this.endValue-this.startValue)+"% + 10px)"):(this.progressLeft=0,this.progressWidth="calc("+this.endValue+"% + 10px)")},e.prototype.getPercentageByEvent=function(e){var t=this.track.nativeElement.getBoundingClientRect(),n=Math.round((e.clientX-t.left)/t.width*this.MAX_RANGE_VALUE);return n=Math.max(0,Math.min(n,this.MAX_RANGE_VALUE))},e.prototype.setValue=function(e,t){var n=this;void 0===t&&(t=!0),this.disabled||(this.needParseValues&&t&&(e=Array.isArray(e)?e.map((function(e){return n.getValueFromMapByValue(e)})):this.getValueFromMapByValue(e)),this.value=e,this.valueChange.emit(e),this.writeValue(this.value),this.onChange(this.value),this.onTouched(this.value))},e.prototype.setUserRangeMapValues=function(){var e=this,t=this.min,n=this.max;if(t>n)throw new Error("Max value must be greater than min value");this.mapRangeValuesForSlider.clear();for(var o=n-t,i=Math.floor(o/this.step),r=[],a=t;a<=n;a+=this.step)r.push(a);r[r.length-1]!==n&&r.push(n);var s=r.map((function(n){var i=(n-t)/o*e.MAX_RANGE_VALUE;return parseFloat(i.toFixed(2))}));s[0]=0,s[s.length-1]=this.MAX_RANGE_VALUE;for(var l=(this.MAX_RANGE_VALUE-s[s.length-1])/i,c=1;c<s.length-1;c++)s[c]+=l,s[c]=parseFloat(s[c].toFixed(2));r.forEach((function(t,n){e.mapRangeValuesForSlider.set(t,s[n])}))},e.prototype.getValueFromMapByValue=function(e){var t=Array.from(this.mapRangeValuesForSlider).map((function(e){var t=fe(e,2);return{value:t[0],mapped:t[1]}})),n=t.find((function(t){return t.mapped==e})),o=t.reduce((function(t,n){return Math.abs(n.mapped-e)<Math.abs(t.mapped-e)?n:t}));return n?n.value:o.value},e.prototype.getClosestValueFromMapSlider=function(e){var t=Array.from(this.mapRangeValuesForSlider).map((function(e){var t=fe(e,2);return{value:t[0],mapped:t[1]}}));if(e>=this.max)return t[t.length-1].mapped;if(e<=this.min)return t[0].mapped;var n=t.find((function(t){return t.value==e})),o=t.reduce((function(t,n){return Math.abs(n.value-e)<Math.abs(t.value-e)?n:t})),i=n||o,r=t[0]===i,a=t[t.length-1]===i;return r&&e>this.min?Bs(i.mapped,t[1].mapped):a&&e<this.max?Bs(i.mapped,t[t.length-2].mapped):i.mapped},e.prototype.handleArrowKeyLeft=function(){this.multiple?this._incrementOrDecrementStartAndEndValue(!1):this._incrementOrDecrementEndValue(!1),this.setProgress()},e.prototype.handleArrowKeyRight=function(){this.multiple?this._incrementOrDecrementStartAndEndValue(!0):this._incrementOrDecrementEndValue(!0),this.setProgress()},e.prototype._incrementOrDecrementStartAndEndValue=function(e){var t=fe(this.value,2),n=t[0],o=t[1],i=Ns(o,n);e?(n+=this.step,o+=this.step):(n-=this.step,o-=this.step);var r=n<this.min,a=o>this.max;(r||a)&&(r?o=(n=this.min)+i:a&&(n=(o=this.max)-i)),n<this.min||o>this.max||(this.setValue([n,o],!1),this.needParseValues&&(n=this.getClosestValueFromMapSlider(n),o=this.getClosestValueFromMapSlider(o)),this.startValue=n,this.endValue=o)},e.prototype._incrementOrDecrementEndValue=function(e){var t=this.value;e?t+=this.step:t-=this.step;var n=t;this.needParseValues&&(n=this.getClosestValueFromMapSlider(n)),n<this.MIN_RANGE_VALUE||n>this.MAX_RANGE_VALUE||(this.endValue=n,this.startValue=this.endValue,this.setValue(n))},Object.defineProperty(e.prototype,"needParseValues",{get:function(){return this.max!==this.MAX_RANGE_VALUE||this.min!==this.MIN_RANGE_VALUE},enumerable:!0,configurable:!0}),pe([t.ViewChild("track")],e.prototype,"track",void 0),pe([t.Input()],e.prototype,"multiple",void 0),pe([t.Input()],e.prototype,"value",void 0),pe([t.Output()],e.prototype,"valueChange",void 0),pe([t.Input()],e.prototype,"step",void 0),pe([t.Input()],e.prototype,"hiddenThumb",void 0),pe([t.Input()],e.prototype,"disabled",void 0),pe([t.Input()],e.prototype,"min",void 0),pe([t.Input()],e.prototype,"max",void 0),pe([t.Input()],e.prototype,"minValueLabel",void 0),pe([t.Input()],e.prototype,"maxValueLabel",void 0),pe([t.Input()],e.prototype,"tabindex",void 0),pe([t.HostListener("document:keydown",["$event"])],e.prototype,"onKeydown",null),e=n=pe([t.Component({selector:"s-slider",template:'<div\n class="slider-container"\n [ngClass]="{ \'slider-container--disabled\': disabled }"\n [tabindex]="tabindex"\n (click)="onTrackClick($event)"\n (focus)="onFocusIn()"\n (blur)="onBlur()">\n <div\n #track\n class="slider-track"\n [ngClass]="{\n \'slider-track--hidden-thumb\': hiddenThumb,\n \'slider-track--moving-multiple-thumbs\': movingProgressBar\n }">\n <div\n class="slider-progress"\n (mousedown)="onProgressMouseDown($event)"\n [style.left.%]="progressLeft"\n [style.width]="progressWidth"\n ></div>\n <div\n *ngIf="multiple"\n class="slider-thumb"\n [sTooltip]="tooltipStartText"\n [showDelay]="0"\n (mousedown)="onMouseDown($event, \'start\')"\n [style.left.%]="startValue"\n ></div>\n <div\n [sTooltip]="tooltipEndText"\n class="slider-thumb"\n [showDelay]="0"\n (mousedown)="onMouseDown($event, \'end\')"\n [style.left.%]="endValue"></div>\n </div>\n <div class="footer">\n <span>{{ minValueLabel || min }}</span>\n <span>{{ maxValueLabel || max }}</span>\n </div>\n</div>\n',providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:['.slider-container{height:20px;padding:16px 0 40px;position:relative;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:100%}.slider-container .slider-track{background-color:#ddd;border-radius:3px;cursor:pointer;height:6px;position:relative;width:100%}.slider-container .slider-track .slider-progress{background-color:#428bca;border-radius:3px;cursor:pointer;height:100%;left:0;position:absolute;top:0;width:0}.slider-container .slider-track .slider-thumb{background-color:#fff;border:2px solid #428bca;border-radius:50%;cursor:pointer;height:20px;position:absolute;transform:translateY(-50%);top:50%;width:20px}.slider-container .slider-track .slider-thumb:active{box-shadow:0 0 0 4px #428BCA33}.slider-container .slider-track--hidden-thumb:not(:hover) .slider-thumb{opacity:0}.slider-container .slider-track--moving-multiple-thumbs .slider-thumb{box-shadow:0 0 0 4px #428BCA33}.slider-container .footer{color:#212533;display:-ms-flexbox;display:flex;font-family:"Open Sans",sans-serif;font-size:14px;-ms-flex-pack:justify;justify-content:space-between;margin-top:8px}.slider-container--disabled .slider-track{cursor:default}.slider-container--disabled .slider-track .slider-thumb{border-color:#a5a5b2;cursor:default}.slider-container--disabled .slider-track .slider-thumb:active{box-shadow:none}.slider-container--disabled .slider-track .slider-progress{background-color:#a5a5b2;cursor:default}.slider-container:focus-visible{outline:0}.slider-container:focus-visible .slider-thumb{box-shadow:0 0 0 4px #428BCA33}']})],e)}(),Ps=function(e,t,n,o){var i=o-(n-e);return{newStart:i,newEnd:i+(t-e)}},Vs=function(e,t,n){var o=fe(t<n?[t,n]:[n,t],2),i=o[0],r=o[1];return e>=i&&e<=r},Bs=function(e,t){return parseFloat(((e+t)/2).toFixed(2))},Ns=function(e,t){return Math.abs(e-t)},zs=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Ae],declarations:[Ds],exports:[Ds]})],e)}();(Ms=e.SplitButtonType||(e.SplitButtonType={})).Primary="primary",Ms.Secondary="secondary",Ms.Default="default";var Us,js=function(){function n(n){this.eRef=n,this.disabled=!1,this.type=e.SplitButtonType.Primary,this.buttonClicked=new t.EventEmitter,this.open=!1}return n.prototype.onClickout=function(e){this.eRef.nativeElement.contains(e.target)||this.closeDropdown()},n.prototype.onButtonClick=function(){this.disabled||(this.buttonClicked.emit(),this.closeDropdown())},n.prototype.onDropdownClick=function(){this.disabled||(this.open=!this.open)},n.prototype.onOptionClick=function(e){e.action&&e.action(),this.closeDropdown()},n.prototype.closeDropdown=function(){this.open=!1},n.ctorParameters=function(){return[{type:t.ElementRef}]},pe([t.Input()],n.prototype,"disabled",void 0),pe([t.Input()],n.prototype,"iconClass",void 0),pe([t.Input()],n.prototype,"label",void 0),pe([t.Input()],n.prototype,"type",void 0),pe([t.Input()],n.prototype,"options",void 0),pe([t.Output()],n.prototype,"buttonClicked",void 0),pe([t.HostListener("document:click",["$event"])],n.prototype,"onClickout",null),n=pe([t.Component({selector:"s-split-button",template:'<div class="split-button" [ngClass]="{\n \'split-button--primary\': type == \'primary\',\n \'split-button--secondary\': type == \'secondary\',\n \'split-button--default\': type == \'default\',\n \'split-button--disabled\': disabled\n }">\n <button class="button" (click)="onButtonClick()">\n <span class="button__icon" [ngClass]="iconClass"></span>\n <span class="button__label">{{ label }}</span>\n </button>\n <button class="dropdown" (click)="onDropdownClick()">\n <span class="dropdown__icon" [ngClass]="{\n \'far\': true,\n \'fa-chevron-down\': !open,\n \'fa-chevron-up\': open\n }">\n </span>\n </button>\n</div>\n\n<ul *ngIf="this.open" class="options">\n <li *ngFor="let option of options" (click)="onOptionClick(option)">\n {{ option.title }}\n </li>\n</ul>',styles:['.split-button{display:-ms-flexbox;display:flex;-webkit-user-select:none;-ms-user-select:none;user-select:none;max-height:35px}.split-button .button{-ms-flex-align:center;align-items:center;border:none;border-radius:4px 0 0 4px;display:-ms-flexbox;display:flex;padding:8px 8px 8px 12px;transition:.3s ease-in-out}.split-button .button__icon{font-size:16px;padding:0 4px}.split-button .button__title{font-family:"Open Sans",sans-serif;font-size:14px;font-weight:400;line-height:21px}.split-button .dropdown{-ms-flex-align:center;align-items:center;border:none;border-left:1px solid #608190;border-radius:0 4px 4px 0;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:12px 8px;transition:.3s ease-in-out}.split-button--disabled{opacity:.5}.split-button--primary .button,.split-button--primary .dropdown{background-color:#428bca;color:#fff}.split-button--primary:not(.split-button--primary--disabled) .button,.split-button--primary:not(.split-button--primary--disabled) .dropdown{cursor:pointer}.split-button--primary:not(.split-button--primary--disabled) .button:hover,.split-button--primary:not(.split-button--primary--disabled) .dropdown:hover{background-color:#063951}.split-button--secondary .button,.split-button--secondary .dropdown{background-color:#7892a1;color:#fff}.split-button--secondary:not(.split-button--secondary--disabled) .button,.split-button--secondary:not(.split-button--secondary--disabled) .dropdown{cursor:pointer}.split-button--secondary:not(.split-button--secondary--disabled) .button:hover,.split-button--secondary:not(.split-button--secondary--disabled) .dropdown:hover{background-color:#697882}.split-button--default .button,.split-button--default .dropdown{background-color:unset;border:1px solid #d8d8d8;color:#333}.split-button--default:not(.split-button--default--disabled) .button,.split-button--default:not(.split-button--default--disabled) .dropdown{cursor:pointer}.split-button--default:not(.split-button--default--disabled) .button:hover,.split-button--default:not(.split-button--default--disabled) .dropdown:hover{background-color:#d8d8d8}.options{background-color:#fff;border-radius:4px;box-shadow:0 1px 5px rgba(0,0,0,.25);display:inline-block;list-style:none;margin:2px 0;padding:8px 0;position:absolute;-webkit-user-select:none;-ms-user-select:none;user-select:none;z-index:10}.options li{color:#333;cursor:pointer;font-family:"Open Sans",sans-serif;font-weight:400;font-size:14px;line-height:21px;padding:8px 16px}.options li:hover{background-color:#d8d8d8}']})],n)}(),Hs=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[js],exports:[js]})],e)}(),$s=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 m.BigNumber(this.ANIMATION_DURATION_MS),n=new m.BigNumber(this.STEP_DURATION_MS),o=t.dividedBy(n),i=new m.BigNumber(this.previousValue.replace(/\D/g,"")),r=new m.BigNumber(this.value.replace(/\D/g,"")),a=r.minus(i).absoluteValue().dividedBy(o),s=i.isLessThan(r);clearInterval(this.intervalId),this.displayValue=this.replaceNumericPositions(this.value);var l=i;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,""),o=(t?t.toString():"").toString().replace(/\D/g,"").padStart(n.length,"0"),i=0;return e.split("").map((function(e){return Number(e)||"0"===e?o[i++]:e})).join("")},e.nextId=0,pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"label",void 0),pe([t.Input()],e.prototype,"alwaysWithBorder",void 0),pe([t.Input()],e.prototype,"lightVersion",void 0),pe([t.Input()],e.prototype,"lightMode",void 0),pe([t.Input()],e.prototype,"iconClass",void 0),pe([t.Input()],e.prototype,"color",void 0),pe([t.Input()],e.prototype,"animateNumbers",void 0),pe([t.Input()],e.prototype,"clickable",void 0),pe([t.Input()],e.prototype,"value",null),pe([t.Input()],e.prototype,"tooltip",void 0),pe([t.Output()],e.prototype,"onClick",void 0),e=n=pe([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{-ms-flex-align:start;align-items:flex-start;color:#fff;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;float:left;height:50px;-ms-flex-pack:center;justify-content:center;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.s-stats-card--clickable:hover .s-stats-card-overlay{opacity:.2}s-stats-card .s-stats-card.s-stats-card--clickable.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),s-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)}(),Gs=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Y.TooltipModule],declarations:[$s],exports:[$s]})],e)}();(Us=e.StepState||(e.StepState={})).Default="default",Us.Success="success",Us.Warning="warning";var qs,Ws,Ys=function(){function o(){this.id="s-steps-"+i.nextId++,this.activeIndex=0,this.stepSelected=new t.EventEmitter}var i;return i=o,o.prototype.stepClick=function(e,t,n){e.disabled||t==this.activeIndex||this.stepSelected.emit({step:e,index:t,event:n})},Object.defineProperty(o.prototype,"stepState",{get:function(){return e.StepState},enumerable:!0,configurable:!0}),o.prototype.barAnimation=function(e,t){return e<t||e===t},o.prototype.afterBarAnimation=function(e,t){return e<t||e===t-1},Object.defineProperty(o.prototype,"visibledStep",{get:function(){return this.steps.filter((function(e){return!e.hidden}))},enumerable:!0,configurable:!0}),o.nextId=0,pe([t.Input()],o.prototype,"id",void 0),pe([t.Input()],o.prototype,"steps",void 0),pe([t.Input()],o.prototype,"activeIndex",void 0),pe([t.Output()],o.prototype,"stepSelected",void 0),o=i=pe([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:[n.trigger("beforeActiveDesative",[n.state("active",n.style({"background-position":"left bottom"})),n.state("desactive",n.style({"background-position":"right bottom"})),n.transition("active => desactive",[n.animate("50ms 100ms linear")]),n.transition("desactive => active",[n.animate("50ms 250ms linear")])]),n.trigger("activeDesative",[n.state("active",n.style({"background-position":"left bottom"})),n.state("desactive",n.style({"background-position":"right bottom"})),n.transition("active => desactive",[n.animate("100ms 150ms linear")]),n.transition("desactive => active",[n.animate("100ms 150ms linear")])]),n.trigger("afterActiveDesative",[n.state("active",n.style({"background-position":"left bottom"})),n.state("desactive",n.style({"background-position":"right bottom"})),n.transition("active => desactive",[n.animate("50ms 250ms linear")]),n.transition("desactive => active",[n.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}}"]})],o)}(),Ks=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Y.TooltipModule],declarations:[Ys],exports:[Ys]})],e)}(),Zs=function(){function e(){this.selectable=!0,this.combineCheckboxEvent=!0,this.selectionChange=new t.EventEmitter,this.itemOpened=new t.EventEmitter,this._selection=[]}return Object.defineProperty(e.prototype,"selection",{set:function(e){this._selection=ge(e)},enumerable:!0,configurable:!0}),e.prototype.onItemOpened=function(e){this.itemOpened.emit(e)},e.prototype.onItemSelected=function(e){e.selected?this._selection.push(e.item):this._selection.splice(this._selection.findIndex((function(t){return t===e.item})),1),this.selectionChange.emit(this._selection)},e.prototype.isSelected=function(e){return this._selection.some((function(t){return t.id===e.id}))},pe([t.Input()],e.prototype,"items",void 0),pe([t.Input()],e.prototype,"selectable",void 0),pe([t.Input()],e.prototype,"combineCheckboxEvent",void 0),pe([t.Input()],e.prototype,"selection",null),pe([t.Output()],e.prototype,"selectionChange",void 0),pe([t.Output()],e.prototype,"itemOpened",void 0),e=pe([t.Component({selector:"s-thumbnails",template:'<div class="thumbnails">\n <s-thumbnail-item\n *ngFor="let item of items"\n [combineCheckboxEvent]="combineCheckboxEvent"\n [itemData]="item"\n [isCheckable]="selectable"\n [isChecked]="isSelected(item)"\n (checked)="onItemSelected($event)"\n (opened)="onItemOpened($event)">\n </s-thumbnail-item>\n</div>\n',styles:[".thumbnails{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:12px}"]})],e)}(),Xs=function(){function e(){this.isCheckable=!0,this.isChecked=!1,this.combineCheckboxEvent=!0,this.checked=new t.EventEmitter,this.opened=new t.EventEmitter}return e.prototype.ngOnInit=function(){this._validateItemData(),this._createFormGroup()},e.prototype.onClick=function(){this.opened.emit(this.itemData)},e.prototype.checkboxClick=function(e){this.combineCheckboxEvent||e.stopPropagation()},e.prototype._createFormGroup=function(){var e=this;this.checkboxFormGroup=new a.FormGroup({checkbox:new a.FormControl({checked:this.isChecked})}),this.checkboxFormGroup.get("checkbox").valueChanges.subscribe((function(t){e.checked.emit({item:e.itemData,selected:t.checked})}))},e.prototype._validateItemData=function(){if(Se(this.itemData))throw new Error("itemData is required")},pe([t.Input()],e.prototype,"itemData",void 0),pe([t.Input()],e.prototype,"isCheckable",void 0),pe([t.Input()],e.prototype,"isChecked",void 0),pe([t.Input()],e.prototype,"combineCheckboxEvent",void 0),pe([t.Output()],e.prototype,"checked",void 0),pe([t.Output()],e.prototype,"opened",void 0),e=pe([t.Component({selector:"s-thumbnail-item",template:'<button *ngIf="itemData" class="thumbnail-item" (click)="onClick()">\n <div class="thumbnail-item-content">\n <div class="content">\n <ng-container *ngIf="itemData.type === \'video\'">\n <s-thumbnail-item-video\n [imageUrl]="itemData.imageUrl"\n [videoUrl]="itemData.videoUrl">\n </s-thumbnail-item-video>\n </ng-container>\n <ng-container *ngIf="itemData.type === \'image\'">\n <s-thumbnail-item-image [imageUrl]="itemData.imageUrl"></s-thumbnail-item-image>\n </ng-container>\n <ng-container *ngIf="itemData.type === \'audio\'">\n <i class="icon fas fa-volume-down"></i>\n <span class="label">{{ "platform.angular_components.listen" | translate }}</span>\n </ng-container>\n <ng-container *ngIf="itemData.type === \'file\'">\n <i class="icon fas fa-file-alt"></i>\n <span class="label">{{ "platform.angular_components.view" | translate }}</span>\n </ng-container>\n </div>\n <form *ngIf="isCheckable" [formGroup]="checkboxFormGroup" class="checkbox">\n <s-checkbox [data]="{ label: \'\' }" formControlName="checkbox" (click)="checkboxClick($event)"></s-checkbox>\n </form>\n </div>\n <span class="file-name-label">{{ itemData.fileName }}</span>\n</button>\n',styles:['.thumbnail-item{-ms-flex-align:center;align-items:center;background:0 0;border:none;cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;overflow:hidden;width:100px}.thumbnail-item-content{-ms-flex-align:center;align-items:center;background-image:linear-gradient(to top right,#5288b6,#00c89a);border-radius:8px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100px;-ms-flex-pack:center;justify-content:center;position:relative;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:100%;overflow:hidden}.thumbnail-item-content .checkbox{position:absolute;right:8px;top:8px}.thumbnail-item-content .content{-ms-flex-align:center;align-items:center;color:#fff;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:4px;overflow:hidden;width:100%}.thumbnail-item-content .content .icon{font-size:24px}.thumbnail-item-content .content .label{font-size:12px;width:100%;padding:0 8px;overflow:hidden;text-overflow:ellipsis}.thumbnail-item:hover{transform:scale(1.05);transition:.2s ease-in-out}.thumbnail-item .file-name-label{color:#525966;font-family:"Open Sans",sans-serif;font-size:12px;overflow:hidden;text-align:center;text-overflow:ellipsis;text-wrap:nowrap;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:100%}']})],e)}(),Js=function(){function e(){}return e.prototype.onMouseEnter=function(){var e;(null===(e=this.videoPlayer)||void 0===e?void 0:e.nativeElement)&&this.videoPlayer.nativeElement.play()},e.prototype.onMouseLeave=function(){var e;(null===(e=this.videoPlayer)||void 0===e?void 0:e.nativeElement)&&(this.videoPlayer.nativeElement.pause(),this.videoPlayer.nativeElement.currentTime=0)},pe([t.Input()],e.prototype,"imageUrl",void 0),pe([t.Input()],e.prototype,"videoUrl",void 0),pe([t.ViewChild("videoPlayer")],e.prototype,"videoPlayer",void 0),pe([t.HostListener("mouseenter")],e.prototype,"onMouseEnter",null),pe([t.HostListener("mouseleave")],e.prototype,"onMouseLeave",null),e=pe([t.Component({selector:"s-thumbnail-item-video",template:'<div class="thumbnail-item-video" [ngClass]="{ \'thumbnail-item-video--playable\': videoUrl }">\n <div\n class="thumbnail-image"\n [ngStyle]="{\'backgroundImage\': \'url(\' + imageUrl + \')\'}">\n </div>\n <div class="play-overlay">\n <i class="icon fas fa-play"></i>\n <span class="label">{{ "platform.angular_components.watch" | translate }}</span>\n </div>\n <video\n *ngIf="videoUrl"\n #videoPlayer\n class="thumbnail-video-preview"\n [src]="videoUrl"\n [loop]="true"\n [muted]="true"\n preload="none">\n </video>\n</div>\n',styles:[".thumbnail-item-video{cursor:pointer;height:100px;overflow:hidden;position:relative;width:100px}.thumbnail-item-video .thumbnail-image{background-repeat:no-repeat;background-size:cover;height:100%;width:100%}.thumbnail-item-video .thumbnail-video-preview{height:100%;left:0;width:100%;object-fit:cover;opacity:0;position:absolute;top:0;transition:opacity .3s ease-in-out}.thumbnail-item-video:hover .thumbnail-video-preview{opacity:1}.thumbnail-item-video .play-overlay{-ms-flex-align:center;align-items:center;color:#fff;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:8px;-ms-flex-pack:center;justify-content:center;left:50%;opacity:1;position:absolute;top:50%;transform:translate(-50%,-50%);transition:opacity .3s ease-in-out;width:100%;z-index:10}.thumbnail-item-video .play-overlay .icon{color:#fff;font-size:24px}.thumbnail-item-video .play-overlay .label{overflow:hidden;padding:0 8px;text-overflow:ellipsis;width:100%}.thumbnail-item-video--playable:hover .play-overlay{opacity:0}"]})],e)}(),Qs=function(){function e(){}return pe([t.Input()],e.prototype,"imageUrl",void 0),e=pe([t.Component({selector:"s-thumbnail-item-image",template:'<div class="thumbnail-item-image">\n <div\n *ngIf="imageUrl; else noImage"\n class="thumbnail-image"\n [ngStyle]="{ backgroundImage: \'url(\' + imageUrl + \')\' }">\n </div>\n\n <ng-template #noImage>\n <div class="content">\n <i class="icon fas fa-image"></i>\n <span class="label">{{ "platform.angular_components.view" | translate }}</span>\n </div>\n </ng-template>\n</div>\n',styles:['.thumbnail-item-image{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;height:100px;-ms-flex-pack:center;justify-content:center;width:100px}.thumbnail-item-image .thumbnail-image{background-repeat:no-repeat;background-size:cover;height:100%;width:100%}.thumbnail-item-image .content{-ms-flex-align:center;align-items:center;color:#fff;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-family:"Open Sans",sans-serif;-ms-flex-pack:center;justify-content:center;width:100%}.thumbnail-item-image .content .icon{font-size:24px}.thumbnail-item-image .content .label{font-size:12px;overflow:hidden;padding:0 8px;text-overflow:ellipsis;width:100%}']})],e)}(),el=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,a.ReactiveFormsModule,b.TranslateModule,$t],declarations:[Zs,Xs,Js,Qs],exports:[Zs]})],e)}(),tl=function(){function e(){this.id="s-tile-"+n.nextId++,this.disabled=!1,this.tabIndex=0,this.useThumbnail=!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,pe([t.Input()],e.prototype,"id",void 0),pe([t.Input()],e.prototype,"label",void 0),pe([t.Input()],e.prototype,"description",void 0),pe([t.Input()],e.prototype,"iconClass",void 0),pe([t.Input()],e.prototype,"imageSource",void 0),pe([t.Input()],e.prototype,"imageAlt",void 0),pe([t.Input()],e.prototype,"disabled",void 0),pe([t.Input()],e.prototype,"tabIndex",void 0),pe([t.Input()],e.prototype,"useThumbnail",void 0),pe([t.Output()],e.prototype,"onClick",void 0),pe([t.HostListener("keydown",["$event"])],e.prototype,"onKeyDown",null),e=n=pe([t.Component({selector:"s-tile",template:'<div\n [id]="id"\n class="tile"\n [attr.tabindex]="disabled ? undefined : tabIndex"\n [attr.aria-label]="label"\n [attr.aria-disabled]="disabled"\n role="button"\n [ngClass]="{ \'tile--disabled\': disabled }"\n (click)="!disabled && onClick.emit($event)">\n <div\n *ngIf="imageSource || iconClass"\n class="thumbnail">\n <ng-container *ngIf="imageSource">\n <div\n *ngIf="!useThumbnail"\n class="image-icon">\n <div\n class="icon"\n [style.background-image]="\'url(\' + imageSource + \')\'">\n </div>\n </div>\n <s-thumbnail\n *ngIf="useThumbnail"\n [id]="id + \'-thumbnail\'"\n [imageSource]="imageSource"\n [imageAlt]="imageAlt || label"\n size="small"\n [isTile]="true"\n >\n </s-thumbnail>\n </ng-container>\n\n <span\n *ngIf="!imageSource && iconClass"\n [id]="id + \'-icon\'"\n [class]="\'icon \' + iconClass"\n aria-hidden="true">\n </span>\n </div>\n <div\n *ngIf="!iconClass && !imageSource"\n class="first-letter-container">\n <div class="first-letter">\n <span>{{ initialLetter }}</span>\n </div>\n </div>\n\n <div class="info">\n <span\n [id]="id + \'-title\'"\n class="title"\n [sTooltip]="label"\n tooltipPosition="top"\n showDelay="500">\n {{ label }}\n </span>\n <span\n [id]="id + \'-description\'"\n class="description"\n [sTooltip]="description"\n tooltipPosition="top"\n showDelay="500">\n {{ description }}\n </span>\n </div>\n</div>\n',styles:[".tile{-ms-flex-align:center;align-items:center;background-color:#fff;border:1px solid #c1c1cc;cursor:pointer;display:-ms-flexbox;display:flex;min-height:80px;overflow:hidden;padding:15px;position:relative;transition:background-color .2s ease-out,border-color .2s ease-out}.tile:focus:not(.tile--disabled),.tile:hover:not(.tile--disabled){background-color:#eeebf2;outline:0}.tile .thumbnail{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-right:15px}.tile .thumbnail .icon{color:#428bca;font-size:2.5rem}.tile .info{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;overflow:hidden}.tile .info .description,.tile .info .title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tile .info .title{color:#428bca;font-size:1.25rem}.tile .info .description{color:#6e7280;font-size:.875rem}.tile .first-letter-container{float:left;margin-right:10px;position:relative;text-align:center}.tile .first-letter-container .first-letter{background-color:#428bca;border-radius:50%;color:#fff;font-size:1.375rem;height:40px;line-height:1.8em;margin:0 auto 5px;width:40px}.tile--disabled{opacity:.5;filter:Alpha(Opacity=50);background-image:none}.tile--disabled,.tile--disabled *{cursor:text!important}.tile .image-icon .icon{height:32px;width:32px;background-size:cover;background-repeat:no-repeat}"]})],e)}(),nl=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Ae,Dr],declarations:[tl],exports:[tl,Dr]})],e)}(),ol=function(){function e(){this.highlightActiveItem=!0,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")},pe([t.Input()],e.prototype,"items",null),pe([t.Input()],e.prototype,"activeIndex",void 0),pe([t.Input()],e.prototype,"highlightActiveItem",void 0),pe([t.Input()],e.prototype,"direction",void 0),pe([t.Input()],e.prototype,"collapsable",void 0),pe([t.Input()],e.prototype,"counterLabel",void 0),pe([t.HostListener("window:resize",["$event"])],e.prototype,"onResize",null),e=pe([t.Component({selector:"s-timeline",template:'<div *ngIf="changeToVertical(); then vertical else horizontal"></div>\n\n<ng-template #horizontal>\n <s-horizontal-timeline *ngIf="items?.length"\n [items]="items"\n [activeIndex]="activeIndex"\n [highlightActiveItem]="highlightActiveItem">\n </s-horizontal-timeline>\n</ng-template>\n\n<ng-template #vertical>\n <s-vertical-timeline *ngIf="items?.length"\n [items]="items"\n [activeIndex]="activeIndex"\n highlightActiveItem="hi"\n [counterLabel]="counterLabel"\n [collapsable]="collapsable"\n [highlightActiveItem]="highlightActiveItem">\n </s-vertical-timeline>\n</ng-template>'})],e)}(),il=function(){function e(){}return pe([t.Input()],e.prototype,"item",void 0),pe([t.Input()],e.prototype,"isActive",void 0),pe([t.Input()],e.prototype,"highlightActive",void 0),pe([t.Input()],e.prototype,"isComplete",void 0),e=pe([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 'timeline__icon-item--active--highlight': isActive && highlightActive\n }\">\n <div\n class=\"timeline__icon-item__icon\"\n [pTooltip]=\"item.tooltip\"\n tooltipPosition=\"top\"\n [ngStyle]=\"{ backgroundColor: item.color }\">\n <ng-content *ngIf=\"item.icon; then icon_content; else label_text_content\"></ng-content>\n <ng-template #icon_content>\n <span [ngClass]=\"item.icon\"></span>\n </ng-template>\n <ng-template #label_text_content>\n <span class=\"timeline__icon-item__icon__label\" [class.large_label]=\"item.label?.length > 2\">\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--normal .timeline__icon-item__icon .timeline__icon-item__icon__label.large_label{font-size:12px}.timeline__icon-item.timeline__icon-item--active--highlight .timeline__icon-item__icon{font-size:20px;height:40px;padding:10px;width:40px}.timeline__icon-item.timeline__icon-item--active--highlight .timeline__icon-item__icon .timeline__icon-item__icon__label{font-size:22px}.timeline__icon-item.timeline__icon-item--active--highlight .timeline__icon-item__icon .timeline__icon-item__icon__label.large_label{font-size:18px}.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)}(),rl=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Y.TooltipModule],declarations:[il],exports:[il]})],e)}(),al=function(){function e(){this.activeIndex=0}return pe([t.Input()],e.prototype,"items",void 0),pe([t.Input()],e.prototype,"activeIndex",void 0),pe([t.Input()],e.prototype,"highlightActiveItem",void 0),e=pe([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 [highlightActive]="highlightActiveItem">\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;line-clamp:4;-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--highlight .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)}(),sl=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,Y.TooltipModule,rl],declarations:[al],exports:[al]})],e)}(),ll=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=this.activeIndex<=0?[]:[this.items[0]],this.g1Items=this.items.slice(1,this.activeIndex<0?0:this.activeIndex),this.activeItem=this.activeIndex>=0?[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,pe([t.Input()],e.prototype,"activeIndex",null),pe([t.Input()],e.prototype,"highlightActiveItem",void 0),pe([t.Input()],e.prototype,"items",void 0),pe([t.Input()],e.prototype,"counterLabel",void 0),pe([t.Input()],e.prototype,"collapsable",void 0),e=pe([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 [highlightActive]="highlightActiveItem"\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)}(),cl=function(){function e(){}return e=pe([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;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)}(),pl=function(){function e(){this.isCollapsed=!1,this.change=new t.EventEmitter}return e.prototype.onClick=function(){this.change.emit(!this.isCollapsed)},pe([t.Input()],e.prototype,"isCollapsed",void 0),pe([t.Output()],e.prototype,"change",void 0),e=pe([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)}(),dl=function(){function e(){this.isCollapsedChange=new t.EventEmitter}return e.prototype.onChange=function(e){this.isCollapsed=!this.isCollapsed,this.isCollapsedChange.emit(this.isCollapsed)},pe([t.Input()],e.prototype,"items",void 0),pe([t.Input()],e.prototype,"isCollapsed",void 0),pe([t.Input()],e.prototype,"isCompleted",void 0),pe([t.Input()],e.prototype,"counterLabel",void 0),pe([t.Output()],e.prototype,"isCollapsedChange",void 0),e=pe([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)}(),ul=function(){function e(){}return pe([t.Input()],e.prototype,"items",void 0),pe([t.Input()],e.prototype,"isLast",void 0),pe([t.Input()],e.prototype,"isActive",void 0),pe([t.Input()],e.prototype,"highlightActive",void 0),pe([t.Input()],e.prototype,"isCompleted",void 0),e=pe([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 [highlightActive]="highlightActive">\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)}(),ml=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,rl],declarations:[ll,cl,pl,dl,ul],exports:[ll]})],e)}(),hl=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,rl,sl,ml],declarations:[ol],exports:[ol]})],e)}();(qs=e.TimelineItemSeverity||(e.TimelineItemSeverity={})).Normal="normal",qs.Warning="warning",qs.Error="error",(Ws=e.TimelineItemSize||(e.TimelineItemSize={})).Normal="normal",Ws.Small="small";var fl,gl=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.color=t.color,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)>3)throw new Error("Label text is expected to be a maximum of three 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}(),vl=function(){function e(e,n){this.eRef=e,this.changeDetectorRef=n,this.footerButtonLabel="Adicionar",this.showFooterButton=!0,this.disabled=!1,this.footerButtonClicked=new t.EventEmitter,this.selected=new t.EventEmitter,this.height=0,this.selectedItemIndex=0,this.currentItemIndex=0,this._open=!1,this.tabindex=0}return Object.defineProperty(e.prototype,"open",{get:function(){return this._open},set:function(e){this._open=e,this.changeDetectorRef.detectChanges(),e&&this._calculateListMaxHeight()},enumerable:!0,configurable:!0}),e.prototype.onClickout=function(e){this.eRef.nativeElement.contains(e.target)||(this.open=!1)},e.prototype.onKeydown=function(e){if("Enter"===e.key||" "===e.key){if(this.open){if(this.workspaces[this.selectedItemIndex].disabled)return;this.selectedItemIndex=this.currentItemIndex,this.selected.emit(this.workspaces[this.selectedItemIndex])}this.open=!this.open}else"Escape"===e.key?this.open=!1:"ArrowDown"===e.key?this.currentItemIndex<this.workspaces.length-1&&(this.currentItemIndex++,this._scrollToCurrentItem()):"ArrowUp"===e.key&&this.currentItemIndex>0&&(this.currentItemIndex--,this._scrollToCurrentItem())},e.prototype.ngOnInit=function(){this.disabled&&(this.tabindex=-1)},e.prototype.validations=function(){if(!this.workspaces.length)throw new Error("Workspaces list is empty.")},e.prototype.buttonOnBlur=function(){this.open=!1,this.currentItemIndex=this.selectedItemIndex},e.prototype.onSelectItem=function(e){e.disabled||(this.open=!1,this.selectedItemIndex=this.workspaces.indexOf(e),this.currentItemIndex=this.selectedItemIndex,this.selected.emit(e))},e.prototype.onFooterButtonClick=function(){this.open=!1,this.footerButtonClicked.emit()},e.prototype._calculateListMaxHeight=function(){var e=this.eRef.nativeElement.querySelector("#workspace-list").getBoundingClientRect().top;this.height=window.innerHeight-e-20-(this.showFooterButton?64:0),this.changeDetectorRef.detectChanges()},e.prototype._scrollToCurrentItem=function(){var e=this.listItems.toArray()[this.currentItemIndex];e&&e.nativeElement.scrollIntoView({behavior:"smooth",block:"nearest"})},e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.ChangeDetectorRef}]},pe([t.Input()],e.prototype,"workspaces",void 0),pe([t.Input()],e.prototype,"footerButtonLabel",void 0),pe([t.Input()],e.prototype,"showFooterButton",void 0),pe([t.Input()],e.prototype,"disabled",void 0),pe([t.Output()],e.prototype,"footerButtonClicked",void 0),pe([t.Output()],e.prototype,"selected",void 0),pe([t.ViewChildren("listItem")],e.prototype,"listItems",void 0),pe([t.HostBinding("attr.tabindex")],e.prototype,"tabindex",void 0),pe([t.HostListener("document:click",["$event"])],e.prototype,"onClickout",null),pe([t.HostListener("keydown",["$event"])],e.prototype,"onKeydown",null),e=pe([t.Component({selector:"s-workspace-switch",template:'<div\n class="workspace-switch"\n [ngClass]="{ \'workspace-switch--disabled\': disabled }"\n (blur)="buttonOnBlur()">\n <div class="button" (click)="open = !open">\n <div class="item">\n <span class="title">{{ workspaces[selectedItemIndex].title }}</span>\n <span class="subtitle">{{ workspaces[selectedItemIndex].subtitle }}</span>\n </div>\n <div class="icons">\n <span class="fas fa-chevron-up"></span>\n <span class="fas fa-chevron-down"></span>\n </div>\n </div>\n <div *ngIf="!disabled && open" class="drop-panel">\n <ul\n id="workspace-list"\n class="workspace-list"\n [ngStyle]="{ \'max-height\': height + \'px\' }">\n <li\n #listItem\n *ngFor="let workspace of workspaces; let i = index"\n class="workspace"\n [ngClass]="{\n \'workspace--focused\': i == currentItemIndex && !workspace.disabled,\n \'workspace--disabled\': workspace.disabled\n }"\n (click)="onSelectItem(workspace)">\n <div class="item">\n <span class="title">{{ workspace.title }}</span>\n <span class="subtitle">{{ workspace.subtitle }}</span>\n </div>\n <span *ngIf="i === selectedItemIndex" class="active-icon fas fa-check"></span>\n </li>\n </ul>\n <div *ngIf="showFooterButton" class="footer">\n <div class="footer__button" (click)="onFooterButtonClick()">\n <span class="footer__button__icon fas fa-plus"></span>\n <span class="footer__button__title">{{ footerButtonLabel }}</span>\n </div>\n </div>\n </div>\n</div>',styles:['.workspace-switch{border-radius:4px;border:1px solid transparent;width:324px}.workspace-switch .button{-ms-flex-align:center;align-items:center;background-color:#fff;border:none;border-radius:3px;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-webkit-user-select:none;-ms-user-select:none;user-select:none;width:100%}.workspace-switch .button .icons{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;margin:0 12px}.workspace-switch .drop-panel{background-color:#fff;border-radius:4px;box-shadow:0 1px 5px rgba(0,0,0,.25);cursor:pointer;margin:20px 0;padding-top:4px;position:absolute;width:324px}.workspace-switch .drop-panel .workspace-list{list-style:none;overflow:auto;padding:0}.workspace-switch .drop-panel .workspace-list .workspace{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-webkit-user-select:none;-ms-user-select:none;user-select:none}.workspace-switch .drop-panel .workspace-list .workspace .active-icon{color:#7892a1;font-size:12px;margin:0 12px}.workspace-switch .drop-panel .workspace-list .workspace--focused{background-color:#f1f7f8}.workspace-switch .drop-panel .workspace-list .workspace--disabled .item .subtitle,.workspace-switch .drop-panel .workspace-list .workspace--disabled .item .title{color:#c1c1cc}.workspace-switch .drop-panel .workspace-list .workspace:hover:not(.workspace--disabled){background-color:#f1f7f8}.workspace-switch .drop-panel .footer{border-top:1px solid #ccc;padding:12px}.workspace-switch .drop-panel .footer .footer__button{-ms-flex-align:center;align-items:center;border:1px solid #d8d8d8;border-radius:4px;padding:8px 12px;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.workspace-switch .drop-panel .footer .footer__button .footer__button__icon{color:#333;margin-right:8px}.workspace-switch .drop-panel .footer .footer__button:active{border:1px solid #428bca}.workspace-switch .item{-ms-flex-align:start;align-items:flex-start;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;padding:12px}.workspace-switch .item .title{color:#333;font-family:"Open Sans",sans-serif;font-size:14px;font-weight:700;line-height:150%;text-transform:uppercase}.workspace-switch .item .subtitle{color:#999;font-family:"Open Sans",sans-serif;font-size:12px;font-weight:400;line-height:150%}.workspace-switch:focus{border:1px solid #428bca}.workspace-switch--disabled .button{cursor:default}.workspace-switch--disabled .button .icons,.workspace-switch--disabled .item .subtitle,.workspace-switch--disabled .item .title{color:#ccc}']})],e)}(),bl=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[vl],exports:[vl]})],e)}(),yl=function(){function e(){}return e.prototype.isBadgeConfiguration=function(e){return"Badge"===e.type},e.prototype.isTextConfiguration=function(e){return"Text"===e.type},e.prototype.isCurrencyConfiguration=function(e){return"Currency"===e.type},e.prototype.isNumberConfiguration=function(e){return"Number"===e.type},e.prototype.isDateConfiguration=function(e){return"Date"===e.type},pe([t.Input()],e.prototype,"configuration",void 0),e=pe([t.Component({selector:"s-label-value",template:'<div class="flex flex-col">\n <p class="font-bold">\n {{ configuration.title }}\n </p>\n\n <ng-container *ngIf="configuration.value; else emptyStateTemplate">\n <ng-container *ngIf="isTextConfiguration(configuration)">\n <span class="sds-readonly">\n {{ configuration.value }}\n </span>\n </ng-container>\n\n <ng-container *ngIf="isBadgeConfiguration(configuration)">\n \x3c!-- TODO: Container para organizar as badges. --\x3e\n <ng-container *ngFor="let badge of configuration.value">\n <s-badge\n [type]="badge.type"\n [color]="badge.color"\n [text]="badge.text"\n [iconClass]="badge.iconClass"\n [iconPosition]="badge.iconPosition"\n ></s-badge>\n </ng-container>\n </ng-container>\n\n <ng-container *ngIf="isCurrencyConfiguration(configuration)">\n <span class="sds-readonly">\n {{\n configuration.value | numeric: { numberFormatOptions: { style: "currency", currency: configuration.currency } } | async\n }}\n </span>\n </ng-container>\n\n <ng-container *ngIf="isNumberConfiguration(configuration)">\n <span class="sds-readonly">\n {{ configuration.value | localizedNumber | async }}\n </span>\n </ng-container>\n\n <ng-container *ngIf="isDateConfiguration(configuration)">\n <span class="sds-readonly">\n {{ configuration.value | localizedDate: configuration.format || "L" | async }}\n </span>\n </ng-container>\n </ng-container>\n</div>\n\n<ng-template #emptyStateTemplate>\n <span class="sds-empty-value">\n {{ "platform.angular_components.not_informed" | translate }}\n </span>\n</ng-template>\n',styles:[".flex{display:-ms-flexbox;display:flex}.flex-col{-ms-flex-direction:column;flex-direction:column}.font-bold{font-weight:700}"]})],e)}(),xl=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule,b.TranslateModule,$e,ht],providers:[u.CookieService],declarations:[yl],exports:[yl]})],e)}();(fl=e.PicklistTemplateTypes||(e.PicklistTemplateTypes={})).ItemToSelect="item-to-select",fl.SelectedItem="selected-item";var _l=function(){function n(e){this.cdr=e,this.itensToSelect=[],this.selectedItens=[],this.showCheckbox=!1,this.filterBy="",this.selectedItensChange=new t.EventEmitter,this.itensToSelectChange=new t.EventEmitter,this.availableItensFilter="",this.selectedItensFilter="",this.itensToSelectFilterUtil={rawItensToSelect:[],filteredItensToSelect:[]},this.selectedItensFilterUtil={rawSelectedItens:[],filteredSelectedItens:[]},this.selectedItensMap=new Set,this.itensToSelectId=Sl("itensToSelect"),this.selectedItensId=Sl("selectedItens")}return n.prototype.ngAfterViewInit=function(){var t,n;this.itemToSelectTemplate=null===(t=this.templates.find((function(t){return t.type===e.PicklistTemplateTypes.ItemToSelect})))||void 0===t?void 0:t.template,this.itemSelectedTemplate=null===(n=this.templates.find((function(t){return t.type===e.PicklistTemplateTypes.SelectedItem})))||void 0===n?void 0:n.template,this.itemToSelectTemplate||console.error("Missing template for "+e.PicklistTemplateTypes.ItemToSelect+" add this template using sTemplate directive."),this.itemSelectedTemplate||console.error("Missing template for "+e.PicklistTemplateTypes.SelectedItem+" add this template using sTemplate directive."),this.cdr.detectChanges()},n.prototype.ngOnChanges=function(e){e.itensToSelect&&e.itensToSelect.firstChange&&(this.itensToSelectFilterUtil={rawItensToSelect:this.itensToSelect,filteredItensToSelect:this.itensToSelect}),e.selectedItens&&e.selectedItens.firstChange&&(this.selectedItensFilterUtil={filteredSelectedItens:this.selectedItens,rawSelectedItens:this.selectedItens})},n.prototype.toggleSelected=function(e,t){e.disabled||(this.unselectedItensByListId(this.getOppositiveId(t)),e.selected=!e.selected,e.selected?this.selectedItensMap.add(e):this.selectedItensMap.delete(e),this.cdr.detectChanges())},n.prototype.remove=function(e){var t=this;void 0===e&&(e=!1);var n=El(e?this.selectedItensFilterUtil.rawSelectedItens:this.selectedItensMap);n.length&&(n.forEach((function(e){t.itensToSelect.push(e),e.selected=!1,t.selectedItensMap.delete(e)})),this.selectedItens=this.selectedItens.filter((function(e){return!n.includes(e)})),this.selectedItensFilterUtil.rawSelectedItens=this.selectedItens,this.filterSelectedItens(),this.filterItensToSelect(),this.emitData(),this.cdr.detectChanges())},n.prototype.add=function(e){var t=this;void 0===e&&(e=!1);var n=El(e?this.itensToSelectFilterUtil.rawItensToSelect:this.selectedItensMap);n.length&&(n.forEach((function(e){t.selectedItens.push(e),e.selected=!1,t.selectedItensMap.delete(e)})),this.itensToSelect=this.itensToSelect.filter((function(e){return!n.includes(e)})),this.itensToSelectFilterUtil.rawItensToSelect=this.itensToSelect,this.filterSelectedItens(),this.filterItensToSelect(),this.emitData(),this.cdr.detectChanges())},n.prototype.filterItensToSelect=function(){var e=this,t=this.availableItensFilter;t=t.trim(),this.itensToSelectFilterUtil.filteredItensToSelect=t?this.itensToSelectFilterUtil.rawItensToSelect.filter((function(n){return kl(n.data[e.filterBy],t)})):this.itensToSelectFilterUtil.rawItensToSelect,this.cdr.detectChanges()},n.prototype.filterSelectedItens=function(){var e=this,t=this.selectedItensFilter;t=t.trim(),this.selectedItensFilterUtil.filteredSelectedItens=t?this.selectedItensFilterUtil.rawSelectedItens.filter((function(n){return kl(n.data[e.filterBy],t)})):this.selectedItensFilterUtil.rawSelectedItens},n.prototype.drop=function(e){e.container!==e.previousContainer&&(e.previousContainer.id===this.selectedItensId?this.remove():this.add(),this.cdr.detectChanges())},n.prototype.onDragStart=function(e,t){this.unselectedItensByListId(this.getOppositiveId(t)),e.source.data.selected=!0,this.selectedItensMap.add(e.source.data),this.selectedItensMap.forEach((function(e){return e.invisible=!0})),this.cdr.detectChanges()},n.prototype.onDragRelease=function(){this.selectedItensMap.forEach((function(e){return e.invisible=!1}))},n.prototype.checkAllAvailableItensChange=function(e){this._checkAllSelectedItensChange(e,this.itensToSelectFilterUtil.filteredItensToSelect,this.itensToSelectId)},n.prototype.checkAllSelectedItensChange=function(e){this._checkAllSelectedItensChange(e,this.selectedItensFilterUtil.filteredSelectedItens,this.selectedItensId)},Object.defineProperty(n.prototype,"disableSelectedItensCheckbox",{get:function(){return 0===El(this.selectedItensFilterUtil.filteredSelectedItens).length},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"disableItensToSelectCheckbox",{get:function(){return 0===El(this.itensToSelectFilterUtil.filteredItensToSelect).length},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"itensToSelectAllSelected",{get:function(){return this._checkAllSelectedByList(this.itensToSelectFilterUtil.filteredItensToSelect)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"selectedItensAllSelected",{get:function(){return this._checkAllSelectedByList(this.selectedItensFilterUtil.filteredSelectedItens)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"canAddItens",{get:function(){return this.itensToSelect.filter((function(e){return null==e?void 0:e.selected})).length>0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"canRemoveItens",{get:function(){return this.selectedItens.filter((function(e){return null==e?void 0:e.selected})).length>0},enumerable:!0,configurable:!0}),n.prototype._checkAllSelectedByList=function(e){var t=El(e);return!!t.length&&t.every((function(e){return e.selected}))},n.prototype._checkAllSelectedItensChange=function(e,t,n){var o=this;this.unselectedItensByListId(n===this.selectedItensId?this.itensToSelectId:this.selectedItensId),El(t).forEach((function(t){t.selected=e,o.selectedItensMap.add(t)})),this.cdr.detectChanges()},n.prototype.unselectedItensByListId=function(e){var t=this;this.getAllElementsByListId(e).forEach((function(e){e.selected=!1,t.selectedItensMap.delete(e)})),this.cdr.detectChanges()},n.prototype.getAllElementsByListId=function(e){return e===this.selectedItensId?this.selectedItensFilterUtil.rawSelectedItens:this.itensToSelectFilterUtil.rawItensToSelect},n.prototype.getOppositiveId=function(e){return e===this.selectedItensId?this.itensToSelectId:this.selectedItensId},n.prototype.emitData=function(){this.itensToSelectChange.emit(Ol(this.itensToSelect)),this.selectedItensChange.emit(Ol(this.selectedItens))},n.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},pe([t.Input()],n.prototype,"itensToSelect",void 0),pe([t.Input()],n.prototype,"selectedItens",void 0),pe([t.Input()],n.prototype,"availableItensLabel",void 0),pe([t.Input()],n.prototype,"availableItensPlaceholder",void 0),pe([t.Input()],n.prototype,"addSelectedItensLabel",void 0),pe([t.Input()],n.prototype,"addAllItensLabel",void 0),pe([t.Input()],n.prototype,"selectedItensLabel",void 0),pe([t.Input()],n.prototype,"selectedItensPlaceholder",void 0),pe([t.Input()],n.prototype,"removeSelectedItemsLabel",void 0),pe([t.Input()],n.prototype,"removeAllItemsLabel",void 0),pe([t.Input()],n.prototype,"showCheckbox",void 0),pe([t.Input()],n.prototype,"filterBy",void 0),pe([t.Output()],n.prototype,"selectedItensChange",void 0),pe([t.Output()],n.prototype,"itensToSelectChange",void 0),pe([t.ContentChildren(Dt)],n.prototype,"templates",void 0),n=pe([t.Component({selector:"s-picklist",template:'<ng-template #previewRender let-itens="itens" let-template="template">\n <section class="picklist-items">\n <ng-container *ngFor="let item of itens">\n <ng-container *ngTemplateOutlet="template; context: { item: item.data }"></ng-container>\n </ng-container>\n </section>\n</ng-template>\n\n<ng-template #picklistItensRender let-id="id" let-itens="itens" let-template="template" let-listConnectedTo="listConnectedTo">\n <div\n class="picklist-items"\n cdkDropList\n [id]="id"\n [cdkDropListSortingDisabled]="true"\n [cdkDropListData]="itens"\n [cdkDropListConnectedTo]="listConnectedTo"\n (cdkDropListDropped)="drop($event)">\n <div\n *ngFor="let item of itens"\n cdkDrag\n [cdkDragDisabled]="item.disabled"\n [cdkDragData]="item"\n (click)="toggleSelected(item, id)"\n (cdkDragStarted)="onDragStart($event, id)"\n (cdkDragReleased)="onDragRelease()"\n class="picklist-item"\n [class.picklist-disabled]="item.disabled"\n [class.picklist-item-invisible]="item.invisible"\n [class.picklist-item-active]="item.selected">\n <input\n type="checkbox"\n class="input-checkbox"\n [(ngModel)]="item.selected"\n [disabled]="item.disabled"\n *ngIf="showCheckbox">\n <div class="picklist-content">\n <ng-container *ngTemplateOutlet="template; context: { item: item.data, selected: item.selected, disabled: item.disabled }"></ng-container>\n </div>\n <ng-container *cdkDragPreview>\n <ng-container *ngTemplateOutlet="previewRender; context: { itens: selectedItensMap, template: template }"></ng-container>\n </ng-container>\n </div>\n</div>\n</ng-template>\n\n<ng-template #checkboxTitleRender let-disabled="disabled" let-checked="checked" let-changeFn="changeFn">\n <input\n *ngIf="showCheckbox"\n class="input-checkbox"\n type="checkbox"\n [disabled]="disabled"\n [checked]="checked"\n (change)="changeFn($event.target.checked)">\n</ng-template>\n\n<div class="picklist-container">\n <div class="picklist-item-container">\n <div class="picklist-box">\n <div class="picklist-title-container">\n <ng-container *ngIf="!filterBy">\n <ng-container *ngTemplateOutlet="checkboxTitleRender; context: { disabled: disableItensToSelectCheckbox, checked: itensToSelectAllSelected, changeFn: checkAllAvailableItensChange.bind(this) }"></ng-container>\n </ng-container>\n <span class="picklist-title">\n {{ availableItensLabel || \'platform.angular_components.available-items\' | translate }}\n </span>\n </div>\n <div class="picklist-filter" *ngIf="filterBy && showCheckbox">\n <ng-container *ngTemplateOutlet="checkboxTitleRender; context: { disabled: disableItensToSelectCheckbox, checked: itensToSelectAllSelected, changeFn: checkAllAvailableItensChange.bind(this) }"></ng-container>\n <input\n *ngIf="filterBy"\n type="text"\n class="input-search"\n [(ngModel)]="availableItensFilter"\n (ngModelChange)="filterItensToSelect()"\n [placeholder]="availableItensPlaceholder || \'platform.angular_components.picklist-placeholder\' | translate">\n </div>\n <ng-container *ngTemplateOutlet="picklistItensRender;\n context: {\n id: itensToSelectId,\n itens: itensToSelectFilterUtil.filteredItensToSelect,\n template: itemToSelectTemplate,\n listConnectedTo: selectedItensId\n }">\n </ng-container>\n </div>\n <div class="buttons-container">\n <s-button\n [label]="addSelectedItensLabel || \'platform.angular_components.add\' | translate"\n priority="primary"\n rightIconClass="fa fa-fw fa-arrow-right"\n [disabled]="!canAddItens"\n (onClick)="add()"\n [auxiliary]="false"\n [caret]="false">\n </s-button>\n <s-button\n [label]="addAllItensLabel || \'platform.angular_components.add_all\' | translate"\n priority="link"\n (onClick)="add(true)"\n [auxiliary]="false">\n </s-button>\n </div>\n </div>\n <div class="picklist-item-container">\n <div class="picklist-box">\n <div class="picklist-title-container">\n <ng-container *ngIf="!filterBy">\n <ng-container *ngTemplateOutlet="checkboxTitleRender; context: { disabled: disableSelectedItensCheckbox, checked: selectedItensAllSelected, changeFn: checkAllSelectedItensChange.bind(this) }"></ng-container>\n </ng-container>\n <span class="picklist-title">\n {{ selectedItensLabel || \'platform.angular_components.selected-items\' | translate }}\n </span>\n </div>\n <div class="picklist-filter" *ngIf="filterBy && showCheckbox">\n <ng-container *ngTemplateOutlet="checkboxTitleRender; context: { disabled: disableSelectedItensCheckbox, checked: selectedItensAllSelected, changeFn: checkAllSelectedItensChange.bind(this) }"></ng-container>\n <input\n *ngIf="filterBy"\n type="text"\n class="input-search"\n [(ngModel)]="selectedItensFilter"\n (ngModelChange)="filterSelectedItens()"\n [placeholder]="selectedItensPlaceholder || \'platform.angular_components.picklist-placeholder\' | translate">\n </div>\n <ng-container *ngTemplateOutlet="picklistItensRender;\n context: {\n id: selectedItensId,\n itens: selectedItensFilterUtil.filteredSelectedItens,\n template: itemSelectedTemplate,\n listConnectedTo: itensToSelectId\n }">\n\n </ng-container>\n </div>\n <div class="buttons-container">\n <s-button\n [label]="removeSelectedItemsLabel || \'platform.angular_components.remove\' | translate"\n priority="primary"\n iconClass="fa fa-fw fa-arrow-left"\n [disabled]="!canRemoveItens"\n [auxiliary]="false"\n (onClick)="remove()"\n [caret]="false">\n </s-button>\n <s-button\n [label]="removeAllItemsLabel || \'platform.angular_components.remove_all\' | translate"\n priority="link"\n (onClick)="remove(true)"\n [auxiliary]="false">\n </s-button>\n </div>\n </div>\n</div>\n',styles:[".picklist-container{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;border-radius:4px solid #dedce5;width:100%;background-color:#fff;gap:20px;padding:8px}.picklist-container .picklist-item-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1}.picklist-container .picklist-item-container .picklist-box{border:1px solid #dedce5;padding:8px;height:100%;min-width:200px}.picklist-container .picklist-item-container .picklist-box .picklist-filter{display:-ms-flexbox;display:flex;width:100%}.picklist-container .picklist-item-container .picklist-box .picklist-filter .input-search{border:1px solid #dedce5;min-height:35px;width:100%;border-radius:3px;margin-bottom:10px;margin-top:10px;padding:0 8px;-ms-flex:1;flex:1}.picklist-container .picklist-item-container .picklist-box .picklist-title-container{width:100%;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.picklist-container .picklist-item-container .picklist-box .picklist-title-container .picklist-title{font-family:Open Sans;font-size:14px;font-weight:700;line-height:21px;text-underline-position:from-font;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}.picklist-container .picklist-item-container .picklist-box .picklist-items{max-height:23em;overflow:auto;height:100%;min-height:55px}.picklist-container .picklist-item-container .picklist-box .picklist-items .picklist-content{width:100%;height:100%;padding-right:8px;border-radius:3px;margin-bottom:8px}.picklist-container .picklist-item-container .picklist-box .picklist-items .picklist-item{height:55px;border:3px;display:-ms-flexbox;display:flex}.picklist-container .picklist-item-container .picklist-box .picklist-items .picklist-item:not(.picklist-disabled){cursor:pointer}.picklist-container .picklist-item-container .picklist-box .picklist-items .picklist-item:hover:not(.picklist-disabled,.picklist-item-active,.picklist-item-invisible){background-color:#f1f7f8}.picklist-container .picklist-item-container .picklist-box .picklist-items .picklist-item-active:not(.picklist-item-invisible){background-color:#d5e8ec}.picklist-container .picklist-item-container .picklist-box .picklist-items .picklist-disabled{opacity:.5;background-color:#fbfafc}.picklist-container .picklist-item-container .picklist-box .picklist-items .picklist-item-invisible{display:none!important}.picklist-container .picklist-item-container .buttons-container{padding-top:10px;display:-ms-flexbox;display:flex}.picklist-container .picklist-item-container .input-checkbox{margin:12px}"]})],n)}(),wl=function(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()},Cl=wl,kl=function(e,t){return wl(e).includes(wl(t))},Il=kl,Sl=function(e){return void 0===e&&(e="id"),e+"-"+Math.random().toString(36).substring(2,9)+"-"+Date.now().toString(36)},Tl=Sl,El=function(e){return(e instanceof Set?Array.from(e):e).filter((function(e){return!e.disabled}))},Ml=El,Ll=function(e){return e.map((function(e){return e.data}))},Fl=Ll,Ol=o.pipe(El,Ll),Rl=function(){function e(){}return e=pe([t.NgModule({declarations:[_l],imports:[r.CommonModule,b.TranslateModule,ne.DragDropModule,a.FormsModule,Ot],exports:[_l]})],e)}(),Al=function(){function e(e){this.cdr=e,this.newItem="",this.value=[],this.placeholder="",this.inputId="chips-"+n._id++,this.allowDuplicated=!0,this.caseSensitiveDuplication=!1,this.addOnTab=!0,this.addOnBlur=!0,this.autofocus=!1,this.infoLabel="",this.showTooltip=!0,this.maxLengthRenderWithoutTooltip=20,this.onAdd=new t.EventEmitter,this.onRemove=new t.EventEmitter,this.onFocus=new t.EventEmitter,this.onBlur=new t.EventEmitter,this.onChipClick=new t.EventEmitter,this.valueChange=new t.EventEmitter,this.isTabEventActive=!1,this.onChange=function(){},this.onTouched=function(){}}var n;return n=e,e.prototype.ngAfterViewInit=function(){var e;this.autofocus&&this.input&&this.input.nativeElement.focus(),this.chipTemplate=null===(e=this.templates.find((function(e){return"chip-container"===e.type})))||void 0===e?void 0:e.template,this.cdr.detectChanges()},e.prototype.writeValue=function(e){this.value=e},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this.disabled=e},e.prototype.onKeydown=function(e){var t=this,n="Enter"===e.key,o=this.separator&&e.key===this.separator,i="Tab"===e.key;i&&(this.isTabEventActive=!0,setTimeout((function(){t.isTabEventActive=!1}),50));var r=this.addOnTab&&i;(n||o||r)&&(e.preventDefault(),this.addItem())},e.prototype.onInputFocus=function(e){this.onFocus.emit(e)},e.prototype.onInputLostFocus=function(e){this.addOnBlur&&!this.isTabEventActive&&(this.addItem(),this.onBlur.emit(e))},e.prototype.removeItem=function(e){var t=e.itemIndex,n=e.event,o=this.value[t];this.value.splice(t,1),this.onRemove.emit({value:o,originalEvent:n})},e.prototype.chipClicked=function(e){var t=e.event,n=e.data;this.onChipClick.emit({value:n,originalEvent:t})},e.prototype.addItem=function(){var e,t=this;if(!!this.newItem&&((!this.max||this.value.length!==this.max)&&(!this.maxLength||this.newItem.length<=this.maxLength))){var n=!!this.field,o=this.field?this.value.map((function(e){return e[t.field]})):this.value,i=n?((e={})[this.field]=this.newItem,e):this.newItem,r=o.find((function(e){return t.caseSensitiveDuplication?e===t.newItem:e.toLowerCase()===t.newItem.toLowerCase()})),a=!1;this.allowDuplicated||(a=!!r&&Boolean(r)),a||this.storeValue(i),this.newItem=""}},e.prototype.storeValue=function(e){this.value=ge(this.value,[e]),this.onAdd.emit({value:e}),this.valueChange.emit(this.value),this.writeValue(this.value),this.onChange(this.value),this.onTouched(this.value)},e._id=0,e.ctorParameters=function(){return[{type:t.ChangeDetectorRef}]},pe([t.Input()],e.prototype,"disabled",void 0),pe([t.Input()],e.prototype,"field",void 0),pe([t.Input()],e.prototype,"value",void 0),pe([t.Input()],e.prototype,"placeholder",void 0),pe([t.Input()],e.prototype,"max",void 0),pe([t.Input()],e.prototype,"maxLength",void 0),pe([t.Input()],e.prototype,"inputId",void 0),pe([t.Input()],e.prototype,"allowDuplicated",void 0),pe([t.Input()],e.prototype,"caseSensitiveDuplication",void 0),pe([t.Input()],e.prototype,"addOnTab",void 0),pe([t.Input()],e.prototype,"addOnBlur",void 0),pe([t.Input()],e.prototype,"separator",void 0),pe([t.Input()],e.prototype,"autofocus",void 0),pe([t.Input()],e.prototype,"infoLabel",void 0),pe([t.Input()],e.prototype,"keyFilter",void 0),pe([t.Input()],e.prototype,"showTooltip",void 0),pe([t.Input()],e.prototype,"maxLengthRenderWithoutTooltip",void 0),pe([t.Output()],e.prototype,"onAdd",void 0),pe([t.Output()],e.prototype,"onRemove",void 0),pe([t.Output()],e.prototype,"onFocus",void 0),pe([t.Output()],e.prototype,"onBlur",void 0),pe([t.Output()],e.prototype,"onChipClick",void 0),pe([t.Output()],e.prototype,"valueChange",void 0),pe([t.ContentChildren(Dt)],e.prototype,"templates",void 0),pe([t.ViewChild("input",{read:t.ElementRef})],e.prototype,"input",void 0),pe([t.HostListener("document:keydown",["$event"]),Es()],e.prototype,"onKeydown",null),pe([Es()],e.prototype,"onInputLostFocus",null),e=n=pe([t.Component({selector:"s-chips",template:'<ul class="chips-container">\n <li *ngFor="let item of value; let index = index">\n <s-chip-item\n [templateRef]="chipTemplate"\n [dataRender]="item"\n [objectField]="field"\n [itemIndex]="index"\n [disabled]="disabled"\n [showTooltip]="showTooltip"\n [maxLengthRenderWithoutTooltip]="maxLengthRenderWithoutTooltip"\n (clickRemove)="removeItem($event)"\n (chipClicked)="chipClicked($event)">\n </s-chip-item>\n </li>\n <ng-container *ngIf="keyFilter">\n <input\n #input\n [disabled]="disabled || max === value?.length"\n [placeholder]="placeholder"\n [maxlength]="maxLength"\n [id]="inputId"\n [(ngModel)]="newItem"\n [pKeyFilter]="keyFilter"\n (focus)="onInputFocus($event)"\n (blur)="onInputLostFocus($event)">\n </ng-container>\n <ng-container *ngIf="!keyFilter">\n <input\n #input\n [disabled]="disabled || max === value?.length"\n [placeholder]="placeholder"\n [maxlength]="maxLength"\n [id]="inputId"\n [(ngModel)]="newItem"\n (focus)="onInputFocus($event)"\n (blur)="onInputLostFocus($event)">\n </ng-container>\n</ul>\n<ng-container *ngIf="infoLabel">\n <span class="info-label">\n {{ infoLabel }}\n </span>\n</ng-container>\n',providers:[{provide:a.NG_VALUE_ACCESSOR,useExisting:t.forwardRef((function(){return n})),multi:!0}],styles:[".chips-container{width:100%;padding:8px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;border-radius:3px;border:1px solid #c1c1cc;background-color:#fff;list-style:none;gap:8px}.chips-container input{background-color:#fff;width:100%;border:none;min-height:2em;min-width:15%;-ms-flex:1;flex:1}.chips-container input:focus-visible{outline:0}.info-label{color:#888b99;font-size:12px;font-style:normal;font-weight:400}"]})],e)}(),Dl=function(){function e(){this.disabled=!1,this.itemIndex=-1,this.showTooltip=!0,this.maxLengthRenderWithoutTooltip=20,this.clickRemove=new t.EventEmitter,this.chipClicked=new t.EventEmitter}return e.prototype.clickedRemove=function(e){this.clickRemove.emit({index:this.itemIndex,event:e})},e.prototype.onChipClicked=function(e){this.chipClicked.emit({event:e,data:this.dataRender})},Object.defineProperty(e.prototype,"_text",{get:function(){var e=this._rawText;return e.substring(0,e.length>this.maxLengthRenderWithoutTooltip?this.maxLengthRenderWithoutTooltip:e.length)+(e.length>this.maxLengthRenderWithoutTooltip?"...":"")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_rawText",{get:function(){return this.objectField?this.dataRender[this.objectField]||"":this.dataRender||""},enumerable:!0,configurable:!0}),pe([t.Input()],e.prototype,"dataRender",void 0),pe([t.Input()],e.prototype,"objectField",void 0),pe([t.Input()],e.prototype,"disabled",void 0),pe([t.Input()],e.prototype,"templateRef",void 0),pe([t.Input()],e.prototype,"itemIndex",void 0),pe([t.Input()],e.prototype,"showTooltip",void 0),pe([t.Input()],e.prototype,"maxLengthRenderWithoutTooltip",void 0),pe([t.Output()],e.prototype,"clickRemove",void 0),pe([t.Output()],e.prototype,"chipClicked",void 0),pe([Es()],e.prototype,"clickedRemove",null),pe([Es()],e.prototype,"onChipClicked",null),e=pe([t.Component({selector:"s-chip-item",template:'<ng-template #itemRender>\n <div\n class="chip-item"\n [class.chip-item-disabled]="disabled"\n (click)="onChipClicked($event)"\n [sTooltip]="_rawText"\n [showDelay]="0"\n [visible]="showTooltip ? _rawText.length > maxLengthRenderWithoutTooltip : false">\n <ng-container *ngIf="templateRef">\n <ng-container *ngTemplateOutlet="templateRef; context: { $implicit: dataRender, text: _text }"></ng-container>\n </ng-container>\n <ng-container *ngIf="!templateRef">\n {{ _text }}\n </ng-container>\n <i class="fas fa-times" (click)="clickedRemove($event)"></i>\n </div>\n</ng-template>\n\n\n<ng-container *ngIf="objectField && !templateRef">\n <ng-container *ngTemplateOutlet="itemRender;"></ng-container>\n</ng-container>\n\n<ng-container *ngIf="!objectField && !templateRef">\n <ng-container *ngTemplateOutlet="itemRender;"></ng-container>\n</ng-container>\n\n<ng-container *ngIf="templateRef">\n <ng-container *ngTemplateOutlet="itemRender"></ng-container>\n</ng-container>\n',styles:[".chip-item{border-radius:4px;border:1px solid #888b99;background-color:#eeebf2;word-break:break-word;font-size:12px;font-weight:400;text-align:center;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px;padding:0 8px}.chip-item i{cursor:pointer}.chip-item:hover:not(.chip-item-disabled){background:#c1c1cc}.chip-item-disabled{opacity:.5}.chip-item-disabled i{cursor:default}"]})],e)}(),Pl=function(){function e(){}return e=pe([t.NgModule({declarations:[Al,Dl],imports:[r.CommonModule,a.FormsModule,Ae,j.KeyFilterModule],exports:[Al]})],e)}(),Vl=function(){function e(){this.VALID_POSITIONS=["top","bottom","left","right"],this.VALID_ARROW_POSITIONS=["beginning","end","middle"],this._position="bottom",this.popoverContent=null,this.closeButton=!0,this.icon="",this.header="",this.footer="",this.button="",this.visible=!1,this.arrowElement=null,this._arrowPosition="beginning",this.closed=new o.Subject}return Object.defineProperty(e.prototype,"position",{get:function(){return this._position},set:function(e){if(!this.VALID_POSITIONS.includes(e))throw new Error("Invalid position: "+e+". Valid positions: "+this.VALID_POSITIONS);this._position=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arrowPosition",{get:function(){return this._arrowPosition},set:function(e){if(!this.VALID_ARROW_POSITIONS.includes(e))throw new Error("Invalid arrow position: "+e+". Valid arrow positions: "+this.VALID_ARROW_POSITIONS);this._arrowPosition=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentIsString",{get:function(){return"string"==typeof this.popoverContent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasHeaderContainer",{get:function(){var e=this.hasHeaderText,t=this.hasIcon,n=this.closeButton;return e||t||n},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasFooter",{get:function(){var e=this.hasFooterText,t=this.button&&this.button.length>0;return e||t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasHeaderText",{get:function(){return this.header&&this.header.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasFooterText",{get:function(){return this.footer&&this.footer.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasIcon",{get:function(){return this.icon&&this.icon.length>0},enumerable:!0,configurable:!0}),e.prototype.close=function(){this.closed.next()},e.prototype.clickButton=function(){this.buttonClicked.emit()},e.prototype.ngOnDestroy=function(){this.closed.complete()},pe([t.ViewChild("arrowElement",{read:t.ElementRef,static:!0})],e.prototype,"arrowElement",void 0),e=pe([t.Component({selector:"s-help-popover",template:'<div\n class="popover-container"\n [style.visibility]="visible ? \'visible\' : \'hidden\'"\n [class.popover-container-top]="position === \'top\'"\n [class.popover-container-right]="position === \'right\'"\n [class.popover-container-bottom]="position === \'bottom\'"\n [class.popover-container-left]="position === \'left\'">\n\n <div\n class="arrow-container"\n [class.arrow-container-beginning]="arrowPosition === \'beginning\'"\n [class.arrow-container-middle]="arrowPosition === \'middle\'"\n [class.arrow-container-end]="arrowPosition === \'end\'">\n <div\n class="arrow" #arrowElement>\n </div>\n </div>\n <div class="popover">\n <div\n class="popover-header-container"\n [class.space-between]="hasIcon || hasHeaderText"\n [class.flex-end]="!(hasIcon || hasHeaderText) && closeButton"\n *ngIf="hasHeaderContainer">\n <div class="popover-header-container-text" *ngIf="hasIcon || hasHeaderText">\n <div class="popover-icon" *ngIf="hasIcon">\n <i [class]="icon"></i>\n </div>\n <div class="popover-header-text" *ngIf="hasHeaderText">\n {{ header }}\n </div>\n </div>\n <div class="popover-close-button" *ngIf="closeButton">\n <i class="fas fa-times" (click)="close()"></i>\n </div>\n </div>\n\n <div class="popover-content">\n <ng-container *ngIf="contentIsString">\n {{ popoverContent }}\n </ng-container>\n <ng-container *ngIf="!contentIsString">\n <ng-container *ngTemplateOutlet="popoverContent"></ng-container>\n </ng-container>\n </div>\n\n <div class="separator" *ngIf="hasFooter"></div>\n\n <div class="popover-footer-container" *ngIf="hasFooter" [class.space-between]="hasFooterText" [class.flex-end]="!hasFooterText">\n <p class="popover-footer-text" *ngIf="hasFooterText">\n {{ footer }}\n </p>\n <div class="popover-footer-button" *ngIf="button && button.length > 0">\n <s-button\n [label]="button"\n priority="primary"\n size="small"\n (onClick)="clickButton()"\n [disabled]="false"\n [auxiliary]="false">\n </s-button>\n </div>\n </div>\n </div>\n</div>\n',styles:[':host{display:block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.popover-container{z-index:1050;position:relative}.popover-container .space-between{-ms-flex-pack:justify;justify-content:space-between}.popover-container .flex-end{-ms-flex-pack:end;justify-content:flex-end}.popover-container-top{display:-ms-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.popover-container-top .arrow{width:0;height:0;position:relative;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid #fff;border-bottom:0 solid transparent}.popover-container-bottom .arrow{width:0;height:0;position:relative;border-left:10px solid transparent;border-right:10px solid transparent;border-bottom:10px solid #fff;border-top:0 solid transparent}.popover-container-left{display:-ms-flexbox;display:flex;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex-align:center;align-items:center}.popover-container-left .arrow{width:0;height:0;position:relative;border-top:10px solid transparent;border-bottom:10px solid transparent;border-left:10px solid #fff;border-right:0 solid transparent}.popover-container-right{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.popover-container-right .arrow{width:0;height:0;position:relative;border-top:10px solid transparent;border-bottom:10px solid transparent;border-right:10px solid #fff;border-left:0 solid transparent}.popover-container-bottom .arrow-container,.popover-container-top .arrow-container{display:-ms-flexbox;display:flex}.popover-container-bottom .arrow-container-beginning,.popover-container-top .arrow-container-beginning{-ms-flex-pack:start;justify-content:flex-start}.popover-container-bottom .arrow-container-beginning .arrow,.popover-container-top .arrow-container-beginning .arrow{margin-left:12px}.popover-container-bottom .arrow-container-middle,.popover-container-top .arrow-container-middle{-ms-flex-pack:center;justify-content:center}.popover-container-bottom .arrow-container-end,.popover-container-top .arrow-container-end{-ms-flex-pack:end;justify-content:flex-end}.popover-container-bottom .arrow-container-end .arrow,.popover-container-top .arrow-container-end .arrow{margin-right:12px}.popover-container-left .arrow-container,.popover-container-right .arrow-container{display:-ms-flexbox;display:flex;-ms-flex-item-align:stretch;align-self:stretch}.popover-container-left .arrow-container-beginning,.popover-container-right .arrow-container-beginning{-ms-flex-align:start;align-items:flex-start}.popover-container-left .arrow-container-beginning .arrow,.popover-container-right .arrow-container-beginning .arrow{margin-top:12px}.popover-container-left .arrow-container-middle,.popover-container-right .arrow-container-middle{-ms-flex-align:center;align-items:center}.popover-container-left .arrow-container-end,.popover-container-right .arrow-container-end{-ms-flex-align:end;align-items:flex-end}.popover-container-left .arrow-container-end .arrow,.popover-container-right .arrow-container-end .arrow{margin-bottom:12px}.popover-container .popover{min-width:200px;max-width:305px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border-radius:3px;background:#fff;box-shadow:0 1px 5px 0 rgba(0,0,0,.25)}.popover-container .popover-content,.popover-container .popover-footer-container,.popover-container .popover-header-container{padding:8px}.popover-container .popover-close-button i{cursor:pointer}.popover-container .popover-footer-text{color:#212533;font-family:"Open Sans";font-size:12px;font-style:normal;font-weight:400}.popover-container .popover-header-container{display:-ms-flexbox;display:flex}.popover-container .popover-header-container-text{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;gap:8px}.popover-container .popover .separator{width:100%;border:1px solid #dedce5}.popover-container .popover-footer-container{display:-ms-flexbox;display:flex;gap:8px;-ms-flex-align:center;align-items:center}']})],e)}(),Bl=function(){function e(e,n,i,r){var a=this;this.element=e,this.injector=n,this.componentFactoryResolver=i,this.appRef=r,this.MUTATION_OBSERVER_CONFIG={attributes:!0,childList:!0,subtree:!0},this.OBSERVER_CALLBACK=function(){a.componentRef&&a.applyPositionIntoElement()},this.RESIZE_OBSERVER=function(){a.onResize$.next()},this.sHelpPopover=null,this.closeButton=!0,this.popoverIcon="",this.popoverHeader="",this.popoverFooter="",this.popoverButtonText="",this.popoverArrowPosition="beginning",this._popoverPosition="bottom",this.buttonClicked=new t.EventEmitter,this.onDestroy$=new o.Subject,this.componentRef=null,this.mutationObserverPopoverElement=null,this.mutationObserverPopoverContent=null,this.internalPosition="bottom",this.onResize$=new o.Subject,this.manualTrigger=!1,this.listener=function(e){var t=a.componentRef.location.nativeElement.getBoundingClientRect();Te(e,t)&&a.destroy()}}return Object.defineProperty(e.prototype,"popoverPosition",{get:function(){return this._popoverPosition},set:function(e){this._popoverPosition=e,this.internalPosition=e},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var e=new MutationObserver(this.OBSERVER_CALLBACK);this.mutationObserverPopoverElement=e,e.observe(this.element.nativeElement,this.MUTATION_OBSERVER_CONFIG),window.addEventListener("resize",this.RESIZE_OBSERVER),window.addEventListener("scrollend",this.OBSERVER_CALLBACK),this.onResize$.pipe(i.takeUntil(this.onDestroy$),i.debounceTime(100)).subscribe(this.OBSERVER_CALLBACK)},e.prototype.show=function(){this.manualTrigger=!0,this._createComponent()},e.prototype.doClick=function(){this.manualTrigger||this._createComponent()},e.prototype.ngOnDestroy=function(){this.onDestroy$.next(),this.onDestroy$.complete(),this.destroy(),this.mutationObserverPopoverElement&&this.mutationObserverPopoverElement.disconnect(),window.removeEventListener("resize",this.RESIZE_OBSERVER),window.removeEventListener("scrollend",this.OBSERVER_CALLBACK)},e.prototype._createComponent=function(){var e=this;if(this.sHelpPopover){this.componentRef&&this.destroy();var t=this.componentFactoryResolver.resolveComponentFactory(Vl).create(this.injector);this.componentRef=t,this.mutationObserverPopoverContent&&this.mutationObserverPopoverContent.disconnect(),this.mutationObserverPopoverContent=new MutationObserver(this.OBSERVER_CALLBACK),this.mutationObserverPopoverContent.observe(this.componentRef.location.nativeElement.querySelector(".popover-content"),this.MUTATION_OBSERVER_CONFIG),document.body.appendChild(t.location.nativeElement),this.appRef.attachView(t.hostView),setTimeout((function(){document.addEventListener("click",e.listener)}));var n=t.instance;n.popoverContent=this.sHelpPopover,n.closeButton=this.closeButton,n.icon=this.popoverIcon,n.header=this.popoverHeader,n.footer=this.popoverFooter,n.button=this.popoverButtonText,n.position=this.internalPosition,n.arrowPosition=this.popoverArrowPosition,n.buttonClicked=this.buttonClicked,n.closed.pipe(i.takeUntil(this.onDestroy$)).subscribe((function(){e.destroy()})),this.applyPositionIntoElement()}},e.prototype.destroy=function(){document.removeEventListener("click",this.listener),this.componentRef&&(this.componentRef.destroy(),this.componentRef=null),this.internalPosition=this.popoverPosition,this.mutationObserverPopoverContent&&this.mutationObserverPopoverContent.disconnect()},e.prototype.applyPositionIntoElement=function(){var e=this,t=Ee(this.element.nativeElement),n=this.validPosition;this.internalPosition=n,this.popoverComponentInstance.position=this.internalPosition,setTimeout((function(){switch(e.internalPosition){case"bottom":e.applyPopoverPositionBottom(t);break;case"top":e.applyPopoverPositionTop(t);break;case"left":e.applyPopoverPositionLeft(t);break;case"right":e.applyPopoverPositionRight(t)}e.popoverComponentInstance.visible=!0}))},e.prototype.applyPopoverPositionBottom=function(e){var t=this.getPopoverElement,n=this.getHorizontalLeft(e);t.style.position="absolute",t.style.left=n+"px",t.style.top="calc("+e.top+"px + "+e.elementHeight+"px)"},e.prototype.applyPopoverPositionTop=function(e){var t=this.getPopoverElement,n=this.getHorizontalLeft(e),o=t.getBoundingClientRect().height;t.style.position="absolute",t.style.left=n+"px",t.style.top="calc("+e.top+"px - "+o+"px)"},e.prototype.applyPopoverPositionLeft=function(e){var t=this.getPopoverElement,n=t.getBoundingClientRect().width;t.style.position="absolute",t.style.left="calc("+e.right+"px - "+(n+e.elementWidth)+"px)",t.style.top=this.getVerticalTop(e)},e.prototype.applyPopoverPositionRight=function(e){var t=this.getPopoverElement;t.style.position="absolute",t.style.left="calc("+e.right+"px)",t.style.top=this.getVerticalTop(e)},e.prototype.getHorizontalLeft=function(e){var t=this.getPopoverElement.getBoundingClientRect().width,n=e.left;return"end"===this.popoverArrowPosition?n=e.right-t:"middle"===this.popoverArrowPosition&&(n=e.left+e.elementWidth/2-t/2),n},e.prototype.getVerticalTop=function(e){var t=Ee(this.componentRef.instance.arrowElement.nativeElement),n=Ee(this.componentRef.location.nativeElement),o=this.getPopoverElement.getBoundingClientRect().height,i="calc("+e.top+"px - "+o/2+"px + "+e.elementHeight/2+"px)",r=t.elementHeight/2;if("beginning"===this.popoverArrowPosition){var a=t.top-n.top;i="calc("+e.top+"px + "+e.elementHeight/2+"px - "+(a+r)+"px)"}else if("end"===this.popoverArrowPosition){var s=n.top+n.elementHeight-(t.top+t.elementHeight);i="calc("+e.top+"px - "+n.elementHeight+"px + "+e.elementHeight/2+"px + "+(s+r)+"px)"}return i},e.prototype.getLeftoverContentAvailableForPopover=function(){return Me(this.element.nativeElement)},Object.defineProperty(e.prototype,"getPopoverElement",{get:function(){return this.componentRef.location.nativeElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"popoverComponentInstance",{get:function(){return this.componentRef.instance},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validPosition",{get:function(){var e,t=this.getLeftoverContentAvailableForPopover(),n=t.freeDistanceToBottom,o=t.freeDistanceToTop,i=t.freeDistanceToLeft,r=t.freeDistanceToRight,a=Ee(this.componentRef.location.nativeElement),s=a.elementWidth,l=a.elementHeight,c=n-l,p=o-l,d=p>0,u=i-s>0,m=r-s>0;if(c>0&&"bottom"===this.popoverPosition?e="bottom":d&&"top"===this.popoverPosition?e="top":u&&"left"===this.popoverPosition?e="left":m&&"right"===this.popoverPosition&&(e="right"),!e){var h=[{position:"bottom",freeDistance:c},{position:"top",freeDistance:p}].filter((function(e){return e.freeDistance>0}));return 0===h.length?this.popoverPosition:h.sort((function(e,t){return t.freeDistance-e.freeDistance}))[0].position}return this.popoverPosition},enumerable:!0,configurable:!0}),e.ctorParameters=function(){return[{type:t.ElementRef},{type:t.Injector},{type:t.ComponentFactoryResolver},{type:t.ApplicationRef}]},pe([t.Input()],e.prototype,"sHelpPopover",void 0),pe([t.Input()],e.prototype,"closeButton",void 0),pe([t.Input()],e.prototype,"popoverIcon",void 0),pe([t.Input()],e.prototype,"popoverHeader",void 0),pe([t.Input()],e.prototype,"popoverFooter",void 0),pe([t.Input()],e.prototype,"popoverButtonText",void 0),pe([t.Input()],e.prototype,"popoverArrowPosition",void 0),pe([t.Input()],e.prototype,"popoverPosition",null),pe([t.Output()],e.prototype,"buttonClicked",void 0),pe([t.HostListener("click")],e.prototype,"doClick",null),e=pe([t.Directive({selector:"[sHelpPopover]",exportAs:"sHelpPopover"})],e)}(),Nl=function(){function e(){}return e=pe([t.NgModule({declarations:[Vl,Bl],imports:[r.CommonModule,Ot],exports:[Bl]})],e)}(),zl=function(){function e(){}return e=pe([t.NgModule({imports:[r.CommonModule],declarations:[Ko]})],e)}(),Ul=function(){function e(){this.treeData=[],this._selected=[],this.loading=!1,this.selectionMode="single",this.showCheckbox=!1,this.allExpanded=!1,this.selectedChange=new t.EventEmitter,this.treeNodeItemClicked=new t.EventEmitter,this.treeNodeEdit=new t.EventEmitter,this.nodeExpanded=new t.EventEmitter,this.nodeCollapsed=new t.EventEmitter}return Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(e){e||(e=[]),Array.isArray(e)||(e=[e]),this._selected=e},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.onChanges(e)},e.prototype.onTreeNodeItemClicked=function(e){var t=e.item;this.treeNodeItemClicked.emit(Hl(t)),this.toggleChecked(t)},e.prototype.onTreeNodeEdit=function(e){var t=e.revertAction,n=e.item,o=e.newValue,i=e.previousValue;this.treeNodeEdit.emit({revertAction:t,item:Hl(n),newValue:o,previousValue:i})},e.prototype.onNodeExpanded=function(e){this.nodeExpanded.emit(Hl(e))},e.prototype.onNodeCollapsed=function(e){this.nodeCollapsed.emit(Hl(e))},e.prototype.toggleChecked=function(e){var t=!e.checked;this.multiple||(jl(this.treeData).forEach((function(e){return e.checked=!1})),this.selected=[e]),e.checked=t,this.multiple&&this.checkTreeDataChildren(e),this.setSelected()},e.prototype.checkTreeDataChildren=function(e){var t=e.checked;e.children&&e.children.forEach((function(e){var n=jl(e.children||[]);e.checked=t,n.forEach((function(e){return e.checked=t}))}));var n=function(e){var t;if(null===(t=e.children)||void 0===t?void 0:t.length){e.children.forEach(n);var o=function(e){return{allChildrenChecked:e.children.every((function(e){return!0===e.checked})),someChildrenChecked:e.children.some((function(e){return!0===e.checked||null===e.checked})),allChildrenUnchecked:e.children.every((function(e){return!1===e.checked||void 0===e.checked}))}}(e),i=o.allChildrenChecked,r=o.someChildrenChecked,a=o.allChildrenUnchecked;i?e.checked=!0:r?e.checked=null:a&&(e.checked=!1)}};this.treeData.forEach(n)},e.prototype.setSelected=function(){var e=this.selectedElements;this.selected=ge(e),this.selectedChange.emit(e)},e.prototype.onChanges=function(e){var t=e.allExpanded,n=function(t){var n;if(e[t])return(!e[t].previousValue||0===e[t].previousValue.length)&&(null===(n=e[t].currentValue)||void 0===n?void 0:n.length)>0};(n("selected")&&this.syncSelectedChanges(),n("treeData"))&&(this.allExpanded&&this.expandAll());t&&(this.allExpanded?this.expandAll():this.collapseAll())},e.prototype.syncSelectedChanges=function(){var e=this,t=jl(this.treeData);this.selected.forEach((function(n){var o=t.find((function(e){return e.id===n.id}));o&&(o.checked=!0),o.children&&e.multiple&&o.children.forEach((function(t){t.checked=!0,e.selected.some((function(e){return e.id===t.id}))||e.selected.push(t)}))})),this.selectedElements.filter((function(t){return!e.selected.some((function(e){return e.id===t.id}))})).forEach((function(t){e.checkTreeDataChildren(t)})),this.setSelected()},e.prototype.collapseAll=function(){jl(this.treeData).forEach((function(e){e.isExpanded=!1}))},e.prototype.expandAll=function(){jl(this.treeData).forEach((function(e){e.isExpanded=!0}))},Object.defineProperty(e.prototype,"selectedElements",{get:function(){return jl(this.treeData).filter((function(e){return e.checked})).filter((function(e){var t;return!0!==e.leaf&&!(null===(t=e.children)||void 0===t?void 0:t.length)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiple",{get:function(){return"multiple"===this.selectionMode},enumerable:!0,configurable:!0}),pe([t.Input()],e.prototype,"treeData",void 0),pe([t.Input()],e.prototype,"selected",null),pe([t.Input()],e.prototype,"loading",void 0),pe([t.Input()],e.prototype,"selectionMode",void 0),pe([t.Input()],e.prototype,"showCheckbox",void 0),pe([t.Input()],e.prototype,"allExpanded",void 0),pe([t.Output()],e.prototype,"selectedChange",void 0),pe([t.Output()],e.prototype,"treeNodeItemClicked",void 0),pe([t.Output()],e.prototype,"treeNodeEdit",void 0),pe([t.Output()],e.prototype,"nodeExpanded",void 0),pe([t.Output()],e.prototype,"nodeCollapsed",void 0),e=pe([t.Component({selector:"s-tree",template:'<div class="tree" *sLoadingState="loading">\n <s-tree-node-item\n *ngFor="let item of treeData"\n [showCheckbox]="showCheckbox"\n [treeNodeItem]="item"\n (nodeExpanded)="onNodeExpanded($event)"\n (nodeCollapsed)="onNodeCollapsed($event)"\n (treeNodeEdit)="onTreeNodeEdit($event)"\n (treeNodeItemClicked)="onTreeNodeItemClicked($event)">\n </s-tree-node-item>\n</div>\n',styles:[".tree{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:5px;border:1px solid #ddd;border-radius:4px;padding:15px;margin:15px}"]})],e)}(),jl=function(e){var t=[];return function e(n){var o,i;try{for(var r=he(n),a=r.next();!a.done;a=r.next()){var s=a.value;t.push(s),s.children&&s.children.length&&e(s.children)}}catch(e){o={error:e}}finally{try{a&&!a.done&&(i=r.return)&&i.call(r)}finally{if(o)throw o.error}}}(e),t},Hl=function(e){var t=e.id,n=e.label,o=e.icon,i=e.checked,r=e.isExpanded,a=e.payload,s=e.editable,l=e.children,c={id:t,label:n,icon:o,checked:i,isExpanded:r,payload:a,editable:s,_children:null==l?void 0:l.map(Hl),get children(){return this._children},set children(t){this._children=t,e.children=t}};return Object.defineProperty(c,"_children",{enumerable:!1}),c},$l=function(){function e(e,n){this.cdr=e,this.translateService=n,this.ariaLevel=0,this.showCheckbox=!1,this.treeNodeItemClicked=new t.EventEmitter,this.treeNodeEdit=new t.EventEmitter,this.nodeExpanded=new t.EventEmitter,this.nodeCollapsed=new t.EventEmitter}return Object.defineProperty(e.prototype,"hasChildren",{get:function(){return this.treeNodeItem.children&&this.treeNodeItem.children.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"editable",{get:function(){var e;return(null===(e=this.treeNodeItem)||void 0===e?void 0:e.editable)||!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaLabel",{get:function(){return this.translateService.instant("platform.angular_components.select")+" "+this.treeNodeItem.label},enumerable:!0,configurable:!0}),e.prototype.expandNode=function(){this.hasChildren&&!this.treeNodeItem.isExpanded&&this.toggleExpanded(this.treeNodeItem)},e.prototype.collapseNode=function(){this.hasChildren&&this.treeNodeItem.isExpanded&&this.toggleExpanded(this.treeNodeItem)},e.prototype.onCheckboxEnter=function(e){var t=!0!==e.checked;e.checked=t,this.treeNodeItemClicked.emit({item:e,event:new KeyboardEvent("keydown",{key:"Enter"})})},e.prototype.handleTreeNodeItemClick=function(e,t){var n=t||this.treeNodeItem;this.treeNodeItemClicked.emit({item:n,event:e})},e.prototype.handleTreeNodeItemClicked=function(e){var t=e.event,n=e.item;n.isEditing||this.handleTreeNodeItemClick(t,n)},e.prototype.toggleExpanded=function(e){e.isExpanded=!e.isExpanded,e.isExpanded?this.nodeExpanded.emit(e):this.nodeCollapsed.emit(e)},e.prototype.toggleEditing=function(e){var t;if(e.stopPropagation(),this.treeNodeItem.isEditing=!this.treeNodeItem.isEditing,this.cdr.detectChanges(),this.treeNodeItem.isEditing){this.treeNodeItem.editNewValue=this.treeNodeItem.label;var n=null===(t=this.input)||void 0===t?void 0:t.nativeElement;null==n||n.focus()}},e.prototype.cancelEdit=function(e){e.stopPropagation(),this.treeNodeItem.isEditing=!1,this.treeNodeItem.editNewValue="",this.treeNodeItem.editPreviousValue="",this.cdr.detectChanges()},e.prototype.saveEdit=function(e){var t=this;if(e.stopPropagation(),this.treeNodeItem.isEditing=!1,this.treeNodeItem.editNewValue){this.treeNodeItem.editPreviousValue=this.treeNodeItem.label,this.treeNodeItem.label=this.treeNodeItem.editNewValue;this.treeNodeEdit.emit({revertAction:function(){t.treeNodeItem.label=t.treeNodeItem.editPreviousValue,t.treeNodeItem.isEditing=!1,t.cdr.detectChanges()},item:this.treeNodeItem,newValue:this.treeNodeItem.editNewValue,previousValue:this.treeNodeItem.editPreviousValue})}},e.prototype.treeNodeEditChildEvent=function(e){this.treeNodeEdit.emit(e)},e.ctorParameters=function(){return[{type:t.ChangeDetectorRef},{type:b.TranslateService}]},pe([t.Input()],e.prototype,"ariaLevel",void 0),pe([t.Input()],e.prototype,"showCheckbox",void 0),pe([t.Input()],e.prototype,"treeNodeItem",void 0),pe([t.Output()],e.prototype,"treeNodeItemClicked",void 0),pe([t.Output()],e.prototype,"treeNodeEdit",void 0),pe([t.Output()],e.prototype,"nodeExpanded",void 0),pe([t.Output()],e.prototype,"nodeCollapsed",void 0),pe([t.ViewChild("input",{read:t.ElementRef})],e.prototype,"input",void 0),e=pe([t.Component({selector:"s-tree-node-item",template:'<div\n *ngIf="treeNodeItem"\n class="tree-node-item"\n role="treeitem"\n [class.tree-node-item-selected]="treeNodeItem.checked"\n [class.selectable]="hasChildren"\n [attr.aria-expanded]="hasChildren ? treeNodeItem.isExpanded : null"\n [attr.aria-selected]="treeNodeItem.checked === true"\n [attr.aria-label]="treeNodeItem.label"\n [attr.aria-level]="ariaLevel"\n tabindex="0"\n (keydown.enter)="handleTreeNodeItemClick($event)"\n (keydown.arrowRight)="expandNode()"\n (keydown.arrowLeft)="collapseNode()"\n>\n <div class="arrow" *ngIf="hasChildren || treeNodeItem.leaf === true" (click)="toggleExpanded(treeNodeItem)">\n <i [class]="treeNodeItem.collapsedIcon || \'fas fa-chevron-right\'" *ngIf="!treeNodeItem.isExpanded"></i>\n <i [class]="treeNodeItem.expandedIcon || \'fas fa-chevron-down\'" *ngIf="treeNodeItem.isExpanded"></i>\n </div>\n\n <div class="tree-node-item-text" (click)="handleTreeNodeItemClick($event)">\n <span class="tree-node-item-text-icon" *ngIf="treeNodeItem.icon || treeNodeItem.isEditing">\n <i [class]="treeNodeItem.icon" *ngIf="treeNodeItem.icon && !treeNodeItem.isEditing"></i>\n <i class="fas fa-edit edit" *ngIf="treeNodeItem.isEditing" (click)="saveEdit($event)"></i>\n </span>\n\n <span class="tree-node-item-text-checkbox" *ngIf="showCheckbox && !treeNodeItem.isEditing">\n <input\n type="checkbox"\n [checked]="treeNodeItem.checked === true"\n [indeterminate]="treeNodeItem.checked === null"\n [attr.aria-checked]="treeNodeItem.checked === null ? \'mixed\' : treeNodeItem.checked"\n [attr.aria-label]="ariaLabel"\n role="checkbox"\n tabindex="0"\n (keydown.enter)="onCheckboxEnter(treeNodeItem)"\n />\n </span>\n\n <span class="tree-node-item-text-label">\n <ng-container *ngIf="treeNodeItem.isEditing">\n <input\n #input\n type="text"\n pInputText\n class="tree-node-item-text-input"\n [(ngModel)]="treeNodeItem.editNewValue"\n (keydown.enter)="saveEdit($event)"\n (keydown.escape)="cancelEdit($event)"\n (click)="$event.stopPropagation()"\n aria-label="Editar nome do item"\n aria-live="polite"\n />\n </ng-container>\n <ng-container *ngIf="!treeNodeItem.isEditing">\n {{ treeNodeItem.label }}\n </ng-container>\n </span>\n\n <span class="tree-node-item-text-editable" *ngIf="editable">\n <i class="fas fa-pencil-alt" (click)="toggleEditing($event)" aria-label="Editar item" tabindex="0"></i>\n </span>\n </div>\n</div>\n\n<div\n *ngIf="hasChildren && treeNodeItem.isExpanded"\n @fadeExpand\n class="child"\n role="group"\n @childrenAnimation\n>\n <s-tree-node-item\n *ngFor="let child of treeNodeItem.children"\n [showCheckbox]="showCheckbox"\n [treeNodeItem]="child"\n [ariaLevel]="ariaLevel + 1"\n (treeNodeItemClicked)="handleTreeNodeItemClicked($event)"\n (treeNodeEdit)="treeNodeEditChildEvent($event)"\n (nodeExpanded)="nodeExpanded.emit($event)"\n (nodeCollapsed)="nodeCollapsed.emit($event)"\n class="child-item"\n >\n </s-tree-node-item>\n</div>\n',animations:[n.trigger("fadeExpand",[n.transition(":enter",[n.style({height:"0px",opacity:0,overflow:"hidden"}),n.animate("200ms ease-out",n.style({height:"*",opacity:1}))]),n.transition(":leave",[n.animate("150ms ease-in",n.style({height:"0px",opacity:0}))])]),n.trigger("childrenAnimation",[n.transition(":enter",[n.query(":enter",[n.style({opacity:0,transform:"translateY(-10px)"}),n.stagger(60,[n.animate("200ms ease-out",n.style({opacity:1,transform:"translateY(0)"}))])],{optional:!0})])])],styles:['.tree-node-item{width:100%;display:-ms-flexbox;display:flex;cursor:pointer}.tree-node-item .arrow{padding:3px 9px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.tree-node-item-text{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;padding:3px 0;-ms-flex-align:center;align-items:center}.tree-node-item-text:hover{background:#f1f7f8}.tree-node-item-text-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding-right:9px}.tree-node-item-text-icon .edit{color:#428bca}.tree-node-item-text-label{color:#212533;font-family:"Open Sans";font-size:14px;font-style:normal;font-weight:400;line-height:150%;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1}.tree-node-item-text-checkbox{padding-right:9px;display:-ms-flexbox;display:flex}.tree-node-item-text-checkbox input[type=checkbox]{accent-color:#428bca;width:14px;height:14px}.tree-node-item-text-editable{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}.tree-node-item-text-editable i{padding:9px}.tree-node-item-text-input{-ms-flex:1;flex:1}.tree-node-item.selectable .tree-node-item-text-label{font-family:"Open Sans";font-size:14px;font-style:normal;font-weight:700}.tree-node-item.selectable *{cursor:pointer}.tree-node-item-selected .tree-node-item-text{background:#d5e8ec}.child{overflow:hidden;padding-left:2.2em;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:5px}.child-item:first-child{padding-top:5px}']})],e)}(),Gl=function(){function e(){}return e=pe([t.NgModule({declarations:[$l,Ul],imports:[r.CommonModule,a.FormsModule,z.InputTextModule,bi,b.TranslateModule],exports:[Ul]})],e)}();e.AccessibilityEventDirective=Wr,e.AccessibilityEventsModule=Yr,e.AccordionComponent=ye,e.AccordionModule=De,e.AccordionPanelComponent=be,e.AlertComponent=Pe,e.AlertModule=Ve,e.AngularComponentsModule=ln,e.AutocompleteField=oo,e.BadgeComponent=ze,e.BadgeModule=$e,e.BaseFieldComponent=Qn,e.BignumberField=io,e.BignumberInputDirective=ft,e.BignumberInputModule=gt,e.BooleanField=so,e.BooleanOptionsLabel=ao,e.BreadcrumbComponent=vt,e.BreadcrumbModule=bt,e.Breakpoints=Yn,e.ButtonComponent=xt,e.ButtonField=Lo,e.ButtonModule=Ot,e.CalendarField=co,e.CalendarLocaleOptions=Ge,e.CalendarMaskDirective=Rt,e.CalendarMaskModule=At,e.CardComponent=Vt,e.CardModule=Nt,e.ChatComponent=zt,e.ChatModule=jt,e.CheckDisabled=Es,e.CheckboxComponent=Ht,e.CheckboxModule=$t,e.ChipsComponent=Al,e.ChipsField=uo,e.ChipsModule=Pl,e.CodeEditorModule=zn,e.CollapseLinkComponent=Un,e.CollapseLinkModule=jn,e.ControlErrorsComponent=Hn,e.ControlErrorsModule=$n,e.CountryPhonePickerComponent=Xn,e.CountryPhonePickerModule=Jn,e.CurrencyField=yo,e.CurrencyService=dt,e.CustomFieldsComponent=Qr,e.CustomFieldsModule=ta,e.CustomFieldsService=Xr,e.DEFAULT_CALENDAR_LOCALE_OPTIONS=Ye,e.DEFAULT_LOCALE_OPTIONS=Ze,e.DEFAULT_NUMBER_LOCALE_OPTIONS=Ke,e.DebounceUtils=Ie,e.DoubleClickDirective=Wo,e.DynamicConfig=jo,e.DynamicFormComponent=Go,e.DynamicFormModule=Zr,e.EditableOverlayDirective=na,e.EditableOverlayModule=oa,e.EmptyStateComponent=Jo,e.EmptyStateModule=ei,e.ExportUtils=Kn,e.Field=no,e.Fieldset=zo,e.FieldsetComponent=qr,e.FieldsetModule=Kr,e.FileUploadComponent=ri,e.FileUploadModule=ai,e.FooterComponent=Tr,e.FormField=Ro,e.GanttComponent=ga,e.GanttModule=ba,e.GlobalSearchComponent=_a,e.GlobalSearchDropdownItemComponent=xa,e.GlobalSearchModule=ka,e.Grid=Vo,e.GridMenuComponent=Fa,e.GridMenuModule=Ra,e.HeaderComponent=Sr,e.HelpPopoverComponent=Vl,e.HelpPopoverDirective=Bl,e.HelpPopoverModule=Nl,e.HostProjectConfigsInjectionToken=sn,e.IAInsightComponent=Ma,e.IAInsightModule=La,e.ImageCropperComponent=Mr,e.ImageCropperModule=Lr,e.ImageCropperService=Fr,e.InfoSignDirective=je,e.InfoSignModule=He,e.InlineEditCalendarField=Da,e.InlineEditComponent=Ya,e.InlineEditField=Aa,e.InlineEditLookupField=Pa,e.InlineEditModule=Xa,e.InlineEditNumberField=Va,e.InlineEditTextAreaField=Ba,e.InlineEditTextAreaIAField=za,e.InlineEditTextField=Na,e.KanbanComponent=es,e.KanbanModule=is,e.LabelValueComponent=yl,e.LabelValueModule=xl,e.LoadingStateComponent=gi,e.LoadingStateDirective=vi,e.LoadingStateModule=bi,e.LocaleModule=ht,e.LocaleOptions=We,e.LocaleService=Je,e.LocalizedCurrencyPipe=nt,e.LocalizedCurrencyPipeOptions=tt,e.LocalizedDateImpurePipe=at,e.LocalizedDatePipe=rt,e.LocalizedNumberInputDirective=yi,e.LocalizedNumberInputModule=xi,e.LocalizedNumberPipe=st,e.LocalizedTimeImpurePipe=pt,e.LocalizedTimePipe=ct,e.LongPressDirective=qo,e.LookupComponent=Do,e.LookupField=xo,e.MaskFormatterModule=wi,e.MaskFormatterPipe=_i,e.MouseEventsModule=Yo,e.NavigationButtonComponent=rs,e.NavigationButtonModule=as,e.NavigationDirective=Li,e.NumberField=vo,e.NumberInputDirective=fo,e.NumberInputModule=go,e.NumberLocaleOptions=qe,e.NumericService=ut,e.ObjectCardComponent=ds,e.ObjectCardFieldComponent=cs,e.ObjectCardMainComponent=ps,e.ObjectCardModule=hs,e.Option=Ao,e.PanelComponent=fs,e.PanelModule=gs,e.PasswordField=_o,e.PasswordStrengthComponent=Ii,e.PasswordStrengthDirective=Si,e.PasswordStrengthModule=Ti,e.PicklistComponent=_l,e.PicklistModule=Rl,e.ProductHeaderComponent=vs,e.ProductHeaderModule=bs,e.ProfilePicturePickerComponent=Vr,e.ProfilePicturePickerModule=Br,e.ProgressBarComponent=ys,e.ProgressBarModule=ws,e.RadioButtonField=Co,e.RatingScaleComponent=Cs,e.RatingScaleModule=ks,e.RationButtonOption=wo,e.Row=Bo,e.RowTogllerDirective=Fi,e.SVGFactoryDirective=pi,e.SVGFactoryModule=di,e.Section=Uo,e.SelectButtonComponent=Is,e.SelectButtonModule=Ts,e.SelectField=ko,e.SelectOption=Io,e.SidebarComponent=Ls,e.SidebarModule=Fs,e.SlidePanelComponent=Rs,e.SlidePanelModule=As,e.SliderComponent=Ds,e.SliderModule=zs,e.SplitButtonComponent=js,e.SplitButtonModule=Hs,e.StatsCardComponent=$s,e.StatsCardModule=Gs,e.StepsComponent=Ys,e.StepsModule=Ks,e.Structure=No,e.StructureModule=Er,e.SwitchComponent=xe,e.SwitchModule=_e,e.TableFrozenPositionDirective=Oi,e.TableHeaderCheckboxComponent=Ei,e.TableHeaderCheckboxModule=Mi,e.TableModule=Ni,e.TaxCalculationLanguageConfigs=_n,e.TemplateDirective=Dt,e.TemplateModule=Bt,e.TextAreaComponent=Ur,e.TextAreaField=To,e.TextAreaIAComponent=Ka,e.TextAreaIAModule=Za,e.TextAreaModule=Gr,e.TextField=Mo,e.ThumbnailComponent=Ar,e.ThumbnailModule=Dr,e.ThumbnailsComponent=Zs,e.ThumbnailsModule=el,e.TieredMenuDirective=Lt,e.TieredMenuModule=Ft,e.TileComponent=tl,e.TileModule=nl,e.TimelineComponent=ol,e.TimelineItem=gl,e.TimelineModule=hl,e.ToastComponent=Ko,e.ToastModule=zl,e.ToastService=Zo,e.TokenListComponent=Pi,e.TokenListModule=Vi,e.TooltipModule=Ae,e.TreeComponent=Ul,e.TreeModule=Gl,e.WorkspaceSwitchComponent=vl,e.WorkspaceSwitchModule=bl,e.convertToMomentDateFormat=Zn,e.countries=Gn,e.deepClone=Le,e.fallback={"platform.angular_components.attachment":"anexo","platform.angular_components.watch":"assistir","platform.angular_components.view":"visualizar","platform.angular_components.listen":"ouvir","platform.angular_components.drag_your_photo_or":"Arraste sua foto ou","platform.angular_components.select_a_file":"selecione um arquivo","platform.angular_components.change_photo":"Alterar foto","platform.angular_components.remove_image":"Remover imagem","platform.angular_components.confirmation_remove_image":"Deseja remover a imagem? Não pode ser revertida.","platform.angular_components.strong":"Forte","platform.angular_components.medium":"Média","platform.angular_components.weak":"Fraca","platform.angular_components.invalid_value":"Valor inválido","platform.angular_components.insight_intro":"Olá! Aqui você encontrará insights valiosos a partir dos seus dados","platform.angular_components.insight_empty":"Ainda não há Insights na página","platform.angular_components.error_loading_insight_alt":"Não foi possível carregar o insight no momento. Por favor, verifique sua conexão com a internet e tente novamente.","platform.angular_components.loading_insight":"Carregando insight valioso...","platform.angular_components.insight_no_permission":"Olá! Você não possui acesso à página de insights. Entre em contato com o administrador para saber mais","platform.angular_components.count_items_in_target":"{{ count }} itens em {{ target }}","platform.angular_components.count_items_selected":"{{ count }} itens selecionados","platform.angular_components.january":"Janeiro","platform.angular_components.february":"Fevereiro","platform.angular_components.march":"Março","platform.angular_components.april":"Abril","platform.angular_components.may":"Maio","platform.angular_components.june":"Junho","platform.angular_components.july":"Julho","platform.angular_components.august":"Agosto","platform.angular_components.september":"Setembro","platform.angular_components.october":"Outubro","platform.angular_components.november":"Novembro","platform.angular_components.december":"Dezembro","platform.angular_components.january_short":"Jan","platform.angular_components.february_short":"Fev","platform.angular_components.march_short":"Mar","platform.angular_components.april_short":"Abr","platform.angular_components.may_short":"Mai","platform.angular_components.june_short":"Jun","platform.angular_components.july_short":"Jul","platform.angular_components.august_short":"Ago","platform.angular_components.september_short":"Set","platform.angular_components.october_short":"Out","platform.angular_components.november_short":"Nov","platform.angular_components.december_short":"Dez","platform.angular_components.sunday":"Domingo","platform.angular_components.monday":"Segunda-feira","platform.angular_components.tuesday":"Terça-feira","platform.angular_components.wednesday":"Quarta-feira","platform.angular_components.thursday":"Quinta-feira","platform.angular_components.friday":"Sexta-feira","platform.angular_components.saturday":"Sábado","platform.angular_components.sunday_short":"Dom","platform.angular_components.monday_short":"Seg","platform.angular_components.tuesday_short":"Ter","platform.angular_components.wednesday_short":"Qua","platform.angular_components.thursday_short":"Qui","platform.angular_components.friday_short":"Sex","platform.angular_components.saturday_short":"Sáb","platform.angular_components.sunday_min":"D","platform.angular_components.monday_min":"S","platform.angular_components.tuesday_min":"T","platform.angular_components.wednesday_min":"Q","platform.angular_components.thursday_min":"Q","platform.angular_components.friday_min":"S","platform.angular_components.saturday_min":"S","platform.angular_components.today":"Hoje","platform.angular_components.hour_format":"24","platform.angular_components.date_format":"dd/mm/yy","platform.angular_components.ia_text_generator":"Gerador de texto por IA","platform.angular_components.attach_files":"Anexar arquivos","platform.angular_components.add_information":"Adicionar informação","platform.angular_components.add":"Adicionar","platform.angular_components.edit":"Editar","platform.angular_components.remove":"Remover","platform.angular_components.save":"Salvar","platform.angular_components.file_attached_successfully":"Arquivo anexado com sucesso","platform.angular_components.loading_file":"Carregando arquivo","platform.angular_components.iassist_text_generator":"IAssist Gerador de texto","platform.angular_components.copied_to_clipboard":"Copiado para área de transferência","platform.angular_components.copy_field_content":"Copiar conteúdo preenchido","platform.angular_components.generate_text":"Gerar texto","platform.angular_components.context":"Contexto","platform.angular_components.filters":"Filtros","platform.angular_components.filter":"Filtrar","platform.angular_components.clear":"Limpar","platform.angular_components.cancel":"Cancelar","platform.angular_components.select":"Selecionar","platform.angular_components.not_informed":"Não informado","platform.angular_components.advanced_search":"Pesquisa avançada","platform.angular_components.no_records_found":"Nenhum registro encontrado","platform.angular_components.total_record":"{{ count }} registro encontrado","platform.angular_components.total_records":"{{ count }} registros encontrados","platform.angular_components.total_records_selected":"{0} registros selecionados","platform.angular_components.country_name_br":"Brasil","platform.angular_components.country_name_us":"Estados Unidos","platform.angular_components.country_name_co":"Colômbia","platform.angular_components.country_name_ar":"Argentina","platform.angular_components.country_name_cl":"Chile","platform.angular_components.country_name_py":"Paraguai","platform.angular_components.country_name_uy":"Uruguai","platform.angular_components.country_name_cn":"China","platform.angular_components.country_name_ca":"Canadá","platform.angular_components.country_name_as":"Samoa Americana","platform.angular_components.country_name_ai":"Anguilla","platform.angular_components.country_name_ag":"Antígua e Barbuda","platform.angular_components.country_name_bs":"Bahamas","platform.angular_components.country_name_bb":"Barbados","platform.angular_components.country_name_bm":"Bermuda","platform.angular_components.country_name_vg":"Ilhas Virgens Britânicas","platform.angular_components.country_name_ky":"Ilhas Cayman","platform.angular_components.country_name_dm":"Dominica","platform.angular_components.country_name_do":"República Dominicana","platform.angular_components.country_name_gd":"Granada","platform.angular_components.country_name_gu":"Guam","platform.angular_components.country_name_jm":"Jamaica","platform.angular_components.country_name_ms":"Montserrat","platform.angular_components.country_name_mp":"Ilhas Mariana do Norte","platform.angular_components.country_name_pr":"Porto Rico","platform.angular_components.country_name_kn":"Saint Kitts and Nevis","platform.angular_components.country_name_lc":"Saint Lucia","platform.angular_components.country_name_vc":"Saint Vincent and the Grenadines","platform.angular_components.country_name_tt":"Trinidad e Tobago","platform.angular_components.country_name_tc":"Ilhas Turcas e Caicos","platform.angular_components.country_name_fi":"Finlândia","platform.angular_components.country_name_rs":"Sérvia","platform.angular_components.country_name_zm":"Zâmbia","platform.angular_components.country_name_af":"Afghanistão","platform.angular_components.country_name_al":"Albânia","platform.angular_components.country_name_hr":"Croácia","platform.angular_components.country_name_ec":"Equador","platform.angular_components.country_name_et":"Etiópia","platform.angular_components.country_name_gh":"Gana","platform.angular_components.country_name_gr":"Grécia","platform.angular_components.country_name_ie":"Irlanda","platform.angular_components.country_name_it":"Itália","platform.angular_components.country_name_lr":"Libéria","platform.angular_components.country_name_na":"Namíbia","platform.angular_components.country_name_nz":"Nova Zelândia","platform.angular_components.country_name_sa":"Arábia Saudita","platform.angular_components.country_name_za":"África do Sul","platform.angular_components.country_name_lk":"Sri Lanka","platform.angular_components.country_name_sd":"Sudão","platform.angular_components.country_name_th":"Tailândia","platform.angular_components.country_name_ua":"Ucrânia","platform.angular_components.country_name_ae":"Emirados Árabes Unidos","platform.angular_components.country_name_va":"Vaticano","platform.angular_components.country_name_zw":"Zimbábue","platform.angular_components.country_name_dz":"Argélia","platform.angular_components.country_name_be":"Bélgica","platform.angular_components.country_name_yt":"Mayotte","platform.angular_components.country_name_bl":"Saint Barthelemy","platform.angular_components.country_name_mf":"Saint Martin","platform.angular_components.country_name_ad":"Andora","platform.angular_components.country_name_ao":"Angola","platform.angular_components.country_name_ba":"Bósnia e Herzegovina","platform.angular_components.country_name_bg":"Bulgária","platform.angular_components.country_name_kh":"Camboja","platform.angular_components.country_name_cz":"República Checa","platform.angular_components.country_name_gq":"Guiné Equatorial","platform.angular_components.country_name_gw":"Guiné-Bissau","platform.angular_components.country_name_li":"Liechtenstein","platform.angular_components.country_name_lu":"Luxemburgo","platform.angular_components.country_name_mk":"Macedónia","platform.angular_components.country_name_me":"Montenegro","platform.angular_components.country_name_pe":"Peru","platform.angular_components.country_name_pl":"Polónia","platform.angular_components.country_name_pt":"Portugal","platform.angular_components.country_name_si":"Slovenia","platform.angular_components.country_name_am":"Arménia","platform.angular_components.country_name_aw":"Aruba","platform.angular_components.country_name_bn":"Brunei","platform.angular_components.country_name_fj":"Fiji","platform.angular_components.country_name_gm":"Gâmbia","platform.angular_components.country_name_gy":"Guiana","platform.angular_components.country_name_is":"Islândia","platform.angular_components.country_name_fm":"Micronésia","platform.angular_components.country_name_nr":"Nauru","platform.angular_components.country_name_nu":"Niue","platform.angular_components.country_name_pw":"Palau","platform.angular_components.country_name_st":"Sao Tome e Principe","platform.angular_components.country_name_to":"Tonga","platform.angular_components.country_name_vu":"Vanuatu","platform.angular_components.country_name_fk":"Ilhas Falkland (Malvinas)","platform.angular_components.country_name_fo":"Ilhas Feroé","platform.angular_components.country_name_sh":"Saint Helena","platform.angular_components.country_name_au":"Austrália","platform.angular_components.country_name_cx":"Christmas Island","platform.angular_components.country_name_cc":"Ilhas Cocos (Keeling)","platform.angular_components.country_name_cd":"República Democrática do Congo","platform.angular_components.country_name_kg":"Quirguistão","platform.angular_components.country_name_ro":"Roménia","platform.angular_components.country_name_rw":"Ruanda","platform.angular_components.country_name_sk":"Slovakia","platform.angular_components.country_name_sy":"Syria","platform.angular_components.country_name_tw":"Taiwan","platform.angular_components.country_name_tz":"Tanzânia","platform.angular_components.country_name_ye":"Iémen (Iémen, Yemen)","platform.angular_components.country_name_at":"Áustria","platform.angular_components.country_name_ke":"Quénia (Kenya)","platform.angular_components.country_name_ug":"Uganda","platform.angular_components.country_name_az":"Azerbaijão","platform.angular_components.country_name_ch":"Suiça","platform.angular_components.country_name_vn":"Vietnã (Vietname)","platform.angular_components.country_name_bh":"Bahrein","platform.angular_components.country_name_cr":"Costa Rica","platform.angular_components.country_name_sv":"El Salvador","platform.angular_components.country_name_ee":"Estónia","platform.angular_components.country_name_sz":"Suazilândia","platform.angular_components.country_name_gt":"Guatemala","platform.angular_components.country_name_hk":"Hong Kong","platform.angular_components.country_name_ls":"Lesoto","platform.angular_components.country_name_mo":"Macau","platform.angular_components.country_name_mt":"Malta","platform.angular_components.country_name_mu":"Maurícia","platform.angular_components.country_name_mn":"Mongólia","platform.angular_components.country_name_ni":"Nicaragua","platform.angular_components.country_name_om":"Omã","platform.angular_components.country_name_pg":"Papua-Nova Guiné","platform.angular_components.country_name_qa":"Catar","platform.angular_components.country_name_sg":"Cingapura","platform.angular_components.country_name_tl":"Timor-Leste","platform.angular_components.country_name_bd":"Bangladesh","platform.angular_components.country_name_im":"Ilha de Man","platform.angular_components.country_name_by":"Bielorrússia","platform.angular_components.country_name_bz":"Belize","platform.angular_components.country_name_mv":"Maldivas","platform.angular_components.country_name_mh":"Ilhas Marshall","platform.angular_components.country_name_sr":"Suriname","platform.angular_components.country_name_bj":"Benim","platform.angular_components.country_name_bt":"Butão","platform.angular_components.country_name_bf":"Burkina Faso","platform.angular_components.country_name_bi":"Burundi","platform.angular_components.country_name_cf":"República Centro-Africana","platform.angular_components.country_name_td":"Chad","platform.angular_components.country_name_ci":"Costa do Marfim","platform.angular_components.country_name_dk":"Dinamarca","platform.angular_components.country_name_dj":"Djibouti","platform.angular_components.country_name_fr":"França","platform.angular_components.country_name_pf":"Polinésia Francesa","platform.angular_components.country_name_ga":"Gabão","platform.angular_components.country_name_ml":"Mali","platform.angular_components.country_name_mr":"Mauritânia","platform.angular_components.country_name_ne":"Níger","platform.angular_components.country_name_sm":"San Marino","platform.angular_components.country_name_tg":"Togo","platform.angular_components.country_name_bo":"Bolívia","platform.angular_components.country_name_gi":"Gibraltar","platform.angular_components.country_name_ki":"Kiribati","platform.angular_components.country_name_tv":"Tuvalu","platform.angular_components.country_name_bw":"Botswana","platform.angular_components.country_name_er":"Eritreia","platform.angular_components.country_name_lv":"Letônia","platform.angular_components.country_name_lb":"Líbano","platform.angular_components.country_name_tn":"Tunísia","platform.angular_components.country_name_cm":"Camarões","platform.angular_components.country_name_cv":"Cabo Verde","platform.angular_components.country_name_km":"Comores","platform.angular_components.country_name_pm":"Saint Pierre and Miquelon","platform.angular_components.country_name_cg":"República do Congo","platform.angular_components.country_name_mz":"Moçambique","platform.angular_components.country_name_mm":"Myanmar (Burma)","platform.angular_components.country_name_ck":"Ilhas Cook","platform.angular_components.country_name_cu":"Cuba","platform.angular_components.country_name_cy":"Chipre","platform.angular_components.country_name_eg":"Egito","platform.angular_components.country_name_ir":"Irã","platform.angular_components.country_name_iq":"Iraque","platform.angular_components.country_name_ng":"Nigéria","platform.angular_components.country_name_kp":"Coreia do Norte","platform.angular_components.country_name_ph":"Filipinas","platform.angular_components.country_name_ge":"Geórgia","platform.angular_components.country_name_gn":"Guiné","platform.angular_components.country_name_es":"Espanha","platform.angular_components.country_name_de":"Alemanha","platform.angular_components.country_name_gl":"Groelândia","platform.angular_components.country_name_wf":"Wallis e Futuna","platform.angular_components.country_name_ht":"Haiti","platform.angular_components.country_name_hn":"Honduras","platform.angular_components.country_name_pa":"Panamá","platform.angular_components.country_name_hu":"Hungria","platform.angular_components.country_name_in":"India","platform.angular_components.country_name_id":"Indonésia","platform.angular_components.country_name_il":"Israel","platform.angular_components.country_name_jp":"Japão","platform.angular_components.country_name_jo":"Jordânia","platform.angular_components.country_name_kz":"Cazaquistão","platform.angular_components.country_name_kw":"Kuwait","platform.angular_components.country_name_la":"Laos","platform.angular_components.country_name_ly":"Líbia","platform.angular_components.country_name_lt":"Lituânia","platform.angular_components.country_name_np":"Nepal","platform.angular_components.country_name_mg":"Madagáscar","platform.angular_components.country_name_mw":"Malawi","platform.angular_components.country_name_my":"Malásia","platform.angular_components.country_name_mx":"México","platform.angular_components.country_name_md":"Moldávia","platform.angular_components.country_name_mc":"Monaco","platform.angular_components.country_name_ma":"Marrocos","platform.angular_components.country_name_nl":"Países Baixos","platform.angular_components.country_name_nc":"Nova Caledônia","platform.angular_components.country_name_no":"Noruega","platform.angular_components.country_name_pk":"Paquistão","platform.angular_components.country_name_ru":"Rússia","platform.angular_components.country_name_ws":"Samoa","platform.angular_components.country_name_sb":"Ilhas Salomão","platform.angular_components.country_name_sn":"Senegal","platform.angular_components.country_name_sc":"Seychelles","platform.angular_components.country_name_sl":"Serra Leoa","platform.angular_components.country_name_so":"Somalia","platform.angular_components.country_name_kr":"Coreia do Sul","platform.angular_components.country_name_se":"Suécia","platform.angular_components.country_name_tj":"Tajiquistão","platform.angular_components.country_name_tk":"Tokelau","platform.angular_components.country_name_tr":"Turquia","platform.angular_components.country_name_tm":"Turquemenistão","platform.angular_components.country_name_uz":"Uzbequistão","platform.angular_components.country_name_ve":"Venezuela","platform.angular_components.date_modified_custom_blob":"Enviado às {{hour}}:{{minutes}} de {{day}}/{{month}}/{{fullYear}}","platform.angular_components.available-items":"Itens disponíveis","platform.angular_components.selected-items":"Itens selecionados","platform.angular_components.picklist-placeholder":"Busque pelo nome ou termo","platform.angular_components.add_all":"Adicionar todos","platform.angular_components.remove_all":"Remover todos","platform.angular_components.country_name_gb":"Reino Unido","platform.angular_components.insight_footer":"Conteúdo gerado por inteligência artificial. Sujeito a imprecisões.","platform.angular_components.text_area_speech_recognition_placeholder":"Preencha o campo com, pelo menos, uma frase","platform.angular_components.text_area_before_speech":"Grave ou ouça o texto clicando nos ícones","platform.angular_components.text_area_while_speech":"Clique novamente no ícone para finalizar","platform.angular_components.text_area_end_speech":"Gravação finalizada","platform.angular_components.no_microphone_permission":"O acesso ao microfone está bloqueado. Ative a permissão nas configurações do navegador para continuar usando este recurso."},e.getElementLeftoverContentAvailable=Me,e.getElementPositionInfo=Ee,e.isMousePositionOutsideOfElement=Te,e.isNullOrUndefined=Se,e.parseItensPickList=function(e,t){return e.map((function(e){return{data:e,disabled:!!t&&t(e)}}))},e.ɵ0=Cl,e.ɵ1=Il,e.ɵ2=Tl,e.ɵ3=Ml,e.ɵ4=Fl,e.ɵa=ke,e.ɵb=Re,e.ɵba=Di,e.ɵbb=Bi,e.ɵbc=Ir,e.ɵbd=yr,e.ɵbe=br,e.ɵbf=ar,e.ɵbg=zr,e.ɵbh=sr,e.ɵbi=kr,e.ɵbj=pr,e.ɵbk=wr,e.ɵbl=rr,e.ɵbm=xr,e.ɵbn=ir,e.ɵbo=_r,e.ɵbp=lr,e.ɵbq=Nr,e.ɵbr=Rr,e.ɵbs=dr,e.ɵbt=Cr,e.ɵbu=cr,e.ɵbv=$r,e.ɵbw=Hr,e.ɵbx=Xi,e.ɵby=jr,e.ɵbz=zi,e.ɵc=Ue,e.ɵca=Ui,e.ɵcb=ji,e.ɵcc=Hi,e.ɵcd=$i,e.ɵce=Gi,e.ɵcf=or,e.ɵcg=vr,e.ɵch=er,e.ɵci=qi,e.ɵcj=Wi,e.ɵck=Yi,e.ɵcl=nr,e.ɵcm=tr,e.ɵcn=Ki,e.ɵco=Zi,e.ɵcp=Qi,e.ɵcq=Ji,e.ɵcr=Xo,e.ɵcs=ur,e.ɵcu=bo,e.ɵcv=va,e.ɵcw=Ca,e.ɵcx=wa,e.ɵcy=Sa,e.ɵcz=Ia,e.ɵd=wt,e.ɵda=Ta,e.ɵdb=Oa,e.ɵdc=Ua,e.ɵdd=ja,e.ɵde=Ha,e.ɵdf=$a,e.ɵdg=qa,e.ɵdh=Ga,e.ɵdi=Wa,e.ɵdj=Ja,e.ɵdk=os,e.ɵdl=ts,e.ɵdm=ns,e.ɵdn=qe,e.ɵdo=ms,e.ɵdp=us,e.ɵdq=xs,e.ɵdr=_s,e.ɵds=Ss,e.ɵdt=Os,e.ɵdu=Xs,e.ɵdv=Js,e.ɵdw=Qs,e.ɵdx=rl,e.ɵdy=il,e.ɵdz=sl,e.ɵe=kt,e.ɵea=al,e.ɵeb=ml,e.ɵec=ll,e.ɵed=cl,e.ɵee=pl,e.ɵef=dl,e.ɵeg=ul,e.ɵeh=Dl,e.ɵei=$l,e.ɵf=Mt,e.ɵg=Et,e.ɵh=Tt,e.ɵi=Ct,e.ɵj=_t,e.ɵk=ot,e.ɵl=Qe,e.ɵm=et,e.ɵn=mt,e.ɵo=Ut,e.ɵp=cn,e.ɵq=Qt,e.ɵr=Jt,e.ɵs=Nn,e.ɵt=Wn,e.ɵu=Qo,e.ɵv=si,e.ɵw=li,e.ɵx=ui,e.ɵy=mi,e.ɵz=ti,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
17
17
|
//# sourceMappingURL=seniorsistemas-angular-components.umd.min.js.map
|