@qaecy/cue-ui 0.0.50 → 0.0.51

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.
Files changed (106) hide show
  1. package/1138.js +1 -0
  2. package/1153.js +1 -0
  3. package/{247.js → 1247.js} +1 -1
  4. package/1338.js +1 -0
  5. package/1359.js +1 -0
  6. package/1573.js +1 -0
  7. package/1931.js +1 -0
  8. package/1985.js +1 -0
  9. package/2245.js +1 -0
  10. package/2269.js +1 -0
  11. package/2312.js +1 -0
  12. package/2399.js +1 -0
  13. package/2724.js +1 -0
  14. package/2839.js +1 -0
  15. package/29.js +1 -0
  16. package/3036.js +1 -0
  17. package/3039.js +1 -0
  18. package/{418.js → 3418.js} +1 -1
  19. package/3523.js +1 -0
  20. package/3910.js +1 -0
  21. package/4031.js +1 -0
  22. package/4283.js +1 -0
  23. package/4284.js +1 -0
  24. package/4311.js +1 -0
  25. package/4613.js +1 -0
  26. package/4687.js +1 -0
  27. package/4879.js +1 -0
  28. package/503.js +1 -0
  29. package/5041.js +1 -0
  30. package/5137.js +1 -0
  31. package/5187.js +1 -0
  32. package/5559.js +1 -0
  33. package/5740.js +1 -0
  34. package/5872.js +1 -0
  35. package/617.js +1 -0
  36. package/63.js +1 -0
  37. package/6376.js +1 -0
  38. package/6419.js +1 -0
  39. package/6423.js +1 -0
  40. package/6586.js +1 -0
  41. package/6911.js +1 -0
  42. package/7056.js +1 -0
  43. package/7247.js +1 -0
  44. package/7284.js +1 -0
  45. package/7427.js +1 -0
  46. package/7598.js +1 -0
  47. package/7719.js +1 -0
  48. package/8336.js +1 -0
  49. package/836.js +1 -1
  50. package/8560.js +1 -0
  51. package/8791.js +1 -0
  52. package/8855.js +1 -0
  53. package/8957.js +1 -0
  54. package/9004.js +1 -0
  55. package/906.js +1 -0
  56. package/928.js +1 -1
  57. package/9396.js +1 -0
  58. package/9417.js +1 -0
  59. package/9443.js +1 -0
  60. package/9495.js +1 -0
  61. package/9695.js +1 -0
  62. package/9769.js +1 -0
  63. package/README.md +135 -0
  64. package/common.js +1 -1
  65. package/index.js +1 -1
  66. package/main.js +1 -1
  67. package/package.json +1 -1
  68. package/runtime.js +1 -1
  69. package/149.js +0 -1
  70. package/153.js +0 -1
  71. package/245.js +0 -1
  72. package/269.js +0 -1
  73. package/284.js +0 -1
  74. package/311.js +0 -1
  75. package/336.js +0 -1
  76. package/36.js +0 -1
  77. package/376.js +0 -1
  78. package/393.js +0 -1
  79. package/396.js +0 -1
  80. package/399.js +0 -1
  81. package/4.js +0 -1
  82. package/41.js +0 -1
  83. package/419.js +0 -1
  84. package/423.js +0 -1
  85. package/494.js +0 -1
  86. package/523.js +0 -1
  87. package/560.js +0 -1
  88. package/586.js +0 -1
  89. package/598.js +0 -1
  90. package/613.js +0 -1
  91. package/628.js +0 -1
  92. package/7.js +0 -1
  93. package/719.js +0 -1
  94. package/724.js +0 -1
  95. package/740.js +0 -1
  96. package/773.js +0 -1
  97. package/791.js +0 -1
  98. package/799.js +0 -1
  99. package/802.js +0 -1
  100. package/839.js +0 -1
  101. package/855.js +0 -1
  102. package/872.js +0 -1
  103. package/879.js +0 -1
  104. package/903.js +0 -1
  105. package/911.js +0 -1
  106. package/931.js +0 -1
package/1138.js ADDED
@@ -0,0 +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})()}}]);
package/1153.js ADDED
@@ -0,0 +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)}}}()}}]);