@qaecy/cue-ui 0.0.56 → 0.0.58
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/1051.js +1 -1
- package/1138.js +1 -1
- package/1153.js +1 -1
- package/1338.js +1 -1
- package/1520.js +1 -0
- package/1837.js +1 -1
- package/1985.js +1 -1
- package/2003.js +1 -0
- package/2014.js +1 -0
- package/2021.js +1 -1
- package/2081.js +1 -1
- package/2245.js +1 -1
- package/2283.js +1 -0
- package/2317.js +1 -1
- package/2775.js +1 -1
- package/2839.js +1 -1
- package/29.js +1 -1
- package/3036.js +1 -1
- package/3039.js +1 -1
- package/3288.js +1 -1
- package/3319.js +1 -0
- package/3577.js +1 -1
- package/3614.js +1 -1
- package/4098.js +1 -0
- package/4283.js +1 -1
- package/4311.js +1 -1
- package/4791.js +1 -0
- package/5277.js +1 -0
- package/5381.js +1 -0
- package/5448.js +1 -0
- package/5559.js +1 -1
- package/5649.js +1 -1
- package/5738.js +1 -1
- package/5872.js +1 -1
- package/5971.js +1 -0
- package/6027.js +1 -0
- package/617.js +1 -1
- package/6233.js +1 -1
- package/63.js +1 -1
- package/6419.js +1 -1
- package/6423.js +1 -1
- package/650.js +1 -1
- package/6947.js +1 -1
- package/7089.js +1 -0
- package/7154.js +1 -0
- package/7313.js +1 -0
- package/7441.js +1 -1
- package/7719.js +1 -1
- package/7802.js +1 -0
- package/7851.js +1 -0
- package/804.js +1 -1
- package/8194.js +1 -0
- package/8560.js +1 -1
- package/8659.js +1 -0
- package/880.js +1 -0
- package/8855.js +1 -1
- package/8957.js +1 -1
- package/928.js +1 -1
- package/9396.js +1 -1
- package/992.js +1 -0
- package/README.md +5 -5
- package/common.js +1 -1
- package/index.js +1 -1
- package/main.js +1 -1
- package/package.json +1 -1
- package/2399.js +0 -1
- package/2516.js +0 -1
- package/3537.js +0 -1
- package/4687.js +0 -1
- package/4879.js +0 -1
- package/5041.js +0 -1
- package/5071.js +0 -1
- package/5137.js +0 -1
- package/7056.js +0 -1
- package/8336.js +0 -1
- package/8791.js +0 -1
package/1138.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[1138],{3319(m,b,t){t.d(b,{a:()=>h});var a=t(7705),e=t(29),o=t(5547);let h=(()=>{class g{icon=(0,a.hFB)(void 0);slot=(0,a.hFB)("before");static \u0275fac=function(l){return new(l||g)};static \u0275cmp=o.VBU({type:g,selectors:[["cue-button-icon"]],inputs:{icon:[1,"icon"],slot:[1,"slot"]},decls:1,vars:2,consts:[[3,"slot","name"]],template:function(l,d){1&l&&o.nrm(0,"cue-svg-icon",0),2&l&&o.Y8G("slot",d.slot())("name",d.icon())},dependencies:[e.A],encapsulation:2})}return g})()},5448(m,b,t){t.d(b,{L:()=>g});var a=t(7705),e=t(2245),o=t(5547);const h=["*"];let g=(()=>{class i{fontSize=(0,a.hFB)("m");italic=(0,a.hFB)(!1);noWrap=(0,a.hFB)(!0);static \u0275fac=function(d){return new(d||i)};static \u0275cmp=o.VBU({type:i,selectors:[["cue-button-label"]],inputs:{fontSize:[1,"fontSize"],italic:[1,"italic"],noWrap:[1,"noWrap"]},ngContentSelectors:h,decls:3,vars:3,consts:[[3,"size","italic","noWrap"]],template:function(d,c){1&d&&(o.NAR(),o.j41(0,"div")(1,"cue-typography",0),o.SdG(2),o.k0s()()),2&d&&(o.R7$(),o.Y8G("size",c.fontSize())("italic",c.italic())("noWrap",c.noWrap()))},dependencies:[e.Typography],styles:["div[_ngcontent-%COMP%]{transform:translateY(.05em)}"]})}return i})()},2014(m,b,t){t.d(b,{z:()=>g});var a=t(7705),e=t(2271),o=t(5547);const h=["*"];let g=(()=>{class i{justify=(0,a.hFB)("start");size=(0,a.hFB)("l");widthStyle=(0,e.EW)(()=>`var(--cue-button-label-padding-${this.size()}-x)`);static \u0275fac=function(d){return new(d||i)};static \u0275cmp=o.VBU({type:i,selectors:[["cue-button-padder"]],inputs:{justify:[1,"justify"],size:[1,"size"]},ngContentSelectors:h,decls:2,vars:4,template:function(d,c){1&d&&(o.NAR(),o.rj2(0,"div"),o.SdG(1),o.eux()),2&d&&o.xc7("justify-content",c.justify())("min-width",c.widthStyle())},styles:["div[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:1px}"]})}return i})()},5971(m,b,t){t.d(b,{$:()=>d});var a=t(9769),e=t(7705),o=t(2271),h=t(7089),g=t(2403),i=t(5547);const p=["buttonElement"],l=["*"];let d=(()=>{class c{variant=(0,e.hFB)("primary");size=(0,e.hFB)("m");tooltip=(0,e.hFB)("");disabled=(0,e.hFB)(!1);selected=(0,e.geq)(!1);toggleButton=(0,e.hFB)(!1);loading=(0,e.hFB)(!1);fitParentWidth=(0,e.hFB)(!1);noWrap=(0,e.hFB)(!0);buttonElement=e.ebz.required("buttonElement");getStyles=(0,o.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(v){v.detail>0&&this.buttonElement().nativeElement.blur(),this.toggleButton()&&(v.stopPropagation(),this.selected.set(!this.selected()))}static \u0275fac=function(r){return new(r||c)};static \u0275cmp=i.VBU({type:c,selectors:[["cue-button"]],viewQuery:function(r,_){1&r&&i.wEZ(_.buttonElement,p,5),2&r&&i.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:l,decls:3,vars:18,consts:[["buttonElement",""],["tooltipSize","small",3,"click","disabled","cueTooltip","tooltipPlacement","cuePulse"]],template:function(r,_){1&r&&(i.NAR(),i.j41(0,"button",1,0),i.bIt("click",function(s){return _.handleClick(s)}),i.SdG(2),i.k0s()),2&r&&(i.Aen(_.getStyles()),i.xc7("white-space",_.noWrap()?"nowrap":"normal")("flex-basis",_.noWrap()?null:"auto")("min-width",_.noWrap()?null:"fit-content"),i.AVh("selected",_.selected())("ghost","ghost"===_.variant())("fit-parent-width",_.fitParentWidth()),i.Y8G("disabled",_.disabled())("cueTooltip",_.tooltip())("tooltipPlacement","top")("cuePulse",_.loading()))},dependencies:[a.MD,h.d,g.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 c})()},1138(m,b,t){t.d(b,{GridSizeSelect:()=>v});var a=t(7705),e=t(5547),o=t(5802),h=t(2271),g=t(3319),i=t(5448),p=t(2014),l=t(5971);const d=(r,_)=>_.id;function c(r,_){if(1&r){const n=e.RV6();e.j41(0,"div",6),e.bIt("mouseenter",function(){const u=o.eBV(n).$implicit,f=e.XpG(2);return o.Njj(f.hover(u.col,u.row))})("click",function(){const u=o.eBV(n).$implicit,f=e.XpG(2);return o.Njj(f.select(u.col,u.row))}),e.k0s()}if(2&r){const n=_.$implicit,s=e.XpG(2);e.AVh("highlighted",n.col<=s.hoverCols()&&n.row<=s.hoverRows())("active",0===s.hoverCols()&&n.col<=s.cols()&&n.row<=s.rows())}}function M(r,_){if(1&r){const n=e.RV6();e.j41(0,"div",2)(1,"p",3),e.EFF(2),e.k0s(),e.j41(3,"div",4),e.bIt("mouseleave",function(){o.eBV(n);const u=e.XpG();return o.Njj(u.clearHover())}),e.Z7z(4,c,1,4,"div",5,d),e.k0s()()}if(2&r){const n=e.XpG();e.R7$(2),e.JRh(n.sizeLabel()),e.R7$(),e.xc7("grid-template-columns","repeat("+n.maxCols()+", 18px)"),e.R7$(),e.Dyx(n.allCells())}}let v=(()=>{class r{cols=(0,a.geq)(4);rows=(0,a.geq)(4);maxCols=(0,a.hFB)(8);maxRows=(0,a.hFB)(8);size=(0,a.hFB)("s");isOpen=(0,o.vPA)(!1);hoverCols=(0,o.vPA)(0);hoverRows=(0,o.vPA)(0);_el=(0,o.WQX)(e.aKT);allCells=(0,h.EW)(()=>{const n=[];for(let s=1;s<=this.maxRows();s++)for(let u=1;u<=this.maxCols();u++)n.push({id:`${u}-${s}`,col:u,row:s});return n});sizeLabel=(0,h.EW)(()=>{const n=this.hoverCols(),s=this.hoverRows();return n>0?`${n} \xd7 ${s}`:`${this.cols()} \xd7 ${this.rows()}`});toggle(){this.isOpen.update(n=>!n),this.isOpen()||this.clearHover()}hover(n,s){this.hoverCols.set(n),this.hoverRows.set(s)}clearHover(){this.hoverCols.set(0),this.hoverRows.set(0)}select(n,s){this.cols.set(n),this.rows.set(s),this.isOpen.set(!1),this.clearHover()}onDocumentPointerDown(n){this.isOpen()&&!this._el.nativeElement.contains(n.target)&&(this.isOpen.set(!1),this.clearHover())}static \u0275fac=function(s){return new(s||r)};static \u0275cmp=e.VBU({type:r,selectors:[["cue-grid-size-select"]],hostBindings:function(s,u){1&s&&e.bIt("pointerdown",function(P){return u.onDocumentPointerDown(P)},e.EBC)},inputs:{cols:[1,"cols"],rows:[1,"rows"],maxCols:[1,"maxCols"],maxRows:[1,"maxRows"],size:[1,"size"]},outputs:{cols:"colsChange",rows:"rowsChange"},decls:7,vars:6,consts:[["variant","secondary",3,"click","size"],["icon","table",1,"trigger-icon"],[1,"popup"],[1,"size-label"],[1,"matrix",3,"mouseleave"],[1,"cell",3,"highlighted","active"],[1,"cell",3,"mouseenter","click"]],template:function(s,u){1&s&&(e.j41(0,"cue-button",0),e.bIt("click",function(){return u.toggle()}),e.nrm(1,"cue-button-padder")(2,"cue-button-icon",1),e.j41(3,"cue-button-label"),e.EFF(4),e.k0s(),e.nrm(5,"cue-button-padder"),e.k0s(),e.nVh(6,M,6,3,"div",2)),2&s&&(e.AVh("open",u.isOpen()),e.Y8G("size",u.size()),e.R7$(4),e.Lme("",u.cols(),"\xd7",u.rows()),e.R7$(2),e.vxM(u.isOpen()?6:-1))},dependencies:[l.$,g.a,p.z,i.L],styles:["[_nghost-%COMP%]{position:relative;display:inline-block}.popup[_ngcontent-%COMP%]{position:absolute;top:calc(100% + 6px);left:0;z-index:1000;background:var(--cue-menu-background-color, white);border:1px solid var(--cue-menu-border-color, rgba(0, 0, 0, .12));border-radius:var(--cue-menu-border-radius, 8px);padding:10px 10px 8px;box-shadow:0 4px 20px #00000021;-webkit-user-select:none;user-select:none}.size-label[_ngcontent-%COMP%]{font-size:var(--cue-font-size-xs, .72rem);text-align:center;color:var(--cue-typography-muted-color, #888);margin:0 0 7px;font-family:var(--cue-font-family, inherit);font-variant-numeric:tabular-nums;min-height:1em}.matrix[_ngcontent-%COMP%]{display:grid;gap:3px}.cell[_ngcontent-%COMP%]{width:18px;height:18px;border-radius:3px;border:1.5px solid var(--cue-card-border-color, rgba(0, 0, 0, .15));background:transparent;cursor:pointer;transition:background 50ms ease,border-color 50ms ease}.cell.highlighted[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--cue-button-primary-background, #4a6cf7) 28%,transparent);border-color:var(--cue-button-primary-background, #4a6cf7)}.cell.active[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--cue-button-primary-background, #4a6cf7) 10%,transparent);border-color:color-mix(in srgb,var(--cue-button-primary-background, #4a6cf7) 45%,transparent)}"],changeDetection:0})}return r})()},2403(m,b,t){t.d(b,{V:()=>h});var a=t(7705),e=t(5547),o=t(5802);let h=(()=>{class g{el=(0,o.WQX)(e.aKT);renderer=(0,o.WQX)(e.sFG);cuePulse=(0,a.hFB)(!1);cuePulseColor=(0,a.hFB)("");cuePulseMode=(0,a.hFB)("border");activeClass="";constructor(){this.ensureGlobalStyles()}onPulseChanged=(0,o.QZP)(()=>{const p=this.cuePulse(),l=this.cuePulseColor(),d=this.cuePulseMode(),c=this.el.nativeElement;if(this.activeClass&&(this.renderer.removeClass(c,this.activeClass),this.activeClass=""),this.renderer.removeStyle(c,"--cue-pulse-color"),this.renderer.removeStyle(c,"border-radius"),p){const M="text"===d?"cue-pulse-text":"cue-pulse-border";this.renderer.addClass(c,M),this.activeClass=M,l&&this.renderer.setStyle(c,"--cue-pulse-color",l),"border"===d&&setTimeout(()=>{const v=c.firstElementChild;if(v){const r=getComputedStyle(v).borderRadius;r&&"0px"!==r&&this.renderer.setStyle(c,"border-radius",r)}})}});ngOnDestroy(){const p=this.el.nativeElement;this.activeClass&&this.renderer.removeClass(p,this.activeClass),this.renderer.removeStyle(p,"border-radius")}ensureGlobalStyles(){const p="cue-pulse-global-styles";if(document.getElementById(p))return;const l=document.createElement("style");l.id=p,l.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(l)}static \u0275fac=function(l){return new(l||g)};static \u0275dir=e.FsC({type:g,selectors:[["","cuePulse",""]],inputs:{cuePulse:[1,"cuePulse"],cuePulseColor:[1,"cuePulseColor"],cuePulseMode:[1,"cuePulseMode"]}})}return g})()}}]);
|
|
1
|
+
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[1138,2014,2245,3319,5448,5971,9495],{3319(E,m,n){n.d(m,{ButtonIcon:()=>b});var r=n(7705),e=n(29),a=n(5547);let b=(()=>{class g{icon=(0,r.hFB)(void 0);slot=(0,r.hFB)("before");static \u0275fac=function(i){return new(i||g)};static \u0275cmp=a.VBU({type:g,selectors:[["cue-button-icon"]],inputs:{icon:[1,"icon"],slot:[1,"slot"]},decls:1,vars:2,consts:[[3,"slot","name"]],template:function(i,s){1&i&&a.nrm(0,"cue-svg-icon",0),2&i&&a.Y8G("slot",s.slot())("name",s.icon())},dependencies:[e.A],encapsulation:2})}return g})()},5448(E,m,n){n.d(m,{ButtonLabel:()=>g});var r=n(7705),e=n(2245),a=n(5547);const b=["*"];let g=(()=>{class d{fontSize=(0,r.hFB)("m");italic=(0,r.hFB)(!1);noWrap=(0,r.hFB)(!0);static \u0275fac=function(s){return new(s||d)};static \u0275cmp=a.VBU({type:d,selectors:[["cue-button-label"]],inputs:{fontSize:[1,"fontSize"],italic:[1,"italic"],noWrap:[1,"noWrap"]},ngContentSelectors:b,decls:3,vars:3,consts:[[3,"size","italic","noWrap"]],template:function(s,l){1&s&&(a.NAR(),a.j41(0,"div")(1,"cue-typography",0),a.SdG(2),a.k0s()()),2&s&&(a.R7$(),a.Y8G("size",l.fontSize())("italic",l.italic())("noWrap",l.noWrap()))},dependencies:[e.Typography],styles:["div[_ngcontent-%COMP%]{transform:translateY(.05em)}"]})}return d})()},2014(E,m,n){n.d(m,{ButtonPadder:()=>g});var r=n(7705),e=n(2271),a=n(5547);const b=["*"];let g=(()=>{class d{justify=(0,r.hFB)("start");size=(0,r.hFB)("l");widthStyle=(0,e.EW)(()=>`var(--cue-button-label-padding-${this.size()}-x)`);static \u0275fac=function(s){return new(s||d)};static \u0275cmp=a.VBU({type:d,selectors:[["cue-button-padder"]],inputs:{justify:[1,"justify"],size:[1,"size"]},ngContentSelectors:b,decls:2,vars:4,template:function(s,l){1&s&&(a.NAR(),a.rj2(0,"div"),a.SdG(1),a.eux()),2&s&&a.xc7("justify-content",l.justify())("min-width",l.widthStyle())},styles:["div[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:1px}"]})}return d})()},5971(E,m,n){n.d(m,{Button:()=>s});var r=n(9769),e=n(7705),a=n(2271),b=n(7089),g=n(2403),d=n(5547);const t=["buttonElement"],i=["*"];let s=(()=>{class l{variant=(0,e.hFB)("primary");size=(0,e.hFB)("m");tooltip=(0,e.hFB)("");disabled=(0,e.hFB)(!1);selected=(0,e.geq)(!1);toggleButton=(0,e.hFB)(!1);loading=(0,e.hFB)(!1);fitParentWidth=(0,e.hFB)(!1);noWrap=(0,e.hFB)(!0);buttonElement=e.ebz.required("buttonElement");getStyles=(0,a.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(h){h.detail>0&&this.buttonElement().nativeElement.blur(),this.toggleButton()&&(h.stopPropagation(),this.selected.set(!this.selected()))}static \u0275fac=function(p){return new(p||l)};static \u0275cmp=d.VBU({type:l,selectors:[["cue-button"]],viewQuery:function(p,_){1&p&&d.wEZ(_.buttonElement,t,5),2&p&&d.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:i,decls:3,vars:18,consts:[["buttonElement",""],["tooltipSize","small",3,"click","disabled","cueTooltip","tooltipPlacement","cuePulse"]],template:function(p,_){1&p&&(d.NAR(),d.j41(0,"button",1,0),d.bIt("click",function(o){return _.handleClick(o)}),d.SdG(2),d.k0s()),2&p&&(d.Aen(_.getStyles()),d.xc7("white-space",_.noWrap()?"nowrap":"normal")("flex-basis",_.noWrap()?null:"auto")("min-width",_.noWrap()?null:"fit-content"),d.AVh("selected",_.selected())("ghost","ghost"===_.variant())("fit-parent-width",_.fitParentWidth()),d.Y8G("disabled",_.disabled())("cueTooltip",_.tooltip())("tooltipPlacement","top")("cuePulse",_.loading()))},dependencies:[r.MD,b.d,g.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 l})()},1138(E,m,n){n.d(m,{GridSizeSelect:()=>h});var r=n(7705),e=n(5547),a=n(5802),b=n(2271),g=n(3319),d=n(5448),t=n(2014),i=n(5971);const s=(p,_)=>_.id;function l(p,_){if(1&p){const c=e.RV6();e.j41(0,"div",6),e.bIt("mouseenter",function(){const u=a.eBV(c).$implicit,v=e.XpG(2);return a.Njj(v.hover(u.col,u.row))})("click",function(){const u=a.eBV(c).$implicit,v=e.XpG(2);return a.Njj(v.select(u.col,u.row))}),e.k0s()}if(2&p){const c=_.$implicit,o=e.XpG(2);e.AVh("highlighted",c.col<=o.hoverCols()&&c.row<=o.hoverRows())("active",0===o.hoverCols()&&c.col<=o.cols()&&c.row<=o.rows())}}function f(p,_){if(1&p){const c=e.RV6();e.j41(0,"div",2)(1,"p",3),e.EFF(2),e.k0s(),e.j41(3,"div",4),e.bIt("mouseleave",function(){a.eBV(c);const u=e.XpG();return a.Njj(u.clearHover())}),e.Z7z(4,l,1,4,"div",5,s),e.k0s()()}if(2&p){const c=e.XpG();e.R7$(2),e.JRh(c.sizeLabel()),e.R7$(),e.xc7("grid-template-columns","repeat("+c.maxCols()+", 18px)"),e.R7$(),e.Dyx(c.allCells())}}let h=(()=>{class p{cols=(0,r.geq)(4);rows=(0,r.geq)(4);maxCols=(0,r.hFB)(8);maxRows=(0,r.hFB)(8);size=(0,r.hFB)("s");isOpen=(0,a.vPA)(!1);hoverCols=(0,a.vPA)(0);hoverRows=(0,a.vPA)(0);_el=(0,a.WQX)(e.aKT);allCells=(0,b.EW)(()=>{const c=[];for(let o=1;o<=this.maxRows();o++)for(let u=1;u<=this.maxCols();u++)c.push({id:`${u}-${o}`,col:u,row:o});return c});sizeLabel=(0,b.EW)(()=>{const c=this.hoverCols(),o=this.hoverRows();return c>0?`${c} \xd7 ${o}`:`${this.cols()} \xd7 ${this.rows()}`});toggle(){this.isOpen.update(c=>!c),this.isOpen()||this.clearHover()}hover(c,o){this.hoverCols.set(c),this.hoverRows.set(o)}clearHover(){this.hoverCols.set(0),this.hoverRows.set(0)}select(c,o){this.cols.set(c),this.rows.set(o),this.isOpen.set(!1),this.clearHover()}onDocumentPointerDown(c){this.isOpen()&&!this._el.nativeElement.contains(c.target)&&(this.isOpen.set(!1),this.clearHover())}static \u0275fac=function(o){return new(o||p)};static \u0275cmp=e.VBU({type:p,selectors:[["cue-grid-size-select"]],hostBindings:function(o,u){1&o&&e.bIt("pointerdown",function(M){return u.onDocumentPointerDown(M)},e.EBC)},inputs:{cols:[1,"cols"],rows:[1,"rows"],maxCols:[1,"maxCols"],maxRows:[1,"maxRows"],size:[1,"size"]},outputs:{cols:"colsChange",rows:"rowsChange"},decls:7,vars:6,consts:[["variant","secondary",3,"click","size"],["icon","table",1,"trigger-icon"],[1,"popup"],[1,"size-label"],[1,"matrix",3,"mouseleave"],[1,"cell",3,"highlighted","active"],[1,"cell",3,"mouseenter","click"]],template:function(o,u){1&o&&(e.j41(0,"cue-button",0),e.bIt("click",function(){return u.toggle()}),e.nrm(1,"cue-button-padder")(2,"cue-button-icon",1),e.j41(3,"cue-button-label"),e.EFF(4),e.k0s(),e.nrm(5,"cue-button-padder"),e.k0s(),e.nVh(6,f,6,3,"div",2)),2&o&&(e.AVh("open",u.isOpen()),e.Y8G("size",u.size()),e.R7$(4),e.Lme("",u.cols(),"\xd7",u.rows()),e.R7$(2),e.vxM(u.isOpen()?6:-1))},dependencies:[i.Button,g.ButtonIcon,t.ButtonPadder,d.ButtonLabel],styles:["[_nghost-%COMP%]{position:relative;display:inline-block}.popup[_ngcontent-%COMP%]{position:absolute;top:calc(100% + 6px);left:0;z-index:1000;background:var(--cue-menu-background-color, white);border:1px solid var(--cue-menu-border-color, rgba(0, 0, 0, .12));border-radius:var(--cue-menu-border-radius, 8px);padding:10px 10px 8px;box-shadow:0 4px 20px #00000021;-webkit-user-select:none;user-select:none}.size-label[_ngcontent-%COMP%]{font-size:var(--cue-font-size-xs, .72rem);text-align:center;color:var(--cue-typography-muted-color, #888);margin:0 0 7px;font-family:var(--cue-font-family, inherit);font-variant-numeric:tabular-nums;min-height:1em}.matrix[_ngcontent-%COMP%]{display:grid;gap:3px}.cell[_ngcontent-%COMP%]{width:18px;height:18px;border-radius:3px;border:1.5px solid var(--cue-card-border-color, rgba(0, 0, 0, .15));background:transparent;cursor:pointer;transition:background 50ms ease,border-color 50ms ease}.cell.highlighted[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--cue-button-primary-background, #4a6cf7) 28%,transparent);border-color:var(--cue-button-primary-background, #4a6cf7)}.cell.active[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--cue-button-primary-background, #4a6cf7) 10%,transparent);border-color:color-mix(in srgb,var(--cue-button-primary-background, #4a6cf7) 45%,transparent)}"],changeDetection:0})}return p})()},9495(E,m,n){n.d(m,{InlineInput:()=>g});var r=n(7705),e=n(5802),a=n(5547);const b=["inputEl"];let g=(()=>{class d{value=(0,r.geq)("");placeholder=(0,r.hFB)("");autofocus=(0,r.hFB)(!1);valueChange=(0,r.CGW)();save=(0,r.CGW)();cancel=(0,r.CGW)();inputEl;constructor(){(0,e.QZP)(()=>{const i=this.value(),s=this.inputEl?.nativeElement;s&&s.innerText.replace(/\n$/,"")!==i&&(s.innerText=i)})}ngAfterViewInit(){const i=this.inputEl?.nativeElement;i&&(i.innerText=this.value()),this.autofocus()&&i&&i.focus()}onInput(i){const l=i.target.innerText.replace(/\n$/,"");this.value.set(l),this.valueChange.emit(l)}onEnter(i){i.preventDefault(),this.save.emit()}onEscape(i){i.preventDefault(),this.cancel.emit()}onBlur(){this.save.emit()}static \u0275fac=function(s){return new(s||d)};static \u0275cmp=a.VBU({type:d,selectors:[["cue-inline-input"]],viewQuery:function(s,l){if(1&s&&a.GBs(b,5),2&s){let f;a.mGM(f=a.lsd())&&(l.inputEl=f.first)}},inputs:{value:[1,"value"],placeholder:[1,"placeholder"],autofocus:[1,"autofocus"]},outputs:{value:"valueChange",valueChange:"valueChange",save:"save",cancel:"cancel"},decls:2,vars:1,consts:[["inputEl",""],["contenteditable","true","role","textbox","aria-multiline","true",3,"input","keydown.enter","keydown.escape","blur"]],template:function(s,l){1&s&&(a.rj2(0,"span",1,0),a.VwU("input",function(h){return l.onInput(h)})("keydown.enter",function(h){return l.onEnter(h)})("keydown.escape",function(h){return l.onEscape(h)})("blur",function(){return l.onBlur()}),a.eux()),2&s&&a.BMQ("data-placeholder",l.placeholder())},styles:["[_nghost-%COMP%]{display:inline}span[contenteditable][_ngcontent-%COMP%]{outline:none;-webkit-text-decoration:underline dashed;text-decoration:underline dashed;text-underline-offset:3px;white-space:pre-wrap;word-break:break-word;cursor:text}span[contenteditable][_ngcontent-%COMP%]:empty:before{content:attr(data-placeholder);color:var(--cue-input-placeholder-color, currentColor);opacity:.5;pointer-events:none}"],changeDetection:0})}return d})()},2245(E,m,n){n.r(m),n.d(m,{Typography:()=>p});var r=n(7705),e=n(2271),a=n(7089),b=n(5381),g=n(29),d=n(9495),t=n(5547),i=n(5802);const s=["*"];function l(_,c){if(1&_){const o=t.RV6();t.j41(0,"div",2),t.bIt("input",function(v){i.eBV(o);const M=t.XpG();return i.Njj(M.onInput(v))})("blur",function(v){i.eBV(o);const M=t.XpG();return i.Njj(M.onInput(v))}),t.k0s()}if(2&_){const o=t.XpG();t.Aen(o.getStyles()),t.xc7("font-style",o.italic()?"italic":"normal"),t.Y8G("innerHTML",o.innerHTML(),t.npT)("contentEditable",o.editable())}}function f(_,c){if(1&_&&t.nrm(0,"cue-svg-icon",5),2&_){const o=t.XpG(2);t.xc7("--cue-icon-width",o.infoSize()+"px"),t.Y8G("cueTooltip",o.info())}}function h(_,c){if(1&_){const o=t.RV6();t.j41(0,"div",3),t.bIt("input",function(v){i.eBV(o);const M=t.XpG();return i.Njj(M.onInput(v))})("blur",function(v){i.eBV(o);const M=t.XpG();return i.Njj(M.onInput(v))}),t.SdG(1),t.k0s(),t.nVh(2,f,1,3,"cue-svg-icon",4)}if(2&_){const o=t.XpG();t.Aen(o.getStyles()),t.xc7("font-style",o.italic()?"italic":"normal"),t.Y8G("contentEditable",o.editable()),t.R7$(2),t.vxM(o.info()?2:-1)}}let p=(()=>{class _{_inlineInput=(0,r.sbv)(d.InlineInput);hasInlineInput=(0,e.EW)(()=>!!this._inlineInput());as=(0,r.hFB)("div");size=(0,r.hFB)("m");weight=(0,r.hFB)("regular");align=(0,r.hFB)("start");noWrap=(0,r.hFB)(!1);italic=(0,r.hFB)(!1);innerHTML=(0,r.hFB)(null);info=(0,r.hFB)("");editable=(0,r.hFB)(!1);change=(0,r.CGW)();onInput(o){this.editable()&&this.change.emit(o.target.innerText)}getStyles=(0,e.EW)(()=>`\n font-family: var(--cue-font-family);\n font-size: var(--cue-font-${this.size()}-size);\n line-height: var(--cue-font-${this.size()}-line-height);\n letter-spacing: var(--cue-font-${this.size()}-letter-spacing);\n font-weight: var(--cue-font-weight-${this.weight()});\n text-align: ${this.align()};\n ${this.noWrap()?"white-space: nowrap; overflow: hidden; text-overflow: ellipsis;":""}\n `);infoSize=(0,e.EW)(()=>{switch(this.size()){case"xs":return 10;case"s":return 12;case"m":default:return 14;case"l":return 16;case"xl":return 18}});static \u0275fac=function(u){return new(u||_)};static \u0275cmp=t.VBU({type:_,selectors:[["cue-typography"]],contentQueries:function(u,v,M){1&u&&t.C6U(M,v._inlineInput,d.InlineInput,5),2&u&&t.NyB()},inputs:{as:[1,"as"],size:[1,"size"],weight:[1,"weight"],align:[1,"align"],noWrap:[1,"noWrap"],italic:[1,"italic"],innerHTML:[1,"innerHTML"],info:[1,"info"],editable:[1,"editable"]},outputs:{change:"change"},ngContentSelectors:s,decls:3,vars:2,consts:[["justify","start","align","center",3,"noGap"],[3,"style","font-style","innerHTML","contentEditable"],[3,"input","blur","innerHTML","contentEditable"],[3,"input","blur","contentEditable"],["name","info",2,"margin-left","4px","vertical-align","super","cursor","pointer",3,"cueTooltip","--cue-icon-width"],["name","info",2,"margin-left","4px","vertical-align","super","cursor","pointer",3,"cueTooltip"]],template:function(u,v){1&u&&(t.NAR(),t.j41(0,"cue-flexcontainer",0),t.nVh(1,l,1,6,"div",1)(2,h,3,6),t.k0s()),2&u&&(t.Y8G("noGap",!0),t.R7$(),t.vxM(v.innerHTML()?1:2))},dependencies:[g.A,a.d,b.FlexContainer],encapsulation:2})}return _})()},2403(E,m,n){n.d(m,{V:()=>b});var r=n(7705),e=n(5547),a=n(5802);let b=(()=>{class g{el=(0,a.WQX)(e.aKT);renderer=(0,a.WQX)(e.sFG);cuePulse=(0,r.hFB)(!1);cuePulseColor=(0,r.hFB)("");cuePulseMode=(0,r.hFB)("border");activeClass="";constructor(){this.ensureGlobalStyles()}onPulseChanged=(0,a.QZP)(()=>{const t=this.cuePulse(),i=this.cuePulseColor(),s=this.cuePulseMode(),l=this.el.nativeElement;if(this.activeClass&&(this.renderer.removeClass(l,this.activeClass),this.activeClass=""),this.renderer.removeStyle(l,"--cue-pulse-color"),this.renderer.removeStyle(l,"border-radius"),t){const f="text"===s?"cue-pulse-text":"cue-pulse-border";this.renderer.addClass(l,f),this.activeClass=f,i&&this.renderer.setStyle(l,"--cue-pulse-color",i),"border"===s&&setTimeout(()=>{const h=l.firstElementChild;if(h){const p=getComputedStyle(h).borderRadius;p&&"0px"!==p&&this.renderer.setStyle(l,"border-radius",p)}})}});ngOnDestroy(){const t=this.el.nativeElement;this.activeClass&&this.renderer.removeClass(t,this.activeClass),this.renderer.removeStyle(t,"border-radius")}ensureGlobalStyles(){const t="cue-pulse-global-styles";if(document.getElementById(t))return;const i=document.createElement("style");i.id=t,i.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(i)}static \u0275fac=function(i){return new(i||g)};static \u0275dir=e.FsC({type:g,selectors:[["","cuePulse",""]],inputs:{cuePulse:[1,"cuePulse"],cuePulseColor:[1,"cuePulseColor"],cuePulseMode:[1,"cuePulseMode"]}})}return g})()}}]);
|
package/1153.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[1153],{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(63),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.Select,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.Select,T.Switch,p.d,m.Input,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.Checkbox,r.Input,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(63),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.Input,b.Select,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)}}}()}}]);
|
|
1
|
+
(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[1153,9695],{5661(G,P,o){"use strict";o.d(P,{pC:()=>L,pL:()=>ee,rx:()=>z});var g=o(7705),t=o(5547),d=o(5802),r=o(7598),_=o(2245),E=o(5381),S=o(5971),C=o(3319),v=o(7089),w=o(1096),l=o(9769),c=o(6642),i=o(9352);const h=m=>[m],e=(m,f)=>({$implicit:m,index:f});function u(m,f){if(1&m){const a=t.RV6();t.j41(0,"cue-table-column-settings-modal",9),t.bIt("updateColumn",function(s){const D=d.eBV(a),k=t.XpG();return d.Njj(k.updateColumnDef(D.index,s))})("close",function(){d.eBV(a);const s=t.XpG();return d.Njj(s.handleModalClose())}),t.k0s()}if(2&m){const a=f,p=t.XpG();t.Y8G("columnDef",a.col)("columnIndex",a.index)("settings",p.settings())}}function y(m,f){1&m&&t.eu8(0)}function b(m,f){if(1&m&&t.DNE(0,y,1,0,"ng-container",13),2&m){const a=t.XpG(),p=a.$implicit,s=a.$index;t.Y8G("ngTemplateOutlet",f.templateRef)("ngTemplateOutletContext",t.l_i(2,e,p,s))}}function F(m,f){if(1&m){const a=t.RV6();t.j41(0,"cue-button",14),t.nI1(1,"transloco"),t.bIt("click",function(){d.eBV(a);const s=t.XpG(),D=s.$implicit,k=s.$index,R=t.XpG();return d.Njj(R.showColumnSettings(D,k))}),t.nrm(2,"cue-button-icon",15),t.k0s()}2&m&&t.Y8G("cueTooltip",t.bMT(1,1,"components.agGridColumnSelect.tooltipSettings"))}function j(m,f){if(1&m&&(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,b,1,5,"ng-container"),t.nVh(6,F,3,3,"cue-button",12),t.k0s()()),2&m){let a;const p=f.$implicit,s=t.XpG();t.R7$(3),t.JRh(s.getLabel(p)),t.R7$(2),t.vxM((a=s.columnItemTpl())?5:-1,a),t.R7$(),t.vxM(s.settings().allowEditing?6:-1)}}function I(m,f){1&m&&t.eu8(0)}function U(m,f){1&m&&t.DNE(0,I,1,0,"ng-container",16),2&m&&t.Y8G("ngTemplateOutlet",f.templateRef)}function Y(m,f){if(1&m&&(t.j41(0,"div",8)(1,"cue-typography"),t.EFF(2),t.k0s()()),2&m){const a=f.$implicit,p=t.XpG();t.R7$(2),t.JRh(p.getLabel(a))}}let L=(()=>{class m{templateRef=(0,d.WQX)(t.C4Q);static ngTemplateContextGuard(a,p){return!0}static \u0275fac=function(p){return new(p||m)};static \u0275dir=t.FsC({type:m,selectors:[["","cueColumnItem",""]]})}return m})(),z=(()=>{class m{templateRef=(0,d.WQX)(t.C4Q);static \u0275fac=function(p){return new(p||m)};static \u0275dir=t.FsC({type:m,selectors:[["","cueColumnListFooter",""]]})}return m})(),ee=(()=>{class m{columnDefs=g.geq.required();columnDefsGross=(0,g.geq)([]);settings=(0,g.hFB)(new w.e);shown=(0,g.CGW)();columnItemTpl=(0,g.sbv)(L);columnListFooterTpl=(0,g.sbv)(z);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 a=this.columnDefs().map(s=>s.field),p=this.columnDefsGross().filter(s=>!a.includes(s.field));this.shownColumns.update(()=>[...this.columnDefs()]),this.hiddenColumns.update(()=>[...p])});drop(a){a.previousContainer===a.container?(0,r.HD)(a.container.data,a.previousIndex,a.currentIndex):(0,r.eg)(a.previousContainer.data,a.container.data,a.previousIndex,a.currentIndex);const p=this.shownColumns();this.columnDefs.update(()=>[...p]),this.shown.emit(p)}showColumnSettings(a,p){this.displayColumnSettings.set({col:a,index:p})}updateColumnDef(a,p){const s=this.columnDefs().map((D,k)=>k===a?{...D,...p}:D);this.columnDefs.set(s),this.shown.emit(s),this.shownColumns.set(s)}getLabel(a){return a.headerName||(0,c.x)(a.field)||"Unknown"}handleModalClose(){this.displayColumnSettings.set(void 0)}static \u0275fac=function(p){return new(p||m)};static \u0275cmp=t.VBU({type:m,selectors:[["cue-ag-grid-column-select"]],contentQueries:function(p,s,D){1&p&&t.C6U(D,s.columnItemTpl,L,5)(D,s.columnListFooterTpl,z,5),2&p&&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(p,s){if(1&p&&(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(k){return s.drop(k)}),t.Z7z(11,j,7,3,"div",8,t.Vm6),t.nVh(13,U,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(k){return s.drop(k)}),t.Z7z(20,Y,3,1,"div",8,t.Vm6),t.k0s()()()),2&p){let D,k;const R=t.sdS(10),A=t.sdS(19);t.vxM((D=s.displayColumnSettings())?0:-1,D),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 $=s.shownColumns();t.R7$(2),t.Y8G("cdkDropListData",$)("cdkDropListConnectedTo",t.eq3(15,h,A)),t.R7$(2),t.Dyx($),t.R7$(2),t.vxM((k=s.columnListFooterTpl())?13:-1,k),t.R7$(3),t.JRh(t.bMT(17,13,"components.agGridColumnSelect.titleHidden"));const N=s.hiddenColumns();t.R7$(2),t.Y8G("cdkDropListData",N)("cdkDropListConnectedTo",t.eq3(17,h,R)),t.R7$(2),t.Dyx(N)}},dependencies:[r.O7,r.T1,_.Typography,E.FlexContainer,S.Button,C.ButtonIcon,v.d,w.T,l.T3,i.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 m})()},1096(G,P,o){"use strict";o.d(P,{e:()=>ue,T:()=>me});var g=o(7705),t=o(2271),d=o(9352),r=o(2245),_=o(5381),E=o(63),S=o(9695),C=o(5745),v=o(8957),w=o(5971),l=o(3319),c=o(5764),i=o(5802),h=o(7089),e=o(5547);let u=(()=>{class M{_value=(0,i.vPA)("");_options=(0,i.vPA)([]);_disabled=(0,i.vPA)(!1);_disabledTooltip=(0,i.vPA)("");_canChange=(0,i.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 T=String(n),x=this._canChange();x&&!x(T)||(this._value.set(T),this._params.setValue?.(T))}_apply(n){this._params=n,this._value.set(n.value??"");const T="function"==typeof n.colDef?.cellRendererParams?n.colDef.cellRendererParams(n):n.colDef?.cellRendererParams??{};this._options.set(T.options??[]),this._disabled.set(T.disabled??!1),this._disabledTooltip.set(T.disabledTooltip??""),this._canChange.set(T.canChange??void 0)}static \u0275fac=function(T){return new(T||M)};static \u0275cmp=e.VBU({type:M,selectors:[["cue-select-cell-renderer"]],decls:1,vars:7,consts:[[3,"valueChange","options","labelMap","value","underline","menuPosition","disabled","cueTooltip"]],template:function(T,x){1&T&&(e.j41(0,"cue-select",0),e.bIt("valueChange",function(_e){return x.onValueChange(_e)}),e.k0s()),2&T&&e.Y8G("options",x._optionValues())("labelMap",x._labelMap())("value",x._value())("underline",!1)("menuPosition","bottomleft")("disabled",x._disabled())("cueTooltip",x._disabled()?x._disabledTooltip():"")},dependencies:[E.Select,h.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 M})();var y=o(7374),b=o.n(y),F=o(4955),j=o.n(F),I=o(5164),U=o.n(I);o(9785),o(2269),o(1409),o(4230),o(2494),o(9531),b().extend(j()),b().extend(U());let a=(()=>{class M{_transloco=(0,i.WQX)(d.JO);transform(n,T="dateTime"){if(!n)return"";const x=this._transloco.getActiveLang(),O=b()(n).locale(x);return"timeAgo"===T?O.fromNow():O.format("date"===T?"LL":"shortDate"===T?"L":"LLL")}static \u0275fac=function(T){return new(T||M)};static \u0275pipe=e.EJ8({name:"cueLocalDate",type:M,pure:!0})}return M})(),p=(()=>{class M{_value=(0,i.vPA)("");_format=(0,i.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(T){return new(T||M)};static \u0275cmp=e.VBU({type:M,selectors:[["cue-date-cell-renderer"]],decls:2,vars:4,template:function(T,x){1&T&&(e.EFF(0),e.nI1(1,"cueLocalDate")),2&T&&e.JRh(e.i5U(1,1,x._value(),x._format()))},dependencies:[a],encapsulation:2,changeDetection:0})}return M})();const s=["*"];function D(M,B){1&M&&e.SdG(0)}let k=(()=>{class M{label=g.hFB.required();expanded=(0,g.geq)(!1);size=(0,g.hFB)("m");info=(0,g.hFB)("");expandToggled=(0,g.CGW)();toggle(){this.expanded.set(!this.expanded()),this.expandToggled.emit(this.expanded())}static \u0275fac=function(T){return new(T||M)};static \u0275cmp=e.VBU({type:M,selectors:[["cue-expansion-panel"]],inputs:{label:[1,"label"],expanded:[1,"expanded"],size:[1,"size"],info:[1,"info"]},outputs:{expanded:"expandedChange",expandToggled:"expandToggled"},ngContentSelectors:s,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(T,x){1&T&&(e.NAR(),e.j41(0,"cue-flexcontainer",0)(1,"cue-flexcontainer",1),e.bIt("click",function(){return x.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,D,1,0),e.k0s()),2&T&&(e.R7$(2),e.Y8G("size",x.size())("info",x.info()),e.R7$(),e.JRh(x.label()),e.R7$(),e.Y8G("size",x.size()),e.R7$(),e.AVh("rotate",!0)("rotate-180",x.expanded()),e.R7$(2),e.vxM(x.expanded()?7:-1))},dependencies:[r.Typography,_.FlexContainer,w.Button,l.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 M})();var R=o(6642),A=o(3183),$=o(5902),N=o(7400);const W=["*",[["","cueDisplayContent",""]],[["","cueDataContent",""]],[["","cueBehaviorContent",""]],[["","cueExtraContent",""]]],J=["*","[cueDisplayContent]","[cueDataContent]","[cueBehaviorContent]","[cueExtraContent]"],H=(M,B)=>B.name;function Q(M,B){if(1&M){const n=e.RV6();e.j41(0,"cue-input",7),e.nI1(1,"transloco"),e.bIt("valueChange",function(x){i.eBV(n);const O=e.XpG(2);return i.Njj(O.setLabel(x))}),e.k0s()}if(2&M){const n=e.XpG(2);e.Y8G("label",e.bMT(1,2,"components.agGridColumnSelect.labelLabel"))("value",n.label())}}function K(M,B){if(1&M){const n=e.RV6();e.j41(0,"cue-button",11),e.bIt("click",function(){const x=i.eBV(n).$implicit,O=e.XpG(3);return i.Njj(O.setTextAlign(x))}),e.nrm(1,"cue-button-icon",12),e.k0s()}if(2&M){const n=B.$implicit,T=e.XpG(3);e.Y8G("selected",T.textAlign()===n),e.R7$(),e.Y8G("icon",T.ALIGN_ICON[n])}}function V(M,B){if(1&M&&(e.j41(0,"cue-typography",8),e.EFF(1),e.nI1(2,"transloco"),e.k0s(),e.j41(3,"cue-flexcontainer",9),e.Z7z(4,K,2,2,"cue-button",10,e.Vm6),e.k0s()),2&M){const n=e.XpG(2);e.R7$(),e.SpI(" ",e.bMT(2,1,"components.agGridColumnSelect.labelTextAlign")," "),e.R7$(3),e.Dyx(n.alignOptions)}}function X(M,B){if(1&M){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(x){i.eBV(n);const O=e.XpG(2);return i.Njj(O.setMultiline(x))}),e.k0s()()}if(2&M){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 Z(M,B){if(1&M&&(e.j41(0,"cue-expansion-panel",2),e.nI1(1,"transloco"),e.j41(2,"cue-flexcontainer",4),e.nVh(3,Q,2,4,"cue-input",5),e.nVh(4,V,6,3),e.nVh(5,X,6,7,"cue-flexcontainer",6),e.SdG(6,1),e.k0s()()),2&M){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 q(M,B){if(1&M){const n=e.RV6();e.j41(0,"cue-select",16),e.nI1(1,"transloco"),e.bIt("valueChange",function(x){i.eBV(n);const O=e.XpG(2);return i.Njj(O.setFilterType(x))}),e.k0s()}if(2&M){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(M,B){if(1&M){const n=e.RV6();e.j41(0,"cue-input",7),e.nI1(1,"transloco"),e.bIt("valueChange",function(x){i.eBV(n);const O=e.XpG(2);return i.Njj(O.setEnumValues(x))}),e.k0s()}if(2&M){const n=e.XpG(2);e.Y8G("label",e.bMT(1,2,"components.agGridColumnSelect.labelEnumValues"))("value",n.enumValuesText())}}function ne(M,B){if(1&M){const n=e.RV6();e.j41(0,"cue-select",16),e.bIt("valueChange",function(x){i.eBV(n);const O=e.XpG(3);return i.Njj(O.setDateFormat(x))}),e.k0s()}if(2&M){const n=e.XpG(3);e.Y8G("label",n._labelDateFormat())("value",n.dateFormat())("options",n.dateFormatOptions)("labelMap",n.dateFormatLabelMap())}}function ie(M,B){if(1&M){const n=e.RV6();e.j41(0,"cue-select",16),e.bIt("valueChange",function(x){i.eBV(n);const O=e.XpG(2);return i.Njj(O.setDataType(x))}),e.k0s(),e.nVh(1,ne,1,4,"cue-select",15)}if(2&M){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 oe(M,B){if(1&M&&(e.j41(0,"cue-expansion-panel",3),e.nI1(1,"transloco"),e.j41(2,"cue-flexcontainer",4),e.nVh(3,q,2,6,"cue-select",15),e.nVh(4,te,2,4,"cue-input",5),e.nVh(5,ie,2,5),e.SdG(6,2),e.k0s()()),2&M){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 ae(M,B){if(1&M){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(x){i.eBV(n);const O=e.XpG();return i.Njj(O.setEditable(x))}),e.k0s()(),e.SdG(9,3),e.k0s()()}if(2&M){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 re(M,B){if(1&M&&(e.j41(0,"cue-expansion-panel",2)(1,"cue-flexcontainer",4),e.SdG(2,4),e.k0s()()),2&M){const n=e.XpG();e.Y8G("label",n.extraPanelLabel())("expanded",n.extraPanelExpanded())}}function se(M,B){if(1&M&&(e.j41(0,"cue-typography",19),e.EFF(1),e.nI1(2,"transloco"),e.j41(3,"strong"),e.EFF(4),e.k0s()()),2&M){const n=e.XpG(2);e.R7$(),e.SpI(" ",e.bMT(2,2,"components.agGridColumnSelect.labelPostProcessPreview"),": "),e.R7$(3),e.JRh(n.postProcessFormulaPreview())}}function le(M,B){if(1&M&&(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&M){const n=B.$implicit;e.R7$(2),e.JRh(n.signature),e.R7$(2),e.JRh(n.description)}}function ce(M,B){if(1&M){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(x){i.eBV(n);const O=e.XpG();return i.Njj(O.setPostProcessFormula(x))}),e.k0s(),e.nVh(7,se,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,le,5,2,"cue-flexcontainer",21,H),e.k0s()()()()}if(2&M){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:$.U,Number:"agNumberColumnFilter",Date:"agDateColumnFilter",Select:A.A,None:!1,Auto:!0},pe={agTextColumnFilter:"Text",agNumberColumnFilter:"Number",agDateColumnFilter:"Date",false:"None",true:"Auto"};let me=(()=>{class M{columnDef=g.geq.required();columnIndex=(0,g.hFB)();updateColumn=(0,g.CGW)();close=(0,g.CGW)();settings=g.hFB.required();extraPanelLabel=(0,g.hFB)();extraPanelExpanded=(0,g.hFB)(!0);minWidth=(0,g.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===p||"DateCellRenderer"===n?"date":"text"});dateFormat=(0,t.EW)(()=>{const n=this.columnDef().cellRenderer;return n===p||"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===c.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.A?"Select":n===$.U?"Text":pe[n]||"Auto"});enumValuesText=(0,t.EW)(()=>(this.columnDef().cellRendererParams?.options??[]).map(T=>T.value).join(", "));label=(0,t.EW)(()=>this.columnDef().headerName||(0,R.x)(this.columnDef().field)||"Unknown");setEditable(n){const T=this.columnDef().cellRendererParams;this.updateColumn.emit(T?.options?.length?{editable:n,cellRendererParams:{...T,disabled:!n}}:{editable:n})}setMultiline(n){this.updateColumn.emit({cellRenderer:n?c.l:void 0,cellRendererParams:{lineHeight:"1.8"},autoHeight:!0})}setLabel(n){this.updateColumn.emit({headerName:n})}setTextAlign(n){const T=this.columnDef().cellStyle||{};this.updateColumn.emit({cellStyle:{...T,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 T=n.split(",").map(x=>x.trim()).filter(x=>x.length>0);if(0===T.length)this.updateColumn.emit({cellRenderer:void 0,cellRendererParams:void 0});else{const x=T.map(O=>({value:O,label:O}));this.updateColumn.emit({cellRenderer:u,cellRendererParams:{options:x,disabled:!this.editable()}})}}setDateFormat(n){n&&this.updateColumn.emit({cellRenderer:p,cellRendererParams:{dateFormat:n}})}setDataType(n){this.updateColumn.emit("date"===n?{cellRenderer:p,cellRendererParams:{dateFormat:"dateTime"}}:{cellRenderer:void 0,cellRendererParams:void 0})}formulaFunctions=N.Zv;postProcessFormula=(0,t.EW)(()=>(0,N.PH)(this.columnDef().postProcess));postProcessFormulaError=(0,t.EW)(()=>(0,N.NF)(this.postProcessFormula()));postProcessFormulaPreview=(0,t.EW)(()=>{const n=this.postProcessFormula();return!n||this.postProcessFormulaError()?"":(0,N.w9)(n,"42")});setPostProcessFormula(n){const T=n.trim();this.updateColumn.emit({postProcess:T?{type:"formula",expression:T}:void 0})}static \u0275fac=function(T){return new(T||M)};static \u0275cmp=e.VBU({type:M,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:J,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(T,x){1&T&&(e.NAR(W),e.j41(0,"cue-modal",0),e.nI1(1,"transloco"),e.bIt("close",function(){return x.close.emit()}),e.j41(2,"cue-flexcontainer",1),e.nVh(3,Z,7,7,"cue-expansion-panel",2),e.nVh(4,oe,7,6,"cue-expansion-panel",3),e.nVh(5,ae,10,10,"cue-expansion-panel",3),e.nVh(6,re,3,2,"cue-expansion-panel",2),e.nVh(7,ce,13,19,"cue-expansion-panel",3),e.SdG(8),e.k0s()()),2&T&&(e.Y8G("label",e.bMT(1,7,"components.agGridColumnSelect.titleColumnSettings"))("minWidth",x.minWidth()),e.R7$(3),e.vxM(x.settings().allowSettingLabel||x.settings().allowSettingTextAlign||x.settings().allowSettingMultiline?3:-1),e.R7$(),e.vxM(x.settings().allowSettingFilterType||x.settings().allowSettingEnumValues||x.settings().allowSettingDataType?4:-1),e.R7$(),e.vxM(x.settings().allowToggleEditable?5:-1),e.R7$(),e.vxM(x.extraPanelLabel()?6:-1),e.R7$(),e.vxM(x.settings().allowSettingPostProcess?7:-1))},dependencies:[C.a,_.FlexContainer,r.Typography,E.Select,S.Switch,h.d,v.Input,w.Button,l.ButtonIcon,k,d.Kj],encapsulation:2,changeDetection:0})}return M})()},6642(G,P,o){"use strict";function g(t){if(t)return t.replace(/([A-Z])/g," $1").replace(/^./,d=>d.toUpperCase())}o.d(P,{x:()=>g})},3183(G,P,o){"use strict";o.d(P,{A:()=>i});var g=o(7705),t=o(5802),d=o(9417),r=o(1359),_=o(8957),E=o(2245),S=o(5381),C=o(5547);const v=(h,e)=>e.value;function w(h,e){if(1&h){const u=C.RV6();C.j41(0,"cue-input",6),C.bIt("valueChange",function(b){t.eBV(u);const F=C.XpG();return F.searchText=b,t.Njj(F.onSearchChange())}),C.k0s()}if(2&h){const u=C.XpG();C.Y8G("value",u.searchText)}}function l(h,e){if(1&h){const u=C.RV6();C.j41(0,"cue-checkbox",7),C.bIt("checkedChange",function(b){const F=t.eBV(u).$implicit,j=C.XpG();return F.selected=b,t.Njj(j.onSelectionChange())}),C.k0s()}if(2&h){const u=e.$implicit;C.Y8G("label",u.value||"(blank)")("checked",u.selected)}}function c(h,e){1&h&&(C.j41(0,"cue-typography",5),C.EFF(1,"No results"),C.k0s())}let i=(()=>{class h{_cdr=(0,t.WQX)(g.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 y=new Set(this.options.filter(I=>I.selected).map(I=>I.value)),b=this._params.getValue(u.node),F=null==b?"":String(b);return"..."===F||"Loading..."===F||(""===F?y.has(""):F.split(", ").map(I=>I.trim()).some(I=>y.has(I)))}getModel(){return this.isFilterActive()?{selectedValues:this.options.filter(u=>u.selected).map(u=>u.value)}:null}setModel(u){if(u){const y=new Set(u.selectedValues);this.options.forEach(b=>b.selected=y.has(b.value))}else this.options.forEach(y=>y.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(y=>y.selected=u),this._applySearch(),this._params.filterChangedCallback(),this._cdr.markForCheck()}_refreshOptions(){const u=new Set;this._params.api.forEachNode(b=>{const F=this._params.getValue(b);if(null==F||""===F)u.add("");else{const j=String(F);if("..."===j||"Loading..."===j)return;const I=j.split(", ").map(U=>U.trim());for(const U of I)u.add(U)}});const y=new Map(this.options.map(b=>[b.value,b.selected]));this.options=Array.from(u).sort((b,F)=>b.localeCompare(F)).map(b=>({value:b,selected:y.get(b)??!0})),this._applySearch()}_applySearch(){const u=this.searchText.toLowerCase().trim();this.filteredOptions=u?this.options.filter(y=>y.value.toLowerCase().includes(u)):this.options}static \u0275fac=function(y){return new(y||h)};static \u0275cmp=C.VBU({type:h,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(y,b){1&y&&(C.j41(0,"cue-flexcontainer",0),C.nVh(1,w,1,1,"cue-input",1),C.j41(2,"cue-checkbox",2),C.bIt("checkedChange",function(j){return b.toggleAll(j)}),C.k0s(),C.j41(3,"div",3),C.Z7z(4,l,1,2,"cue-checkbox",4,v),C.nVh(6,c,2,0,"cue-typography",5),C.k0s()()),2&y&&(C.R7$(),C.vxM(b.options.length>10?1:-1),C.R7$(),C.Y8G("checked",b.allSelected),C.R7$(2),C.Dyx(b.filteredOptions),C.R7$(2),C.vxM(0===b.filteredOptions.length?6:-1))},dependencies:[d.YN,r.Checkbox,_.Input,E.Typography,S.FlexContainer],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 h})()},5902(G,P,o){"use strict";o.d(P,{U:()=>c});var g=o(7705),t=o(5802),d=o(2271),r=o(9352),_=o(8957),E=o(63),S=o(2245),C=o(5381),v=o(5547);function w(i,h){if(1&i){const e=v.RV6();v.j41(0,"cue-input",4),v.bIt("valueChange",function(y){t.eBV(e);const b=v.XpG();return t.Njj(b.onValueChange(y))}),v.k0s()}if(2&i){const e=v.XpG();v.Y8G("value",e.filterText)}}function l(i,h){if(1&i){const e=v.RV6();v.j41(0,"cue-typography",5),v.bIt("click",function(){t.eBV(e);const y=v.XpG();return t.Njj(y.clear())}),v.EFF(1,"Clear"),v.k0s()}}let c=(()=>{class i{_cdr=(0,t.WQX)(g.gRc);_params;filterText="";filterType="contains";filterTypeOptions=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"];_labelContains=(0,r.Xx)("components.agGridColumnSelect.textFilterContains");_labelNotContains=(0,r.Xx)("components.agGridColumnSelect.textFilterNotContains");_labelEquals=(0,r.Xx)("components.agGridColumnSelect.textFilterEquals");_labelNotEqual=(0,r.Xx)("components.agGridColumnSelect.textFilterNotEqual");_labelStartsWith=(0,r.Xx)("components.agGridColumnSelect.textFilterStartsWith");_labelEndsWith=(0,r.Xx)("components.agGridColumnSelect.textFilterEndsWith");_labelBlank=(0,r.Xx)("components.agGridColumnSelect.textFilterBlank");_labelNotBlank=(0,r.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 u=this._params.getValue(e.node),y=null==u?"":String(u),b=this.filterText.toLowerCase().trim(),F=y.toLowerCase();switch(this.filterType){case"contains":default:return F.includes(b);case"notContains":return!F.includes(b);case"equals":return F===b;case"notEqual":return F!==b;case"startsWith":return F.startsWith(b);case"endsWith":return F.endsWith(b);case"blank":return""===y;case"notBlank":return""!==y}}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||i)};static \u0275cmp=v.VBU({type:i,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,y){1&u&&(v.j41(0,"cue-flexcontainer",0)(1,"cue-select",1),v.bIt("valueChange",function(F){return y.onFilterTypeChange(F)}),v.k0s(),v.nVh(2,w,1,1,"cue-input",2),v.nVh(3,l,2,0,"cue-typography",3),v.k0s()),2&u&&(v.R7$(),v.Y8G("value",y.filterType)("options",y.filterTypeOptions)("labelMap",y.filterTypeLabelMap()),v.R7$(),v.vxM(y.showTextInput()?2:-1),v.R7$(),v.vxM(y.filterText||"contains"!==y.filterType?3:-1))},dependencies:[_.Input,E.Select,S.Typography,C.FlexContainer],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 i})()},5764(G,P,o){"use strict";o.d(P,{l:()=>t});var g=o(5547);let t=(()=>{class d{value="";lineHeight="1.5";agInit(_){this.value=_.value||"",this.lineHeight=_.colDef&&_.colDef.cellRendererParams&&_.colDef.cellRendererParams.lineHeight||_.context&&_.context.lineHeight||"1.5"}refresh(_){return this.value=_.value||"",!0}static \u0275fac=function(E){return new(E||d)};static \u0275cmp=g.VBU({type:d,selectors:[["cue-multiline-cell-renderer"]],decls:2,vars:3,consts:[[1,"multiline-cell"]],template:function(E,S){1&E&&(g.rj2(0,"div",0),g.EFF(1),g.eux()),2&E&&(g.xc7("line-height",S.lineHeight),g.R7$(),g.JRh(S.value))},styles:[".multiline-cell[_ngcontent-%COMP%]{white-space:pre-wrap;word-wrap:break-word;padding:4px 2px;text-align:left}"]})}return d})()},9695(G,P,o){"use strict";o.d(P,{Switch:()=>E});var g=o(7705),t=o(29),d=o(5547);function r(S,C){if(1&S&&d.nrm(0,"cue-svg-icon",2),2&S){const v=d.XpG();d.Y8G("name",v.iconChecked())}}function _(S,C){if(1&S&&d.nrm(0,"cue-svg-icon",2),2&S){const v=d.XpG();d.Y8G("name",v.icon())}}let E=(()=>{class S{size=(0,g.hFB)("m");icon=(0,g.hFB)(void 0);iconChecked=(0,g.hFB)(void 0);disabled=(0,g.hFB)(!1);checked=(0,g.geq)(!1);toggleChange=(0,g.CGW)();toggle(){this.checked.set(!this.checked()),this.toggleChange.emit(this.checked())}static \u0275fac=function(w){return new(w||S)};static \u0275cmp=d.VBU({type:S,selectors:[["cue-input-switch"]],hostVars:5,hostBindings:function(w,l){2&w&&(d.BMQ("size",l.size()),d.AVh("checked",l.checked())("disabled",l.disabled()))},inputs:{size:[1,"size"],icon:[1,"icon"],iconChecked:[1,"iconChecked"],disabled:[1,"disabled"],checked:[1,"checked"]},outputs:{checked:"checkedChange",toggleChange:"toggleChange"},decls:4,vars:3,consts:[["type","checkbox",3,"click","checked","disabled"],[1,"indicator"],[3,"name"]],template:function(w,l){1&w&&(d.j41(0,"input",0),d.bIt("click",function(){return l.toggle()}),d.k0s(),d.j41(1,"div",1),d.nVh(2,r,1,1,"cue-svg-icon",2)(3,_,1,1,"cue-svg-icon",2),d.k0s()),2&w&&(d.Y8G("checked",l.checked())("disabled",l.disabled()),d.R7$(2),d.vxM(l.checked()&&l.iconChecked()?2:l.icon()?3:-1))},dependencies:[t.A],styles:["[_nghost-%COMP%]{--cue-input-switch-height: 18px;--cue-input-switch-width: calc(var(--cue-input-switch-height) * 1.7);--cue-input-switch-inset: 2px;--cue-input-switch-indicator-width: calc( var(--cue-input-switch-height) - (2 * var(--cue-input-switch-inset)) );--cue-input-switch-icon-width: calc( var(--cue-input-switch-indicator-width) - (2 * var(--cue-input-switch-inset)) );display:block;flex-shrink:0;position:relative;height:var(--cue-input-switch-height);width:var(--cue-input-switch-width);border-radius:var(--cue-input-switch-height);--cue-icon-width: var(--cue-input-switch-icon-width);background:var(--cue-input-switch-background);transition:background-color .4s ease}[size=xs][_nghost-%COMP%]{--cue-input-switch-height: 12px;--cue-input-switch-inset: 1px}[size=s][_nghost-%COMP%]{--cue-input-switch-height: 14px;--cue-input-switch-inset: 1px}[size=m][_nghost-%COMP%]{--cue-input-switch-height: 18px;--cue-input-switch-inset: 2px}[size=l][_nghost-%COMP%]{--cue-input-switch-height: 22px;--cue-input-switch-inset: 3px}[size=xl][_nghost-%COMP%]{--cue-input-switch-height: 28px;--cue-input-switch-inset: 3px}@container cue-container (width < 20em){[_nghost-%COMP%]{--cue-input-switch-height: 16px}[size=xs][_nghost-%COMP%]{--cue-input-switch-height: 10px}[size=s][_nghost-%COMP%]{--cue-input-switch-height: 12px}[size=m][_nghost-%COMP%]{--cue-input-switch-height: 16px}[size=l][_nghost-%COMP%]{--cue-input-switch-height: 18px}[size=xl][_nghost-%COMP%]{--cue-input-switch-height: 20px}}.checked[_nghost-%COMP%]{background:var(--cue-input-switch-checked-background)}.disabled[_nghost-%COMP%]{background:var(--cue-input-switch-disabled-background);cursor:default}[_nghost-%COMP%] .indicator[_ngcontent-%COMP%]{pointer-events:none;position:absolute;left:var(--cue-input-switch-inset);top:var(--cue-input-switch-inset);width:var(--cue-input-switch-indicator-width);aspect-ratio:1;border-radius:50%;display:flex;align-items:center;justify-content:center;background-color:var(--cue-input-switch-indicator-background);color:var(--cue-input-switch-indicator-foreground);transition:left .4s ease,background-color .4s ease,color .4s ease}.checked[_nghost-%COMP%] .indicator[_ngcontent-%COMP%]{left:calc(var(--cue-input-switch-width) - var(--cue-input-switch-inset) - var( --cue-input-switch-indicator-width ));background:var(--cue-input-switch-checked-indicator-background);color:var(--cue-input-switch-checked-indicator-foreground)}.disabled[_nghost-%COMP%] .indicator[_ngcontent-%COMP%]{background:var(--cue-input-switch-disabled-indicator-background);color:var(--cue-input-switch-disabled-indicator-foreground)}input[_ngcontent-%COMP%]{all:unset;position:absolute;inset:0;cursor:pointer;border-radius:var(--cue-input-switch-height)}input[_ngcontent-%COMP%]:focus-visible:not(:disabled) + .indicator[_ngcontent-%COMP%]{outline:1px solid var(--cue-input-switch-focus-color);outline-offset:2px}"]})}return S})()},5745(G,P,o){"use strict";o.d(P,{a:()=>i});var g=o(7705),t=o(5802),d=o(2271),r=o(5547);const _=["dialog"],E=["*",[["","modal-footer",""]]],S=["*","[modal-footer]"];function C(h,e){if(1&h&&(r.rj2(0,"h2",7),r.EFF(1),r.eux()),2&h){const u=r.XpG(3);r.R7$(),r.JRh(u.effectiveTitle())}}function v(h,e){if(1&h&&(r.rj2(0,"p",8),r.EFF(1),r.eux()),2&h){const u=r.XpG(3);r.R7$(),r.JRh(u.subtitle())}}function w(h,e){if(1&h){const u=r.RV6();r.rj2(0,"button",10),r.VwU("click",function(){t.eBV(u);const b=r.XpG(3);return t.Njj(b.onClose())}),t.qSk(),r.rj2(1,"svg",11),r.Hgh(2,"path",12),r.eux()()}}function l(h,e){if(1&h&&(r.rj2(0,"div",4)(1,"div",6),r.nVh(2,C,2,1,"h2",7),r.nVh(3,v,2,1,"p",8),r.eux(),r.nVh(4,w,3,0,"button",9),r.eux()),2&h){const u=r.XpG(2);r.R7$(2),r.vxM(u.effectiveTitle()?2:-1),r.R7$(),r.vxM(u.subtitle()?3:-1),r.R7$(),r.vxM(u.displayCloseBtn()?4:-1)}}function c(h,e){if(1&h&&(r.rj2(0,"div",3),r.VwU("click",function(y){return y.stopPropagation()}),r.nVh(1,l,5,3,"div",4),r.rj2(2,"div",5),r.SdG(3),r.eux(),r.SdG(4,1),r.eux()),2&h){const u=r.XpG();r.xc7("min-width",u.minWidth()),r.AVh("has-header",u.effectiveTitle()||u.displayCloseBtn()),r.R7$(),r.vxM(u.effectiveTitle()||u.displayCloseBtn()?1:-1)}}let i=(()=>{class h{visible=(0,g.geq)(!0);closeOnBackgroundClick=(0,g.hFB)(!0);displayCloseBtn=(0,g.hFB)(!0);label=(0,g.hFB)("");title=(0,g.hFB)("");subtitle=(0,g.hFB)("");minWidth=(0,g.hFB)();close=(0,g.CGW)();dialogRef=g.ebz.required("dialog");effectiveTitle=(0,d.EW)(()=>this.title()||this.label());constructor(){(0,t.QZP)(()=>{const u=this.dialogRef().nativeElement;this.visible()?u.open||u.showModal():u.open&&u.close()})}onBackdropClick(){this.closeOnBackgroundClick()&&this.onClose()}onClose(){this.visible.set(!1),this.close.emit()}static \u0275fac=function(y){return new(y||h)};static \u0275cmp=r.VBU({type:h,selectors:[["cue-modal"]],viewQuery:function(y,b){1&y&&r.wEZ(b.dialogRef,_,5),2&y&&r.NyB()},inputs:{visible:[1,"visible"],closeOnBackgroundClick:[1,"closeOnBackgroundClick"],displayCloseBtn:[1,"displayCloseBtn"],label:[1,"label"],title:[1,"title"],subtitle:[1,"subtitle"],minWidth:[1,"minWidth"]},outputs:{visible:"visibleChange",close:"close"},ngContentSelectors:S,decls:3,vars:1,consts:[["dialog",""],[1,"modal-dialog",3,"cancel","click"],[1,"panel",3,"has-header","minWidth"],[1,"panel",3,"click"],[1,"header"],[1,"body"],[1,"header-text"],[1,"modal-title"],[1,"modal-subtitle"],["type","button","aria-label","Close",1,"close-btn"],["type","button","aria-label","Close",1,"close-btn",3,"click"],["viewBox","0 0 256 256","xmlns","http://www.w3.org/2000/svg"],["fill","currentColor","d","M205.66 194.34a8 8 0 0 1-11.32 11.32L128 139.31l-66.34 66.35a8 8 0 0 1-11.32-11.32L116.69 128L61.34 72.66a8 8 0 0 1 11.32-11.32L128 116.69l66.34-66.35a8 8 0 0 1 11.32 11.32L139.31 128Z"]],template:function(y,b){1&y&&(r.NAR(E),r.rj2(0,"dialog",1,0),r.VwU("cancel",function(){return b.onClose()})("click",function(){return b.onBackdropClick()}),r.nVh(2,c,5,5,"div",2),r.eux()),2&y&&(r.R7$(2),r.vxM(b.visible()?2:-1))},styles:[".modal-dialog[_ngcontent-%COMP%]{padding:0;border:none;background:transparent;overflow:visible;margin:auto;outline:none;max-width:min(calc(100vw - 32px),80vw)}.modal-dialog[_ngcontent-%COMP%]::backdrop{background-color:var(--cue-modal-overlay-color, rgba(14, 24, 39, .55));-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.panel[_ngcontent-%COMP%]{background:var(--cue-default);color:var(--cue-defaultContrast);border-radius:24px;border:1px solid var(--cue-border-color);box-shadow:0 12px 48px #00000047;max-height:88vh;overflow-y:auto;overflow-x:hidden;box-sizing:border-box;scrollbar-width:thin}.header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:12px;padding:26px 26px 0;margin-bottom:20px}.header-text[_ngcontent-%COMP%]{flex:1}.modal-title[_ngcontent-%COMP%]{margin:0;font-size:20px;font-weight:700;letter-spacing:-.01em;font-family:var(--cue-font-family);color:var(--cue-defaultContrast)}.modal-subtitle[_ngcontent-%COMP%]{margin:5px 0 0;font-size:13px;color:var(--cue-color-midgray);letter-spacing:.02em;line-height:1.5}.close-btn[_ngcontent-%COMP%]{flex:none;width:34px;height:34px;border-radius:50%;border:none;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--cue-color-midgray);padding:0;margin-top:-4px;transition:background .15s,color .15s}.close-btn[_ngcontent-%COMP%]:hover{background:var(--cue-main-background);color:var(--cue-main-foreground)}.close-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:18px;height:18px;display:block}.body[_ngcontent-%COMP%]{padding:26px}.has-header[_ngcontent-%COMP%] .body[_ngcontent-%COMP%]{padding-top:0}"]})}return h})()},7717(G,P,o){"use strict";o.d(P,{R:()=>d});var g=o(7705),t=o(5547);let d=(()=>{class r{cueFlip=(0,g.geq)(!1);get flipped(){return this.cueFlip()}static \u0275fac=function(S){return new(S||r)};static \u0275dir=t.FsC({type:r,selectors:[["","cueFlip",""]],hostVars:2,hostBindings:function(S,C){2&S&&t.AVh("flipped",C.flipped)},inputs:{cueFlip:[1,"cueFlip"]},outputs:{cueFlip:"cueFlipChange"}})}return r})()},7400(G,P,o){"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,c){if(!c||"none"===c.type)return l;if("round"===c.type){const i=Number(l);return isNaN(i)?l:i.toFixed(c.decimals)}return"prefix"===c.type?l&&`${c.value}${l}`:"suffix"===c.type?l&&`${l}${c.value}`:"formula"===c.type?_(c.expression,l):l}o.d(P,{NF:()=>E,PH:()=>t,Zv:()=>r,g4:()=>d,w9:()=>_});const r=[{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 _(l,c){if(!l||!l.trim())return c;try{const i=S(l),h=new C(i,{"?val":c}).parse();return null==h?"":String(h)}catch{return c}}function E(l){if(!l||!l.trim())return null;try{const c=S(l);return new C(c,{"?val":"42"}).parse(),null}catch(c){return c?.message??"Invalid formula"}}function S(l){const c=[];let i=0;for(;i<l.length;){if(/\s/.test(l[i])){i++;continue}if('"'===l[i]||"'"===l[i]){const e=l[i++];let u="";for(;i<l.length&&l[i]!==e;)u+="\\"===l[i]?l[++i]:l[i],i++;if(l[i]!==e)throw new Error("Unterminated string literal");i++,c.push({kind:"str",val:u});continue}const h=l.slice(i).match(/^(\d+\.?\d*|\.\d+)([eE][+-]?\d+)?/);if(h)c.push({kind:"num",val:h[0]}),i+=h[0].length;else{if("?"===l[i]){let e="?";for(i++;i<l.length&&/\w/.test(l[i]);)e+=l[i++];c.push({kind:"var",val:e});continue}if(/[A-Za-z_]/.test(l[i])){let e="";for(;i<l.length&&/\w/.test(l[i]);)e+=l[i++];c.push({kind:"ident",val:e.toUpperCase()});continue}if("**"!==l.slice(i,i+2)){if(!"+-*/%(),".includes(l[i]))throw new Error(`Unexpected character "${l[i]}" at position ${i}`);c.push({kind:"op",val:l[i++]})}else c.push({kind:"op",val:"**"}),i+=2}}return c.push({kind:"eof",val:""}),c}class C{tokens;vars;pos=0;constructor(c,i){this.tokens=c,this.vars=i}parse(){const c=this.expr();if("eof"!==this.tokens[this.pos].kind)throw new Error(`Unexpected token "${this.tokens[this.pos].val}" after expression`);return c}peek(){return this.tokens[this.pos]}next(){return this.tokens[this.pos++]}eat(c){if(this.peek().val!==c)throw new Error(`Expected "${c}", got "${this.peek().val||"end of input"}"`);this.pos++}expr(){return this.additive()}additive(){let c=this.multiplicative();for(;"op"===this.peek().kind&&("+"===this.peek().val||"-"===this.peek().val);){const i=this.next().val,h=this.multiplicative();c="+"===i?"string"==typeof c||"string"==typeof h?String(c)+String(h):c+h:v(c)-v(h)}return c}multiplicative(){let c=this.power();for(;"op"===this.peek().kind&&("*"===this.peek().val||"/"===this.peek().val||"%"===this.peek().val);){const i=this.next().val,h=this.power();if("*"===i)c=v(c)*v(h);else if("/"===i){const e=v(h);c=0!==e?v(c)/e:0}else c=v(c)%v(h)}return c}power(){const c=this.unary();return"op"===this.peek().kind&&"**"===this.peek().val?(this.next(),Math.pow(v(c),v(this.power()))):c}unary(){return"op"===this.peek().kind&&"-"===this.peek().val?(this.next(),-v(this.primary())):this.primary()}primary(){const c=this.peek();if("num"===c.kind)return this.next(),Number(c.val);if("str"===c.kind)return this.next(),c.val;if("var"===c.kind)return this.next(),this.vars[c.val]??"";if("ident"===c.kind)return this.funcCall();if("op"===c.kind&&"("===c.val){this.next();const i=this.expr();return this.eat(")"),i}throw new Error(`Unexpected token: "${c.val}"`)}funcCall(){const c=this.next().val;this.eat("(");const i=[];if(")"!==this.peek().val)for(i.push(this.expr());","===this.peek().val;)this.next(),i.push(this.expr());return this.eat(")"),function w(l,c){const i=h=>c[h]??"";switch(l){case"ROUND":return Number(v(i(0)).toFixed(Math.max(0,v(i(1)))));case"FLOOR":return Math.floor(v(i(0)));case"CEIL":return Math.ceil(v(i(0)));case"ABS":return Math.abs(v(i(0)));case"SQRT":return Math.sqrt(v(i(0)));case"MIN":return Math.min(...c.map(v));case"MAX":return Math.max(...c.map(v));case"CONCAT":return c.map(h=>String(h)).join("");case"TRIM":return String(i(0)).trim();case"UPPER":return String(i(0)).toUpperCase();case"LOWER":return String(i(0)).toLowerCase();case"LEN":return String(i(0)).length;case"REPLACE":return String(i(0)).replaceAll(String(i(1)),String(i(2)));case"NUM":return v(i(0));case"STR":return String(i(0));case"PREFIX":return String(i(0))?String(i(1))+String(i(0)):String(i(0));case"SUFFIX":return String(i(0))?String(i(0))+String(i(1)):String(i(0));case"IF":return 0!==v(i(0))&&""!==i(0)&&"false"!==i(0)?i(1):i(2);case"AFTER_LAST":{const h=String(i(0)),e=String(i(1)),u=h.lastIndexOf(e);return-1===u?h:h.slice(u+e.length)}case"AFTER_FIRST":{const h=String(i(0)),e=String(i(1)),u=h.indexOf(e);return-1===u?h:h.slice(u+e.length)}case"BEFORE_LAST":{const h=String(i(0)),e=String(i(1)),u=h.lastIndexOf(e);return-1===u?h:h.slice(0,u)}case"BEFORE_FIRST":{const h=String(i(0)),e=String(i(1)),u=h.indexOf(e);return-1===u?h:h.slice(0,u)}case"SEGMENT":return String(i(0)).split(String(i(1)))[v(i(2))]??"";default:throw new Error(`Unknown function: "${l}"`)}}(c,i)}}function v(l){if("number"==typeof l)return l;const c=Number(l);return isNaN(c)?0:c}},7374(G){G.exports=function(){"use strict";var o=6e4,g=36e5,t="millisecond",d="second",r="minute",_="hour",E="day",S="week",C="month",v="quarter",w="year",l="date",c="Invalid Date",i=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,e={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(m){var f=["th","st","nd","rd"],a=m%100;return"["+m+(f[(a-20)%10]||f[a]||f[0])+"]"}},u=function(m,f,a){var p=String(m);return!p||p.length>=f?m:""+Array(f+1-p.length).join(a)+m},y={s:u,z:function(m){var f=-m.utcOffset(),a=Math.abs(f),p=Math.floor(a/60),s=a%60;return(f<=0?"+":"-")+u(p,2,"0")+":"+u(s,2,"0")},m:function m(f,a){if(f.date()<a.date())return-m(a,f);var p=12*(a.year()-f.year())+(a.month()-f.month()),s=f.clone().add(p,C),D=a-s<0,k=f.clone().add(p+(D?-1:1),C);return+(-(p+(a-s)/(D?s-k:k-s))||0)},a:function(m){return m<0?Math.ceil(m)||0:Math.floor(m)},p:function(m){return{M:C,y:w,w:S,d:E,D:l,h:_,m:r,s:d,ms:t,Q:v}[m]||String(m||"").toLowerCase().replace(/s$/,"")},u:function(m){return void 0===m}},b="en",F={};F[b]=e;var j="$isDayjsObject",I=function(m){return m instanceof z||!(!m||!m[j])},U=function m(f,a,p){var s;if(!f)return b;if("string"==typeof f){var D=f.toLowerCase();F[D]&&(s=D),a&&(F[D]=a,s=D);var k=f.split("-");if(!s&&k.length>1)return m(k[0])}else{var R=f.name;F[R]=f,s=R}return!p&&s&&(b=s),s||!p&&b},Y=function(m,f){if(I(m))return m.clone();var a="object"==typeof f?f:{};return a.date=m,a.args=arguments,new z(a)},L=y;L.l=U,L.i=I,L.w=function(m,f){return Y(m,{locale:f.$L,utc:f.$u,x:f.$x,$offset:f.$offset})};var z=function(){function m(a){this.$L=U(a.locale,null,!0),this.parse(a),this.$x=this.$x||a.x||{},this[j]=!0}var f=m.prototype;return f.parse=function(a){this.$d=function(p){var s=p.date,D=p.utc;if(null===s)return new Date(NaN);if(L.u(s))return new Date;if(s instanceof Date)return new Date(s);if("string"==typeof s&&!/Z$/i.test(s)){var k=s.match(i);if(k){var R=k[2]-1||0,A=(k[7]||"0").substring(0,3);return D?new Date(Date.UTC(k[1],R,k[3]||1,k[4]||0,k[5]||0,k[6]||0,A)):new Date(k[1],R,k[3]||1,k[4]||0,k[5]||0,k[6]||0,A)}}return new Date(s)}(a),this.init()},f.init=function(){var a=this.$d;this.$y=a.getFullYear(),this.$M=a.getMonth(),this.$D=a.getDate(),this.$W=a.getDay(),this.$H=a.getHours(),this.$m=a.getMinutes(),this.$s=a.getSeconds(),this.$ms=a.getMilliseconds()},f.$utils=function(){return L},f.isValid=function(){return this.$d.toString()!==c},f.isSame=function(a,p){var s=Y(a);return this.startOf(p)<=s&&s<=this.endOf(p)},f.isAfter=function(a,p){return Y(a)<this.startOf(p)},f.isBefore=function(a,p){return this.endOf(p)<Y(a)},f.$g=function(a,p,s){return L.u(a)?this[p]:this.set(s,a)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(a,p){var s=this,D=!!L.u(p)||p,k=L.p(a),R=function(K,V){var X=L.w(s.$u?Date.UTC(s.$y,V,K):new Date(s.$y,V,K),s);return D?X:X.endOf(E)},A=function(K,V){return L.w(s.toDate()[K].apply(s.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(V)),s)},$=this.$W,N=this.$M,W=this.$D,J="set"+(this.$u?"UTC":"");switch(k){case w:return D?R(1,0):R(31,11);case C:return D?R(1,N):R(0,N+1);case S:var H=this.$locale().weekStart||0,Q=($<H?$+7:$)-H;return R(D?W-Q:W+(6-Q),N);case E:case l:return A(J+"Hours",0);case _:return A(J+"Minutes",1);case r:return A(J+"Seconds",2);case d:return A(J+"Milliseconds",3);default:return this.clone()}},f.endOf=function(a){return this.startOf(a,!1)},f.$set=function(a,p){var s,D=L.p(a),k="set"+(this.$u?"UTC":""),R=(s={},s[E]=k+"Date",s[l]=k+"Date",s[C]=k+"Month",s[w]=k+"FullYear",s[_]=k+"Hours",s[r]=k+"Minutes",s[d]=k+"Seconds",s[t]=k+"Milliseconds",s)[D],A=D===E?this.$D+(p-this.$W):p;if(D===C||D===w){var $=this.clone().set(l,1);$.$d[R](A),$.init(),this.$d=$.set(l,Math.min(this.$D,$.daysInMonth())).$d}else R&&this.$d[R](A);return this.init(),this},f.set=function(a,p){return this.clone().$set(a,p)},f.get=function(a){return this[L.p(a)]()},f.add=function(a,p){var s,D=this;a=Number(a);var k=L.p(p),R=function(N){var W=Y(D);return L.w(W.date(W.date()+Math.round(N*a)),D)};if(k===C)return this.set(C,this.$M+a);if(k===w)return this.set(w,this.$y+a);if(k===E)return R(1);if(k===S)return R(7);var A=(s={},s[r]=o,s[_]=g,s[d]=1e3,s)[k]||1,$=this.$d.getTime()+a*A;return L.w($,this)},f.subtract=function(a,p){return this.add(-1*a,p)},f.format=function(a){var p=this,s=this.$locale();if(!this.isValid())return s.invalidDate||c;var D=a||"YYYY-MM-DDTHH:mm:ssZ",k=L.z(this),R=this.$H,A=this.$m,$=this.$M,N=s.weekdays,W=s.months,H=function(V,X,Z,q){return V&&(V[X]||V(p,D))||Z[X].slice(0,q)},Q=function(V){return L.s(R%12||12,V,"0")},K=s.meridiem||function(V,X,Z){var q=V<12?"AM":"PM";return Z?q.toLowerCase():q};return D.replace(h,function(V,X){return X||function(Z){switch(Z){case"YY":return String(p.$y).slice(-2);case"YYYY":return L.s(p.$y,4,"0");case"M":return $+1;case"MM":return L.s($+1,2,"0");case"MMM":return H(s.monthsShort,$,W,3);case"MMMM":return H(W,$);case"D":return p.$D;case"DD":return L.s(p.$D,2,"0");case"d":return String(p.$W);case"dd":return H(s.weekdaysMin,p.$W,N,2);case"ddd":return H(s.weekdaysShort,p.$W,N,3);case"dddd":return N[p.$W];case"H":return String(R);case"HH":return L.s(R,2,"0");case"h":return Q(1);case"hh":return Q(2);case"a":return K(R,A,!0);case"A":return K(R,A,!1);case"m":return String(A);case"mm":return L.s(A,2,"0");case"s":return String(p.$s);case"ss":return L.s(p.$s,2,"0");case"SSS":return L.s(p.$ms,3,"0");case"Z":return k}return null}(V)||k.replace(":","")})},f.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},f.diff=function(a,p,s){var D,k=this,R=L.p(p),A=Y(a),$=(A.utcOffset()-this.utcOffset())*o,N=this-A,W=function(){return L.m(k,A)};switch(R){case w:D=W()/12;break;case C:D=W();break;case v:D=W()/3;break;case S:D=(N-$)/6048e5;break;case E:D=(N-$)/864e5;break;case _:D=N/g;break;case r:D=N/o;break;case d:D=N/1e3;break;default:D=N}return s?D:L.a(D)},f.daysInMonth=function(){return this.endOf(C).$D},f.$locale=function(){return F[this.$L]},f.locale=function(a,p){if(!a)return this.$L;var s=this.clone(),D=U(a,p,!0);return D&&(s.$L=D),s},f.clone=function(){return L.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},m}(),ee=z.prototype;return Y.prototype=ee,[["$ms",t],["$s",d],["$m",r],["$H",_],["$W",E],["$M",C],["$y",w],["$D",l]].forEach(function(m){ee[m[1]]=function(f){return this.$g(f,m[0],m[1])}}),Y.extend=function(m,f){return m.$i||(m(f,z,Y),m.$i=!0),Y},Y.locale=U,Y.isDayjs=I,Y.unix=function(m){return Y(1e3*m)},Y.en=F[b],Y.Ls=F,Y.p={},Y}()},2269(G,P,o){G.exports=function(g){"use strict";var d=function t(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}(g),r={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(_){return _+"."},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(r,null,!0),r}(o(7374))},1409(G,P,o){G.exports=function(g){"use strict";var d=function t(S){return S&&"object"==typeof S&&"default"in S?S:{default:S}}(g),r={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,C,v){var w=r[v];return Array.isArray(w)&&(w=w[C?0:1]),w.replace("%d",S)}var E={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(S){return S+"."},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:_,mm:_,h:_,hh:_,d:_,dd:_,M:_,MM:_,y:_,yy:_}};return d.default.locale(E,null,!0),E}(o(7374))},9785(G){G.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(P){var o=["th","st","nd","rd"],g=P%100;return"["+P+(o[(g-20)%10]||o[g]||o[0])+"]"}}}()},2494(G,P,o){G.exports=function(g){"use strict";var d=function t(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}(g),r={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(_){return _+"\xba"}};return d.default.locale(r,null,!0),r}(o(7374))},4230(G,P,o){G.exports=function(g){"use strict";var d=function t(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}(g),r={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(_){return _+(1===_?"er":"")}};return d.default.locale(r,null,!0),r}(o(7374))},9531(G,P,o){G.exports=function(g){"use strict";var d=function t(_){return _&&"object"==typeof _&&"default"in _?_:{default:_}}(g),r={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(_){return _+"\xba"}};return d.default.locale(r,null,!0),r}(o(7374))},4955(G){G.exports=function(){"use strict";var P={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(o,g,t){var d=g.prototype,r=d.format;t.en.formats=P,d.format=function(_){void 0===_&&(_="YYYY-MM-DDTHH:mm:ssZ");var v,E=this.$locale().formats,S=(v=void 0===E?{}:E,_.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(w,l,c){var i=c&&c.toUpperCase();return l||v[c]||P[c]||v[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(h,e,u){return e||u.slice(1)})}));return r.call(this,S)}}}()},5164(G){G.exports=function(){"use strict";return function(P,o,g){P=P||{};var t=o.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 r(E,S,C,v){return t.fromToBase(E,S,C,v)}g.en.relativeTime=d,t.fromToBase=function(E,S,C,v,w){for(var l,c,i,h=C.$locale().relativeTime||d,e=P.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,y=0;y<u;y+=1){var b=e[y];b.d&&(l=v?g(E).diff(C,b.d,!0):C.diff(E,b.d,!0));var F=(P.rounding||Math.round)(Math.abs(l));if(i=l>0,F<=b.r||!b.r){F<=1&&y>0&&(b=e[y-1]);var j=h[b.l];w&&(F=w(""+F)),c="string"==typeof j?j.replace("%d",F):j(F,S,b.l,i);break}}if(S)return c;var I=i?h.future:h.past;return"function"==typeof I?I(c):I.replace("%s",c)},t.to=function(E,S){return r(E,S,this,!0)},t.from=function(E,S){return r(E,S,this)};var _=function(E){return E.$u?g.utc():g()};t.toNow=function(E){return this.to(_(this),E)},t.fromNow=function(E){return this.from(_(this),E)}}}()}}]);
|
package/1338.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[1338
|
|
1
|
+
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[1338],{8957(y,d,a){a.d(d,{Input:()=>O});var l=a(7705),s=a(5802),_=a(2271),g=a(9417),f=a(2245),h=a(5381),v=a(29),e=a(5547);const M=["inputField"];function C(i,p){1&i&&e.EFF(0," * ")}function m(i,p){if(1&i&&(e.j41(0,"span",4),e.nrm(1,"cue-svg-icon",8),e.k0s()),2&i){const n=e.XpG();e.R7$(),e.Y8G("name",n.icon())}}function P(i,p){if(1&i){const n=e.RV6();e.j41(0,"button",9),e.bIt("click",function(){s.eBV(n);const t=e.XpG();return s.Njj(t.showPassword.set(!t.showPassword()))}),e.nrm(1,"cue-svg-icon",8),e.k0s()}if(2&i){const n=e.XpG();e.BMQ("aria-label",n.showPassword()?"Hide password":"Show password"),e.R7$(),e.Y8G("name",n.showPassword()?"eye-off":"eye")}}function b(i,p){if(1&i&&(e.j41(0,"cue-typography",7),e.EFF(1),e.k0s()),2&i){const n=e.XpG();e.R7$(),e.JRh(n.error())}}let O=(()=>{class i{value=(0,l.geq)("");_displayValue=(0,s.vPA)("");info=(0,l.hFB)("");label=(0,l.hFB)("");placeholder=(0,l.hFB)("");error=(0,l.hFB)(void 0);required=(0,l.hFB)(!1);icon=(0,l.hFB)();type=(0,l.hFB)("text");size=(0,l.hFB)("m");showPassword=(0,s.vPA)(!1);effectiveType=(0,_.EW)(()=>"password"===this.type()&&this.showPassword()?"text":this.type());isFocused=!1;disabled=!1;autofilled=(0,s.vPA)(!1);inputField;valueChange=(0,l.CGW)();valueCommit=(0,l.CGW)();_lastSyncedValue="";_syncDisplay=(0,s.QZP)(()=>{const n=this.value()||"";n!==this._lastSyncedValue&&(this._lastSyncedValue=n,!this.isFocused&&n!==this._displayValue()&&this._displayValue.set(n))});onChange=n=>{};onTouched=()=>{};writeValue(n){const o=n||"";this.value.set(o),this.isFocused||this._displayValue.set(o)}registerOnChange(n){this.onChange=n}registerOnTouched(n){this.onTouched=n}setDisabledState(n){this.disabled=n}onAnimationStart(n){if(n.animationName.endsWith("cue-autofill-start")){this.autofilled.set(!0);const o=this.inputField?.nativeElement.value??"";o&&o!==this.value()&&(this._displayValue.set(o),this.valueChange.emit(o),this.onChange(o),this.onTouched())}else n.animationName.endsWith("cue-autofill-cancel")&&this.autofilled.set(!1)}emitValue(n){const o=n.target.value;this.valueChange.emit(o),this.onChange(o)}focus(){this.isFocused=!0,this.value()&&this._displayValue.set(this.value()),this.inputField?.nativeElement&&this.inputField.nativeElement.focus()}onBlur(){this.isFocused=!1;const n=this.inputField?.nativeElement.value??this._displayValue();this._displayValue.set(n),this.valueCommit.emit(n),this.onTouched()}static \u0275fac=function(o){return new(o||i)};static \u0275cmp=e.VBU({type:i,selectors:[["cue-input"]],viewQuery:function(o,t){if(1&o&&e.GBs(M,5),2&o){let c;e.mGM(c=e.lsd())&&(t.inputField=c.first)}},inputs:{value:[1,"value"],info:[1,"info"],label:[1,"label"],placeholder:[1,"placeholder"],error:[1,"error"],required:[1,"required"],icon:[1,"icon"],type:[1,"type"],size:[1,"size"]},outputs:{value:"valueChange",valueChange:"valueChange",valueCommit:"valueCommit"},features:[e.Jv_([{provide:g.kq,useExisting:(0,s.Rfq)(()=>i),multi:!0}])],decls:10,vars:14,consts:[["inputField",""],[1,"form-field"],["size","s",1,"label",3,"click","info"],["align","center","gap","s"],[2,"height","12px"],[1,"input",3,"input","focus","blur","animationstart","type","value","placeholder","disabled"],["type","button",1,"toggle-visibility"],["size","s",1,"error-text"],[3,"name"],["type","button",1,"toggle-visibility",3,"click"]],template:function(o,t){if(1&o){const c=e.RV6();e.j41(0,"div",1)(1,"cue-typography",2),e.bIt("click",function(){s.eBV(c);const u=e.sdS(7);return s.Njj(u.focus())}),e.EFF(2),e.nVh(3,C,1,0),e.k0s(),e.j41(4,"cue-flexcontainer",3),e.nVh(5,m,2,1,"span",4),e.j41(6,"input",5,0),e.bIt("input",function(u){return t.emitValue(u)})("focus",function(){return t.isFocused=!0})("blur",function(){return t.onBlur()})("animationstart",function(u){return t.onAnimationStart(u)}),e.k0s(),e.nVh(8,P,2,2,"button",6),e.k0s(),e.nVh(9,b,2,1,"cue-typography",7),e.k0s()}2&o&&(e.HbH("size-"+t.size()),e.AVh("focused",t.isFocused||t._displayValue()||t.placeholder()||t.autofilled()),e.R7$(),e.Y8G("info",t.info()),e.R7$(),e.SpI(" ",t.label()," "),e.R7$(),e.vxM(t.required()?3:-1),e.R7$(2),e.vxM(t.icon()?5:-1),e.R7$(),e.Y8G("type",t.effectiveType())("value",t._displayValue())("placeholder",t.placeholder())("disabled",t.disabled),e.R7$(2),e.vxM("password"===t.type()?8:-1),e.R7$(),e.vxM(t.error()?9:-1))},dependencies:[f.Typography,h.FlexContainer,v.A],styles:['.form-field[_ngcontent-%COMP%]{position:relative}.toggle-visibility[_ngcontent-%COMP%]{display:flex;align-items:center;flex-shrink:0;width:16px;height:16px;padding:0;border:none;background:none;color:var(--cue-input-value-color);cursor:pointer;opacity:.6}.toggle-visibility[_ngcontent-%COMP%]:hover{opacity:1}.input[_ngcontent-%COMP%]{color:var(--cue-input-value-color);width:100%;border:none;border-bottom:1px solid var(--cue-input-border-bottom-color);background:none;outline:none;font-family:var(--cue-font-family)}.size-xs[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]{padding:var(--cue-input-xs-padding);font-size:var(--cue-input-xs-font-size)}.size-s[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]{padding:var(--cue-input-s-padding);font-size:var(--cue-input-s-font-size)}.size-m[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]{padding:var(--cue-input-m-padding);font-size:var(--cue-input-m-font-size)}.size-l[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]{padding:var(--cue-input-l-padding);font-size:var(--cue-input-l-font-size)}.input[_ngcontent-%COMP%]::placeholder{color:var(--cue-input-placeholder-color);font-family:var(--cue-font-family);opacity:.5}.input[_ngcontent-%COMP%]:-webkit-autofill, .input[_ngcontent-%COMP%]:-webkit-autofill:hover, .input[_ngcontent-%COMP%]:-webkit-autofill:focus{-webkit-box-shadow:0 0 0px 1000px transparent inset;-webkit-transition:background-color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s;-webkit-text-fill-color:var(--cue-input-value-color)}@keyframes _ngcontent-%COMP%_cue-autofill-start{}@keyframes _ngcontent-%COMP%_cue-autofill-cancel{}.input[_ngcontent-%COMP%]:-webkit-autofill{animation-name:_ngcontent-%COMP%_cue-autofill-start}.input[_ngcontent-%COMP%]:not(:-webkit-autofill){animation-name:_ngcontent-%COMP%_cue-autofill-cancel}.label[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;transition:all .2s ease;cursor:text}.size-xs[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-xs-label-top);left:var(--cue-input-xs-label-left)}.size-s[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-s-label-top);left:var(--cue-input-s-label-left)}.size-m[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-m-label-top);left:var(--cue-input-m-label-left)}.size-l[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{top:var(--cue-input-l-label-top);left:var(--cue-input-l-label-left)}.form-field.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .form-field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{color:var(--cue-input-value-color)}.size-xs.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-xs[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .size-xs[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{top:var(--cue-input-xs-label-focused-top);font-size:var(--cue-input-xs-label-focused-font-size)}.size-s.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-s[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .size-s[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{top:var(--cue-input-s-label-focused-top);font-size:var(--cue-input-s-label-focused-font-size)}.size-m.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-m[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .size-m[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{top:var(--cue-input-m-label-focused-top);font-size:var(--cue-input-m-label-focused-font-size)}.size-l.focused[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .size-l[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]:not(:placeholder-shown) + .label[_ngcontent-%COMP%], .size-l[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:valid + .label[_ngcontent-%COMP%]{top:var(--cue-input-l-label-focused-top);font-size:var(--cue-input-l-label-focused-font-size)}.underline[_ngcontent-%COMP%]{content:"";position:absolute;bottom:0;left:0;height:1px;width:0;background-color:var(--cue-input-border-bottom-color);transition:width .3s ease}.form-field.focused[_ngcontent-%COMP%] .underline[_ngcontent-%COMP%]{width:100%}.error-text[_ngcontent-%COMP%]{color:var(--cue-error);margin-top:4px;min-height:18px}'],changeDetection:0})}return i})()}}]);
|
package/1520.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[1520],{5448(w,O,a){a.d(O,{ButtonLabel:()=>I});var g=a(7705),s=a(2245),c=a(5547);const v=["*"];let I=(()=>{class h{fontSize=(0,g.hFB)("m");italic=(0,g.hFB)(!1);noWrap=(0,g.hFB)(!0);static \u0275fac=function(f){return new(f||h)};static \u0275cmp=c.VBU({type:h,selectors:[["cue-button-label"]],inputs:{fontSize:[1,"fontSize"],italic:[1,"italic"],noWrap:[1,"noWrap"]},ngContentSelectors:v,decls:3,vars:3,consts:[[3,"size","italic","noWrap"]],template:function(f,m){1&f&&(c.NAR(),c.j41(0,"div")(1,"cue-typography",0),c.SdG(2),c.k0s()()),2&f&&(c.R7$(),c.Y8G("size",m.fontSize())("italic",m.italic())("noWrap",m.noWrap()))},dependencies:[s.Typography],styles:["div[_ngcontent-%COMP%]{transform:translateY(.05em)}"]})}return h})()},7293(w,O,a){a.d(O,{x:()=>f});var g=a(7705),s=a(5802),c=a(2271),v=a(4613),I=a(9352),h=a(7089),d=a(5547);function b(m,P){1&m&&d.nrm(0,"cue-logo",4)}let f=(()=>{class m{projectId=(0,g.hFB)(void 0);resourceId=(0,g.hFB)(void 0);_active=(0,s.vPA)(!0);onHover(){this._active.set(!1),requestAnimationFrame(()=>this._active.set(!0))}_title=(0,c.EW)(()=>this.projectId()&&this.resourceId()?"components.logoLink.showResourceInCue":this.projectId()?"components.logoLink.openProjectInCue":"components.logoLink.openCuePortal");_href=(0,c.EW)(()=>{const i=this.projectId(),p=this.resourceId();return i&&p?`https://cue.qaecy.com/r/${encodeURIComponent(i)}/${encodeURIComponent(p)}`:i?`https://cue.qaecy.com/home/projects?p=${encodeURIComponent(i)}`:"https://cue.qaecy.com/home/projects"});static \u0275fac=function(p){return new(p||m)};static \u0275cmp=d.VBU({type:m,selectors:[["cue-logo-link"]],inputs:{projectId:[1,"projectId"],resourceId:[1,"resourceId"]},decls:6,vars:5,consts:[["target","_blank","rel","noopener noreferrer",1,"link",3,"mouseenter","href"],[1,"logo-stack",3,"cueTooltip"],["size","xs",1,"logo-bg"],[1,"logo-fg"],["size","xs"]],template:function(p,C){1&p&&(d.j41(0,"a",0),d.bIt("mouseenter",function(){return C.onHover()}),d.j41(1,"div",1),d.nI1(2,"transloco"),d.nrm(3,"cue-logo",2),d.j41(4,"div",3),d.nVh(5,b,1,0,"cue-logo",4),d.k0s()()()),2&p&&(d.Y8G("href",C._href(),d.B4B),d.R7$(),d.Y8G("cueTooltip",d.bMT(2,3,C._title())),d.R7$(4),d.vxM(C._active()?5:-1))},dependencies:[v.Logo,h.d,I.Kj],styles:["[_nghost-%COMP%]{display:inline-block;line-height:0}.link[_ngcontent-%COMP%]{display:block;text-decoration:none;cursor:pointer}.logo-stack[_ngcontent-%COMP%]{position:relative;display:inline-block;line-height:0}.logo-bg[_ngcontent-%COMP%]{display:block;opacity:.3;transition:opacity .2s ease}.link[_ngcontent-%COMP%]:hover .logo-bg[_ngcontent-%COMP%]{opacity:.15}.logo-fg[_ngcontent-%COMP%]{position:absolute;inset:0;opacity:0;transition:opacity .15s ease}.link[_ngcontent-%COMP%]:hover .logo-fg[_ngcontent-%COMP%]{opacity:1}"],changeDetection:0})}return m})()},8791(w,O,a){a.d(O,{CueDocumentList:()=>j});var g=a(467),s=a(7705),c=a(5802),v=a(2271),I=a(2283),h=a(2065),d=a(4372),b=a(5381),f=a(2245),m=a(7851),P=a(7293),i=a(5547);function p(r,B){if(1&r&&(i.j41(0,"cue-flexcontainer",0)(1,"cue-typography",2),i.EFF(2),i.k0s()()),2&r){const e=i.XpG();i.R7$(2),i.SpI(" ",e.errorMessage()," ")}}function C(r,B){if(1&r&&i.nrm(0,"cue-logo-link",4),2&r){const e=i.XpG(2);i.Y8G("projectId",e.projectId())}}function E(r,B){if(1&r){const e=i.RV6();i.j41(0,"div",1)(1,"cue-doc-list",3),i.bIt("clickedDocument",function(o){c.eBV(e);const n=i.XpG();return c.Njj(n.clickedDocument.emit(o))})("clickedDownloadDocument",function(o){c.eBV(e);const n=i.XpG();return c.Njj(n.clickedDownloadDocument.emit(o))})("clickedOpenInDir",function(o){c.eBV(e);const n=i.XpG();return c.Njj(n.clickedOpenInDir.emit(o))})("clickedOpen",function(o){c.eBV(e);const n=i.XpG();return c.Njj(n.clickedOpen.emit(o))}),i.k0s(),i.nVh(2,C,1,1,"cue-logo-link",4),i.k0s()}if(2&r){const e=i.XpG();i.Y8G("cueLogoLoader","loading"===e.state()),i.R7$(),i.Y8G("documentRefs",e.documentRefs())("documentData",e.documentData())("handlers",e.handlers())("availableContentCategories",e.availableContentCategories())("detailedView",e.detailedView())("simple",e.simple())("pageSize",e.pageSize())("size",e.size())("prefetchPages",e.prefetchPages())("showOpenInDocumentViewerAction",e.showOpenInDocumentViewerAction())("showOpenInFileManagerAction",e.showOpenInFileManagerAction())("customOverlayActions",e.customOverlayActions())("variant",e.variant()),i.R7$(),i.vxM(e.showLogo()?2:-1)}}function L(r){return r.split("?")[0].trim()}let j=(()=>{class r{projectId=(0,s.hFB)(void 0);uuids=(0,s.hFB)([]);suffixes=(0,s.hFB)(void 0);mimeTypes=(0,s.hFB)(void 0);contentCategories=(0,s.hFB)(void 0);sdkState=(0,s.hFB)(void 0);detailedView=(0,s.hFB)(!1,{transform:s.L39});simple=(0,s.hFB)(!1,{transform:s.L39});pageSize=(0,s.hFB)(10,{transform:s.Udg});size=(0,s.hFB)("m");prefetchPages=(0,s.hFB)(3,{transform:s.Udg});showOpenInDocumentViewerAction=(0,s.hFB)(!1,{transform:s.L39});showOpenInFileManagerAction=(0,s.hFB)(!1,{transform:s.L39});customMenuItems=(0,s.hFB)([]);showLogo=(0,s.hFB)(!1,{transform:s.L39});variant=(0,s.hFB)("none");clickedDocument=(0,s.CGW)();clickedDownloadDocument=(0,s.CGW)();clickedOpenInDir=(0,s.CGW)();clickedOpen=(0,s.CGW)();state=(0,c.vPA)("idle");errorMessage=(0,c.vPA)(null);documentData=(0,c.vPA)({});availableContentCategories=(0,c.vPA)(void 0);_filterResolvedUuids=(0,c.vPA)(void 0);documentRefs=(0,v.EW)(()=>{const e=new Set;return(void 0!==this._filterResolvedUuids()?this._filterResolvedUuids()??[]:this.uuids()??[]).map(L).filter(o=>!!o).filter(o=>!e.has(o)&&(e.add(o),!0)).map(o=>({id:o}))});customOverlayActions=(0,v.EW)(()=>{const e=this.projectId();return[...e?[{label:"Open in Cue",icon:"external-link",action:n=>{const u=n.rowData;window.open(`https://cue.qaecy.com/r/${encodeURIComponent(e)}/${encodeURIComponent(u.id)}`,"_blank","noopener,noreferrer")}}]:[],...(this.customMenuItems()||[]).map(n=>({label:n.label,icon:n.icon,action:u=>{n.action(u.rowData,u)}}))]});handlers=(0,v.EW)(()=>{var e=this;const t=this._docs();if(t)return{requestData:(o=(0,g.A)(function*(n){const u=n.map(L).filter(_=>!!_),l=u.filter(_=>!e.documentData()[_]);if(console.debug("[CueDocumentListWC] requestData",{requestedCount:u.length,missingCount:l.length,missing:l}),l.length)try{const _=t,D=e.simple()&&_.fetchDocumentDataSimple?yield _.fetchDocumentDataSimple(l):yield t.fetchDocumentData(l);console.debug("[CueDocumentListWC] fetchDocumentData resolved",{fetchedCount:Object.keys(D).length,ids:Object.keys(D)});const y={};Object.values(D).forEach(M=>{y[M.id]=function R(r){return{id:r.id,path:r.path,suffix:r.suffix,size:r.size,contentIRI:r.contentIRI,providerId:r.providerId,tags:r.tags??[],summary:r.summary??"",categories:r.categories??[],subject:r.subject,relevance:0}}(M)}),Object.keys(y).length>0&&e.documentData.update(M=>({...M,...y}))}catch(_){console.error("[CueDocumentListWC] Failed to fetch document data:",_),e.errorMessage.set(_ instanceof Error?_.message:String(_)),e.state.set("error")}}),function(u){return o.apply(this,arguments)}),requestDownload:function(){var o=(0,g.A)(function*(n){const u=e._cue(),l=e.projectId();if(u&&l)try{const _=yield u.storage.getDownloadUrl(l,n.id,n.suffix,"raw"),D=yield fetch(_);if(!D.ok)throw new Error(`Download failed: ${D.status} ${D.statusText}`);const y=yield D.blob(),M=(0,d.M)(n.path)||`${n.id}${n.suffix||""}`;(0,h.KE)(y,M)}catch(_){console.error("[CueDocumentListWC] Failed to download document:",_)}});return function(u){return o.apply(this,arguments)}}(),requestOpen:(o,n)=>{console.log("[CueDocumentListWC] requestOpen",{documentUUID:o,document:n})},requestOpenInDir:(o,n)=>{console.log("[CueDocumentListWC] requestOpenInDir",{documentUUID:o,document:n})}};var o});_cue=(0,c.vPA)(void 0);_docs=(0,c.vPA)(void 0);_ownedView;_inputWarningTimer;_unsubscribeCategories;_lastSetupSignature;constructor(){this._inputWarningTimer=setTimeout(()=>{this.projectId()||console.warn('[cue-document-list] Required input "projectId" is not set. Pass the Cue project ID to load documents.'),this.sdkState()||console.warn('[cue-document-list] Required input "sdkState" is not set. Pass a { cue, view, or documents } object to enable document loading.')},3e3),(0,c.QZP)(()=>{const e=this.projectId(),t=this.sdkState(),o=t?.language??"en";if(console.debug("[CueDocumentListWC] input state changed",{projectId:e,uuids:this.uuids().length,hasSdkState:!!t,hasCue:!!t?.cue,hasView:!!t?.view,hasDocuments:!!t?.documents}),!e||!t)return this._clearRuntimeState(),void this.state.set("idle");const n={projectId:e,cue:t.cue,view:t.view,documents:t.documents,language:o,simple:this.simple()};if(this._isSameSetupSignature(n))return this.state.set("ready"),void this.errorMessage.set(null);this._setupFromSdkState(e,t),this._lastSetupSignature=n,this.state.set("ready"),this.errorMessage.set(null)}),(0,c.QZP)(()=>{const e=this.suffixes(),t=this.mimeTypes(),o=this.contentCategories(),n=this._docs();void 0!==e||void 0!==t||void 0!==o?this._fetchByFilter(e,t,o,n):this._filterResolvedUuids.set(void 0)}),(0,c.QZP)(()=>{const e=new Set(this.documentRefs().map(t=>t.id));this.documentData.update(t=>Object.fromEntries(Object.entries(t).filter(([n])=>e.has(n))))})}ngOnDestroy(){clearTimeout(this._inputWarningTimer),this._cleanupOwnedView(),this._unsubscribeCategories?.(),this._unsubscribeCategories=void 0}_setupFromSdkState(e,t){const o=t.language??"en";if(this.documentData.set({}),this._cleanupOwnedView(),this._unsubscribeCategories?.(),this._unsubscribeCategories=void 0,this.availableContentCategories.set(t.availableContentCategories?t.availableContentCategories:void 0),t.documents)return t.documents.setLanguage(o),this._docs.set(t.documents),void this._cue.set(t.cue);if(t.view)return t.view.setLanguage(o),this._docs.set(t.view.documents),this._cue.set(t.cue),void(this.simple()||this._bindCategoriesFromView(t.view));if(t.cue){if(this.simple())return this._docs.set(t.cue.createProjectDocuments(e)),this._cue.set(t.cue),void this.availableContentCategories.set(void 0);const n=t.cue.createProjectView(e,{language:o});return this._ownedView=n,this._docs.set(n.documents),this._cue.set(t.cue),void this._bindCategoriesFromView(n)}this._docs.set(void 0),this._cue.set(void 0),this.errorMessage.set("sdkState must include cue, view, or documents to load data."),this.state.set("error")}_bindCategoriesFromView(e){const t=()=>{this.availableContentCategories.set(e.availableContentCategories.get())};t(),this._unsubscribeCategories=e.availableContentCategories.subscribe(t)}_clearRuntimeState(){this._cleanupOwnedView(),this._unsubscribeCategories?.(),this._unsubscribeCategories=void 0,this._docs.set(void 0),this._cue.set(void 0),this.documentData.set({}),this.availableContentCategories.set(void 0),this.errorMessage.set(null),this._lastSetupSignature=void 0}_cleanupOwnedView(){this._ownedView&&(this._ownedView.destroy(),this._ownedView=void 0)}_fetchByFilter(e,t,o,n){var u=this;return(0,g.A)(function*(){if(n){u.state.set("loading");try{let l;if(void 0!==e&&e.length>0)l=yield n.documentsBySuffix(e);else if(void 0!==t&&t.length>0)l=yield n.documentsByMime(t);else{if(!(void 0!==o&&o.length>0))return u._filterResolvedUuids.set([]),void u.state.set("ready");l=yield n.documentsByContentCategory(o)}u._filterResolvedUuids.set(l.map(_=>_.uuid)),u.state.set("ready")}catch(l){console.error("[CueDocumentListWC] Failed to fetch documents by filter",l),u.errorMessage.set(l instanceof Error?l.message:"Failed to load documents."),u.state.set("error")}}else u._filterResolvedUuids.set([])})()}_isSameSetupSignature(e){const t=this._lastSetupSignature;return!!t&&t.projectId===e.projectId&&t.cue===e.cue&&t.view===e.view&&t.documents===e.documents&&t.language===e.language&&t.simple===e.simple}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=i.VBU({type:r,selectors:[["cue-document-list"]],inputs:{projectId:[1,"projectId"],uuids:[1,"uuids"],suffixes:[1,"suffixes"],mimeTypes:[1,"mimeTypes"],contentCategories:[1,"contentCategories"],sdkState:[1,"sdkState"],detailedView:[1,"detailedView"],simple:[1,"simple"],pageSize:[1,"pageSize"],size:[1,"size"],prefetchPages:[1,"prefetchPages"],showOpenInDocumentViewerAction:[1,"showOpenInDocumentViewerAction"],showOpenInFileManagerAction:[1,"showOpenInFileManagerAction"],customMenuItems:[1,"customMenuItems"],showLogo:[1,"showLogo"],variant:[1,"variant"]},outputs:{clickedDocument:"clickedDocument",clickedDownloadDocument:"clickedDownloadDocument",clickedOpenInDir:"clickedOpenInDir",clickedOpen:"clickedOpen"},decls:2,vars:1,consts:[["direction","column","align","center","justify","center",2,"height","100%","width","100%","padding","8px"],[2,"position","relative","width","100%",3,"cueLogoLoader"],[2,"color","#c44","font-size","13px"],[3,"clickedDocument","clickedDownloadDocument","clickedOpenInDir","clickedOpen","documentRefs","documentData","handlers","availableContentCategories","detailedView","simple","pageSize","size","prefetchPages","showOpenInDocumentViewerAction","showOpenInFileManagerAction","customOverlayActions","variant"],[2,"position","absolute","top","8px","left","8px","z-index","5",3,"projectId"]],template:function(t,o){1&t&&i.nVh(0,p,3,1,"cue-flexcontainer",0)(1,E,3,15,"div",1),2&t&&i.vxM("error"===o.state()?0:1)},dependencies:[I.g,b.FlexContainer,f.Typography,m.k,P.x],styles:["[_nghost-%COMP%]{display:block;width:100%}"],changeDetection:0})}return r})()}}]);
|