@qaecy/cue-ui 0.0.24 → 0.0.26

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/911.js CHANGED
@@ -1 +1 @@
1
- "use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[911],{6911(r,a,o){o.d(a,{ByCueLogo:()=>l});var t=o(7705),c=o(4613),e=o(5547);let l=(()=>{class i{src=t.hFB.required();alt=(0,t.hFB)("");active=(0,t.hFB)(!0,{transform:t.L39});continuous=(0,t.hFB)(!1,{transform:t.L39});static \u0275fac=function(n){return new(n||i)};static \u0275cmp=e.VBU({type:i,selectors:[["cue-by-cue-logo"]],inputs:{src:[1,"src"],alt:[1,"alt"],active:[1,"active"],continuous:[1,"continuous"]},decls:6,vars:5,consts:[[1,"wrapper"],[1,"main-logo",3,"src","alt"],[1,"by-cue"],[1,"by-text"],[3,"size","active","continuous"]],template:function(n,s){1&n&&(e.j41(0,"div",0),e.nrm(1,"img",1),e.j41(2,"div",2)(3,"span",3),e.EFF(4,"by"),e.k0s(),e.nrm(5,"cue-logo",4),e.k0s()()),2&n&&(e.R7$(),e.Y8G("src",s.src(),e.B4B)("alt",s.alt()),e.R7$(4),e.Y8G("size","xs")("active",s.active())("continuous",s.continuous()))},dependencies:[c.Logo],styles:[":host{display:inline-block}.wrapper{position:relative;display:inline-block}.main-logo{display:block;width:var(--by-cue-logo-width, 200px);height:auto}.by-cue{position:absolute;bottom:-14px;right:-20px;display:flex;align-items:center;gap:4px;opacity:.55}.by-cue:hover{opacity:1;transition:opacity .3s ease}.by-text{font-family:Poppins,sans-serif;font-size:10px;font-weight:300;font-style:italic;letter-spacing:.04em;color:currentColor;line-height:1}cue-logo{width:40px;display:flex;align-items:center}\n"],encapsulation:3})}return i})()}}]);
1
+ "use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[911],{6911(u,c,t){t.d(c,{ByCueLogo:()=>l});var o=t(7705),s=t(4613),e=t(5547);let l=(()=>{class i{src=o.hFB.required();alt=(0,o.hFB)("");active=(0,o.hFB)(!0,{transform:o.L39});continuous=(0,o.hFB)(!1,{transform:o.L39});static \u0275fac=function(a){return new(a||i)};static \u0275cmp=e.VBU({type:i,selectors:[["cue-by-cue-logo"]],inputs:{src:[1,"src"],alt:[1,"alt"],active:[1,"active"],continuous:[1,"continuous"]},decls:7,vars:5,consts:[[1,"wrapper"],[1,"main-logo",3,"src","alt"],[1,"by-cue"],[1,"by-text"],[1,"logo-wrapper"],[3,"size","active","continuous"]],template:function(a,n){1&a&&(e.j41(0,"div",0),e.nrm(1,"img",1),e.j41(2,"div",2)(3,"span",3),e.EFF(4,"by"),e.k0s(),e.j41(5,"div",4),e.nrm(6,"cue-logo",5),e.k0s()()()),2&a&&(e.R7$(),e.Y8G("src",n.src(),e.B4B)("alt",n.alt()),e.R7$(5),e.Y8G("size","xs")("active",n.active())("continuous",n.continuous()))},dependencies:[s.Logo],styles:[":host{display:inline-block}.wrapper{position:relative;display:inline-block;width:var(--by-cue-logo-width, 200px);container-type:inline-size}.main-logo{display:block;width:100%;height:auto}.by-cue{position:absolute;bottom:clamp(-20px,-7cqi,-8px);right:clamp(-30px,-10cqi,-10px);display:flex;align-items:flex-end;gap:clamp(2px,2cqi,6px);opacity:.55}.by-cue:hover{opacity:1;transition:opacity .3s ease}.by-text{font-family:Poppins,sans-serif;font-size:clamp(8px,5cqi,13px);font-weight:300;font-style:italic;letter-spacing:.04em;color:currentColor;line-height:1}.logo-wrapper{width:clamp(24px,20cqi,56px);aspect-ratio:221.545 / 86.191;display:block}cue-logo{width:100%!important;height:100%!important;display:block}\n"],encapsulation:3})}return i})()}}]);
package/960.js CHANGED
@@ -1 +1 @@
1
- (self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[960],{2960(y,x,d){"use strict";d.d(x,{g:()=>Yt});var _=d(467),r=d(7705),u=d(2271),l=d(5802),m=d(2065),b=d(7284),C=d.n(b);var e=d(5547);let E=(()=>{class o{get calculatedWidth(){let t=this.localConfig().width||this.width()||1;return this.el.nativeElement.parentNode.offsetWidth>0&&t<=1&&t>0&&(t*=this.el.nativeElement.parentNode.offsetWidth),t}get calculatedHeight(){let t=this.localConfig().height||this.height()||400;return this.el.nativeElement.parentNode.offsetHeight>0&&t<=1&&t>0&&(t*=this.el.nativeElement.parentNode.offsetHeight),t}onResize(t){this.logMessage("debug","rezisze triggered"),window.clearTimeout(this.timeoutId),this.timeoutId=window.setTimeout(()=>{this.options.realignOnResize&&this.reDraw()},200)}constructor(){this.data=(0,r.hFB)([]),this.width=(0,r.hFB)(),this.height=(0,r.hFB)(),this.step=(0,r.hFB)(),this.overflow=(0,r.hFB)(),this.strict=(0,r.hFB)(),this.zoomOnHover=(0,r.hFB)(),this.realignOnResize=(0,r.hFB)(),this.randomizeAngle=(0,r.hFB)(),this.background=(0,r.hFB)(),this.font=(0,r.hFB)(),this.delay=(0,r.hFB)(),this.config=(0,r.hFB)({}),this.log=(0,r.hFB)(),this.clicked=(0,r.CGW)(),this.afterInit=(0,r.CGW)(),this.afterChecked=(0,r.CGW)(),this.localConfig=(0,u.EW)(()=>{const n=this.config();return{...n,width:this.width()||n.width||500,height:this.height()||n.height||300,overflow:this.overflow()??(n.overflow||!0),strict:this.strict()??(n.strict||!1),zoomOnHover:this.zoomOnHover()||n.zoomOnHover||{transitionTime:0,scale:1,delay:0},realignOnResize:this.realignOnResize()??(n.realignOnResize||!1),randomizeAngle:this.randomizeAngle()??(n.randomizeAngle||!1),step:this.step()||n.step||2,log:this.log()||n.log||!1,delay:this.delay()||n.delay,background:this.background()||n.background,font:this.font()||n.font}}),this.cloudDataHtmlElements=[],this.dataArr=[],this.el=(0,l.WQX)(e.aKT),this.r2=(0,l.WQX)(e.sFG);const t=this.el.nativeElement;(0,l.QZP)(()=>{const n=this.localConfig();this.logMessage("warn","cloud configuration",n),n.font&&this.r2.setStyle(t,"font",n.font),n.background&&this.r2.setStyle(t,"background",n.background),this.reDraw()})}reDraw(){this.afterChecked?.emit(),this.logMessage("debug","dataChanges emitted"),this.cloudDataHtmlElements=[],this.data()?(this.el.nativeElement.innerHTML="",this.data()&&(this.dataArr=this.data()),this.options={...this.localConfig(),aspectRatio:this.calculatedWidth/this.calculatedHeight,width:this.calculatedWidth,height:this.calculatedHeight,center:{x:this.calculatedWidth/2,y:this.calculatedHeight/2}},this.r2.setStyle(this.el.nativeElement,"width",this.options.width+"px"),this.r2.setStyle(this.el.nativeElement,"height",this.options.height+"px"),this.drawWordCloud(),this.logMessage("debug","reDraw finished")):console.error("angular-tag-cloud: No data passed. Please pass an Array of CloudData")}descriptiveEntry(t){let n=t.text;return n+=t.color?`-${t.color}`:"",n+=t.external?`-${t.external}`:"",n+=t.link?`-${t.link}`:"",n+=t.rotate?`-${t.rotate}`:"",n}drawWordCloud(){this.dataArr.sort((i,s)=>this.descriptiveEntry(i).localeCompare(this.descriptiveEntry(s))),this.dataArr.sort((i,s)=>s.weight-i.weight);const t=this.dataArr.filter(i=>i.position),n=this.dataArr.filter(i=>!i.position);t.forEach((i,s)=>{this.drawWord(s,i)}),n.forEach((i,s)=>{this.drawWord(s,i)})}hitTest(t){for(const n of this.cloudDataHtmlElements)if(this.overlapping(t,n))return!0;return!1}overlapping(t,n){const{offsetLeft:i,offsetTop:s,offsetWidth:c,offsetHeight:p}=n;return!(t.right<i||t.left>i+c||t.bottom<s||t.top>s+p)}getWeightForWord(t){let n=5;return this.dataArr[0].weight>this.dataArr[this.dataArr.length-1].weight&&(this.options.strict?t.weight>10?(n=10,this.logMessage("warn",`[TagCloud strict] Weight property ${t.weight} > 10. Fallback to 10 as you are using strict mode`,t)):t.weight<1?(n=1,this.logMessage("warn",`[TagCloud strict] Given weight property ${t.weight} < 1. Fallback to 1 as you are using strict mode`,t)):t.weight%1!=0?(n=Math.round(t.weight),this.logMessage("warn",`[TagCloud strict] Given weight property ${t.weight} is not an integer. Rounded value to ${n}`,t)):n=t.weight:n=Math.round((t.weight-this.dataArr[this.dataArr.length-1].weight)/(this.dataArr[0].weight-this.dataArr[this.dataArr.length-1].weight)*9)+1),n}setWordColor(t,n){this.r2.setStyle(t,"color",n)}setTooltip(t,n){this.r2.addClass(t,"tooltip");const i=this.r2.createElement("span");i.className="tooltiptext";const s=this.r2.createText(n);i.appendChild(s),t.appendChild(i)}setWordRotation(t,n){const i=n?`rotate(${n}deg)`:"";return this.r2.setStyle(t,"transform",i),i}wrapNodeIntoAnchorElement(t,n){const i=this.r2.createElement("a");return i.href=n.link||"",void 0!==n.external&&n.external&&(i.target="_blank"),i.appendChild(t),i}applyZoomStyle(t,n,i,s){this.options.zoomOnHover&&1!==this.options.zoomOnHover.scale&&(this.options.zoomOnHover.transitionTime||(this.options.zoomOnHover.transitionTime=0),this.options.zoomOnHover.scale||(this.options.zoomOnHover.scale=1),n.onmouseover=()=>{this.options.zoomOnHover?.transitionTime&&this.r2.setStyle(n,"transition",`transform ${this.options.zoomOnHover.transitionTime}s`),this.options.zoomOnHover?.scale&&this.r2.setStyle(n,"transform",`scale(${this.options.zoomOnHover.scale}) ${s}`),this.options.zoomOnHover?.delay&&this.r2.setStyle(n,"transition-delay",`${this.options.zoomOnHover.delay}s`),this.options.zoomOnHover?.color&&this.r2.setStyle(i?t:n,"color",this.options.zoomOnHover.color)},n.onmouseout=()=>{this.r2.setStyle(n,"transform",`none ${s}`),this.options.zoomOnHover?.color&&this.r2.removeStyle(i?t:n,"color")})}setPosition(t,n,i){let s=this.options.randomizeAngle?6.28*Math.random():0,c=0;const p=t.style;p.position="absolute";const f=!!(n.position&&n.position.left&&n.position.top),g=t.offsetWidth,v=t.offsetHeight;let T=f&&n.position?.left?n.position.left:this.options.center.x-g/2,S=f&&n.position?.top?n.position.top:this.options.center.y-v/2;if(p.left=T+"px",p.top=S+"px",this.options.delay&&(t.classList.add("tag-animation-delay"),p.setProperty("--tag-animation-delay",this.options.delay*i+"ms")),!f)if(0===i)p.left=T+2*(Math.random()-.5)*(this.calculatedWidth/5)+"px",p.top=S+2*(Math.random()-.5)*(this.calculatedHeight/5)+"30px";else{for(;this.options.width&&this.options.height&&t.offsetHeight&&t.offsetWidth&&this.hitTest(new DOMRect(T,S,t.offsetWidth,t.offsetHeight));)c+=this.options.step||1,s+=(i%2==0?1:-1)*(this.options.step||1),T=this.options.center.x-g/2+c*Math.cos(s)*this.options.aspectRatio,S=this.options.center.y+c*Math.sin(s)-v/2;p.left=T+"px",p.top=S+"px"}if(!this.options.overflow&&(T<0||S<0||T+g>this.calculatedWidth||S+v>this.calculatedHeight))return this.logMessage("warn","Word did not fit into the cloud and overflow is set to 'false'. The element will be removed",t),void t.remove()}drawWord(t,n){let i;const s=this.getWeightForWord(n);i=this.r2.createElement("span"),i.className=`w${s}`,i.onclick=()=>{this.clicked?.emit(n)},i.onmouseenter=()=>{i.style.zIndex="2"},i.onmouseleave=()=>{i.style.zIndex="1"};let c=this.r2.createText(n.text);n.color&&this.setWordColor(i,n.color);const p=this.setWordRotation(i,n.rotate);n.link&&(c=this.wrapNodeIntoAnchorElement(c,n)),this.options.zoomOnHover&&1!==this.options.zoomOnHover.scale&&this.applyZoomStyle(c,i,n.link,p),i.appendChild(c),this.r2.appendChild(this.el.nativeElement,i),n.tooltip&&this.setTooltip(i,n.tooltip),i.id=`angular-tag-cloud-item-${t}`,this.setPosition(i,n,t),this.logMessage("debug","Adds new word <span>",i),this.cloudDataHtmlElements.push(i),this.logMessage("debug","Placed words",this.cloudDataHtmlElements)}logMessage(t,...n){this.localConfig()&&("debug"===this.localConfig().log?console.log(`[AngularTagCloudModule ${t}]`,...n):"warn"===this.localConfig().log&&"warn"===t&&console.warn(`[AngularTagCloudModule ${t}]`,...n))}static{this.\u0275fac=function(n){return new(n||o)}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["angular-tag-cloud"],["ng-tag-cloud"],["ngtc"]],hostBindings:function(n,i){1&n&&e.bIt("resize",function(c){return i.onResize(c)},e.tSv)},inputs:{data:[1,"data"],width:[1,"width"],height:[1,"height"],step:[1,"step"],overflow:[1,"overflow"],strict:[1,"strict"],zoomOnHover:[1,"zoomOnHover"],realignOnResize:[1,"realignOnResize"],randomizeAngle:[1,"randomizeAngle"],background:[1,"background"],font:[1,"font"],delay:[1,"delay"],config:[1,"config"],log:[1,"log"]},outputs:{clicked:"clicked",afterInit:"afterInit",afterChecked:"afterChecked"},decls:0,vars:0,template:function(n,i){},styles:['[_nghost-%COMP%]{font-family:Helvetica,Arial,sans-serif;font-size:10px;line-height:normal;color:#09f;overflow:hidden;position:relative;display:block}.tag-animation-delay[_ngcontent-%COMP%]{--tag-animation-delay: .5s;animation:_ngcontent-%COMP%_fadeIn .5s;opacity:0;animation-fill-mode:forwards;animation-delay:var(--tag-animation-delay)}span[_ngcontent-%COMP%]{padding:0}span.w10[_ngcontent-%COMP%]{font-size:550%}span.w9[_ngcontent-%COMP%]{font-size:500%}span.w8[_ngcontent-%COMP%]{font-size:450%}span.w7[_ngcontent-%COMP%]{font-size:400%}span.w6[_ngcontent-%COMP%]{font-size:350%}span.w5[_ngcontent-%COMP%]{font-size:300%}span.w4[_ngcontent-%COMP%]{font-size:250%}span.w3[_ngcontent-%COMP%]{font-size:200%}span.w2[_ngcontent-%COMP%]{font-size:150%}span.w1[_ngcontent-%COMP%]{font-size:100%}a[_ngcontent-%COMP%]:hover{color:#0df}a[_ngcontent-%COMP%]:hover, span.w10[_ngcontent-%COMP%], span.w9[_ngcontent-%COMP%], span.w8[_ngcontent-%COMP%]{color:#0cf}span.w7[_ngcontent-%COMP%]{color:#39d}span.w6[_ngcontent-%COMP%]{color:#90c5f0}span.w5[_ngcontent-%COMP%]{color:#90a0dd}span.w4[_ngcontent-%COMP%]{color:#90c5f0}span.w3[_ngcontent-%COMP%]{color:#a0ddff}span.w2[_ngcontent-%COMP%]{color:#9ce}span.w1[_ngcontent-%COMP%]{color:#aab5f0}.tooltip[_ngcontent-%COMP%] .tooltiptext[_ngcontent-%COMP%]{visibility:hidden;width:inherit;background-color:#555;color:#fff;text-align:center;border-radius:6px;padding:5px 10px;position:absolute;bottom:100%;left:0;opacity:0;transition:opacity .3s}.tooltip[_ngcontent-%COMP%] .tooltiptext[_ngcontent-%COMP%]:after{content:"";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#555 transparent transparent transparent}.tooltip[_ngcontent-%COMP%]:hover .tooltiptext[_ngcontent-%COMP%]{visibility:visible;opacity:1}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0}to{opacity:1}}'],changeDetection:0})}}return o})();var B=d(5970);const O=["wordCloudContainer"];function G(o,a){if(1&o){const t=e.RV6();e.j41(0,"angular-tag-cloud",3),e.bIt("clicked",function(i){l.eBV(t);const s=e.XpG();return l.Njj(s.handleClicked(i))}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("data",t.data())("zoomOnHover",t.zoomOnHoverOptions())("width",t.containerSize().width)("height",t.containerSize().height)("overflow",t.overflow())("realignOnResize",!0)}}let P=(()=>{class o{words=(0,r.hFB)();entries=(0,r.hFB)();caseSensitive=(0,r.hFB)(!1);clickable=(0,r.hFB)(!1);multiSelect=(0,r.hFB)(!1);highlightSelection=(0,r.hFB)(!1);minWeight=(0,r.hFB)(1);maxWeight=(0,r.hFB)(5);maxWords=(0,r.hFB)(50);colorScheme=(0,r.hFB)(["var(--cue-chart-text-color)","var(--cue-chart-text-color-select)"]);overflow=(0,r.hFB)(!1);clickedWord=(0,r.CGW)();selectionChanged=(0,r.CGW)();wordCloudContainer;containerSize=(0,l.vPA)({width:0,height:0});selection=(0,l.vPA)([]);data=(0,u.EW)(()=>{const t=this.words(),n=this.entries();return n?.length||t?.length?n?.length?n:t?.length?this._buildEntriesFromWords(t):[]:[]});ngAfterViewInit(){const t=new MutationObserver(()=>{this._applySelectionStyles()});this.wordCloudContainer?.nativeElement&&t.observe(this.wordCloudContainer.nativeElement,{childList:!0,subtree:!0})}handleResize(t){0!==t.newRect.height&&this.containerSize.set({width:t.newRect.width,height:t.newRect.height})}styleSelection=(0,l.QZP)(()=>{this.selection(),this._applySelectionStyles()});zoomOnHoverOptions=(0,u.EW)(()=>({scale:1.1,transitionTime:this.clickable()?1.2:0,delay:.05}));_buildEntriesFromWords(t){const n=new Map;for(const g of t){const v=this.caseSensitive()?g:g.toLowerCase();n.set(v,(n.get(v)||0)+1)}const i=Array.from(n.entries());if(0===i.length)return[];const s=i.map(([,g])=>g),c=Math.min(...s),p=Math.max(...s);return p===c?i.map(([g])=>({text:g,weight:this.maxWeight()})):i.sort(([,g],[,v])=>v-g).slice(0,this.maxWords()).map(([g,v])=>({text:g,weight:this.minWeight()+(v-c)*(this.maxWeight()-this.minWeight())/(p-c),color:this.colorScheme()[Math.floor(Math.random()*this.colorScheme().length)]}))}_applySelectionStyles(){if(!this.highlightSelection())return;const t=this.wordCloudContainer?.nativeElement;void 0!==t&&t.querySelectorAll("span").forEach(i=>{i.textContent&&(this.selection().includes(i.textContent.trim())?i.classList.add("selected"):i.classList.remove("selected"))})}handleClicked(t){this.clickable()&&(this.clickedWord.emit(t.text),this.highlightSelection()&&(this.selection().includes(t.text)?this.selection.update(n=>n.filter(i=>i!==t.text)):this.multiSelect()?this.selection.update(n=>[...n,t.text]):this.selection.update(()=>[t.text])),this.selectionChanged.emit(this.selection()))}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-word-cloud"]],viewQuery:function(n,i){if(1&n&&e.GBs(O,5),2&n){let s;e.mGM(s=e.lsd())&&(i.wordCloudContainer=s.first)}},inputs:{words:[1,"words"],entries:[1,"entries"],caseSensitive:[1,"caseSensitive"],clickable:[1,"clickable"],multiSelect:[1,"multiSelect"],highlightSelection:[1,"highlightSelection"],minWeight:[1,"minWeight"],maxWeight:[1,"maxWeight"],maxWords:[1,"maxWords"],colorScheme:[1,"colorScheme"],overflow:[1,"overflow"]},outputs:{clickedWord:"clickedWord",selectionChanged:"selectionChanged"},decls:3,vars:5,consts:[["wordCloudContainer",""],["cueResized","",1,"wordcloud-container",3,"resized"],[3,"data","zoomOnHover","width","height","overflow","realignOnResize"],[3,"clicked","data","zoomOnHover","width","height","overflow","realignOnResize"]],template:function(n,i){1&n&&(e.j41(0,"div",1,0),e.bIt("resized",function(c){return i.handleResize(c)}),e.nVh(2,G,1,6,"angular-tag-cloud",2),e.k0s()),2&n&&(e.xc7("display",i.data().length?"block":"none"),e.AVh("clickable",i.clickable()),e.R7$(2),e.vxM(i.data().length?2:-1))},dependencies:[E,B.C],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%;min-height:200px}.wordcloud-container[_ngcontent-%COMP%]{width:100%;height:100%} .wordcloud-container.clickable angular-tag-cloud span{cursor:pointer} .selected{text-decoration:underline}"],changeDetection:0})}return o})();var I=d(5971),V=d(5448),Y=d(3319),K=d(4372),me=d(6950),W=d(7598),j=d(2245),z=d(5381),$=d(7089),h=d(9352),U=d(2444),pe=d(9695),he=d(5745),J=d(8957);let H=(()=>{class o{value="";lineHeight="1.5";agInit(t){this.value=t.value||"",this.lineHeight=t.colDef&&t.colDef.cellRendererParams&&t.colDef.cellRendererParams.lineHeight||t.context&&t.context.lineHeight||"1.5"}refresh(t){return this.value=t.value||"",!0}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-multiline-cell-renderer"]],decls:2,vars:3,consts:[[1,"multiline-cell"]],template:function(n,i){1&n&&(e.rj2(0,"div",0),e.EFF(1),e.eux()),2&n&&(e.xc7("line-height",i.lineHeight),e.R7$(),e.JRh(i.value))},styles:[".multiline-cell[_ngcontent-%COMP%]{white-space:pre-wrap;word-wrap:break-word;padding:4px 2px;text-align:left}"]})}return o})(),ge=(()=>{class o{_value=(0,l.vPA)("");_options=(0,l.vPA)([]);_disabled=(0,l.vPA)(!1);_disabledTooltip=(0,l.vPA)("");_canChange=(0,l.vPA)(void 0);_optionValues=(0,u.EW)(()=>this._options().map(t=>t.value));_labelMap=(0,u.EW)(()=>Object.fromEntries(this._options().map(t=>[t.value,t.label])));_params;agInit(t){this._apply(t)}refresh(t){return this._apply(t),!0}onValueChange(t){if(void 0===t)return;const n=String(t),i=this._canChange();i&&!i(n)||(this._value.set(n),this._params.setValue?.(n))}_apply(t){this._params=t,this._value.set(t.value??"");const n="function"==typeof t.colDef?.cellRendererParams?t.colDef.cellRendererParams(t):t.colDef?.cellRendererParams??{};this._options.set(n.options??[]),this._disabled.set(n.disabled??!1),this._disabledTooltip.set(n.disabledTooltip??""),this._canChange.set(n.canChange??void 0)}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-select-cell-renderer"]],decls:1,vars:7,consts:[[3,"valueChange","options","labelMap","value","underline","menuPosition","disabled","cueTooltip"]],template:function(n,i){1&n&&(e.j41(0,"cue-select",0),e.bIt("valueChange",function(c){return i.onValueChange(c)}),e.k0s()),2&n&&e.Y8G("options",i._optionValues())("labelMap",i._labelMap())("value",i._value())("underline",!1)("menuPosition","bottomleft")("disabled",i._disabled())("cueTooltip",i._disabled()?i._disabledTooltip():"")},dependencies:[U.l,$.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 o})();var fe=d(7374),Q=d.n(fe),_e=d(4955),ve=d.n(_e),Ce=d(5164),be=d.n(Ce);d(9785),d(2269),d(1409),d(4230),d(2494),d(9531),Q().extend(ve()),Q().extend(be());let xe=(()=>{class o{_transloco=(0,l.WQX)(h.JO);transform(t,n="dateTime"){if(!t)return"";const i=this._transloco.getActiveLang(),s=Q()(t).locale(i);return"timeAgo"===n?s.fromNow():s.format("date"===n?"LL":"shortDate"===n?"L":"LLL")}static \u0275fac=function(n){return new(n||o)};static \u0275pipe=e.EJ8({name:"cueLocalDate",type:o,pure:!0})}return o})(),X=(()=>{class o{_value=(0,l.vPA)("");_format=(0,l.vPA)("dateTime");agInit(t){this._apply(t)}refresh(t){return this._apply(t),!0}_apply(t){this._value.set(t.value??""),this._format.set(t.colDef?.cellRendererParams?.dateFormat??"dateTime")}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-date-cell-renderer"]],decls:2,vars:4,template:function(n,i){1&n&&(e.EFF(0),e.nI1(1,"cueLocalDate")),2&n&&e.JRh(e.i5U(1,1,i._value(),i._format()))},dependencies:[xe],encapsulation:2,changeDetection:0})}return o})();const Me=["*"];function De(o,a){1&o&&e.SdG(0)}let ye=(()=>{class o{label=r.hFB.required();expanded=(0,r.geq)(!1);size=(0,r.hFB)("m");info=(0,r.hFB)("");expandToggled=(0,r.CGW)();toggle(){this.expanded.set(!this.expanded()),this.expandToggled.emit(this.expanded())}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-expansion-panel"]],inputs:{label:[1,"label"],expanded:[1,"expanded"],size:[1,"size"],info:[1,"info"]},outputs:{expanded:"expandedChange",expandToggled:"expandToggled"},ngContentSelectors:Me,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(n,i){1&n&&(e.NAR(),e.j41(0,"cue-flexcontainer",0)(1,"cue-flexcontainer",1),e.bIt("click",function(){return i.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,De,1,0),e.k0s()),2&n&&(e.R7$(2),e.Y8G("size",i.size())("info",i.info()),e.R7$(),e.JRh(i.label()),e.R7$(),e.Y8G("size",i.size()),e.R7$(),e.AVh("rotate",!0)("rotate-180",i.expanded()),e.R7$(2),e.vxM(i.expanded()?7:-1))},dependencies:[j.Typography,z.n,I.$,Y.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 o})();function ee(o){if(o)return o.replace(/([A-Z])/g," $1").replace(/^./,a=>a.toUpperCase())}var Se=d(9417),Te=d(1359);const we=(o,a)=>a.value;function Fe(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-input",6),e.bIt("valueChange",function(i){l.eBV(t);const s=e.XpG();return s.searchText=i,l.Njj(s.onSearchChange())}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("value",t.searchText)}}function ke(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-checkbox",7),e.bIt("checkedChange",function(i){const s=l.eBV(t).$implicit,c=e.XpG();return s.selected=i,l.Njj(c.onSelectionChange())}),e.k0s()}if(2&o){const t=a.$implicit;e.Y8G("label",t.value||"(blank)")("checked",t.selected)}}function Re(o,a){1&o&&(e.j41(0,"cue-typography",5),e.EFF(1,"No results"),e.k0s())}let te=(()=>{class o{_cdr=(0,l.WQX)(r.gRc);_params;options=[];filteredOptions=[];searchText="";agInit(t){this._params=t}afterGuiAttached(t){this._refreshOptions(),this._cdr.markForCheck()}onNewRowsLoaded(){this._refreshOptions(),this._cdr.markForCheck()}isFilterActive(){return this.options.some(t=>!t.selected)}doesFilterPass(t){const n=new Set(this.options.filter(p=>p.selected).map(p=>p.value)),i=this._params.getValue(t.node),s=null==i?"":String(i);return"..."===s||"Loading..."===s||(""===s?n.has(""):s.split(", ").map(p=>p.trim()).some(p=>n.has(p)))}getModel(){return this.isFilterActive()?{selectedValues:this.options.filter(t=>t.selected).map(t=>t.value)}:null}setModel(t){if(t){const n=new Set(t.selectedValues);this.options.forEach(i=>i.selected=n.has(i.value))}else this.options.forEach(n=>n.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(t=>t.selected)}toggleAll(t){this.options.forEach(n=>n.selected=t),this._applySearch(),this._params.filterChangedCallback(),this._cdr.markForCheck()}_refreshOptions(){const t=new Set;this._params.api.forEachNode(i=>{const s=this._params.getValue(i);if(null==s||""===s)t.add("");else{const c=String(s);if("..."===c||"Loading..."===c)return;const p=c.split(", ").map(f=>f.trim());for(const f of p)t.add(f)}});const n=new Map(this.options.map(i=>[i.value,i.selected]));this.options=Array.from(t).sort((i,s)=>i.localeCompare(s)).map(i=>({value:i,selected:n.get(i)??!0})),this._applySearch()}_applySearch(){const t=this.searchText.toLowerCase().trim();this.filteredOptions=t?this.options.filter(n=>n.value.toLowerCase().includes(t)):this.options}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,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(n,i){1&n&&(e.j41(0,"cue-flexcontainer",0),e.nVh(1,Fe,1,1,"cue-input",1),e.j41(2,"cue-checkbox",2),e.bIt("checkedChange",function(c){return i.toggleAll(c)}),e.k0s(),e.j41(3,"div",3),e.Z7z(4,ke,1,2,"cue-checkbox",4,we),e.nVh(6,Re,2,0,"cue-typography",5),e.k0s()()),2&n&&(e.R7$(),e.vxM(i.options.length>10?1:-1),e.R7$(),e.Y8G("checked",i.allSelected),e.R7$(2),e.Dyx(i.filteredOptions),e.R7$(2),e.vxM(0===i.filteredOptions.length?6:-1))},dependencies:[Se.YN,Te.S,J.p,j.Typography,z.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 o})();function Ne(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-input",4),e.bIt("valueChange",function(i){l.eBV(t);const s=e.XpG();return l.Njj(s.onValueChange(i))}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("value",t.filterText)}}function Ge(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-typography",5),e.bIt("click",function(){l.eBV(t);const i=e.XpG();return l.Njj(i.clear())}),e.EFF(1,"Clear"),e.k0s()}}let ne=(()=>{class o{_cdr=(0,l.WQX)(r.gRc);_params;filterText="";filterType="contains";filterTypeOptions=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"];_labelContains=(0,h.Xx)("components.agGridColumnSelect.textFilterContains");_labelNotContains=(0,h.Xx)("components.agGridColumnSelect.textFilterNotContains");_labelEquals=(0,h.Xx)("components.agGridColumnSelect.textFilterEquals");_labelNotEqual=(0,h.Xx)("components.agGridColumnSelect.textFilterNotEqual");_labelStartsWith=(0,h.Xx)("components.agGridColumnSelect.textFilterStartsWith");_labelEndsWith=(0,h.Xx)("components.agGridColumnSelect.textFilterEndsWith");_labelBlank=(0,h.Xx)("components.agGridColumnSelect.textFilterBlank");_labelNotBlank=(0,h.Xx)("components.agGridColumnSelect.textFilterNotBlank");filterTypeLabelMap=(0,u.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,u.EW)(()=>!["blank","notBlank"].includes(this.filterType));agInit(t){this._params=t}afterGuiAttached(t){this._cdr.markForCheck()}isFilterActive(){return!!["blank","notBlank"].includes(this.filterType)||this.filterText.trim().length>0}doesFilterPass(t){const n=this._params.getValue(t.node),i=null==n?"":String(n),s=this.filterText.toLowerCase().trim(),c=i.toLowerCase();switch(this.filterType){case"contains":default:return c.includes(s);case"notContains":return!c.includes(s);case"equals":return c===s;case"notEqual":return c!==s;case"startsWith":return c.startsWith(s);case"endsWith":return c.endsWith(s);case"blank":return""===i;case"notBlank":return""!==i}}getModel(){return this.isFilterActive()?{filterType:"text",type:this.filterType,filter:this.filterText}:null}setModel(t){this.filterText=t?.filter??"",this.filterType=t?.type??"contains",this._cdr.markForCheck()}onValueChange(t){this.filterText=t,this._params.filterChangedCallback(),this._cdr.markForCheck()}onFilterTypeChange(t){this.filterType=String(t||"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(n){return new(n||o)};static \u0275cmp=e.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(n,i){1&n&&(e.j41(0,"cue-flexcontainer",0)(1,"cue-select",1),e.bIt("valueChange",function(c){return i.onFilterTypeChange(c)}),e.k0s(),e.nVh(2,Ne,1,1,"cue-input",2),e.nVh(3,Ge,2,0,"cue-typography",3),e.k0s()),2&n&&(e.R7$(),e.Y8G("value",i.filterType)("options",i.filterTypeOptions)("labelMap",i.filterTypeLabelMap()),e.R7$(),e.vxM(i.showTextInput()?2:-1),e.R7$(),e.vxM(i.filterText||"contains"!==i.filterType?3:-1))},dependencies:[J.p,U.l,j.Typography,z.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})();const Ie=[{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 oe(o){const a=[];let t=0;for(;t<o.length;){if(/\s/.test(o[t])){t++;continue}if('"'===o[t]||"'"===o[t]){const i=o[t++];let s="";for(;t<o.length&&o[t]!==i;)s+="\\"===o[t]?o[++t]:o[t],t++;if(o[t]!==i)throw new Error("Unterminated string literal");t++,a.push({kind:"str",val:s});continue}const n=o.slice(t).match(/^(\d+\.?\d*|\.\d+)([eE][+-]?\d+)?/);if(n)a.push({kind:"num",val:n[0]}),t+=n[0].length;else{if("?"===o[t]){let i="?";for(t++;t<o.length&&/\w/.test(o[t]);)i+=o[t++];a.push({kind:"var",val:i});continue}if(/[A-Za-z_]/.test(o[t])){let i="";for(;t<o.length&&/\w/.test(o[t]);)i+=o[t++];a.push({kind:"ident",val:i.toUpperCase()});continue}if("**"!==o.slice(t,t+2)){if(!"+-*/%(),".includes(o[t]))throw new Error(`Unexpected character "${o[t]}" at position ${t}`);a.push({kind:"op",val:o[t++]})}else a.push({kind:"op",val:"**"}),t+=2}}return a.push({kind:"eof",val:""}),a}class se{tokens;vars;pos=0;constructor(a,t){this.tokens=a,this.vars=t}parse(){const a=this.expr();if("eof"!==this.tokens[this.pos].kind)throw new Error(`Unexpected token "${this.tokens[this.pos].val}" after expression`);return a}peek(){return this.tokens[this.pos]}next(){return this.tokens[this.pos++]}eat(a){if(this.peek().val!==a)throw new Error(`Expected "${a}", got "${this.peek().val||"end of input"}"`);this.pos++}expr(){return this.additive()}additive(){let a=this.multiplicative();for(;"op"===this.peek().kind&&("+"===this.peek().val||"-"===this.peek().val);){const t=this.next().val,n=this.multiplicative();a="+"===t?"string"==typeof a||"string"==typeof n?String(a)+String(n):a+n:M(a)-M(n)}return a}multiplicative(){let a=this.power();for(;"op"===this.peek().kind&&("*"===this.peek().val||"/"===this.peek().val||"%"===this.peek().val);){const t=this.next().val,n=this.power();if("*"===t)a=M(a)*M(n);else if("/"===t){const i=M(n);a=0!==i?M(a)/i:0}else a=M(a)%M(n)}return a}power(){const a=this.unary();return"op"===this.peek().kind&&"**"===this.peek().val?(this.next(),Math.pow(M(a),M(this.power()))):a}unary(){return"op"===this.peek().kind&&"-"===this.peek().val?(this.next(),-M(this.primary())):this.primary()}primary(){const a=this.peek();if("num"===a.kind)return this.next(),Number(a.val);if("str"===a.kind)return this.next(),a.val;if("var"===a.kind)return this.next(),this.vars[a.val]??"";if("ident"===a.kind)return this.funcCall();if("op"===a.kind&&"("===a.val){this.next();const t=this.expr();return this.eat(")"),t}throw new Error(`Unexpected token: "${a.val}"`)}funcCall(){const a=this.next().val;this.eat("(");const t=[];if(")"!==this.peek().val)for(t.push(this.expr());","===this.peek().val;)this.next(),t.push(this.expr());return this.eat(")"),function Ae(o,a){const t=n=>a[n]??"";switch(o){case"ROUND":return Number(M(t(0)).toFixed(Math.max(0,M(t(1)))));case"FLOOR":return Math.floor(M(t(0)));case"CEIL":return Math.ceil(M(t(0)));case"ABS":return Math.abs(M(t(0)));case"SQRT":return Math.sqrt(M(t(0)));case"MIN":return Math.min(...a.map(M));case"MAX":return Math.max(...a.map(M));case"CONCAT":return a.map(n=>String(n)).join("");case"TRIM":return String(t(0)).trim();case"UPPER":return String(t(0)).toUpperCase();case"LOWER":return String(t(0)).toLowerCase();case"LEN":return String(t(0)).length;case"REPLACE":return String(t(0)).replaceAll(String(t(1)),String(t(2)));case"NUM":return M(t(0));case"STR":return String(t(0));case"PREFIX":return String(t(0))?String(t(1))+String(t(0)):String(t(0));case"SUFFIX":return String(t(0))?String(t(0))+String(t(1)):String(t(0));case"IF":return 0!==M(t(0))&&""!==t(0)&&"false"!==t(0)?t(1):t(2);case"AFTER_LAST":{const n=String(t(0)),i=String(t(1)),s=n.lastIndexOf(i);return-1===s?n:n.slice(s+i.length)}case"AFTER_FIRST":{const n=String(t(0)),i=String(t(1)),s=n.indexOf(i);return-1===s?n:n.slice(s+i.length)}case"BEFORE_LAST":{const n=String(t(0)),i=String(t(1)),s=n.lastIndexOf(i);return-1===s?n:n.slice(0,s)}case"BEFORE_FIRST":{const n=String(t(0)),i=String(t(1)),s=n.indexOf(i);return-1===s?n:n.slice(0,s)}case"SEGMENT":return String(t(0)).split(String(t(1)))[M(t(2))]??"";default:throw new Error(`Unknown function: "${o}"`)}}(a,t)}}function M(o){if("number"==typeof o)return o;const a=Number(o);return isNaN(a)?0:a}const Ee=["*",[["","cueDisplayContent",""]],[["","cueDataContent",""]],[["","cueBehaviorContent",""]],[["","cueExtraContent",""]]],Oe=["*","[cueDisplayContent]","[cueDataContent]","[cueBehaviorContent]","[cueExtraContent]"],je=(o,a)=>a.name;function ze(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-input",7),e.nI1(1,"transloco"),e.bIt("valueChange",function(i){l.eBV(t);const s=e.XpG(2);return l.Njj(s.setLabel(i))}),e.k0s()}if(2&o){const t=e.XpG(2);e.Y8G("label",e.bMT(1,2,"components.agGridColumnSelect.labelLabel"))("value",t.label())}}function Be(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-button",11),e.bIt("click",function(){const i=l.eBV(t).$implicit,s=e.XpG(3);return l.Njj(s.setTextAlign(i))}),e.nrm(1,"cue-button-icon",12),e.k0s()}if(2&o){const t=a.$implicit,n=e.XpG(3);e.Y8G("selected",n.textAlign()===t),e.R7$(),e.Y8G("icon",n.ALIGN_ICON[t])}}function Ve(o,a){if(1&o&&(e.j41(0,"cue-typography",8),e.EFF(1),e.nI1(2,"transloco"),e.k0s(),e.j41(3,"cue-flexcontainer",9),e.Z7z(4,Be,2,2,"cue-button",10,e.Vm6),e.k0s()),2&o){const t=e.XpG(2);e.R7$(),e.SpI(" ",e.bMT(2,1,"components.agGridColumnSelect.labelTextAlign")," "),e.R7$(3),e.Dyx(t.alignOptions)}}function Ye(o,a){if(1&o){const t=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(i){l.eBV(t);const s=e.XpG(2);return l.Njj(s.setMultiline(i))}),e.k0s()()}if(2&o){const t=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",t.multiline())}}function We(o,a){if(1&o&&(e.j41(0,"cue-expansion-panel",2),e.nI1(1,"transloco"),e.j41(2,"cue-flexcontainer",4),e.nVh(3,ze,2,4,"cue-input",5),e.nVh(4,Ve,6,3),e.nVh(5,Ye,6,7,"cue-flexcontainer",6),e.SdG(6,1),e.k0s()()),2&o){const t=e.XpG();e.Y8G("label",e.bMT(1,5,"components.agGridColumnSelect.groupDisplay"))("expanded",!0),e.R7$(3),e.vxM(t.settings().allowSettingLabel?3:-1),e.R7$(),e.vxM(t.settings().allowSettingTextAlign?4:-1),e.R7$(),e.vxM(t.settings().allowSettingMultiline?5:-1)}}function $e(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-select",16),e.nI1(1,"transloco"),e.bIt("valueChange",function(i){l.eBV(t);const s=e.XpG(2);return l.Njj(s.setFilterType(i))}),e.k0s()}if(2&o){const t=e.XpG(2);e.Y8G("label",e.bMT(1,4,"components.agGridColumnSelect.labelFilterType"))("value",t.filterType())("options",t.filterTypeOptions)("labelMap",t.filterTypeLabelMap())}}function He(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-input",7),e.nI1(1,"transloco"),e.bIt("valueChange",function(i){l.eBV(t);const s=e.XpG(2);return l.Njj(s.setEnumValues(i))}),e.k0s()}if(2&o){const t=e.XpG(2);e.Y8G("label",e.bMT(1,2,"components.agGridColumnSelect.labelEnumValues"))("value",t.enumValuesText())}}function Xe(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-select",16),e.bIt("valueChange",function(i){l.eBV(t);const s=e.XpG(3);return l.Njj(s.setDateFormat(i))}),e.k0s()}if(2&o){const t=e.XpG(3);e.Y8G("label",t._labelDateFormat())("value",t.dateFormat())("options",t.dateFormatOptions)("labelMap",t.dateFormatLabelMap())}}function Ue(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-select",16),e.bIt("valueChange",function(i){l.eBV(t);const s=e.XpG(2);return l.Njj(s.setDataType(i))}),e.k0s(),e.nVh(1,Xe,1,4,"cue-select",15)}if(2&o){const t=e.XpG(2);e.Y8G("label",t._labelDataType())("value",t.dataType())("options",t.dataTypeOptions)("labelMap",t.dataTypeLabelMap()),e.R7$(),e.vxM("date"===t.dataType()?1:-1)}}function Je(o,a){if(1&o&&(e.j41(0,"cue-expansion-panel",3),e.nI1(1,"transloco"),e.j41(2,"cue-flexcontainer",4),e.nVh(3,$e,2,6,"cue-select",15),e.nVh(4,He,2,4,"cue-input",5),e.nVh(5,Ue,2,5),e.SdG(6,2),e.k0s()()),2&o){const t=e.XpG();e.Y8G("label",e.bMT(1,4,"components.agGridColumnSelect.groupData")),e.R7$(3),e.vxM(t.settings().allowSettingFilterType?3:-1),e.R7$(),e.vxM(t.settings().allowSettingEnumValues?4:-1),e.R7$(),e.vxM(t.settings().allowSettingDataType?5:-1)}}function Qe(o,a){if(1&o){const t=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(i){l.eBV(t);const s=e.XpG();return l.Njj(s.setEditable(i))}),e.k0s()(),e.SdG(9,3),e.k0s()()}if(2&o){const t=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",t.editable())}}function Ze(o,a){if(1&o&&(e.j41(0,"cue-expansion-panel",2)(1,"cue-flexcontainer",4),e.SdG(2,4),e.k0s()()),2&o){const t=e.XpG();e.Y8G("label",t.extraPanelLabel())("expanded",t.extraPanelExpanded())}}function qe(o,a){if(1&o&&(e.j41(0,"cue-typography",19),e.EFF(1),e.nI1(2,"transloco"),e.j41(3,"strong"),e.EFF(4),e.k0s()()),2&o){const t=e.XpG(2);e.R7$(),e.SpI(" ",e.bMT(2,2,"components.agGridColumnSelect.labelPostProcessPreview"),": "),e.R7$(3),e.JRh(t.postProcessFormulaPreview())}}function Ke(o,a){if(1&o&&(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&o){const t=a.$implicit;e.R7$(2),e.JRh(t.signature),e.R7$(2),e.JRh(t.description)}}function et(o,a){if(1&o){const t=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(i){l.eBV(t);const s=e.XpG();return l.Njj(s.setPostProcessFormula(i))}),e.k0s(),e.nVh(7,qe,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,Ke,5,2,"cue-flexcontainer",21,je),e.k0s()()()()}if(2&o){const t=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",t.postProcessFormula())("error",t.postProcessFormulaError()??void 0),e.R7$(4),e.vxM(t.postProcessFormulaPreview()?7:-1),e.R7$(),e.Y8G("label",e.bMT(9,17,"components.agGridColumnSelect.labelPostProcessFunctions"))("expanded",!1),e.R7$(3),e.Dyx(t.formulaFunctions)}}class ae{allowEditing=!0;allowToggleEditable=!0;allowToggleHideOnHover=!0;allowSettingTextAlign=!0;allowSettingLabel=!0;allowSettingFilterType=!0;allowSettingMultiline=!0;allowSettingEnumValues=!0;allowSettingDataType=!1;allowSettingPostProcess=!0}const tt={Text:ne,Number:"agNumberColumnFilter",Date:"agDateColumnFilter",Select:te,None:!1,Auto:!0},nt={agTextColumnFilter:"Text",agNumberColumnFilter:"Number",agDateColumnFilter:"Date",false:"None",true:"Auto"};let it=(()=>{class o{columnDef=r.geq.required();columnIndex=(0,r.hFB)();updateColumn=(0,r.CGW)();close=(0,r.CGW)();settings=r.hFB.required();extraPanelLabel=(0,r.hFB)();extraPanelExpanded=(0,r.hFB)(!0);minWidth=(0,r.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,h.Xx)("components.agGridColumnSelect.labelDataType");_labelDateFormat=(0,h.Xx)("components.agGridColumnSelect.labelDateFormat");_dtText=(0,h.Xx)("components.agGridColumnSelect.dataTypeText");_dtNumber=(0,h.Xx)("components.agGridColumnSelect.dataTypeNumber");_dtDate=(0,h.Xx)("components.agGridColumnSelect.dataTypeDate");_dtBoolean=(0,h.Xx)("components.agGridColumnSelect.dataTypeBoolean");_dfDateTime=(0,h.Xx)("components.agGridColumnSelect.dateFormatDateTime");_dfDate=(0,h.Xx)("components.agGridColumnSelect.dateFormatDate");_dfShortDate=(0,h.Xx)("components.agGridColumnSelect.dateFormatShortDate");_dfTimeAgo=(0,h.Xx)("components.agGridColumnSelect.dateFormatTimeAgo");dataTypeLabelMap=(0,u.EW)(()=>({text:this._dtText(),number:this._dtNumber(),date:this._dtDate(),boolean:this._dtBoolean()}));dateFormatLabelMap=(0,u.EW)(()=>({dateTime:this._dfDateTime(),date:this._dfDate(),shortDate:this._dfShortDate(),timeAgo:this._dfTimeAgo()}));_labelText=(0,h.Xx)("components.agGridColumnSelect.filterTypeText");_labelNumber=(0,h.Xx)("components.agGridColumnSelect.filterTypeNumber");_labelDate=(0,h.Xx)("components.agGridColumnSelect.filterTypeDate");_labelSelect=(0,h.Xx)("components.agGridColumnSelect.filterTypeSelect");_labelNone=(0,h.Xx)("components.agGridColumnSelect.filterTypeNone");_labelAuto=(0,h.Xx)("components.agGridColumnSelect.filterTypeAuto");filterTypeLabelMap=(0,u.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,u.EW)(()=>{const t=this.columnDef().cellRenderer;return t===X||"DateCellRenderer"===t?"date":"text"});dateFormat=(0,u.EW)(()=>{const t=this.columnDef().cellRenderer;return t===X||"DateCellRenderer"===t?this.columnDef().cellRendererParams?.dateFormat??"dateTime":"dateTime"});editable=(0,u.EW)(()=>!0===this.columnDef().editable);multiline=(0,u.EW)(()=>{const t=this.columnDef().cellRenderer;return t===H||"MultilineCellRenderer"===t});_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,u.uu)(()=>{const t=this.columnDef().cellStyle;return t?.textAlign||this._FLEX_TO_ALIGN[t?.justifyContent]||"left"});filterType=(0,u.EW)(()=>{const t=this.columnDef().filter;return t===te?"Select":t===ne?"Text":nt[t]||"Auto"});enumValuesText=(0,u.EW)(()=>(this.columnDef().cellRendererParams?.options??[]).map(n=>n.value).join(", "));label=(0,u.EW)(()=>this.columnDef().headerName||ee(this.columnDef().field)||"Unknown");setEditable(t){const n=this.columnDef().cellRendererParams;this.updateColumn.emit(n?.options?.length?{editable:t,cellRendererParams:{...n,disabled:!t}}:{editable:t})}setMultiline(t){this.updateColumn.emit({cellRenderer:t?H:void 0,cellRendererParams:{lineHeight:"1.8"},autoHeight:!0})}setLabel(t){this.updateColumn.emit({headerName:t})}setTextAlign(t){const n=this.columnDef().cellStyle||{};this.updateColumn.emit({cellStyle:{...n,display:"flex",justifyContent:this._ALIGN_TO_FLEX[t]??t,textAlign:t},headerClass:`header-align-${t}`}),this.textAlign.set(t)}setFilterType(t){this.updateColumn.emit({filter:tt[t]??!0})}setEnumValues(t){const n=t.split(",").map(i=>i.trim()).filter(i=>i.length>0);if(0===n.length)this.updateColumn.emit({cellRenderer:void 0,cellRendererParams:void 0});else{const i=n.map(s=>({value:s,label:s}));this.updateColumn.emit({cellRenderer:ge,cellRendererParams:{options:i,disabled:!this.editable()}})}}setDateFormat(t){t&&this.updateColumn.emit({cellRenderer:X,cellRendererParams:{dateFormat:t}})}setDataType(t){this.updateColumn.emit("date"===t?{cellRenderer:X,cellRendererParams:{dateFormat:"dateTime"}}:{cellRenderer:void 0,cellRendererParams:void 0})}formulaFunctions=Ie;postProcessFormula=(0,u.EW)(()=>function Pe(o){return o&&"none"!==o.type?"round"===o.type?`ROUND(?val, ${o.decimals})`:"prefix"===o.type?`PREFIX(?val, "${o.value.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}")`:"suffix"===o.type?`SUFFIX(?val, "${o.value.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}")`:"formula"===o.type?o.expression:"":""}(this.columnDef().postProcess));postProcessFormulaError=(0,u.EW)(()=>function Le(o){if(!o||!o.trim())return null;try{const a=oe(o);return new se(a,{"?val":"42"}).parse(),null}catch(a){return a?.message??"Invalid formula"}}(this.postProcessFormula()));postProcessFormulaPreview=(0,u.EW)(()=>{const t=this.postProcessFormula();return!t||this.postProcessFormulaError()?"":function ie(o,a){if(!o||!o.trim())return a;try{const t=oe(o),n=new se(t,{"?val":a}).parse();return null==n?"":String(n)}catch{return a}}(t,"42")});setPostProcessFormula(t){const n=t.trim();this.updateColumn.emit({postProcess:n?{type:"formula",expression:n}:void 0})}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,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:Oe,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(n,i){1&n&&(e.NAR(Ee),e.j41(0,"cue-modal",0),e.nI1(1,"transloco"),e.bIt("close",function(){return i.close.emit()}),e.j41(2,"cue-flexcontainer",1),e.nVh(3,We,7,7,"cue-expansion-panel",2),e.nVh(4,Je,7,6,"cue-expansion-panel",3),e.nVh(5,Qe,10,10,"cue-expansion-panel",3),e.nVh(6,Ze,3,2,"cue-expansion-panel",2),e.nVh(7,et,13,19,"cue-expansion-panel",3),e.SdG(8),e.k0s()()),2&n&&(e.Y8G("label",e.bMT(1,7,"components.agGridColumnSelect.titleColumnSettings"))("minWidth",i.minWidth()),e.R7$(3),e.vxM(i.settings().allowSettingLabel||i.settings().allowSettingTextAlign||i.settings().allowSettingMultiline?3:-1),e.R7$(),e.vxM(i.settings().allowSettingFilterType||i.settings().allowSettingEnumValues||i.settings().allowSettingDataType?4:-1),e.R7$(),e.vxM(i.settings().allowToggleEditable?5:-1),e.R7$(),e.vxM(i.extraPanelLabel()?6:-1),e.R7$(),e.vxM(i.settings().allowSettingPostProcess?7:-1))},dependencies:[he.a,z.n,j.Typography,U.l,pe.d,$.d,J.p,I.$,Y.a,ye,h.Kj],encapsulation:2,changeDetection:0})}return o})();var le=d(9769);const re=o=>[o],ot=(o,a)=>({$implicit:o,index:a});function st(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-table-column-settings-modal",9),e.bIt("updateColumn",function(i){const s=l.eBV(t),c=e.XpG();return l.Njj(c.updateColumnDef(s.index,i))})("close",function(){l.eBV(t);const i=e.XpG();return l.Njj(i.handleModalClose())}),e.k0s()}if(2&o){const t=a,n=e.XpG();e.Y8G("columnDef",t.col)("columnIndex",t.index)("settings",n.settings())}}function at(o,a){1&o&&e.eu8(0)}function lt(o,a){if(1&o&&e.DNE(0,at,1,0,"ng-container",13),2&o){const t=e.XpG(),n=t.$implicit,i=t.$index;e.Y8G("ngTemplateOutlet",a.templateRef)("ngTemplateOutletContext",e.l_i(2,ot,n,i))}}function rt(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-button",14),e.nI1(1,"transloco"),e.bIt("click",function(){l.eBV(t);const i=e.XpG(),s=i.$implicit,c=i.$index,p=e.XpG();return l.Njj(p.showColumnSettings(s,c))}),e.nrm(2,"cue-button-icon",15),e.k0s()}2&o&&e.Y8G("cueTooltip",e.bMT(1,1,"components.agGridColumnSelect.tooltipSettings"))}function ct(o,a){if(1&o&&(e.j41(0,"div",8)(1,"cue-flexcontainer",10)(2,"cue-typography"),e.EFF(3),e.k0s(),e.nrm(4,"span",11),e.nVh(5,lt,1,5,"ng-container"),e.nVh(6,rt,3,3,"cue-button",12),e.k0s()()),2&o){let t;const n=a.$implicit,i=e.XpG();e.R7$(3),e.JRh(i.getLabel(n)),e.R7$(2),e.vxM((t=i.columnItemTpl())?5:-1,t),e.R7$(),e.vxM(i.settings().allowEditing?6:-1)}}function dt(o,a){1&o&&e.eu8(0)}function ut(o,a){1&o&&e.DNE(0,dt,1,0,"ng-container",16),2&o&&e.Y8G("ngTemplateOutlet",a.templateRef)}function mt(o,a){if(1&o&&(e.j41(0,"div",8)(1,"cue-typography"),e.EFF(2),e.k0s()()),2&o){const t=a.$implicit,n=e.XpG();e.R7$(2),e.JRh(n.getLabel(t))}}let ce=(()=>{class o{templateRef=(0,l.WQX)(e.C4Q);static ngTemplateContextGuard(t,n){return!0}static \u0275fac=function(n){return new(n||o)};static \u0275dir=e.FsC({type:o,selectors:[["","cueColumnItem",""]]})}return o})(),de=(()=>{class o{templateRef=(0,l.WQX)(e.C4Q);static \u0275fac=function(n){return new(n||o)};static \u0275dir=e.FsC({type:o,selectors:[["","cueColumnListFooter",""]]})}return o})(),pt=(()=>{class o{columnDefs=r.geq.required();columnDefsGross=(0,r.geq)([]);settings=(0,r.hFB)(new ae);shown=(0,r.CGW)();columnItemTpl=(0,r.sbv)(ce);columnListFooterTpl=(0,r.sbv)(de);shownColumns=(0,l.vPA)([]);hiddenColumns=(0,l.vPA)([]);displayColumnSettings=(0,l.vPA)(void 0);onNoColumnDefsGross=(0,l.QZP)(()=>{(!this.columnDefsGross()||0===this.columnDefsGross().length)&&this.columnDefsGross.set(this.columnDefs())});onColumnDefs=(0,l.QZP)(()=>{const t=this.columnDefs().map(i=>i.field),n=this.columnDefsGross().filter(i=>!t.includes(i.field));this.shownColumns.update(()=>[...this.columnDefs()]),this.hiddenColumns.update(()=>[...n])});drop(t){t.previousContainer===t.container?(0,W.HD)(t.container.data,t.previousIndex,t.currentIndex):(0,W.eg)(t.previousContainer.data,t.container.data,t.previousIndex,t.currentIndex);const n=this.shownColumns();this.columnDefs.update(()=>[...n]),this.shown.emit(n)}showColumnSettings(t,n){this.displayColumnSettings.set({col:t,index:n})}updateColumnDef(t,n){const i=this.columnDefs().map((s,c)=>c===t?{...s,...n}:s);this.columnDefs.set(i),this.shown.emit(i),this.shownColumns.set(i)}getLabel(t){return t.headerName||ee(t.field)||"Unknown"}handleModalClose(){this.displayColumnSettings.set(void 0)}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-ag-grid-column-select"]],contentQueries:function(n,i,s){1&n&&e.C6U(s,i.columnItemTpl,ce,5)(s,i.columnListFooterTpl,de,5),2&n&&e.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"],["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(n,i){if(1&n&&(e.nVh(0,st,1,3,"cue-table-column-settings-modal",2),e.j41(1,"cue-typography",3),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"cue-flexcontainer",4)(5,"cue-flexcontainer",5)(6,"cue-typography",6),e.EFF(7),e.nI1(8,"transloco"),e.k0s(),e.j41(9,"div",7,0),e.bIt("cdkDropListDropped",function(c){return i.drop(c)}),e.Z7z(11,ct,7,3,"div",8,e.Vm6),e.nVh(13,ut,1,1,"ng-container"),e.k0s()(),e.j41(14,"cue-flexcontainer",5)(15,"cue-typography",6),e.EFF(16),e.nI1(17,"transloco"),e.k0s(),e.j41(18,"div",7,1),e.bIt("cdkDropListDropped",function(c){return i.drop(c)}),e.Z7z(20,mt,3,1,"div",8,e.Vm6),e.k0s()()()),2&n){let s,c;const p=e.sdS(10),f=e.sdS(19);e.vxM((s=i.displayColumnSettings())?0:-1,s),e.R7$(2),e.JRh(e.bMT(3,9,"components.agGridColumnSelect.dragHint")),e.R7$(5),e.JRh(e.bMT(8,11,"components.agGridColumnSelect.titleShown"));const g=i.shownColumns();e.R7$(2),e.Y8G("cdkDropListData",g)("cdkDropListConnectedTo",e.eq3(15,re,f)),e.R7$(2),e.Dyx(g),e.R7$(2),e.vxM((c=i.columnListFooterTpl())?13:-1,c),e.R7$(3),e.JRh(e.bMT(17,13,"components.agGridColumnSelect.titleHidden"));const v=i.hiddenColumns();e.R7$(2),e.Y8G("cdkDropListData",v)("cdkDropListConnectedTo",e.eq3(17,re,p)),e.R7$(2),e.Dyx(v)}},dependencies:[W.O7,W.T1,j.Typography,z.n,I.$,Y.a,$.d,it,le.T3,h.Kj],styles:[".panel[_ngcontent-%COMP%]{width:50%;display:flex;flex-direction:column}.list[_ngcontent-%COMP%]{border:solid 1px #ccc;min-height:60px;flex:1;background:#fff;border-radius:4px;overflow:hidden;display:block}.box[_ngcontent-%COMP%]{padding:20px 10px;border-bottom:solid 1px #ccc;color:#000000de;display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;background:#fff;font-size:14px}.draggable[_ngcontent-%COMP%]{cursor:move}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.box[_ngcontent-%COMP%]:last-child{border: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 o})();function ht(o,a){if(1&o&&(l.qSk(),e.j41(0,"svg",0),e.nrm(1,"path",3)(2,"path",4),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.BMQ("fill",t.colorDark()),e.R7$(),e.BMQ("fill",t.color())}}function gt(o,a){if(1&o&&(l.qSk(),e.j41(0,"svg",1),e.nrm(1,"path",5)(2,"path",6)(3,"path",7),e.k0s()),2&o){const t=e.XpG();e.R7$(2),e.BMQ("fill",t.color())}}const F_blue="#175EBB",ft={".dwg":F_blue,".dxf":F_blue,".doc":F_blue,".docx":F_blue,".ifc":"#9F388D",".pdf":"#E03833",".ppt":F_blue,".pptx":F_blue,".csv":"#0b7741",".xls":"#0b7741",".xlsx":"#0b7741",folder:"#9D9998"};let _t=(()=>{class o{suffix=r.hFB.required();size=(0,r.hFB)("m");color=(0,u.EW)(()=>ft[this.suffix()]??"#9D9998");label=(0,u.EW)(()=>this.suffix().startsWith(".")?this.suffix().toUpperCase().replace(/^\./,""):"");className=(0,u.EW)(()=>`size-${this.size()}`);colorDark=(0,u.EW)(()=>{const t=this.color(),n=parseInt(t.slice(1),16),s=n>>8&255,c=255&n;return`#${(Math.floor(.8*(n>>16&255))<<16|Math.floor(.8*s)<<8|Math.floor(.8*c)).toString(16).padStart(6,"0")}`});static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-file-icon"]],hostVars:2,hostBindings:function(n,i){2&n&&e.HbH(i.className())},inputs:{suffix:[1,"suffix"],size:[1,"size"]},decls:4,vars:2,consts:[["xmlns","http://www.w3.org/2000/svg","width","100%","height","100%","viewBox","0 0 48 48"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 30"],["size","xs","align","center","weight","semibold"],["d","M40 12H22l-4-4H8c-2.2 0-4 1.8-4 4v8h40v-4c0-2.2-1.8-4-4-4"],["d","M40 12H8c-2.2 0-4 1.8-4 4v20c0 2.2 1.8 4 4 4h32c2.2 0 4-1.8 4-4V16c0-2.2-1.8-4-4-4"],["fill","var(--cue-border-color)","d","M16.2.5H4.1C2.1.5.5 2.1.5 4.1v22.3c0 1.7 1.4 3.1 3.1 3.1h16.8c1.7 0 3.1-1.4 3.1-3.1V7.8h-.1c0-.1-7-7.1-7-7.1h-.1l-.1-.2Z"],["d","M4.1 1C2.4 1 1 2.4 1 4.1v22.3C1 27.8 2.2 29 3.6 29h16.8c1.4 0 2.6-1.2 2.6-2.6V8l-7-7H4.1Z"],["fill","#fff","d","M16 6c0 1.1.9 2 2 2h5l-7-7v5Z","opacity",".3"]],template:function(n,i){1&n&&(e.nVh(0,ht,3,2,":svg:svg",0)(1,gt,4,1,":svg:svg",1),e.j41(2,"cue-typography",2),e.EFF(3),e.k0s()),2&n&&(e.vxM("folder"===i.suffix()?0:1),e.R7$(3),e.JRh(i.label()))},dependencies:[j.Typography],styles:["[_nghost-%COMP%]{display:block;position:relative;aspect-ratio:30 / 24;width:var(--cue-dim-elem-m)}.size-xs[_nghost-%COMP%]{width:var(--cue-dim-elem-xs)}.size-s[_nghost-%COMP%]{width:var(--cue-dim-elem-s)}[_nghost-%COMP%] svg[_ngcontent-%COMP%]{display:block;width:100%;height:auto}[_nghost-%COMP%] cue-typography[_ngcontent-%COMP%]{color:#fff;text-transform:uppercase;position:absolute;left:50%;bottom:24%;transform:translate(-50%)}"]})}return o})(),vt=(()=>{class o{suffix=(0,l.vPA)("");iconSize=(0,l.vPA)("xs");agInit(t){this._apply(t)}refresh(t){return this._apply(t),!0}_apply(t){this.suffix.set(t.value||"folder"),this.iconSize.set({xs:"xs",s:"xs",m:"xs",l:"s",xl:"m"}[t.colDef?.cellRendererParams?.iconSize??t.iconSize??"xs"]??"xs")}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-file-icon-cell-renderer"]],decls:1,vars:2,consts:[[3,"suffix","size"]],template:function(n,i){1&n&&e.nrm(0,"cue-file-icon",0),2&n&&e.Y8G("suffix",i.suffix())("size",i.iconSize())},dependencies:[_t],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:center;width:100%;height:100%}"],changeDetection:0})}return o})();var Ct=d(6117),bt=d(29),xt=d(1951),Mt=d(1493),Dt=d(5187),yt=d(356),St=d(6279);let Tt=(()=>{class o{cueFlip=(0,r.geq)(!1);get flipped(){return this.cueFlip()}static \u0275fac=function(n){return new(n||o)};static \u0275dir=e.FsC({type:o,selectors:[["","cueFlip",""]],hostVars:2,hostBindings:function(n,i){2&n&&e.AVh("flipped",i.flipped)},inputs:{cueFlip:[1,"cueFlip"]},outputs:{cueFlip:"cueFlipChange"}})}return o})();const wt=(o,a)=>a.id;function Ft(o,a){if(1&o){const t=e.RV6();e.j41(0,"li",9),e.bIt("click",function(){const i=l.eBV(t).$implicit,s=e.XpG(3);return l.Njj(s.handleSimpleRowClick(i))}),e.j41(1,"cue-typography",10),e.EFF(2),e.k0s(),e.j41(3,"cue-typography",11),e.EFF(4),e.k0s()()}if(2&o){const t=a.$implicit,n=e.XpG(3);e.AVh("active",n.selectedSimpleDocumentId()===t.id),e.R7$(),e.Y8G("noWrap",!0)("title",t.name),e.R7$(),e.SpI(" ",t.name," "),e.R7$(2),e.SpI(" ",(t.suffix||"").replace(".","").toUpperCase()," ")}}function kt(o,a){if(1&o&&(e.j41(0,"ul",5),e.Z7z(1,Ft,5,6,"li",8,wt),e.k0s()),2&o){const t=e.XpG(2);e.R7$(),e.Dyx(t.simpleDocumentsInt())}}function Rt(o,a){if(1&o&&(e.j41(0,"cue-flexcontainer",6)(1,"cue-typography",12),e.EFF(2),e.k0s()()),2&o){const t=e.XpG(2);e.R7$(2),e.SpI(" ",0===t.documentRefs().length&&0===t.documents().length&&t.handlers()?"No documents":t.infoLoading()," ")}}function Nt(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",7)(1,"cue-typography",13),e.EFF(2),e.k0s(),e.j41(3,"cue-flexcontainer",14)(4,"cue-button",15),e.bIt("click",function(){l.eBV(t);const i=e.XpG(2);return l.Njj(i.previousSimplePage())}),e.nrm(5,"cue-button-icon",16),e.k0s(),e.j41(6,"cue-button",15),e.bIt("click",function(){l.eBV(t);const i=e.XpG(2);return l.Njj(i.nextSimplePage())}),e.nrm(7,"cue-button-icon",17),e.k0s()()()}if(2&o){const t=e.XpG(2);e.R7$(2),e.E5c(" ",t.simpleDisplayStart(),"-",t.simpleDisplayEnd()," / ",t.documentsInt().length," "),e.R7$(2),e.Y8G("disabled",!t.simpleHasPreviousPage()),e.R7$(2),e.Y8G("disabled",!t.simpleHasNextPage())}}function Gt(o,a){if(1&o&&(e.j41(0,"div",3),e.nVh(1,kt,3,0,"ul",5)(2,Rt,3,1,"cue-flexcontainer",6),e.nVh(3,Nt,8,5,"cue-flexcontainer",7),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.vxM(t.simpleDocumentsInt().length>0?1:2),e.R7$(2),e.vxM(t.documentsInt().length>0?3:-1)}}function Pt(o,a){if(1&o&&e.nrm(0,"cue-svg-icon",34),2&o){const t=e.XpG().$implicit;e.Y8G("name",t.icon)}}function It(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-menu-item",33),e.bIt("click",function(){const i=l.eBV(t).$implicit;return l.Njj(null==i?null:i.action())}),e.nVh(1,Pt,1,1,"cue-svg-icon",34),e.EFF(2),e.k0s()}if(2&o){const t=a.$implicit;e.R7$(),e.vxM(t.icon?1:-1),e.R7$(),e.SpI(" ",t.label)}}function Lt(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",24)(1,"cue-menu",25)(2,"cue-button",26,2),e.nrm(4,"cue-button-icon",27),e.k0s(),e.j41(5,"cue-menu-wrap",28),e.Z7z(6,It,3,2,"cue-menu-item",null,e.Vm6),e.k0s()(),e.j41(8,"cue-button",29),e.nI1(9,"transloco"),e.bIt("click",function(){l.eBV(t);const i=e.XpG(2);return l.Njj(i.flipped.set(!0))}),e.nrm(10,"cue-button-icon",30),e.k0s()(),e.j41(11,"div",31)(12,"cue-ag-grid",32),e.bIt("gridApiReady",function(i){l.eBV(t);const s=e.XpG(2);return l.Njj(s.onGridReady(i))})("selectedRows",function(i){l.eBV(t);const s=e.XpG(2);return l.Njj(s.clickedDocument.emit(i[0]))}),e.k0s()()}if(2&o){const t=e.XpG(2);e.R7$(6),e.Dyx(t.tableMenu()),e.R7$(2),e.Y8G("cueTooltip",e.bMT(9,9,"components.documentList.tooltipColumnSettings")),e.R7$(4),e.AVh("hidden",t.tableHidden()),e.Y8G("paginationPageSize",t.pageSize())("rowSelection",t.rowSelection)("rowData",t.documentsInt())("columnDefs",t.columnDefs())("overlaySettings",t.overlaySettings)("overlayActions",t.overlayActions())}}function At(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",41),e.bIt("click",function(){l.eBV(t);const i=e.XpG(3);return l.Njj(i.applyTagFilter())}),e.j41(1,"cue-button",42)(2,"cue-button-label"),e.EFF(3,"Apply"),e.k0s()()()}}function Et(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",24)(1,"cue-button",35),e.bIt("click",function(){l.eBV(t);const i=e.XpG(2);return l.Njj(i.showFront())}),e.nrm(2,"cue-button-icon",36),e.k0s()(),e.j41(3,"cue-flexcontainer",37)(4,"cue-word-cloud",38),e.bIt("selectionChanged",function(i){l.eBV(t);const s=e.XpG(2);return l.Njj(s.tagSelection.set(i))}),e.k0s(),e.nVh(5,At,4,0,"cue-flexcontainer",39),e.k0s(),e.j41(6,"cue-ag-grid-column-select",40),e.mxI("columnDefsChange",function(i){l.eBV(t);const s=e.XpG(2);return e.DH7(s.columnDefs,i)||(s.columnDefs=i),l.Njj(i)}),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(3),e.AVh("hidden",!t.showTagFilterCloud()),e.R7$(),e.Y8G("words",t.tags())("clickable",!0)("overflow",!0)("multiSelect",!0)("highlightSelection",!0),e.R7$(),e.vxM(t.filterToBeApplied()?5:-1),e.R7$(),e.AVh("hidden",t.showTagFilterCloud()),e.Y8G("settings",t.columnSelectSettings),e.R50("columnDefs",t.columnDefs),e.Y8G("columnDefsGross",t.columnDefsGross())}}function Ot(o,a){if(1&o&&(e.j41(0,"cue-card",20),e.eu8(1,43),e.k0s()),2&o){e.XpG();const t=e.sdS(3),n=e.XpG();e.Y8G("variant",n._cardVariant()),e.R7$(),e.Y8G("ngTemplateOutlet",t)}}function jt(o,a){if(1&o&&(e.j41(0,"div",21),e.eu8(1,43),e.k0s()),2&o){e.XpG();const t=e.sdS(3);e.R7$(),e.Y8G("ngTemplateOutlet",t)}}function zt(o,a){if(1&o&&(e.j41(0,"cue-card",22),e.eu8(1,43),e.k0s()),2&o){e.XpG();const t=e.sdS(5),n=e.XpG();e.Y8G("variant",n._cardVariant()),e.R7$(),e.Y8G("ngTemplateOutlet",t)}}function Bt(o,a){if(1&o&&(e.j41(0,"div",23),e.eu8(1,43),e.k0s()),2&o){e.XpG();const t=e.sdS(5);e.R7$(),e.Y8G("ngTemplateOutlet",t)}}function Vt(o,a){if(1&o){const t=e.RV6();e.j41(0,"div",18),e.mxI("cueFlipChange",function(i){l.eBV(t);const s=e.XpG();return e.DH7(s.flipped,i)||(s.flipped=i),l.Njj(i)}),e.j41(1,"div",19),e.DNE(2,Lt,13,11,"ng-template",null,0,e.C5r)(4,Et,7,13,"ng-template",null,1,e.C5r),e.nVh(6,Ot,2,2,"cue-card",20)(7,jt,2,1,"div",21),e.nVh(8,zt,2,2,"cue-card",22)(9,Bt,2,1,"div",23),e.k0s()()}if(2&o){const t=e.XpG();e.R50("cueFlip",t.flipped),e.R7$(6),e.vxM("none"!==t.variant()?6:7),e.R7$(2),e.vxM("none"!==t.variant()?8:9)}}let Yt=(()=>{class o{documents=(0,r.hFB)([]);availableContentCategories=(0,r.hFB)(void 0);detailedView=(0,r.hFB)(!1);simple=(0,r.hFB)(!1);pageSize=(0,r.hFB)(10);prefetchPages=(0,r.hFB)(3);privileges=(0,r.hFB)();showOpenInDocumentViewerAction=(0,r.hFB)(!0);showOpenInFileManagerAction=(0,r.hFB)(!0);customOverlayActions=(0,r.hFB)([]);variant=(0,r.hFB)("default");_cardVariant=(0,u.EW)(()=>this.variant());documentRefs=(0,r.hFB)([]);handlers=(0,r.hFB)(void 0);documentData=(0,r.hFB)({});clickedDocument=(0,r.CGW)();clickedDownloadDocument=(0,r.CGW)();clickedOpenInDir=(0,r.CGW)();clickedOpen=(0,r.CGW)();flipped=(0,l.vPA)(!1);simplePageIndex=(0,l.vPA)(0);selectedSimpleDocumentId=(0,l.vPA)(null);_simpleBufferedUntilIndex=(0,l.vPA)(0);_tableBufferedUntilIndex=(0,l.vPA)(0);_lastDocumentRefsKey="";_gridApi=null;_requestedIds=new Set;_isSorted=!1;_viewportCheckTimerId=null;_lazyMode=(0,u.EW)(()=>this.documentRefs().length>0);_leafContentCategoryIris=(0,u.EW)(()=>{const t=this.availableContentCategories();if(!t)return null;const n=new Set(t.map(i=>i.parent).filter(i=>!!i));return new Set(t.filter(i=>!n.has(i.iri)).map(i=>i.iri))});labelDownload=(0,h.Xx)("components.documentList.labelDownload");labelName=(0,h.Xx)("components.documentList.labelName");labelOpenInFileManager=(0,h.Xx)("components.documentList.labelOpenInFileManager");labelOpenInDocumentViewer=(0,h.Xx)("components.documentList.labelOpenInDocumentViewer");labelSubject=(0,h.Xx)("components.documentList.labelSubject");labelSummary=(0,h.Xx)("components.documentList.labelSummary");labelPages=(0,h.Xx)("components.documentList.labelPages");labelSize=(0,h.Xx)("components.documentList.labelSize");labelCategories=(0,h.Xx)("components.documentList.labelCategories");labelType=(0,h.Xx)("components.documentList.labelType");buttonShowCloudFilter=(0,h.Xx)("components.documentList.buttonShowCloudFilter");buttonHideCloudFilter=(0,h.Xx)("components.documentList.buttonHideCloudFilter");buttonDownloadCSV=(0,h.Xx)("components.documentList.buttonDownloadCSV");infoLoading=(0,h.Xx)("components.documentList.infoLoading");overlaySettings={...new xt.K,mode:"row"};overlayActions=(0,u.EW)(()=>{const t=[{label:this.labelDownload(),icon:"download",action:n=>{this.handlers()?.requestDownload?.(n.rowData),this.clickedDownloadDocument.emit(n.rowData)}}];return this.showOpenInDocumentViewerAction()&&t.push({label:this.labelOpenInDocumentViewer(),icon:"document",action:n=>{const i=n.rowData.contentIRI.split("/").pop()??n.rowData.contentIRI;this.handlers()?.requestOpen?.(i,n.rowData),this.clickedOpen.emit(n.rowData)}}),this.showOpenInFileManagerAction()&&t.push({label:this.labelOpenInFileManager(),icon:"folder",action:n=>{const i=n.rowData.contentIRI.split("/").pop()??n.rowData.contentIRI;this.handlers()?.requestOpenInDir?.(i,n.rowData),this.clickedOpenInDir.emit(n.rowData)}}),[...t,...this.customOverlayActions()||[]]});documentsInt=(0,u.EW)(()=>{let t;if(this._lazyMode()){const n=this.documentRefs(),i=this.documentData()||{};t=n.map(s=>{const c=i[s.id];return c?{...c,pages:s.pages??c.pages,...void 0!==s.sources?{sources:s.sources}:{},...void 0!==s.relevance?{relevance:s.relevance}:{},name:(0,K.M)(c.path),loading:!1}:{id:s.id,path:s.id,suffix:"",size:0,contentIRI:s.id,tags:[],summary:"",categories:[],relevance:s.relevance??0,pages:s.pages,sources:s.sources,name:this.infoLoading(),loading:!0}})}else t=(this.documents()||[]).map(n=>({...n,name:(0,K.M)(n.path),loading:!1}));return this.tagFilter().length?t.filter(n=>n.tags?.some(i=>this.tagFilter().some(s=>s.toLowerCase()===i.toLowerCase()))):t});simplePageCount=(0,u.EW)(()=>Math.max(1,Math.ceil(this.documentsInt().length/Math.max(1,this.pageSize()))));simpleStartIndex=(0,u.EW)(()=>this.simplePageIndex()*Math.max(1,this.pageSize()));simpleEndIndex=(0,u.EW)(()=>this.simpleStartIndex()+Math.max(1,this.pageSize()));simpleDocumentsInt=(0,u.EW)(()=>this.documentsInt().slice(this.simpleStartIndex(),this.simpleEndIndex()));simpleHasPreviousPage=(0,u.EW)(()=>this.simplePageIndex()>0);simpleHasNextPage=(0,u.EW)(()=>this.simplePageIndex()<this.simplePageCount()-1);simpleDisplayStart=(0,u.EW)(()=>this.documentsInt().length?this.simpleStartIndex()+1:0);simpleDisplayEnd=(0,u.EW)(()=>Math.min(this.simpleEndIndex(),this.documentsInt().length));tags=(0,u.EW)(()=>{const t=this.documentsInt(),n=[];return t.forEach(i=>{i.tags?.forEach(s=>n.push(s))}),n});showPageColumn=(0,u.EW)(()=>this.documentsInt().some(t=>void 0!==t.pages));hasSubjects=(0,u.EW)(()=>this.documentsInt().some(t=>void 0!==t.subject&&""!==t.subject));columnSelectSettings=new ae;columnDefs=(0,l.vPA)([]);columnDefsGross=(0,l.vPA)([]);tagSelection=(0,l.vPA)([]);tagFilter=(0,l.vPA)([]);showTagFilterCloud=(0,l.vPA)(!1);filterToBeApplied=(0,u.EW)(()=>{const t=this.tagSelection(),n=this.tagFilter();return JSON.stringify(t.sort())!==JSON.stringify(n.sort())});tableMenu=(0,u.EW)(()=>{const t=[];return this.showTagFilterCloud()?t.push({icon:"cloud-funnel",label:this.buttonHideCloudFilter(),variant:"accent",action:()=>{this.flipped.set(!1),this.showTagFilterCloud.set(!1)}}):t.push({icon:"cloud-funnel",label:this.buttonShowCloudFilter(),variant:"accent",action:()=>{this.flipped.set(!0),this.showTagFilterCloud.set(!0)}}),t.push({icon:"download",label:this.buttonDownloadCSV(),action:()=>function N(o,a,t="table.csv"){const n=function R(o,a){const t=function w(o,a){return o.map(t=>{const n={};return"id"in t&&(n.id=t.id),"key"in t&&(n.key=t.key),a.forEach(i=>{let s;"function"==typeof i.valueGetter?s=i.valueGetter({data:t,colDef:i,getValue:p=>t[p],node:void 0,column:void 0,api:void 0,context:void 0}):i.field&&(s=t[i.field]),"function"==typeof i.valueFormatter&&(s=i.valueFormatter({value:s,data:t,colDef:i,node:void 0,column:void 0,api:void 0,context:void 0}));const c=i.headerName||i.colId||i.field;void 0!==c&&(n[c]=s)}),n})}(o,a);if(0===t.length)return"";const n=t.some(c=>"id"in c),i=[];n&&i.push("id"),a.forEach(c=>{const p=c.headerName||c.colId||c.field;p&&"id"!==p&&!i.includes(p)&&i.push(p)});const s=t.map(c=>{const p={};return i.forEach(f=>{p[f]=c[f]}),p});return C().unparse(s,{columns:i})}(o,a);(0,m.YN)(n,t,"text/csv")}(this.documentsInt(),this.columnDefs())}),t});hideCloud(){this.flipped.set(!0),this.showTagFilterCloud.set(!0)}tableHidden=(0,u.EW)(()=>this.showTagFilterCloud()||this.flipped());rowSelection={mode:"singleRow",checkboxes:!1,enableClickSelection:!0};whenTableDataKnown=(0,l.QZP)(()=>{this.simple()||this._buildInitialColumnDefs(this.detailedView())});whenSimpleDataChanges=(0,l.QZP)(()=>{const t=this.documentsInt().length,n=Math.max(1,this.pageSize()),i=Math.max(0,Math.ceil(t/n)-1);this.simplePageIndex()>i&&this.simplePageIndex.set(i)});whenRefsChange=(0,l.QZP)(()=>{const n=this.documentRefs().map(i=>i.id).join("|");n!==this._lastDocumentRefsKey&&(this._lastDocumentRefsKey=n,this._requestedIds.clear(),this._simpleBufferedUntilIndex.set(0),this._tableBufferedUntilIndex.set(0),this.simplePageIndex.set(0))});whenSimpleLazyDataNeeded=(0,l.QZP)(()=>{if(!this.simple()||!this._lazyMode()||!this.handlers())return;const t=this.documentRefs();if(!t.length)return;const n=Math.max(1,this.pageSize()),s=n*Math.max(1,this.prefetchPages()),c=t.length,p=this.simpleStartIndex(),f=Math.min(c,p+n),g=this._simpleBufferedUntilIndex();let v=null;if(0===g?v=0:(p>=Math.max(0,g-n)||f>g)&&(v=g),null===v||v>=c)return;const T=Math.min(c,v+s),S=t.slice(v,T).map(D=>D.id).filter(D=>!this._requestedIds.has(D));this._simpleBufferedUntilIndex.set(Math.max(g,T)),S.length&&(S.forEach(D=>this._requestedIds.add(D)),setTimeout(()=>this.handlers()?.requestData(S)))});previousSimplePage(){this.simpleHasPreviousPage()&&this.simplePageIndex.update(t=>Math.max(0,t-1))}nextSimplePage(){this.simpleHasNextPage()&&this.simplePageIndex.update(t=>Math.min(this.simplePageCount()-1,t+1))}handleSimpleRowClick(t){this.selectedSimpleDocumentId.set(t.id),this.handleRowClick(t)}handleRowClick(t){var n=this;return(0,_.A)(function*(){n.clickedDocument.emit(t),window.cueDetachCellOverlay&&window.cueDetachCellOverlay(),n.overlayVisible&&"function"==typeof n.overlayVisible.set&&n.overlayVisible.set(!1)})()}showFront(){this.flipped.set(!1),this.showTagFilterCloud.set(!1)}applyTagFilter(){this.tagFilter.set(this.tagSelection()),this.flipped.set(!1),this.showTagFilterCloud.set(!1)}ngOnDestroy(){null!==this._viewportCheckTimerId&&(clearTimeout(this._viewportCheckTimerId),this._viewportCheckTimerId=null),this._gridApi=null}onGridReady(t){this._gridApi=t,t.addEventListener("viewportChanged",()=>this._checkViewport()),t.addEventListener("modelUpdated",()=>this._checkViewport()),t.addEventListener("paginationChanged",()=>this._checkViewport()),t.addEventListener("sortChanged",()=>{const n=t.getColumnState();this._isSorted=n.some(i=>null!=i.sort),this._isSorted&&this._requestAllUnloaded()}),this._viewportCheckTimerId=setTimeout(()=>{this._viewportCheckTimerId=null,this._checkViewport()},100)}_checkViewport(){if(!this._gridApi||this._gridApi.isDestroyed()||!this._lazyMode())return;if(this._isSorted)return void this._requestAllUnloaded();const t=this.documentRefs(),n=t.length;if(!n)return;const i=Math.max(1,this._gridApi.paginationGetPageSize?.()??10),c=Math.max(0,this._gridApi.paginationGetCurrentPage?.()??0)*i,p=Math.min(n,c+i),f=this._tableBufferedUntilIndex();let g=null;if(0===f?g=0:(c>=Math.max(0,f-i)||p>f)&&(g=f),null===g||g>=n)return;const v=i*Math.max(1,this.prefetchPages()),T=Math.min(n,g+v),S=t.slice(g,T).map(D=>D.id).filter(D=>!this._requestedIds.has(D));this._tableBufferedUntilIndex.set(Math.max(f,T)),S.length&&(S.forEach(D=>this._requestedIds.add(D)),setTimeout(()=>this.handlers()?.requestData(S)))}_requestAllUnloaded(){if(!this._gridApi||this._gridApi.isDestroyed()||!this._lazyMode())return;const t=[];if(this._gridApi.forEachNode(n=>{const i=n.data;i?.loading&&!this._requestedIds.has(i.contentIRI)&&t.push(i.contentIRI)}),t.length>0){const n=Array.from(new Set(t));n.forEach(i=>this._requestedIds.add(i)),setTimeout(()=>this.handlers()?.requestData(n))}}_buildInitialColumnDefs(t){const n=[],i=[];n.push({field:"name",headerName:this.labelName(),width:t?250:120,filter:!0,valueGetter:f=>!f.data?.name&&f.data?.loading?"Loading...":f.data?.name||f.data?.contentIRI}),this.hasSubjects()&&n.push({field:"subject",headerName:this.labelSubject(),flex:1,filter:!0,cellRenderer:H,cellRendererParams:{lineHeight:"1.8"},autoHeight:!0});const s={field:"summary",headerName:this.labelSummary(),flex:1,filter:!0,cellRenderer:H,cellRendererParams:{lineHeight:"1.8"},autoHeight:!0};this.detailedView()||(s.tooltipField="summary"),t?n.push(s):i.push(s),this.showPageColumn()&&n.push({field:"pages",headerName:this.labelPages(),width:100,filter:!0,valueGetter:f=>Array.isArray(f.data?.pages)?f.data.pages.map(g=>g.page).join(", "):""});const c={field:"size",headerName:this.labelSize(),width:100,filter:!0,valueGetter:f=>(0,Mt.b)(f.data?.size||0)};t?n.push(c):i.push(c);const p={field:"categories",headerName:this.labelCategories(),width:120,filter:!0,valueGetter:f=>{const g=f.data?.categories||[],v=this._leafContentCategoryIris(),T=v?g.filter(D=>v.has(D)):g,S=T.slice(0,3).map(D=>this._getContentCategoryLabel(D)).join(", ");return T.length>3?`${S}...`:S}};t?n.push(p):i.push(p),n.push({field:"suffix",headerName:this.labelType(),width:80,filter:!0,headerClass:"header-align-right",cellStyle:{display:"flex",justifyContent:"flex-end"},cellRenderer:vt}),this.columnDefs.update(()=>[...n]),this.columnDefsGross.update(()=>[...n,...i])}_getContentCategoryLabel(t){const n=this.availableContentCategories();if(void 0!==n){const i=n.find(s=>s.iri===t);if(i)return i.label;console.warn(`No label found for content category IRI: ${t}`)}else console.warn("No availableContentCategories provided to DocumentList component");return(o=>{const a=o.split("#").pop()??o,t={AgreementDocument:"Agreement",ArchitecturalDesignDocument:"Architectural Design",AsBuiltDocument:"As-Built",BudgetEstimateDocument:"Budget Estimate",CertificationDocument:"Certification",ComplianceDocument:"Compliance",CorrespondenceDocument:"Correspondence",ConstructionContract:"Construction Contract",ConstructionProcessDocument:"Construction Process",ContractCondition:"Contract Condition",ContractRole:"Contract Role",ContractualDocument:"Contract",CostControlDocument:"Cost Control",DesignDocument:"Design Document",EmailAddress:"Email Address",EngineeringDesignDocument:"Engineering Design",FinancialAdministrativeDocument:"Financial/Administrative",FunctionalRequirementsDocument:"Functional Requirements",InspectionDocument:"Inspection",InsuranceBondDocument:"Insurance/Bond",InteriorDesignDocument:"Interior Design",MarketingCloseoutDocument:"Marketing Closeout",MiscDocument:"Miscellaneous",OperationManual:"Operation Manual",OperationsMaintenanceDocument:"Operations & Maintenance",OperationsManualDocument:"Operations Manual",OtherDocument:"Other",OtherContent:"Other Content",ProgressStatusReport:"Progress Status Report",QualityAssuranceDocument:"Quality Assurance",QualityControlDocument:"Quality Control",RegulatoryComplianceDocument:"Regulatory Compliance",SafetyDocument:"Safety",ScheduleDocument:"Schedule",SiteAssessmentDocument:"Site Assessment",TechnicalRequirementsDocument:"Technical Requirements",TechnicalSpecificationDocument:"Technical Specification",TenderingDocument:"Tendering Document",TermsAndConditionsDocument:"Terms & Conditions"};return void 0===t[a]&&console.log(`No pretty label for category: ${a}`),t[a]??a})(t)}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-doc-list"]],inputs:{documents:[1,"documents"],availableContentCategories:[1,"availableContentCategories"],detailedView:[1,"detailedView"],simple:[1,"simple"],pageSize:[1,"pageSize"],prefetchPages:[1,"prefetchPages"],privileges:[1,"privileges"],showOpenInDocumentViewerAction:[1,"showOpenInDocumentViewerAction"],showOpenInFileManagerAction:[1,"showOpenInFileManagerAction"],customOverlayActions:[1,"customOverlayActions"],variant:[1,"variant"],documentRefs:[1,"documentRefs"],handlers:[1,"handlers"],documentData:[1,"documentData"]},outputs:{clickedDocument:"clickedDocument",clickedDownloadDocument:"clickedDownloadDocument",clickedOpenInDir:"clickedOpenInDir",clickedOpen:"clickedOpen"},decls:2,vars:1,consts:[["frontContent",""],["backContent",""],["trigger",""],[1,"simple-container",2,"width","100%","height","auto"],[1,"flip-card",2,"width","100%","height","auto","overflow","hidden",3,"cueFlip"],[1,"simple-list"],["justify","center",1,"simple-empty"],["direction","row","justify","space-between","align","center",2,"padding","4px 8px"],[1,"simple-item",3,"active"],[1,"simple-item",3,"click"],["size","s",1,"simple-item-name",3,"noWrap","title"],["size","xs",1,"simple-item-meta"],["size","s"],["size","xs"],["direction","row","gap","s"],["size","xs","variant","tertiary",3,"click","disabled"],["icon","paginator-back"],["icon","paginator-next"],[1,"flip-card",2,"width","100%","height","auto","overflow","hidden",3,"cueFlipChange","cueFlip"],[1,"flip-content"],[1,"card-face","front",2,"width","100%","height","auto",3,"variant"],[1,"card-face","front",2,"width","100%","height","auto"],[1,"card-face","back",2,"width","100%","height","auto",3,"variant"],[1,"card-face","back",2,"width","100%","height","auto"],["direction","row","justify","end",2,"padding","2px"],["positioning","bottomleft"],["trigger","","variant","tertiary","size","s"],["icon","more-vert"],["menu",""],["variant","accent","size","s",3,"click","cueTooltip"],["icon","settings"],[2,"position","relative"],[3,"gridApiReady","selectedRows","paginationPageSize","rowSelection","rowData","columnDefs","overlaySettings","overlayActions"],[3,"click"],["before","",3,"name"],["variant","accent","size","s","cueTooltip","Back to table",3,"click"],["icon","arrow-back"],["justify","center",2,"height","350px"],[2,"height","100%","width","100%",3,"selectionChanged","words","clickable","overflow","multiSelect","highlightSelection"],["justify","center",1,"word-cloud-actions"],[3,"columnDefsChange","settings","columnDefs","columnDefsGross"],["justify","center",1,"word-cloud-actions",3,"click"],["variant","primary"],[3,"ngTemplateOutlet"]],template:function(n,i){1&n&&e.nVh(0,Gt,4,2,"div",3)(1,Vt,10,3,"div",4),2&n&&e.vxM(i.simple()?0:1)},dependencies:[z.n,P,I.$,V.L,Tt,Dt.Z,le.T3,Y.a,me.R,pt,yt.M,St.D,Ct.W,bt.A,$.d,j.Typography,h.Kj],styles:[".hidden[_ngcontent-%COMP%]{display:none}.word-cloud-actions[_ngcontent-%COMP%]{position:absolute;z-index:10;right:0;left:0;bottom:10px;pointer-events:none}.word-cloud-actions[_ngcontent-%COMP%] cue-button[_ngcontent-%COMP%]{pointer-events:auto}.simple-container[_ngcontent-%COMP%]{width:100%}.simple-list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:4px;max-height:420px;overflow-y:auto}.simple-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;padding:9px 10px;border-radius:6px;cursor:pointer;transition:background .1s}.simple-item[_ngcontent-%COMP%]:hover{background:var(--cue-color-ultralightgray)}.simple-item.active[_ngcontent-%COMP%]{background:var(--cue-color-lightgray)}.simple-item-name[_ngcontent-%COMP%]{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.simple-item-meta[_ngcontent-%COMP%]{font-size:11px;color:var(--cue-color-midgray)}.simple-empty[_ngcontent-%COMP%]{padding:12px}"],changeDetection:0})}return o})()},4372(y,x,d){"use strict";d.d(x,{M:()=>_});const _=r=>{const u=r.split("/");return u[u.length-1]}},1493(y,x,d){"use strict";function _(r,u=!1,l=1){const m=u?1e3:1024;if(Math.abs(r)<m)return r+" B";const b=u?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let C=-1;const w=10**l;do{r/=m,++C}while(Math.round(Math.abs(r)*w)/w>=m&&C<b.length-1);return r.toFixed(l)+" "+b[C]}d.d(x,{b:()=>_})},2269(y,x,d){y.exports=function(_){"use strict";var u=function r(m){return m&&"object"==typeof m&&"default"in m?m:{default:m}}(_),l={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(m){return m+"."},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 u.default.locale(l,null,!0),l}(d(7374))},1409(y,x,d){y.exports=function(_){"use strict";var u=function r(C){return C&&"object"==typeof C&&"default"in C?C:{default:C}}(_),l={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 m(C,w,R){var N=l[R];return Array.isArray(N)&&(N=N[w?0:1]),N.replace("%d",C)}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(C){return C+"."},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,m,mm:m,h:m,hh:m,d:m,dd:m,M:m,MM:m,y:m,yy:m}};return u.default.locale(b,null,!0),b}(d(7374))},9785(y){y.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(x){var d=["th","st","nd","rd"],_=x%100;return"["+x+(d[(_-20)%10]||d[_]||d[0])+"]"}}}()},2494(y,x,d){y.exports=function(_){"use strict";var u=function r(m){return m&&"object"==typeof m&&"default"in m?m:{default:m}}(_),l={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(m){return m+"\xba"}};return u.default.locale(l,null,!0),l}(d(7374))},4230(y,x,d){y.exports=function(_){"use strict";var u=function r(m){return m&&"object"==typeof m&&"default"in m?m:{default:m}}(_),l={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(m){return m+(1===m?"er":"")}};return u.default.locale(l,null,!0),l}(d(7374))},9531(y,x,d){y.exports=function(_){"use strict";var u=function r(m){return m&&"object"==typeof m&&"default"in m?m:{default:m}}(_),l={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(m){return m+"\xba"}};return u.default.locale(l,null,!0),l}(d(7374))},4955(y){y.exports=function(){"use strict";var x={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(d,_,r){var u=_.prototype,l=u.format;r.en.formats=x,u.format=function(m){void 0===m&&(m="YYYY-MM-DDTHH:mm:ssZ");var R,b=this.$locale().formats,C=(R=void 0===b?{}:b,m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(N,e,k){var L=k&&k.toUpperCase();return e||R[k]||x[k]||R[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(A,E,B){return E||B.slice(1)})}));return l.call(this,C)}}}()},5164(y){y.exports=function(){"use strict";return function(x,d,_){x=x||{};var r=d.prototype,u={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 l(b,C,w,R){return r.fromToBase(b,C,w,R)}_.en.relativeTime=u,r.fromToBase=function(b,C,w,R,N){for(var e,k,L,A=w.$locale().relativeTime||u,E=x.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"}],B=E.length,O=0;O<B;O+=1){var G=E[O];G.d&&(e=R?_(b).diff(w,G.d,!0):w.diff(b,G.d,!0));var P=(x.rounding||Math.round)(Math.abs(e));if(L=e>0,P<=G.r||!G.r){P<=1&&O>0&&(G=E[O-1]);var I=A[G.l];N&&(P=N(""+P)),k="string"==typeof I?I.replace("%d",P):I(P,C,G.l,L);break}}if(C)return k;var V=L?A.future:A.past;return"function"==typeof V?V(k):V.replace("%s",k)},r.to=function(b,C){return l(b,C,this,!0)},r.from=function(b,C){return l(b,C,this)};var m=function(b){return b.$u?_.utc():_()};r.toNow=function(b){return this.to(m(this),b)},r.fromNow=function(b){return this.from(m(this),b)}}}()}}]);
1
+ (self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[960],{2960(y,x,d){"use strict";d.d(x,{g:()=>Yt});var _=d(467),r=d(7705),u=d(2271),l=d(5802),m=d(2065),b=d(7284),C=d.n(b);var e=d(5547);let A=(()=>{class o{get calculatedWidth(){let t=this.localConfig().width||this.width()||1;return this.el.nativeElement.parentNode.offsetWidth>0&&t<=1&&t>0&&(t*=this.el.nativeElement.parentNode.offsetWidth),t}get calculatedHeight(){let t=this.localConfig().height||this.height()||400;return this.el.nativeElement.parentNode.offsetHeight>0&&t<=1&&t>0&&(t*=this.el.nativeElement.parentNode.offsetHeight),t}onResize(t){this.logMessage("debug","rezisze triggered"),window.clearTimeout(this.timeoutId),this.timeoutId=window.setTimeout(()=>{this.options.realignOnResize&&this.reDraw()},200)}constructor(){this.data=(0,r.hFB)([]),this.width=(0,r.hFB)(),this.height=(0,r.hFB)(),this.step=(0,r.hFB)(),this.overflow=(0,r.hFB)(),this.strict=(0,r.hFB)(),this.zoomOnHover=(0,r.hFB)(),this.realignOnResize=(0,r.hFB)(),this.randomizeAngle=(0,r.hFB)(),this.background=(0,r.hFB)(),this.font=(0,r.hFB)(),this.delay=(0,r.hFB)(),this.config=(0,r.hFB)({}),this.log=(0,r.hFB)(),this.clicked=(0,r.CGW)(),this.afterInit=(0,r.CGW)(),this.afterChecked=(0,r.CGW)(),this.localConfig=(0,u.EW)(()=>{const n=this.config();return{...n,width:this.width()||n.width||500,height:this.height()||n.height||300,overflow:this.overflow()??(n.overflow||!0),strict:this.strict()??(n.strict||!1),zoomOnHover:this.zoomOnHover()||n.zoomOnHover||{transitionTime:0,scale:1,delay:0},realignOnResize:this.realignOnResize()??(n.realignOnResize||!1),randomizeAngle:this.randomizeAngle()??(n.randomizeAngle||!1),step:this.step()||n.step||2,log:this.log()||n.log||!1,delay:this.delay()||n.delay,background:this.background()||n.background,font:this.font()||n.font}}),this.cloudDataHtmlElements=[],this.dataArr=[],this.el=(0,l.WQX)(e.aKT),this.r2=(0,l.WQX)(e.sFG);const t=this.el.nativeElement;(0,l.QZP)(()=>{const n=this.localConfig();this.logMessage("warn","cloud configuration",n),n.font&&this.r2.setStyle(t,"font",n.font),n.background&&this.r2.setStyle(t,"background",n.background),this.reDraw()})}reDraw(){this.afterChecked?.emit(),this.logMessage("debug","dataChanges emitted"),this.cloudDataHtmlElements=[],this.data()?(this.el.nativeElement.innerHTML="",this.data()&&(this.dataArr=this.data()),this.options={...this.localConfig(),aspectRatio:this.calculatedWidth/this.calculatedHeight,width:this.calculatedWidth,height:this.calculatedHeight,center:{x:this.calculatedWidth/2,y:this.calculatedHeight/2}},this.r2.setStyle(this.el.nativeElement,"width",this.options.width+"px"),this.r2.setStyle(this.el.nativeElement,"height",this.options.height+"px"),this.drawWordCloud(),this.logMessage("debug","reDraw finished")):console.error("angular-tag-cloud: No data passed. Please pass an Array of CloudData")}descriptiveEntry(t){let n=t.text;return n+=t.color?`-${t.color}`:"",n+=t.external?`-${t.external}`:"",n+=t.link?`-${t.link}`:"",n+=t.rotate?`-${t.rotate}`:"",n}drawWordCloud(){this.dataArr.sort((i,s)=>this.descriptiveEntry(i).localeCompare(this.descriptiveEntry(s))),this.dataArr.sort((i,s)=>s.weight-i.weight);const t=this.dataArr.filter(i=>i.position),n=this.dataArr.filter(i=>!i.position);t.forEach((i,s)=>{this.drawWord(s,i)}),n.forEach((i,s)=>{this.drawWord(s,i)})}hitTest(t){for(const n of this.cloudDataHtmlElements)if(this.overlapping(t,n))return!0;return!1}overlapping(t,n){const{offsetLeft:i,offsetTop:s,offsetWidth:c,offsetHeight:p}=n;return!(t.right<i||t.left>i+c||t.bottom<s||t.top>s+p)}getWeightForWord(t){let n=5;return this.dataArr[0].weight>this.dataArr[this.dataArr.length-1].weight&&(this.options.strict?t.weight>10?(n=10,this.logMessage("warn",`[TagCloud strict] Weight property ${t.weight} > 10. Fallback to 10 as you are using strict mode`,t)):t.weight<1?(n=1,this.logMessage("warn",`[TagCloud strict] Given weight property ${t.weight} < 1. Fallback to 1 as you are using strict mode`,t)):t.weight%1!=0?(n=Math.round(t.weight),this.logMessage("warn",`[TagCloud strict] Given weight property ${t.weight} is not an integer. Rounded value to ${n}`,t)):n=t.weight:n=Math.round((t.weight-this.dataArr[this.dataArr.length-1].weight)/(this.dataArr[0].weight-this.dataArr[this.dataArr.length-1].weight)*9)+1),n}setWordColor(t,n){this.r2.setStyle(t,"color",n)}setTooltip(t,n){this.r2.addClass(t,"tooltip");const i=this.r2.createElement("span");i.className="tooltiptext";const s=this.r2.createText(n);i.appendChild(s),t.appendChild(i)}setWordRotation(t,n){const i=n?`rotate(${n}deg)`:"";return this.r2.setStyle(t,"transform",i),i}wrapNodeIntoAnchorElement(t,n){const i=this.r2.createElement("a");return i.href=n.link||"",void 0!==n.external&&n.external&&(i.target="_blank"),i.appendChild(t),i}applyZoomStyle(t,n,i,s){this.options.zoomOnHover&&1!==this.options.zoomOnHover.scale&&(this.options.zoomOnHover.transitionTime||(this.options.zoomOnHover.transitionTime=0),this.options.zoomOnHover.scale||(this.options.zoomOnHover.scale=1),n.onmouseover=()=>{this.options.zoomOnHover?.transitionTime&&this.r2.setStyle(n,"transition",`transform ${this.options.zoomOnHover.transitionTime}s`),this.options.zoomOnHover?.scale&&this.r2.setStyle(n,"transform",`scale(${this.options.zoomOnHover.scale}) ${s}`),this.options.zoomOnHover?.delay&&this.r2.setStyle(n,"transition-delay",`${this.options.zoomOnHover.delay}s`),this.options.zoomOnHover?.color&&this.r2.setStyle(i?t:n,"color",this.options.zoomOnHover.color)},n.onmouseout=()=>{this.r2.setStyle(n,"transform",`none ${s}`),this.options.zoomOnHover?.color&&this.r2.removeStyle(i?t:n,"color")})}setPosition(t,n,i){let s=this.options.randomizeAngle?6.28*Math.random():0,c=0;const p=t.style;p.position="absolute";const f=!!(n.position&&n.position.left&&n.position.top),g=t.offsetWidth,v=t.offsetHeight;let T=f&&n.position?.left?n.position.left:this.options.center.x-g/2,S=f&&n.position?.top?n.position.top:this.options.center.y-v/2;if(p.left=T+"px",p.top=S+"px",this.options.delay&&(t.classList.add("tag-animation-delay"),p.setProperty("--tag-animation-delay",this.options.delay*i+"ms")),!f)if(0===i)p.left=T+2*(Math.random()-.5)*(this.calculatedWidth/5)+"px",p.top=S+2*(Math.random()-.5)*(this.calculatedHeight/5)+"30px";else{for(;this.options.width&&this.options.height&&t.offsetHeight&&t.offsetWidth&&this.hitTest(new DOMRect(T,S,t.offsetWidth,t.offsetHeight));)c+=this.options.step||1,s+=(i%2==0?1:-1)*(this.options.step||1),T=this.options.center.x-g/2+c*Math.cos(s)*this.options.aspectRatio,S=this.options.center.y+c*Math.sin(s)-v/2;p.left=T+"px",p.top=S+"px"}if(!this.options.overflow&&(T<0||S<0||T+g>this.calculatedWidth||S+v>this.calculatedHeight))return this.logMessage("warn","Word did not fit into the cloud and overflow is set to 'false'. The element will be removed",t),void t.remove()}drawWord(t,n){let i;const s=this.getWeightForWord(n);i=this.r2.createElement("span"),i.className=`w${s}`,i.onclick=()=>{this.clicked?.emit(n)},i.onmouseenter=()=>{i.style.zIndex="2"},i.onmouseleave=()=>{i.style.zIndex="1"};let c=this.r2.createText(n.text);n.color&&this.setWordColor(i,n.color);const p=this.setWordRotation(i,n.rotate);n.link&&(c=this.wrapNodeIntoAnchorElement(c,n)),this.options.zoomOnHover&&1!==this.options.zoomOnHover.scale&&this.applyZoomStyle(c,i,n.link,p),i.appendChild(c),this.r2.appendChild(this.el.nativeElement,i),n.tooltip&&this.setTooltip(i,n.tooltip),i.id=`angular-tag-cloud-item-${t}`,this.setPosition(i,n,t),this.logMessage("debug","Adds new word <span>",i),this.cloudDataHtmlElements.push(i),this.logMessage("debug","Placed words",this.cloudDataHtmlElements)}logMessage(t,...n){this.localConfig()&&("debug"===this.localConfig().log?console.log(`[AngularTagCloudModule ${t}]`,...n):"warn"===this.localConfig().log&&"warn"===t&&console.warn(`[AngularTagCloudModule ${t}]`,...n))}static{this.\u0275fac=function(n){return new(n||o)}}static{this.\u0275cmp=e.VBU({type:o,selectors:[["angular-tag-cloud"],["ng-tag-cloud"],["ngtc"]],hostBindings:function(n,i){1&n&&e.bIt("resize",function(c){return i.onResize(c)},e.tSv)},inputs:{data:[1,"data"],width:[1,"width"],height:[1,"height"],step:[1,"step"],overflow:[1,"overflow"],strict:[1,"strict"],zoomOnHover:[1,"zoomOnHover"],realignOnResize:[1,"realignOnResize"],randomizeAngle:[1,"randomizeAngle"],background:[1,"background"],font:[1,"font"],delay:[1,"delay"],config:[1,"config"],log:[1,"log"]},outputs:{clicked:"clicked",afterInit:"afterInit",afterChecked:"afterChecked"},decls:0,vars:0,template:function(n,i){},styles:['[_nghost-%COMP%]{font-family:Helvetica,Arial,sans-serif;font-size:10px;line-height:normal;color:#09f;overflow:hidden;position:relative;display:block}.tag-animation-delay[_ngcontent-%COMP%]{--tag-animation-delay: .5s;animation:_ngcontent-%COMP%_fadeIn .5s;opacity:0;animation-fill-mode:forwards;animation-delay:var(--tag-animation-delay)}span[_ngcontent-%COMP%]{padding:0}span.w10[_ngcontent-%COMP%]{font-size:550%}span.w9[_ngcontent-%COMP%]{font-size:500%}span.w8[_ngcontent-%COMP%]{font-size:450%}span.w7[_ngcontent-%COMP%]{font-size:400%}span.w6[_ngcontent-%COMP%]{font-size:350%}span.w5[_ngcontent-%COMP%]{font-size:300%}span.w4[_ngcontent-%COMP%]{font-size:250%}span.w3[_ngcontent-%COMP%]{font-size:200%}span.w2[_ngcontent-%COMP%]{font-size:150%}span.w1[_ngcontent-%COMP%]{font-size:100%}a[_ngcontent-%COMP%]:hover{color:#0df}a[_ngcontent-%COMP%]:hover, span.w10[_ngcontent-%COMP%], span.w9[_ngcontent-%COMP%], span.w8[_ngcontent-%COMP%]{color:#0cf}span.w7[_ngcontent-%COMP%]{color:#39d}span.w6[_ngcontent-%COMP%]{color:#90c5f0}span.w5[_ngcontent-%COMP%]{color:#90a0dd}span.w4[_ngcontent-%COMP%]{color:#90c5f0}span.w3[_ngcontent-%COMP%]{color:#a0ddff}span.w2[_ngcontent-%COMP%]{color:#9ce}span.w1[_ngcontent-%COMP%]{color:#aab5f0}.tooltip[_ngcontent-%COMP%] .tooltiptext[_ngcontent-%COMP%]{visibility:hidden;width:inherit;background-color:#555;color:#fff;text-align:center;border-radius:6px;padding:5px 10px;position:absolute;bottom:100%;left:0;opacity:0;transition:opacity .3s}.tooltip[_ngcontent-%COMP%] .tooltiptext[_ngcontent-%COMP%]:after{content:"";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#555 transparent transparent transparent}.tooltip[_ngcontent-%COMP%]:hover .tooltiptext[_ngcontent-%COMP%]{visibility:visible;opacity:1}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0}to{opacity:1}}'],changeDetection:0})}}return o})();var B=d(5970);const O=["wordCloudContainer"];function G(o,a){if(1&o){const t=e.RV6();e.j41(0,"angular-tag-cloud",3),e.bIt("clicked",function(i){l.eBV(t);const s=e.XpG();return l.Njj(s.handleClicked(i))}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("data",t.data())("zoomOnHover",t.zoomOnHoverOptions())("width",t.containerSize().width)("height",t.containerSize().height)("overflow",t.overflow())("realignOnResize",!0)}}let P=(()=>{class o{words=(0,r.hFB)();entries=(0,r.hFB)();caseSensitive=(0,r.hFB)(!1);clickable=(0,r.hFB)(!1);multiSelect=(0,r.hFB)(!1);highlightSelection=(0,r.hFB)(!1);minWeight=(0,r.hFB)(1);maxWeight=(0,r.hFB)(5);maxWords=(0,r.hFB)(50);colorScheme=(0,r.hFB)(["var(--cue-chart-text-color)","var(--cue-chart-text-color-select)"]);overflow=(0,r.hFB)(!1);clickedWord=(0,r.CGW)();selectionChanged=(0,r.CGW)();wordCloudContainer;containerSize=(0,l.vPA)({width:0,height:0});selection=(0,l.vPA)([]);data=(0,u.EW)(()=>{const t=this.words(),n=this.entries();return n?.length||t?.length?n?.length?n:t?.length?this._buildEntriesFromWords(t):[]:[]});ngAfterViewInit(){const t=new MutationObserver(()=>{this._applySelectionStyles()});this.wordCloudContainer?.nativeElement&&t.observe(this.wordCloudContainer.nativeElement,{childList:!0,subtree:!0})}handleResize(t){0!==t.newRect.height&&this.containerSize.set({width:t.newRect.width,height:t.newRect.height})}styleSelection=(0,l.QZP)(()=>{this.selection(),this._applySelectionStyles()});zoomOnHoverOptions=(0,u.EW)(()=>({scale:1.1,transitionTime:this.clickable()?1.2:0,delay:.05}));_buildEntriesFromWords(t){const n=new Map;for(const g of t){const v=this.caseSensitive()?g:g.toLowerCase();n.set(v,(n.get(v)||0)+1)}const i=Array.from(n.entries());if(0===i.length)return[];const s=i.map(([,g])=>g),c=Math.min(...s),p=Math.max(...s);return p===c?i.map(([g])=>({text:g,weight:this.maxWeight()})):i.sort(([,g],[,v])=>v-g).slice(0,this.maxWords()).map(([g,v])=>({text:g,weight:this.minWeight()+(v-c)*(this.maxWeight()-this.minWeight())/(p-c),color:this.colorScheme()[Math.floor(Math.random()*this.colorScheme().length)]}))}_applySelectionStyles(){if(!this.highlightSelection())return;const t=this.wordCloudContainer?.nativeElement;void 0!==t&&t.querySelectorAll("span").forEach(i=>{i.textContent&&(this.selection().includes(i.textContent.trim())?i.classList.add("selected"):i.classList.remove("selected"))})}handleClicked(t){this.clickable()&&(this.clickedWord.emit(t.text),this.highlightSelection()&&(this.selection().includes(t.text)?this.selection.update(n=>n.filter(i=>i!==t.text)):this.multiSelect()?this.selection.update(n=>[...n,t.text]):this.selection.update(()=>[t.text])),this.selectionChanged.emit(this.selection()))}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-word-cloud"]],viewQuery:function(n,i){if(1&n&&e.GBs(O,5),2&n){let s;e.mGM(s=e.lsd())&&(i.wordCloudContainer=s.first)}},inputs:{words:[1,"words"],entries:[1,"entries"],caseSensitive:[1,"caseSensitive"],clickable:[1,"clickable"],multiSelect:[1,"multiSelect"],highlightSelection:[1,"highlightSelection"],minWeight:[1,"minWeight"],maxWeight:[1,"maxWeight"],maxWords:[1,"maxWords"],colorScheme:[1,"colorScheme"],overflow:[1,"overflow"]},outputs:{clickedWord:"clickedWord",selectionChanged:"selectionChanged"},decls:3,vars:5,consts:[["wordCloudContainer",""],["cueResized","",1,"wordcloud-container",3,"resized"],[3,"data","zoomOnHover","width","height","overflow","realignOnResize"],[3,"clicked","data","zoomOnHover","width","height","overflow","realignOnResize"]],template:function(n,i){1&n&&(e.j41(0,"div",1,0),e.bIt("resized",function(c){return i.handleResize(c)}),e.nVh(2,G,1,6,"angular-tag-cloud",2),e.k0s()),2&n&&(e.xc7("display",i.data().length?"block":"none"),e.AVh("clickable",i.clickable()),e.R7$(2),e.vxM(i.data().length?2:-1))},dependencies:[A,B.C],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%;min-height:200px}.wordcloud-container[_ngcontent-%COMP%]{width:100%;height:100%} .wordcloud-container.clickable angular-tag-cloud span{cursor:pointer} .selected{text-decoration:underline}"],changeDetection:0})}return o})();var I=d(5971),V=d(5448),Y=d(3319),K=d(4372),me=d(6950),W=d(7598),j=d(2245),z=d(5381),$=d(7089),h=d(9352),U=d(2444),pe=d(9695),he=d(5745),J=d(8957);let H=(()=>{class o{value="";lineHeight="1.5";agInit(t){this.value=t.value||"",this.lineHeight=t.colDef&&t.colDef.cellRendererParams&&t.colDef.cellRendererParams.lineHeight||t.context&&t.context.lineHeight||"1.5"}refresh(t){return this.value=t.value||"",!0}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-multiline-cell-renderer"]],decls:2,vars:3,consts:[[1,"multiline-cell"]],template:function(n,i){1&n&&(e.rj2(0,"div",0),e.EFF(1),e.eux()),2&n&&(e.xc7("line-height",i.lineHeight),e.R7$(),e.JRh(i.value))},styles:[".multiline-cell[_ngcontent-%COMP%]{white-space:pre-wrap;word-wrap:break-word;padding:4px 2px;text-align:left}"]})}return o})(),ge=(()=>{class o{_value=(0,l.vPA)("");_options=(0,l.vPA)([]);_disabled=(0,l.vPA)(!1);_disabledTooltip=(0,l.vPA)("");_canChange=(0,l.vPA)(void 0);_optionValues=(0,u.EW)(()=>this._options().map(t=>t.value));_labelMap=(0,u.EW)(()=>Object.fromEntries(this._options().map(t=>[t.value,t.label])));_params;agInit(t){this._apply(t)}refresh(t){return this._apply(t),!0}onValueChange(t){if(void 0===t)return;const n=String(t),i=this._canChange();i&&!i(n)||(this._value.set(n),this._params.setValue?.(n))}_apply(t){this._params=t,this._value.set(t.value??"");const n="function"==typeof t.colDef?.cellRendererParams?t.colDef.cellRendererParams(t):t.colDef?.cellRendererParams??{};this._options.set(n.options??[]),this._disabled.set(n.disabled??!1),this._disabledTooltip.set(n.disabledTooltip??""),this._canChange.set(n.canChange??void 0)}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-select-cell-renderer"]],decls:1,vars:7,consts:[[3,"valueChange","options","labelMap","value","underline","menuPosition","disabled","cueTooltip"]],template:function(n,i){1&n&&(e.j41(0,"cue-select",0),e.bIt("valueChange",function(c){return i.onValueChange(c)}),e.k0s()),2&n&&e.Y8G("options",i._optionValues())("labelMap",i._labelMap())("value",i._value())("underline",!1)("menuPosition","bottomleft")("disabled",i._disabled())("cueTooltip",i._disabled()?i._disabledTooltip():"")},dependencies:[U.l,$.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 o})();var fe=d(7374),Q=d.n(fe),_e=d(4955),ve=d.n(_e),Ce=d(5164),be=d.n(Ce);d(9785),d(2269),d(1409),d(4230),d(2494),d(9531),Q().extend(ve()),Q().extend(be());let xe=(()=>{class o{_transloco=(0,l.WQX)(h.JO);transform(t,n="dateTime"){if(!t)return"";const i=this._transloco.getActiveLang(),s=Q()(t).locale(i);return"timeAgo"===n?s.fromNow():s.format("date"===n?"LL":"shortDate"===n?"L":"LLL")}static \u0275fac=function(n){return new(n||o)};static \u0275pipe=e.EJ8({name:"cueLocalDate",type:o,pure:!0})}return o})(),X=(()=>{class o{_value=(0,l.vPA)("");_format=(0,l.vPA)("dateTime");agInit(t){this._apply(t)}refresh(t){return this._apply(t),!0}_apply(t){this._value.set(t.value??""),this._format.set(t.colDef?.cellRendererParams?.dateFormat??"dateTime")}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-date-cell-renderer"]],decls:2,vars:4,template:function(n,i){1&n&&(e.EFF(0),e.nI1(1,"cueLocalDate")),2&n&&e.JRh(e.i5U(1,1,i._value(),i._format()))},dependencies:[xe],encapsulation:2,changeDetection:0})}return o})();const Me=["*"];function De(o,a){1&o&&e.SdG(0)}let ye=(()=>{class o{label=r.hFB.required();expanded=(0,r.geq)(!1);size=(0,r.hFB)("m");info=(0,r.hFB)("");expandToggled=(0,r.CGW)();toggle(){this.expanded.set(!this.expanded()),this.expandToggled.emit(this.expanded())}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-expansion-panel"]],inputs:{label:[1,"label"],expanded:[1,"expanded"],size:[1,"size"],info:[1,"info"]},outputs:{expanded:"expandedChange",expandToggled:"expandToggled"},ngContentSelectors:Me,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(n,i){1&n&&(e.NAR(),e.j41(0,"cue-flexcontainer",0)(1,"cue-flexcontainer",1),e.bIt("click",function(){return i.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,De,1,0),e.k0s()),2&n&&(e.R7$(2),e.Y8G("size",i.size())("info",i.info()),e.R7$(),e.JRh(i.label()),e.R7$(),e.Y8G("size",i.size()),e.R7$(),e.AVh("rotate",!0)("rotate-180",i.expanded()),e.R7$(2),e.vxM(i.expanded()?7:-1))},dependencies:[j.Typography,z.n,I.$,Y.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 o})();function ee(o){if(o)return o.replace(/([A-Z])/g," $1").replace(/^./,a=>a.toUpperCase())}var Se=d(9417),Te=d(1359);const we=(o,a)=>a.value;function Fe(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-input",6),e.bIt("valueChange",function(i){l.eBV(t);const s=e.XpG();return s.searchText=i,l.Njj(s.onSearchChange())}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("value",t.searchText)}}function ke(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-checkbox",7),e.bIt("checkedChange",function(i){const s=l.eBV(t).$implicit,c=e.XpG();return s.selected=i,l.Njj(c.onSelectionChange())}),e.k0s()}if(2&o){const t=a.$implicit;e.Y8G("label",t.value||"(blank)")("checked",t.selected)}}function Re(o,a){1&o&&(e.j41(0,"cue-typography",5),e.EFF(1,"No results"),e.k0s())}let te=(()=>{class o{_cdr=(0,l.WQX)(r.gRc);_params;options=[];filteredOptions=[];searchText="";agInit(t){this._params=t}afterGuiAttached(t){this._refreshOptions(),this._cdr.markForCheck()}onNewRowsLoaded(){this._refreshOptions(),this._cdr.markForCheck()}isFilterActive(){return this.options.some(t=>!t.selected)}doesFilterPass(t){const n=new Set(this.options.filter(p=>p.selected).map(p=>p.value)),i=this._params.getValue(t.node),s=null==i?"":String(i);return"..."===s||"Loading..."===s||(""===s?n.has(""):s.split(", ").map(p=>p.trim()).some(p=>n.has(p)))}getModel(){return this.isFilterActive()?{selectedValues:this.options.filter(t=>t.selected).map(t=>t.value)}:null}setModel(t){if(t){const n=new Set(t.selectedValues);this.options.forEach(i=>i.selected=n.has(i.value))}else this.options.forEach(n=>n.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(t=>t.selected)}toggleAll(t){this.options.forEach(n=>n.selected=t),this._applySearch(),this._params.filterChangedCallback(),this._cdr.markForCheck()}_refreshOptions(){const t=new Set;this._params.api.forEachNode(i=>{const s=this._params.getValue(i);if(null==s||""===s)t.add("");else{const c=String(s);if("..."===c||"Loading..."===c)return;const p=c.split(", ").map(f=>f.trim());for(const f of p)t.add(f)}});const n=new Map(this.options.map(i=>[i.value,i.selected]));this.options=Array.from(t).sort((i,s)=>i.localeCompare(s)).map(i=>({value:i,selected:n.get(i)??!0})),this._applySearch()}_applySearch(){const t=this.searchText.toLowerCase().trim();this.filteredOptions=t?this.options.filter(n=>n.value.toLowerCase().includes(t)):this.options}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,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(n,i){1&n&&(e.j41(0,"cue-flexcontainer",0),e.nVh(1,Fe,1,1,"cue-input",1),e.j41(2,"cue-checkbox",2),e.bIt("checkedChange",function(c){return i.toggleAll(c)}),e.k0s(),e.j41(3,"div",3),e.Z7z(4,ke,1,2,"cue-checkbox",4,we),e.nVh(6,Re,2,0,"cue-typography",5),e.k0s()()),2&n&&(e.R7$(),e.vxM(i.options.length>10?1:-1),e.R7$(),e.Y8G("checked",i.allSelected),e.R7$(2),e.Dyx(i.filteredOptions),e.R7$(2),e.vxM(0===i.filteredOptions.length?6:-1))},dependencies:[Se.YN,Te.S,J.p,j.Typography,z.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 o})();function Ne(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-input",4),e.bIt("valueChange",function(i){l.eBV(t);const s=e.XpG();return l.Njj(s.onValueChange(i))}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("value",t.filterText)}}function Ge(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-typography",5),e.bIt("click",function(){l.eBV(t);const i=e.XpG();return l.Njj(i.clear())}),e.EFF(1,"Clear"),e.k0s()}}let ne=(()=>{class o{_cdr=(0,l.WQX)(r.gRc);_params;filterText="";filterType="contains";filterTypeOptions=["contains","notContains","equals","notEqual","startsWith","endsWith","blank","notBlank"];_labelContains=(0,h.Xx)("components.agGridColumnSelect.textFilterContains");_labelNotContains=(0,h.Xx)("components.agGridColumnSelect.textFilterNotContains");_labelEquals=(0,h.Xx)("components.agGridColumnSelect.textFilterEquals");_labelNotEqual=(0,h.Xx)("components.agGridColumnSelect.textFilterNotEqual");_labelStartsWith=(0,h.Xx)("components.agGridColumnSelect.textFilterStartsWith");_labelEndsWith=(0,h.Xx)("components.agGridColumnSelect.textFilterEndsWith");_labelBlank=(0,h.Xx)("components.agGridColumnSelect.textFilterBlank");_labelNotBlank=(0,h.Xx)("components.agGridColumnSelect.textFilterNotBlank");filterTypeLabelMap=(0,u.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,u.EW)(()=>!["blank","notBlank"].includes(this.filterType));agInit(t){this._params=t}afterGuiAttached(t){this._cdr.markForCheck()}isFilterActive(){return!!["blank","notBlank"].includes(this.filterType)||this.filterText.trim().length>0}doesFilterPass(t){const n=this._params.getValue(t.node),i=null==n?"":String(n),s=this.filterText.toLowerCase().trim(),c=i.toLowerCase();switch(this.filterType){case"contains":default:return c.includes(s);case"notContains":return!c.includes(s);case"equals":return c===s;case"notEqual":return c!==s;case"startsWith":return c.startsWith(s);case"endsWith":return c.endsWith(s);case"blank":return""===i;case"notBlank":return""!==i}}getModel(){return this.isFilterActive()?{filterType:"text",type:this.filterType,filter:this.filterText}:null}setModel(t){this.filterText=t?.filter??"",this.filterType=t?.type??"contains",this._cdr.markForCheck()}onValueChange(t){this.filterText=t,this._params.filterChangedCallback(),this._cdr.markForCheck()}onFilterTypeChange(t){this.filterType=String(t||"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(n){return new(n||o)};static \u0275cmp=e.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(n,i){1&n&&(e.j41(0,"cue-flexcontainer",0)(1,"cue-select",1),e.bIt("valueChange",function(c){return i.onFilterTypeChange(c)}),e.k0s(),e.nVh(2,Ne,1,1,"cue-input",2),e.nVh(3,Ge,2,0,"cue-typography",3),e.k0s()),2&n&&(e.R7$(),e.Y8G("value",i.filterType)("options",i.filterTypeOptions)("labelMap",i.filterTypeLabelMap()),e.R7$(),e.vxM(i.showTextInput()?2:-1),e.R7$(),e.vxM(i.filterText||"contains"!==i.filterType?3:-1))},dependencies:[J.p,U.l,j.Typography,z.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})();const Ie=[{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 oe(o){const a=[];let t=0;for(;t<o.length;){if(/\s/.test(o[t])){t++;continue}if('"'===o[t]||"'"===o[t]){const i=o[t++];let s="";for(;t<o.length&&o[t]!==i;)s+="\\"===o[t]?o[++t]:o[t],t++;if(o[t]!==i)throw new Error("Unterminated string literal");t++,a.push({kind:"str",val:s});continue}const n=o.slice(t).match(/^(\d+\.?\d*|\.\d+)([eE][+-]?\d+)?/);if(n)a.push({kind:"num",val:n[0]}),t+=n[0].length;else{if("?"===o[t]){let i="?";for(t++;t<o.length&&/\w/.test(o[t]);)i+=o[t++];a.push({kind:"var",val:i});continue}if(/[A-Za-z_]/.test(o[t])){let i="";for(;t<o.length&&/\w/.test(o[t]);)i+=o[t++];a.push({kind:"ident",val:i.toUpperCase()});continue}if("**"!==o.slice(t,t+2)){if(!"+-*/%(),".includes(o[t]))throw new Error(`Unexpected character "${o[t]}" at position ${t}`);a.push({kind:"op",val:o[t++]})}else a.push({kind:"op",val:"**"}),t+=2}}return a.push({kind:"eof",val:""}),a}class se{tokens;vars;pos=0;constructor(a,t){this.tokens=a,this.vars=t}parse(){const a=this.expr();if("eof"!==this.tokens[this.pos].kind)throw new Error(`Unexpected token "${this.tokens[this.pos].val}" after expression`);return a}peek(){return this.tokens[this.pos]}next(){return this.tokens[this.pos++]}eat(a){if(this.peek().val!==a)throw new Error(`Expected "${a}", got "${this.peek().val||"end of input"}"`);this.pos++}expr(){return this.additive()}additive(){let a=this.multiplicative();for(;"op"===this.peek().kind&&("+"===this.peek().val||"-"===this.peek().val);){const t=this.next().val,n=this.multiplicative();a="+"===t?"string"==typeof a||"string"==typeof n?String(a)+String(n):a+n:M(a)-M(n)}return a}multiplicative(){let a=this.power();for(;"op"===this.peek().kind&&("*"===this.peek().val||"/"===this.peek().val||"%"===this.peek().val);){const t=this.next().val,n=this.power();if("*"===t)a=M(a)*M(n);else if("/"===t){const i=M(n);a=0!==i?M(a)/i:0}else a=M(a)%M(n)}return a}power(){const a=this.unary();return"op"===this.peek().kind&&"**"===this.peek().val?(this.next(),Math.pow(M(a),M(this.power()))):a}unary(){return"op"===this.peek().kind&&"-"===this.peek().val?(this.next(),-M(this.primary())):this.primary()}primary(){const a=this.peek();if("num"===a.kind)return this.next(),Number(a.val);if("str"===a.kind)return this.next(),a.val;if("var"===a.kind)return this.next(),this.vars[a.val]??"";if("ident"===a.kind)return this.funcCall();if("op"===a.kind&&"("===a.val){this.next();const t=this.expr();return this.eat(")"),t}throw new Error(`Unexpected token: "${a.val}"`)}funcCall(){const a=this.next().val;this.eat("(");const t=[];if(")"!==this.peek().val)for(t.push(this.expr());","===this.peek().val;)this.next(),t.push(this.expr());return this.eat(")"),function Ee(o,a){const t=n=>a[n]??"";switch(o){case"ROUND":return Number(M(t(0)).toFixed(Math.max(0,M(t(1)))));case"FLOOR":return Math.floor(M(t(0)));case"CEIL":return Math.ceil(M(t(0)));case"ABS":return Math.abs(M(t(0)));case"SQRT":return Math.sqrt(M(t(0)));case"MIN":return Math.min(...a.map(M));case"MAX":return Math.max(...a.map(M));case"CONCAT":return a.map(n=>String(n)).join("");case"TRIM":return String(t(0)).trim();case"UPPER":return String(t(0)).toUpperCase();case"LOWER":return String(t(0)).toLowerCase();case"LEN":return String(t(0)).length;case"REPLACE":return String(t(0)).replaceAll(String(t(1)),String(t(2)));case"NUM":return M(t(0));case"STR":return String(t(0));case"PREFIX":return String(t(0))?String(t(1))+String(t(0)):String(t(0));case"SUFFIX":return String(t(0))?String(t(0))+String(t(1)):String(t(0));case"IF":return 0!==M(t(0))&&""!==t(0)&&"false"!==t(0)?t(1):t(2);case"AFTER_LAST":{const n=String(t(0)),i=String(t(1)),s=n.lastIndexOf(i);return-1===s?n:n.slice(s+i.length)}case"AFTER_FIRST":{const n=String(t(0)),i=String(t(1)),s=n.indexOf(i);return-1===s?n:n.slice(s+i.length)}case"BEFORE_LAST":{const n=String(t(0)),i=String(t(1)),s=n.lastIndexOf(i);return-1===s?n:n.slice(0,s)}case"BEFORE_FIRST":{const n=String(t(0)),i=String(t(1)),s=n.indexOf(i);return-1===s?n:n.slice(0,s)}case"SEGMENT":return String(t(0)).split(String(t(1)))[M(t(2))]??"";default:throw new Error(`Unknown function: "${o}"`)}}(a,t)}}function M(o){if("number"==typeof o)return o;const a=Number(o);return isNaN(a)?0:a}const Ae=["*",[["","cueDisplayContent",""]],[["","cueDataContent",""]],[["","cueBehaviorContent",""]],[["","cueExtraContent",""]]],Oe=["*","[cueDisplayContent]","[cueDataContent]","[cueBehaviorContent]","[cueExtraContent]"],je=(o,a)=>a.name;function ze(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-input",7),e.nI1(1,"transloco"),e.bIt("valueChange",function(i){l.eBV(t);const s=e.XpG(2);return l.Njj(s.setLabel(i))}),e.k0s()}if(2&o){const t=e.XpG(2);e.Y8G("label",e.bMT(1,2,"components.agGridColumnSelect.labelLabel"))("value",t.label())}}function Be(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-button",11),e.bIt("click",function(){const i=l.eBV(t).$implicit,s=e.XpG(3);return l.Njj(s.setTextAlign(i))}),e.nrm(1,"cue-button-icon",12),e.k0s()}if(2&o){const t=a.$implicit,n=e.XpG(3);e.Y8G("selected",n.textAlign()===t),e.R7$(),e.Y8G("icon",n.ALIGN_ICON[t])}}function Ve(o,a){if(1&o&&(e.j41(0,"cue-typography",8),e.EFF(1),e.nI1(2,"transloco"),e.k0s(),e.j41(3,"cue-flexcontainer",9),e.Z7z(4,Be,2,2,"cue-button",10,e.Vm6),e.k0s()),2&o){const t=e.XpG(2);e.R7$(),e.SpI(" ",e.bMT(2,1,"components.agGridColumnSelect.labelTextAlign")," "),e.R7$(3),e.Dyx(t.alignOptions)}}function Ye(o,a){if(1&o){const t=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(i){l.eBV(t);const s=e.XpG(2);return l.Njj(s.setMultiline(i))}),e.k0s()()}if(2&o){const t=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",t.multiline())}}function We(o,a){if(1&o&&(e.j41(0,"cue-expansion-panel",2),e.nI1(1,"transloco"),e.j41(2,"cue-flexcontainer",4),e.nVh(3,ze,2,4,"cue-input",5),e.nVh(4,Ve,6,3),e.nVh(5,Ye,6,7,"cue-flexcontainer",6),e.SdG(6,1),e.k0s()()),2&o){const t=e.XpG();e.Y8G("label",e.bMT(1,5,"components.agGridColumnSelect.groupDisplay"))("expanded",!0),e.R7$(3),e.vxM(t.settings().allowSettingLabel?3:-1),e.R7$(),e.vxM(t.settings().allowSettingTextAlign?4:-1),e.R7$(),e.vxM(t.settings().allowSettingMultiline?5:-1)}}function $e(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-select",16),e.nI1(1,"transloco"),e.bIt("valueChange",function(i){l.eBV(t);const s=e.XpG(2);return l.Njj(s.setFilterType(i))}),e.k0s()}if(2&o){const t=e.XpG(2);e.Y8G("label",e.bMT(1,4,"components.agGridColumnSelect.labelFilterType"))("value",t.filterType())("options",t.filterTypeOptions)("labelMap",t.filterTypeLabelMap())}}function He(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-input",7),e.nI1(1,"transloco"),e.bIt("valueChange",function(i){l.eBV(t);const s=e.XpG(2);return l.Njj(s.setEnumValues(i))}),e.k0s()}if(2&o){const t=e.XpG(2);e.Y8G("label",e.bMT(1,2,"components.agGridColumnSelect.labelEnumValues"))("value",t.enumValuesText())}}function Xe(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-select",16),e.bIt("valueChange",function(i){l.eBV(t);const s=e.XpG(3);return l.Njj(s.setDateFormat(i))}),e.k0s()}if(2&o){const t=e.XpG(3);e.Y8G("label",t._labelDateFormat())("value",t.dateFormat())("options",t.dateFormatOptions)("labelMap",t.dateFormatLabelMap())}}function Ue(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-select",16),e.bIt("valueChange",function(i){l.eBV(t);const s=e.XpG(2);return l.Njj(s.setDataType(i))}),e.k0s(),e.nVh(1,Xe,1,4,"cue-select",15)}if(2&o){const t=e.XpG(2);e.Y8G("label",t._labelDataType())("value",t.dataType())("options",t.dataTypeOptions)("labelMap",t.dataTypeLabelMap()),e.R7$(),e.vxM("date"===t.dataType()?1:-1)}}function Je(o,a){if(1&o&&(e.j41(0,"cue-expansion-panel",3),e.nI1(1,"transloco"),e.j41(2,"cue-flexcontainer",4),e.nVh(3,$e,2,6,"cue-select",15),e.nVh(4,He,2,4,"cue-input",5),e.nVh(5,Ue,2,5),e.SdG(6,2),e.k0s()()),2&o){const t=e.XpG();e.Y8G("label",e.bMT(1,4,"components.agGridColumnSelect.groupData")),e.R7$(3),e.vxM(t.settings().allowSettingFilterType?3:-1),e.R7$(),e.vxM(t.settings().allowSettingEnumValues?4:-1),e.R7$(),e.vxM(t.settings().allowSettingDataType?5:-1)}}function Qe(o,a){if(1&o){const t=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(i){l.eBV(t);const s=e.XpG();return l.Njj(s.setEditable(i))}),e.k0s()(),e.SdG(9,3),e.k0s()()}if(2&o){const t=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",t.editable())}}function Ze(o,a){if(1&o&&(e.j41(0,"cue-expansion-panel",2)(1,"cue-flexcontainer",4),e.SdG(2,4),e.k0s()()),2&o){const t=e.XpG();e.Y8G("label",t.extraPanelLabel())("expanded",t.extraPanelExpanded())}}function qe(o,a){if(1&o&&(e.j41(0,"cue-typography",19),e.EFF(1),e.nI1(2,"transloco"),e.j41(3,"strong"),e.EFF(4),e.k0s()()),2&o){const t=e.XpG(2);e.R7$(),e.SpI(" ",e.bMT(2,2,"components.agGridColumnSelect.labelPostProcessPreview"),": "),e.R7$(3),e.JRh(t.postProcessFormulaPreview())}}function Ke(o,a){if(1&o&&(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&o){const t=a.$implicit;e.R7$(2),e.JRh(t.signature),e.R7$(2),e.JRh(t.description)}}function et(o,a){if(1&o){const t=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(i){l.eBV(t);const s=e.XpG();return l.Njj(s.setPostProcessFormula(i))}),e.k0s(),e.nVh(7,qe,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,Ke,5,2,"cue-flexcontainer",21,je),e.k0s()()()()}if(2&o){const t=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",t.postProcessFormula())("error",t.postProcessFormulaError()??void 0),e.R7$(4),e.vxM(t.postProcessFormulaPreview()?7:-1),e.R7$(),e.Y8G("label",e.bMT(9,17,"components.agGridColumnSelect.labelPostProcessFunctions"))("expanded",!1),e.R7$(3),e.Dyx(t.formulaFunctions)}}class ae{allowEditing=!0;allowToggleEditable=!0;allowToggleHideOnHover=!0;allowSettingTextAlign=!0;allowSettingLabel=!0;allowSettingFilterType=!0;allowSettingMultiline=!0;allowSettingEnumValues=!0;allowSettingDataType=!1;allowSettingPostProcess=!0}const tt={Text:ne,Number:"agNumberColumnFilter",Date:"agDateColumnFilter",Select:te,None:!1,Auto:!0},nt={agTextColumnFilter:"Text",agNumberColumnFilter:"Number",agDateColumnFilter:"Date",false:"None",true:"Auto"};let it=(()=>{class o{columnDef=r.geq.required();columnIndex=(0,r.hFB)();updateColumn=(0,r.CGW)();close=(0,r.CGW)();settings=r.hFB.required();extraPanelLabel=(0,r.hFB)();extraPanelExpanded=(0,r.hFB)(!0);minWidth=(0,r.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,h.Xx)("components.agGridColumnSelect.labelDataType");_labelDateFormat=(0,h.Xx)("components.agGridColumnSelect.labelDateFormat");_dtText=(0,h.Xx)("components.agGridColumnSelect.dataTypeText");_dtNumber=(0,h.Xx)("components.agGridColumnSelect.dataTypeNumber");_dtDate=(0,h.Xx)("components.agGridColumnSelect.dataTypeDate");_dtBoolean=(0,h.Xx)("components.agGridColumnSelect.dataTypeBoolean");_dfDateTime=(0,h.Xx)("components.agGridColumnSelect.dateFormatDateTime");_dfDate=(0,h.Xx)("components.agGridColumnSelect.dateFormatDate");_dfShortDate=(0,h.Xx)("components.agGridColumnSelect.dateFormatShortDate");_dfTimeAgo=(0,h.Xx)("components.agGridColumnSelect.dateFormatTimeAgo");dataTypeLabelMap=(0,u.EW)(()=>({text:this._dtText(),number:this._dtNumber(),date:this._dtDate(),boolean:this._dtBoolean()}));dateFormatLabelMap=(0,u.EW)(()=>({dateTime:this._dfDateTime(),date:this._dfDate(),shortDate:this._dfShortDate(),timeAgo:this._dfTimeAgo()}));_labelText=(0,h.Xx)("components.agGridColumnSelect.filterTypeText");_labelNumber=(0,h.Xx)("components.agGridColumnSelect.filterTypeNumber");_labelDate=(0,h.Xx)("components.agGridColumnSelect.filterTypeDate");_labelSelect=(0,h.Xx)("components.agGridColumnSelect.filterTypeSelect");_labelNone=(0,h.Xx)("components.agGridColumnSelect.filterTypeNone");_labelAuto=(0,h.Xx)("components.agGridColumnSelect.filterTypeAuto");filterTypeLabelMap=(0,u.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,u.EW)(()=>{const t=this.columnDef().cellRenderer;return t===X||"DateCellRenderer"===t?"date":"text"});dateFormat=(0,u.EW)(()=>{const t=this.columnDef().cellRenderer;return t===X||"DateCellRenderer"===t?this.columnDef().cellRendererParams?.dateFormat??"dateTime":"dateTime"});editable=(0,u.EW)(()=>!0===this.columnDef().editable);multiline=(0,u.EW)(()=>{const t=this.columnDef().cellRenderer;return t===H||"MultilineCellRenderer"===t});_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,u.uu)(()=>{const t=this.columnDef().cellStyle;return t?.textAlign||this._FLEX_TO_ALIGN[t?.justifyContent]||"left"});filterType=(0,u.EW)(()=>{const t=this.columnDef().filter;return t===te?"Select":t===ne?"Text":nt[t]||"Auto"});enumValuesText=(0,u.EW)(()=>(this.columnDef().cellRendererParams?.options??[]).map(n=>n.value).join(", "));label=(0,u.EW)(()=>this.columnDef().headerName||ee(this.columnDef().field)||"Unknown");setEditable(t){const n=this.columnDef().cellRendererParams;this.updateColumn.emit(n?.options?.length?{editable:t,cellRendererParams:{...n,disabled:!t}}:{editable:t})}setMultiline(t){this.updateColumn.emit({cellRenderer:t?H:void 0,cellRendererParams:{lineHeight:"1.8"},autoHeight:!0})}setLabel(t){this.updateColumn.emit({headerName:t})}setTextAlign(t){const n=this.columnDef().cellStyle||{};this.updateColumn.emit({cellStyle:{...n,display:"flex",justifyContent:this._ALIGN_TO_FLEX[t]??t,textAlign:t},headerClass:`header-align-${t}`}),this.textAlign.set(t)}setFilterType(t){this.updateColumn.emit({filter:tt[t]??!0})}setEnumValues(t){const n=t.split(",").map(i=>i.trim()).filter(i=>i.length>0);if(0===n.length)this.updateColumn.emit({cellRenderer:void 0,cellRendererParams:void 0});else{const i=n.map(s=>({value:s,label:s}));this.updateColumn.emit({cellRenderer:ge,cellRendererParams:{options:i,disabled:!this.editable()}})}}setDateFormat(t){t&&this.updateColumn.emit({cellRenderer:X,cellRendererParams:{dateFormat:t}})}setDataType(t){this.updateColumn.emit("date"===t?{cellRenderer:X,cellRendererParams:{dateFormat:"dateTime"}}:{cellRenderer:void 0,cellRendererParams:void 0})}formulaFunctions=Ie;postProcessFormula=(0,u.EW)(()=>function Pe(o){return o&&"none"!==o.type?"round"===o.type?`ROUND(?val, ${o.decimals})`:"prefix"===o.type?`PREFIX(?val, "${o.value.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}")`:"suffix"===o.type?`SUFFIX(?val, "${o.value.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}")`:"formula"===o.type?o.expression:"":""}(this.columnDef().postProcess));postProcessFormulaError=(0,u.EW)(()=>function Le(o){if(!o||!o.trim())return null;try{const a=oe(o);return new se(a,{"?val":"42"}).parse(),null}catch(a){return a?.message??"Invalid formula"}}(this.postProcessFormula()));postProcessFormulaPreview=(0,u.EW)(()=>{const t=this.postProcessFormula();return!t||this.postProcessFormulaError()?"":function ie(o,a){if(!o||!o.trim())return a;try{const t=oe(o),n=new se(t,{"?val":a}).parse();return null==n?"":String(n)}catch{return a}}(t,"42")});setPostProcessFormula(t){const n=t.trim();this.updateColumn.emit({postProcess:n?{type:"formula",expression:n}:void 0})}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,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:Oe,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(n,i){1&n&&(e.NAR(Ae),e.j41(0,"cue-modal",0),e.nI1(1,"transloco"),e.bIt("close",function(){return i.close.emit()}),e.j41(2,"cue-flexcontainer",1),e.nVh(3,We,7,7,"cue-expansion-panel",2),e.nVh(4,Je,7,6,"cue-expansion-panel",3),e.nVh(5,Qe,10,10,"cue-expansion-panel",3),e.nVh(6,Ze,3,2,"cue-expansion-panel",2),e.nVh(7,et,13,19,"cue-expansion-panel",3),e.SdG(8),e.k0s()()),2&n&&(e.Y8G("label",e.bMT(1,7,"components.agGridColumnSelect.titleColumnSettings"))("minWidth",i.minWidth()),e.R7$(3),e.vxM(i.settings().allowSettingLabel||i.settings().allowSettingTextAlign||i.settings().allowSettingMultiline?3:-1),e.R7$(),e.vxM(i.settings().allowSettingFilterType||i.settings().allowSettingEnumValues||i.settings().allowSettingDataType?4:-1),e.R7$(),e.vxM(i.settings().allowToggleEditable?5:-1),e.R7$(),e.vxM(i.extraPanelLabel()?6:-1),e.R7$(),e.vxM(i.settings().allowSettingPostProcess?7:-1))},dependencies:[he.a,z.n,j.Typography,U.l,pe.d,$.d,J.p,I.$,Y.a,ye,h.Kj],encapsulation:2,changeDetection:0})}return o})();var le=d(9769);const re=o=>[o],ot=(o,a)=>({$implicit:o,index:a});function st(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-table-column-settings-modal",9),e.bIt("updateColumn",function(i){const s=l.eBV(t),c=e.XpG();return l.Njj(c.updateColumnDef(s.index,i))})("close",function(){l.eBV(t);const i=e.XpG();return l.Njj(i.handleModalClose())}),e.k0s()}if(2&o){const t=a,n=e.XpG();e.Y8G("columnDef",t.col)("columnIndex",t.index)("settings",n.settings())}}function at(o,a){1&o&&e.eu8(0)}function lt(o,a){if(1&o&&e.DNE(0,at,1,0,"ng-container",13),2&o){const t=e.XpG(),n=t.$implicit,i=t.$index;e.Y8G("ngTemplateOutlet",a.templateRef)("ngTemplateOutletContext",e.l_i(2,ot,n,i))}}function rt(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-button",14),e.nI1(1,"transloco"),e.bIt("click",function(){l.eBV(t);const i=e.XpG(),s=i.$implicit,c=i.$index,p=e.XpG();return l.Njj(p.showColumnSettings(s,c))}),e.nrm(2,"cue-button-icon",15),e.k0s()}2&o&&e.Y8G("cueTooltip",e.bMT(1,1,"components.agGridColumnSelect.tooltipSettings"))}function ct(o,a){if(1&o&&(e.j41(0,"div",8)(1,"cue-flexcontainer",10)(2,"cue-typography"),e.EFF(3),e.k0s(),e.nrm(4,"span",11),e.nVh(5,lt,1,5,"ng-container"),e.nVh(6,rt,3,3,"cue-button",12),e.k0s()()),2&o){let t;const n=a.$implicit,i=e.XpG();e.R7$(3),e.JRh(i.getLabel(n)),e.R7$(2),e.vxM((t=i.columnItemTpl())?5:-1,t),e.R7$(),e.vxM(i.settings().allowEditing?6:-1)}}function dt(o,a){1&o&&e.eu8(0)}function ut(o,a){1&o&&e.DNE(0,dt,1,0,"ng-container",16),2&o&&e.Y8G("ngTemplateOutlet",a.templateRef)}function mt(o,a){if(1&o&&(e.j41(0,"div",8)(1,"cue-typography"),e.EFF(2),e.k0s()()),2&o){const t=a.$implicit,n=e.XpG();e.R7$(2),e.JRh(n.getLabel(t))}}let ce=(()=>{class o{templateRef=(0,l.WQX)(e.C4Q);static ngTemplateContextGuard(t,n){return!0}static \u0275fac=function(n){return new(n||o)};static \u0275dir=e.FsC({type:o,selectors:[["","cueColumnItem",""]]})}return o})(),de=(()=>{class o{templateRef=(0,l.WQX)(e.C4Q);static \u0275fac=function(n){return new(n||o)};static \u0275dir=e.FsC({type:o,selectors:[["","cueColumnListFooter",""]]})}return o})(),pt=(()=>{class o{columnDefs=r.geq.required();columnDefsGross=(0,r.geq)([]);settings=(0,r.hFB)(new ae);shown=(0,r.CGW)();columnItemTpl=(0,r.sbv)(ce);columnListFooterTpl=(0,r.sbv)(de);shownColumns=(0,l.vPA)([]);hiddenColumns=(0,l.vPA)([]);displayColumnSettings=(0,l.vPA)(void 0);onNoColumnDefsGross=(0,l.QZP)(()=>{(!this.columnDefsGross()||0===this.columnDefsGross().length)&&this.columnDefsGross.set(this.columnDefs())});onColumnDefs=(0,l.QZP)(()=>{const t=this.columnDefs().map(i=>i.field),n=this.columnDefsGross().filter(i=>!t.includes(i.field));this.shownColumns.update(()=>[...this.columnDefs()]),this.hiddenColumns.update(()=>[...n])});drop(t){t.previousContainer===t.container?(0,W.HD)(t.container.data,t.previousIndex,t.currentIndex):(0,W.eg)(t.previousContainer.data,t.container.data,t.previousIndex,t.currentIndex);const n=this.shownColumns();this.columnDefs.update(()=>[...n]),this.shown.emit(n)}showColumnSettings(t,n){this.displayColumnSettings.set({col:t,index:n})}updateColumnDef(t,n){const i=this.columnDefs().map((s,c)=>c===t?{...s,...n}:s);this.columnDefs.set(i),this.shown.emit(i),this.shownColumns.set(i)}getLabel(t){return t.headerName||ee(t.field)||"Unknown"}handleModalClose(){this.displayColumnSettings.set(void 0)}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-ag-grid-column-select"]],contentQueries:function(n,i,s){1&n&&e.C6U(s,i.columnItemTpl,ce,5)(s,i.columnListFooterTpl,de,5),2&n&&e.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"],["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(n,i){if(1&n&&(e.nVh(0,st,1,3,"cue-table-column-settings-modal",2),e.j41(1,"cue-typography",3),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"cue-flexcontainer",4)(5,"cue-flexcontainer",5)(6,"cue-typography",6),e.EFF(7),e.nI1(8,"transloco"),e.k0s(),e.j41(9,"div",7,0),e.bIt("cdkDropListDropped",function(c){return i.drop(c)}),e.Z7z(11,ct,7,3,"div",8,e.Vm6),e.nVh(13,ut,1,1,"ng-container"),e.k0s()(),e.j41(14,"cue-flexcontainer",5)(15,"cue-typography",6),e.EFF(16),e.nI1(17,"transloco"),e.k0s(),e.j41(18,"div",7,1),e.bIt("cdkDropListDropped",function(c){return i.drop(c)}),e.Z7z(20,mt,3,1,"div",8,e.Vm6),e.k0s()()()),2&n){let s,c;const p=e.sdS(10),f=e.sdS(19);e.vxM((s=i.displayColumnSettings())?0:-1,s),e.R7$(2),e.JRh(e.bMT(3,9,"components.agGridColumnSelect.dragHint")),e.R7$(5),e.JRh(e.bMT(8,11,"components.agGridColumnSelect.titleShown"));const g=i.shownColumns();e.R7$(2),e.Y8G("cdkDropListData",g)("cdkDropListConnectedTo",e.eq3(15,re,f)),e.R7$(2),e.Dyx(g),e.R7$(2),e.vxM((c=i.columnListFooterTpl())?13:-1,c),e.R7$(3),e.JRh(e.bMT(17,13,"components.agGridColumnSelect.titleHidden"));const v=i.hiddenColumns();e.R7$(2),e.Y8G("cdkDropListData",v)("cdkDropListConnectedTo",e.eq3(17,re,p)),e.R7$(2),e.Dyx(v)}},dependencies:[W.O7,W.T1,j.Typography,z.n,I.$,Y.a,$.d,it,le.T3,h.Kj],styles:[".panel[_ngcontent-%COMP%]{width:50%;display:flex;flex-direction:column}.list[_ngcontent-%COMP%]{border:solid 1px #ccc;min-height:60px;flex:1;background:#fff;border-radius:4px;overflow:hidden;display:block}.box[_ngcontent-%COMP%]{padding:20px 10px;border-bottom:solid 1px #ccc;color:#000000de;display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;background:#fff;font-size:14px}.draggable[_ngcontent-%COMP%]{cursor:move}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.box[_ngcontent-%COMP%]:last-child{border: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 o})();function ht(o,a){if(1&o&&(l.qSk(),e.j41(0,"svg",0),e.nrm(1,"path",3)(2,"path",4),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.BMQ("fill",t.colorDark()),e.R7$(),e.BMQ("fill",t.color())}}function gt(o,a){if(1&o&&(l.qSk(),e.j41(0,"svg",1),e.nrm(1,"path",5)(2,"path",6)(3,"path",7),e.k0s()),2&o){const t=e.XpG();e.R7$(2),e.BMQ("fill",t.color())}}const F_blue="#175EBB",ft={".dwg":F_blue,".dxf":F_blue,".doc":F_blue,".docx":F_blue,".ifc":"#9F388D",".pdf":"#E03833",".ppt":F_blue,".pptx":F_blue,".csv":"#0b7741",".xls":"#0b7741",".xlsx":"#0b7741",folder:"#9D9998"};let _t=(()=>{class o{suffix=r.hFB.required();size=(0,r.hFB)("m");color=(0,u.EW)(()=>ft[this.suffix()]??"#9D9998");label=(0,u.EW)(()=>this.suffix().startsWith(".")?this.suffix().toUpperCase().replace(/^\./,""):"");className=(0,u.EW)(()=>`size-${this.size()}`);colorDark=(0,u.EW)(()=>{const t=this.color(),n=parseInt(t.slice(1),16),s=n>>8&255,c=255&n;return`#${(Math.floor(.8*(n>>16&255))<<16|Math.floor(.8*s)<<8|Math.floor(.8*c)).toString(16).padStart(6,"0")}`});static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-file-icon"]],hostVars:2,hostBindings:function(n,i){2&n&&e.HbH(i.className())},inputs:{suffix:[1,"suffix"],size:[1,"size"]},decls:4,vars:2,consts:[["xmlns","http://www.w3.org/2000/svg","width","100%","height","100%","viewBox","0 0 48 48"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 24 30"],["size","xs","align","center","weight","semibold"],["d","M40 12H22l-4-4H8c-2.2 0-4 1.8-4 4v8h40v-4c0-2.2-1.8-4-4-4"],["d","M40 12H8c-2.2 0-4 1.8-4 4v20c0 2.2 1.8 4 4 4h32c2.2 0 4-1.8 4-4V16c0-2.2-1.8-4-4-4"],["fill","var(--cue-border-color)","d","M16.2.5H4.1C2.1.5.5 2.1.5 4.1v22.3c0 1.7 1.4 3.1 3.1 3.1h16.8c1.7 0 3.1-1.4 3.1-3.1V7.8h-.1c0-.1-7-7.1-7-7.1h-.1l-.1-.2Z"],["d","M4.1 1C2.4 1 1 2.4 1 4.1v22.3C1 27.8 2.2 29 3.6 29h16.8c1.4 0 2.6-1.2 2.6-2.6V8l-7-7H4.1Z"],["fill","#fff","d","M16 6c0 1.1.9 2 2 2h5l-7-7v5Z","opacity",".3"]],template:function(n,i){1&n&&(e.nVh(0,ht,3,2,":svg:svg",0)(1,gt,4,1,":svg:svg",1),e.j41(2,"cue-typography",2),e.EFF(3),e.k0s()),2&n&&(e.vxM("folder"===i.suffix()?0:1),e.R7$(3),e.JRh(i.label()))},dependencies:[j.Typography],styles:["[_nghost-%COMP%]{display:block;position:relative;aspect-ratio:30 / 24;width:var(--cue-dim-elem-m)}.size-xs[_nghost-%COMP%]{width:var(--cue-dim-elem-xs)}.size-s[_nghost-%COMP%]{width:var(--cue-dim-elem-s)}[_nghost-%COMP%] svg[_ngcontent-%COMP%]{display:block;width:100%;height:auto}[_nghost-%COMP%] cue-typography[_ngcontent-%COMP%]{color:#fff;text-transform:uppercase;position:absolute;left:50%;bottom:24%;transform:translate(-50%)}"]})}return o})(),vt=(()=>{class o{suffix=(0,l.vPA)("");iconSize=(0,l.vPA)("xs");agInit(t){this._apply(t)}refresh(t){return this._apply(t),!0}_apply(t){this.suffix.set(t.value||"folder"),this.iconSize.set({xs:"xs",s:"xs",m:"xs",l:"s",xl:"m"}[t.colDef?.cellRendererParams?.iconSize??t.iconSize??"xs"]??"xs")}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-file-icon-cell-renderer"]],decls:1,vars:2,consts:[[3,"suffix","size"]],template:function(n,i){1&n&&e.nrm(0,"cue-file-icon",0),2&n&&e.Y8G("suffix",i.suffix())("size",i.iconSize())},dependencies:[_t],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:center;width:100%;height:100%}"],changeDetection:0})}return o})();var Ct=d(6117),bt=d(29),xt=d(1951),Mt=d(1493),Dt=d(5187),yt=d(356),St=d(6279);let Tt=(()=>{class o{cueFlip=(0,r.geq)(!1);get flipped(){return this.cueFlip()}static \u0275fac=function(n){return new(n||o)};static \u0275dir=e.FsC({type:o,selectors:[["","cueFlip",""]],hostVars:2,hostBindings:function(n,i){2&n&&e.AVh("flipped",i.flipped)},inputs:{cueFlip:[1,"cueFlip"]},outputs:{cueFlip:"cueFlipChange"}})}return o})();const wt=(o,a)=>a.id;function Ft(o,a){if(1&o){const t=e.RV6();e.j41(0,"li",9),e.bIt("click",function(){const i=l.eBV(t).$implicit,s=e.XpG(3);return l.Njj(s.handleSimpleRowClick(i))}),e.j41(1,"cue-typography",10),e.EFF(2),e.k0s(),e.j41(3,"cue-typography",11),e.EFF(4),e.k0s()()}if(2&o){const t=a.$implicit,n=e.XpG(3);e.AVh("active",n.selectedSimpleDocumentId()===t.id),e.R7$(),e.Y8G("noWrap",!0)("title",t.name),e.R7$(),e.SpI(" ",t.name," "),e.R7$(2),e.SpI(" ",(t.suffix||"").replace(".","").toUpperCase()," ")}}function kt(o,a){if(1&o&&(e.j41(0,"ul",5),e.Z7z(1,Ft,5,6,"li",8,wt),e.k0s()),2&o){const t=e.XpG(2);e.R7$(),e.Dyx(t.simpleDocumentsInt())}}function Rt(o,a){if(1&o&&(e.j41(0,"cue-flexcontainer",6)(1,"cue-typography",12),e.EFF(2),e.k0s()()),2&o){const t=e.XpG(2);e.R7$(2),e.SpI(" ",0===t.documentRefs().length&&0===t.documents().length&&t.handlers()?"No documents":t.infoLoading()," ")}}function Nt(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",7)(1,"cue-typography",13),e.EFF(2),e.k0s(),e.j41(3,"cue-flexcontainer",14)(4,"cue-button",15),e.bIt("click",function(){l.eBV(t);const i=e.XpG(2);return l.Njj(i.previousSimplePage())}),e.nrm(5,"cue-button-icon",16),e.k0s(),e.j41(6,"cue-button",15),e.bIt("click",function(){l.eBV(t);const i=e.XpG(2);return l.Njj(i.nextSimplePage())}),e.nrm(7,"cue-button-icon",17),e.k0s()()()}if(2&o){const t=e.XpG(2);e.R7$(2),e.E5c(" ",t.simpleDisplayStart(),"-",t.simpleDisplayEnd()," / ",t.documentsInt().length," "),e.R7$(2),e.Y8G("disabled",!t.simpleHasPreviousPage()),e.R7$(2),e.Y8G("disabled",!t.simpleHasNextPage())}}function Gt(o,a){if(1&o&&(e.j41(0,"div",3),e.nVh(1,kt,3,0,"ul",5)(2,Rt,3,1,"cue-flexcontainer",6),e.nVh(3,Nt,8,5,"cue-flexcontainer",7),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.vxM(t.simpleDocumentsInt().length>0?1:2),e.R7$(2),e.vxM(t.documentsInt().length>0?3:-1)}}function Pt(o,a){if(1&o&&e.nrm(0,"cue-svg-icon",34),2&o){const t=e.XpG().$implicit;e.Y8G("name",t.icon)}}function It(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-menu-item",33),e.bIt("click",function(){const i=l.eBV(t).$implicit;return l.Njj(null==i?null:i.action())}),e.nVh(1,Pt,1,1,"cue-svg-icon",34),e.EFF(2),e.k0s()}if(2&o){const t=a.$implicit;e.R7$(),e.vxM(t.icon?1:-1),e.R7$(),e.SpI(" ",t.label)}}function Lt(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",24)(1,"cue-menu",25)(2,"cue-button",26,2),e.nrm(4,"cue-button-icon",27),e.k0s(),e.j41(5,"cue-menu-wrap",28),e.Z7z(6,It,3,2,"cue-menu-item",null,e.Vm6),e.k0s()(),e.j41(8,"cue-button",29),e.nI1(9,"transloco"),e.bIt("click",function(){l.eBV(t);const i=e.XpG(2);return l.Njj(i.flipped.set(!0))}),e.nrm(10,"cue-button-icon",30),e.k0s()(),e.j41(11,"div",31)(12,"cue-ag-grid",32),e.bIt("gridApiReady",function(i){l.eBV(t);const s=e.XpG(2);return l.Njj(s.onGridReady(i))})("selectedRows",function(i){l.eBV(t);const s=e.XpG(2);return l.Njj(s.clickedDocument.emit(i[0]))}),e.k0s()()}if(2&o){const t=e.XpG(2);e.R7$(6),e.Dyx(t.tableMenu()),e.R7$(2),e.Y8G("cueTooltip",e.bMT(9,9,"components.documentList.tooltipColumnSettings")),e.R7$(4),e.AVh("hidden",t.tableHidden()),e.Y8G("paginationPageSize",t.pageSize())("rowSelection",t.rowSelection)("rowData",t.documentsInt())("columnDefs",t.columnDefs())("overlaySettings",t.overlaySettings())("overlayActions",t.overlayActions())}}function Et(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",41),e.bIt("click",function(){l.eBV(t);const i=e.XpG(3);return l.Njj(i.applyTagFilter())}),e.j41(1,"cue-button",42)(2,"cue-button-label"),e.EFF(3,"Apply"),e.k0s()()()}}function At(o,a){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",24)(1,"cue-button",35),e.bIt("click",function(){l.eBV(t);const i=e.XpG(2);return l.Njj(i.showFront())}),e.nrm(2,"cue-button-icon",36),e.k0s()(),e.j41(3,"cue-flexcontainer",37)(4,"cue-word-cloud",38),e.bIt("selectionChanged",function(i){l.eBV(t);const s=e.XpG(2);return l.Njj(s.tagSelection.set(i))}),e.k0s(),e.nVh(5,Et,4,0,"cue-flexcontainer",39),e.k0s(),e.j41(6,"cue-ag-grid-column-select",40),e.mxI("columnDefsChange",function(i){l.eBV(t);const s=e.XpG(2);return e.DH7(s.columnDefs,i)||(s.columnDefs=i),l.Njj(i)}),e.k0s()}if(2&o){const t=e.XpG(2);e.R7$(3),e.AVh("hidden",!t.showTagFilterCloud()),e.R7$(),e.Y8G("words",t.tags())("clickable",!0)("overflow",!0)("multiSelect",!0)("highlightSelection",!0),e.R7$(),e.vxM(t.filterToBeApplied()?5:-1),e.R7$(),e.AVh("hidden",t.showTagFilterCloud()),e.Y8G("settings",t.columnSelectSettings),e.R50("columnDefs",t.columnDefs),e.Y8G("columnDefsGross",t.columnDefsGross())}}function Ot(o,a){if(1&o&&(e.j41(0,"cue-card",20),e.eu8(1,43),e.k0s()),2&o){e.XpG();const t=e.sdS(3),n=e.XpG();e.Y8G("variant",n._cardVariant()),e.R7$(),e.Y8G("ngTemplateOutlet",t)}}function jt(o,a){if(1&o&&(e.j41(0,"div",21),e.eu8(1,43),e.k0s()),2&o){e.XpG();const t=e.sdS(3);e.R7$(),e.Y8G("ngTemplateOutlet",t)}}function zt(o,a){if(1&o&&(e.j41(0,"cue-card",22),e.eu8(1,43),e.k0s()),2&o){e.XpG();const t=e.sdS(5),n=e.XpG();e.Y8G("variant",n._cardVariant()),e.R7$(),e.Y8G("ngTemplateOutlet",t)}}function Bt(o,a){if(1&o&&(e.j41(0,"div",23),e.eu8(1,43),e.k0s()),2&o){e.XpG();const t=e.sdS(5);e.R7$(),e.Y8G("ngTemplateOutlet",t)}}function Vt(o,a){if(1&o){const t=e.RV6();e.j41(0,"div",18),e.mxI("cueFlipChange",function(i){l.eBV(t);const s=e.XpG();return e.DH7(s.flipped,i)||(s.flipped=i),l.Njj(i)}),e.j41(1,"div",19),e.DNE(2,Lt,13,11,"ng-template",null,0,e.C5r)(4,At,7,13,"ng-template",null,1,e.C5r),e.nVh(6,Ot,2,2,"cue-card",20)(7,jt,2,1,"div",21),e.nVh(8,zt,2,2,"cue-card",22)(9,Bt,2,1,"div",23),e.k0s()()}if(2&o){const t=e.XpG();e.R50("cueFlip",t.flipped),e.R7$(6),e.vxM("none"!==t.variant()?6:7),e.R7$(2),e.vxM("none"!==t.variant()?8:9)}}let Yt=(()=>{class o{documents=(0,r.hFB)([]);availableContentCategories=(0,r.hFB)(void 0);detailedView=(0,r.hFB)(!1);simple=(0,r.hFB)(!1);pageSize=(0,r.hFB)(10);prefetchPages=(0,r.hFB)(3);privileges=(0,r.hFB)();showOpenInDocumentViewerAction=(0,r.hFB)(!0);showOpenInFileManagerAction=(0,r.hFB)(!0);customOverlayActions=(0,r.hFB)([]);variant=(0,r.hFB)("default");_cardVariant=(0,u.EW)(()=>this.variant());documentRefs=(0,r.hFB)([]);handlers=(0,r.hFB)(void 0);documentData=(0,r.hFB)({});clickedDocument=(0,r.CGW)();clickedDownloadDocument=(0,r.CGW)();clickedOpenInDir=(0,r.CGW)();clickedOpen=(0,r.CGW)();flipped=(0,l.vPA)(!1);simplePageIndex=(0,l.vPA)(0);selectedSimpleDocumentId=(0,l.vPA)(null);_simpleBufferedUntilIndex=(0,l.vPA)(0);_tableBufferedUntilIndex=(0,l.vPA)(0);_lastDocumentRefsKey="";_gridApi=null;_requestedIds=new Set;_isSorted=!1;_viewportCheckTimerId=null;_lazyMode=(0,u.EW)(()=>this.documentRefs().length>0);_leafContentCategoryIris=(0,u.EW)(()=>{const t=this.availableContentCategories();if(!t)return null;const n=new Set(t.map(i=>i.parent).filter(i=>!!i));return new Set(t.filter(i=>!n.has(i.iri)).map(i=>i.iri))});labelDownload=(0,h.Xx)("components.documentList.labelDownload");labelName=(0,h.Xx)("components.documentList.labelName");labelOpenInFileManager=(0,h.Xx)("components.documentList.labelOpenInFileManager");labelOpenInDocumentViewer=(0,h.Xx)("components.documentList.labelOpenInDocumentViewer");labelSubject=(0,h.Xx)("components.documentList.labelSubject");labelSummary=(0,h.Xx)("components.documentList.labelSummary");labelPages=(0,h.Xx)("components.documentList.labelPages");labelSize=(0,h.Xx)("components.documentList.labelSize");labelCategories=(0,h.Xx)("components.documentList.labelCategories");labelType=(0,h.Xx)("components.documentList.labelType");buttonShowCloudFilter=(0,h.Xx)("components.documentList.buttonShowCloudFilter");buttonHideCloudFilter=(0,h.Xx)("components.documentList.buttonHideCloudFilter");buttonDownloadCSV=(0,h.Xx)("components.documentList.buttonDownloadCSV");infoLoading=(0,h.Xx)("components.documentList.infoLoading");overlaySettings=(0,u.EW)(()=>({...new xt.K,mode:"row",buttonVariant:"accent"===this.variant()?"primary":"accent"}));overlayActions=(0,u.EW)(()=>{const t=[{label:this.labelDownload(),icon:"download",action:n=>{this.handlers()?.requestDownload?.(n.rowData),this.clickedDownloadDocument.emit(n.rowData)}}];return this.showOpenInDocumentViewerAction()&&t.push({label:this.labelOpenInDocumentViewer(),icon:"document",action:n=>{const i=n.rowData.contentIRI.split("/").pop()??n.rowData.contentIRI;this.handlers()?.requestOpen?.(i,n.rowData),this.clickedOpen.emit(n.rowData)}}),this.showOpenInFileManagerAction()&&t.push({label:this.labelOpenInFileManager(),icon:"folder",action:n=>{const i=n.rowData.contentIRI.split("/").pop()??n.rowData.contentIRI;this.handlers()?.requestOpenInDir?.(i,n.rowData),this.clickedOpenInDir.emit(n.rowData)}}),[...t,...this.customOverlayActions()||[]]});documentsInt=(0,u.EW)(()=>{let t;if(this._lazyMode()){const n=this.documentRefs(),i=this.documentData()||{};t=n.map(s=>{const c=i[s.id];return c?{...c,pages:s.pages??c.pages,...void 0!==s.sources?{sources:s.sources}:{},...void 0!==s.relevance?{relevance:s.relevance}:{},name:(0,K.M)(c.path),loading:!1}:{id:s.id,path:s.id,suffix:"",size:0,contentIRI:s.id,tags:[],summary:"",categories:[],relevance:s.relevance??0,pages:s.pages,sources:s.sources,name:this.infoLoading(),loading:!0}})}else t=(this.documents()||[]).map(n=>({...n,name:(0,K.M)(n.path),loading:!1}));return this.tagFilter().length?t.filter(n=>n.tags?.some(i=>this.tagFilter().some(s=>s.toLowerCase()===i.toLowerCase()))):t});simplePageCount=(0,u.EW)(()=>Math.max(1,Math.ceil(this.documentsInt().length/Math.max(1,this.pageSize()))));simpleStartIndex=(0,u.EW)(()=>this.simplePageIndex()*Math.max(1,this.pageSize()));simpleEndIndex=(0,u.EW)(()=>this.simpleStartIndex()+Math.max(1,this.pageSize()));simpleDocumentsInt=(0,u.EW)(()=>this.documentsInt().slice(this.simpleStartIndex(),this.simpleEndIndex()));simpleHasPreviousPage=(0,u.EW)(()=>this.simplePageIndex()>0);simpleHasNextPage=(0,u.EW)(()=>this.simplePageIndex()<this.simplePageCount()-1);simpleDisplayStart=(0,u.EW)(()=>this.documentsInt().length?this.simpleStartIndex()+1:0);simpleDisplayEnd=(0,u.EW)(()=>Math.min(this.simpleEndIndex(),this.documentsInt().length));tags=(0,u.EW)(()=>{const t=this.documentsInt(),n=[];return t.forEach(i=>{i.tags?.forEach(s=>n.push(s))}),n});showPageColumn=(0,u.EW)(()=>this.documentsInt().some(t=>void 0!==t.pages));hasSubjects=(0,u.EW)(()=>this.documentsInt().some(t=>void 0!==t.subject&&""!==t.subject));columnSelectSettings=new ae;columnDefs=(0,l.vPA)([]);columnDefsGross=(0,l.vPA)([]);tagSelection=(0,l.vPA)([]);tagFilter=(0,l.vPA)([]);showTagFilterCloud=(0,l.vPA)(!1);filterToBeApplied=(0,u.EW)(()=>{const t=this.tagSelection(),n=this.tagFilter();return JSON.stringify(t.sort())!==JSON.stringify(n.sort())});tableMenu=(0,u.EW)(()=>{const t=[];return this.showTagFilterCloud()?t.push({icon:"cloud-funnel",label:this.buttonHideCloudFilter(),variant:"accent",action:()=>{this.flipped.set(!1),this.showTagFilterCloud.set(!1)}}):t.push({icon:"cloud-funnel",label:this.buttonShowCloudFilter(),variant:"accent",action:()=>{this.flipped.set(!0),this.showTagFilterCloud.set(!0)}}),t.push({icon:"download",label:this.buttonDownloadCSV(),action:()=>function N(o,a,t="table.csv"){const n=function R(o,a){const t=function w(o,a){return o.map(t=>{const n={};return"id"in t&&(n.id=t.id),"key"in t&&(n.key=t.key),a.forEach(i=>{let s;"function"==typeof i.valueGetter?s=i.valueGetter({data:t,colDef:i,getValue:p=>t[p],node:void 0,column:void 0,api:void 0,context:void 0}):i.field&&(s=t[i.field]),"function"==typeof i.valueFormatter&&(s=i.valueFormatter({value:s,data:t,colDef:i,node:void 0,column:void 0,api:void 0,context:void 0}));const c=i.headerName||i.colId||i.field;void 0!==c&&(n[c]=s)}),n})}(o,a);if(0===t.length)return"";const n=t.some(c=>"id"in c),i=[];n&&i.push("id"),a.forEach(c=>{const p=c.headerName||c.colId||c.field;p&&"id"!==p&&!i.includes(p)&&i.push(p)});const s=t.map(c=>{const p={};return i.forEach(f=>{p[f]=c[f]}),p});return C().unparse(s,{columns:i})}(o,a);(0,m.YN)(n,t,"text/csv")}(this.documentsInt(),this.columnDefs())}),t});hideCloud(){this.flipped.set(!0),this.showTagFilterCloud.set(!0)}tableHidden=(0,u.EW)(()=>this.showTagFilterCloud()||this.flipped());rowSelection={mode:"singleRow",checkboxes:!1,enableClickSelection:!0};whenTableDataKnown=(0,l.QZP)(()=>{this.simple()||this._buildInitialColumnDefs(this.detailedView())});whenSimpleDataChanges=(0,l.QZP)(()=>{const t=this.documentsInt().length,n=Math.max(1,this.pageSize()),i=Math.max(0,Math.ceil(t/n)-1);this.simplePageIndex()>i&&this.simplePageIndex.set(i)});whenRefsChange=(0,l.QZP)(()=>{const n=this.documentRefs().map(i=>i.id).join("|");n!==this._lastDocumentRefsKey&&(this._lastDocumentRefsKey=n,this._requestedIds.clear(),this._simpleBufferedUntilIndex.set(0),this._tableBufferedUntilIndex.set(0),this.simplePageIndex.set(0))});whenSimpleLazyDataNeeded=(0,l.QZP)(()=>{if(!this.simple()||!this._lazyMode()||!this.handlers())return;const t=this.documentRefs();if(!t.length)return;const n=Math.max(1,this.pageSize()),s=n*Math.max(1,this.prefetchPages()),c=t.length,p=this.simpleStartIndex(),f=Math.min(c,p+n),g=this._simpleBufferedUntilIndex();let v=null;if(0===g?v=0:(p>=Math.max(0,g-n)||f>g)&&(v=g),null===v||v>=c)return;const T=Math.min(c,v+s),S=t.slice(v,T).map(D=>D.id).filter(D=>!this._requestedIds.has(D));this._simpleBufferedUntilIndex.set(Math.max(g,T)),S.length&&(S.forEach(D=>this._requestedIds.add(D)),setTimeout(()=>this.handlers()?.requestData(S)))});previousSimplePage(){this.simpleHasPreviousPage()&&this.simplePageIndex.update(t=>Math.max(0,t-1))}nextSimplePage(){this.simpleHasNextPage()&&this.simplePageIndex.update(t=>Math.min(this.simplePageCount()-1,t+1))}handleSimpleRowClick(t){this.selectedSimpleDocumentId.set(t.id),this.handleRowClick(t)}handleRowClick(t){var n=this;return(0,_.A)(function*(){n.clickedDocument.emit(t),window.cueDetachCellOverlay&&window.cueDetachCellOverlay(),n.overlayVisible&&"function"==typeof n.overlayVisible.set&&n.overlayVisible.set(!1)})()}showFront(){this.flipped.set(!1),this.showTagFilterCloud.set(!1)}applyTagFilter(){this.tagFilter.set(this.tagSelection()),this.flipped.set(!1),this.showTagFilterCloud.set(!1)}ngOnDestroy(){null!==this._viewportCheckTimerId&&(clearTimeout(this._viewportCheckTimerId),this._viewportCheckTimerId=null),this._gridApi=null}onGridReady(t){this._gridApi=t,t.addEventListener("viewportChanged",()=>this._checkViewport()),t.addEventListener("modelUpdated",()=>this._checkViewport()),t.addEventListener("paginationChanged",()=>this._checkViewport()),t.addEventListener("sortChanged",()=>{const n=t.getColumnState();this._isSorted=n.some(i=>null!=i.sort),this._isSorted&&this._requestAllUnloaded()}),this._viewportCheckTimerId=setTimeout(()=>{this._viewportCheckTimerId=null,this._checkViewport()},100)}_checkViewport(){if(!this._gridApi||this._gridApi.isDestroyed()||!this._lazyMode())return;if(this._isSorted)return void this._requestAllUnloaded();const t=this.documentRefs(),n=t.length;if(!n)return;const i=Math.max(1,this._gridApi.paginationGetPageSize?.()??10),c=Math.max(0,this._gridApi.paginationGetCurrentPage?.()??0)*i,p=Math.min(n,c+i),f=this._tableBufferedUntilIndex();let g=null;if(0===f?g=0:(c>=Math.max(0,f-i)||p>f)&&(g=f),null===g||g>=n)return;const v=i*Math.max(1,this.prefetchPages()),T=Math.min(n,g+v),S=t.slice(g,T).map(D=>D.id).filter(D=>!this._requestedIds.has(D));this._tableBufferedUntilIndex.set(Math.max(f,T)),S.length&&(S.forEach(D=>this._requestedIds.add(D)),setTimeout(()=>this.handlers()?.requestData(S)))}_requestAllUnloaded(){if(!this._gridApi||this._gridApi.isDestroyed()||!this._lazyMode())return;const t=[];if(this._gridApi.forEachNode(n=>{const i=n.data;i?.loading&&!this._requestedIds.has(i.contentIRI)&&t.push(i.contentIRI)}),t.length>0){const n=Array.from(new Set(t));n.forEach(i=>this._requestedIds.add(i)),setTimeout(()=>this.handlers()?.requestData(n))}}_buildInitialColumnDefs(t){const n=[],i=[];n.push({field:"name",headerName:this.labelName(),width:t?250:120,filter:!0,valueGetter:f=>!f.data?.name&&f.data?.loading?"Loading...":f.data?.name||f.data?.contentIRI}),this.hasSubjects()&&n.push({field:"subject",headerName:this.labelSubject(),flex:1,filter:!0,cellRenderer:H,cellRendererParams:{lineHeight:"1.8"},autoHeight:!0});const s={field:"summary",headerName:this.labelSummary(),flex:1,filter:!0,cellRenderer:H,cellRendererParams:{lineHeight:"1.8"},autoHeight:!0};this.detailedView()||(s.tooltipField="summary"),t?n.push(s):i.push(s),this.showPageColumn()&&n.push({field:"pages",headerName:this.labelPages(),width:100,filter:!0,valueGetter:f=>Array.isArray(f.data?.pages)?f.data.pages.map(g=>g.page).join(", "):""});const c={field:"size",headerName:this.labelSize(),width:100,filter:!0,valueGetter:f=>(0,Mt.b)(f.data?.size||0)};t?n.push(c):i.push(c);const p={field:"categories",headerName:this.labelCategories(),width:120,filter:!0,valueGetter:f=>{const g=f.data?.categories||[],v=this._leafContentCategoryIris(),T=v?g.filter(D=>v.has(D)):g,S=T.slice(0,3).map(D=>this._getContentCategoryLabel(D)).join(", ");return T.length>3?`${S}...`:S}};t?n.push(p):i.push(p),n.push({field:"suffix",headerName:this.labelType(),width:80,filter:!0,headerClass:"header-align-right",cellStyle:{display:"flex",justifyContent:"flex-end"},cellRenderer:vt}),this.columnDefs.update(()=>[...n]),this.columnDefsGross.update(()=>[...n,...i])}_getContentCategoryLabel(t){const n=this.availableContentCategories();if(void 0!==n){const i=n.find(s=>s.iri===t);if(i)return i.label;console.warn(`No label found for content category IRI: ${t}`)}else console.warn("No availableContentCategories provided to DocumentList component");return(o=>{const a=o.split("#").pop()??o,t={AgreementDocument:"Agreement",ArchitecturalDesignDocument:"Architectural Design",AsBuiltDocument:"As-Built",BudgetEstimateDocument:"Budget Estimate",CertificationDocument:"Certification",ComplianceDocument:"Compliance",CorrespondenceDocument:"Correspondence",ConstructionContract:"Construction Contract",ConstructionProcessDocument:"Construction Process",ContractCondition:"Contract Condition",ContractRole:"Contract Role",ContractualDocument:"Contract",CostControlDocument:"Cost Control",DesignDocument:"Design Document",EmailAddress:"Email Address",EngineeringDesignDocument:"Engineering Design",FinancialAdministrativeDocument:"Financial/Administrative",FunctionalRequirementsDocument:"Functional Requirements",InspectionDocument:"Inspection",InsuranceBondDocument:"Insurance/Bond",InteriorDesignDocument:"Interior Design",MarketingCloseoutDocument:"Marketing Closeout",MiscDocument:"Miscellaneous",OperationManual:"Operation Manual",OperationsMaintenanceDocument:"Operations & Maintenance",OperationsManualDocument:"Operations Manual",OtherDocument:"Other",OtherContent:"Other Content",ProgressStatusReport:"Progress Status Report",QualityAssuranceDocument:"Quality Assurance",QualityControlDocument:"Quality Control",RegulatoryComplianceDocument:"Regulatory Compliance",SafetyDocument:"Safety",ScheduleDocument:"Schedule",SiteAssessmentDocument:"Site Assessment",TechnicalRequirementsDocument:"Technical Requirements",TechnicalSpecificationDocument:"Technical Specification",TenderingDocument:"Tendering Document",TermsAndConditionsDocument:"Terms & Conditions"};return void 0===t[a]&&console.log(`No pretty label for category: ${a}`),t[a]??a})(t)}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-doc-list"]],inputs:{documents:[1,"documents"],availableContentCategories:[1,"availableContentCategories"],detailedView:[1,"detailedView"],simple:[1,"simple"],pageSize:[1,"pageSize"],prefetchPages:[1,"prefetchPages"],privileges:[1,"privileges"],showOpenInDocumentViewerAction:[1,"showOpenInDocumentViewerAction"],showOpenInFileManagerAction:[1,"showOpenInFileManagerAction"],customOverlayActions:[1,"customOverlayActions"],variant:[1,"variant"],documentRefs:[1,"documentRefs"],handlers:[1,"handlers"],documentData:[1,"documentData"]},outputs:{clickedDocument:"clickedDocument",clickedDownloadDocument:"clickedDownloadDocument",clickedOpenInDir:"clickedOpenInDir",clickedOpen:"clickedOpen"},decls:2,vars:1,consts:[["frontContent",""],["backContent",""],["trigger",""],[1,"simple-container",2,"width","100%","height","auto"],[1,"flip-card",2,"width","100%","height","auto","overflow","hidden",3,"cueFlip"],[1,"simple-list"],["justify","center",1,"simple-empty"],["direction","row","justify","space-between","align","center",2,"padding","4px 8px"],[1,"simple-item",3,"active"],[1,"simple-item",3,"click"],["size","s",1,"simple-item-name",3,"noWrap","title"],["size","xs",1,"simple-item-meta"],["size","s"],["size","xs"],["direction","row","gap","s"],["size","xs","variant","tertiary",3,"click","disabled"],["icon","paginator-back"],["icon","paginator-next"],[1,"flip-card",2,"width","100%","height","auto","overflow","hidden",3,"cueFlipChange","cueFlip"],[1,"flip-content"],[1,"card-face","front",2,"width","100%","height","auto",3,"variant"],[1,"card-face","front",2,"width","100%","height","auto"],[1,"card-face","back",2,"width","100%","height","auto",3,"variant"],[1,"card-face","back",2,"width","100%","height","auto"],["direction","row","justify","end",2,"padding","2px"],["positioning","bottomleft"],["trigger","","variant","tertiary","size","s"],["icon","more-vert"],["menu",""],["variant","accent","size","s",3,"click","cueTooltip"],["icon","settings"],[2,"position","relative"],[3,"gridApiReady","selectedRows","paginationPageSize","rowSelection","rowData","columnDefs","overlaySettings","overlayActions"],[3,"click"],["before","",3,"name"],["variant","accent","size","s","cueTooltip","Back to table",3,"click"],["icon","arrow-back"],["justify","center",2,"height","350px"],[2,"height","100%","width","100%",3,"selectionChanged","words","clickable","overflow","multiSelect","highlightSelection"],["justify","center",1,"word-cloud-actions"],[3,"columnDefsChange","settings","columnDefs","columnDefsGross"],["justify","center",1,"word-cloud-actions",3,"click"],["variant","primary"],[3,"ngTemplateOutlet"]],template:function(n,i){1&n&&e.nVh(0,Gt,4,2,"div",3)(1,Vt,10,3,"div",4),2&n&&e.vxM(i.simple()?0:1)},dependencies:[z.n,P,I.$,V.L,Tt,Dt.Z,le.T3,Y.a,me.R,pt,yt.M,St.D,Ct.W,bt.A,$.d,j.Typography,h.Kj],styles:[".hidden[_ngcontent-%COMP%]{display:none}.word-cloud-actions[_ngcontent-%COMP%]{position:absolute;z-index:10;right:0;left:0;bottom:10px;pointer-events:none}.word-cloud-actions[_ngcontent-%COMP%] cue-button[_ngcontent-%COMP%]{pointer-events:auto}.simple-container[_ngcontent-%COMP%]{width:100%}.simple-list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:4px;max-height:420px;overflow-y:auto}.simple-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;padding:9px 10px;border-radius:6px;cursor:pointer;transition:background .1s}.simple-item[_ngcontent-%COMP%]:hover{background:var(--cue-color-ultralightgray)}.simple-item.active[_ngcontent-%COMP%]{background:var(--cue-color-lightgray)}.simple-item-name[_ngcontent-%COMP%]{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.simple-item-meta[_ngcontent-%COMP%]{font-size:11px;color:var(--cue-color-midgray)}.simple-empty[_ngcontent-%COMP%]{padding:12px}"],changeDetection:0})}return o})()},4372(y,x,d){"use strict";d.d(x,{M:()=>_});const _=r=>{const u=r.split("/");return u[u.length-1]}},1493(y,x,d){"use strict";function _(r,u=!1,l=1){const m=u?1e3:1024;if(Math.abs(r)<m)return r+" B";const b=u?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let C=-1;const w=10**l;do{r/=m,++C}while(Math.round(Math.abs(r)*w)/w>=m&&C<b.length-1);return r.toFixed(l)+" "+b[C]}d.d(x,{b:()=>_})},2269(y,x,d){y.exports=function(_){"use strict";var u=function r(m){return m&&"object"==typeof m&&"default"in m?m:{default:m}}(_),l={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(m){return m+"."},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 u.default.locale(l,null,!0),l}(d(7374))},1409(y,x,d){y.exports=function(_){"use strict";var u=function r(C){return C&&"object"==typeof C&&"default"in C?C:{default:C}}(_),l={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 m(C,w,R){var N=l[R];return Array.isArray(N)&&(N=N[w?0:1]),N.replace("%d",C)}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(C){return C+"."},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,m,mm:m,h:m,hh:m,d:m,dd:m,M:m,MM:m,y:m,yy:m}};return u.default.locale(b,null,!0),b}(d(7374))},9785(y){y.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(x){var d=["th","st","nd","rd"],_=x%100;return"["+x+(d[(_-20)%10]||d[_]||d[0])+"]"}}}()},2494(y,x,d){y.exports=function(_){"use strict";var u=function r(m){return m&&"object"==typeof m&&"default"in m?m:{default:m}}(_),l={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(m){return m+"\xba"}};return u.default.locale(l,null,!0),l}(d(7374))},4230(y,x,d){y.exports=function(_){"use strict";var u=function r(m){return m&&"object"==typeof m&&"default"in m?m:{default:m}}(_),l={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(m){return m+(1===m?"er":"")}};return u.default.locale(l,null,!0),l}(d(7374))},9531(y,x,d){y.exports=function(_){"use strict";var u=function r(m){return m&&"object"==typeof m&&"default"in m?m:{default:m}}(_),l={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(m){return m+"\xba"}};return u.default.locale(l,null,!0),l}(d(7374))},4955(y){y.exports=function(){"use strict";var x={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(d,_,r){var u=_.prototype,l=u.format;r.en.formats=x,u.format=function(m){void 0===m&&(m="YYYY-MM-DDTHH:mm:ssZ");var R,b=this.$locale().formats,C=(R=void 0===b?{}:b,m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(N,e,k){var L=k&&k.toUpperCase();return e||R[k]||x[k]||R[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(E,A,B){return A||B.slice(1)})}));return l.call(this,C)}}}()},5164(y){y.exports=function(){"use strict";return function(x,d,_){x=x||{};var r=d.prototype,u={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 l(b,C,w,R){return r.fromToBase(b,C,w,R)}_.en.relativeTime=u,r.fromToBase=function(b,C,w,R,N){for(var e,k,L,E=w.$locale().relativeTime||u,A=x.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"}],B=A.length,O=0;O<B;O+=1){var G=A[O];G.d&&(e=R?_(b).diff(w,G.d,!0):w.diff(b,G.d,!0));var P=(x.rounding||Math.round)(Math.abs(e));if(L=e>0,P<=G.r||!G.r){P<=1&&O>0&&(G=A[O-1]);var I=E[G.l];N&&(P=N(""+P)),k="string"==typeof I?I.replace("%d",P):I(P,C,G.l,L);break}}if(C)return k;var V=L?E.future:E.past;return"function"==typeof V?V(k):V.replace("%s",k)},r.to=function(b,C){return l(b,C,this,!0)},r.from=function(b,C){return l(b,C,this)};var m=function(b){return b.$u?_.utc():_()};r.toNow=function(b){return this.to(m(this),b)},r.fromNow=function(b){return this.from(m(this),b)}}}()}}]);