@qaecy/cue-ui 0.0.59 → 0.0.60

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qaecy/cue-ui",
3
- "version": "0.0.59",
3
+ "version": "0.0.60",
4
4
  "description": "QAECY UI Web Components",
5
5
  "keywords": [
6
6
  "web-components",
package/2283.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[2283],{2283(z,S,r){r.d(S,{g:()=>we});var M=r(467),l=r(7705),h=r(2271),a=r(5802),w=r(2065),O=r(7284),I=r.n(O);var t=r(5547);let y=(()=>{class s{get calculatedWidth(){let e=this.localConfig().width||this.width()||1;return this.el.nativeElement.parentNode.offsetWidth>0&&e<=1&&e>0&&(e*=this.el.nativeElement.parentNode.offsetWidth),e}get calculatedHeight(){let e=this.localConfig().height||this.height()||400;return this.el.nativeElement.parentNode.offsetHeight>0&&e<=1&&e>0&&(e*=this.el.nativeElement.parentNode.offsetHeight),e}onResize(e){this.logMessage("debug","rezisze triggered"),window.clearTimeout(this.timeoutId),this.timeoutId=window.setTimeout(()=>{this.options.realignOnResize&&this.reDraw()},200)}constructor(){this.data=(0,l.hFB)([]),this.width=(0,l.hFB)(),this.height=(0,l.hFB)(),this.step=(0,l.hFB)(),this.overflow=(0,l.hFB)(),this.strict=(0,l.hFB)(),this.zoomOnHover=(0,l.hFB)(),this.realignOnResize=(0,l.hFB)(),this.randomizeAngle=(0,l.hFB)(),this.background=(0,l.hFB)(),this.font=(0,l.hFB)(),this.delay=(0,l.hFB)(),this.config=(0,l.hFB)({}),this.log=(0,l.hFB)(),this.clicked=(0,l.CGW)(),this.afterInit=(0,l.CGW)(),this.afterChecked=(0,l.CGW)(),this.localConfig=(0,h.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,a.WQX)(t.aKT),this.r2=(0,a.WQX)(t.sFG);const e=this.el.nativeElement;(0,a.QZP)(()=>{const n=this.localConfig();this.logMessage("warn","cloud configuration",n),n.font&&this.r2.setStyle(e,"font",n.font),n.background&&this.r2.setStyle(e,"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(e){let n=e.text;return n+=e.color?`-${e.color}`:"",n+=e.external?`-${e.external}`:"",n+=e.link?`-${e.link}`:"",n+=e.rotate?`-${e.rotate}`:"",n}drawWordCloud(){this.dataArr.sort((i,o)=>this.descriptiveEntry(i).localeCompare(this.descriptiveEntry(o))),this.dataArr.sort((i,o)=>o.weight-i.weight);const e=this.dataArr.filter(i=>i.position),n=this.dataArr.filter(i=>!i.position);e.forEach((i,o)=>{this.drawWord(o,i)}),n.forEach((i,o)=>{this.drawWord(o,i)})}hitTest(e){for(const n of this.cloudDataHtmlElements)if(this.overlapping(e,n))return!0;return!1}overlapping(e,n){const{offsetLeft:i,offsetTop:o,offsetWidth:c,offsetHeight:u}=n;return!(e.right<i||e.left>i+c||e.bottom<o||e.top>o+u)}getWeightForWord(e){let n=5;return this.dataArr[0].weight>this.dataArr[this.dataArr.length-1].weight&&(this.options.strict?e.weight>10?(n=10,this.logMessage("warn",`[TagCloud strict] Weight property ${e.weight} > 10. Fallback to 10 as you are using strict mode`,e)):e.weight<1?(n=1,this.logMessage("warn",`[TagCloud strict] Given weight property ${e.weight} < 1. Fallback to 1 as you are using strict mode`,e)):e.weight%1!=0?(n=Math.round(e.weight),this.logMessage("warn",`[TagCloud strict] Given weight property ${e.weight} is not an integer. Rounded value to ${n}`,e)):n=e.weight:n=Math.round((e.weight-this.dataArr[this.dataArr.length-1].weight)/(this.dataArr[0].weight-this.dataArr[this.dataArr.length-1].weight)*9)+1),n}setWordColor(e,n){this.r2.setStyle(e,"color",n)}setTooltip(e,n){this.r2.addClass(e,"tooltip");const i=this.r2.createElement("span");i.className="tooltiptext";const o=this.r2.createText(n);i.appendChild(o),e.appendChild(i)}setWordRotation(e,n){const i=n?`rotate(${n}deg)`:"";return this.r2.setStyle(e,"transform",i),i}wrapNodeIntoAnchorElement(e,n){const i=this.r2.createElement("a");return i.href=n.link||"",void 0!==n.external&&n.external&&(i.target="_blank"),i.appendChild(e),i}applyZoomStyle(e,n,i,o){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}) ${o}`),this.options.zoomOnHover?.delay&&this.r2.setStyle(n,"transition-delay",`${this.options.zoomOnHover.delay}s`),this.options.zoomOnHover?.color&&this.r2.setStyle(i?e:n,"color",this.options.zoomOnHover.color)},n.onmouseout=()=>{this.r2.setStyle(n,"transform",`none ${o}`),this.options.zoomOnHover?.color&&this.r2.removeStyle(i?e:n,"color")})}setPosition(e,n,i){let o=this.options.randomizeAngle?6.28*Math.random():0,c=0;const u=e.style;u.position="absolute";const m=!!(n.position&&n.position.left&&n.position.top),d=e.offsetWidth,p=e.offsetHeight;let C=m&&n.position?.left?n.position.left:this.options.center.x-d/2,_=m&&n.position?.top?n.position.top:this.options.center.y-p/2;if(u.left=C+"px",u.top=_+"px",this.options.delay&&(e.classList.add("tag-animation-delay"),u.setProperty("--tag-animation-delay",this.options.delay*i+"ms")),!m)if(0===i)u.left=C+2*(Math.random()-.5)*(this.calculatedWidth/5)+"px",u.top=_+2*(Math.random()-.5)*(this.calculatedHeight/5)+"30px";else{for(;this.options.width&&this.options.height&&e.offsetHeight&&e.offsetWidth&&this.hitTest(new DOMRect(C,_,e.offsetWidth,e.offsetHeight));)c+=this.options.step||1,o+=(i%2==0?1:-1)*(this.options.step||1),C=this.options.center.x-d/2+c*Math.cos(o)*this.options.aspectRatio,_=this.options.center.y+c*Math.sin(o)-p/2;u.left=C+"px",u.top=_+"px"}if(!this.options.overflow&&(C<0||_<0||C+d>this.calculatedWidth||_+p>this.calculatedHeight))return this.logMessage("warn","Word did not fit into the cloud and overflow is set to 'false'. The element will be removed",e),void e.remove()}drawWord(e,n){let i;const o=this.getWeightForWord(n);i=this.r2.createElement("span"),i.className=`w${o}`,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 u=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,u),i.appendChild(c),this.r2.appendChild(this.el.nativeElement,i),n.tooltip&&this.setTooltip(i,n.tooltip),i.id=`angular-tag-cloud-item-${e}`,this.setPosition(i,n,e),this.logMessage("debug","Adds new word <span>",i),this.cloudDataHtmlElements.push(i),this.logMessage("debug","Placed words",this.cloudDataHtmlElements)}logMessage(e,...n){this.localConfig()&&("debug"===this.localConfig().log?console.log(`[AngularTagCloudModule ${e}]`,...n):"warn"===this.localConfig().log&&"warn"===e&&console.warn(`[AngularTagCloudModule ${e}]`,...n))}static{this.\u0275fac=function(n){return new(n||s)}}static{this.\u0275cmp=t.VBU({type:s,selectors:[["angular-tag-cloud"],["ng-tag-cloud"],["ngtc"]],hostBindings:function(n,i){1&n&&t.bIt("resize",function(c){return i.onResize(c)},t.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 s})();var T=r(5970);const R=["wordCloudContainer"];function P(s,g){if(1&s){const e=t.RV6();t.j41(0,"angular-tag-cloud",3),t.bIt("clicked",function(i){a.eBV(e);const o=t.XpG();return a.Njj(o.handleClicked(i))}),t.k0s()}if(2&s){const e=t.XpG();t.Y8G("data",e.data())("zoomOnHover",e.zoomOnHoverOptions())("width",e.containerSize().width)("height",e.containerSize().height)("overflow",e.overflow())("realignOnResize",!0)}}let B=(()=>{class s{words=(0,l.hFB)();entries=(0,l.hFB)();caseSensitive=(0,l.hFB)(!1);clickable=(0,l.hFB)(!1);multiSelect=(0,l.hFB)(!1);highlightSelection=(0,l.hFB)(!1);minWeight=(0,l.hFB)(1);maxWeight=(0,l.hFB)(5);maxWords=(0,l.hFB)(50);colorScheme=(0,l.hFB)(["var(--cue-chart-text-color)","var(--cue-chart-text-color-select)"]);overflow=(0,l.hFB)(!1);clickedWord=(0,l.CGW)();selectionChanged=(0,l.CGW)();wordCloudContainer;containerSize=(0,a.vPA)({width:0,height:0});selection=(0,a.vPA)([]);data=(0,h.EW)(()=>{const e=this.words(),n=this.entries();return n?.length||e?.length?n?.length?n:e?.length?this._buildEntriesFromWords(e):[]:[]});ngAfterViewInit(){const e=new MutationObserver(()=>{this._applySelectionStyles()});this.wordCloudContainer?.nativeElement&&e.observe(this.wordCloudContainer.nativeElement,{childList:!0,subtree:!0})}handleResize(e){0!==e.newRect.height&&this.containerSize.set({width:e.newRect.width,height:e.newRect.height})}styleSelection=(0,a.QZP)(()=>{this.selection(),this._applySelectionStyles()});zoomOnHoverOptions=(0,h.EW)(()=>({scale:1.1,transitionTime:this.clickable()?1.2:0,delay:.05}));_buildEntriesFromWords(e){const n=new Map;for(const d of e){const p=this.caseSensitive()?d:d.toLowerCase();n.set(p,(n.get(p)||0)+1)}const i=Array.from(n.entries());if(0===i.length)return[];const o=i.map(([,d])=>d),c=Math.min(...o),u=Math.max(...o);return u===c?i.map(([d])=>({text:d,weight:this.maxWeight()})):i.sort(([,d],[,p])=>p-d).slice(0,this.maxWords()).map(([d,p])=>({text:d,weight:this.minWeight()+(p-c)*(this.maxWeight()-this.minWeight())/(u-c),color:this.colorScheme()[Math.floor(Math.random()*this.colorScheme().length)]}))}_applySelectionStyles(){if(!this.highlightSelection())return;const e=this.wordCloudContainer?.nativeElement;void 0!==e&&e.querySelectorAll("span").forEach(i=>{i.textContent&&(this.selection().includes(i.textContent.trim())?i.classList.add("selected"):i.classList.remove("selected"))})}handleClicked(e){this.clickable()&&(this.clickedWord.emit(e.text),this.highlightSelection()&&(this.selection().includes(e.text)?this.selection.update(n=>n.filter(i=>i!==e.text)):this.multiSelect()?this.selection.update(n=>[...n,e.text]):this.selection.update(()=>[e.text])),this.selectionChanged.emit(this.selection()))}static \u0275fac=function(n){return new(n||s)};static \u0275cmp=t.VBU({type:s,selectors:[["cue-word-cloud"]],viewQuery:function(n,i){if(1&n&&t.GBs(R,5),2&n){let o;t.mGM(o=t.lsd())&&(i.wordCloudContainer=o.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&&(t.j41(0,"div",1,0),t.bIt("resized",function(c){return i.handleResize(c)}),t.nVh(2,P,1,6,"angular-tag-cloud",2),t.k0s()),2&n&&(t.xc7("display",i.data().length?"block":"none"),t.AVh("clickable",i.clickable()),t.R7$(2),t.vxM(i.data().length?2:-1))},dependencies:[y,T.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 s})();var E=r(5971),A=r(5448),j=r(3319),G=r(4372),$=r(2611),X=r(5661),U=r(1096),L=r(5764),Y=r(2217);let Q=(()=>{class s{suffix=(0,a.vPA)("");iconSize=(0,a.vPA)("xs");agInit(e){this._apply(e)}refresh(e){return this._apply(e),!0}_apply(e){this.suffix.set(e.value||"folder"),this.iconSize.set({xs:"xs",s:"xs",m:"xs",l:"s",xl:"m"}[e.colDef?.cellRendererParams?.iconSize??e.iconSize??"xs"]??"xs")}static \u0275fac=function(n){return new(n||s)};static \u0275cmp=t.VBU({type:s,selectors:[["cue-file-icon-cell-renderer"]],decls:1,vars:2,consts:[[3,"suffix","size"]],template:function(n,i){1&n&&t.nrm(0,"cue-file-icon",0),2&n&&t.Y8G("suffix",i.suffix())("size",i.iconSize())},dependencies:[Y.o],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:center;width:100%;height:100%}"],changeDetection:0})}return s})();var K=r(6117),Z=r(29),J=r(1951),q=r(1493),D=r(9352),ee=r(5381),te=r(9769),ne=r(5187),ie=r(356),oe=r(6279),se=r(7717),ae=r(7089),le=r(2245);const ce=(s,g)=>g.id;function re(s,g){if(1&s){const e=t.RV6();t.j41(0,"li",9),t.bIt("click",function(){const i=a.eBV(e).$implicit,o=t.XpG(3);return a.Njj(o.handleSimpleRowClick(i))}),t.j41(1,"cue-typography",10),t.EFF(2),t.k0s(),t.j41(3,"cue-typography",11),t.EFF(4),t.k0s()()}if(2&s){const e=g.$implicit,n=t.XpG(3);t.AVh("active",n.selectedSimpleDocumentId()===e.id),t.R7$(),t.Y8G("noWrap",!0)("title",e.name),t.R7$(),t.SpI(" ",e.name," "),t.R7$(2),t.SpI(" ",(e.suffix||"").replace(".","").toUpperCase()," ")}}function de(s,g){if(1&s&&(t.j41(0,"ul",5),t.Z7z(1,re,5,6,"li",8,ce),t.k0s()),2&s){const e=t.XpG(2);t.R7$(),t.Dyx(e.simpleDocumentsInt())}}function ue(s,g){if(1&s&&(t.j41(0,"cue-flexcontainer",6)(1,"cue-typography",12),t.EFF(2),t.k0s()()),2&s){const e=t.XpG(2);t.R7$(2),t.SpI(" ",0===e.documentRefs().length&&0===e.documents().length&&e.handlers()?"No documents":e.infoLoading()," ")}}function he(s,g){if(1&s){const e=t.RV6();t.j41(0,"cue-flexcontainer",7)(1,"cue-typography",13),t.EFF(2),t.k0s(),t.j41(3,"cue-flexcontainer",14)(4,"cue-button",15),t.bIt("click",function(){a.eBV(e);const i=t.XpG(2);return a.Njj(i.previousSimplePage())}),t.nrm(5,"cue-button-icon",16),t.k0s(),t.j41(6,"cue-button",15),t.bIt("click",function(){a.eBV(e);const i=t.XpG(2);return a.Njj(i.nextSimplePage())}),t.nrm(7,"cue-button-icon",17),t.k0s()()()}if(2&s){const e=t.XpG(2);t.R7$(2),t.E5c(" ",e.simpleDisplayStart(),"-",e.simpleDisplayEnd()," / ",e.documentsInt().length," "),t.R7$(2),t.Y8G("disabled",!e.simpleHasPreviousPage()),t.R7$(2),t.Y8G("disabled",!e.simpleHasNextPage())}}function ge(s,g){if(1&s&&(t.j41(0,"div",3),t.nVh(1,de,3,0,"ul",5)(2,ue,3,1,"cue-flexcontainer",6),t.nVh(3,he,8,5,"cue-flexcontainer",7),t.k0s()),2&s){const e=t.XpG();t.R7$(),t.vxM(e.simpleDocumentsInt().length>0?1:2),t.R7$(2),t.vxM(e.documentsInt().length>0?3:-1)}}function me(s,g){if(1&s&&t.nrm(0,"cue-svg-icon",34),2&s){const e=t.XpG().$implicit;t.Y8G("name",e.icon)}}function pe(s,g){if(1&s){const e=t.RV6();t.j41(0,"cue-menu-item",33),t.bIt("click",function(){const i=a.eBV(e).$implicit;return a.Njj(null==i?null:i.action())}),t.nVh(1,me,1,1,"cue-svg-icon",34),t.EFF(2),t.k0s()}if(2&s){const e=g.$implicit;t.R7$(),t.vxM(e.icon?1:-1),t.R7$(),t.SpI(" ",e.label)}}function fe(s,g){if(1&s){const e=t.RV6();t.j41(0,"cue-flexcontainer",24)(1,"cue-menu",25)(2,"cue-button",26,2),t.nrm(4,"cue-button-icon",27),t.k0s(),t.j41(5,"cue-menu-wrap",28),t.Z7z(6,pe,3,2,"cue-menu-item",null,t.Vm6),t.k0s()(),t.j41(8,"cue-button",29),t.nI1(9,"transloco"),t.bIt("click",function(){a.eBV(e);const i=t.XpG(2);return a.Njj(i.flipped.set(!0))}),t.nrm(10,"cue-button-icon",30),t.k0s()(),t.j41(11,"div",31)(12,"cue-ag-grid",32),t.bIt("gridApiReady",function(i){a.eBV(e);const o=t.XpG(2);return a.Njj(o.onGridReady(i))})("selectedRows",function(i){a.eBV(e);const o=t.XpG(2);return a.Njj(o.clickedDocument.emit(i[0]))}),t.k0s()()}if(2&s){const e=t.XpG(2);t.R7$(6),t.Dyx(e.tableMenu()),t.R7$(2),t.Y8G("cueTooltip",t.bMT(9,10,"components.documentList.tooltipColumnSettings")),t.R7$(4),t.AVh("hidden",e.tableHidden()),t.Y8G("paginationPageSize",e.pageSize())("size",e.size())("rowSelection",e.rowSelection)("rowData",e.documentsInt())("columnDefs",e.columnDefs())("overlaySettings",e.overlaySettings())("overlayActions",e.overlayActions())}}function ve(s,g){if(1&s){const e=t.RV6();t.j41(0,"cue-flexcontainer",41),t.bIt("click",function(){a.eBV(e);const i=t.XpG(3);return a.Njj(i.applyTagFilter())}),t.j41(1,"cue-button",42)(2,"cue-button-label"),t.EFF(3,"Apply"),t.k0s()()()}}function _e(s,g){if(1&s){const e=t.RV6();t.j41(0,"cue-flexcontainer",24)(1,"cue-button",35),t.bIt("click",function(){a.eBV(e);const i=t.XpG(2);return a.Njj(i.showFront())}),t.nrm(2,"cue-button-icon",36),t.k0s()(),t.j41(3,"cue-flexcontainer",37)(4,"cue-word-cloud",38),t.bIt("selectionChanged",function(i){a.eBV(e);const o=t.XpG(2);return a.Njj(o.tagSelection.set(i))}),t.k0s(),t.nVh(5,ve,4,0,"cue-flexcontainer",39),t.k0s(),t.j41(6,"cue-ag-grid-column-select",40),t.mxI("columnDefsChange",function(i){a.eBV(e);const o=t.XpG(2);return t.DH7(o.columnDefs,i)||(o.columnDefs=i),a.Njj(i)}),t.k0s()}if(2&s){const e=t.XpG(2);t.R7$(3),t.AVh("hidden",!e.showTagFilterCloud()),t.R7$(),t.Y8G("words",e.tags())("clickable",!0)("overflow",!0)("multiSelect",!0)("highlightSelection",!0),t.R7$(),t.vxM(e.filterToBeApplied()?5:-1),t.R7$(),t.AVh("hidden",e.showTagFilterCloud()),t.Y8G("settings",e.columnSelectSettings),t.R50("columnDefs",e.columnDefs),t.Y8G("columnDefsGross",e.columnDefsGross())}}function Ce(s,g){if(1&s&&(t.j41(0,"cue-card",20),t.eu8(1,43),t.k0s()),2&s){t.XpG();const e=t.sdS(3),n=t.XpG();t.Y8G("variant",n._cardVariant()),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function De(s,g){if(1&s&&(t.j41(0,"div",21),t.eu8(1,43),t.k0s()),2&s){t.XpG();const e=t.sdS(3);t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function be(s,g){if(1&s&&(t.j41(0,"cue-card",22),t.eu8(1,43),t.k0s()),2&s){t.XpG();const e=t.sdS(5),n=t.XpG();t.Y8G("variant",n._cardVariant()),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function xe(s,g){if(1&s&&(t.j41(0,"div",23),t.eu8(1,43),t.k0s()),2&s){t.XpG();const e=t.sdS(5);t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function Me(s,g){if(1&s){const e=t.RV6();t.j41(0,"div",18),t.mxI("cueFlipChange",function(i){a.eBV(e);const o=t.XpG();return t.DH7(o.flipped,i)||(o.flipped=i),a.Njj(i)}),t.j41(1,"div",19),t.DNE(2,fe,13,12,"ng-template",null,0,t.C5r)(4,_e,7,13,"ng-template",null,1,t.C5r),t.nVh(6,Ce,2,2,"cue-card",20)(7,De,2,1,"div",21),t.nVh(8,be,2,2,"cue-card",22)(9,xe,2,1,"div",23),t.k0s()()}if(2&s){const e=t.XpG();t.R50("cueFlip",e.flipped),t.R7$(6),t.vxM("none"!==e.variant()?6:7),t.R7$(2),t.vxM("none"!==e.variant()?8:9)}}let we=(()=>{class s{documents=(0,l.hFB)([]);availableContentCategories=(0,l.hFB)(void 0);detailedView=(0,l.hFB)(!1);simple=(0,l.hFB)(!1);pageSize=(0,l.hFB)(10);size=(0,l.hFB)("m");prefetchPages=(0,l.hFB)(3);privileges=(0,l.hFB)();showOpenInDocumentViewerAction=(0,l.hFB)(!0);showOpenInFileManagerAction=(0,l.hFB)(!0);customOverlayActions=(0,l.hFB)([]);variant=(0,l.hFB)("default");_cardVariant=(0,h.EW)(()=>this.variant());documentRefs=(0,l.hFB)([]);handlers=(0,l.hFB)(void 0);documentData=(0,l.hFB)({});clickedDocument=(0,l.CGW)();clickedDownloadDocument=(0,l.CGW)();clickedOpenInDir=(0,l.CGW)();clickedOpen=(0,l.CGW)();flipped=(0,a.vPA)(!1);simplePageIndex=(0,a.vPA)(0);selectedSimpleDocumentId=(0,a.vPA)(null);_simpleBufferedUntilIndex=(0,a.vPA)(0);_tableBufferedUntilIndex=(0,a.vPA)(0);_lastDocumentRefsKey="";_gridApi=null;_requestedIds=new Set;_isSorted=!1;_viewportCheckTimerId=null;_lazyMode=(0,h.EW)(()=>this.documentRefs().length>0);_leafContentCategoryIris=(0,h.EW)(()=>{const e=this.availableContentCategories();if(!e)return null;const n=new Set(e.map(i=>i.parent).filter(i=>!!i));return new Set(e.filter(i=>!n.has(i.iri)).map(i=>i.iri))});labelDownload=(0,D.Xx)("components.documentList.labelDownload");labelName=(0,D.Xx)("components.documentList.labelName");labelOpenInFileManager=(0,D.Xx)("components.documentList.labelOpenInFileManager");labelOpenInDocumentViewer=(0,D.Xx)("components.documentList.labelOpenInDocumentViewer");labelSubject=(0,D.Xx)("components.documentList.labelSubject");labelSummary=(0,D.Xx)("components.documentList.labelSummary");labelPages=(0,D.Xx)("components.documentList.labelPages");labelSize=(0,D.Xx)("components.documentList.labelSize");labelCategories=(0,D.Xx)("components.documentList.labelCategories");labelType=(0,D.Xx)("components.documentList.labelType");buttonShowCloudFilter=(0,D.Xx)("components.documentList.buttonShowCloudFilter");buttonHideCloudFilter=(0,D.Xx)("components.documentList.buttonHideCloudFilter");buttonDownloadCSV=(0,D.Xx)("components.documentList.buttonDownloadCSV");infoLoading=(0,D.Xx)("components.documentList.infoLoading");overlaySettings=(0,h.EW)(()=>({...new J.K,mode:"row",buttonVariant:"accent"===this.variant()?"primary":"accent"}));overlayActions=(0,h.EW)(()=>{const e=[{label:this.labelDownload(),icon:"download",action:n=>{this.handlers()?.requestDownload?.(n.rowData),this.clickedDownloadDocument.emit(n.rowData)}}];return this.showOpenInDocumentViewerAction()&&e.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()&&e.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)}}),[...e,...this.customOverlayActions()||[]]});documentsInt=(0,h.EW)(()=>{let e;if(this._lazyMode()){const n=this.documentRefs(),i=this.documentData()||{};e=n.map(o=>{const c=i[o.id];return c?{...c,pages:o.pages??c.pages,...void 0!==o.sources?{sources:o.sources}:{},...void 0!==o.relevance?{relevance:o.relevance}:{},name:(0,G.M)(c.path),loading:!1}:{id:o.id,path:o.id,suffix:"",size:0,contentIRI:o.id,tags:[],summary:"",categories:[],relevance:o.relevance??0,pages:o.pages,sources:o.sources,name:this.infoLoading(),loading:!0}})}else e=(this.documents()||[]).map(n=>({...n,name:(0,G.M)(n.path),loading:!1}));return this.tagFilter().length?e.filter(n=>n.tags?.some(i=>this.tagFilter().some(o=>o.toLowerCase()===i.toLowerCase()))):e});simplePageCount=(0,h.EW)(()=>Math.max(1,Math.ceil(this.documentsInt().length/Math.max(1,this.pageSize()))));simpleStartIndex=(0,h.EW)(()=>this.simplePageIndex()*Math.max(1,this.pageSize()));simpleEndIndex=(0,h.EW)(()=>this.simpleStartIndex()+Math.max(1,this.pageSize()));simpleDocumentsInt=(0,h.EW)(()=>this.documentsInt().slice(this.simpleStartIndex(),this.simpleEndIndex()));simpleHasPreviousPage=(0,h.EW)(()=>this.simplePageIndex()>0);simpleHasNextPage=(0,h.EW)(()=>this.simplePageIndex()<this.simplePageCount()-1);simpleDisplayStart=(0,h.EW)(()=>this.documentsInt().length?this.simpleStartIndex()+1:0);simpleDisplayEnd=(0,h.EW)(()=>Math.min(this.simpleEndIndex(),this.documentsInt().length));tags=(0,h.EW)(()=>{const e=this.documentsInt(),n=[];return e.forEach(i=>{i.tags?.forEach(o=>n.push(o))}),n});showPageColumn=(0,h.EW)(()=>this.documentsInt().some(e=>void 0!==e.pages));hasSubjects=(0,h.EW)(()=>this.documentsInt().some(e=>void 0!==e.subject&&""!==e.subject));columnSelectSettings=new U.e;columnDefs=(0,a.vPA)([]);columnDefsGross=(0,a.vPA)([]);tagSelection=(0,a.vPA)([]);tagFilter=(0,a.vPA)([]);showTagFilterCloud=(0,a.vPA)(!1);filterToBeApplied=(0,h.EW)(()=>{const e=this.tagSelection(),n=this.tagFilter();return JSON.stringify(e.sort())!==JSON.stringify(n.sort())});tableMenu=(0,h.EW)(()=>{const e=[];return this.showTagFilterCloud()?e.push({icon:"cloud-funnel",label:this.buttonHideCloudFilter(),variant:"accent",action:()=>{this.flipped.set(!1),this.showTagFilterCloud.set(!1)}}):e.push({icon:"cloud-funnel",label:this.buttonShowCloudFilter(),variant:"accent",action:()=>{this.flipped.set(!0),this.showTagFilterCloud.set(!0)}}),e.push({icon:"download",label:this.buttonDownloadCSV(),action:()=>function F(s,g,e="table.csv"){const n=function N(s,g){const e=function v(s,g){return s.map(e=>{const n={};return"id"in e&&(n.id=e.id),"key"in e&&(n.key=e.key),g.forEach(i=>{let o;"function"==typeof i.valueGetter?o=i.valueGetter({data:e,colDef:i,getValue:u=>e[u],node:void 0,column:void 0,api:void 0,context:void 0}):i.field&&(o=e[i.field]),"function"==typeof i.valueFormatter&&(o=i.valueFormatter({value:o,data:e,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]=o)}),n})}(s,g);if(0===e.length)return"";const n=e.some(c=>"id"in c),i=[];n&&i.push("id"),g.forEach(c=>{const u=c.headerName||c.colId||c.field;u&&"id"!==u&&!i.includes(u)&&i.push(u)});const o=e.map(c=>{const u={};return i.forEach(m=>{u[m]=c[m]}),u});return I().unparse(o,{columns:i})}(s,g);(0,w.YN)(n,e,"text/csv")}(this.documentsInt(),this.columnDefs())}),e});hideCloud(){this.flipped.set(!0),this.showTagFilterCloud.set(!0)}tableHidden=(0,h.EW)(()=>this.showTagFilterCloud()||this.flipped());rowSelection={mode:"singleRow",checkboxes:!1,enableClickSelection:!0};whenTableDataKnown=(0,a.QZP)(()=>{this.simple()||this._buildInitialColumnDefs(this.detailedView())});whenSimpleDataChanges=(0,a.QZP)(()=>{const e=this.documentsInt().length,n=Math.max(1,this.pageSize()),i=Math.max(0,Math.ceil(e/n)-1);this.simplePageIndex()>i&&this.simplePageIndex.set(i)});whenRefsChange=(0,a.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,a.QZP)(()=>{if(!this.simple()||!this._lazyMode()||!this.handlers())return;const e=this.documentRefs();if(!e.length)return;const n=Math.max(1,this.pageSize()),o=n*Math.max(1,this.prefetchPages()),c=e.length,u=this.simpleStartIndex(),m=Math.min(c,u+n),d=this._simpleBufferedUntilIndex();let p=null;if(0===d?p=0:(u>=Math.max(0,d-n)||m>d)&&(p=d),null===p||p>=c)return;const C=Math.min(c,p+o),_=e.slice(p,C).map(f=>f.id).filter(f=>!this._requestedIds.has(f));this._simpleBufferedUntilIndex.set(Math.max(d,C)),_.length&&(_.forEach(f=>this._requestedIds.add(f)),setTimeout(()=>this.handlers()?.requestData(_)))});previousSimplePage(){this.simpleHasPreviousPage()&&this.simplePageIndex.update(e=>Math.max(0,e-1))}nextSimplePage(){this.simpleHasNextPage()&&this.simplePageIndex.update(e=>Math.min(this.simplePageCount()-1,e+1))}handleSimpleRowClick(e){this.selectedSimpleDocumentId.set(e.id),this.handleRowClick(e)}handleRowClick(e){var n=this;return(0,M.A)(function*(){n.clickedDocument.emit(e),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(e){this._gridApi=e,e.addEventListener("viewportChanged",()=>this._checkViewport()),e.addEventListener("modelUpdated",()=>this._checkViewport()),e.addEventListener("paginationChanged",()=>this._checkViewport()),e.addEventListener("sortChanged",()=>{const n=e.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 e=this.documentRefs(),n=e.length;if(!n)return;const i=Math.max(1,this._gridApi.paginationGetPageSize?.()??10),c=Math.max(0,this._gridApi.paginationGetCurrentPage?.()??0)*i,u=Math.min(n,c+i),m=this._tableBufferedUntilIndex();let d=null;if(0===m?d=0:(c>=Math.max(0,m-i)||u>m)&&(d=m),null===d||d>=n)return;const p=i*Math.max(1,this.prefetchPages()),C=Math.min(n,d+p),_=e.slice(d,C).map(f=>f.id).filter(f=>!this._requestedIds.has(f));this._tableBufferedUntilIndex.set(Math.max(m,C)),_.length&&(_.forEach(f=>this._requestedIds.add(f)),setTimeout(()=>this.handlers()?.requestData(_)))}_requestAllUnloaded(){if(!this._gridApi||this._gridApi.isDestroyed()||!this._lazyMode())return;const e=[];if(this._gridApi.forEachNode(n=>{const i=n.data;i?.loading&&!this._requestedIds.has(i.contentIRI)&&e.push(i.contentIRI)}),e.length>0){const n=Array.from(new Set(e));n.forEach(i=>this._requestedIds.add(i)),setTimeout(()=>this.handlers()?.requestData(n))}}_buildInitialColumnDefs(e){const n=[],i=[];n.push({field:"name",headerName:this.labelName(),width:e?250:120,filter:!0,valueGetter:m=>!m.data?.name&&m.data?.loading?"Loading...":m.data?.name||m.data?.contentIRI}),this.hasSubjects()&&n.push({field:"subject",headerName:this.labelSubject(),flex:1,filter:!0,cellRenderer:L.l,cellRendererParams:{lineHeight:"1.8"},autoHeight:!0});const o={field:"summary",headerName:this.labelSummary(),flex:1,filter:!0,cellRenderer:L.l,cellRendererParams:{lineHeight:"1.8"},autoHeight:!0};this.detailedView()||(o.tooltipField="summary"),e?n.push(o):i.push(o),this.showPageColumn()&&n.push({field:"pages",headerName:this.labelPages(),width:100,filter:!0,valueGetter:m=>Array.isArray(m.data?.pages)?m.data.pages.map(d=>d.page).join(", "):""});const c={field:"size",headerName:this.labelSize(),width:100,filter:!0,valueGetter:m=>(0,q.b)(m.data?.size||0)};e?n.push(c):i.push(c);const u={field:"categories",headerName:this.labelCategories(),width:120,filter:!0,valueGetter:m=>{const d=m.data?.categories||[],p=this._leafContentCategoryIris(),C=p?d.filter(f=>p.has(f)):d,_=C.slice(0,3).map(f=>this._getContentCategoryLabel(f)).join(", ");return C.length>3?`${_}...`:_}};e?n.push(u):i.push(u),n.push({field:"suffix",headerName:this.labelType(),width:80,filter:!0,headerClass:"header-align-right",cellStyle:{display:"flex",justifyContent:"flex-end"},cellRenderer:Q}),this.columnDefs.update(()=>[...n]),this.columnDefsGross.update(()=>[...n,...i])}_getContentCategoryLabel(e){const n=this.availableContentCategories();if(void 0!==n){const i=n.find(o=>o.iri===e);if(i)return i.label;console.warn(`No label found for content category IRI: ${e}`)}else console.warn("No availableContentCategories provided to DocumentList component");return(s=>{const g=s.split("#").pop()??s,e={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===e[g]&&console.log(`No pretty label for category: ${g}`),e[g]??g})(e)}static \u0275fac=function(n){return new(n||s)};static \u0275cmp=t.VBU({type:s,selectors:[["cue-doc-list"]],inputs:{documents:[1,"documents"],availableContentCategories:[1,"availableContentCategories"],detailedView:[1,"detailedView"],simple:[1,"simple"],pageSize:[1,"pageSize"],size:[1,"size"],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","size","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&&t.nVh(0,ge,4,2,"div",3)(1,Me,10,3,"div",4),2&n&&t.vxM(i.simple()?0:1)},dependencies:[ee.FlexContainer,B,E.Button,A.ButtonLabel,se.R,ne.Card,te.T3,j.ButtonIcon,$.R,X.pL,ie.M,oe.D,K.W,Z.A,ae.d,le.Typography,D.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 s})()},4372(z,S,r){r.d(S,{M:()=>M});const M=l=>{const h=l.split("/");return h[h.length-1]}},2217(z,S,r){r.d(S,{o:()=>F});var M=r(7705),l=r(2271),h=r(2245),a=r(5547),w=r(5802);function O(t,k){if(1&t&&(w.qSk(),a.j41(0,"svg",0),a.nrm(1,"path",3)(2,"path",4),a.k0s()),2&t){const x=a.XpG();a.R7$(),a.BMQ("fill",x.colorDark()),a.R7$(),a.BMQ("fill",x.color())}}function I(t,k){if(1&t&&(w.qSk(),a.j41(0,"svg",1),a.nrm(1,"path",5)(2,"path",6)(3,"path",7),a.k0s()),2&t){const x=a.XpG();a.R7$(2),a.BMQ("fill",x.color())}}const v_blue="#175EBB",N={".dwg":v_blue,".dxf":v_blue,".doc":v_blue,".docx":v_blue,".ifc":"#9F388D",".pdf":"#E03833",".ppt":v_blue,".pptx":v_blue,".csv":"#0b7741",".xls":"#0b7741",".xlsx":"#0b7741",folder:"#9D9998"};let F=(()=>{class t{suffix=M.hFB.required();size=(0,M.hFB)("m");color=(0,l.EW)(()=>N[this.suffix()]??"#9D9998");label=(0,l.EW)(()=>this.suffix().startsWith(".")?this.suffix().toUpperCase().replace(/^\./,""):"");className=(0,l.EW)(()=>`size-${this.size()}`);colorDark=(0,l.EW)(()=>{const x=this.color(),b=parseInt(x.slice(1),16),T=b>>8&255,R=255&b;return`#${(Math.floor(.8*(b>>16&255))<<16|Math.floor(.8*T)<<8|Math.floor(.8*R)).toString(16).padStart(6,"0")}`});static \u0275fac=function(b){return new(b||t)};static \u0275cmp=a.VBU({type:t,selectors:[["cue-file-icon"]],hostVars:2,hostBindings:function(b,y){2&b&&a.HbH(y.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(b,y){1&b&&(a.nVh(0,O,3,2,":svg:svg",0)(1,I,4,1,":svg:svg",1),a.j41(2,"cue-typography",2),a.EFF(3),a.k0s()),2&b&&(a.vxM("folder"===y.suffix()?0:1),a.R7$(3),a.JRh(y.label()))},dependencies:[h.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 t})()},1493(z,S,r){function M(l,h=!1,a=1){const w=h?1e3:1024;if(Math.abs(l)<w)return l+" B";const O=h?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let I=-1;const v=10**a;do{l/=w,++I}while(Math.round(Math.abs(l)*v)/v>=w&&I<O.length-1);return l.toFixed(a)+" "+O[I]}r.d(S,{b:()=>M})}}]);
package/7284.js DELETED
@@ -1 +0,0 @@
1
- (self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[7284],{7284(ge,Ce,Ee){var ae,oe;ae=function ce(){"use strict";var w=function(){return typeof self<"u"?self:typeof window<"u"?window:typeof w<"u"?w:{}}();var $=!w.document&&!!w.postMessage,fe=w.IS_PAPA_WORKER||!1,he={},be=0,l={parse:function Se(e,t){var r=(t=t||{}).dynamicTyping||!1;if(g(r)&&(t.dynamicTypingFunction=r,r={}),t.dynamicTyping=r,t.transform=!!g(t.transform)&&t.transform,t.worker&&l.WORKERS_SUPPORTED){var s=function Oe(){if(!l.WORKERS_SUPPORTED)return!1;var e=function Re(){var e=w.URL||w.webkitURL||null,t=ce.toString();return l.BLOB_URL||(l.BLOB_URL=e.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",t,")();"],{type:"text/javascript"})))}(),t=new w.Worker(e);return t.onmessage=xe,t.id=be++,he[t.id]=t,t}();return s.userStep=t.step,s.userChunk=t.chunk,s.userComplete=t.complete,s.userError=t.error,t.step=g(t.step),t.chunk=g(t.chunk),t.complete=g(t.complete),t.error=g(t.error),delete t.worker,void s.postMessage({input:e,config:t,workerId:s.id})}var n=null;return e===l.NODE_STREAM_INPUT&&typeof PAPA_BROWSER_CONTEXT>"u"?(n=new re(t)).getStream():("string"==typeof e?(e=function p(h){return 65279===h.charCodeAt(0)?h.slice(1):h}(e),n=t.download?new G(t):new Y(t)):!0===e.readable&&g(e.read)&&g(e.on)?n=new te(t):(w.File&&e instanceof File||e instanceof Object)&&(n=new ee(t)),n.stream(e))},unparse:function we(e,t){var r=!1,s=!0,n=",",p="\r\n",h='"',i=h+h,y=!1,E=null,O=!1;!function L(){if("object"==typeof t){if("string"==typeof t.delimiter&&!l.BAD_DELIMITERS.filter(function(v){return-1!==t.delimiter.indexOf(v)}).length&&(n=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(r=t.quotes),("boolean"==typeof t.skipEmptyLines||"string"==typeof t.skipEmptyLines)&&(y=t.skipEmptyLines),"string"==typeof t.newline&&(p=t.newline),"string"==typeof t.quoteChar&&(h=t.quoteChar),"boolean"==typeof t.header&&(s=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");E=t.columns}void 0!==t.escapeChar&&(i=t.escapeChar+h),t.escapeFormulae instanceof RegExp?O=t.escapeFormulae:"boolean"==typeof t.escapeFormulae&&t.escapeFormulae&&(O=/^[=+\-@\t\r].*$/)}}();var d=new RegExp(se(h),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return o(null,e,y);if("object"==typeof e[0])return o(E||Object.keys(e[0]),e,y)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||E),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),!Array.isArray(e.data[0])&&"object"!=typeof e.data[0]&&(e.data=[e.data])),o(e.fields||[],e.data||[],y);throw new Error("Unable to serialize unrecognized input");function o(v,_,b){var S="";"string"==typeof v&&(v=JSON.parse(v)),"string"==typeof _&&(_=JSON.parse(_));var M=Array.isArray(v)&&v.length>0,A=!Array.isArray(_[0]);if(M&&s){for(var W=0;W<v.length;W++)W>0&&(S+=n),S+=c(v[W],W);_.length>0&&(S+=p)}for(var k=0;k<_.length;k++){var U=M?v.length:_[k].length,z=!1,u=M?0===Object.keys(_[k]).length:0===_[k].length;if(b&&!M&&(z="greedy"===b?""===_[k].join("").trim():1===_[k].length&&0===_[k][0].length),"greedy"===b&&M){for(var f=[],m=0;m<U;m++)f.push(_[k][A?v[m]:m]);z=""===f.join("").trim()}if(!z){for(var a=0;a<U;a++)a>0&&!u&&(S+=n),S+=c(_[k][M&&A?v[a]:a],a);k<_.length-1&&(!b||U>0&&!u)&&(S+=p)}}return S}function c(v,_){if(typeof v>"u"||null===v)return"";if(v.constructor===Date)return JSON.stringify(v).slice(1,25);var b=!1;O&&"string"==typeof v&&O.test(v)&&(v="'"+v,b=!0);var S=v.toString().replace(d,i);return(b=b||!0===r||"function"==typeof r&&r(v,_)||Array.isArray(r)&&r[_]||function Q(v,_){for(var b=0;b<_.length;b++)if(v.indexOf(_[b])>-1)return!0;return!1}(S,l.BAD_DELIMITERS)||S.indexOf(n)>-1||" "===S.charAt(0)||" "===S.charAt(S.length-1))?h+S+h:S}},RECORD_SEP:"\x1e",UNIT_SEP:"\x1f",BYTE_ORDER_MARK:"\ufeff"};if(l.BAD_DELIMITERS=["\r","\n",'"',l.BYTE_ORDER_MARK],l.WORKERS_SUPPORTED=!$&&!!w.Worker,l.NODE_STREAM_INPUT=1,l.LocalChunkSize=10485760,l.RemoteChunkSize=5242880,l.DefaultDelimiter=",",l.Parser=le,l.ParserHandle=me,l.NetworkStreamer=G,l.FileStreamer=ee,l.StringStreamer=Y,l.ReadableStreamStreamer=te,typeof PAPA_BROWSER_CONTEXT>"u"&&(l.DuplexStreamStreamer=re),w.jQuery){var V=w.jQuery;V.fn.parse=function(e){var t=e.config||{},r=[];return this.each(function(h){if("INPUT"!==V(this).prop("tagName").toUpperCase()||"file"!==V(this).attr("type").toLowerCase()||!w.FileReader||!this.files||0===this.files.length)return!0;for(var y=0;y<this.files.length;y++)r.push({file:this.files[y],inputElem:this,instanceConfig:V.extend({},t)})}),s(),this;function s(){if(0!==r.length){var h=r[0];if(g(e.before)){var i=e.before(h.file,h.inputElem);if("object"==typeof i){if("abort"===i.action)return void function n(h,i,y,E){g(e.error)&&e.error({name:h},i,y,E)}("AbortError",h.file,h.inputElem,i.reason);if("skip"===i.action)return void p();"object"==typeof i.config&&(h.instanceConfig=V.extend(h.instanceConfig,i.config))}else if("skip"===i)return void p()}var y=h.instanceConfig.complete;h.instanceConfig.complete=function(E){g(y)&&y(E,h.file,h.inputElem),p()},l.parse(h.file,h.instanceConfig)}else g(e.complete)&&e.complete()}function p(){r.splice(0,1),s()}}}function q(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function t(r){var s=ue(r);s.chunkSize=parseInt(s.chunkSize),!r.step&&!r.chunk&&(s.chunkSize=null),this._handle=new me(s),this._handle.streamer=this,this._config=s}.call(this,e),this.parseChunk=function(r,s){const n=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&n>0){let O=this._config.newline;O||(O=this._handle.guessLineEndings(r,this._config.quoteChar||'"')),r=[...r.split(O).slice(n)].join(O)}if(this.isFirstChunk&&g(this._config.beforeFirstChunk)){var p=this._config.beforeFirstChunk(r);void 0!==p&&(r=p)}this.isFirstChunk=!1,this._halted=!1;var h=this._partialLine+r;this._partialLine="";var i=this._handle.parse(h,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var y=i.meta.cursor;this._finished||(this._partialLine=h.substring(y-this._baseIndex),this._baseIndex=y),i&&i.data&&(this._rowCount+=i.data.length);var E=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(fe)w.postMessage({results:i,workerId:l.WORKER_ID,finished:E});else if(g(this._config.chunk)&&!s){if(this._config.chunk(i,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);i=void 0,this._completeResults=void 0}return!this._config.step&&!this._config.chunk&&(this._completeResults.data=this._completeResults.data.concat(i.data),this._completeResults.errors=this._completeResults.errors.concat(i.errors),this._completeResults.meta=i.meta),!this._completed&&E&&g(this._config.complete)&&(!i||!i.meta.aborted)&&(this._config.complete(this._completeResults,this._input),this._completed=!0),!E&&(!i||!i.meta.paused)&&this._nextChunk(),i}this._halted=!0},this._sendError=function(r){g(this._config.error)?this._config.error(r):fe&&this._config.error&&w.postMessage({workerId:l.WORKER_ID,error:r,finished:!1})}}function G(e){var t;(e=e||{}).chunkSize||(e.chunkSize=l.RemoteChunkSize),q.call(this,e),this._nextChunk=$?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(s){this._input=s,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),$||(t.onload=F(this._chunkLoaded,this),t.onerror=F(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!$),this._config.downloadRequestHeaders){var s=this._config.downloadRequestHeaders;for(var n in s)t.setRequestHeader(n,s[n])}this._config.chunkSize&&t.setRequestHeader("Range","bytes="+this._start+"-"+(this._start+this._config.chunkSize-1));try{t.send(this._config.downloadRequestBody)}catch(h){this._chunkError(h.message)}$&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){if(4===t.readyState){if(t.status<200||t.status>=400)return void this._chunkError();this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=function r(s){var n=s.getResponseHeader("Content-Range");return null===n?-1:parseInt(n.substring(n.lastIndexOf("/")+1))}(t),this.parseChunk(t.responseText)}},this._chunkError=function(s){this._sendError(new Error(t.statusText||s))}}function ee(e){(e=e||{}).chunkSize||(e.chunkSize=l.LocalChunkSize),q.call(this,e);var t,r,s=typeof FileReader<"u";this.stream=function(n){this._input=n,r=n.slice||n.webkitSlice||n.mozSlice,s?((t=new FileReader).onload=F(this._chunkLoaded,this),t.onerror=F(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){!this._finished&&(!this._config.preview||this._rowCount<this._config.preview)&&this._readChunk()},this._readChunk=function(){var n=this._input;if(this._config.chunkSize){var p=Math.min(this._start+this._config.chunkSize,this._input.size);n=r.call(n,this._start,p)}var h=t.readAsText(n,this._config.encoding);s||this._chunkLoaded({target:{result:h}})},this._chunkLoaded=function(n){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(n.target.result)},this._chunkError=function(){this._sendError(t.error)}}function Y(e){var t;q.call(this,e=e||{}),this.stream=function(r){return t=r,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var s,r=this._config.chunkSize;return r?(s=t.substring(0,r),t=t.substring(r)):(s=t,t=""),this._finished=!t,this.parseChunk(s)}}}function te(e){q.call(this,e=e||{});var t=[],r=!0,s=!1;this.pause=function(){q.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){q.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(n){this._input=n,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){s&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=F(function(n){try{t.push("string"==typeof n?n:n.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(p){this._streamError(p)}},this),this._streamError=F(function(n){this._streamCleanUp(),this._sendError(n)},this),this._streamEnd=F(function(){this._streamCleanUp(),s=!0,this._streamData("")},this),this._streamCleanUp=F(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function re(e){var t=Ee(6266).Duplex,r=ue(e),s=!0,n=!1,p=[],h=null;this._onCsvData=function(i){!h.push(i.data)&&!this._handle.paused()&&this._handle.pause()},this._onCsvComplete=function(){h.push(null)},r.step=F(this._onCsvData,this),r.complete=F(this._onCsvComplete,this),q.call(this,r),this._nextChunk=function(){n&&1===p.length&&(this._finished=!0),p.length?p.shift()():s=!0},this._addToParseQueue=function(i,y){p.push(F(function(){if(this.parseChunk("string"==typeof i?i:i.toString(r.encoding)),g(y))return y()},this)),s&&(s=!1,this._nextChunk())},this._onRead=function(){this._handle.paused()&&this._handle.resume()},this._onWrite=function(i,y,E){this._addToParseQueue(i,E)},this._onWriteComplete=function(){n=!0,this._addToParseQueue("")},this.getStream=function(){return h},(h=new t({readableObjectMode:!0,decodeStrings:!1,read:F(this._onRead,this),write:F(this._onWrite,this)})).once("finish",F(this._onWriteComplete,this))}function me(e){var y,E,L,t=Math.pow(2,53),r=-t,s=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,n=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,p=this,h=0,i=0,O=!1,d=!1,o=[],c={data:[],errors:[],meta:{}};if(g(e.step)){var Q=e.step;e.step=function(u){if(c=u,S())b();else{if(b(),0===c.data.length)return;h+=u.data.length,e.preview&&h>e.preview?E.abort():(c.data=c.data[0],Q(c,p))}}}function v(u){return"greedy"===e.skipEmptyLines?""===u.join("").trim():1===u.length&&0===u[0].length}function b(){return c&&L&&(z("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+l.DefaultDelimiter+"'"),L=!1),e.skipEmptyLines&&(c.data=c.data.filter(function(u){return!v(u)})),S()&&function M(){if(c)if(Array.isArray(c.data[0])){for(var f=0;S()&&f<c.data.length;f++)c.data[f].forEach(u);c.data.splice(0,1)}else c.data.forEach(u);function u(m,R){g(e.transformHeader)&&(m=e.transformHeader(m,R)),o.push(m)}}(),function k(){if(!c||!e.header&&!e.dynamicTyping&&!e.transform)return c;function u(m,R){var C,a=e.header?{}:[];for(C=0;C<m.length;C++){var T=C,x=m[C];e.header&&(T=C>=o.length?"__parsed_extra":o[C]),e.transform&&(x=e.transform(x,T)),x=W(T,x),"__parsed_extra"===T?(a[T]=a[T]||[],a[T].push(x)):a[T]=x}return e.header&&(C>o.length?z("FieldMismatch","TooManyFields","Too many fields: expected "+o.length+" fields but parsed "+C,i+R):C<o.length&&z("FieldMismatch","TooFewFields","Too few fields: expected "+o.length+" fields but parsed "+C,i+R)),a}var f=1;return!c.data.length||Array.isArray(c.data[0])?(c.data=c.data.map(u),f=c.data.length):c.data=u(c.data,0),e.header&&c.meta&&(c.meta.fields=o),i+=f,c}()}function S(){return e.header&&0===o.length}function W(u,f){return function A(u){return e.dynamicTypingFunction&&void 0===e.dynamicTyping[u]&&(e.dynamicTyping[u]=e.dynamicTypingFunction(u)),!0===(e.dynamicTyping[u]||e.dynamicTyping)}(u)?"true"===f||"TRUE"===f||"false"!==f&&"FALSE"!==f&&(function _(u){if(s.test(u)){var f=parseFloat(u);if(f>r&&f<t)return!0}return!1}(f)?parseFloat(f):n.test(f)?new Date(f):""===f?null:f):f}function z(u,f,m,R){var a={type:u,code:f,message:m};void 0!==R&&(a.row=R),c.errors.push(a)}this.parse=function(u,f,m){if(e.newline||(e.newline=this.guessLineEndings(u,e.quoteChar||'"')),L=!1,e.delimiter)g(e.delimiter)&&(e.delimiter=e.delimiter(u),c.meta.delimiter=e.delimiter);else{var a=function U(u,f,m,R,a){var C,T,x,J;a=a||[",","\t","|",";",l.RECORD_SEP,l.UNIT_SEP];for(var j=0;j<a.length;j++){var ie=a[j],X=0,K=0,I=0;x=void 0;for(var H=new le({comments:R,delimiter:ie,newline:f,preview:10}).parse(u),D=0;D<H.data.length;D++)if(m&&v(H.data[D]))I++;else{var P=H.data[D].length;K+=P,typeof x>"u"?x=P:P>0&&(X+=Math.abs(P-x),x=P)}H.data.length>0&&(K/=H.data.length-I),(typeof T>"u"||X<=T)&&(typeof J>"u"||K>J)&&K>1.99&&(T=X,C=ie,J=K)}return e.delimiter=C,{successful:!!C,bestDelimiter:C}}(u,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess);a.successful?e.delimiter=a.bestDelimiter:(L=!0,e.delimiter=l.DefaultDelimiter),c.meta.delimiter=e.delimiter}var C=ue(e);return e.preview&&e.header&&C.preview++,y=u,E=new le(C),c=E.parse(y,f,m),b(),O?{meta:{paused:!0}}:c||{meta:{paused:!1}}},this.paused=function(){return O},this.pause=function(){O=!0,E.abort(),y=g(e.chunk)?"":y.substring(E.getCharIndex())},this.resume=function(){p.streamer._halted?(O=!1,p.streamer.parseChunk(y,!0)):setTimeout(p.resume,3)},this.aborted=function(){return d},this.abort=function(){d=!0,E.abort(),c.meta.aborted=!0,g(e.complete)&&e.complete(c),y=""},this.guessLineEndings=function(u,f){u=u.substring(0,1048576);var m=new RegExp(se(f)+"([^]*?)"+se(f),"gm"),R=(u=u.replace(m,"")).split("\r"),a=u.split("\n");if(1===R.length||a.length>1&&a[0].length<R[0].length)return"\n";for(var T=0,x=0;x<R.length;x++)"\n"===R[x][0]&&T++;return T>=R.length/2?"\r\n":"\r"}}function se(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function le(e){var i,t=(e=e||{}).delimiter,r=e.newline,s=e.comments,n=e.step,p=e.preview,h=e.fastMode,y=null,E=!1,O=i=null==e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(O=e.escapeChar),("string"!=typeof t||l.BAD_DELIMITERS.indexOf(t)>-1)&&(t=","),s===t)throw new Error("Comment character same as delimiter");!0===s?s="#":("string"!=typeof s||l.BAD_DELIMITERS.indexOf(s)>-1)&&(s=!1),"\n"!==r&&"\r"!==r&&"\r\n"!==r&&(r="\n");var d=0,L=!1;this.parse=function(o,c,Q){if("string"!=typeof o)throw new Error("Input must be a string");var v=o.length,_=t.length,b=r.length,S=s.length,M=g(n);d=0;var A=[],W=[],k=[],U=0;if(!o)return I();if(h||!1!==h&&-1===o.indexOf(i)){for(var z=o.split(r),u=0;u<z.length;u++){if(d+=(k=z[u]).length,u!==z.length-1)d+=r.length;else if(Q)return I();if(!s||k.substring(0,S)!==s){if(M){if(A=[],j(k.split(t)),H(),L)return I()}else j(k.split(t));if(p&&u>=p)return A=A.slice(0,p),I(!0)}}return I()}for(var f=o.indexOf(t,d),m=o.indexOf(r,d),R=new RegExp(se(O)+se(i),"g"),a=o.indexOf(i,d);;)if(o[d]!==i)if(s&&0===k.length&&o.substring(d,d+S)===s){if(-1===m)return I();m=o.indexOf(r,d=m+b),f=o.indexOf(t,d)}else if(-1!==f&&(f<m||-1===m))k.push(o.substring(d,f)),f=o.indexOf(t,d=f+_);else{if(-1===m)break;if(k.push(o.substring(d,m)),K(m+b),M&&(H(),L))return I();if(p&&A.length>=p)return I(!0)}else for(a=d,d++;;){if(-1===(a=o.indexOf(i,a+1)))return Q||W.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:A.length,index:d}),X();if(a===v-1)return X(o.substring(d,a).replace(R,i));if(i!==O||o[a+1]!==O){if(i===O||0===a||o[a-1]!==O){-1!==f&&f<a+1&&(f=o.indexOf(t,a+1)),-1!==m&&m<a+1&&(m=o.indexOf(r,a+1));var x=ie(-1===m?f:Math.min(f,m));if(o.substr(a+1+x,_)===t){k.push(o.substring(d,a).replace(R,i)),d=a+1+x+_,o[a+1+x+_]!==i&&(a=o.indexOf(i,d)),f=o.indexOf(t,d),m=o.indexOf(r,d);break}var J=ie(m);if(o.substring(a+1+J,a+1+J+b)===r){if(k.push(o.substring(d,a).replace(R,i)),K(a+1+J+b),f=o.indexOf(t,d),a=o.indexOf(i,d),M&&(H(),L))return I();if(p&&A.length>=p)return I(!0);break}W.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:A.length,index:d}),a++}}else a++}return X();function j(D){A.push(D),U=d}function ie(D){var P=0;if(-1!==D){var B=o.substring(a+1,D);B&&""===B.trim()&&(P=B.length)}return P}function X(D){return Q||(typeof D>"u"&&(D=o.substring(d)),k.push(D),d=v,j(k),M&&H()),I()}function K(D){d=D,j(k),k=[],m=o.indexOf(r,d)}function I(D){if(e.header&&!c&&A.length&&!E){const P=A[0],B=Object.create(null),de=new Set(P);let _e=!1;for(let Z=0;Z<P.length;Z++){let N=P[Z];if(g(e.transformHeader)&&(N=e.transformHeader(N,Z)),B[N]){let ne,ke=B[N];do{ne=`${N}_${ke}`,ke++}while(de.has(ne));de.add(ne),P[Z]=ne,B[N]++,_e=!0,null===y&&(y={}),y[ne]=N}else B[N]=1,P[Z]=N;de.add(N)}_e&&console.warn("Duplicate headers found and renamed."),E=!0}return{data:A,errors:W,meta:{delimiter:t,linebreak:r,aborted:L,truncated:!!D,cursor:U+(c||0),renamedHeaders:y}}}function H(){n(I()),A=[],W=[]}},this.abort=function(){L=!0},this.getCharIndex=function(){return d}}function xe(e){var t=e.data,r=he[t.workerId],s=!1;if(t.error)r.userError(t.error,t.file);else if(t.results&&t.results.data){var p={abort:function(){s=!0,ye(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:ve,resume:ve};if(g(r.userStep)){for(var h=0;h<t.results.data.length&&(r.userStep({data:t.results.data[h],errors:t.results.errors,meta:t.results.meta},p),!s);h++);delete t.results}else g(r.userChunk)&&(r.userChunk(t.results,p,t.file),delete t.results)}t.finished&&!s&&ye(t.workerId,t.results)}function ye(e,t){var r=he[e];g(r.userComplete)&&r.userComplete(t),r.terminate(),delete he[e]}function ve(){throw new Error("Not implemented.")}function ue(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var r in e)t[r]=ue(e[r]);return t}function F(e,t){return function(){e.apply(t,arguments)}}function g(e){return"function"==typeof e}return fe&&(w.onmessage=function Ae(e){var t=e.data;if(typeof l.WORKER_ID>"u"&&t&&(l.WORKER_ID=t.workerId),"string"==typeof t.input)w.postMessage({workerId:l.WORKER_ID,results:l.parse(t.input,t.config),finished:!0});else if(w.File&&t.input instanceof File||t.input instanceof Object){var r=l.parse(t.input,t.config);r&&w.postMessage({workerId:l.WORKER_ID,results:r,finished:!0})}}),(G.prototype=Object.create(q.prototype)).constructor=G,(ee.prototype=Object.create(q.prototype)).constructor=ee,(Y.prototype=Object.create(Y.prototype)).constructor=Y,(te.prototype=Object.create(q.prototype)).constructor=te,typeof PAPA_BROWSER_CONTEXT>"u"&&((re.prototype=Object.create(q.prototype)).constructor=re),l},void 0!==(oe=ae.apply(Ce,[]))&&(ge.exports=oe)},6266(){}}]);
package/7313.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[3319,5971,7313],{3319(D,C,i){i.d(C,{ButtonIcon:()=>m});var o=i(7705),a=i(29),d=i(5547);let m=(()=>{class h{icon=(0,o.hFB)(void 0);slot=(0,o.hFB)("before");static \u0275fac=function(f){return new(f||h)};static \u0275cmp=d.VBU({type:h,selectors:[["cue-button-icon"]],inputs:{icon:[1,"icon"],slot:[1,"slot"]},decls:1,vars:2,consts:[[3,"slot","name"]],template:function(f,u){1&f&&d.nrm(0,"cue-svg-icon",0),2&f&&d.Y8G("slot",u.slot())("name",u.icon())},dependencies:[a.A],encapsulation:2})}return h})()},5971(D,C,i){i.d(C,{Button:()=>u});var o=i(9769),a=i(7705),d=i(2271),m=i(7089),h=i(2403),r=i(5547);const v=["buttonElement"],f=["*"];let u=(()=>{class e{variant=(0,a.hFB)("primary");size=(0,a.hFB)("m");tooltip=(0,a.hFB)("");disabled=(0,a.hFB)(!1);selected=(0,a.geq)(!1);toggleButton=(0,a.hFB)(!1);loading=(0,a.hFB)(!1);fitParentWidth=(0,a.hFB)(!1);noWrap=(0,a.hFB)(!0);buttonElement=a.ebz.required("buttonElement");getStyles=(0,d.EW)(()=>[`\n padding: 0 var(--cue-button-${this.size()}-padding-x);\n\n --focus-color: var(--cue-button-${this.variant()}-focus-color);\n --cue-button-border-color: var(--cue-button-${this.variant()}-border-color);\n color: var(--cue-button-${this.variant()}-foreground);\n --background-color: var(--cue-button-${this.variant()}-background);\n\n --cue-icon-width: var(--cue-button-${this.size()}-icon-width);\n --button-height: var(--cue-button-${this.size()}-height);\n --cue-button-border-radius: var(--cue-button-border-radius, 9999px);\n --button-label-padding-x: var(--cue-button-${this.size()}-label-padding-x);\n `,this.disabled()?`\n color: var(--cue-button-${this.variant()}-disabled-foreground);\n --cue-button-border-color: var(--cue-button-${this.variant()}-disabled-border-color);\n --background-color: var(--cue-button-${this.variant()}-disabled-background);\n `:""].join(""));handleClick(_){_.detail>0&&this.buttonElement().nativeElement.blur(),this.toggleButton()&&(_.stopPropagation(),this.selected.set(!this.selected()))}static \u0275fac=function(g){return new(g||e)};static \u0275cmp=r.VBU({type:e,selectors:[["cue-button"]],viewQuery:function(g,R){1&g&&r.wEZ(R.buttonElement,v,5),2&g&&r.NyB()},inputs:{variant:[1,"variant"],size:[1,"size"],tooltip:[1,"tooltip"],disabled:[1,"disabled"],selected:[1,"selected"],toggleButton:[1,"toggleButton"],loading:[1,"loading"],fitParentWidth:[1,"fitParentWidth"],noWrap:[1,"noWrap"]},outputs:{selected:"selectedChange"},ngContentSelectors:f,decls:3,vars:18,consts:[["buttonElement",""],["tooltipSize","small",3,"click","disabled","cueTooltip","tooltipPlacement","cuePulse"]],template:function(g,R){1&g&&(r.NAR(),r.j41(0,"button",1,0),r.bIt("click",function(P){return R.handleClick(P)}),r.SdG(2),r.k0s()),2&g&&(r.Aen(R.getStyles()),r.xc7("white-space",R.noWrap()?"nowrap":"normal")("flex-basis",R.noWrap()?null:"auto")("min-width",R.noWrap()?null:"fit-content"),r.AVh("selected",R.selected())("ghost","ghost"===R.variant())("fit-parent-width",R.fitParentWidth()),r.Y8G("disabled",R.disabled())("cueTooltip",R.tooltip())("tooltipPlacement","top")("cuePulse",R.loading()))},dependencies:[o.MD,m.d,h.V],styles:['[_nghost-%COMP%]:has(.fit-parent-width){display:contents}@keyframes _ngcontent-%COMP%_pulse-border{0%{box-shadow:0 0 0 0 var(--focus-color)}50%{box-shadow:0 0 0 8px transparent}to{box-shadow:0 0 0 0 transparent}}button[_ngcontent-%COMP%]{min-width:0;pulse-border-radius:var(--cue-button-border-radius);appearance:none;padding:0;font:inherit;border:var(--cue-button-border-width) var(--cue-button-border-style) var(--cue-button-border-color);display:flex;justify-content:space-between;align-items:center;gap:var(--cue-button-gap);min-height:var(--button-height);height:auto;background-color:var(--background-color);border-radius:var(--cue-button-border-radius, 9999px);margin:3px;position:relative}button[style*="white-space: normal"][_ngcontent-%COMP%]{border-radius:30px!important;padding:10px!important}button.fit-parent-width[_ngcontent-%COMP%]{width:100%;min-width:0;margin-inline:0}button[_ngcontent-%COMP%]:not(.fit-parent-width){min-width:fit-content;width:auto}button[_ngcontent-%COMP%]:focus{outline:none}button[_ngcontent-%COMP%]:hover:not(:disabled), button[_ngcontent-%COMP%]:focus-within:not(:disabled){outline:1px solid var(--focus-color);outline-offset:2px;cursor:pointer}button.selected[_ngcontent-%COMP%]{outline:1px solid currentColor!important;outline-offset:2px;margin:3px}button.ghost[_ngcontent-%COMP%]:not(.selected){border:none}']})}return e})()},5821(D,C,i){i.d(C,{m:()=>P});var o=i(7705),a=i(5802),d=i(2271),m=i(9352),h=i(5381),r=i(2245),v=i(5971),f=i(3319),u=i(63),e=i(5547);const S=(y,T,p)=>({startIndex:y,endIndex:T,totalItems:p});function _(y,T){if(1&y){const p=e.RV6();e.j41(0,"cue-flexcontainer",3)(1,"cue-typography",4),e.EFF(2),e.nI1(3,"transloco"),e.k0s(),e.j41(4,"cue-select",5),e.mxI("valueChange",function(w){a.eBV(p);const k=e.XpG(2);return e.DH7(k.pageSize,w)||(k.pageSize=w),a.Njj(w)}),e.k0s()(),e.nrm(5,"span",6)}if(2&y){const p=e.XpG(2);e.R7$(),e.Y8G("noWrap",!0),e.R7$(),e.JRh(e.bMT(3,5,"components.paginator.itemsPerPage")),e.R7$(2),e.R50("value",p.pageSize),e.Y8G("options",p.pageSizeOptions())("underline",!1)}}function g(y,T){if(1&y&&e.nVh(0,_,6,7),2&y){const p=e.XpG();e.vxM(p.pageSizeOptions().length>1?0:-1)}}function R(y,T){if(1&y){const p=e.RV6();e.j41(0,"cue-button",7),e.bIt("click",function(){a.eBV(p);const w=e.XpG();return a.Njj(w.first())}),e.nrm(1,"cue-button-icon",8),e.k0s(),e.j41(2,"cue-button",7),e.bIt("click",function(){a.eBV(p);const w=e.XpG();return a.Njj(w.back())}),e.nrm(3,"cue-button-icon",9),e.k0s()}}function z(y,T){if(1&y){const p=e.RV6();e.j41(0,"cue-button",7),e.bIt("click",function(){a.eBV(p);const w=e.XpG();return a.Njj(w.next())}),e.nrm(1,"cue-button-icon",10),e.k0s(),e.j41(2,"cue-button",7),e.bIt("click",function(){a.eBV(p);const w=e.XpG();return a.Njj(w.last())}),e.nrm(3,"cue-button-icon",11),e.k0s()}}let P=(()=>{class y{pageSizeOptions=(0,o.hFB)([5,10,25,100]);size=(0,o.hFB)(111);pageSize=(0,o.geq)(10);menuPosition=(0,o.hFB)("topright");autoAdjust=(0,o.hFB)(!0);currentPage=(0,o.CGW)();_startIndex=(0,a.vPA)(0);_endIndex=(0,a.vPA)(0);anythingToPaginate=(0,d.EW)(()=>{const p=this.adjustedPageSizeOptions()[this.adjustedPageSizeOptions().length-1];return this.size()>p});startIndex=(0,d.EW)(()=>this._startIndex()+1);endIndex=(0,d.EW)(()=>Math.min(this._endIndex(),this.size()));isFirstPage=(0,d.EW)(()=>0===this._startIndex());isLastPage=(0,d.EW)(()=>this._endIndex()>=this.size());adjustedPageSizeOptions=(0,d.EW)(()=>{let p=this.pageSizeOptions();if(!this.autoAdjust())return p;const x=p[p.length-1],w=this.size();return w<x&&(p=p.filter(k=>k<=w),p.length||(p=[w])),p});constructor(){(0,a.QZP)(()=>{this._resetPagination()}),(0,a.QZP)(()=>{this.currentPage.emit({startIndex:this._startIndex(),endIndex:this._endIndex(),pageSize:this.pageSize()})})}setSize(p){this.pageSize.set(p),this._resetPagination()}next(){const p=this._endIndex();this._startIndex.set(p),this._endIndex.set(p+this.pageSize())}back(){const p=Math.max(0,this._startIndex()-this.pageSize());this._startIndex.set(p),this._endIndex.set(p+this.pageSize())}first(){this._startIndex.set(0),this._endIndex.set(this.pageSize())}last(){const p=Math.max(0,this.size()-(this.size()%this.pageSize()||this.pageSize()));this._startIndex.set(p),this._endIndex.set(this.size())}_resetPagination(){this._startIndex.set(0),this._endIndex.set(Math.min(this.pageSize(),this.size()))}static \u0275fac=function(x){return new(x||y)};static \u0275cmp=e.VBU({type:y,selectors:[["cue-paginator"]],inputs:{pageSizeOptions:[1,"pageSizeOptions"],size:[1,"size"],pageSize:[1,"pageSize"],menuPosition:[1,"menuPosition"],autoAdjust:[1,"autoAdjust"]},outputs:{pageSize:"pageSizeChange",currentPage:"currentPage"},decls:8,vars:11,consts:[["direction","row","justify","end","align","center",1,"paginator",2,"width","calc(100% - 4px)","padding","0 2px"],["size","s"],["direction","row","gap","s"],["direction","row","gap","s","align","center"],["size","s",3,"noWrap"],["size","xs","menuPosition","topright",3,"valueChange","value","options","underline"],[2,"flex","1"],["size","xs","variant","tertiary",3,"click"],["icon","paginator-first"],["icon","paginator-back"],["icon","paginator-next"],["icon","paginator-last"]],template:function(x,w){1&x&&(e.j41(0,"cue-flexcontainer",0),e.nVh(1,g,1,1),e.j41(2,"cue-typography",1),e.EFF(3),e.nI1(4,"transloco"),e.k0s(),e.j41(5,"cue-flexcontainer",2),e.nVh(6,R,4,0),e.nVh(7,z,4,0),e.k0s()()),2&x&&(e.R7$(),e.vxM(!w.autoAdjust()||w.anythingToPaginate()?1:-1),e.R7$(2),e.JRh(e.i5U(4,4,"components.paginator.currentDisplay",e.sMw(7,S,w.startIndex(),w.endIndex(),w.size()))),e.R7$(3),e.vxM(w.isFirstPage()?-1:6),e.R7$(),e.vxM(w.isLastPage()?-1:7))},dependencies:[h.FlexContainer,r.Typography,v.Button,f.ButtonIcon,u.Select,m.Kj],styles:[".paginator[_ngcontent-%COMP%]{color:var(--cue-paginator-text-color);padding-top:3px;padding-bottom:3px}"],changeDetection:0})}return y})()},2403(D,C,i){i.d(C,{V:()=>m});var o=i(7705),a=i(5547),d=i(5802);let m=(()=>{class h{el=(0,d.WQX)(a.aKT);renderer=(0,d.WQX)(a.sFG);cuePulse=(0,o.hFB)(!1);cuePulseColor=(0,o.hFB)("");cuePulseMode=(0,o.hFB)("border");activeClass="";constructor(){this.ensureGlobalStyles()}onPulseChanged=(0,d.QZP)(()=>{const v=this.cuePulse(),f=this.cuePulseColor(),u=this.cuePulseMode(),e=this.el.nativeElement;if(this.activeClass&&(this.renderer.removeClass(e,this.activeClass),this.activeClass=""),this.renderer.removeStyle(e,"--cue-pulse-color"),this.renderer.removeStyle(e,"border-radius"),v){const S="text"===u?"cue-pulse-text":"cue-pulse-border";this.renderer.addClass(e,S),this.activeClass=S,f&&this.renderer.setStyle(e,"--cue-pulse-color",f),"border"===u&&setTimeout(()=>{const _=e.firstElementChild;if(_){const g=getComputedStyle(_).borderRadius;g&&"0px"!==g&&this.renderer.setStyle(e,"border-radius",g)}})}});ngOnDestroy(){const v=this.el.nativeElement;this.activeClass&&this.renderer.removeClass(v,this.activeClass),this.renderer.removeStyle(v,"border-radius")}ensureGlobalStyles(){const v="cue-pulse-global-styles";if(document.getElementById(v))return;const f=document.createElement("style");f.id=v,f.textContent="\n @keyframes cue-pulse-border-anim {\n 0% {\n box-shadow: 0 0 0 0 var(--cue-pulse-color, currentColor);\n }\n 70% {\n box-shadow: 0 0 0 8px transparent;\n }\n 100% {\n box-shadow: 0 0 0 0 transparent;\n }\n }\n\n @keyframes cue-pulse-text-anim {\n 0%, 100% {\n opacity: 1;\n }\n 50% {\n opacity: 0.4;\n }\n }\n\n .cue-pulse-border {\n animation: cue-pulse-border-anim 1.5s infinite ease-in-out;\n }\n\n .cue-pulse-text {\n animation: cue-pulse-text-anim 1.5s infinite ease-in-out;\n }\n ",document.head.appendChild(f)}static \u0275fac=function(f){return new(f||h)};static \u0275dir=a.FsC({type:h,selectors:[["","cuePulse",""]],inputs:{cuePulse:[1,"cuePulse"],cuePulseColor:[1,"cuePulseColor"],cuePulseMode:[1,"cuePulseMode"]}})}return h})()},3798(D,C,i){i.d(C,{Z:()=>v});var o=i(3236),a=i(9974),d=i(8750),m=i(4360),r=i(1584);function v(f,u=o.E){return function h(f){return(0,a.N)((u,e)=>{let S=!1,_=null,g=null,R=!1;const z=()=>{if(g?.unsubscribe(),g=null,S){S=!1;const y=_;_=null,e.next(y)}R&&e.complete()},P=()=>{g=null,R&&e.complete()};u.subscribe((0,m._)(e,y=>{S=!0,_=y,g||(0,d.Tg)(f(y)).subscribe(g=(0,m._)(e,z,P))},()=>{R=!0,(!S||!g||g.closed)&&e.complete()}))})}(()=>(0,r.O)(f,u))}},5964(D,C,i){i.d(C,{p:()=>d});var o=i(9974),a=i(4360);function d(m,h){return(0,o.N)((r,v)=>{let f=0;r.subscribe((0,a._)(v,u=>m.call(h,u,f++)&&v.next(u)))})}},536(D,C,i){i.d(C,{X:()=>v});var o=i(6780),a=i(8359);const d={schedule(u){let e=requestAnimationFrame,S=cancelAnimationFrame;const{delegate:_}=d;_&&(e=_.requestAnimationFrame,S=_.cancelAnimationFrame);const g=e(R=>{S=void 0,u(R)});return new a.yU(()=>S?.(g))},requestAnimationFrame(...u){const{delegate:e}=d;return(e?.requestAnimationFrame||requestAnimationFrame)(...u)},cancelAnimationFrame(...u){const{delegate:e}=d;return(e?.cancelAnimationFrame||cancelAnimationFrame)(...u)},delegate:void 0};var h=i(9687);const v=new class r extends h.q{flush(e){let S;this._active=!0,e?S=e.id:(S=this._scheduled,this._scheduled=void 0);const{actions:_}=this;let g;e=e||_.shift();do{if(g=e.execute(e.state,e.delay))break}while((e=_[0])&&e.id===S&&_.shift());if(this._active=!1,g){for(;(e=_[0])&&e.id===S&&_.shift();)e.unsubscribe();throw g}}}(class m extends o.R{constructor(e,S){super(e,S),this.scheduler=e,this.work=S}requestAsyncId(e,S,_=0){return null!==_&&_>0?super.requestAsyncId(e,S,_):(e.actions.push(this),e._scheduled||(e._scheduled=d.requestAnimationFrame(()=>e.flush(void 0))))}recycleAsyncId(e,S,_=0){var g;if(null!=_?_>0:this.delay>0)return super.recycleAsyncId(e,S,_);const{actions:R}=e;null!=S&&S===e._scheduled&&(null===(g=R[R.length-1])||void 0===g?void 0:g.id)!==S&&(d.cancelAnimationFrame(S),e._scheduled=void 0)}})},7523(D,C,i){function o(a){return Array.isArray(a)?a:[a]}i.d(C,{F:()=>o})},9752(D,C,i){i.d(C,{dS:()=>h});var o=i(5802);const a=new o.nKC("cdk-dir-doc",{providedIn:"root",factory:()=>(0,o.WQX)(o.qQL)}),d=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let h=(()=>{class r{get value(){return this.valueSignal()}valueSignal=(0,o.vPA)("ltr");change=new o.bkB;constructor(){const f=(0,o.WQX)(a,{optional:!0});f&&this.valueSignal.set(function m(r){const v=r?.toLowerCase()||"";return"auto"===v&&typeof navigator<"u"&&navigator?.language?d.test(navigator.language)?"rtl":"ltr":"rtl"===v?"rtl":"ltr"}((f.body?f.body.dir:null)||(f.documentElement?f.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static \u0275fac=function(u){return new(u||r)};static \u0275prov=o.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})()},7384(D,C,i){i.d(C,{OE:()=>a,i8:()=>m});var o=i(5547);function a(h,r=0){return function d(h){return!isNaN(parseFloat(h))&&!isNaN(Number(h))}(h)?Number(h):2===arguments.length?r:0}function m(h){return h instanceof o.aKT?h.nativeElement:h}},3531(D,C,i){i.d(C,{g:()=>m});var o=i(5802),a=i(5547);const d={};class m{_appId=(0,o.WQX)(a.sZ2);static _infix=`a${Math.floor(1e5*Math.random()).toString()}`;getId(r,v=!1){return"ng"!==this._appId&&(r+=this._appId),d.hasOwnProperty(r)||(d[r]=0),`${r}${v?m._infix+"-":""}${d[r]++}`}static \u0275fac=function(v){return new(v||m)};static \u0275prov=o.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}},7421(D,C,i){i.d(C,{O:()=>h});var o=i(5802),a=i(5547),d=i(177);let m;try{m=typeof Intl<"u"&&Intl.v8BreakIterator}catch{m=!1}let h=(()=>{class r{_platformId=(0,o.WQX)(a.Agw);isBrowser=this._platformId?(0,d.UE)(this._platformId):"object"==typeof document&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!(!window.chrome&&!m)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(u){return new(u||r)};static \u0275prov=o.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})()},9867(D,C,i){let o;function d(r){if(function a(){if(null==o){const r=typeof document<"u"?document.head:null;o=!(!r||!r.createShadowRoot&&!r.attachShadow)}return o}()){const v=r.getRootNode?r.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&v instanceof ShadowRoot)return v}return null}function h(r){return r.composedPath?r.composedPath()[0]:r.target}i.d(C,{Fb:()=>h,KT:()=>d})},3293(D,C,i){i.d(C,{l:()=>h});var o=i(5802),a=i(7705),d=i(5547);const m=new WeakMap;let h=(()=>{class r{_appRef;_injector=(0,o.WQX)(o.zZn);_environmentInjector=(0,o.WQX)(o.uvJ);load(f){const u=this._appRef=this._appRef||this._injector.get(d.o8S);let e=m.get(u);e||(e={loaders:new Set,refs:[]},m.set(u,e),u.onDestroy(()=>{m.get(u)?.refs.forEach(S=>S.destroy()),m.delete(u)})),e.loaders.has(f)||(e.loaders.add(f),e.refs.push((0,a.a0P)(f,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(u){return new(u||r)};static \u0275prov=o.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})()},8203(D,C,i){i.d(C,{jI:()=>u});var r=i(5547),v=i(5802);let u=(()=>{class e{static \u0275fac=function(g){return new(g||e)};static \u0275mod=r.$C({type:e});static \u0275inj=v.G2t({})}return e})()},5272(D,C,i){i.d(C,{R:()=>U,E9:()=>H,Xj:()=>G});var o=i(5802),a=i(5547),d=i(1413),m=i(7673),h=i(4226),v=(i(536),i(6780));let u,f=1;const e={};function S(c){return c in e&&(delete e[c],!0)}const _={setImmediate(c){const s=f++;return e[s]=!0,u||(u=Promise.resolve()),u.then(()=>S(s)&&c()),s},clearImmediate(c){S(c)}},{setImmediate:R,clearImmediate:z}=_,P={setImmediate(...c){const{delegate:s}=P;return(s?.setImmediate||R)(...c)},clearImmediate(c){const{delegate:s}=P;return(s?.clearImmediate||z)(c)},delegate:void 0};var T=i(9687);new class p extends T.q{flush(s){this._active=!0;const t=this._scheduled;this._scheduled=void 0;const{actions:n}=this;let l;s=s||n.shift();do{if(l=s.execute(s.state,s.delay))break}while((s=n[0])&&s.id===t&&n.shift());if(this._active=!1,l){for(;(s=n[0])&&s.id===t&&n.shift();)s.unsubscribe();throw l}}}(class y extends v.R{constructor(s,t){super(s,t),this.scheduler=s,this.work=t}requestAsyncId(s,t,n=0){return null!==n&&n>0?super.requestAsyncId(s,t,n):(s.actions.push(this),s._scheduled||(s._scheduled=P.setImmediate(s.flush.bind(s,void 0))))}recycleAsyncId(s,t,n=0){var l;if(null!=n?n>0:this.delay>0)return super.recycleAsyncId(s,t,n);const{actions:b}=s;null!=t&&(null===(l=b[b.length-1])||void 0===l?void 0:l.id)!==t&&(P.clearImmediate(t),s._scheduled===t&&(s._scheduled=void 0))}});var k=i(3798),F=i(5964),A=i(7421),L=i(7384),V=i(8203);let U=(()=>{class c{_ngZone=(0,o.WQX)(o.SKi);_platform=(0,o.WQX)(A.O);_renderer=(0,o.WQX)(a._9s).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new d.B;_scrolledCount=0;scrollContainers=new Map;register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const n=this.scrollContainers.get(t);n&&(n.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new h.c(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));const l=t>0?this._scrolled.pipe((0,k.Z)(t)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{l.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):(0,m.of)()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((t,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(t,n){const l=this.getAncestorScrollContainers(t);return this.scrolled(n).pipe((0,F.p)(b=>!b||l.indexOf(b)>-1))}getAncestorScrollContainers(t){const n=[];return this.scrollContainers.forEach((l,b)=>{this._scrollableContainsElement(b,t)&&n.push(b)}),n}_scrollableContainsElement(t,n){let l=(0,L.i8)(n),b=t.getElementRef().nativeElement;do{if(l==b)return!0}while(l=l.parentElement);return!1}static \u0275fac=function(n){return new(n||c)};static \u0275prov=o.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})(),G=(()=>{class c{_platform=(0,o.WQX)(A.O);_listeners;_viewportSize=null;_change=new d.B;_document=(0,o.WQX)(o.qQL);constructor(){const t=(0,o.WQX)(o.SKi),n=(0,o.WQX)(a._9s).createRenderer(null,null);t.runOutsideAngular(()=>{if(this._platform.isBrowser){const l=b=>this._change.next(b);this._listeners=[n.listen("window","resize",l),n.listen("window","orientationchange",l)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(t=>t()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:n,height:l}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+l,right:t.left+n,height:l,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,n=this._getWindow(),l=t.documentElement,b=l.getBoundingClientRect();return{top:-b.top||t.body?.scrollTop||n.scrollY||l.scrollTop||0,left:-b.left||t.body?.scrollLeft||n.scrollX||l.scrollLeft||0}}change(t=20){return t>0?this._change.pipe((0,k.Z)(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}static \u0275fac=function(n){return new(n||c)};static \u0275prov=o.jDH({token:c,factory:c.\u0275fac,providedIn:"root"})}return c})(),B=(()=>{class c{static \u0275fac=function(n){return new(n||c)};static \u0275mod=a.$C({type:c});static \u0275inj=o.G2t({})}return c})(),H=(()=>{class c{static \u0275fac=function(n){return new(n||c)};static \u0275mod=a.$C({type:c});static \u0275inj=o.G2t({imports:[V.jI,B,V.jI,B]})}return c})()}}]);