@qaecy/cue-ui 0.0.44 → 0.0.46
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/149.js +1 -0
- package/153.js +1 -1
- package/245.js +1 -0
- package/311.js +1 -1
- package/336.js +1 -1
- package/36.js +1 -1
- package/393.js +1 -1
- package/399.js +1 -1
- package/4.js +1 -1
- package/41.js +1 -1
- package/418.js +1 -1
- package/419.js +1 -1
- package/423.js +1 -1
- package/560.js +1 -1
- package/598.js +1 -1
- package/613.js +1 -1
- package/673.js +1 -1
- package/7.js +1 -1
- package/719.js +1 -1
- package/724.js +1 -1
- package/799.js +1 -0
- package/802.js +1 -1
- package/836.js +1 -1
- package/872.js +1 -1
- package/879.js +1 -1
- package/882.js +1 -1
- package/911.js +1 -1
- package/928.js +1 -1
- package/931.js +1 -0
- package/981.js +1 -1
- package/common.js +1 -1
- package/index.js +1 -1
- package/main.js +1 -1
- package/package.json +1 -1
- package/187.js +0 -1
- package/189.js +0 -1
- package/29.js +0 -1
- package/319.js +0 -1
- package/448.js +0 -1
- package/629.js +0 -1
- package/89.js +0 -1
- package/971.js +0 -1
package/149.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[149],{3319(ie,$,h){h.d($,{a:()=>V});var k=h(7705),p=h(29),b=h(5547);let V=(()=>{class P{icon=(0,k.hFB)(void 0);slot=(0,k.hFB)("before");static \u0275fac=function(y){return new(y||P)};static \u0275cmp=b.VBU({type:P,selectors:[["cue-button-icon"]],inputs:{icon:[1,"icon"],slot:[1,"slot"]},decls:1,vars:2,consts:[[3,"slot","name"]],template:function(y,U){1&y&&b.nrm(0,"cue-svg-icon",0),2&y&&b.Y8G("slot",U.slot())("name",U.icon())},dependencies:[p.A],encapsulation:2})}return P})()},5971(ie,$,h){h.d($,{$:()=>U});var k=h(9769),p=h(7705),b=h(2271),V=h(7089),P=h(2403),S=h(5547);const O=["buttonElement"],y=["*"];let U=(()=>{class m{variant=(0,p.hFB)("primary");size=(0,p.hFB)("m");tooltip=(0,p.hFB)("");disabled=(0,p.hFB)(!1);selected=(0,p.geq)(!1);toggleButton=(0,p.hFB)(!1);loading=(0,p.hFB)(!1);fitParentWidth=(0,p.hFB)(!1);noWrap=(0,p.hFB)(!0);buttonElement=p.ebz.required("buttonElement");getStyles=(0,b.EW)(()=>[`\n padding: 0 var(--cue-button-${this.size()}-padding-x);\n\n --focus-color: var(--cue-button-${this.variant()}-focus-color);\n --cue-button-border-color: var(--cue-button-${this.variant()}-border-color);\n color: var(--cue-button-${this.variant()}-foreground);\n --background-color: var(--cue-button-${this.variant()}-background);\n\n --cue-icon-width: var(--cue-button-${this.size()}-icon-width);\n --button-height: var(--cue-button-${this.size()}-height);\n --cue-button-border-radius: var(--cue-button-border-radius, 9999px);\n --button-label-padding-x: var(--cue-button-${this.size()}-label-padding-x);\n `,this.disabled()?`\n color: var(--cue-button-${this.variant()}-disabled-foreground);\n --cue-button-border-color: var(--cue-button-${this.variant()}-disabled-border-color);\n --background-color: var(--cue-button-${this.variant()}-disabled-background);\n `:""].join(""));handleClick(c){c.detail>0&&this.buttonElement().nativeElement.blur(),this.toggleButton()&&(c.stopPropagation(),this.selected.set(!this.selected()))}static \u0275fac=function(w){return new(w||m)};static \u0275cmp=S.VBU({type:m,selectors:[["cue-button"]],viewQuery:function(w,v){1&w&&S.wEZ(v.buttonElement,O,5),2&w&&S.NyB()},inputs:{variant:[1,"variant"],size:[1,"size"],tooltip:[1,"tooltip"],disabled:[1,"disabled"],selected:[1,"selected"],toggleButton:[1,"toggleButton"],loading:[1,"loading"],fitParentWidth:[1,"fitParentWidth"],noWrap:[1,"noWrap"]},outputs:{selected:"selectedChange"},ngContentSelectors:y,decls:3,vars:18,consts:[["buttonElement",""],["tooltipSize","small",3,"click","disabled","cueTooltip","tooltipPlacement","cuePulse"]],template:function(w,v){1&w&&(S.NAR(),S.j41(0,"button",1,0),S.bIt("click",function(K){return v.handleClick(K)}),S.SdG(2),S.k0s()),2&w&&(S.Aen(v.getStyles()),S.xc7("white-space",v.noWrap()?"nowrap":"normal")("flex-basis",v.noWrap()?null:"auto")("min-width",v.noWrap()?null:"fit-content"),S.AVh("selected",v.selected())("ghost","ghost"===v.variant())("fit-parent-width",v.fitParentWidth()),S.Y8G("disabled",v.disabled())("cueTooltip",v.tooltip())("tooltipPlacement","top")("cuePulse",v.loading()))},dependencies:[k.MD,V.d,P.V],styles:['[_nghost-%COMP%]:has(.fit-parent-width){display:contents}@keyframes _ngcontent-%COMP%_pulse-border{0%{box-shadow:0 0 0 0 var(--focus-color)}50%{box-shadow:0 0 0 8px transparent}to{box-shadow:0 0 0 0 transparent}}button[_ngcontent-%COMP%]{min-width:0;pulse-border-radius:var(--cue-button-border-radius);appearance:none;padding:0;font:inherit;border:var(--cue-button-border-width) var(--cue-button-border-style) var(--cue-button-border-color);display:flex;justify-content:space-between;align-items:center;gap:var(--cue-button-gap);min-height:var(--button-height);height:auto;background-color:var(--background-color);border-radius:var(--cue-button-border-radius, 9999px);margin:3px;position:relative}button[style*="white-space: normal"][_ngcontent-%COMP%]{border-radius:30px!important;padding:10px!important}button.fit-parent-width[_ngcontent-%COMP%]{width:100%;min-width:0;margin-inline:0}button[_ngcontent-%COMP%]:not(.fit-parent-width){min-width:fit-content;width:auto}button[_ngcontent-%COMP%]:focus{outline:none}button[_ngcontent-%COMP%]:hover:not(:disabled), button[_ngcontent-%COMP%]:focus-within:not(:disabled){outline:1px solid var(--focus-color);outline-offset:2px;cursor:pointer}button.selected[_ngcontent-%COMP%]{outline:1px solid currentColor!important;outline-offset:2px;margin:3px}button.ghost[_ngcontent-%COMP%]:not(.selected){border:none}']})}return m})()},2403(ie,$,h){h.d($,{V:()=>V});var k=h(7705),p=h(5547),b=h(5802);let V=(()=>{class P{el=(0,b.WQX)(p.aKT);renderer=(0,b.WQX)(p.sFG);cuePulse=(0,k.hFB)(!1);cuePulseColor=(0,k.hFB)("");cuePulseMode=(0,k.hFB)("border");activeClass="";constructor(){this.ensureGlobalStyles()}onPulseChanged=(0,b.QZP)(()=>{const O=this.cuePulse(),y=this.cuePulseColor(),U=this.cuePulseMode(),m=this.el.nativeElement;if(this.activeClass&&(this.renderer.removeClass(m,this.activeClass),this.activeClass=""),this.renderer.removeStyle(m,"--cue-pulse-color"),this.renderer.removeStyle(m,"border-radius"),O){const i="text"===U?"cue-pulse-text":"cue-pulse-border";this.renderer.addClass(m,i),this.activeClass=i,y&&this.renderer.setStyle(m,"--cue-pulse-color",y),"border"===U&&setTimeout(()=>{const c=m.firstElementChild;if(c){const w=getComputedStyle(c).borderRadius;w&&"0px"!==w&&this.renderer.setStyle(m,"border-radius",w)}})}});ngOnDestroy(){const O=this.el.nativeElement;this.activeClass&&this.renderer.removeClass(O,this.activeClass),this.renderer.removeStyle(O,"border-radius")}ensureGlobalStyles(){const O="cue-pulse-global-styles";if(document.getElementById(O))return;const y=document.createElement("style");y.id=O,y.textContent="\n @keyframes cue-pulse-border-anim {\n 0% {\n box-shadow: 0 0 0 0 var(--cue-pulse-color, currentColor);\n }\n 70% {\n box-shadow: 0 0 0 8px transparent;\n }\n 100% {\n box-shadow: 0 0 0 0 transparent;\n }\n }\n\n @keyframes cue-pulse-text-anim {\n 0%, 100% {\n opacity: 1;\n }\n 50% {\n opacity: 0.4;\n }\n }\n\n .cue-pulse-border {\n animation: cue-pulse-border-anim 1.5s infinite ease-in-out;\n }\n\n .cue-pulse-text {\n animation: cue-pulse-text-anim 1.5s infinite ease-in-out;\n }\n ",document.head.appendChild(y)}static \u0275fac=function(y){return new(y||P)};static \u0275dir=p.FsC({type:P,selectors:[["","cuePulse",""]],inputs:{cuePulse:[1,"cuePulse"],cuePulseColor:[1,"cuePulseColor"],cuePulseMode:[1,"cuePulseMode"]}})}return P})()},9769(ie,$,h){h.d($,{B3:()=>Le,MD:()=>un,T3:()=>ke});var m=h(7705),i=h(5547),c=h(5802);h(2271);let Le=(()=>{class e{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(t,n,r){this._ngEl=t,this._differs=n,this._renderer=r}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,n){const[r,o]=t.split("."),s=-1===r.indexOf("-")?void 0:i.czy.DashCase;null!=n?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${n}${o}`:n,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(t){t.forEachRemovedItem(n=>this._setStyle(n.key,null)),t.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),t.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static \u0275fac=function(n){return new(n||e)(i.rXU(i.aKT),i.rXU(m.MKu),i.rXU(i.sFG))};static \u0275dir=i.FsC({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return e})(),ke=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=(0,c.WQX)(c.zZn);constructor(t){this._viewContainerRef=t}ngOnChanges(t){if(this._shouldRecreateView(t)){const n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const r=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this._getInjector()})}}_getInjector(){return"outlet"===this.ngTemplateOutletInjector?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,n,r)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,n,r),get:(t,n,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,r)}})}static \u0275fac=function(n){return new(n||e)(i.rXU(i.c1b))};static \u0275dir=i.FsC({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[i.OA$]})}return e})(),un=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=i.$C({type:e});static \u0275inj=c.G2t({})}return e})()}}]);
|
package/153.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[153],{5661(L,S,a){"use strict";a.d(S,{pC:()=>B,pL:()=>X,rx:()=>V});var _=a(7705),l=a(5802),t=a(5547),M=a(7598),s=a(2245),b=a(5381),T=a(5971),h=a(3319),m=a(7089),R=a(1096),r=a(9769),i=a(6642),o=a(9352);const p=x=>[x],e=(x,O)=>({$implicit:x,index:O});function u(x,O){if(1&x){const v=t.RV6();t.j41(0,"cue-table-column-settings-modal",9),t.bIt("updateColumn",function(E){const A=l.eBV(v),N=t.XpG();return l.Njj(N.updateColumnDef(A.index,E))})("close",function(){l.eBV(v);const E=t.XpG();return l.Njj(E.handleModalClose())}),t.k0s()}if(2&x){const v=O,D=t.XpG();t.Y8G("columnDef",v.col)("columnIndex",v.index)("settings",D.settings())}}function C(x,O){1&x&&t.eu8(0)}function f(x,O){if(1&x&&t.DNE(0,C,1,0,"ng-container",13),2&x){const v=t.XpG(),D=v.$implicit,E=v.$index;t.Y8G("ngTemplateOutlet",O.templateRef)("ngTemplateOutletContext",t.l_i(2,e,D,E))}}function y(x,O){if(1&x){const v=t.RV6();t.j41(0,"cue-button",14),t.nI1(1,"transloco"),t.bIt("click",function(){l.eBV(v);const E=t.XpG(),A=E.$implicit,N=E.$index,w=t.XpG();return l.Njj(w.showColumnSettings(A,N))}),t.nrm(2,"cue-button-icon",15),t.k0s()}2&x&&t.Y8G("cueTooltip",t.bMT(1,1,"components.agGridColumnSelect.tooltipSettings"))}function G(x,O){if(1&x&&(t.j41(0,"div",8)(1,"cue-flexcontainer",10)(2,"cue-typography"),t.EFF(3),t.k0s(),t.nrm(4,"span",11),t.nVh(5,f,1,5,"ng-container"),t.nVh(6,y,3,3,"cue-button",12),t.k0s()()),2&x){let v;const D=O.$implicit,E=t.XpG();t.R7$(3),t.JRh(E.getLabel(D)),t.R7$(2),t.vxM((v=E.columnItemTpl())?5:-1,v),t.R7$(),t.vxM(E.settings().allowEditing?6:-1)}}function P(x,O){1&x&&t.eu8(0)}function I(x,O){1&x&&t.DNE(0,P,1,0,"ng-container",16),2&x&&t.Y8G("ngTemplateOutlet",O.templateRef)}function W(x,O){if(1&x&&(t.j41(0,"div",8)(1,"cue-typography"),t.EFF(2),t.k0s()()),2&x){const v=O.$implicit,D=t.XpG();t.R7$(2),t.JRh(D.getLabel(v))}}let B=(()=>{class x{templateRef=(0,l.WQX)(t.C4Q);static ngTemplateContextGuard(v,D){return!0}static \u0275fac=function(D){return new(D||x)};static \u0275dir=t.FsC({type:x,selectors:[["","cueColumnItem",""]]})}return x})(),V=(()=>{class x{templateRef=(0,l.WQX)(t.C4Q);static \u0275fac=function(D){return new(D||x)};static \u0275dir=t.FsC({type:x,selectors:[["","cueColumnListFooter",""]]})}return x})(),X=(()=>{class x{columnDefs=_.geq.required();columnDefsGross=(0,_.geq)([]);settings=(0,_.hFB)(new R.e);shown=(0,_.CGW)();columnItemTpl=(0,_.sbv)(B);columnListFooterTpl=(0,_.sbv)(V);shownColumns=(0,l.vPA)([]);hiddenColumns=(0,l.vPA)([]);displayColumnSettings=(0,l.vPA)(void 0);onNoColumnDefsGross=(0,l.QZP)(()=>{(!this.columnDefsGross()||0===this.columnDefsGross().length)&&this.columnDefsGross.set(this.columnDefs())});onColumnDefs=(0,l.QZP)(()=>{const v=this.columnDefs().map(E=>E.field),D=this.columnDefsGross().filter(E=>!v.includes(E.field));this.shownColumns.update(()=>[...this.columnDefs()]),this.hiddenColumns.update(()=>[...D])});drop(v){v.previousContainer===v.container?(0,M.HD)(v.container.data,v.previousIndex,v.currentIndex):(0,M.eg)(v.previousContainer.data,v.container.data,v.previousIndex,v.currentIndex);const D=this.shownColumns();this.columnDefs.update(()=>[...D]),this.shown.emit(D)}showColumnSettings(v,D){this.displayColumnSettings.set({col:v,index:D})}updateColumnDef(v,D){const E=this.columnDefs().map((A,N)=>N===v?{...A,...D}:A);this.columnDefs.set(E),this.shown.emit(E),this.shownColumns.set(E)}getLabel(v){return v.headerName||(0,i.x)(v.field)||"Unknown"}handleModalClose(){this.displayColumnSettings.set(void 0)}static \u0275fac=function(D){return new(D||x)};static \u0275cmp=t.VBU({type:x,selectors:[["cue-ag-grid-column-select"]],contentQueries:function(D,E,A){1&D&&t.C6U(A,E.columnItemTpl,B,5)(A,E.columnListFooterTpl,V,5),2&D&&t.NyB(2)},inputs:{columnDefs:[1,"columnDefs"],columnDefsGross:[1,"columnDefsGross"],settings:[1,"settings"]},outputs:{columnDefs:"columnDefsChange",columnDefsGross:"columnDefsGrossChange",shown:"shown"},decls:22,vars:19,consts:[["todoList","cdkDropList"],["doneList","cdkDropList"],[3,"columnDef","columnIndex","settings"],["size","xs","color","muted",2,"display","block","margin-bottom","8px"],["direction","row",2,"align-items","stretch","gap","12px"],["direction","column",1,"panel"],["size","l"],["cdkDropList","",1,"list",3,"cdkDropListDropped","cdkDropListData","cdkDropListConnectedTo"],["cdkDrag","",1,"box","draggable"],[3,"updateColumn","close","columnDef","columnIndex","settings"],["front","","justify","space-between","align","center",2,"width","100%"],[2,"display","flex","flex","1"],["variant","tertiary","size","s",3,"cueTooltip"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["variant","tertiary","size","s",3,"click","cueTooltip"],["icon","settings"],[4,"ngTemplateOutlet"]],template:function(D,E){if(1&D&&(t.nVh(0,u,1,3,"cue-table-column-settings-modal",2),t.j41(1,"cue-typography",3),t.EFF(2),t.nI1(3,"transloco"),t.k0s(),t.j41(4,"cue-flexcontainer",4)(5,"cue-flexcontainer",5)(6,"cue-typography",6),t.EFF(7),t.nI1(8,"transloco"),t.k0s(),t.j41(9,"div",7,0),t.bIt("cdkDropListDropped",function(N){return E.drop(N)}),t.Z7z(11,G,7,3,"div",8,t.Vm6),t.nVh(13,I,1,1,"ng-container"),t.k0s()(),t.j41(14,"cue-flexcontainer",5)(15,"cue-typography",6),t.EFF(16),t.nI1(17,"transloco"),t.k0s(),t.j41(18,"div",7,1),t.bIt("cdkDropListDropped",function(N){return E.drop(N)}),t.Z7z(20,W,3,1,"div",8,t.Vm6),t.k0s()()()),2&D){let A,N;const w=t.sdS(10),$=t.sdS(19);t.vxM((A=E.displayColumnSettings())?0:-1,A),t.R7$(2),t.JRh(t.bMT(3,9,"components.agGridColumnSelect.dragHint")),t.R7$(5),t.JRh(t.bMT(8,11,"components.agGridColumnSelect.titleShown"));const j=E.shownColumns();t.R7$(2),t.Y8G("cdkDropListData",j)("cdkDropListConnectedTo",t.eq3(15,p,$)),t.R7$(2),t.Dyx(j),t.R7$(2),t.vxM((N=E.columnListFooterTpl())?13:-1,N),t.R7$(3),t.JRh(t.bMT(17,13,"components.agGridColumnSelect.titleHidden"));const Y=E.hiddenColumns();t.R7$(2),t.Y8G("cdkDropListData",Y)("cdkDropListConnectedTo",t.eq3(17,p,w)),t.R7$(2),t.Dyx(Y)}},dependencies:[M.O7,M.T1,s.Typography,b.n,T.Button,h.ButtonIcon,m.d,R.T,r.T3,o.Kj],styles:[".panel[_ngcontent-%COMP%]{width:50%;display:flex;flex-direction:column;gap:8px}.list[_ngcontent-%COMP%]{border:1px solid var(--cue-card-border-color);min-height:60px;flex:1;background:var(--cue-main-background);border-radius:var(--cue-card-border-radius);overflow:hidden;display:block}.list.cdk-drop-list-receiving[_ngcontent-%COMP%]{border-color:var(--cue-primary);border-style:dashed}.box[_ngcontent-%COMP%]{padding:calc(var(--cue-card-padding-y) * .6) var(--cue-card-padding-x);border-bottom:1px solid var(--cue-card-border-color);color:var(--cue-main-foreground);display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;background:var(--cue-main-background);font-size:14px;transition:background .15s ease}.box[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--cue-main-foreground) 5%,var(--cue-main-background))}.draggable[_ngcontent-%COMP%]{cursor:grab}.draggable[_ngcontent-%COMP%]:active{cursor:grabbing}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:var(--cue-card-border-radius);border:1px solid var(--cue-card-border-color);background:var(--cue-main-background);color:var(--cue-main-foreground);padding:calc(var(--cue-card-padding-y) * .6) var(--cue-card-padding-x);font-size:14px;box-shadow:var(--cue-card-box-shadow)}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--cue-primary) 10%,var(--cue-main-background));border-bottom:1px dashed var(--cue-primary);min-height:40px;opacity:1}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.box[_ngcontent-%COMP%]:last-child{border-bottom:none}.list.cdk-drop-list-dragging[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}"],changeDetection:0})}return x})()},1096(L,S,a){"use strict";a.d(S,{e:()=>ue,T:()=>pe});var _=a(7705),l=a(2271),t=a(9352),M=a(2245),s=a(5381),b=a(2444),T=a(9695),h=a(5745),m=a(8957),R=a(5971),r=a(3319),i=a(5764),o=a(5802),p=a(7089),e=a(5547);let u=(()=>{class c{_value=(0,o.vPA)("");_options=(0,o.vPA)([]);_disabled=(0,o.vPA)(!1);_disabledTooltip=(0,o.vPA)("");_canChange=(0,o.vPA)(void 0);_optionValues=(0,l.EW)(()=>this._options().map(n=>n.value));_labelMap=(0,l.EW)(()=>Object.fromEntries(this._options().map(n=>[n.value,n.label])));_params;agInit(n){this._apply(n)}refresh(n){return this._apply(n),!0}onValueChange(n){if(void 0===n)return;const g=String(n),d=this._canChange();d&&!d(g)||(this._value.set(g),this._params.setValue?.(g))}_apply(n){this._params=n,this._value.set(n.value??"");const g="function"==typeof n.colDef?.cellRendererParams?n.colDef.cellRendererParams(n):n.colDef?.cellRendererParams??{};this._options.set(g.options??[]),this._disabled.set(g.disabled??!1),this._disabledTooltip.set(g.disabledTooltip??""),this._canChange.set(g.canChange??void 0)}static \u0275fac=function(g){return new(g||c)};static \u0275cmp=e.VBU({type:c,selectors:[["cue-select-cell-renderer"]],decls:1,vars:7,consts:[[3,"valueChange","options","labelMap","value","underline","menuPosition","disabled","cueTooltip"]],template:function(g,d){1&g&&(e.j41(0,"cue-select",0),e.bIt("valueChange",function(_e){return d.onValueChange(_e)}),e.k0s()),2&g&&e.Y8G("options",d._optionValues())("labelMap",d._labelMap())("value",d._value())("underline",!1)("menuPosition","bottomleft")("disabled",d._disabled())("cueTooltip",d._disabled()?d._disabledTooltip():"")},dependencies:[b.l,p.d],styles:["[_nghost-%COMP%]{display:block;width:100%;overflow:visible;--cue-input-value-color: currentColor}[_nghost-%COMP%] .select-trigger{font-size:var(--ag-font-size, inherit)}"],changeDetection:0})}return c})();var C=a(7374),f=a.n(C),y=a(4955),G=a.n(y),P=a(5164),I=a.n(P);a(9785),a(2269),a(1409),a(4230),a(2494),a(9531),f().extend(G()),f().extend(I());let v=(()=>{class c{_transloco=(0,o.WQX)(t.JO);transform(n,g="dateTime"){if(!n)return"";const d=this._transloco.getActiveLang(),F=f()(n).locale(d);return"timeAgo"===g?F.fromNow():F.format("date"===g?"LL":"shortDate"===g?"L":"LLL")}static \u0275fac=function(g){return new(g||c)};static \u0275pipe=e.EJ8({name:"cueLocalDate",type:c,pure:!0})}return c})(),D=(()=>{class c{_value=(0,o.vPA)("");_format=(0,o.vPA)("dateTime");agInit(n){this._apply(n)}refresh(n){return this._apply(n),!0}_apply(n){this._value.set(n.value??""),this._format.set(n.colDef?.cellRendererParams?.dateFormat??"dateTime")}static \u0275fac=function(g){return new(g||c)};static \u0275cmp=e.VBU({type:c,selectors:[["cue-date-cell-renderer"]],decls:2,vars:4,template:function(g,d){1&g&&(e.EFF(0),e.nI1(1,"cueLocalDate")),2&g&&e.JRh(e.i5U(1,1,d._value(),d._format()))},dependencies:[v],encapsulation:2,changeDetection:0})}return c})();const E=["*"];function A(c,k){1&c&&e.SdG(0)}let N=(()=>{class c{label=_.hFB.required();expanded=(0,_.geq)(!1);size=(0,_.hFB)("m");info=(0,_.hFB)("");expandToggled=(0,_.CGW)();toggle(){this.expanded.set(!this.expanded()),this.expandToggled.emit(this.expanded())}static \u0275fac=function(g){return new(g||c)};static \u0275cmp=e.VBU({type:c,selectors:[["cue-expansion-panel"]],inputs:{label:[1,"label"],expanded:[1,"expanded"],size:[1,"size"],info:[1,"info"]},outputs:{expanded:"expandedChange",expandToggled:"expandToggled"},ngContentSelectors:E,decls:8,vars:9,consts:[["direction","column","gap","xs",2,"width","100%"],["justify","space-between","align","center",1,"expansion-header",3,"click"],[3,"size","info"],["variant","ghost",3,"size"],["icon","arrow-dropdown"]],template:function(g,d){1&g&&(e.NAR(),e.j41(0,"cue-flexcontainer",0)(1,"cue-flexcontainer",1),e.bIt("click",function(){return d.toggle()}),e.j41(2,"cue-typography",2),e.EFF(3),e.k0s(),e.j41(4,"cue-button",3)(5,"span"),e.nrm(6,"cue-button-icon",4),e.k0s()()(),e.nVh(7,A,1,0),e.k0s()),2&g&&(e.R7$(2),e.Y8G("size",d.size())("info",d.info()),e.R7$(),e.JRh(d.label()),e.R7$(),e.Y8G("size",d.size()),e.R7$(),e.AVh("rotate",!0)("rotate-180",d.expanded()),e.R7$(2),e.vxM(d.expanded()?7:-1))},dependencies:[M.Typography,s.n,R.Button,r.ButtonIcon],styles:[".expansion-header[_ngcontent-%COMP%]{cursor:pointer}.expansion-content[_ngcontent-%COMP%]{overflow:hidden;transition:max-height .3s cubic-bezier(.4,0,.2,1)}.rotate[_ngcontent-%COMP%]{transition:transform .3s cubic-bezier(.4,0,.2,1);display:inline-block}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}"],changeDetection:0})}return c})();var w=a(6642),$=a(3183),j=a(5902),Y=a(7400);const U=["*",[["","cueDisplayContent",""]],[["","cueDataContent",""]],[["","cueBehaviorContent",""]],[["","cueExtraContent",""]]],z=["*","[cueDisplayContent]","[cueDataContent]","[cueBehaviorContent]","[cueExtraContent]"],H=(c,k)=>k.name;function K(c,k){if(1&c){const n=e.RV6();e.j41(0,"cue-input",7),e.nI1(1,"transloco"),e.bIt("valueChange",function(d){o.eBV(n);const F=e.XpG(2);return o.Njj(F.setLabel(d))}),e.k0s()}if(2&c){const n=e.XpG(2);e.Y8G("label",e.bMT(1,2,"components.agGridColumnSelect.labelLabel"))("value",n.label())}}function J(c,k){if(1&c){const n=e.RV6();e.j41(0,"cue-button",11),e.bIt("click",function(){const d=o.eBV(n).$implicit,F=e.XpG(3);return o.Njj(F.setTextAlign(d))}),e.nrm(1,"cue-button-icon",12),e.k0s()}if(2&c){const n=k.$implicit,g=e.XpG(3);e.Y8G("selected",g.textAlign()===n),e.R7$(),e.Y8G("icon",g.ALIGN_ICON[n])}}function Q(c,k){if(1&c&&(e.j41(0,"cue-typography",8),e.EFF(1),e.nI1(2,"transloco"),e.k0s(),e.j41(3,"cue-flexcontainer",9),e.Z7z(4,J,2,2,"cue-button",10,e.Vm6),e.k0s()),2&c){const n=e.XpG(2);e.R7$(),e.SpI(" ",e.bMT(2,1,"components.agGridColumnSelect.labelTextAlign")," "),e.R7$(3),e.Dyx(n.alignOptions)}}function Z(c,k){if(1&c){const n=e.RV6();e.j41(0,"cue-flexcontainer",6)(1,"cue-typography",13),e.nI1(2,"transloco"),e.EFF(3),e.nI1(4,"transloco"),e.k0s(),e.j41(5,"cue-input-switch",14),e.bIt("checkedChange",function(d){o.eBV(n);const F=e.XpG(2);return o.Njj(F.setMultiline(d))}),e.k0s()()}if(2&c){const n=e.XpG(2);e.R7$(),e.Y8G("cueTooltip",e.bMT(2,3,"components.agGridColumnSelect.tooltipMultiline")),e.R7$(2),e.JRh(e.bMT(4,5,"components.agGridColumnSelect.labelMultiline")),e.R7$(2),e.Y8G("checked",n.multiline())}}function q(c,k){if(1&c&&(e.j41(0,"cue-expansion-panel",2),e.nI1(1,"transloco"),e.j41(2,"cue-flexcontainer",4),e.nVh(3,K,2,4,"cue-input",5),e.nVh(4,Q,6,3),e.nVh(5,Z,6,7,"cue-flexcontainer",6),e.SdG(6,1),e.k0s()()),2&c){const n=e.XpG();e.Y8G("label",e.bMT(1,5,"components.agGridColumnSelect.groupDisplay"))("expanded",!0),e.R7$(3),e.vxM(n.settings().allowSettingLabel?3:-1),e.R7$(),e.vxM(n.settings().allowSettingTextAlign?4:-1),e.R7$(),e.vxM(n.settings().allowSettingMultiline?5:-1)}}function ee(c,k){if(1&c){const n=e.RV6();e.j41(0,"cue-select",16),e.nI1(1,"transloco"),e.bIt("valueChange",function(d){o.eBV(n);const F=e.XpG(2);return o.Njj(F.setFilterType(d))}),e.k0s()}if(2&c){const n=e.XpG(2);e.Y8G("label",e.bMT(1,4,"components.agGridColumnSelect.labelFilterType"))("value",n.filterType())("options",n.filterTypeOptions)("labelMap",n.filterTypeLabelMap())}}function te(c,k){if(1&c){const n=e.RV6();e.j41(0,"cue-input",7),e.nI1(1,"transloco"),e.bIt("valueChange",function(d){o.eBV(n);const F=e.XpG(2);return o.Njj(F.setEnumValues(d))}),e.k0s()}if(2&c){const n=e.XpG(2);e.Y8G("label",e.bMT(1,2,"components.agGridColumnSelect.labelEnumValues"))("value",n.enumValuesText())}}function ne(c,k){if(1&c){const n=e.RV6();e.j41(0,"cue-select",16),e.bIt("valueChange",function(d){o.eBV(n);const F=e.XpG(3);return o.Njj(F.setDateFormat(d))}),e.k0s()}if(2&c){const n=e.XpG(3);e.Y8G("label",n._labelDateFormat())("value",n.dateFormat())("options",n.dateFormatOptions)("labelMap",n.dateFormatLabelMap())}}function oe(c,k){if(1&c){const n=e.RV6();e.j41(0,"cue-select",16),e.bIt("valueChange",function(d){o.eBV(n);const F=e.XpG(2);return o.Njj(F.setDataType(d))}),e.k0s(),e.nVh(1,ne,1,4,"cue-select",15)}if(2&c){const n=e.XpG(2);e.Y8G("label",n._labelDataType())("value",n.dataType())("options",n.dataTypeOptions)("labelMap",n.dataTypeLabelMap()),e.R7$(),e.vxM("date"===n.dataType()?1:-1)}}function ae(c,k){if(1&c&&(e.j41(0,"cue-expansion-panel",3),e.nI1(1,"transloco"),e.j41(2,"cue-flexcontainer",4),e.nVh(3,ee,2,6,"cue-select",15),e.nVh(4,te,2,4,"cue-input",5),e.nVh(5,oe,2,5),e.SdG(6,2),e.k0s()()),2&c){const n=e.XpG();e.Y8G("label",e.bMT(1,4,"components.agGridColumnSelect.groupData")),e.R7$(3),e.vxM(n.settings().allowSettingFilterType?3:-1),e.R7$(),e.vxM(n.settings().allowSettingEnumValues?4:-1),e.R7$(),e.vxM(n.settings().allowSettingDataType?5:-1)}}function ie(c,k){if(1&c){const n=e.RV6();e.j41(0,"cue-expansion-panel",3),e.nI1(1,"transloco"),e.j41(2,"cue-flexcontainer",4)(3,"cue-flexcontainer",6)(4,"cue-typography",13),e.nI1(5,"transloco"),e.EFF(6),e.nI1(7,"transloco"),e.k0s(),e.j41(8,"cue-input-switch",14),e.bIt("checkedChange",function(d){o.eBV(n);const F=e.XpG();return o.Njj(F.setEditable(d))}),e.k0s()(),e.SdG(9,3),e.k0s()()}if(2&c){const n=e.XpG();e.Y8G("label",e.bMT(1,4,"components.agGridColumnSelect.groupBehavior")),e.R7$(4),e.Y8G("cueTooltip",e.bMT(5,6,"components.agGridColumnSelect.tooltipAllowEditing")),e.R7$(2),e.JRh(e.bMT(7,8,"components.agGridColumnSelect.labelEditable")),e.R7$(2),e.Y8G("checked",n.editable())}}function le(c,k){if(1&c&&(e.j41(0,"cue-expansion-panel",2)(1,"cue-flexcontainer",4),e.SdG(2,4),e.k0s()()),2&c){const n=e.XpG();e.Y8G("label",n.extraPanelLabel())("expanded",n.extraPanelExpanded())}}function re(c,k){if(1&c&&(e.j41(0,"cue-typography",19),e.EFF(1),e.nI1(2,"transloco"),e.j41(3,"strong"),e.EFF(4),e.k0s()()),2&c){const n=e.XpG(2);e.R7$(),e.SpI(" ",e.bMT(2,2,"components.agGridColumnSelect.labelPostProcessPreview"),": "),e.R7$(3),e.JRh(n.postProcessFormulaPreview())}}function se(c,k){if(1&c&&(e.j41(0,"cue-flexcontainer",21)(1,"cue-typography",22),e.EFF(2),e.k0s(),e.j41(3,"cue-typography",23),e.EFF(4),e.k0s()()),2&c){const n=k.$implicit;e.R7$(2),e.JRh(n.signature),e.R7$(2),e.JRh(n.description)}}function ce(c,k){if(1&c){const n=e.RV6();e.j41(0,"cue-expansion-panel",3),e.nI1(1,"transloco"),e.j41(2,"cue-flexcontainer",17)(3,"cue-input",18),e.nI1(4,"transloco"),e.nI1(5,"transloco"),e.nI1(6,"transloco"),e.bIt("valueChange",function(d){o.eBV(n);const F=e.XpG();return o.Njj(F.setPostProcessFormula(d))}),e.k0s(),e.nVh(7,re,5,4,"cue-typography",19),e.j41(8,"cue-expansion-panel",20),e.nI1(9,"transloco"),e.j41(10,"cue-flexcontainer",17),e.Z7z(11,se,5,2,"cue-flexcontainer",21,H),e.k0s()()()()}if(2&c){const n=e.XpG();e.Y8G("label",e.bMT(1,9,"components.agGridColumnSelect.groupPostProcess")),e.R7$(3),e.Y8G("label",e.bMT(4,11,"components.agGridColumnSelect.labelPostProcessFormula"))("info",e.bMT(5,13,"components.agGridColumnSelect.tooltipPostProcessFormula"))("placeholder",e.bMT(6,15,"components.agGridColumnSelect.placeholderPostProcessFormula"))("value",n.postProcessFormula())("error",n.postProcessFormulaError()??void 0),e.R7$(4),e.vxM(n.postProcessFormulaPreview()?7:-1),e.R7$(),e.Y8G("label",e.bMT(9,17,"components.agGridColumnSelect.labelPostProcessFunctions"))("expanded",!1),e.R7$(3),e.Dyx(n.formulaFunctions)}}class ue{allowEditing=!0;allowToggleEditable=!0;allowToggleHideOnHover=!0;allowSettingTextAlign=!0;allowSettingLabel=!0;allowSettingFilterType=!0;allowSettingMultiline=!0;allowSettingEnumValues=!0;allowSettingDataType=!1;allowSettingPostProcess=!0}const de={Text:j.U,Number:"agNumberColumnFilter",Date:"agDateColumnFilter",Select:$.A,None:!1,Auto:!0},me={agTextColumnFilter:"Text",agNumberColumnFilter:"Number",agDateColumnFilter:"Date",false:"None",true:"Auto"};let pe=(()=>{class c{columnDef=_.geq.required();columnIndex=(0,_.hFB)();updateColumn=(0,_.CGW)();close=(0,_.CGW)();settings=_.hFB.required();extraPanelLabel=(0,_.hFB)();extraPanelExpanded=(0,_.hFB)(!0);minWidth=(0,_.hFB)("600px");alignOptions=["left","center","right"];filterTypeOptions=["Text","Number","Date","Select","None","Auto"];dateFormatOptions=["dateTime","date","shortDate","timeAgo"];dataTypeOptions=["text","number","date","boolean"];_labelDataType=(0,t.Xx)("components.agGridColumnSelect.labelDataType");_labelDateFormat=(0,t.Xx)("components.agGridColumnSelect.labelDateFormat");_dtText=(0,t.Xx)("components.agGridColumnSelect.dataTypeText");_dtNumber=(0,t.Xx)("components.agGridColumnSelect.dataTypeNumber");_dtDate=(0,t.Xx)("components.agGridColumnSelect.dataTypeDate");_dtBoolean=(0,t.Xx)("components.agGridColumnSelect.dataTypeBoolean");_dfDateTime=(0,t.Xx)("components.agGridColumnSelect.dateFormatDateTime");_dfDate=(0,t.Xx)("components.agGridColumnSelect.dateFormatDate");_dfShortDate=(0,t.Xx)("components.agGridColumnSelect.dateFormatShortDate");_dfTimeAgo=(0,t.Xx)("components.agGridColumnSelect.dateFormatTimeAgo");dataTypeLabelMap=(0,l.EW)(()=>({text:this._dtText(),number:this._dtNumber(),date:this._dtDate(),boolean:this._dtBoolean()}));dateFormatLabelMap=(0,l.EW)(()=>({dateTime:this._dfDateTime(),date:this._dfDate(),shortDate:this._dfShortDate(),timeAgo:this._dfTimeAgo()}));_labelText=(0,t.Xx)("components.agGridColumnSelect.filterTypeText");_labelNumber=(0,t.Xx)("components.agGridColumnSelect.filterTypeNumber");_labelDate=(0,t.Xx)("components.agGridColumnSelect.filterTypeDate");_labelSelect=(0,t.Xx)("components.agGridColumnSelect.filterTypeSelect");_labelNone=(0,t.Xx)("components.agGridColumnSelect.filterTypeNone");_labelAuto=(0,t.Xx)("components.agGridColumnSelect.filterTypeAuto");filterTypeLabelMap=(0,l.EW)(()=>({Text:this._labelText(),Number:this._labelNumber(),Date:this._labelDate(),Select:this._labelSelect(),None:this._labelNone(),Auto:this._labelAuto()}));ALIGN_ICON={center:"text-align-center",left:"text-align-left",right:"text-align-right"};dataType=(0,l.EW)(()=>{const n=this.columnDef().cellRenderer;return n===D||"DateCellRenderer"===n?"date":"text"});dateFormat=(0,l.EW)(()=>{const n=this.columnDef().cellRenderer;return n===D||"DateCellRenderer"===n?this.columnDef().cellRendererParams?.dateFormat??"dateTime":"dateTime"});editable=(0,l.EW)(()=>!0===this.columnDef().editable);multiline=(0,l.EW)(()=>{const n=this.columnDef().cellRenderer;return n===i.l||"MultilineCellRenderer"===n});_ALIGN_TO_FLEX={left:"flex-start",right:"flex-end",center:"center"};_FLEX_TO_ALIGN={"flex-start":"left","flex-end":"right",center:"center",left:"left",right:"right"};textAlign=(0,l.uu)(()=>{const n=this.columnDef().cellStyle;return n?.textAlign||this._FLEX_TO_ALIGN[n?.justifyContent]||"left"});filterType=(0,l.EW)(()=>{const n=this.columnDef().filter;return n===$.A?"Select":n===j.U?"Text":me[n]||"Auto"});enumValuesText=(0,l.EW)(()=>(this.columnDef().cellRendererParams?.options??[]).map(g=>g.value).join(", "));label=(0,l.EW)(()=>this.columnDef().headerName||(0,w.x)(this.columnDef().field)||"Unknown");setEditable(n){const g=this.columnDef().cellRendererParams;this.updateColumn.emit(g?.options?.length?{editable:n,cellRendererParams:{...g,disabled:!n}}:{editable:n})}setMultiline(n){this.updateColumn.emit({cellRenderer:n?i.l:void 0,cellRendererParams:{lineHeight:"1.8"},autoHeight:!0})}setLabel(n){this.updateColumn.emit({headerName:n})}setTextAlign(n){const g=this.columnDef().cellStyle||{};this.updateColumn.emit({cellStyle:{...g,display:"flex",justifyContent:this._ALIGN_TO_FLEX[n]??n,textAlign:n},headerClass:`header-align-${n}`}),this.textAlign.set(n)}setFilterType(n){this.updateColumn.emit({filter:de[n]??!0})}setEnumValues(n){const g=n.split(",").map(d=>d.trim()).filter(d=>d.length>0);if(0===g.length)this.updateColumn.emit({cellRenderer:void 0,cellRendererParams:void 0});else{const d=g.map(F=>({value:F,label:F}));this.updateColumn.emit({cellRenderer:u,cellRendererParams:{options:d,disabled:!this.editable()}})}}setDateFormat(n){n&&this.updateColumn.emit({cellRenderer:D,cellRendererParams:{dateFormat:n}})}setDataType(n){this.updateColumn.emit("date"===n?{cellRenderer:D,cellRendererParams:{dateFormat:"dateTime"}}:{cellRenderer:void 0,cellRendererParams:void 0})}formulaFunctions=Y.Zv;postProcessFormula=(0,l.EW)(()=>(0,Y.PH)(this.columnDef().postProcess));postProcessFormulaError=(0,l.EW)(()=>(0,Y.NF)(this.postProcessFormula()));postProcessFormulaPreview=(0,l.EW)(()=>{const n=this.postProcessFormula();return!n||this.postProcessFormulaError()?"":(0,Y.w9)(n,"42")});setPostProcessFormula(n){const g=n.trim();this.updateColumn.emit({postProcess:g?{type:"formula",expression:g}:void 0})}static \u0275fac=function(g){return new(g||c)};static \u0275cmp=e.VBU({type:c,selectors:[["cue-table-column-settings-modal"]],inputs:{columnDef:[1,"columnDef"],columnIndex:[1,"columnIndex"],settings:[1,"settings"],extraPanelLabel:[1,"extraPanelLabel"],extraPanelExpanded:[1,"extraPanelExpanded"],minWidth:[1,"minWidth"]},outputs:{columnDef:"columnDefChange",updateColumn:"updateColumn",close:"close"},ngContentSelectors:z,decls:9,vars:9,consts:[[3,"close","label","minWidth"],["direction","column","gap","s",2,"overflow-y","auto","max-height","70vh","min-height","0","width","100%"],[3,"label","expanded"],[3,"label"],["direction","column"],[3,"label","value"],["direction","row","gap","l","justify","space-between","align","center"],[3,"valueChange","label","value"],["size","s"],["direction","row"],["variant","tertiary","size","s",3,"selected"],["variant","tertiary","size","s",3,"click","selected"],[3,"icon"],["size","m",3,"cueTooltip"],["size","m",3,"checkedChange","checked"],[3,"label","value","options","labelMap"],[3,"valueChange","label","value","options","labelMap"],["direction","column","gap","xs"],[3,"valueChange","label","info","placeholder","value","error"],["size","xs",2,"opacity","0.65"],["size","s",3,"label","expanded"],["direction","row","gap","s","align","start"],["size","xs",2,"font-family","monospace","min-width","210px","flex-shrink","0"],["size","xs",2,"opacity","0.7"]],template:function(g,d){1&g&&(e.NAR(U),e.j41(0,"cue-modal",0),e.nI1(1,"transloco"),e.bIt("close",function(){return d.close.emit()}),e.j41(2,"cue-flexcontainer",1),e.nVh(3,q,7,7,"cue-expansion-panel",2),e.nVh(4,ae,7,6,"cue-expansion-panel",3),e.nVh(5,ie,10,10,"cue-expansion-panel",3),e.nVh(6,le,3,2,"cue-expansion-panel",2),e.nVh(7,ce,13,19,"cue-expansion-panel",3),e.SdG(8),e.k0s()()),2&g&&(e.Y8G("label",e.bMT(1,7,"components.agGridColumnSelect.titleColumnSettings"))("minWidth",d.minWidth()),e.R7$(3),e.vxM(d.settings().allowSettingLabel||d.settings().allowSettingTextAlign||d.settings().allowSettingMultiline?3:-1),e.R7$(),e.vxM(d.settings().allowSettingFilterType||d.settings().allowSettingEnumValues||d.settings().allowSettingDataType?4:-1),e.R7$(),e.vxM(d.settings().allowToggleEditable?5:-1),e.R7$(),e.vxM(d.extraPanelLabel()?6:-1),e.R7$(),e.vxM(d.settings().allowSettingPostProcess?7:-1))},dependencies:[h.a,s.n,M.Typography,b.l,T.d,p.d,m.p,R.Button,r.ButtonIcon,N,t.Kj],encapsulation:2,changeDetection:0})}return c})()},6642(L,S,a){"use strict";function _(l){if(l)return l.replace(/([A-Z])/g," $1").replace(/^./,t=>t.toUpperCase())}a.d(S,{x:()=>_})},3183(L,S,a){"use strict";a.d(S,{A:()=>o});var _=a(7705),l=a(5802),t=a(9417),M=a(1359),s=a(8957),b=a(2245),T=a(5381),h=a(5547);const m=(p,e)=>e.value;function R(p,e){if(1&p){const u=h.RV6();h.j41(0,"cue-input",6),h.bIt("valueChange",function(f){l.eBV(u);const y=h.XpG();return y.searchText=f,l.Njj(y.onSearchChange())}),h.k0s()}if(2&p){const u=h.XpG();h.Y8G("value",u.searchText)}}function r(p,e){if(1&p){const u=h.RV6();h.j41(0,"cue-checkbox",7),h.bIt("checkedChange",function(f){const y=l.eBV(u).$implicit,G=h.XpG();return y.selected=f,l.Njj(G.onSelectionChange())}),h.k0s()}if(2&p){const u=e.$implicit;h.Y8G("label",u.value||"(blank)")("checked",u.selected)}}function i(p,e){1&p&&(h.j41(0,"cue-typography",5),h.EFF(1,"No results"),h.k0s())}let o=(()=>{class p{_cdr=(0,l.WQX)(_.gRc);_params;options=[];filteredOptions=[];searchText="";agInit(u){this._params=u}afterGuiAttached(u){this._refreshOptions(),this._cdr.markForCheck()}onNewRowsLoaded(){this._refreshOptions(),this._cdr.markForCheck()}isFilterActive(){return this.options.some(u=>!u.selected)}doesFilterPass(u){const C=new Set(this.options.filter(P=>P.selected).map(P=>P.value)),f=this._params.getValue(u.node),y=null==f?"":String(f);return"..."===y||"Loading..."===y||(""===y?C.has(""):y.split(", ").map(P=>P.trim()).some(P=>C.has(P)))}getModel(){return this.isFilterActive()?{selectedValues:this.options.filter(u=>u.selected).map(u=>u.value)}:null}setModel(u){if(u){const C=new Set(u.selectedValues);this.options.forEach(f=>f.selected=C.has(f.value))}else this.options.forEach(C=>C.selected=!0);this._applySearch(),this._cdr.markForCheck()}onSelectionChange(){this._params.filterChangedCallback(),this._cdr.markForCheck()}onSearchChange(){this._applySearch(),this._cdr.markForCheck()}get allSelected(){return this.options.length>0&&this.options.every(u=>u.selected)}toggleAll(u){this.options.forEach(C=>C.selected=u),this._applySearch(),this._params.filterChangedCallback(),this._cdr.markForCheck()}_refreshOptions(){const u=new Set;this._params.api.forEachNode(f=>{const y=this._params.getValue(f);if(null==y||""===y)u.add("");else{const G=String(y);if("..."===G||"Loading..."===G)return;const P=G.split(", ").map(I=>I.trim());for(const I of P)u.add(I)}});const C=new Map(this.options.map(f=>[f.value,f.selected]));this.options=Array.from(u).sort((f,y)=>f.localeCompare(y)).map(f=>({value:f,selected:C.get(f)??!0})),this._applySearch()}_applySearch(){const u=this.searchText.toLowerCase().trim();this.filteredOptions=u?this.options.filter(C=>C.value.toLowerCase().includes(u)):this.options}static \u0275fac=function(C){return new(C||p)};static \u0275cmp=h.VBU({type:p,selectors:[["cue-multi-select-filter"]],decls:7,vars:3,consts:[["direction","column","gap","s"],["placeholder","Search...","size","s",3,"value"],["size","s","label","Select all",3,"checkedChange","checked"],[1,"msf-list"],["size","s",3,"label","checked"],["size","s"],["placeholder","Search...","size","s",3,"valueChange","value"],["size","s",3,"checkedChange","label","checked"]],template:function(C,f){1&C&&(h.j41(0,"cue-flexcontainer",0),h.nVh(1,R,1,1,"cue-input",1),h.j41(2,"cue-checkbox",2),h.bIt("checkedChange",function(G){return f.toggleAll(G)}),h.k0s(),h.j41(3,"div",3),h.Z7z(4,r,1,2,"cue-checkbox",4,m),h.nVh(6,i,2,0,"cue-typography",5),h.k0s()()),2&C&&(h.R7$(),h.vxM(f.options.length>10?1:-1),h.R7$(),h.Y8G("checked",f.allSelected),h.R7$(2),h.Dyx(f.filteredOptions),h.R7$(2),h.vxM(0===f.filteredOptions.length?6:-1))},dependencies:[t.YN,M.S,s.p,b.Typography,T.n],styles:["[_nghost-%COMP%]{display:block;padding:var(--cue-card-padding-y) var(--cue-card-padding-x);min-width:200px;max-width:300px;box-sizing:border-box}.msf-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;max-height:200px;overflow-y:auto}"],changeDetection:0})}return p})()},5902(L,S,a){"use strict";a.d(S,{U:()=>i});var _=a(7705),l=a(5802),t=a(2271),M=a(9352),s=a(8957),b=a(2444),T=a(2245),h=a(5381),m=a(5547);function R(o,p){if(1&o){const e=m.RV6();m.j41(0,"cue-input",4),m.bIt("valueChange",function(C){l.eBV(e);const f=m.XpG();return l.Njj(f.onValueChange(C))}),m.k0s()}if(2&o){const e=m.XpG();m.Y8G("value",e.filterText)}}function r(o,p){if(1&o){const e=m.RV6();m.j41(0,"cue-typography",5),m.bIt("click",function(){l.eBV(e);const C=m.XpG();return l.Njj(C.clear())}),m.EFF(1,"Clear"),m.k0s()}}let i=(()=>{class o{_cdr=(0,l.WQX)(_.gRc);_params;filterText="";filterType="contains";filterTypeOptions=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"];_labelContains=(0,M.Xx)("components.agGridColumnSelect.textFilterContains");_labelNotContains=(0,M.Xx)("components.agGridColumnSelect.textFilterNotContains");_labelEquals=(0,M.Xx)("components.agGridColumnSelect.textFilterEquals");_labelNotEqual=(0,M.Xx)("components.agGridColumnSelect.textFilterNotEqual");_labelStartsWith=(0,M.Xx)("components.agGridColumnSelect.textFilterStartsWith");_labelEndsWith=(0,M.Xx)("components.agGridColumnSelect.textFilterEndsWith");_labelBlank=(0,M.Xx)("components.agGridColumnSelect.textFilterBlank");_labelNotBlank=(0,M.Xx)("components.agGridColumnSelect.textFilterNotBlank");filterTypeLabelMap=(0,t.EW)(()=>({contains:this._labelContains(),notContains:this._labelNotContains(),equals:this._labelEquals(),notEqual:this._labelNotEqual(),startsWith:this._labelStartsWith(),endsWith:this._labelEndsWith(),blank:this._labelBlank(),notBlank:this._labelNotBlank()}));showTextInput=(0,t.EW)(()=>!["blank","notBlank"].includes(this.filterType));agInit(e){this._params=e}afterGuiAttached(e){this._cdr.markForCheck()}isFilterActive(){return!!["blank","notBlank"].includes(this.filterType)||this.filterText.trim().length>0}doesFilterPass(e){const u=this._params.getValue(e.node),C=null==u?"":String(u),f=this.filterText.toLowerCase().trim(),y=C.toLowerCase();switch(this.filterType){case"contains":default:return y.includes(f);case"notContains":return!y.includes(f);case"equals":return y===f;case"notEqual":return y!==f;case"startsWith":return y.startsWith(f);case"endsWith":return y.endsWith(f);case"blank":return""===C;case"notBlank":return""!==C}}getModel(){return this.isFilterActive()?{filterType:"text",type:this.filterType,filter:this.filterText}:null}setModel(e){this.filterText=e?.filter??"",this.filterType=e?.type??"contains",this._cdr.markForCheck()}onValueChange(e){this.filterText=e,this._params.filterChangedCallback(),this._cdr.markForCheck()}onFilterTypeChange(e){this.filterType=String(e||"contains"),["blank","notBlank"].includes(this.filterType)&&(this.filterText=""),this._params.filterChangedCallback(),this._cdr.markForCheck()}clear(){this.filterText="",this.filterType="contains",this._params.filterChangedCallback(),this._cdr.markForCheck()}static \u0275fac=function(u){return new(u||o)};static \u0275cmp=m.VBU({type:o,selectors:[["cue-text-filter"]],decls:4,vars:5,consts:[["direction","column","gap","s"],["size","s",3,"valueChange","value","options","labelMap"],["placeholder","Filter...","size","s",3,"value"],["size","s",2,"cursor","pointer","text-align","right"],["placeholder","Filter...","size","s",3,"valueChange","value"],["size","s",2,"cursor","pointer","text-align","right",3,"click"]],template:function(u,C){1&u&&(m.j41(0,"cue-flexcontainer",0)(1,"cue-select",1),m.bIt("valueChange",function(y){return C.onFilterTypeChange(y)}),m.k0s(),m.nVh(2,R,1,1,"cue-input",2),m.nVh(3,r,2,0,"cue-typography",3),m.k0s()),2&u&&(m.R7$(),m.Y8G("value",C.filterType)("options",C.filterTypeOptions)("labelMap",C.filterTypeLabelMap()),m.R7$(),m.vxM(C.showTextInput()?2:-1),m.R7$(),m.vxM(C.filterText||"contains"!==C.filterType?3:-1))},dependencies:[s.p,b.l,T.Typography,h.n],styles:["[_nghost-%COMP%]{display:block;padding:var(--cue-card-padding-y) var(--cue-card-padding-x);min-width:180px;max-width:280px;box-sizing:border-box}"],changeDetection:0})}return o})()},5764(L,S,a){"use strict";a.d(S,{l:()=>l});var _=a(5547);let l=(()=>{class t{value="";lineHeight="1.5";agInit(s){this.value=s.value||"",this.lineHeight=s.colDef&&s.colDef.cellRendererParams&&s.colDef.cellRendererParams.lineHeight||s.context&&s.context.lineHeight||"1.5"}refresh(s){return this.value=s.value||"",!0}static \u0275fac=function(b){return new(b||t)};static \u0275cmp=_.VBU({type:t,selectors:[["cue-multiline-cell-renderer"]],decls:2,vars:3,consts:[[1,"multiline-cell"]],template:function(b,T){1&b&&(_.rj2(0,"div",0),_.EFF(1),_.eux()),2&b&&(_.xc7("line-height",T.lineHeight),_.R7$(),_.JRh(T.value))},styles:[".multiline-cell[_ngcontent-%COMP%]{white-space:pre-wrap;word-wrap:break-word;padding:4px 2px;text-align:left}"]})}return t})()},7717(L,S,a){"use strict";a.d(S,{R:()=>t});var _=a(7705),l=a(5547);let t=(()=>{class M{cueFlip=(0,_.geq)(!1);get flipped(){return this.cueFlip()}static \u0275fac=function(T){return new(T||M)};static \u0275dir=l.FsC({type:M,selectors:[["","cueFlip",""]],hostVars:2,hostBindings:function(T,h){2&T&&l.AVh("flipped",h.flipped)},inputs:{cueFlip:[1,"cueFlip"]},outputs:{cueFlip:"cueFlipChange"}})}return M})()},7400(L,S,a){"use strict";function l(r){return r&&"none"!==r.type?"round"===r.type?`ROUND(?val, ${r.decimals})`:"prefix"===r.type?`PREFIX(?val, "${r.value.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}")`:"suffix"===r.type?`SUFFIX(?val, "${r.value.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}")`:"formula"===r.type?r.expression:"":""}function t(r,i){if(!i||"none"===i.type)return r;if("round"===i.type){const o=Number(r);return isNaN(o)?r:o.toFixed(i.decimals)}return"prefix"===i.type?r&&`${i.value}${r}`:"suffix"===i.type?r&&`${r}${i.value}`:"formula"===i.type?s(i.expression,r):r}a.d(S,{NF:()=>b,PH:()=>l,Zv:()=>M,g4:()=>t,w9:()=>s});const M=[{name:"ROUND",signature:"ROUND(?val, decimals)",description:"Round to N decimal places"},{name:"FLOOR",signature:"FLOOR(?val)",description:"Round down to nearest integer"},{name:"CEIL",signature:"CEIL(?val)",description:"Round up to nearest integer"},{name:"ABS",signature:"ABS(?val)",description:"Absolute value"},{name:"SQRT",signature:"SQRT(?val)",description:"Square root"},{name:"MIN",signature:"MIN(a, b)",description:"Smaller of two numbers"},{name:"MAX",signature:"MAX(a, b)",description:"Larger of two numbers"},{name:"CONCAT",signature:"CONCAT(a, b, ...)",description:"Concatenate strings"},{name:"PREFIX",signature:'PREFIX(?val, "text")',description:"Prepend text (skipped if value is empty)"},{name:"SUFFIX",signature:'SUFFIX(?val, "text")',description:"Append text (skipped if value is empty)"},{name:"TRIM",signature:"TRIM(?val)",description:"Remove leading/trailing whitespace"},{name:"UPPER",signature:"UPPER(?val)",description:"Convert to uppercase"},{name:"LOWER",signature:"LOWER(?val)",description:"Convert to lowercase"},{name:"LEN",signature:"LEN(?val)",description:"String length"},{name:"REPLACE",signature:'REPLACE(?val, "a", "b")',description:'Replace all occurrences of "a" with "b"'},{name:"NUM",signature:"NUM(?val)",description:"Parse as number"},{name:"STR",signature:"STR(?val)",description:"Convert to string"},{name:"IF",signature:"IF(condition, then, else)",description:"Conditional expression"},{name:"AFTER_LAST",signature:'AFTER_LAST(?val, "sep")',description:"Substring after the last occurrence of sep"},{name:"AFTER_FIRST",signature:'AFTER_FIRST(?val, "sep")',description:"Substring after the first occurrence of sep"},{name:"BEFORE_LAST",signature:'BEFORE_LAST(?val, "sep")',description:"Substring before the last occurrence of sep"},{name:"BEFORE_FIRST",signature:'BEFORE_FIRST(?val, "sep")',description:"Substring before the first occurrence of sep"},{name:"SEGMENT",signature:'SEGMENT(?val, "sep", n)',description:"Get the Nth segment (0-based) when splitting ?val by sep"}];function s(r,i){if(!r||!r.trim())return i;try{const o=T(r),p=new h(o,{"?val":i}).parse();return null==p?"":String(p)}catch{return i}}function b(r){if(!r||!r.trim())return null;try{const i=T(r);return new h(i,{"?val":"42"}).parse(),null}catch(i){return i?.message??"Invalid formula"}}function T(r){const i=[];let o=0;for(;o<r.length;){if(/\s/.test(r[o])){o++;continue}if('"'===r[o]||"'"===r[o]){const e=r[o++];let u="";for(;o<r.length&&r[o]!==e;)u+="\\"===r[o]?r[++o]:r[o],o++;if(r[o]!==e)throw new Error("Unterminated string literal");o++,i.push({kind:"str",val:u});continue}const p=r.slice(o).match(/^(\d+\.?\d*|\.\d+)([eE][+-]?\d+)?/);if(p)i.push({kind:"num",val:p[0]}),o+=p[0].length;else{if("?"===r[o]){let e="?";for(o++;o<r.length&&/\w/.test(r[o]);)e+=r[o++];i.push({kind:"var",val:e});continue}if(/[A-Za-z_]/.test(r[o])){let e="";for(;o<r.length&&/\w/.test(r[o]);)e+=r[o++];i.push({kind:"ident",val:e.toUpperCase()});continue}if("**"!==r.slice(o,o+2)){if(!"+-*/%(),".includes(r[o]))throw new Error(`Unexpected character "${r[o]}" at position ${o}`);i.push({kind:"op",val:r[o++]})}else i.push({kind:"op",val:"**"}),o+=2}}return i.push({kind:"eof",val:""}),i}class h{tokens;vars;pos=0;constructor(i,o){this.tokens=i,this.vars=o}parse(){const i=this.expr();if("eof"!==this.tokens[this.pos].kind)throw new Error(`Unexpected token "${this.tokens[this.pos].val}" after expression`);return i}peek(){return this.tokens[this.pos]}next(){return this.tokens[this.pos++]}eat(i){if(this.peek().val!==i)throw new Error(`Expected "${i}", got "${this.peek().val||"end of input"}"`);this.pos++}expr(){return this.additive()}additive(){let i=this.multiplicative();for(;"op"===this.peek().kind&&("+"===this.peek().val||"-"===this.peek().val);){const o=this.next().val,p=this.multiplicative();i="+"===o?"string"==typeof i||"string"==typeof p?String(i)+String(p):i+p:m(i)-m(p)}return i}multiplicative(){let i=this.power();for(;"op"===this.peek().kind&&("*"===this.peek().val||"/"===this.peek().val||"%"===this.peek().val);){const o=this.next().val,p=this.power();if("*"===o)i=m(i)*m(p);else if("/"===o){const e=m(p);i=0!==e?m(i)/e:0}else i=m(i)%m(p)}return i}power(){const i=this.unary();return"op"===this.peek().kind&&"**"===this.peek().val?(this.next(),Math.pow(m(i),m(this.power()))):i}unary(){return"op"===this.peek().kind&&"-"===this.peek().val?(this.next(),-m(this.primary())):this.primary()}primary(){const i=this.peek();if("num"===i.kind)return this.next(),Number(i.val);if("str"===i.kind)return this.next(),i.val;if("var"===i.kind)return this.next(),this.vars[i.val]??"";if("ident"===i.kind)return this.funcCall();if("op"===i.kind&&"("===i.val){this.next();const o=this.expr();return this.eat(")"),o}throw new Error(`Unexpected token: "${i.val}"`)}funcCall(){const i=this.next().val;this.eat("(");const o=[];if(")"!==this.peek().val)for(o.push(this.expr());","===this.peek().val;)this.next(),o.push(this.expr());return this.eat(")"),function R(r,i){const o=p=>i[p]??"";switch(r){case"ROUND":return Number(m(o(0)).toFixed(Math.max(0,m(o(1)))));case"FLOOR":return Math.floor(m(o(0)));case"CEIL":return Math.ceil(m(o(0)));case"ABS":return Math.abs(m(o(0)));case"SQRT":return Math.sqrt(m(o(0)));case"MIN":return Math.min(...i.map(m));case"MAX":return Math.max(...i.map(m));case"CONCAT":return i.map(p=>String(p)).join("");case"TRIM":return String(o(0)).trim();case"UPPER":return String(o(0)).toUpperCase();case"LOWER":return String(o(0)).toLowerCase();case"LEN":return String(o(0)).length;case"REPLACE":return String(o(0)).replaceAll(String(o(1)),String(o(2)));case"NUM":return m(o(0));case"STR":return String(o(0));case"PREFIX":return String(o(0))?String(o(1))+String(o(0)):String(o(0));case"SUFFIX":return String(o(0))?String(o(0))+String(o(1)):String(o(0));case"IF":return 0!==m(o(0))&&""!==o(0)&&"false"!==o(0)?o(1):o(2);case"AFTER_LAST":{const p=String(o(0)),e=String(o(1)),u=p.lastIndexOf(e);return-1===u?p:p.slice(u+e.length)}case"AFTER_FIRST":{const p=String(o(0)),e=String(o(1)),u=p.indexOf(e);return-1===u?p:p.slice(u+e.length)}case"BEFORE_LAST":{const p=String(o(0)),e=String(o(1)),u=p.lastIndexOf(e);return-1===u?p:p.slice(0,u)}case"BEFORE_FIRST":{const p=String(o(0)),e=String(o(1)),u=p.indexOf(e);return-1===u?p:p.slice(0,u)}case"SEGMENT":return String(o(0)).split(String(o(1)))[m(o(2))]??"";default:throw new Error(`Unknown function: "${r}"`)}}(i,o)}}function m(r){if("number"==typeof r)return r;const i=Number(r);return isNaN(i)?0:i}},2269(L,S,a){L.exports=function(_){"use strict";var t=function l(s){return s&&"object"==typeof s&&"default"in s?s:{default:s}}(_),M={name:"da",weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n._man._tirs._ons._tors._fre._l\xf8r.".split("_"),weekdaysMin:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.".split("_"),weekStart:1,yearStart:4,ordinal:function(s){return s+"."},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"}};return t.default.locale(M,null,!0),M}(a(7374))},1409(L,S,a){L.exports=function(_){"use strict";var t=function l(T){return T&&"object"==typeof T&&"default"in T?T:{default:T}}(_),M={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function s(T,h,m){var R=M[m];return Array.isArray(R)&&(R=R[h?0:1]),R.replace("%d",T)}var b={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(T){return T+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s}};return t.default.locale(b,null,!0),b}(a(7374))},9785(L){L.exports=function(){"use strict";return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(S){var a=["th","st","nd","rd"],_=S%100;return"["+S+(a[(_-20)%10]||a[_]||a[0])+"]"}}}()},2494(L,S,a){L.exports=function(_){"use strict";var t=function l(s){return s&&"object"==typeof s&&"default"in s?s:{default:s}}(_),M={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},ordinal:function(s){return s+"\xba"}};return t.default.locale(M,null,!0),M}(a(7374))},4230(L,S,a){L.exports=function(_){"use strict";var t=function l(s){return s&&"object"==typeof s&&"default"in s?s:{default:s}}(_),M={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(s){return s+(1===s?"er":"")}};return t.default.locale(M,null,!0),M}(a(7374))},9531(L,S,a){L.exports=function(_){"use strict";var t=function l(s){return s&&"object"==typeof s&&"default"in s?s:{default:s}}(_),M={name:"it",weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(s){return s+"\xba"}};return t.default.locale(M,null,!0),M}(a(7374))},4955(L){L.exports=function(){"use strict";var S={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(a,_,l){var t=_.prototype,M=t.format;l.en.formats=S,t.format=function(s){void 0===s&&(s="YYYY-MM-DDTHH:mm:ssZ");var m,b=this.$locale().formats,T=(m=void 0===b?{}:b,s.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(R,r,i){var o=i&&i.toUpperCase();return r||m[i]||S[i]||m[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,e,u){return e||u.slice(1)})}));return M.call(this,T)}}}()},5164(L){L.exports=function(){"use strict";return function(S,a,_){S=S||{};var l=a.prototype,t={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function M(b,T,h,m){return l.fromToBase(b,T,h,m)}_.en.relativeTime=t,l.fromToBase=function(b,T,h,m,R){for(var r,i,o,p=h.$locale().relativeTime||t,e=S.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],u=e.length,C=0;C<u;C+=1){var f=e[C];f.d&&(r=m?_(b).diff(h,f.d,!0):h.diff(b,f.d,!0));var y=(S.rounding||Math.round)(Math.abs(r));if(o=r>0,y<=f.r||!f.r){y<=1&&C>0&&(f=e[C-1]);var G=p[f.l];R&&(y=R(""+y)),i="string"==typeof G?G.replace("%d",y):G(y,T,f.l,o);break}}if(T)return i;var P=o?p.future:p.past;return"function"==typeof P?P(i):P.replace("%s",i)},l.to=function(b,T){return M(b,T,this,!0)},l.from=function(b,T){return M(b,T,this)};var s=function(b){return b.$u?_.utc():_()};l.toNow=function(b){return this.to(s(this),b)},l.fromNow=function(b){return this.from(s(this),b)}}}()}}]);
|
|
1
|
+
(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[153],{5661(L,S,a){"use strict";a.d(S,{pC:()=>B,pL:()=>X,rx:()=>V});var _=a(7705),t=a(5547),d=a(5802),M=a(7598),r=a(2245),b=a(5381),T=a(5971),h=a(3319),m=a(7089),R=a(1096),l=a(9769),i=a(6642),o=a(9352);const p=x=>[x],e=(x,O)=>({$implicit:x,index:O});function c(x,O){if(1&x){const v=t.RV6();t.j41(0,"cue-table-column-settings-modal",9),t.bIt("updateColumn",function(E){const A=d.eBV(v),N=t.XpG();return d.Njj(N.updateColumnDef(A.index,E))})("close",function(){d.eBV(v);const E=t.XpG();return d.Njj(E.handleModalClose())}),t.k0s()}if(2&x){const v=O,D=t.XpG();t.Y8G("columnDef",v.col)("columnIndex",v.index)("settings",D.settings())}}function C(x,O){1&x&&t.eu8(0)}function f(x,O){if(1&x&&t.DNE(0,C,1,0,"ng-container",13),2&x){const v=t.XpG(),D=v.$implicit,E=v.$index;t.Y8G("ngTemplateOutlet",O.templateRef)("ngTemplateOutletContext",t.l_i(2,e,D,E))}}function y(x,O){if(1&x){const v=t.RV6();t.j41(0,"cue-button",14),t.nI1(1,"transloco"),t.bIt("click",function(){d.eBV(v);const E=t.XpG(),A=E.$implicit,N=E.$index,w=t.XpG();return d.Njj(w.showColumnSettings(A,N))}),t.nrm(2,"cue-button-icon",15),t.k0s()}2&x&&t.Y8G("cueTooltip",t.bMT(1,1,"components.agGridColumnSelect.tooltipSettings"))}function G(x,O){if(1&x&&(t.j41(0,"div",8)(1,"cue-flexcontainer",10)(2,"cue-typography"),t.EFF(3),t.k0s(),t.nrm(4,"span",11),t.nVh(5,f,1,5,"ng-container"),t.nVh(6,y,3,3,"cue-button",12),t.k0s()()),2&x){let v;const D=O.$implicit,E=t.XpG();t.R7$(3),t.JRh(E.getLabel(D)),t.R7$(2),t.vxM((v=E.columnItemTpl())?5:-1,v),t.R7$(),t.vxM(E.settings().allowEditing?6:-1)}}function P(x,O){1&x&&t.eu8(0)}function I(x,O){1&x&&t.DNE(0,P,1,0,"ng-container",16),2&x&&t.Y8G("ngTemplateOutlet",O.templateRef)}function W(x,O){if(1&x&&(t.j41(0,"div",8)(1,"cue-typography"),t.EFF(2),t.k0s()()),2&x){const v=O.$implicit,D=t.XpG();t.R7$(2),t.JRh(D.getLabel(v))}}let B=(()=>{class x{templateRef=(0,d.WQX)(t.C4Q);static ngTemplateContextGuard(v,D){return!0}static \u0275fac=function(D){return new(D||x)};static \u0275dir=t.FsC({type:x,selectors:[["","cueColumnItem",""]]})}return x})(),V=(()=>{class x{templateRef=(0,d.WQX)(t.C4Q);static \u0275fac=function(D){return new(D||x)};static \u0275dir=t.FsC({type:x,selectors:[["","cueColumnListFooter",""]]})}return x})(),X=(()=>{class x{columnDefs=_.geq.required();columnDefsGross=(0,_.geq)([]);settings=(0,_.hFB)(new R.e);shown=(0,_.CGW)();columnItemTpl=(0,_.sbv)(B);columnListFooterTpl=(0,_.sbv)(V);shownColumns=(0,d.vPA)([]);hiddenColumns=(0,d.vPA)([]);displayColumnSettings=(0,d.vPA)(void 0);onNoColumnDefsGross=(0,d.QZP)(()=>{(!this.columnDefsGross()||0===this.columnDefsGross().length)&&this.columnDefsGross.set(this.columnDefs())});onColumnDefs=(0,d.QZP)(()=>{const v=this.columnDefs().map(E=>E.field),D=this.columnDefsGross().filter(E=>!v.includes(E.field));this.shownColumns.update(()=>[...this.columnDefs()]),this.hiddenColumns.update(()=>[...D])});drop(v){v.previousContainer===v.container?(0,M.HD)(v.container.data,v.previousIndex,v.currentIndex):(0,M.eg)(v.previousContainer.data,v.container.data,v.previousIndex,v.currentIndex);const D=this.shownColumns();this.columnDefs.update(()=>[...D]),this.shown.emit(D)}showColumnSettings(v,D){this.displayColumnSettings.set({col:v,index:D})}updateColumnDef(v,D){const E=this.columnDefs().map((A,N)=>N===v?{...A,...D}:A);this.columnDefs.set(E),this.shown.emit(E),this.shownColumns.set(E)}getLabel(v){return v.headerName||(0,i.x)(v.field)||"Unknown"}handleModalClose(){this.displayColumnSettings.set(void 0)}static \u0275fac=function(D){return new(D||x)};static \u0275cmp=t.VBU({type:x,selectors:[["cue-ag-grid-column-select"]],contentQueries:function(D,E,A){1&D&&t.C6U(A,E.columnItemTpl,B,5)(A,E.columnListFooterTpl,V,5),2&D&&t.NyB(2)},inputs:{columnDefs:[1,"columnDefs"],columnDefsGross:[1,"columnDefsGross"],settings:[1,"settings"]},outputs:{columnDefs:"columnDefsChange",columnDefsGross:"columnDefsGrossChange",shown:"shown"},decls:22,vars:19,consts:[["todoList","cdkDropList"],["doneList","cdkDropList"],[3,"columnDef","columnIndex","settings"],["size","xs","color","muted",2,"display","block","margin-bottom","8px"],["direction","row",2,"align-items","stretch","gap","12px"],["direction","column",1,"panel"],["size","l"],["cdkDropList","",1,"list",3,"cdkDropListDropped","cdkDropListData","cdkDropListConnectedTo"],["cdkDrag","",1,"box","draggable"],[3,"updateColumn","close","columnDef","columnIndex","settings"],["front","","justify","space-between","align","center",2,"width","100%"],[2,"display","flex","flex","1"],["variant","tertiary","size","s",3,"cueTooltip"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["variant","tertiary","size","s",3,"click","cueTooltip"],["icon","settings"],[4,"ngTemplateOutlet"]],template:function(D,E){if(1&D&&(t.nVh(0,c,1,3,"cue-table-column-settings-modal",2),t.j41(1,"cue-typography",3),t.EFF(2),t.nI1(3,"transloco"),t.k0s(),t.j41(4,"cue-flexcontainer",4)(5,"cue-flexcontainer",5)(6,"cue-typography",6),t.EFF(7),t.nI1(8,"transloco"),t.k0s(),t.j41(9,"div",7,0),t.bIt("cdkDropListDropped",function(N){return E.drop(N)}),t.Z7z(11,G,7,3,"div",8,t.Vm6),t.nVh(13,I,1,1,"ng-container"),t.k0s()(),t.j41(14,"cue-flexcontainer",5)(15,"cue-typography",6),t.EFF(16),t.nI1(17,"transloco"),t.k0s(),t.j41(18,"div",7,1),t.bIt("cdkDropListDropped",function(N){return E.drop(N)}),t.Z7z(20,W,3,1,"div",8,t.Vm6),t.k0s()()()),2&D){let A,N;const w=t.sdS(10),$=t.sdS(19);t.vxM((A=E.displayColumnSettings())?0:-1,A),t.R7$(2),t.JRh(t.bMT(3,9,"components.agGridColumnSelect.dragHint")),t.R7$(5),t.JRh(t.bMT(8,11,"components.agGridColumnSelect.titleShown"));const j=E.shownColumns();t.R7$(2),t.Y8G("cdkDropListData",j)("cdkDropListConnectedTo",t.eq3(15,p,$)),t.R7$(2),t.Dyx(j),t.R7$(2),t.vxM((N=E.columnListFooterTpl())?13:-1,N),t.R7$(3),t.JRh(t.bMT(17,13,"components.agGridColumnSelect.titleHidden"));const Y=E.hiddenColumns();t.R7$(2),t.Y8G("cdkDropListData",Y)("cdkDropListConnectedTo",t.eq3(17,p,w)),t.R7$(2),t.Dyx(Y)}},dependencies:[M.O7,M.T1,r.Typography,b.n,T.$,h.a,m.d,R.T,l.T3,o.Kj],styles:[".panel[_ngcontent-%COMP%]{width:50%;display:flex;flex-direction:column;gap:8px}.list[_ngcontent-%COMP%]{border:1px solid var(--cue-card-border-color);min-height:60px;flex:1;background:var(--cue-main-background);border-radius:var(--cue-card-border-radius);overflow:hidden;display:block}.list.cdk-drop-list-receiving[_ngcontent-%COMP%]{border-color:var(--cue-primary);border-style:dashed}.box[_ngcontent-%COMP%]{padding:calc(var(--cue-card-padding-y) * .6) var(--cue-card-padding-x);border-bottom:1px solid var(--cue-card-border-color);color:var(--cue-main-foreground);display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;background:var(--cue-main-background);font-size:14px;transition:background .15s ease}.box[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--cue-main-foreground) 5%,var(--cue-main-background))}.draggable[_ngcontent-%COMP%]{cursor:grab}.draggable[_ngcontent-%COMP%]:active{cursor:grabbing}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:var(--cue-card-border-radius);border:1px solid var(--cue-card-border-color);background:var(--cue-main-background);color:var(--cue-main-foreground);padding:calc(var(--cue-card-padding-y) * .6) var(--cue-card-padding-x);font-size:14px;box-shadow:var(--cue-card-box-shadow)}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--cue-primary) 10%,var(--cue-main-background));border-bottom:1px dashed var(--cue-primary);min-height:40px;opacity:1}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.box[_ngcontent-%COMP%]:last-child{border-bottom:none}.list.cdk-drop-list-dragging[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}"],changeDetection:0})}return x})()},1096(L,S,a){"use strict";a.d(S,{e:()=>ue,T:()=>pe});var _=a(7705),t=a(2271),d=a(9352),M=a(2245),r=a(5381),b=a(2444),T=a(9695),h=a(5745),m=a(8957),R=a(5971),l=a(3319),i=a(5764),o=a(5802),p=a(7089),e=a(5547);let c=(()=>{class s{_value=(0,o.vPA)("");_options=(0,o.vPA)([]);_disabled=(0,o.vPA)(!1);_disabledTooltip=(0,o.vPA)("");_canChange=(0,o.vPA)(void 0);_optionValues=(0,t.EW)(()=>this._options().map(n=>n.value));_labelMap=(0,t.EW)(()=>Object.fromEntries(this._options().map(n=>[n.value,n.label])));_params;agInit(n){this._apply(n)}refresh(n){return this._apply(n),!0}onValueChange(n){if(void 0===n)return;const g=String(n),u=this._canChange();u&&!u(g)||(this._value.set(g),this._params.setValue?.(g))}_apply(n){this._params=n,this._value.set(n.value??"");const g="function"==typeof n.colDef?.cellRendererParams?n.colDef.cellRendererParams(n):n.colDef?.cellRendererParams??{};this._options.set(g.options??[]),this._disabled.set(g.disabled??!1),this._disabledTooltip.set(g.disabledTooltip??""),this._canChange.set(g.canChange??void 0)}static \u0275fac=function(g){return new(g||s)};static \u0275cmp=e.VBU({type:s,selectors:[["cue-select-cell-renderer"]],decls:1,vars:7,consts:[[3,"valueChange","options","labelMap","value","underline","menuPosition","disabled","cueTooltip"]],template:function(g,u){1&g&&(e.j41(0,"cue-select",0),e.bIt("valueChange",function(_e){return u.onValueChange(_e)}),e.k0s()),2&g&&e.Y8G("options",u._optionValues())("labelMap",u._labelMap())("value",u._value())("underline",!1)("menuPosition","bottomleft")("disabled",u._disabled())("cueTooltip",u._disabled()?u._disabledTooltip():"")},dependencies:[b.l,p.d],styles:["[_nghost-%COMP%]{display:block;width:100%;overflow:visible;--cue-input-value-color: currentColor}[_nghost-%COMP%] .select-trigger{font-size:var(--ag-font-size, inherit)}"],changeDetection:0})}return s})();var C=a(7374),f=a.n(C),y=a(4955),G=a.n(y),P=a(5164),I=a.n(P);a(9785),a(2269),a(1409),a(4230),a(2494),a(9531),f().extend(G()),f().extend(I());let v=(()=>{class s{_transloco=(0,o.WQX)(d.JO);transform(n,g="dateTime"){if(!n)return"";const u=this._transloco.getActiveLang(),F=f()(n).locale(u);return"timeAgo"===g?F.fromNow():F.format("date"===g?"LL":"shortDate"===g?"L":"LLL")}static \u0275fac=function(g){return new(g||s)};static \u0275pipe=e.EJ8({name:"cueLocalDate",type:s,pure:!0})}return s})(),D=(()=>{class s{_value=(0,o.vPA)("");_format=(0,o.vPA)("dateTime");agInit(n){this._apply(n)}refresh(n){return this._apply(n),!0}_apply(n){this._value.set(n.value??""),this._format.set(n.colDef?.cellRendererParams?.dateFormat??"dateTime")}static \u0275fac=function(g){return new(g||s)};static \u0275cmp=e.VBU({type:s,selectors:[["cue-date-cell-renderer"]],decls:2,vars:4,template:function(g,u){1&g&&(e.EFF(0),e.nI1(1,"cueLocalDate")),2&g&&e.JRh(e.i5U(1,1,u._value(),u._format()))},dependencies:[v],encapsulation:2,changeDetection:0})}return s})();const E=["*"];function A(s,k){1&s&&e.SdG(0)}let N=(()=>{class s{label=_.hFB.required();expanded=(0,_.geq)(!1);size=(0,_.hFB)("m");info=(0,_.hFB)("");expandToggled=(0,_.CGW)();toggle(){this.expanded.set(!this.expanded()),this.expandToggled.emit(this.expanded())}static \u0275fac=function(g){return new(g||s)};static \u0275cmp=e.VBU({type:s,selectors:[["cue-expansion-panel"]],inputs:{label:[1,"label"],expanded:[1,"expanded"],size:[1,"size"],info:[1,"info"]},outputs:{expanded:"expandedChange",expandToggled:"expandToggled"},ngContentSelectors:E,decls:8,vars:9,consts:[["direction","column","gap","xs",2,"width","100%"],["justify","space-between","align","center",1,"expansion-header",3,"click"],[3,"size","info"],["variant","ghost",3,"size"],["icon","arrow-dropdown"]],template:function(g,u){1&g&&(e.NAR(),e.j41(0,"cue-flexcontainer",0)(1,"cue-flexcontainer",1),e.bIt("click",function(){return u.toggle()}),e.j41(2,"cue-typography",2),e.EFF(3),e.k0s(),e.j41(4,"cue-button",3)(5,"span"),e.nrm(6,"cue-button-icon",4),e.k0s()()(),e.nVh(7,A,1,0),e.k0s()),2&g&&(e.R7$(2),e.Y8G("size",u.size())("info",u.info()),e.R7$(),e.JRh(u.label()),e.R7$(),e.Y8G("size",u.size()),e.R7$(),e.AVh("rotate",!0)("rotate-180",u.expanded()),e.R7$(2),e.vxM(u.expanded()?7:-1))},dependencies:[M.Typography,r.n,R.$,l.a],styles:[".expansion-header[_ngcontent-%COMP%]{cursor:pointer}.expansion-content[_ngcontent-%COMP%]{overflow:hidden;transition:max-height .3s cubic-bezier(.4,0,.2,1)}.rotate[_ngcontent-%COMP%]{transition:transform .3s cubic-bezier(.4,0,.2,1);display:inline-block}.rotate-180[_ngcontent-%COMP%]{transform:rotate(180deg)}"],changeDetection:0})}return s})();var w=a(6642),$=a(3183),j=a(5902),Y=a(7400);const U=["*",[["","cueDisplayContent",""]],[["","cueDataContent",""]],[["","cueBehaviorContent",""]],[["","cueExtraContent",""]]],z=["*","[cueDisplayContent]","[cueDataContent]","[cueBehaviorContent]","[cueExtraContent]"],H=(s,k)=>k.name;function K(s,k){if(1&s){const n=e.RV6();e.j41(0,"cue-input",7),e.nI1(1,"transloco"),e.bIt("valueChange",function(u){o.eBV(n);const F=e.XpG(2);return o.Njj(F.setLabel(u))}),e.k0s()}if(2&s){const n=e.XpG(2);e.Y8G("label",e.bMT(1,2,"components.agGridColumnSelect.labelLabel"))("value",n.label())}}function J(s,k){if(1&s){const n=e.RV6();e.j41(0,"cue-button",11),e.bIt("click",function(){const u=o.eBV(n).$implicit,F=e.XpG(3);return o.Njj(F.setTextAlign(u))}),e.nrm(1,"cue-button-icon",12),e.k0s()}if(2&s){const n=k.$implicit,g=e.XpG(3);e.Y8G("selected",g.textAlign()===n),e.R7$(),e.Y8G("icon",g.ALIGN_ICON[n])}}function Q(s,k){if(1&s&&(e.j41(0,"cue-typography",8),e.EFF(1),e.nI1(2,"transloco"),e.k0s(),e.j41(3,"cue-flexcontainer",9),e.Z7z(4,J,2,2,"cue-button",10,e.Vm6),e.k0s()),2&s){const n=e.XpG(2);e.R7$(),e.SpI(" ",e.bMT(2,1,"components.agGridColumnSelect.labelTextAlign")," "),e.R7$(3),e.Dyx(n.alignOptions)}}function Z(s,k){if(1&s){const n=e.RV6();e.j41(0,"cue-flexcontainer",6)(1,"cue-typography",13),e.nI1(2,"transloco"),e.EFF(3),e.nI1(4,"transloco"),e.k0s(),e.j41(5,"cue-input-switch",14),e.bIt("checkedChange",function(u){o.eBV(n);const F=e.XpG(2);return o.Njj(F.setMultiline(u))}),e.k0s()()}if(2&s){const n=e.XpG(2);e.R7$(),e.Y8G("cueTooltip",e.bMT(2,3,"components.agGridColumnSelect.tooltipMultiline")),e.R7$(2),e.JRh(e.bMT(4,5,"components.agGridColumnSelect.labelMultiline")),e.R7$(2),e.Y8G("checked",n.multiline())}}function q(s,k){if(1&s&&(e.j41(0,"cue-expansion-panel",2),e.nI1(1,"transloco"),e.j41(2,"cue-flexcontainer",4),e.nVh(3,K,2,4,"cue-input",5),e.nVh(4,Q,6,3),e.nVh(5,Z,6,7,"cue-flexcontainer",6),e.SdG(6,1),e.k0s()()),2&s){const n=e.XpG();e.Y8G("label",e.bMT(1,5,"components.agGridColumnSelect.groupDisplay"))("expanded",!0),e.R7$(3),e.vxM(n.settings().allowSettingLabel?3:-1),e.R7$(),e.vxM(n.settings().allowSettingTextAlign?4:-1),e.R7$(),e.vxM(n.settings().allowSettingMultiline?5:-1)}}function ee(s,k){if(1&s){const n=e.RV6();e.j41(0,"cue-select",16),e.nI1(1,"transloco"),e.bIt("valueChange",function(u){o.eBV(n);const F=e.XpG(2);return o.Njj(F.setFilterType(u))}),e.k0s()}if(2&s){const n=e.XpG(2);e.Y8G("label",e.bMT(1,4,"components.agGridColumnSelect.labelFilterType"))("value",n.filterType())("options",n.filterTypeOptions)("labelMap",n.filterTypeLabelMap())}}function te(s,k){if(1&s){const n=e.RV6();e.j41(0,"cue-input",7),e.nI1(1,"transloco"),e.bIt("valueChange",function(u){o.eBV(n);const F=e.XpG(2);return o.Njj(F.setEnumValues(u))}),e.k0s()}if(2&s){const n=e.XpG(2);e.Y8G("label",e.bMT(1,2,"components.agGridColumnSelect.labelEnumValues"))("value",n.enumValuesText())}}function ne(s,k){if(1&s){const n=e.RV6();e.j41(0,"cue-select",16),e.bIt("valueChange",function(u){o.eBV(n);const F=e.XpG(3);return o.Njj(F.setDateFormat(u))}),e.k0s()}if(2&s){const n=e.XpG(3);e.Y8G("label",n._labelDateFormat())("value",n.dateFormat())("options",n.dateFormatOptions)("labelMap",n.dateFormatLabelMap())}}function oe(s,k){if(1&s){const n=e.RV6();e.j41(0,"cue-select",16),e.bIt("valueChange",function(u){o.eBV(n);const F=e.XpG(2);return o.Njj(F.setDataType(u))}),e.k0s(),e.nVh(1,ne,1,4,"cue-select",15)}if(2&s){const n=e.XpG(2);e.Y8G("label",n._labelDataType())("value",n.dataType())("options",n.dataTypeOptions)("labelMap",n.dataTypeLabelMap()),e.R7$(),e.vxM("date"===n.dataType()?1:-1)}}function ae(s,k){if(1&s&&(e.j41(0,"cue-expansion-panel",3),e.nI1(1,"transloco"),e.j41(2,"cue-flexcontainer",4),e.nVh(3,ee,2,6,"cue-select",15),e.nVh(4,te,2,4,"cue-input",5),e.nVh(5,oe,2,5),e.SdG(6,2),e.k0s()()),2&s){const n=e.XpG();e.Y8G("label",e.bMT(1,4,"components.agGridColumnSelect.groupData")),e.R7$(3),e.vxM(n.settings().allowSettingFilterType?3:-1),e.R7$(),e.vxM(n.settings().allowSettingEnumValues?4:-1),e.R7$(),e.vxM(n.settings().allowSettingDataType?5:-1)}}function ie(s,k){if(1&s){const n=e.RV6();e.j41(0,"cue-expansion-panel",3),e.nI1(1,"transloco"),e.j41(2,"cue-flexcontainer",4)(3,"cue-flexcontainer",6)(4,"cue-typography",13),e.nI1(5,"transloco"),e.EFF(6),e.nI1(7,"transloco"),e.k0s(),e.j41(8,"cue-input-switch",14),e.bIt("checkedChange",function(u){o.eBV(n);const F=e.XpG();return o.Njj(F.setEditable(u))}),e.k0s()(),e.SdG(9,3),e.k0s()()}if(2&s){const n=e.XpG();e.Y8G("label",e.bMT(1,4,"components.agGridColumnSelect.groupBehavior")),e.R7$(4),e.Y8G("cueTooltip",e.bMT(5,6,"components.agGridColumnSelect.tooltipAllowEditing")),e.R7$(2),e.JRh(e.bMT(7,8,"components.agGridColumnSelect.labelEditable")),e.R7$(2),e.Y8G("checked",n.editable())}}function le(s,k){if(1&s&&(e.j41(0,"cue-expansion-panel",2)(1,"cue-flexcontainer",4),e.SdG(2,4),e.k0s()()),2&s){const n=e.XpG();e.Y8G("label",n.extraPanelLabel())("expanded",n.extraPanelExpanded())}}function re(s,k){if(1&s&&(e.j41(0,"cue-typography",19),e.EFF(1),e.nI1(2,"transloco"),e.j41(3,"strong"),e.EFF(4),e.k0s()()),2&s){const n=e.XpG(2);e.R7$(),e.SpI(" ",e.bMT(2,2,"components.agGridColumnSelect.labelPostProcessPreview"),": "),e.R7$(3),e.JRh(n.postProcessFormulaPreview())}}function se(s,k){if(1&s&&(e.j41(0,"cue-flexcontainer",21)(1,"cue-typography",22),e.EFF(2),e.k0s(),e.j41(3,"cue-typography",23),e.EFF(4),e.k0s()()),2&s){const n=k.$implicit;e.R7$(2),e.JRh(n.signature),e.R7$(2),e.JRh(n.description)}}function ce(s,k){if(1&s){const n=e.RV6();e.j41(0,"cue-expansion-panel",3),e.nI1(1,"transloco"),e.j41(2,"cue-flexcontainer",17)(3,"cue-input",18),e.nI1(4,"transloco"),e.nI1(5,"transloco"),e.nI1(6,"transloco"),e.bIt("valueChange",function(u){o.eBV(n);const F=e.XpG();return o.Njj(F.setPostProcessFormula(u))}),e.k0s(),e.nVh(7,re,5,4,"cue-typography",19),e.j41(8,"cue-expansion-panel",20),e.nI1(9,"transloco"),e.j41(10,"cue-flexcontainer",17),e.Z7z(11,se,5,2,"cue-flexcontainer",21,H),e.k0s()()()()}if(2&s){const n=e.XpG();e.Y8G("label",e.bMT(1,9,"components.agGridColumnSelect.groupPostProcess")),e.R7$(3),e.Y8G("label",e.bMT(4,11,"components.agGridColumnSelect.labelPostProcessFormula"))("info",e.bMT(5,13,"components.agGridColumnSelect.tooltipPostProcessFormula"))("placeholder",e.bMT(6,15,"components.agGridColumnSelect.placeholderPostProcessFormula"))("value",n.postProcessFormula())("error",n.postProcessFormulaError()??void 0),e.R7$(4),e.vxM(n.postProcessFormulaPreview()?7:-1),e.R7$(),e.Y8G("label",e.bMT(9,17,"components.agGridColumnSelect.labelPostProcessFunctions"))("expanded",!1),e.R7$(3),e.Dyx(n.formulaFunctions)}}class ue{allowEditing=!0;allowToggleEditable=!0;allowToggleHideOnHover=!0;allowSettingTextAlign=!0;allowSettingLabel=!0;allowSettingFilterType=!0;allowSettingMultiline=!0;allowSettingEnumValues=!0;allowSettingDataType=!1;allowSettingPostProcess=!0}const de={Text:j.U,Number:"agNumberColumnFilter",Date:"agDateColumnFilter",Select:$.A,None:!1,Auto:!0},me={agTextColumnFilter:"Text",agNumberColumnFilter:"Number",agDateColumnFilter:"Date",false:"None",true:"Auto"};let pe=(()=>{class s{columnDef=_.geq.required();columnIndex=(0,_.hFB)();updateColumn=(0,_.CGW)();close=(0,_.CGW)();settings=_.hFB.required();extraPanelLabel=(0,_.hFB)();extraPanelExpanded=(0,_.hFB)(!0);minWidth=(0,_.hFB)("600px");alignOptions=["left","center","right"];filterTypeOptions=["Text","Number","Date","Select","None","Auto"];dateFormatOptions=["dateTime","date","shortDate","timeAgo"];dataTypeOptions=["text","number","date","boolean"];_labelDataType=(0,d.Xx)("components.agGridColumnSelect.labelDataType");_labelDateFormat=(0,d.Xx)("components.agGridColumnSelect.labelDateFormat");_dtText=(0,d.Xx)("components.agGridColumnSelect.dataTypeText");_dtNumber=(0,d.Xx)("components.agGridColumnSelect.dataTypeNumber");_dtDate=(0,d.Xx)("components.agGridColumnSelect.dataTypeDate");_dtBoolean=(0,d.Xx)("components.agGridColumnSelect.dataTypeBoolean");_dfDateTime=(0,d.Xx)("components.agGridColumnSelect.dateFormatDateTime");_dfDate=(0,d.Xx)("components.agGridColumnSelect.dateFormatDate");_dfShortDate=(0,d.Xx)("components.agGridColumnSelect.dateFormatShortDate");_dfTimeAgo=(0,d.Xx)("components.agGridColumnSelect.dateFormatTimeAgo");dataTypeLabelMap=(0,t.EW)(()=>({text:this._dtText(),number:this._dtNumber(),date:this._dtDate(),boolean:this._dtBoolean()}));dateFormatLabelMap=(0,t.EW)(()=>({dateTime:this._dfDateTime(),date:this._dfDate(),shortDate:this._dfShortDate(),timeAgo:this._dfTimeAgo()}));_labelText=(0,d.Xx)("components.agGridColumnSelect.filterTypeText");_labelNumber=(0,d.Xx)("components.agGridColumnSelect.filterTypeNumber");_labelDate=(0,d.Xx)("components.agGridColumnSelect.filterTypeDate");_labelSelect=(0,d.Xx)("components.agGridColumnSelect.filterTypeSelect");_labelNone=(0,d.Xx)("components.agGridColumnSelect.filterTypeNone");_labelAuto=(0,d.Xx)("components.agGridColumnSelect.filterTypeAuto");filterTypeLabelMap=(0,t.EW)(()=>({Text:this._labelText(),Number:this._labelNumber(),Date:this._labelDate(),Select:this._labelSelect(),None:this._labelNone(),Auto:this._labelAuto()}));ALIGN_ICON={center:"text-align-center",left:"text-align-left",right:"text-align-right"};dataType=(0,t.EW)(()=>{const n=this.columnDef().cellRenderer;return n===D||"DateCellRenderer"===n?"date":"text"});dateFormat=(0,t.EW)(()=>{const n=this.columnDef().cellRenderer;return n===D||"DateCellRenderer"===n?this.columnDef().cellRendererParams?.dateFormat??"dateTime":"dateTime"});editable=(0,t.EW)(()=>!0===this.columnDef().editable);multiline=(0,t.EW)(()=>{const n=this.columnDef().cellRenderer;return n===i.l||"MultilineCellRenderer"===n});_ALIGN_TO_FLEX={left:"flex-start",right:"flex-end",center:"center"};_FLEX_TO_ALIGN={"flex-start":"left","flex-end":"right",center:"center",left:"left",right:"right"};textAlign=(0,t.uu)(()=>{const n=this.columnDef().cellStyle;return n?.textAlign||this._FLEX_TO_ALIGN[n?.justifyContent]||"left"});filterType=(0,t.EW)(()=>{const n=this.columnDef().filter;return n===$.A?"Select":n===j.U?"Text":me[n]||"Auto"});enumValuesText=(0,t.EW)(()=>(this.columnDef().cellRendererParams?.options??[]).map(g=>g.value).join(", "));label=(0,t.EW)(()=>this.columnDef().headerName||(0,w.x)(this.columnDef().field)||"Unknown");setEditable(n){const g=this.columnDef().cellRendererParams;this.updateColumn.emit(g?.options?.length?{editable:n,cellRendererParams:{...g,disabled:!n}}:{editable:n})}setMultiline(n){this.updateColumn.emit({cellRenderer:n?i.l:void 0,cellRendererParams:{lineHeight:"1.8"},autoHeight:!0})}setLabel(n){this.updateColumn.emit({headerName:n})}setTextAlign(n){const g=this.columnDef().cellStyle||{};this.updateColumn.emit({cellStyle:{...g,display:"flex",justifyContent:this._ALIGN_TO_FLEX[n]??n,textAlign:n},headerClass:`header-align-${n}`}),this.textAlign.set(n)}setFilterType(n){this.updateColumn.emit({filter:de[n]??!0})}setEnumValues(n){const g=n.split(",").map(u=>u.trim()).filter(u=>u.length>0);if(0===g.length)this.updateColumn.emit({cellRenderer:void 0,cellRendererParams:void 0});else{const u=g.map(F=>({value:F,label:F}));this.updateColumn.emit({cellRenderer:c,cellRendererParams:{options:u,disabled:!this.editable()}})}}setDateFormat(n){n&&this.updateColumn.emit({cellRenderer:D,cellRendererParams:{dateFormat:n}})}setDataType(n){this.updateColumn.emit("date"===n?{cellRenderer:D,cellRendererParams:{dateFormat:"dateTime"}}:{cellRenderer:void 0,cellRendererParams:void 0})}formulaFunctions=Y.Zv;postProcessFormula=(0,t.EW)(()=>(0,Y.PH)(this.columnDef().postProcess));postProcessFormulaError=(0,t.EW)(()=>(0,Y.NF)(this.postProcessFormula()));postProcessFormulaPreview=(0,t.EW)(()=>{const n=this.postProcessFormula();return!n||this.postProcessFormulaError()?"":(0,Y.w9)(n,"42")});setPostProcessFormula(n){const g=n.trim();this.updateColumn.emit({postProcess:g?{type:"formula",expression:g}:void 0})}static \u0275fac=function(g){return new(g||s)};static \u0275cmp=e.VBU({type:s,selectors:[["cue-table-column-settings-modal"]],inputs:{columnDef:[1,"columnDef"],columnIndex:[1,"columnIndex"],settings:[1,"settings"],extraPanelLabel:[1,"extraPanelLabel"],extraPanelExpanded:[1,"extraPanelExpanded"],minWidth:[1,"minWidth"]},outputs:{columnDef:"columnDefChange",updateColumn:"updateColumn",close:"close"},ngContentSelectors:z,decls:9,vars:9,consts:[[3,"close","label","minWidth"],["direction","column","gap","s",2,"overflow-y","auto","max-height","70vh","min-height","0","width","100%"],[3,"label","expanded"],[3,"label"],["direction","column"],[3,"label","value"],["direction","row","gap","l","justify","space-between","align","center"],[3,"valueChange","label","value"],["size","s"],["direction","row"],["variant","tertiary","size","s",3,"selected"],["variant","tertiary","size","s",3,"click","selected"],[3,"icon"],["size","m",3,"cueTooltip"],["size","m",3,"checkedChange","checked"],[3,"label","value","options","labelMap"],[3,"valueChange","label","value","options","labelMap"],["direction","column","gap","xs"],[3,"valueChange","label","info","placeholder","value","error"],["size","xs",2,"opacity","0.65"],["size","s",3,"label","expanded"],["direction","row","gap","s","align","start"],["size","xs",2,"font-family","monospace","min-width","210px","flex-shrink","0"],["size","xs",2,"opacity","0.7"]],template:function(g,u){1&g&&(e.NAR(U),e.j41(0,"cue-modal",0),e.nI1(1,"transloco"),e.bIt("close",function(){return u.close.emit()}),e.j41(2,"cue-flexcontainer",1),e.nVh(3,q,7,7,"cue-expansion-panel",2),e.nVh(4,ae,7,6,"cue-expansion-panel",3),e.nVh(5,ie,10,10,"cue-expansion-panel",3),e.nVh(6,le,3,2,"cue-expansion-panel",2),e.nVh(7,ce,13,19,"cue-expansion-panel",3),e.SdG(8),e.k0s()()),2&g&&(e.Y8G("label",e.bMT(1,7,"components.agGridColumnSelect.titleColumnSettings"))("minWidth",u.minWidth()),e.R7$(3),e.vxM(u.settings().allowSettingLabel||u.settings().allowSettingTextAlign||u.settings().allowSettingMultiline?3:-1),e.R7$(),e.vxM(u.settings().allowSettingFilterType||u.settings().allowSettingEnumValues||u.settings().allowSettingDataType?4:-1),e.R7$(),e.vxM(u.settings().allowToggleEditable?5:-1),e.R7$(),e.vxM(u.extraPanelLabel()?6:-1),e.R7$(),e.vxM(u.settings().allowSettingPostProcess?7:-1))},dependencies:[h.a,r.n,M.Typography,b.l,T.d,p.d,m.p,R.$,l.a,N,d.Kj],encapsulation:2,changeDetection:0})}return s})()},6642(L,S,a){"use strict";function _(t){if(t)return t.replace(/([A-Z])/g," $1").replace(/^./,d=>d.toUpperCase())}a.d(S,{x:()=>_})},3183(L,S,a){"use strict";a.d(S,{A:()=>o});var _=a(7705),t=a(5802),d=a(9417),M=a(1359),r=a(8957),b=a(2245),T=a(5381),h=a(5547);const m=(p,e)=>e.value;function R(p,e){if(1&p){const c=h.RV6();h.j41(0,"cue-input",6),h.bIt("valueChange",function(f){t.eBV(c);const y=h.XpG();return y.searchText=f,t.Njj(y.onSearchChange())}),h.k0s()}if(2&p){const c=h.XpG();h.Y8G("value",c.searchText)}}function l(p,e){if(1&p){const c=h.RV6();h.j41(0,"cue-checkbox",7),h.bIt("checkedChange",function(f){const y=t.eBV(c).$implicit,G=h.XpG();return y.selected=f,t.Njj(G.onSelectionChange())}),h.k0s()}if(2&p){const c=e.$implicit;h.Y8G("label",c.value||"(blank)")("checked",c.selected)}}function i(p,e){1&p&&(h.j41(0,"cue-typography",5),h.EFF(1,"No results"),h.k0s())}let o=(()=>{class p{_cdr=(0,t.WQX)(_.gRc);_params;options=[];filteredOptions=[];searchText="";agInit(c){this._params=c}afterGuiAttached(c){this._refreshOptions(),this._cdr.markForCheck()}onNewRowsLoaded(){this._refreshOptions(),this._cdr.markForCheck()}isFilterActive(){return this.options.some(c=>!c.selected)}doesFilterPass(c){const C=new Set(this.options.filter(P=>P.selected).map(P=>P.value)),f=this._params.getValue(c.node),y=null==f?"":String(f);return"..."===y||"Loading..."===y||(""===y?C.has(""):y.split(", ").map(P=>P.trim()).some(P=>C.has(P)))}getModel(){return this.isFilterActive()?{selectedValues:this.options.filter(c=>c.selected).map(c=>c.value)}:null}setModel(c){if(c){const C=new Set(c.selectedValues);this.options.forEach(f=>f.selected=C.has(f.value))}else this.options.forEach(C=>C.selected=!0);this._applySearch(),this._cdr.markForCheck()}onSelectionChange(){this._params.filterChangedCallback(),this._cdr.markForCheck()}onSearchChange(){this._applySearch(),this._cdr.markForCheck()}get allSelected(){return this.options.length>0&&this.options.every(c=>c.selected)}toggleAll(c){this.options.forEach(C=>C.selected=c),this._applySearch(),this._params.filterChangedCallback(),this._cdr.markForCheck()}_refreshOptions(){const c=new Set;this._params.api.forEachNode(f=>{const y=this._params.getValue(f);if(null==y||""===y)c.add("");else{const G=String(y);if("..."===G||"Loading..."===G)return;const P=G.split(", ").map(I=>I.trim());for(const I of P)c.add(I)}});const C=new Map(this.options.map(f=>[f.value,f.selected]));this.options=Array.from(c).sort((f,y)=>f.localeCompare(y)).map(f=>({value:f,selected:C.get(f)??!0})),this._applySearch()}_applySearch(){const c=this.searchText.toLowerCase().trim();this.filteredOptions=c?this.options.filter(C=>C.value.toLowerCase().includes(c)):this.options}static \u0275fac=function(C){return new(C||p)};static \u0275cmp=h.VBU({type:p,selectors:[["cue-multi-select-filter"]],decls:7,vars:3,consts:[["direction","column","gap","s"],["placeholder","Search...","size","s",3,"value"],["size","s","label","Select all",3,"checkedChange","checked"],[1,"msf-list"],["size","s",3,"label","checked"],["size","s"],["placeholder","Search...","size","s",3,"valueChange","value"],["size","s",3,"checkedChange","label","checked"]],template:function(C,f){1&C&&(h.j41(0,"cue-flexcontainer",0),h.nVh(1,R,1,1,"cue-input",1),h.j41(2,"cue-checkbox",2),h.bIt("checkedChange",function(G){return f.toggleAll(G)}),h.k0s(),h.j41(3,"div",3),h.Z7z(4,l,1,2,"cue-checkbox",4,m),h.nVh(6,i,2,0,"cue-typography",5),h.k0s()()),2&C&&(h.R7$(),h.vxM(f.options.length>10?1:-1),h.R7$(),h.Y8G("checked",f.allSelected),h.R7$(2),h.Dyx(f.filteredOptions),h.R7$(2),h.vxM(0===f.filteredOptions.length?6:-1))},dependencies:[d.YN,M.S,r.p,b.Typography,T.n],styles:["[_nghost-%COMP%]{display:block;padding:var(--cue-card-padding-y) var(--cue-card-padding-x);min-width:200px;max-width:300px;box-sizing:border-box}.msf-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;max-height:200px;overflow-y:auto}"],changeDetection:0})}return p})()},5902(L,S,a){"use strict";a.d(S,{U:()=>i});var _=a(7705),t=a(5802),d=a(2271),M=a(9352),r=a(8957),b=a(2444),T=a(2245),h=a(5381),m=a(5547);function R(o,p){if(1&o){const e=m.RV6();m.j41(0,"cue-input",4),m.bIt("valueChange",function(C){t.eBV(e);const f=m.XpG();return t.Njj(f.onValueChange(C))}),m.k0s()}if(2&o){const e=m.XpG();m.Y8G("value",e.filterText)}}function l(o,p){if(1&o){const e=m.RV6();m.j41(0,"cue-typography",5),m.bIt("click",function(){t.eBV(e);const C=m.XpG();return t.Njj(C.clear())}),m.EFF(1,"Clear"),m.k0s()}}let i=(()=>{class o{_cdr=(0,t.WQX)(_.gRc);_params;filterText="";filterType="contains";filterTypeOptions=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"];_labelContains=(0,M.Xx)("components.agGridColumnSelect.textFilterContains");_labelNotContains=(0,M.Xx)("components.agGridColumnSelect.textFilterNotContains");_labelEquals=(0,M.Xx)("components.agGridColumnSelect.textFilterEquals");_labelNotEqual=(0,M.Xx)("components.agGridColumnSelect.textFilterNotEqual");_labelStartsWith=(0,M.Xx)("components.agGridColumnSelect.textFilterStartsWith");_labelEndsWith=(0,M.Xx)("components.agGridColumnSelect.textFilterEndsWith");_labelBlank=(0,M.Xx)("components.agGridColumnSelect.textFilterBlank");_labelNotBlank=(0,M.Xx)("components.agGridColumnSelect.textFilterNotBlank");filterTypeLabelMap=(0,d.EW)(()=>({contains:this._labelContains(),notContains:this._labelNotContains(),equals:this._labelEquals(),notEqual:this._labelNotEqual(),startsWith:this._labelStartsWith(),endsWith:this._labelEndsWith(),blank:this._labelBlank(),notBlank:this._labelNotBlank()}));showTextInput=(0,d.EW)(()=>!["blank","notBlank"].includes(this.filterType));agInit(e){this._params=e}afterGuiAttached(e){this._cdr.markForCheck()}isFilterActive(){return!!["blank","notBlank"].includes(this.filterType)||this.filterText.trim().length>0}doesFilterPass(e){const c=this._params.getValue(e.node),C=null==c?"":String(c),f=this.filterText.toLowerCase().trim(),y=C.toLowerCase();switch(this.filterType){case"contains":default:return y.includes(f);case"notContains":return!y.includes(f);case"equals":return y===f;case"notEqual":return y!==f;case"startsWith":return y.startsWith(f);case"endsWith":return y.endsWith(f);case"blank":return""===C;case"notBlank":return""!==C}}getModel(){return this.isFilterActive()?{filterType:"text",type:this.filterType,filter:this.filterText}:null}setModel(e){this.filterText=e?.filter??"",this.filterType=e?.type??"contains",this._cdr.markForCheck()}onValueChange(e){this.filterText=e,this._params.filterChangedCallback(),this._cdr.markForCheck()}onFilterTypeChange(e){this.filterType=String(e||"contains"),["blank","notBlank"].includes(this.filterType)&&(this.filterText=""),this._params.filterChangedCallback(),this._cdr.markForCheck()}clear(){this.filterText="",this.filterType="contains",this._params.filterChangedCallback(),this._cdr.markForCheck()}static \u0275fac=function(c){return new(c||o)};static \u0275cmp=m.VBU({type:o,selectors:[["cue-text-filter"]],decls:4,vars:5,consts:[["direction","column","gap","s"],["size","s",3,"valueChange","value","options","labelMap"],["placeholder","Filter...","size","s",3,"value"],["size","s",2,"cursor","pointer","text-align","right"],["placeholder","Filter...","size","s",3,"valueChange","value"],["size","s",2,"cursor","pointer","text-align","right",3,"click"]],template:function(c,C){1&c&&(m.j41(0,"cue-flexcontainer",0)(1,"cue-select",1),m.bIt("valueChange",function(y){return C.onFilterTypeChange(y)}),m.k0s(),m.nVh(2,R,1,1,"cue-input",2),m.nVh(3,l,2,0,"cue-typography",3),m.k0s()),2&c&&(m.R7$(),m.Y8G("value",C.filterType)("options",C.filterTypeOptions)("labelMap",C.filterTypeLabelMap()),m.R7$(),m.vxM(C.showTextInput()?2:-1),m.R7$(),m.vxM(C.filterText||"contains"!==C.filterType?3:-1))},dependencies:[r.p,b.l,T.Typography,h.n],styles:["[_nghost-%COMP%]{display:block;padding:var(--cue-card-padding-y) var(--cue-card-padding-x);min-width:180px;max-width:280px;box-sizing:border-box}"],changeDetection:0})}return o})()},5764(L,S,a){"use strict";a.d(S,{l:()=>t});var _=a(5547);let t=(()=>{class d{value="";lineHeight="1.5";agInit(r){this.value=r.value||"",this.lineHeight=r.colDef&&r.colDef.cellRendererParams&&r.colDef.cellRendererParams.lineHeight||r.context&&r.context.lineHeight||"1.5"}refresh(r){return this.value=r.value||"",!0}static \u0275fac=function(b){return new(b||d)};static \u0275cmp=_.VBU({type:d,selectors:[["cue-multiline-cell-renderer"]],decls:2,vars:3,consts:[[1,"multiline-cell"]],template:function(b,T){1&b&&(_.rj2(0,"div",0),_.EFF(1),_.eux()),2&b&&(_.xc7("line-height",T.lineHeight),_.R7$(),_.JRh(T.value))},styles:[".multiline-cell[_ngcontent-%COMP%]{white-space:pre-wrap;word-wrap:break-word;padding:4px 2px;text-align:left}"]})}return d})()},7717(L,S,a){"use strict";a.d(S,{R:()=>d});var _=a(7705),t=a(5547);let d=(()=>{class M{cueFlip=(0,_.geq)(!1);get flipped(){return this.cueFlip()}static \u0275fac=function(T){return new(T||M)};static \u0275dir=t.FsC({type:M,selectors:[["","cueFlip",""]],hostVars:2,hostBindings:function(T,h){2&T&&t.AVh("flipped",h.flipped)},inputs:{cueFlip:[1,"cueFlip"]},outputs:{cueFlip:"cueFlipChange"}})}return M})()},7400(L,S,a){"use strict";function t(l){return l&&"none"!==l.type?"round"===l.type?`ROUND(?val, ${l.decimals})`:"prefix"===l.type?`PREFIX(?val, "${l.value.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}")`:"suffix"===l.type?`SUFFIX(?val, "${l.value.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}")`:"formula"===l.type?l.expression:"":""}function d(l,i){if(!i||"none"===i.type)return l;if("round"===i.type){const o=Number(l);return isNaN(o)?l:o.toFixed(i.decimals)}return"prefix"===i.type?l&&`${i.value}${l}`:"suffix"===i.type?l&&`${l}${i.value}`:"formula"===i.type?r(i.expression,l):l}a.d(S,{NF:()=>b,PH:()=>t,Zv:()=>M,g4:()=>d,w9:()=>r});const M=[{name:"ROUND",signature:"ROUND(?val, decimals)",description:"Round to N decimal places"},{name:"FLOOR",signature:"FLOOR(?val)",description:"Round down to nearest integer"},{name:"CEIL",signature:"CEIL(?val)",description:"Round up to nearest integer"},{name:"ABS",signature:"ABS(?val)",description:"Absolute value"},{name:"SQRT",signature:"SQRT(?val)",description:"Square root"},{name:"MIN",signature:"MIN(a, b)",description:"Smaller of two numbers"},{name:"MAX",signature:"MAX(a, b)",description:"Larger of two numbers"},{name:"CONCAT",signature:"CONCAT(a, b, ...)",description:"Concatenate strings"},{name:"PREFIX",signature:'PREFIX(?val, "text")',description:"Prepend text (skipped if value is empty)"},{name:"SUFFIX",signature:'SUFFIX(?val, "text")',description:"Append text (skipped if value is empty)"},{name:"TRIM",signature:"TRIM(?val)",description:"Remove leading/trailing whitespace"},{name:"UPPER",signature:"UPPER(?val)",description:"Convert to uppercase"},{name:"LOWER",signature:"LOWER(?val)",description:"Convert to lowercase"},{name:"LEN",signature:"LEN(?val)",description:"String length"},{name:"REPLACE",signature:'REPLACE(?val, "a", "b")',description:'Replace all occurrences of "a" with "b"'},{name:"NUM",signature:"NUM(?val)",description:"Parse as number"},{name:"STR",signature:"STR(?val)",description:"Convert to string"},{name:"IF",signature:"IF(condition, then, else)",description:"Conditional expression"},{name:"AFTER_LAST",signature:'AFTER_LAST(?val, "sep")',description:"Substring after the last occurrence of sep"},{name:"AFTER_FIRST",signature:'AFTER_FIRST(?val, "sep")',description:"Substring after the first occurrence of sep"},{name:"BEFORE_LAST",signature:'BEFORE_LAST(?val, "sep")',description:"Substring before the last occurrence of sep"},{name:"BEFORE_FIRST",signature:'BEFORE_FIRST(?val, "sep")',description:"Substring before the first occurrence of sep"},{name:"SEGMENT",signature:'SEGMENT(?val, "sep", n)',description:"Get the Nth segment (0-based) when splitting ?val by sep"}];function r(l,i){if(!l||!l.trim())return i;try{const o=T(l),p=new h(o,{"?val":i}).parse();return null==p?"":String(p)}catch{return i}}function b(l){if(!l||!l.trim())return null;try{const i=T(l);return new h(i,{"?val":"42"}).parse(),null}catch(i){return i?.message??"Invalid formula"}}function T(l){const i=[];let o=0;for(;o<l.length;){if(/\s/.test(l[o])){o++;continue}if('"'===l[o]||"'"===l[o]){const e=l[o++];let c="";for(;o<l.length&&l[o]!==e;)c+="\\"===l[o]?l[++o]:l[o],o++;if(l[o]!==e)throw new Error("Unterminated string literal");o++,i.push({kind:"str",val:c});continue}const p=l.slice(o).match(/^(\d+\.?\d*|\.\d+)([eE][+-]?\d+)?/);if(p)i.push({kind:"num",val:p[0]}),o+=p[0].length;else{if("?"===l[o]){let e="?";for(o++;o<l.length&&/\w/.test(l[o]);)e+=l[o++];i.push({kind:"var",val:e});continue}if(/[A-Za-z_]/.test(l[o])){let e="";for(;o<l.length&&/\w/.test(l[o]);)e+=l[o++];i.push({kind:"ident",val:e.toUpperCase()});continue}if("**"!==l.slice(o,o+2)){if(!"+-*/%(),".includes(l[o]))throw new Error(`Unexpected character "${l[o]}" at position ${o}`);i.push({kind:"op",val:l[o++]})}else i.push({kind:"op",val:"**"}),o+=2}}return i.push({kind:"eof",val:""}),i}class h{tokens;vars;pos=0;constructor(i,o){this.tokens=i,this.vars=o}parse(){const i=this.expr();if("eof"!==this.tokens[this.pos].kind)throw new Error(`Unexpected token "${this.tokens[this.pos].val}" after expression`);return i}peek(){return this.tokens[this.pos]}next(){return this.tokens[this.pos++]}eat(i){if(this.peek().val!==i)throw new Error(`Expected "${i}", got "${this.peek().val||"end of input"}"`);this.pos++}expr(){return this.additive()}additive(){let i=this.multiplicative();for(;"op"===this.peek().kind&&("+"===this.peek().val||"-"===this.peek().val);){const o=this.next().val,p=this.multiplicative();i="+"===o?"string"==typeof i||"string"==typeof p?String(i)+String(p):i+p:m(i)-m(p)}return i}multiplicative(){let i=this.power();for(;"op"===this.peek().kind&&("*"===this.peek().val||"/"===this.peek().val||"%"===this.peek().val);){const o=this.next().val,p=this.power();if("*"===o)i=m(i)*m(p);else if("/"===o){const e=m(p);i=0!==e?m(i)/e:0}else i=m(i)%m(p)}return i}power(){const i=this.unary();return"op"===this.peek().kind&&"**"===this.peek().val?(this.next(),Math.pow(m(i),m(this.power()))):i}unary(){return"op"===this.peek().kind&&"-"===this.peek().val?(this.next(),-m(this.primary())):this.primary()}primary(){const i=this.peek();if("num"===i.kind)return this.next(),Number(i.val);if("str"===i.kind)return this.next(),i.val;if("var"===i.kind)return this.next(),this.vars[i.val]??"";if("ident"===i.kind)return this.funcCall();if("op"===i.kind&&"("===i.val){this.next();const o=this.expr();return this.eat(")"),o}throw new Error(`Unexpected token: "${i.val}"`)}funcCall(){const i=this.next().val;this.eat("(");const o=[];if(")"!==this.peek().val)for(o.push(this.expr());","===this.peek().val;)this.next(),o.push(this.expr());return this.eat(")"),function R(l,i){const o=p=>i[p]??"";switch(l){case"ROUND":return Number(m(o(0)).toFixed(Math.max(0,m(o(1)))));case"FLOOR":return Math.floor(m(o(0)));case"CEIL":return Math.ceil(m(o(0)));case"ABS":return Math.abs(m(o(0)));case"SQRT":return Math.sqrt(m(o(0)));case"MIN":return Math.min(...i.map(m));case"MAX":return Math.max(...i.map(m));case"CONCAT":return i.map(p=>String(p)).join("");case"TRIM":return String(o(0)).trim();case"UPPER":return String(o(0)).toUpperCase();case"LOWER":return String(o(0)).toLowerCase();case"LEN":return String(o(0)).length;case"REPLACE":return String(o(0)).replaceAll(String(o(1)),String(o(2)));case"NUM":return m(o(0));case"STR":return String(o(0));case"PREFIX":return String(o(0))?String(o(1))+String(o(0)):String(o(0));case"SUFFIX":return String(o(0))?String(o(0))+String(o(1)):String(o(0));case"IF":return 0!==m(o(0))&&""!==o(0)&&"false"!==o(0)?o(1):o(2);case"AFTER_LAST":{const p=String(o(0)),e=String(o(1)),c=p.lastIndexOf(e);return-1===c?p:p.slice(c+e.length)}case"AFTER_FIRST":{const p=String(o(0)),e=String(o(1)),c=p.indexOf(e);return-1===c?p:p.slice(c+e.length)}case"BEFORE_LAST":{const p=String(o(0)),e=String(o(1)),c=p.lastIndexOf(e);return-1===c?p:p.slice(0,c)}case"BEFORE_FIRST":{const p=String(o(0)),e=String(o(1)),c=p.indexOf(e);return-1===c?p:p.slice(0,c)}case"SEGMENT":return String(o(0)).split(String(o(1)))[m(o(2))]??"";default:throw new Error(`Unknown function: "${l}"`)}}(i,o)}}function m(l){if("number"==typeof l)return l;const i=Number(l);return isNaN(i)?0:i}},2269(L,S,a){L.exports=function(_){"use strict";var d=function t(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}(_),M={name:"da",weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n._man._tirs._ons._tors._fre._l\xf8r.".split("_"),weekdaysMin:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.".split("_"),weekStart:1,yearStart:4,ordinal:function(r){return r+"."},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"}};return d.default.locale(M,null,!0),M}(a(7374))},1409(L,S,a){L.exports=function(_){"use strict";var d=function t(T){return T&&"object"==typeof T&&"default"in T?T:{default:T}}(_),M={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function r(T,h,m){var R=M[m];return Array.isArray(R)&&(R=R[h?0:1]),R.replace("%d",T)}var b={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(T){return T+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r}};return d.default.locale(b,null,!0),b}(a(7374))},9785(L){L.exports=function(){"use strict";return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(S){var a=["th","st","nd","rd"],_=S%100;return"["+S+(a[(_-20)%10]||a[_]||a[0])+"]"}}}()},2494(L,S,a){L.exports=function(_){"use strict";var d=function t(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}(_),M={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},ordinal:function(r){return r+"\xba"}};return d.default.locale(M,null,!0),M}(a(7374))},4230(L,S,a){L.exports=function(_){"use strict";var d=function t(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}(_),M={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(r){return r+(1===r?"er":"")}};return d.default.locale(M,null,!0),M}(a(7374))},9531(L,S,a){L.exports=function(_){"use strict";var d=function t(r){return r&&"object"==typeof r&&"default"in r?r:{default:r}}(_),M={name:"it",weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(r){return r+"\xba"}};return d.default.locale(M,null,!0),M}(a(7374))},4955(L){L.exports=function(){"use strict";var S={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(a,_,t){var d=_.prototype,M=d.format;t.en.formats=S,d.format=function(r){void 0===r&&(r="YYYY-MM-DDTHH:mm:ssZ");var m,b=this.$locale().formats,T=(m=void 0===b?{}:b,r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(R,l,i){var o=i&&i.toUpperCase();return l||m[i]||S[i]||m[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,e,c){return e||c.slice(1)})}));return M.call(this,T)}}}()},5164(L){L.exports=function(){"use strict";return function(S,a,_){S=S||{};var t=a.prototype,d={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function M(b,T,h,m){return t.fromToBase(b,T,h,m)}_.en.relativeTime=d,t.fromToBase=function(b,T,h,m,R){for(var l,i,o,p=h.$locale().relativeTime||d,e=S.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],c=e.length,C=0;C<c;C+=1){var f=e[C];f.d&&(l=m?_(b).diff(h,f.d,!0):h.diff(b,f.d,!0));var y=(S.rounding||Math.round)(Math.abs(l));if(o=l>0,y<=f.r||!f.r){y<=1&&C>0&&(f=e[C-1]);var G=p[f.l];R&&(y=R(""+y)),i="string"==typeof G?G.replace("%d",y):G(y,T,f.l,o);break}}if(T)return i;var P=o?p.future:p.past;return"function"==typeof P?P(i):P.replace("%s",i)},t.to=function(b,T){return M(b,T,this,!0)},t.from=function(b,T){return M(b,T,this)};var r=function(b){return b.$u?_.utc():_()};t.toNow=function(b){return this.to(r(this),b)},t.fromNow=function(b){return this.from(r(this),b)}}}()}}]);
|