@qaecy/cue-ui 0.0.22 → 0.0.24
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/112.js +1 -0
- package/149.js +1 -0
- package/245.js +1 -1
- package/247.js +3 -0
- package/284.js +1 -1
- package/{236.js → 311.js} +1 -1
- package/334.js +1 -0
- package/336.js +1 -1
- package/376.js +1 -1
- package/382.js +1 -0
- package/393.js +1 -0
- package/418.js +1 -1
- package/419.js +1 -1
- package/523.js +1 -1
- package/540.js +1 -0
- package/544.js +1 -0
- package/560.js +1 -1
- package/571.js +1 -0
- package/60.js +1 -1
- package/722.js +1 -0
- package/740.js +1 -0
- package/741.js +1 -1
- package/903.js +1 -0
- package/911.js +1 -0
- package/960.js +1 -0
- package/995.js +1 -0
- package/README.md +127 -288
- package/common.js +1 -1
- package/index.js +1 -1
- package/main.js +1 -1
- package/package.json +1 -1
- package/runtime.js +1 -1
- package/344.js +0 -1
- package/371.js +0 -1
- package/443.js +0 -1
- package/570.js +0 -1
- package/613.js +0 -1
- package/710.js +0 -1
- package/774.js +0 -1
- package/83.js +0 -1
package/740.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[740],{5740(O,m,l){l.d(m,{EmailViewer:()=>R});var _=l(467),d=l(7705),r=l(5802),p=l(345),f=l(9769),u=l(2245),e=l(5547);const g=(t,i)=>i.name;function h(t,i){if(1&t&&(e.j41(0,"div",5)(1,"span",11),e.EFF(2,"From"),e.k0s(),e.j41(3,"cue-typography",12),e.EFF(4),e.k0s()()),2&t){const n=e.XpG(2);e.R7$(4),e.JRh(n.from())}}function x(t,i){if(1&t&&(e.j41(0,"div",5)(1,"span",11),e.EFF(2,"To"),e.k0s(),e.j41(3,"cue-typography",12),e.EFF(4),e.k0s()()),2&t){const n=e.XpG(2);e.R7$(4),e.JRh(n.to())}}function v(t,i){if(1&t&&(e.j41(0,"div",5)(1,"span",11),e.EFF(2,"Cc"),e.k0s(),e.j41(3,"cue-typography",12),e.EFF(4),e.k0s()()),2&t){const n=e.XpG(2);e.R7$(4),e.JRh(n.cc())}}function y(t,i){if(1&t&&(e.j41(0,"div",5)(1,"span",11),e.EFF(2,"Date"),e.k0s(),e.j41(3,"cue-typography",12),e.EFF(4),e.k0s()()),2&t){const n=e.XpG(2);e.R7$(4),e.JRh(n.date())}}function E(t,i){if(1&t&&(e.j41(0,"span",13),e.EFF(1),e.k0s()),2&t){const n=e.XpG().$implicit;e.R7$(),e.SpI("\u{1f4ce} ",n.filename??n.name)}}function C(t,i){1&t&&e.nVh(0,E,2,1,"span",13),2&t&&e.vxM(i.$implicit.inline?-1:0)}function M(t,i){if(1&t&&(e.j41(0,"div",6)(1,"span",11),e.EFF(2,"Attachments"),e.k0s(),e.Z7z(3,C,1,1,null,null,g),e.k0s()),2&t){const n=e.XpG();e.R7$(3),e.Dyx(n.attachments)}}function b(t,i){if(1&t&&e.nrm(0,"iframe",8),2&t){const n=e.XpG(2);e.Y8G("srcdoc",n.safeHtml(),e.npT)}}function w(t,i){if(1&t&&(e.j41(0,"pre",9),e.EFF(1),e.k0s()),2&t){const n=e.XpG();e.R7$(),e.JRh(n.text)}}function F(t,i){1&t&&(e.j41(0,"cue-typography",10),e.EFF(1,"(No body)"),e.k0s())}function P(t,i){if(1&t&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"cue-typography",3),e.EFF(4),e.k0s()(),e.j41(5,"div",4),e.nVh(6,h,5,1,"div",5),e.nVh(7,x,5,1,"div",5),e.nVh(8,v,5,1,"div",5),e.nVh(9,y,5,1,"div",5),e.k0s(),e.nVh(10,M,5,0,"div",6),e.k0s(),e.j41(11,"div",7),e.nVh(12,b,1,1,"iframe",8)(13,w,2,1,"pre",9)(14,F,2,0,"cue-typography",10),e.k0s()()),2&t){const n=i,a=e.XpG();e.R7$(4),e.JRh(n.subject??"(No subject)"),e.R7$(2),e.vxM(a.from()?6:-1),e.R7$(),e.vxM(a.to()?7:-1),e.R7$(),e.vxM(a.cc()?8:-1),e.R7$(),e.vxM(a.date()?9:-1),e.R7$(),e.vxM(null!=n.attachments&&n.attachments.length?10:-1),e.R7$(2),e.vxM(a.safeHtml()?12:n.text?13:14)}}function s(t){return t?(Array.isArray(t)?t:[t]).map(n=>n.name?`${n.name} <${n.email??""}>`:n.email??"").join(", "):""}let R=(()=>{class t{_sanitizer=(0,r.WQX)(p.up);fileURL=d.hFB.required();email=(0,r.vPA)(null);safeHtml=(0,r.vPA)(null);from=(0,r.vPA)("");to=(0,r.vPA)("");cc=(0,r.vPA)("");date=(0,r.vPA)("");onFile=(0,r.QZP)((()=>{var n=this;return(0,_.A)(function*(){const a=n.fileURL();n.email.set(null),n.safeHtml.set(null);try{const o=yield(yield fetch(a)).json();n.email.set(o),n.from.set(s(o.from)),n.to.set(s(o.to)),n.cc.set(s(o.cc)),n.date.set(function D(t){if(!t)return"";try{return new Date(t).toLocaleString()}catch{return String(t)}}(o.date)),o.html&&n.safeHtml.set(n._sanitizer.bypassSecurityTrustHtml(o.html))}catch(c){console.error("[EmailViewer] Failed to load email data:",c)}})})());static \u0275fac=function(a){return new(a||t)};static \u0275cmp=e.VBU({type:t,selectors:[["cue-email-viewer"]],inputs:{fileURL:[1,"fileURL"]},decls:1,vars:1,consts:[[1,"email-viewer"],[1,"email-header"],[1,"subject"],["size","l","weight","semibold"],[1,"meta"],[1,"meta-row"],[1,"attachments"],[1,"email-body"],["sandbox","allow-same-origin","title","Email body",1,"email-iframe",3,"srcdoc"],[1,"email-text"],[2,"opacity","0.5"],[1,"meta-label"],["size","s"],[1,"attachment-chip"]],template:function(a,c){if(1&a&&e.nVh(0,P,15,7,"div",0),2&a){let o;e.vxM((o=c.email())?0:-1,o)}},dependencies:[f.MD,u.Typography],styles:["[_nghost-%COMP%]{display:block;height:100%;overflow:hidden}.email-viewer[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;overflow:hidden}.email-header[_ngcontent-%COMP%]{flex:0 0 auto;padding:16px 20px;border-bottom:1px solid var(--cue-border-color, #e5e7eb);background:var(--cue-surface-color, transparent)}.subject[_ngcontent-%COMP%]{margin-bottom:12px}.meta[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px;margin-bottom:8px}.meta-row[_ngcontent-%COMP%]{display:flex;align-items:baseline;gap:8px}.meta-label[_ngcontent-%COMP%]{font-family:var(--cue-font-family, sans-serif);font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;opacity:.5;min-width:52px;flex:0 0 auto}.attachments[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:8px}.attachment-chip[_ngcontent-%COMP%]{font-family:var(--cue-font-family, sans-serif);font-size:12px;padding:2px 8px;border-radius:12px;background:var(--cue-border-color, #e5e7eb);color:var(--cue-main-foreground, #111)}.email-body[_ngcontent-%COMP%]{flex:1 1 auto;overflow:hidden;min-height:0}.email-iframe[_ngcontent-%COMP%]{width:100%;height:100%;border:none;display:block}.email-text[_ngcontent-%COMP%]{padding:20px;margin:0;font-family:var(--cue-font-family, sans-serif);font-size:14px;line-height:1.6;white-space:pre-wrap;word-break:break-word;height:100%;box-sizing:border-box;overflow:auto}"],changeDetection:0})}return t})()}}]);
|
package/741.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[741],{1741(
|
|
1
|
+
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[741],{1741($,p,c){c.r(p),c.d(p,{DocumentViewer:()=>E});var v=c(467),b=c(9769),r=c(5802),l=c(7705),f=c(2271),s=c(5547),m=c(3418),P=c(8807),R=c(2065);const w=["*"];let D=(()=>{class o{width=(0,l.hFB)("auto");height=(0,l.hFB)("auto");style=(0,l.hFB)("");getStyles=(0,f.EW)(()=>this.style());static \u0275fac=function(n){return new(n||o)};static \u0275cmp=s.VBU({type:o,selectors:[["cue-container"]],hostVars:6,hostBindings:function(n,i){2&n&&(s.Aen(i.getStyles()),s.xc7("max-width",i.width())("max-height",i.height()))},inputs:{width:[1,"width"],height:[1,"height"],style:[1,"style"]},ngContentSelectors:w,decls:1,vars:0,template:function(n,i){1&n&&(s.NAR(),s.SdG(0))},styles:["[_nghost-%COMP%]{display:flex;align-items:stretch;container-name:cue-container;container-type:inline-size}[_nghost-%COMP%] > *[_ngcontent-%COMP%]{flex:1;max-width:100%}"]})}return o})();var M=c(2245),T=c(5381),C=c(5971),I=c(3319),N=c(5448),B=c(2014),S=c(3191);let V=(()=>{class o{searchService=(0,r.WQX)(S.g);entityBeingPlaced=(0,r.vPA)(void 0);confirmedPlacement=(0,r.vPA)(void 0);rdfBaseURL=(0,r.vPA)("");contentUUID=(0,r.vPA)("");activePdfDoc=(0,r.vPA)(null);currentPage=(0,r.vPA)(1);requestedPage=(0,r.vPA)(null);navigateToPage(e){this.currentPage.set(e),this.requestedPage.set(e)}entityTextSearchResults=(0,r.vPA)([]);entityTextSearchResultsOnCurrentPage=(0,f.EW)(()=>this.entityTextSearchResults().filter(e=>e.page===this.currentPage()));currentPlacementBbox=(0,r.vPA)(null);categoryPreviewBoxes=(0,r.vPA)([]);_lastMatchIndex=(0,r.vPA)(null);matchCycleDisplay=(0,f.EW)(()=>{const e=this._lastMatchIndex(),n=this.entityTextSearchResultsOnCurrentPage().length;return null===e||0===n?"":`${e+1}/${n}`});cycleTextMatch(){const e=this.entityTextSearchResultsOnCurrentPage();if(!e.length)return;const n=this._lastMatchIndex(),i=null===n?0:(n+1)%e.length;this._lastMatchIndex.set(i);const t=e[i].xywhStr.replace("percent:",""),[h,g,a,u]=t.split(",").map(Number),y=Math.max(0,h-.5),x=Math.max(0,g-.5),O=Math.min(100-y,a+1),U=Math.min(100-x,u+1);this.currentPlacementBbox.set({xywhStr:`percent:${y.toFixed(2)},${x.toFixed(2)},${O.toFixed(2)},${U.toFixed(2)}`,color:"rgba(255, 160, 0, 0.9)",allowRemove:!1})}setManualBbox(e){this._lastMatchIndex.set(null),this.currentPlacementBbox.set({...e,allowRemove:!1})}clearPlacement(){this.currentPlacementBbox.set(null),this._lastMatchIndex.set(null)}constructor(){(0,r.QZP)(()=>{const e=this.entityBeingPlaced(),n=this.activePdfDoc();e?.value&&n?this.searchService.searchAll(n,e.value).then(i=>{this.entityTextSearchResults.set(i)}):this.entityTextSearchResults.set([])}),(0,r.QZP)(()=>{this.currentPage(),this._lastMatchIndex.set(null),this.currentPlacementBbox.set(null)}),(0,r.QZP)(()=>{const e=this.entityBeingPlaced();this._lastMatchIndex.set(null),void 0===e&&this.currentPlacementBbox.set(null)})}static \u0275fac=function(n){return new(n||o)};static \u0275prov=r.jDH({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})();var F=c(9352);const A=["viewerTarget"];function j(o,L){if(1&o){const e=s.RV6();s.j41(0,"cue-flexcontainer",2)(1,"cue-typography"),s.EFF(2),s.nI1(3,"transloco"),s.k0s(),s.j41(4,"cue-button",3),s.bIt("click",function(){r.eBV(e);const i=s.XpG();return r.Njj(i.downloadFile())}),s.j41(5,"cue-button-padder"),s.nrm(6,"cue-button-icon",4),s.k0s(),s.j41(7,"cue-button-label"),s.EFF(8),s.nI1(9,"transloco"),s.k0s()()()}2&o&&(s.R7$(2),s.JRh(s.bMT(3,2,"components.documentViewer.infoNoViewer")),s.R7$(6),s.JRh(s.bMT(9,4,"common.buttons.download")))}let E=(()=>{class o{_eps=(0,r.WQX)(V);_destroyed=!1;url=l.hFB.required();suffix=(0,l.hFB)();settings=(0,l.hFB)(new m.DocumentViewerSettings);viewerTypeOverride=(0,l.hFB)(void 0);interactions=(0,l.CGW)();viewerType=(0,f.EW)(()=>{const e=this.viewerTypeOverride();if(e)return e;const n=this.url(),i=void 0!==this.suffix()?this.suffix()?.trim():`.${n.split(".").pop()?.trim()}`,t=i?m.extViewerMap.get(i):void 0;return console.log("[DocumentViewer] viewerType resolved",{url:n?.substring(0,80),suffix:i,viewerType:t}),void 0!==i?t:void 0});currentComponent=(0,r.vPA)(null);noViewer=(0,f.EW)(()=>null===this.currentComponent());viewerTarget;currentRef;_interactionsState=(0,r.vPA)(new m.DocumentViewerInteractions);constructor(){(0,r.QZP)(()=>{const e=this.viewerType(),n=this.url();console.log("[DocumentViewer] url/viewerType effect \u2014",{viewerType:e,url:n?.substring(0,80),destroyed:this._destroyed}),e?("pdf"!==e&&this._eps.activePdfDoc.set(null),this.loadViewerComponent(e,n,this.settings())):(this.viewerTarget.clear(),this.currentRef?.destroy(),this.currentRef=void 0,console.info("No viewer available for this file type"),this.currentComponent.set(null),this._eps.activePdfDoc.set(null))}),(0,r.QZP)(()=>{this.interactions.emit(this._interactionsState())}),(0,r.QZP)(()=>{const e=this.settings().pdf,n=this.currentRef;n&&n.setInput("settings",e)})}ngOnDestroy(){this._destroyed=!0,this.viewerTarget.clear(),this.currentRef?.destroy(),this.currentRef=void 0}loadViewerComponent(e,n,i){var t=this;return(0,v.A)(function*(){console.log("[DocumentViewer] loadViewerComponent",{viewerType:e,url:n?.substring(0,100)});try{const h=m.viewerComponents[e],g=yield h();if(t._destroyed)return;if(t.currentComponent.set(g),t.viewerTarget.clear(),t.currentRef?.destroy(),t.currentRef=t.viewerTarget.createComponent(g),"pdf"===e)t.currentRef.setInput("src",n),void 0!==i?.pdf&&t.currentRef.setInput("settings",i.pdf),t.currentRef.instance.pdfLoaded&&t.currentRef.instance.pdfLoaded.subscribe(a=>{t._eps.currentPage.set(1),t._eps.activePdfDoc.set(a)}),t.currentRef.instance.settingsChange&&t.currentRef.instance.settingsChange.subscribe(a=>{const u=parseInt(a?.page,10);!isNaN(u)&&u>0&&t._eps.currentPage.set(u)}),t.currentRef.instance.artefactDrawn&&t.currentRef.instance.artefactDrawn.subscribe(a=>{"xywh"===a.type&&t._eps.setManualBbox(a.def)}),t.currentRef.instance.artefactEdited&&t.currentRef.instance.artefactEdited.subscribe(a=>{"bbox"===a.type&&t._eps.setManualBbox(a.after)});else if("bim"===e){const a=new P.di("model","Model",n);a.visible=!0,t.currentRef.setInput("data",{models:[a]}),void 0!==i?.bim&&t.currentRef.setInput("settings",i.bim),t.currentRef.instance.selectedElements&&t.currentRef.instance.selectedElements.subscribe(u=>{t._interactionsState.update(d=>(d.bim.selectedElements=u,Object.assign({},d)))}),t.currentRef.instance.clickedElement&&t.currentRef.instance.clickedElement.subscribe(u=>{t._interactionsState.update(d=>(d.bim.clickedElement=u,Object.assign({},d)))})}else if("cad"===e)t.currentRef.setInput("fileURL",n),void 0!==i?.cad&&t.currentRef.setInput("settings",i.cad);else if("image"===e)t.currentRef.setInput("src",n);else if("markdown"===e)t.currentRef.setInput("fileURL",n);else if("text"===e)t.currentRef.setInput("fileURL",n);else if("spreadsheet"===e){const a=t.suffix()?.split(".").pop()||n.split(".").pop()||"csv";t.currentRef.setInput("data",{url:n,format:a})}else if("code"===e){const d={".json":"json",".jsonld":"jsonld",".xml":"xml",".html":"xml",".htm":"xml",".css":"text",".js":"text",".sh":"text"}[t.suffix()??`.${n.split(".").pop()??""}`]??"text";t.currentRef.setInput("fileURL",n),t.currentRef.setInput("codeType",d)}else"email"===e&&t.currentRef.setInput("fileURL",n)}catch(h){console.error("Failed to load viewer component:",h),t.currentComponent.set(null)}})()}downloadFile(){var e=this;return(0,v.A)(function*(){const i=yield(yield fetch(e.url())).blob();(0,R.KE)(i,`document${e.suffix()??""}`)})()}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=s.VBU({type:o,selectors:[["cue-doc-viewer"]],viewQuery:function(n,i){if(1&n&&s.GBs(A,7,s.c1b),2&n){let t;s.mGM(t=s.lsd())&&(i.viewerTarget=t.first)}},inputs:{url:[1,"url"],suffix:[1,"suffix"],settings:[1,"settings"],viewerTypeOverride:[1,"viewerTypeOverride"]},outputs:{interactions:"interactions"},decls:4,vars:1,consts:[["viewerTarget",""],[2,"height","100%","width","100%"],["direction","column","align","center","justify","center",2,"height","100%","width","100%"],[3,"click"],["icon","download"]],template:function(n,i){1&n&&(s.j41(0,"cue-container",1),s.eu8(1,null,0),s.nVh(3,j,10,6,"cue-flexcontainer",2),s.k0s()),2&n&&(s.R7$(3),s.vxM(i.noViewer()?3:-1))},dependencies:[b.MD,D,M.Typography,T.n,C.$,I.a,N.L,B.z,F.Kj],styles:["[_nghost-%COMP%]{display:contents}"],changeDetection:0})}return o})()}}]);
|
package/903.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[903],{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/911.js
ADDED
|
@@ -0,0 +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})()}}]);
|
package/960.js
ADDED
|
@@ -0,0 +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)}}}()}}]);
|
package/995.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[995],{6376(k,g,b){function d(s,e){let t=function m(s,e){let r=0;return s.color?r=s.color:e.tables&&e.tables.layer&&e.tables.layer.layers[s.layer]&&(r=e.tables.layer.layers[s.layer].color),(null==r||16777215===r)&&(r=0),r}(s,e).toString(16);for(;t.length<6;)t="0"+t;return"#"+t}function A(s){if(s=function T(s){let e=s.replace(/\\P/g,"\n");return e=e.replace(/\\X/g,"\n"),e}(s),!s.includes(";"))return{text:w(s)};let e=s;const r={};["f","A","Q","H","W","T"].forEach(i=>{r[i]=function $(s,e,r){const t=new RegExp(`(?<=${e})(.*?)(?=${r})`,"s"),i=s.match(t);return i?i[1].trim():void 0}(s,`\\\\${i}`,";"),void 0!==r[i]&&(e=e.replace(`\\${i}${r[i]};`,""))});const t=s.lastIndexOf(";");return s=w(s.substring(t+1)),e=e.replace(s,""),{text:s,formatting:r}}function w(s){return(s=(s=(s=(s=s.replace(/\\{/g,"\0LBRACE")).replace(/\\}/g,"\0RBRACE")).replace(/[{}]/g,"")).replace(/__LBRACE__/g,"{")).replace(/__RBRACE__/g,"}")}b.r(g),b.d(g,{DrawEntitySVG:()=>x});const f="http://www.w3.org/2000/svg";class x{_svg;_currentGroup;entityMap=new Map;_idCounter=0;constructor(){this._svg=document.createElementNS(f,"svg"),this._svg.setAttribute("xmlns",f)}fromEntity(e,r,t=!0){t||this._resetSVG(),Array.isArray(e)?e.forEach(i=>this.fromEntity(i,r,!0)):"ARC"===e.type?this._drawArc(e,r):"CIRCLE"===e.type?this._drawCircle(e,r):"INSERT"===e.type?this._drawBlock(e,r):"LINE"===e.type?this._drawLine(e,r):"LWPOLYLINE"===e.type||"POLYLINE"===e.type?this._drawPath(e,r):"POINT"===e.type?this._drawPoint(e,r):"SPLINE"===e.type?this._drawSpline(e,r):"SOLID"===e.type?this._drawSolid(e,r):"ELLIPSE"===e.type?this._drawEllipse(e,r):"TEXT"===e.type?this._drawText(e,r):"MTEXT"===e.type?this._drawMtext(e,r):"DIMENSION"===e.type&&!(7&e.dimensionType)&&this._drawDimension(e,r)}asString(){return this._svg.outerHTML}asElement(){return this._svg}_resetSVG(){this._svg=document.createElementNS(f,"svg"),this._svg.setAttribute("xmlns",f),this.entityMap.clear(),this._idCounter=0}_drawBlock(e,r){const t=r.blocks[e.name];if(!t||!t.entities)return;const i=this._appendElementOfType("g",e);this._currentGroup=i;const n=this._buildGroupTransformation(e);""!==n&&i.setAttribute("transform",n),t.entities.forEach(o=>{this.fromEntity(o,r)}),this._currentGroup=void 0}_drawLine(e,r){const t=this._appendElementOfType("line",e);t.setAttribute("x1",e.vertices[0].x.toString()),t.setAttribute("y1",e.vertices[0].y.toString()),t.setAttribute("x2",e.vertices[1].x.toString()),t.setAttribute("y2",e.vertices[1].y.toString()),this._setStrokeFill(e,r,t)}_drawPath(e,r){const t=e.vertices.some(c=>void 0!==c.bulge&&Math.abs(c.bulge)>1e-4);if(2===e.vertices.length&&!t)return this._drawLine(e,r);const i=this._appendElementOfType("path",e);let n=!0===e.shape||!0===e.closed,o=e.vertices;if(!n&&o.length>3){const c=o[0],a=o[o.length-1];Math.abs(c.x-a.x)<.001&&Math.abs(c.y-a.y)<.001&&(n=!0,o=o.slice(0,-1))}const u=this._verticeArrayToPath(o,n,e.extrusion);i.setAttribute("d",u),this._setStrokeFill(e,r,i)}_drawArc(e,r){const t=this._appendElementOfType("path",e),i=this._arcPath(e.center,e.radius,e.startAngle,e.endAngle,e.extrusion);t.setAttribute("d",i),this._setStrokeFill(e,r,t)}_drawCircle(e,r){const t=this._appendElementOfType("circle",e);t.setAttribute("cx",e.center.x.toString()),t.setAttribute("cy",e.center.y.toString()),t.setAttribute("r",e.radius.toString()),this._setStrokeFill(e,r,t)}_drawText(e,r){const t=this._appendElementOfType("text",e);t.setAttribute("x",e.startPoint.x.toString()),t.setAttribute("y",e.startPoint.y.toString());const i=A(e.text);t.innerHTML=i.text,this._setTextAppearance(e,r,t)}_drawPoint(e,r){const t=this._appendElementOfType("circle",e);t.setAttribute("cx",e.position.x.toString()),t.setAttribute("cy",e.position.y.toString()),t.setAttribute("r","0.0001"),t.setAttribute("stroke",d(e,r)),t.setAttribute("fill","none"),t.setAttribute("vector-effect","non-scaling-stroke"),t.setAttribute("stroke-width","2"),t.classList.add("dxf-path")}_drawDimension(e,r){const t=r.blocks[e.block];if(!t||!t.entities)return;const i=this._appendElementOfType("g",e);this._currentGroup=i,t.entities.forEach(n=>{this.fromEntity(n,r)}),this._currentGroup=void 0}_drawEllipse(e,r){}_drawSpline(e,r){}_drawSolid(e,r){}_drawMtext(e,r){const t=this._appendElementOfType("text",e);t.setAttribute("x",e.position.x.toString()),t.setAttribute("y",e.position.y.toString());const i=A(e.text);t.innerHTML=i.text,this._setMTextAppearance(e,r,t)}_setStrokeFill(e,r,t){t.setAttribute("stroke",d(e,r)),t.setAttribute("fill","none"),t.setAttribute("stroke-width",((void 0!==e.lineweight&&e.lineweight>0?e.lineweight:25)/1e5).toString()),t.setAttribute("vector-effect","non-scaling-stroke"),t.classList.add("dxf-path")}_setTextAppearance(e,r,t){t.setAttribute("fill",d(e,r)),t.setAttribute("font-size",(e.textHeight/1e3).toString()),e.rotation&&t.setAttribute("transform",`rotate(${e.rotation})`)}_setMTextAppearance(e,r,t){t.setAttribute("fill",d(e,r)),t.setAttribute("font-size",(e.height/1e3).toString()),e.rotation&&t.setAttribute("transform",`rotate(${e.rotation})`)}_buildGroupTransformation(e){let r="";return void 0!==e.position&&(r+=` translate(${e.position.x} ${e.position.y})`),void 0!==e.xScale&&void 0!==e.yScale&&(r+=` scale(${e.xScale} ${e.yScale})`),void 0!==e.rotation&&(r+=` rotate(${e.rotation})`),r.trim()}_appendElementOfType(e,r){const t=document.createElementNS(f,e);if(r){const i="dxf-entity-"+this._idCounter++;t.setAttribute("data-dxf-id",i),this.entityMap.set(i,r)}return void 0!==this._currentGroup?this._currentGroup.appendChild(t):this._svg.appendChild(t),t}_arcPath(e,r,t,i,n){const o=e.x+r*Math.cos(t),u=e.y+r*Math.sin(t),c=e.x+r*Math.cos(i),a=e.y+r*Math.sin(i),h=n&&n.z<0;let l=i-t;for(;l<0;)l+=2*Math.PI;for(;l>2*Math.PI;)l-=2*Math.PI;return l<1e-4?`M ${o} ${u}`:`M ${o} ${u} A ${r} ${r} 0 ${l>Math.PI?1:0} ${h?0:1} ${c} ${a}`}_verticeArrayToPath(e,r=!1,t){let i="";const n=r?e.length:e.length-1;for(let o=0;o<n;o++){const{x:u,y:c,bulge:a}=e[o],{x:h,y:l}=e[(o+1)%e.length];if(void 0!==a&&Math.abs(a)>1e-4){const _=Math.sqrt((u-h)**2+(c-l)**2),p=Math.abs(a),S=_/2*(1+p*p)/(2*p),E=t&&t.z<0;0===o&&(i+=`M ${u} ${c} `),i+=`A ${S} ${S} 0 ${p>1?1:0} ${a>0?E?0:1:E?1:0} ${h} ${l} `}else 0===o&&(i+=`M ${u} ${c} `),i+=`L ${h} ${l} `}return r&&(i+=" Z"),i.trim()}}}}]);
|