@qaecy/cue-ui 0.0.57 → 0.0.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/1051.js +1 -1
  2. package/1138.js +1 -1
  3. package/1153.js +1 -1
  4. package/1338.js +1 -1
  5. package/1520.js +1 -0
  6. package/1837.js +1 -1
  7. package/1985.js +1 -1
  8. package/2003.js +1 -0
  9. package/2014.js +1 -0
  10. package/2021.js +1 -1
  11. package/2081.js +1 -1
  12. package/2245.js +1 -1
  13. package/2283.js +1 -0
  14. package/2317.js +1 -1
  15. package/2775.js +1 -1
  16. package/2839.js +1 -1
  17. package/29.js +1 -1
  18. package/3036.js +1 -1
  19. package/3039.js +1 -1
  20. package/3288.js +1 -1
  21. package/3319.js +1 -0
  22. package/3577.js +1 -1
  23. package/3614.js +1 -1
  24. package/4098.js +1 -0
  25. package/4283.js +1 -1
  26. package/4311.js +1 -1
  27. package/4791.js +1 -0
  28. package/5277.js +1 -0
  29. package/5381.js +1 -0
  30. package/5448.js +1 -0
  31. package/5559.js +1 -1
  32. package/5649.js +1 -1
  33. package/5738.js +1 -1
  34. package/5872.js +1 -1
  35. package/5971.js +1 -0
  36. package/6027.js +1 -0
  37. package/617.js +1 -1
  38. package/6233.js +1 -1
  39. package/63.js +1 -1
  40. package/6419.js +1 -1
  41. package/6423.js +1 -1
  42. package/650.js +1 -1
  43. package/6947.js +1 -1
  44. package/7089.js +1 -0
  45. package/7154.js +1 -0
  46. package/7313.js +1 -0
  47. package/7441.js +1 -1
  48. package/7719.js +1 -1
  49. package/7802.js +1 -0
  50. package/7851.js +1 -0
  51. package/804.js +1 -1
  52. package/8194.js +1 -0
  53. package/8560.js +1 -1
  54. package/8659.js +1 -0
  55. package/880.js +1 -0
  56. package/8855.js +1 -1
  57. package/8957.js +1 -1
  58. package/928.js +1 -1
  59. package/9396.js +1 -1
  60. package/992.js +1 -0
  61. package/common.js +1 -1
  62. package/index.js +1 -1
  63. package/main.js +1 -1
  64. package/package.json +1 -1
  65. package/2399.js +0 -1
  66. package/2516.js +0 -1
  67. package/4687.js +0 -1
  68. package/4879.js +0 -1
  69. package/5041.js +0 -1
  70. package/5071.js +0 -1
  71. package/5137.js +0 -1
  72. package/7056.js +0 -1
  73. package/8336.js +0 -1
  74. package/8791.js +0 -1
  75. package/9376.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qaecy/cue-ui",
3
- "version": "0.0.57",
3
+ "version": "0.0.58",
4
4
  "description": "QAECY UI Web Components",
5
5
  "keywords": [
6
6
  "web-components",
package/2399.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[2399],{2399(I,x,d){d.d(x,{CueDocumentViewer:()=>Ve});var p=d(467),r=d(7705),f=d(2271),c=d(5802),e=d(5547),_=d(9769),m=d(5381),g=d(2245),b=d(1024),E=d(9421),L=d(5794),D=d(9352),S=d(6117),k=d(8547),F=d(3319),R=d(5971),A=d(7573);const N=(o,u)=>t=>t.isHighlight;function B(o,u){if(1&o&&(e.j41(0,"span",3),e.EFF(1),e.k0s()),2&o){const t=e.XpG(2).$implicit;e.R7$(),e.JRh(t.highlight.label)}}function G(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-button",5),e.bIt("click",function(i){c.eBV(t);const a=e.XpG(2).$implicit,l=e.XpG();return c.Njj(l.onDeleteHighlight(i,a.highlight))}),e.nrm(1,"cue-button-icon",6),e.k0s()}}function $(o,u){if(1&o){const t=e.RV6();e.j41(0,"span",2),e.bIt("click",function(){c.eBV(t);const i=e.XpG().$implicit,a=e.XpG();return c.Njj(a.onHighlightClick(i.highlight))}),e.nVh(1,B,2,1,"span",3),e.EFF(2),e.nVh(3,G,2,0,"cue-button",4),e.k0s()}if(2&o){const t=e.XpG().$implicit,n=e.XpG();e.BMQ("data-segment-start",t.segmentStart),e.R7$(),e.vxM(t.highlight.label?1:-1),e.R7$(),e.SpI(" ",t.text," "),e.R7$(),e.vxM(n.allowDelete()?3:-1)}}function U(o,u){if(1&o&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&o){const t=e.XpG().$implicit;e.BMQ("data-segment-start",t.segmentStart),e.R7$(),e.JRh(t.text)}}function O(o,u){if(1&o&&e.nVh(0,$,4,4,"span",1)(1,U,2,2,"span"),2&o){const t=u.$implicit;e.vxM(t.isHighlight&&t.highlight?0:1)}}let X=(()=>{class o{path=r.hFB.required();highlights=(0,r.hFB)([]);allowDelete=(0,r.hFB)(!1);allowAdd=(0,r.hFB)(!1);size=(0,r.hFB)("m");highlightClick=(0,r.CGW)();deleteHighlight=(0,r.CGW)();textSelected=(0,r.CGW)();segments=(0,f.EW)(()=>this.parseSegments(this.path(),this.highlights()));parseSegments(t,n){const i=n.filter(h=>h.path===t);if(0===i.length)return[{text:t,isHighlight:!1,segmentStart:0}];const a=[...i].sort((h,y)=>h.start-y.start),l=[];let s=0;for(const h of a)h.start>s&&l.push({text:t.substring(s,h.start),isHighlight:!1,segmentStart:s}),l.push({text:t.substring(h.start,h.end),isHighlight:!0,highlight:h,segmentStart:h.start}),s=h.end;return s<t.length&&l.push({text:t.substring(s),isHighlight:!1,segmentStart:s}),l}onHighlightClick(t){const n=this.path().substring(t.start,t.end);this.highlightClick.emit({path:this.path(),highlight:t,text:n})}onDeleteHighlight(t,n){t.stopPropagation(),this.deleteHighlight.emit({path:this.path(),highlight:n})}onMouseUp(t){if(!this.allowAdd())return;const n=window.getSelection();if(!n||n.isCollapsed||!n.rangeCount||!n.toString().trim())return;const a=n.getRangeAt(0),l=t.currentTarget,s=this.getAbsoluteOffset(l,a.startContainer,a.startOffset),h=this.getAbsoluteOffset(l,a.endContainer,a.endOffset);n.removeAllRanges(),h>s&&this.textSelected.emit({path:this.path(),start:s,end:h,text:this.path().substring(s,h)})}getAbsoluteOffset(t,n,i){let a=n.nodeType===Node.TEXT_NODE?n.parentElement:n;for(;a&&a!==t;){if(a instanceof HTMLElement&&a.hasAttribute("data-segment-start")){const y=parseInt(a.getAttribute("data-segment-start"),10);let v=0;const w=document.createTreeWalker(a,NodeFilter.SHOW_TEXT);let C=w.nextNode();for(;C&&C!==n;)v+=C.textContent?.length??0,C=w.nextNode();return y+v+i}a=a.parentElement}const l=document.createTreeWalker(t,NodeFilter.SHOW_TEXT);let s=0,h=l.nextNode();for(;h&&h!==n;)s+=h.textContent?.length??0,h=l.nextNode();return s+i}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-file-path-viewer"]],inputs:{path:[1,"path"],highlights:[1,"highlights"],allowDelete:[1,"allowDelete"],allowAdd:[1,"allowAdd"],size:[1,"size"]},outputs:{highlightClick:"highlightClick",deleteHighlight:"deleteHighlight",textSelected:"textSelected"},decls:3,vars:7,consts:[[1,"path-content",3,"mouseup"],[1,"highlight-segment"],[1,"highlight-segment",3,"click"],[1,"highlight-label"],["size","xs","aria-label","Remove highlight",1,"delete-button"],["size","xs","aria-label","Remove highlight",1,"delete-button",3,"click"],["icon","close"]],template:function(n,i){1&n&&(e.j41(0,"div",0),e.bIt("mouseup",function(l){return i.onMouseUp(l)}),e.Z7z(1,O,2,1,null,null,e.Vm6),e.k0s()),2&n&&(e.AVh("size-s","s"===i.size())("allow-add",i.allowAdd())("has-highlights",i.segments().some(e._m7(6,N,i))),e.R7$(),e.Dyx(i.segments()))},dependencies:[_.MD,R.$,F.a],styles:["[_nghost-%COMP%]{display:contents}.path-content[_ngcontent-%COMP%]{display:block;flex:1;min-width:0;word-break:break-all;text-align:start;font-family:var(--cue-font-family);font-size:var(--cue-font-m-size);line-height:var(--cue-font-m-line-height);letter-spacing:var(--cue-font-m-letter-spacing);font-weight:var(--cue-font-weight-regular)}.path-content.size-s[_ngcontent-%COMP%]{font-size:var(--cue-font-s-size);line-height:var(--cue-font-s-line-height);letter-spacing:var(--cue-font-s-letter-spacing)}.path-content.allow-add[_ngcontent-%COMP%]{cursor:text;-webkit-user-select:text;user-select:text}.path-content.has-highlights[_ngcontent-%COMP%]{padding-top:.8rem;line-height:2.3rem}.highlight-segment[_ngcontent-%COMP%]{display:inline-block;vertical-align:text-bottom;position:relative;line-height:normal;font-weight:var(--cue-font-weight-medium);cursor:pointer;padding:0 .2rem;border-radius:3px;border:1px solid currentColor;transition:all .2s ease}.highlight-segment[_ngcontent-%COMP%] .highlight-label[_ngcontent-%COMP%]{font-family:var(--cue-font-family);position:absolute;bottom:100%;left:0;font-size:.5rem;line-height:1;opacity:.7;margin-bottom:.15rem;white-space:nowrap;pointer-events:none}.highlight-segment[_ngcontent-%COMP%] .delete-button[_ngcontent-%COMP%]{position:absolute;top:-12px;right:-12px;z-index:10;opacity:0;transition:opacity .2s ease;pointer-events:none}.highlight-segment[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,currentColor 12%,transparent)}.highlight-segment[_ngcontent-%COMP%]:hover .delete-button[_ngcontent-%COMP%]{opacity:1;pointer-events:all}"],changeDetection:0})}return o})();var W=d(5745),H=d(63),z=d(9695),Y=d(5448),q=d(2611);const T=o=>({count:o}),J=(o,u)=>t=>t.iri;function K(o,u){1&o&&(e.j41(0,"cue-typography",11),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&o&&(e.R7$(),e.JRh(e.bMT(2,1,"components.documentInfo.infoLoadingFilePaths")))}function Q(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-ag-grid",16),e.bIt("selectedRows",function(i){c.eBV(t);const a=e.XpG(4);return c.Njj(a.onMatchedPathsSelectionChange(i))}),e.k0s()}if(2&o){const t=e.XpG(4);e.Y8G("rowData",t._matchTableRowData())("columnDefs",t._matchTableColDefs())("rowSelection",t._matchTableRowSelection)}}function Z(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",12)(1,"cue-button",13),e.bIt("click",function(){c.eBV(t);const i=e.XpG(3);return c.Njj(i._matchTableExpanded.set(!i._matchTableExpanded()))}),e.nrm(2,"cue-button-icon",14),e.j41(3,"cue-button-label"),e.EFF(4),e.nI1(5,"transloco"),e.k0s()(),e.nVh(6,Q,1,3,"cue-ag-grid",15),e.k0s(),e.j41(7,"cue-typography",11),e.EFF(8),e.nI1(9,"transloco"),e.k0s()}if(2&o){const t=e.XpG(3);e.R7$(2),e.Y8G("icon",t._matchTableExpanded()?"arrow-up":"arrow-dropdown"),e.R7$(2),e.JRh(e.i5U(5,4,1===t._matchCount()?"components.documentInfo.filePathMatched":"components.documentInfo.filePathsMatched",e.eq3(10,T,t._matchCount()))),e.R7$(2),e.vxM(t._matchTableExpanded()?6:-1),e.R7$(2),e.JRh(e.i5U(9,7,"components.documentInfo.applyToNPaths",e.eq3(12,T,t._selectedPaths().length)))}}function ee(o,u){if(1&o&&e.nVh(0,K,3,3,"cue-typography",11)(1,Z,10,14),2&o){const t=e.XpG(2);e.vxM(t._fileLocationsLoading()?0:null!==t._fileLocations()?1:-1)}}function te(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",9)(1,"cue-input-switch",10),e.bIt("toggleChange",function(i){c.eBV(t);const a=e.XpG();return c.Njj(a.onApplyToAllChange(i))}),e.k0s(),e.j41(2,"cue-typography",11),e.EFF(3),e.nI1(4,"transloco"),e.k0s()(),e.nVh(5,ee,2,1)}if(2&o){const t=e.XpG();e.R7$(),e.Y8G("checked",t._applyToAllFiles()),e.R7$(2),e.JRh(e.bMT(4,3,"components.documentInfo.applyToAllFiles")),e.R7$(2),e.vxM(t._applyToAllFiles()?5:-1)}}function ne(o,u){if(1&o&&(e.j41(0,"cue-typography",8),e.EFF(1),e.nI1(2,"transloco"),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.Lme("",e.bMT(2,2,"components.documentInfo.errorSavingEntityMention"),": ",t._saveError())}}let ie=(()=>{class o{selection=r.hFB.required();availableEntityCategories=(0,r.hFB)([]);fileLocations=(0,r.hFB)([]);requestFileLocations=(0,r.hFB)(void 0);requestFilePathEntityAdd=(0,r.hFB)(void 0);confirm=(0,r.CGW)();cancel=(0,r.CGW)();_selectedEntityCategory=(0,c.vPA)("");_applyToAllFiles=(0,c.vPA)(!1);_fileLocations=(0,c.vPA)(null);_fileLocationsLoading=(0,c.vPA)(!1);_matchTableExpanded=(0,c.vPA)(!1);_selectedPaths=(0,c.vPA)([]);_saving=(0,c.vPA)(!1);_saveError=(0,c.vPA)(null);_dirPrefix=(0,f.EW)(()=>{const t=this.selection();return t.path.substring(0,t.end)});_matchedLocations=(0,f.EW)(()=>{const t=this._fileLocations();if(!t)return[];const n=this._dirPrefix();return t.filter(i=>i.path.startsWith(n))});_matchCount=(0,f.EW)(()=>this._matchedLocations().length);_matchTableRowData=(0,f.EW)(()=>this._matchedLocations().map(t=>({iri:t.iri,path:t.path,providerId:t.providerId})));_entityCategoryLabelMap=(0,f.EW)(()=>this.availableEntityCategories().reduce((t,n)=>(t[n.iri]=n.label,t),{}));_matchTableRowSelection={mode:"multiRow",selectAll:"filtered"};_filePathLabel=(0,D.Xx)("components.contentBlocks.documentViewer.labelFilePath");_matchTableColDefs=(0,f.EW)(()=>[{headerName:this._filePathLabel(),field:"path",flex:1,filter:!0,sortable:!0}]);onEntityCategoryChange(t){this._selectedEntityCategory.set("string"==typeof t?t:String(t??""))}onApplyToAllChange(t){var n=this;return(0,p.A)(function*(){if(n._applyToAllFiles.set(t),n._matchTableExpanded.set(!1),!t)return n._fileLocations.set(null),void n._selectedPaths.set([]);const i=n.requestFileLocations();if(i){n._fileLocationsLoading.set(!0);try{const a=yield i();n._fileLocations.set(a);const l=n._dirPrefix();n._selectedPaths.set(a.filter(s=>s.path.startsWith(l)))}finally{n._fileLocationsLoading.set(!1)}}})()}onMatchedPathsSelectionChange(t){const n=this._fileLocations()??[];this._selectedPaths.set(t.map(i=>n.find(a=>a.path===i.path)??{iri:"",path:i.path}))}onConfirm(){var t=this;return(0,p.A)(function*(){const n=t._selectedEntityCategory();if(!n)return;const i=t.selection().path,a=t._fileLocations()?.find(h=>h.path===i)??t.fileLocations().find(h=>h.path===i)??{iri:"",path:i},l=t._applyToAllFiles()&&t._selectedPaths().length>0?t._selectedPaths():[a],s=t.requestFilePathEntityAdd();if(s){t._saving.set(!0),t._saveError.set(null);try{yield s(n,l)}catch(h){return console.error("[EntityMentionModal] Failed to save entity mention:",h),t._saveError.set(h instanceof Error?h.message:String(h)),void t._saving.set(!1)}t._saving.set(!1)}t.confirm.emit({entityCategory:n,paths:l})})()}onCancel(){this.cancel.emit()}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-entity-mention-modal"]],inputs:{selection:[1,"selection"],availableEntityCategories:[1,"availableEntityCategories"],fileLocations:[1,"fileLocations"],requestFileLocations:[1,"requestFileLocations"],requestFilePathEntityAdd:[1,"requestFilePathEntityAdd"]},outputs:{confirm:"confirm",cancel:"cancel"},decls:18,vars:24,consts:[[3,"close","displayCloseBtn","closeOnBackgroundClick"],[1,"modal-content"],["direction","column","gap","m"],[3,"key","val"],[3,"valueChange","value","options","labelMap","label","showFilter"],["direction","row","justify","center"],[3,"click","disabled"],["variant","secondary",3,"click","disabled"],["size","s",2,"color","var(--cue-error)"],["direction","row","gap","s","align","center"],[3,"toggleChange","checked"],["size","s"],["direction","column","gap","xs"],["variant","ghost","size","xs",3,"click"],[3,"icon"],["size","s","height","220px",3,"rowData","columnDefs","rowSelection"],["size","s","height","220px",3,"selectedRows","rowData","columnDefs","rowSelection"]],template:function(n,i){1&n&&(e.j41(0,"cue-modal",0),e.bIt("close",function(){return i.onCancel()}),e.j41(1,"div",1)(2,"cue-flexcontainer",2),e.nrm(3,"cue-key-val",3),e.nI1(4,"transloco"),e.j41(5,"cue-select",4),e.nI1(6,"transloco"),e.bIt("valueChange",function(l){return i.onEntityCategoryChange(l)}),e.k0s(),e.nVh(7,te,6,5),e.j41(8,"cue-flexcontainer",5)(9,"cue-button",6),e.bIt("click",function(){return i.onCancel()}),e.j41(10,"cue-button-label"),e.EFF(11),e.nI1(12,"transloco"),e.k0s()(),e.j41(13,"cue-button",7),e.bIt("click",function(){return i.onConfirm()}),e.j41(14,"cue-button-label"),e.EFF(15),e.nI1(16,"transloco"),e.k0s()()(),e.nVh(17,ne,3,4,"cue-typography",8),e.k0s()()()),2&n&&(e.Y8G("displayCloseBtn",!1)("closeOnBackgroundClick",!1),e.R7$(3),e.Y8G("key",e.bMT(4,15,"components.documentInfo.labelSelectedText"))("val",i.selection().text),e.R7$(2),e.Y8G("value",i._selectedEntityCategory())("options",i.availableEntityCategories().map(e._m7(17,J,i)))("labelMap",i._entityCategoryLabelMap())("label",e.bMT(6,18,"components.entityInfo.labelEntityCategory"))("showFilter",i.availableEntityCategories().length>5),e.R7$(2),e.vxM(i.requestFileLocations()?7:-1),e.R7$(2),e.Y8G("disabled",i._saving()),e.R7$(2),e.JRh(e.bMT(12,20,"components.modals.rdfEdit.buttonCancel")),e.R7$(2),e.Y8G("disabled",!i._selectedEntityCategory()||i._saving()),e.R7$(2),e.JRh(e.bMT(16,22,"components.modals.rdfEdit.buttonSave")),e.R7$(2),e.vxM(i._saveError()?17:-1))},dependencies:[m.n,E.F,F.a,R.$,Y.L,g.Typography,W.a,H.Select,z.Switch,q.R,D.Kj],styles:[".modal-content[_ngcontent-%COMP%]{width:640px;max-width:calc(100vw - 32px)}"],changeDetection:0})}return o})();const oe=()=>[];function ae(o,u){if(1&o&&(e.nrm(0,"cue-key-val",6),e.nI1(1,"transloco")),2&o){const t=e.XpG(2);e.Y8G("key",e.bMT(1,2,"components.contentBlocks.documentViewer.labelSubject"))("val",t.subject())}}function le(o,u){if(1&o&&(e.j41(0,"cue-key-val-list"),e.nVh(1,ae,2,4,"cue-key-val",6),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.vxM(t.subject()?1:-1)}}function se(o,u){if(1&o&&(e.j41(0,"cue-flexcontainer",4)(1,"cue-menu",7)(2,"cue-button",8,0),e.nrm(4,"cue-button-icon",9),e.k0s(),e.nrm(5,"cue-menu-nested",10),e.k0s()()),2&o){const t=e.XpG();e.R7$(5),e.Y8G("items",t.menuItems())}}function ce(o,u){if(1&o&&(e.nrm(0,"cue-key-val-editable",11),e.nI1(1,"transloco"),e.nI1(2,"transloco")),2&o){const t=e.XpG(2);e.Y8G("key",1===t.contentCategories().length?e.bMT(1,4,"components.contentBlocks.documentViewer.labelContentCategory"):e.bMT(2,6,"components.contentBlocks.documentViewer.labelContentCategories"))("val",t.contentCategoriesString())("rdfConfig",t.rdfEditConfig())("editDisabled",!t.contentCategoriesEditable())}}function re(o,u){if(1&o&&(e.j41(0,"span",15),e.EFF(1),e.k0s()),2&o){const t=e.XpG(3);e.R7$(),e.Lme("(",t.currentFilePathIndex()+1,"/",t.fileLocations().length,")")}}function de(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-button",19),e.bIt("click",function(){c.eBV(t);const i=e.XpG(3);return c.Njj(i.prevFilePath())}),e.nrm(1,"cue-button-icon",20),e.k0s()}if(2&o){const t=e.XpG(3);e.Y8G("disabled",0===t.currentFilePathIndex())}}function ue(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-button",19),e.bIt("click",function(){c.eBV(t);const i=e.XpG(3);return c.Njj(i.nextFilePath())}),e.nrm(1,"cue-button-icon",21),e.k0s()}if(2&o){const t=e.XpG(3);e.Y8G("disabled",t.currentFilePathIndex()===t.fileLocations().length-1)}}function he(o,u){if(1&o){const t=e.RV6();e.j41(0,"dl",12)(1,"dt",13)(2,"cue-typography",14),e.EFF(3),e.nI1(4,"transloco"),e.nVh(5,re,2,2,"span",15),e.k0s()(),e.j41(6,"dd",16),e.nVh(7,de,2,1,"cue-button",17),e.j41(8,"cue-file-path-viewer",18),e.bIt("textSelected",function(i){c.eBV(t);const a=e.XpG(2);return c.Njj(a.onTextSelected(i))}),e.k0s(),e.nVh(9,ue,2,1,"cue-button",17),e.k0s()()}if(2&o){const t=e.XpG(2);e.R7$(3),e.SpI(" ",e.bMT(4,8,"components.contentBlocks.documentViewer.labelFilePath")," "),e.R7$(2),e.vxM(t.fileLocations().length>1?5:-1),e.R7$(2),e.vxM(t.fileLocations().length>1?7:-1),e.R7$(),e.Y8G("path",t.fileLocations()[t.currentFilePathIndex()].path)("highlights",t.filePathEntitiesVisible()?t.filePathHighlights():e.lJ4(10,oe))("allowDelete",t.filePathEntitiesEditable())("allowAdd",t.filePathEntitiesEditable()),e.R7$(),e.vxM(t.fileLocations().length>1?9:-1)}}function ge(o,u){if(1&o&&(e.j41(0,"cue-key-val-list"),e.nrm(1,"hr"),e.nVh(2,ce,3,8,"cue-key-val-editable",11),e.nVh(3,he,10,11,"dl",12),e.k0s()),2&o){const t=e.XpG();e.R7$(2),e.vxM(t.contentCategories()&&t.contentCategories().length>0?2:-1),e.R7$(),e.vxM(t.fileLocations().length>0?3:-1)}}function fe(o,u){if(1&o){const t=e.RV6();e.j41(0,"cue-entity-mention-modal",22),e.bIt("confirm",function(i){c.eBV(t);const a=e.XpG();return c.Njj(a.onEntityMentionConfirm(i))})("cancel",function(){c.eBV(t);const i=e.XpG();return c.Njj(i.onEntityMentionCancel())}),e.k0s()}if(2&o){const t=e.XpG();e.Y8G("selection",t._pendingSelection())("availableEntityCategories",t.availableEntityCategories())("fileLocations",t.fileLocations())("requestFileLocations",t._fileLocationsProvider())("requestFilePathEntityAdd",t._requestFilePathEntityAdd())}}let me=(()=>{class o{subject=r.hFB.required();handlers=r.hFB.required();dataChanged=(0,r.CGW)();filePathEntityAdded=(0,r.CGW)();fileLocations=(0,r.hFB)([]);_fileLocationsProvider=(0,f.EW)(()=>{const t=this.handlers().requestFileLocations;if(t)return t;const n=this.fileLocations();return n.length?()=>Promise.resolve(n):void 0});filePathEntities=(0,r.geq)([]);contentCategories=(0,r.hFB)([]);contentCategoriesEditable=(0,r.hFB)(!1);filePathEntitiesVisible=(0,r.hFB)(!1);filePathEntitiesEditable=(0,r.hFB)(!1);menuItems=(0,r.hFB)([]);availableContentCategories=(0,r.hFB)([]);availableEntityCategories=(0,r.hFB)([]);collapsed=(0,r.hFB)(!1);hasDocInfo=(0,f.EW)(()=>{const t=""!==this.subject(),n=this.fileLocations().length>0;return t||n});currentFilePathIndex=(0,c.vPA)(0);_entityCategoryModalVisible=(0,c.vPA)(!1);_pendingSelection=(0,c.vPA)(null);_requestFilePathEntityAdd=(0,f.EW)(()=>{var t=this;const n=this.handlers().requestFilePathEntityAdd;if(n)return function(){var i=(0,p.A)(function*(a,l){const s=t._pendingSelection();s&&(yield n({paths:l,start:s.start,end:s.end,text:s.text,entityCategory:a,folderPath:s.path.substring(0,s.end)}))});return function(a,l){return i.apply(this,arguments)}}()});prevFilePath(){this.currentFilePathIndex()>0&&this.currentFilePathIndex.update(t=>t-1)}nextFilePath(){this.currentFilePathIndex()<this.fileLocations().length-1&&this.currentFilePathIndex.update(t=>t+1)}filePathHighlights=(0,f.EW)(()=>this.filePathEntities().map(t=>({path:t.path,start:t.startIndex,end:t.endIndex,label:this.availableEntityCategories().find(n=>n.iri===t.entityCategory)?.label??t.entityCategory.split("/").pop()??t.entityCategory})));entityCategoryLabelMap=(0,f.EW)(()=>this.availableEntityCategories().reduce((t,n)=>(t[n.iri]=n.label,t),{}));onTextSelected(t){this._pendingSelection.set(t),this._entityCategoryModalVisible.set(!0)}onEntityMentionConfirm(t){const n=this._pendingSelection();n&&(this.filePathEntities.update(i=>[...i,...t.paths.map(a=>({path:a.path,entityCategory:t.entityCategory,startIndex:n.start,endIndex:n.end}))]),this.filePathEntityAdded.emit({paths:t.paths,start:n.start,end:n.end,text:n.text,entityCategory:t.entityCategory,folderPath:n.path.substring(0,n.end)}),this._entityCategoryModalVisible.set(!1),this._pendingSelection.set(null))}onEntityMentionCancel(){this._entityCategoryModalVisible.set(!1),this._pendingSelection.set(null)}_contentCategories=(0,f.uu)(()=>this.contentCategories());contentCategoriesString=(0,f.EW)(()=>this._contentCategories().map(t=>this._iriToString(t)).sort().join(", "));_iriToString(t){const n=this.availableContentCategories()?.find(i=>i.iri===t);return n?n.label:t}infoChangeContentCategory=(0,D.Xx)("components.documentInfo.infoChangeContentCategory");rdfEditConfig=(0,f.EW)(()=>{var t=this;const n=this.handlers()?.requestRDFChange;var i;if(void 0!==n)return{message:this.infoChangeContentCategory(),existingValue:this._contentCategories(),dataType:"multiselect",options:this.availableContentCategories()?.map(i=>i.iri),optionLabelMap:this.availableContentCategories()?.reduce((i,a)=>(i[a.iri]=a.label,i),{}),requestSave:(i=(0,p.A)(function*(a){console.log(a);const l={subject:t.subject(),predicate:`${A.E.qcy}contentCategory`,objects:t._contentCategories(),newObjects:a.newValue,type:"contentCategory",comment:a.comment};yield n(l),t._contentCategories.set(a.newValue),t.dataChanged.emit({contentCategories:a.newValue})}),function(l){return i.apply(this,arguments)})};console.warn("No RDF change request handler defined")});static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-document-info"]],inputs:{subject:[1,"subject"],handlers:[1,"handlers"],fileLocations:[1,"fileLocations"],filePathEntities:[1,"filePathEntities"],contentCategories:[1,"contentCategories"],contentCategoriesEditable:[1,"contentCategoriesEditable"],filePathEntitiesVisible:[1,"filePathEntitiesVisible"],filePathEntitiesEditable:[1,"filePathEntitiesEditable"],menuItems:[1,"menuItems"],availableContentCategories:[1,"availableContentCategories"],availableEntityCategories:[1,"availableEntityCategories"],collapsed:[1,"collapsed"]},outputs:{dataChanged:"dataChanged",filePathEntityAdded:"filePathEntityAdded",filePathEntities:"filePathEntitiesChange"},decls:7,vars:4,consts:[["trigger",""],["direction","column",2,"min-height","50px"],["direction","row"],["direction","column",2,"flex","1 1"],["direction","column",2,"width","50px"],[3,"selection","availableEntityCategories","fileLocations","requestFileLocations","requestFilePathEntityAdd"],["size","l",3,"key","val"],["positioning","bottomleft"],["trigger","","variant","tertiary"],["icon","more-vert"],["menu","",3,"items"],["size","s",3,"key","val","rdfConfig","editDisabled"],[1,"file-path-nav-container"],[1,"file-path-label"],["size","xs"],[1,"path-counter"],[1,"file-path-row"],["variant","tertiary","size","xs",3,"disabled"],["size","s",3,"textSelected","path","highlights","allowDelete","allowAdd"],["variant","tertiary","size","xs",3,"click","disabled"],["icon","paginator-back"],["icon","paginator-next"],[3,"confirm","cancel","selection","availableEntityCategories","fileLocations","requestFileLocations","requestFilePathEntityAdd"]],template:function(n,i){1&n&&(e.j41(0,"cue-flexcontainer",1)(1,"cue-flexcontainer",2)(2,"cue-flexcontainer",3),e.nVh(3,le,2,1,"cue-key-val-list"),e.k0s(),e.nVh(4,se,6,1,"cue-flexcontainer",4),e.k0s(),e.nVh(5,ge,4,2,"cue-key-val-list"),e.k0s(),e.nVh(6,fe,1,5,"cue-entity-mention-modal",5)),2&n&&(e.R7$(3),e.vxM(i.fileLocations().length>0||i.subject()?3:-1),e.R7$(),e.vxM(i.menuItems().length>0?4:-1),e.R7$(),e.vxM(!i.collapsed()&&i.hasDocInfo()?5:-1),e.R7$(),e.vxM(i._entityCategoryModalVisible()&&i._pendingSelection()?6:-1))},dependencies:[m.n,b.p,E.F,L.L,S.W,k.T,F.a,R.$,X,g.Typography,ie,D.Kj],styles:[".file-path-nav-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px}.file-path-label[_ngcontent-%COMP%]{display:block;margin:0}.file-path-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;margin:0;overflow:visible;padding:1px}.file-path-row[_ngcontent-%COMP%] cue-file-path-viewer[_ngcontent-%COMP%]{flex:1;overflow:visible;min-width:0}.path-counter[_ngcontent-%COMP%]{opacity:.6}"],changeDetection:0})}return o})();class pe{requestRDFChange;requestFileLocations;requestFilePathEntityAdd}var _e=d(2065),ve=d(5187),be=d(7293);const ye=["viewerHost"];function Ce(o,u){if(1&o&&e.nrm(0,"cue-document-info",4),2&o){const t=e.XpG(2);e.Y8G("subject",t._docSubject())("handlers",t._docInfoHandlers)("menuItems",t._menuItems())}}function xe(o,u){1&o&&(e.j41(0,"cue-flexcontainer",5)(1,"cue-typography"),e.EFF(2,"Loading\u2026"),e.k0s()())}function we(o,u){if(1&o&&(e.j41(0,"cue-flexcontainer",5)(1,"cue-typography",8),e.EFF(2),e.k0s()()),2&o){const t=e.XpG(2);e.R7$(2),e.JRh(t.errorMessage())}}function Me(o,u){if(1&o&&e.nrm(0,"cue-logo-link",7),2&o){const t=e.XpG(2);e.Y8G("projectId",t.projectId())("resourceId",t._uuidOnly())}}function Ee(o,u){if(1&o&&(e.j41(0,"div",3),e.nVh(1,Ce,1,3,"cue-document-info",4),e.nVh(2,xe,3,0,"cue-flexcontainer",5)(3,we,3,1,"cue-flexcontainer",5),e.j41(4,"div",6),e.eu8(5,null,1),e.k0s(),e.nVh(7,Me,1,2,"cue-logo-link",7),e.k0s()),2&o){const t=e.XpG();e.R7$(),e.vxM(t.showDocumentInfo()&&"ready"===t.state()?1:-1),e.R7$(),e.vxM("loading"===t.state()?2:"error"===t.state()?3:-1),e.R7$(5),e.vxM(t.showLogo()?7:-1)}}function De(o,u){1&o&&e.eu8(0)}function Pe(o,u){if(1&o&&(e.j41(0,"cue-card",2),e.DNE(1,De,1,0,"ng-container",9),e.k0s()),2&o){const t=e.XpG(),n=e.sdS(1);e.Y8G("variant",t._cardVariant())("padded",!0),e.R7$(),e.Y8G("ngTemplateOutlet",n)}}function Fe(o,u){1&o&&e.eu8(0)}function Re(o,u){if(1&o&&e.DNE(0,Fe,1,0,"ng-container",9),2&o){e.XpG();const t=e.sdS(1);e.Y8G("ngTemplateOutlet",t)}}const Ie=[".fragments",".dxf",".pdf",".png",".jpg",".jpeg",".svg",".gif",".webp",".bmp",".avif",".apng",".xlsx",".xls",".csv",".json",".jsonld",".xml",".css",".js",".html",".htm",".sh",".txt",".rst",".md"];let Ve=(()=>{class o{set _viewerHostRef(t){if(this._viewerHost=t,t&&this._lastRenderArgs){const{url:n,suffix:i,page:a,viewerTypeOverride:l}=this._lastRenderArgs;this._renderViewer(n,i,a,l)}}_viewerHost;_lastRenderArgs;currentViewerRef;cue=(0,r.hFB)(void 0);uuid=(0,r.hFB)(void 0);projectId=(0,r.hFB)(void 0);showDocumentInfo=(0,r.hFB)(!0,{transform:r.L39});showLogo=(0,r.hFB)(!1,{transform:r.L39});_uuidOnly=(0,f.EW)(()=>{const t=this.uuid();return t?t.split("?")[0].trim():void 0});extraMenuItems=(0,r.hFB)([]);portalBaseURL=(0,r.hFB)("https://cue.qaecy.com");variant=(0,r.hFB)("none");_cardVariant=(0,f.EW)(()=>this.variant());state=(0,c.vPA)("idle");errorMessage=(0,c.vPA)(null);resolvedUrl=(0,c.vPA)(null);resolvedSuffix=(0,c.vPA)(null);_docSubject=(0,c.vPA)("");_alternatives=(0,c.vPA)([]);_originalUuid=(0,c.vPA)(null);_originalDocSuffix=(0,c.vPA)(null);_cueSnapshot=null;_projectIdSnapshot=null;_inputWarningTimer;_blobUrls=new Set;_docInfoHandlers=new pe;_menuItems=(0,f.EW)(()=>{const t=[],n=this._originalUuid(),i=this._originalDocSuffix();n&&i&&t.push({icon:"download",label:"Download file",action:()=>this._downloadOriginal()});const a=this._alternatives();if(a.length>1){const l=this.resolvedSuffix();t.push({icon:"document",label:"Alternative representation",children:a.map(s=>({label:s.original?`Original (${s.suffix.replace(".","").toUpperCase()})`:s.suffix.replace(".","").toUpperCase(),tooltip:l===s.suffix?"Currently shown":void 0,action:()=>this._switchToAlternative(s)}))})}return t.push(...this.extraMenuItems()),t});constructor(){this._inputWarningTimer=setTimeout(()=>{this.cue()||console.warn('[cue-document-viewer] Required input "cue" is not set. Pass an authenticated Cue SDK instance.'),this.uuid()||console.warn('[cue-document-viewer] Required input "uuid" is not set. Pass the document UUID to display.'),this.projectId()||console.warn('[cue-document-viewer] Required input "projectId" is not set. Pass the Cue project ID the document belongs to.')},3e3),(0,c.QZP)(()=>{const t=this.cue(),n=this.uuid(),i=this.projectId();t&&n&&i?this._load(t,n,i):this.state.set("idle")})}ngOnDestroy(){clearTimeout(this._inputWarningTimer),this._blobUrls.forEach(t=>URL.revokeObjectURL(t))}_load(t,n,i){var a=this;return(0,p.A)(function*(){if(t&&n&&i){a.state.set("loading"),a.resolvedUrl.set(null),a.resolvedSuffix.set(null),a.errorMessage.set(null),a._docSubject.set(""),a._originalUuid.set(null),a._originalDocSuffix.set(null),a._alternatives.set([]),a._viewerHost?.clear(),a.currentViewerRef?.destroy(),a.currentViewerRef=void 0,a._lastRenderArgs=void 0;try{a._cueSnapshot=t,a._projectIdSnapshot=i;const{uuid:l,page:s}=function Te(o){const[u,t]=o.split("?"),n=u.trim();let i=null;if(t){const l=new URLSearchParams(t).get("page");if(null!==l){const s=parseInt(l,10);!isNaN(s)&&s>0&&(i=s)}}return{uuid:n,page:i}}(n),h=t.createProjectDocuments(i),v=(yield h.fetchDocumentData([l]))[l];if(!v)throw new Error(`Document '${l}' not found in project '${i}'.`);a._docSubject.set(v.subject??""),a._originalUuid.set(l),a._originalDocSuffix.set(v.suffix);const w=yield h.fetchAlternativeRepresentations(l);a._alternatives.set([{uuid:l,suffix:v.suffix,original:!0},...w.filter(M=>M.id!==l).map(M=>({uuid:M.id,suffix:M.suffix,original:!1,remoteRelativePath:M.remoteRelativePath}))]);const{uuid:C,suffix:P,remoteRelativePath:j}=function je(o,u){const t=[o,...u];let n,i=1/0;for(const a of t){const l=Ie.indexOf(a.suffix);-1!==l&&l<i&&(i=l,n=a)}return n?{uuid:n.id,suffix:n.suffix,remoteRelativePath:n.remoteRelativePath}:{uuid:o.id,suffix:o.suffix}}(v,w),V=j?yield a._toBlobUrl(t,t.storage.getAltRepDownloadUrl(j),i):yield a._toBlobUrl(t,t.storage.getDownloadUrl(i,C,P),i);a.resolvedUrl.set(V),a.resolvedSuffix.set(P);const Le=[".eml",".msg",".emlx",".mbx"].includes(v.suffix)&&".json"===P?"email":void 0;yield a._renderViewer(V,P,s,Le),a.state.set("ready")}catch(l){const s=l instanceof Error?l.message:String(l);console.error("[CueDocumentViewerWC] Failed to load document:",s),a.errorMessage.set(s),a.state.set("error")}}else a.state.set("idle")})()}_toBlobUrl(t,n,i){var a=this;return(0,p.A)(function*(){const l=yield t.auth.authenticatedFetch(n,{headers:{"cue-project-id":i}});if(!l.ok)throw new Error(`Failed to fetch document: ${l.status} ${l.statusText}`);const s=URL.createObjectURL(yield l.blob());return a._blobUrls.add(s),s})()}_renderViewer(t,n,i,a){var l=this;return(0,p.A)(function*(){try{const{DocumentViewer:s}=yield Promise.all([d.e(3418),d.e(3036)]).then(d.bind(d,3036)),{DocumentViewerSettings:h}=yield d.e(3418).then(d.bind(d,3418));l._viewerHost?.clear(),l.currentViewerRef?.destroy();const y=new h;if(null!==i&&(y.pdf.page=String(i)),!l._viewerHost)throw new Error("viewerHost is not yet available \u2014 view has not been initialized.");l._lastRenderArgs={url:t,suffix:n,page:i,viewerTypeOverride:a},l.currentViewerRef=l._viewerHost.createComponent(s),l.currentViewerRef.setInput("url",t),l.currentViewerRef.setInput("suffix",n),l.currentViewerRef.setInput("settings",y),a&&l.currentViewerRef.setInput("viewerTypeOverride",a)}catch(s){throw new Error(`Failed to load viewer component: ${s instanceof Error?s.message:String(s)}`)}})()}_switchToAlternative(t){var n=this;return(0,p.A)(function*(){const i=n._cueSnapshot,a=n._projectIdSnapshot;if(i&&a)try{const l=t.remoteRelativePath?yield n._toBlobUrl(i,i.storage.getAltRepDownloadUrl(t.remoteRelativePath),a):yield n._toBlobUrl(i,i.storage.getDownloadUrl(a,t.uuid,t.suffix),a);n.resolvedUrl.set(l),n.resolvedSuffix.set(t.suffix),yield n._renderViewer(l,t.suffix,null)}catch(l){console.error("[CueDocumentViewerWC] Failed to switch to alternative:",l)}})()}_downloadOriginal(){var t=this;return(0,p.A)(function*(){const n=t._cueSnapshot,i=t._projectIdSnapshot,a=t._originalUuid(),l=t._originalDocSuffix();if(n&&i&&a&&l)try{const s=yield n.storage.downloadBlob(i,a,l);(0,_e.KE)(s,`${a}${l}`)}catch(s){console.error("[CueDocumentViewerWC] Failed to download original:",s)}})()}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=e.VBU({type:o,selectors:[["cue-document-viewer-wc"]],viewQuery:function(n,i){if(1&n&&e.GBs(ye,5,e.c1b),2&n){let a;e.mGM(a=e.lsd())&&(i._viewerHostRef=a.first)}},inputs:{cue:[1,"cue"],uuid:[1,"uuid"],projectId:[1,"projectId"],showDocumentInfo:[1,"showDocumentInfo"],showLogo:[1,"showLogo"],extraMenuItems:[1,"extraMenuItems"],portalBaseURL:[1,"portalBaseURL"],variant:[1,"variant"]},decls:4,vars:1,consts:[["body",""],["viewerHost",""],[2,"height","100%","width","100%",3,"variant","padded"],[2,"display","flex","flex-direction","column","height","100%","width","100%","position","relative"],[3,"subject","handlers","menuItems"],["direction","column","align","center","justify","center",2,"flex","1","width","100%"],[2,"flex","1","min-height","0","overflow","hidden"],[2,"position","absolute","bottom","12px","right","12px","z-index","5",3,"projectId","resourceId"],[2,"color","#c44","font-size","13px"],[4,"ngTemplateOutlet"]],template:function(n,i){1&n&&(e.DNE(0,Ee,8,3,"ng-template",null,0,e.C5r),e.nVh(2,Pe,2,3,"cue-card",2)(3,Re,1,1,"ng-container")),2&n&&(e.R7$(2),e.vxM("none"!==i.variant()?2:3))},dependencies:[_.MD,_.T3,m.n,g.Typography,me,ve.Card,be.x],styles:["[_nghost-%COMP%]{display:contents}"],changeDetection:0})}return o})()},2065(I,x,d){function f(_,m,g="text/plain"){return function p(_,m="data.zip"){const g=document.createElement("a"),b=URL.createObjectURL(_);g.href=b,g.download=m,document.body.appendChild(g),g.click(),document.body.removeChild(g),URL.revokeObjectURL(b)}(new Blob([_],{type:g}),m)}function c(_,m){const g=document.createElement("a");g.style.display="hidden",g.setAttribute("href",window.URL.createObjectURL(_)),g.setAttribute("download",m),document.body.appendChild(g),g.click(),g.remove()}d.d(x,{KE:()=>c,YN:()=>f})},7573(I,x,d){d.d(x,{E:()=>p});const p={qcy:"https://dev.qaecy.com/ont#","qcy-e":"https://dev.qaecy.com/enum#","qcy-f":"https://dev.qaecy.com/functions#",obc:"https://w3id.org/obc#",dicc:"https://w3id.org/digitalconstruction/0.5/Contexts#",dicv:"https://w3id.org/digitalconstruction/0.5/Variables#",dice:"https://w3id.org/digitalconstruction/0.5/Entities#",dicp:"https://w3id.org/digitalconstruction/0.5/Processes#",dica:"https://w3id.org/digitalconstruction/0.5/Agents#",dici:"https://w3id.org/digitalconstruction/0.5/Information#",dicbm:"https://w3id.org/digitalconstruction/0.5/Materials#",dicob:"https://w3id.org/digitalconstruction/0.5/Occupancy#",dicl:"https://w3id.org/digitalconstruction/0.5/Lifecycle#",dices:"https://w3id.org/digitalconstruction/0.5/Energy#",dicu:"https://w3id.org/digitalconstruction/0.5/Units#",diclvl:"https://w3id.org/digitalconstruction/0.5/Levels#",dicstg:"https://w3id.org/digitalconstruction/0.5/Stages#"}}}]);
package/2516.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[2516],{2014(z,N,g){g.d(N,{z:()=>n});var v=g(7705),p=g(2271),u=g(5547);const I=["*"];let n=(()=>{class m{justify=(0,v.hFB)("start");size=(0,v.hFB)("l");widthStyle=(0,p.EW)(()=>`var(--cue-button-label-padding-${this.size()}-x)`);static \u0275fac=function(T){return new(T||m)};static \u0275cmp=u.VBU({type:m,selectors:[["cue-button-padder"]],inputs:{justify:[1,"justify"],size:[1,"size"]},ngContentSelectors:I,decls:2,vars:4,template:function(T,P){1&T&&(u.NAR(),u.rj2(0,"div"),u.SdG(1),u.eux()),2&T&&u.xc7("justify-content",P.justify())("min-width",P.widthStyle())},styles:["div[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:1px}"]})}return m})()},7517(z,N,g){g.d(N,{P:()=>Q});var v=g(7705),p=g(2271),u=g(2245),I=g(1359),n=g(5381),m=g(5547),d=g(5802);const y=(F,A)=>A.category;function T(F,A){if(1&F){const D=m.RV6();m.j41(0,"cue-flexcontainer",1)(1,"cue-checkbox",2),m.bIt("checkedChange",function(){d.eBV(D);const M=m.XpG();return d.Njj(M.toggleAll())}),m.k0s()()}if(2&F){const D=m.XpG();m.R7$(),m.Y8G("checked",D.allVisible())}}function P(F,A){if(1&F&&(m.j41(0,"cue-typography",3),m.EFF(1),m.k0s()),2&F){const D=m.XpG().$implicit;m.R7$(),m.JRh(D.category)}}function W(F,A){if(1&F){const D=m.RV6();m.j41(0,"cue-flexcontainer",1)(1,"cue-checkbox",4),m.bIt("checkedChange",function(){const M=d.eBV(D).$implicit,S=m.XpG(2);return d.Njj(S.toggleSingle(M))}),m.k0s(),m.j41(2,"cue-typography",5),m.bIt("click",function(){const M=d.eBV(D).$implicit,S=m.XpG(2);return d.Njj(S.toggleSingle(M))}),m.EFF(3),m.k0s()()}if(2&F){const D=A.$implicit;m.R7$(),m.Y8G("checked",D.visible)("color",D.color),m.R7$(2),m.JRh(D.label)}}function j(F,A){if(1&F&&(m.nVh(0,P,2,1,"cue-typography",3),m.Z7z(1,W,4,3,"cue-flexcontainer",1,m.Vm6)),2&F){const D=A.$implicit;m.vxM(D.category?0:-1),m.R7$(),m.Dyx(D.items)}}let Q=(()=>{class F{layers=(0,v.geq)([]);visibilityChange=(0,v.CGW)();layerChange=(0,v.CGW)();visibilityAll=(0,v.CGW)();showCheckAll=(0,p.EW)(()=>this.layers().length>1);allVisible=(0,p.EW)(()=>this.layers().every(D=>D.visible));groupedLayers=(0,p.EW)(()=>{const D=[];for(const E of this.layers()){const M=E.category,S=D.find(q=>q.category===M);S?S.items.push(E):D.push({category:M,items:[E]})}return D});toggleAll(){const D=this.allVisible(),E=this.layers().map(M=>(M.visible=!D,M));this.layers.update(()=>[...E]),this.visibilityAll.emit(D),this.emitChange()}toggleSingle(D){D.visible=!D.visible,this.layerChange.emit(D),this.layers.update(()=>[...this.layers()]),this.emitChange()}emitChange(){this.visibilityChange.emit(this.layers())}static \u0275fac=function(E){return new(E||F)};static \u0275cmp=m.VBU({type:F,selectors:[["cue-layer-legend"]],inputs:{layers:[1,"layers"]},outputs:{layers:"layersChange",visibilityChange:"visibilityChange",layerChange:"layerChange",visibilityAll:"visibilityAll"},decls:4,vars:1,consts:[["direction","column"],["align","center","justify","start",2,"width","100%"],["size","s",3,"checkedChange","checked"],["variant","label",2,"margin-top","4px","opacity","0.6"],["size","s",3,"checkedChange","checked","color"],[2,"cursor","pointer",3,"click"]],template:function(E,M){1&E&&(m.j41(0,"cue-flexcontainer",0),m.nVh(1,T,2,1,"cue-flexcontainer",1),m.Z7z(2,j,3,1,null,null,y),m.k0s()),2&E&&(m.R7$(),m.vxM(M.showCheckAll()?1:-1),m.R7$(),m.Dyx(M.groupedLayers()))},dependencies:[n.n,u.Typography,I.Checkbox],encapsulation:2,changeDetection:0})}return F})()},8334(z,N,g){g.d(N,{o:()=>I});var v=g(7705),p=g(5547);const u=["*"];let I=(()=>{class n{label=v.hFB.required();active=(0,v.geq)(!1);static \u0275fac=function(y){return new(y||n)};static \u0275cmp=p.VBU({type:n,selectors:[["cue-tab"]],hostVars:1,hostBindings:function(y,T){2&y&&p.Avn("hidden",!T.active())},inputs:{label:[1,"label"],active:[1,"active"]},outputs:{active:"activeChange"},ngContentSelectors:u,decls:1,vars:0,template:function(y,T){1&y&&(p.NAR(),p.SdG(0))},styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;flex:1;min-height:0}[hidden][_nghost-%COMP%]{display:none!important}"]})}return n})()},6455(z,N,g){g.d(N,{t:()=>F});var v=g(7705),p=g(5802),u=g(2271),I=g(8334),n=g(5187),m=g(9769),d=g(5547);const y=["*"],T=(A,D)=>D.label();function P(A,D){if(1&A&&(d.j41(0,"cue-card",1),d.eu8(1,2),d.k0s()),2&A){const E=d.XpG(),M=d.sdS(3);d.Y8G("variant",E._cardVariant())("padded",!1),d.R7$(),d.Y8G("ngTemplateOutlet",M)}}function W(A,D){if(1&A&&d.eu8(0,2),2&A){d.XpG();const E=d.sdS(3);d.Y8G("ngTemplateOutlet",E)}}function j(A,D){if(1&A){const E=d.RV6();d.j41(0,"button",6),d.bIt("click",function(){const S=p.eBV(E).$index,q=d.XpG(2);return p.Njj(q.setActive(S))}),d.EFF(1),d.k0s()}if(2&A){const E=D.$implicit,M=D.$index,S=d.XpG(2);d.AVh("active",S.activeIndex()===M),d.R7$(),d.SpI(" ",E.label()," ")}}function Q(A,D){if(1&A&&(d.j41(0,"div",3),d.Z7z(1,j,2,3,"button",4,T),d.k0s(),d.j41(3,"div",5),d.SdG(4),d.k0s()),2&A){const E=d.XpG();d.R7$(),d.Dyx(E.tabs())}}let F=(()=>{class A{tabs=(0,v.tEk)(I.o);activeIndex=(0,p.vPA)(0);variant=(0,v.hFB)("none");_cardVariant=(0,u.EW)(()=>"none"===this.variant()?"default":this.variant());constructor(){(0,p.QZP)(()=>{const E=this.tabs(),M=this.activeIndex();E.forEach((S,q)=>S.active.set(q===M))})}setActive(E){this.activeIndex.set(E)}static \u0275fac=function(M){return new(M||A)};static \u0275cmp=d.VBU({type:A,selectors:[["cue-tabs"]],contentQueries:function(M,S,q){1&M&&d.C6U(q,S.tabs,I.o,4),2&M&&d.NyB()},inputs:{variant:[1,"variant"]},ngContentSelectors:y,decls:4,vars:1,consts:[["inner",""],[2,"height","100%","width","100%","display","flex","flex-direction","column","overflow","hidden",3,"variant","padded"],[3,"ngTemplateOutlet"],[1,"tabs-header"],[1,"tab-button",3,"active"],[1,"tabs-content"],[1,"tab-button",3,"click"]],template:function(M,S){1&M&&(d.NAR(),d.nVh(0,P,2,3,"cue-card",1)(1,W,1,1,"ng-container",2),d.DNE(2,Q,5,0,"ng-template",null,0,d.C5r)),2&M&&d.vxM("none"!==S.variant()?0:1)},dependencies:[n.Card,m.T3],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;box-sizing:border-box;border-radius:var(--cue-card-border-radius);border:1px solid var(--cue-card-border-color);background-color:var(--cue-default);color:var(--cue-defaultContrast);overflow:hidden}.tabs-header[_ngcontent-%COMP%]{display:flex;border-bottom:1px solid var(--cue-card-border-color);background-color:var(--background-color, var(--cue-default))}.tab-button[_ngcontent-%COMP%]{padding:10px 16px;background:none;border:none;border-bottom:2px solid transparent;cursor:pointer;color:inherit;font-family:var(--cue-font-family);font-size:var(--cue-font-s-size);line-height:var(--cue-font-s-line-height);opacity:.6;transition:opacity .15s,border-bottom-color .15s}.tab-button[_ngcontent-%COMP%]:hover{opacity:.9}.tab-button.active[_ngcontent-%COMP%]{border-bottom-color:currentColor;opacity:1;font-weight:500}.tabs-content[_ngcontent-%COMP%]{padding:var(--cue-card-padding-y) var(--cue-card-padding-x);flex:1;min-height:0;box-sizing:border-box;display:flex;flex-direction:column}"]})}return A})()},2481(z,N,g){g.d(N,{CueSparqlClientSdk:()=>In});var v=g(7705),p=g(2271),u=g(5802),I=g(467),n=g(5547),m=g(6019),d=g(7089),y=g(7717),T=g(5661),P=g(1096),W=g(9937),j=g(6117),Q=g(356),F=g(6279);function A(e){return Array.isArray?Array.isArray(e):"[object Array]"===Ae(e)}function E(e){return null==e?"":function D(e){if("string"==typeof e)return e;if("bigint"==typeof e)return e.toString();const s=e+"";return"0"==s&&1/e==-1/0?"-0":s}(e)}function M(e){return"string"==typeof e}function S(e){return"number"==typeof e}function Re(e){return"object"==typeof e}function L(e){return null!=e}function Z(e){return!e.trim().length}function Ae(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const ae="Invalid doc index: must be a non-negative integer within the bounds of the docs array",Ee=Object.prototype.hasOwnProperty;var Ye=class{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(t=>{const i=xe(t);this._keys.push(i),this._keyMap[i.id]=i,s+=i.weight}),this._keys.forEach(t=>{t.weight/=s})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function xe(e){let s=null,t=null,i=null,r=1,o=null;if(M(e)||A(e))i=e,s=Te(e),t=ee(e);else{if(!Ee.call(e,"name"))throw new Error("Missing name property in key");const a=e.name;if(i=a,Ee.call(e,"weight")&&void 0!==e.weight&&(r=e.weight,r<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(ee(a)));s=Te(a),t=ee(a),o=e.getFn??null}return{path:s,id:t,weight:r,src:i,getFn:o}}function Te(e){return A(e)?e:e.split(".")}function ee(e){return A(e)?e.join("."):e}const b=Object.freeze({isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,s)=>e.score===s.score?e.idx<s.idx?-1:1:e.score<s.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,useTokenSearch:!1,tokenize:void 0,tokenMatch:"any",getFn:function Je(e,s){const t=[];let i=!1;const r=(o,a,c,l)=>{if(L(o))if(a[c]){const f=o[a[c]];if(!L(f))return;if(c===a.length-1&&(M(f)||S(f)||function q(e){return!0===e||!1===e||function We(e){return Re(e)&&null!==e}(e)&&"[object Boolean]"==Ae(e)}(f)||"bigint"==typeof f))t.push(void 0!==l?{v:E(f),i:l}:E(f));else if(A(f)){i=!0;for(let h=0,_=f.length;h<_;h+=1)r(f[h],a,c+1,h)}else a.length&&r(f,a,c+1,l)}else t.push(void 0!==l?{v:o,i:l}:o)};return r(e,M(s)?s.split("."):s,0),i?t:t[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1});var ce=class{constructor({getFn:e=b.getFn,fieldNormWeight:s=b.fieldNormWeight}={}){this.norm=function Ze(e=1,s=3){const t=new Map,i=Math.pow(10,s);return{get(r){let o=1,a=!1;for(let l=0;l<r.length;l++)32===r.charCodeAt(l)?a||(o++,a=!0):a=!1;if(t.has(o))return t.get(o);const c=Math.round(i/Math.pow(o,.5*e))/i;return t.set(o,c),c},clear(){t.clear()}}}(s,3),this.getFn=e,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((s,t)=>{this._keysMap[s.id]=t})}create(){if(this.isCreated||!this.docs.length)return;this.isCreated=!0;const e=this.docs.length;this.records=new Array(e);let s=0;if(M(this.docs[0]))for(let t=0;t<e;t++){const i=this._createStringRecord(this.docs[t],t);i&&(this.records[s++]=i)}else for(let t=0;t<e;t++)this.records[s++]=this._createObjectRecord(this.docs[t],t);this.records.length=s,this.norm.clear()}add(e,s){if(!Number.isInteger(s)||s<0)throw new Error(ae);if(M(e)){const i=this._createStringRecord(e,s);return i&&this.records.push(i),i}const t=this._createObjectRecord(e,s);return this.records.push(t),t}removeAt(e){if(!Number.isInteger(e)||e<0)throw new Error(ae);for(let s=0,t=this.records.length;s<t;s+=1)if(this.records[s].i===e){this.records.splice(s,1);break}for(let s=0,t=this.records.length;s<t;s+=1)this.records[s].i>e&&(this.records[s].i-=1)}removeAll(e){const s=new Set;for(const i of e)Number.isInteger(i)&&i>=0&&s.add(i);if(0===s.size)return;this.records=this.records.filter(i=>!s.has(i.i));const t=Array.from(s).sort((i,r)=>i-r);for(const i of this.records){let r=0,o=t.length;for(;r<o;){const a=r+o>>>1;t[a]<i.i?r=a+1:o=a}i.i-=r}}getValueForItemAtKeyId(e,s){return e[this._keysMap[s]]}size(){return this.records.length}_createStringRecord(e,s){return!L(e)||Z(e)?null:{v:e,i:s,n:this.norm.get(e)}}_createObjectRecord(e,s){const t={i:s,$:{}};for(let i=0,r=this.keys.length;i<r;i++){const o=this.keys[i],a=o.getFn?o.getFn(e):this.getFn(e,o.path);if(L(a))if(A(a)){const c=[];for(let l=0,f=a.length;l<f;l+=1){const h=a[l];if(L(h))if(M(h)){if(!Z(h)){const _={v:h,i:l,n:this.norm.get(h)};c.push(_)}}else if(L(h.v)){const _=M(h.v)?h.v:E(h.v);if(!Z(_)){const C={v:_,i:h.i,n:this.norm.get(_)};c.push(C)}}}t.$[i]=c}else if(M(a)&&!Z(a)){const c={v:a,n:this.norm.get(a)};t.$[i]=c}}return t}toJSON(){return{keys:this.keys.map(({getFn:e,...s})=>s),records:this.records}}};function Fe(e,s,{getFn:t=b.getFn,fieldNormWeight:i=b.fieldNormWeight}={}){const r=new ce({getFn:t,fieldNormWeight:i});return r.setKeys(e.map(xe)),r.setSources(s),r.create(),r}function et(e,{getFn:s=b.getFn,fieldNormWeight:t=b.fieldNormWeight}={}){const{keys:i,records:r}=e,o=new ce({getFn:s,fieldNormWeight:t});return o.setKeys(i),o.setIndexRecords(r),o}function st(e){const s={};for(let t=0,i=e.length;t<i;t+=1){const r=e.charAt(t);s[r]=(s[r]||0)|1<<i-t-1}return s}function le(e){if(e.length<=1)return e;e.sort((t,i)=>t[0]-i[0]||t[1]-i[1]);const s=[e[0]];for(let t=1,i=e.length;t<i;t+=1){const r=s[s.length-1],o=e[t];o[0]<=r[1]+1?r[1]=Math.max(r[1],o[1]):s.push(o)}return s}const ke={\u0142:"l",\u0141:"L",\u0111:"d",\u0110:"D",\u00f8:"o",\u00d8:"O",\u0127:"h",\u0126:"H",\u0167:"t",\u0166:"T",\u0131:"i",\u00df:"ss"},it=new RegExp("["+Object.keys(ke).join("")+"]","g"),Y="function"==typeof String.prototype.normalize?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"").replace(it,s=>ke[s]):e=>e;var ue=class{constructor(e,{location:s=b.location,threshold:t=b.threshold,distance:i=b.distance,includeMatches:r=b.includeMatches,findAllMatches:o=b.findAllMatches,minMatchCharLength:a=b.minMatchCharLength,isCaseSensitive:c=b.isCaseSensitive,ignoreDiacritics:l=b.ignoreDiacritics,ignoreLocation:f=b.ignoreLocation}={}){if(this.options={location:s,threshold:t,distance:i,includeMatches:r,findAllMatches:o,minMatchCharLength:a,isCaseSensitive:c,ignoreDiacritics:l,ignoreLocation:f},e=c?e:e.toLowerCase(),e=l?Y(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const h=(C,x)=>{this.chunks.push({pattern:C,alphabet:st(C),startIndex:x})},_=this.pattern.length;if(_>32){let C=0;const x=_%32,R=_-x;for(;C<R;)h(this.pattern.substr(C,32),C),C+=32;if(x){const k=_-32;h(this.pattern.substr(k),k)}}else h(this.pattern,0)}searchIn(e){const{isCaseSensitive:s,ignoreDiacritics:t,includeMatches:i}=this.options;if(e=s?e:e.toLowerCase(),e=t?Y(e):e,this.pattern===e){const R={isMatch:!0,score:0};return i&&(R.indices=[[0,e.length-1]]),R}const{location:r,distance:o,threshold:a,findAllMatches:c,minMatchCharLength:l,ignoreLocation:f}=this.options,h=[];let _=0,C=!1;this.chunks.forEach(({pattern:R,alphabet:k,startIndex:w})=>{const{isMatch:$,score:X,indices:H}=function nt(e,s,t,{location:i=b.location,distance:r=b.distance,threshold:o=b.threshold,findAllMatches:a=b.findAllMatches,minMatchCharLength:c=b.minMatchCharLength,includeMatches:l=b.includeMatches,ignoreLocation:f=b.ignoreLocation}={}){if(s.length>32)throw new Error("Pattern length exceeds max of 32.");const h=s.length,_=e.length,C=Math.max(0,Math.min(i,_));let x=o,R=C;const k=(B,V)=>{const O=B/h;if(f)return O;const J=Math.abs(C-V);return r?O+J/r:J?1:O},w=c>1||l,$=w?Array(_):[];let X;for(;(X=e.indexOf(s,R))>-1;){const B=k(0,X);if(x=Math.min(B,x),R=X+h,w){let V=0;for(;V<h;)$[X+V]=1,V+=1}}R=-1;let H=[],re=1,Ge=0,oe=h+_;const wn=1<<h-1;for(let B=0;B<h;B+=1){let V=0,O=oe;for(;V<O;)k(B,C+O)<=x?V=O:oe=O,O=Math.floor((oe-V)/2+V);oe=O;let J=Math.max(1,C-O+1);const Me=a?_:Math.min(C+O,_)+h,K=Array(Me+2);K[Me+1]=(1<<B)-1;for(let G=Me;G>=J;G-=1){const De=G-1;if(K[G]=(K[G+1]<<1|1)&t[e[De]],B&&(K[G]|=(H[G+1]|H[G])<<1|1|H[G+1]),K[G]&wn&&(re=k(B,De),re<=x)){if(x=re,R=De,Ge=B,R<=C)break;J=Math.max(1,2*C-R)}}if(k(B+1,C)>x)break;H=K}if(w&&R>=0){const B=Math.min(_-1,R+h-1+Ge);for(let V=R;V<=B;V+=1)t[e[V]]&&($[V]=1)}const be={isMatch:R>=0,score:Math.max(.001,re)};if(w){const B=function tt(e=[],s=b.minMatchCharLength){const t=[];let i=-1,r=-1,o=0;for(let a=e.length;o<a;o+=1){const c=e[o];c&&-1===i?i=o:!c&&-1!==i&&(r=o-1,r-i+1>=s&&t.push([i,r]),i=-1)}return e[o-1]&&o-i>=s&&t.push([i,o-1]),t}($,c);B.length?l&&(be.indices=B):be.isMatch=!1}return be}(e,R,k,{location:r+w,distance:o,threshold:a,findAllMatches:c,minMatchCharLength:l,includeMatches:i,ignoreLocation:f});$&&(C=!0),_+=X,$&&H&&h.push(...H)});const x={isMatch:C,score:C?_/this.chunks.length:1};return C&&i&&(x.indices=le(h)),x}};const rt=new Set(["fuzzy","include"]);function ot(e){return e.startsWith("inverse")}const de=[{type:"exact",multiRegex:/^="(.*)"$/,singleRegex:/^=(.*)$/,create:e=>({type:"exact",search(s){const t=s===e;return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}})},{type:"include",multiRegex:/^'"(.*)"$/,singleRegex:/^'(.*)$/,create:e=>({type:"include",search(s){let i,t=0;const r=[],o=e.length;for(;(i=s.indexOf(e,t))>-1;)t=i+o,r.push([i,t-1]);const a=!!r.length;return{isMatch:a,score:a?0:1,indices:r}}})},{type:"prefix-exact",multiRegex:/^\^"(.*)"$/,singleRegex:/^\^(.*)$/,create:e=>({type:"prefix-exact",search(s){const t=s.startsWith(e);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}})},{type:"inverse-prefix-exact",multiRegex:/^!\^"(.*)"$/,singleRegex:/^!\^(.*)$/,create:e=>({type:"inverse-prefix-exact",search(s){const t=!s.startsWith(e);return{isMatch:t,score:t?0:1,indices:[0,s.length-1]}}})},{type:"inverse-suffix-exact",multiRegex:/^!"(.*)"\$$/,singleRegex:/^!(.*)\$$/,create:e=>({type:"inverse-suffix-exact",search(s){const t=!s.endsWith(e);return{isMatch:t,score:t?0:1,indices:[0,s.length-1]}}})},{type:"suffix-exact",multiRegex:/^"(.*)"\$$/,singleRegex:/^(.*)\$$/,create:e=>({type:"suffix-exact",search(s){const t=s.endsWith(e);return{isMatch:t,score:t?0:1,indices:[s.length-e.length,s.length-1]}}})},{type:"inverse-exact",multiRegex:/^!"(.*)"$/,singleRegex:/^!(.*)$/,create:e=>({type:"inverse-exact",search(s){const t=-1===s.indexOf(e);return{isMatch:t,score:t?0:1,indices:[0,s.length-1]}}})},{type:"fuzzy",multiRegex:/^"(.*)"$/,singleRegex:/^(.*)$/,create:(e,s={})=>{const t=new ue(e,{location:s.location??b.location,threshold:s.threshold??b.threshold,distance:s.distance??b.distance,includeMatches:s.includeMatches??b.includeMatches,findAllMatches:s.findAllMatches??b.findAllMatches,minMatchCharLength:s.minMatchCharLength??b.minMatchCharLength,isCaseSensitive:s.isCaseSensitive??b.isCaseSensitive,ignoreDiacritics:s.ignoreDiacritics??b.ignoreDiacritics,ignoreLocation:s.ignoreLocation??b.ignoreLocation});return{type:"fuzzy",search:i=>t.searchIn(i)}}}],Se=de.length;function Ie(e,s){const t=e.match(s);return t?t[1]:null}const he=[];function fe(...e){he.push(...e)}function te(e,s){for(let t=0,i=he.length;t<i;t+=1){const r=he[t];if(r.condition(e,s))return new r(e,s)}return new ue(e,s)}const ne_AND="$and",me=e=>!(!e.$and&&!e.$or),we=e=>({[ne_AND]:Object.keys(e).map(s=>({[s]:e[s]}))});function Be(e,s,{auto:t=!0}={}){const i=r=>{if(M(r)){const l={keyId:null,pattern:r};return t&&(l.searcher=te(r,s)),l}const o=Object.keys(r),a=(e=>!!e.$path)(r);if(!a&&o.length>1&&!me(r))return i(we(r));if((e=>!A(e)&&Re(e)&&!me(e))(r)){const l=a?r.$path:o[0],f=a?r.$val:r[l];if(!M(f))throw new Error((e=>`Invalid value for key ${e}`)(l));const h={keyId:ee(l),pattern:f};return t&&(h.searcher=te(f,s)),h}const c={children:[],operator:o[0]};return o.forEach(l=>{const f=r[l];A(f)&&f.forEach(h=>{c.children.push(i(h))})}),c};return me(e)||(e=we(e)),i(e)}function pe(e,{ignoreFieldNorm:s=b.ignoreFieldNorm}){let t=1;return e.forEach(({key:i,norm:r,score:o})=>{const a=i?i.weight:null;t*=Math.pow(0===o&&a?Number.EPSILON:o,(a||1)*(s?1:r))}),t}var mt=class{constructor(e){this.limit=e,this.heap=[]}get size(){return this.heap.length}shouldInsert(e){return this.size<this.limit||e<this.heap[0].score}insert(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):e.score<this.heap[0].score&&(this.heap[0]=e,this._sinkDown(0))}extractSorted(e){return this.heap.sort(e)}_bubbleUp(e){const s=this.heap;for(;e>0;){const t=e-1>>1;if(s[e].score<=s[t].score)break;const i=s[e];s[e]=s[t],s[t]=i,e=t}}_sinkDown(e){const s=this.heap,t=s.length;let i=e;do{const r=2*(e=i)+1,o=2*e+2;if(r<t&&s[r].score>s[i].score&&(i=r),o<t&&s[o].score>s[i].score&&(i=o),i!==e){const a=s[e];s[e]=s[i],s[i]=a}}while(i!==e)}};const yt=/[\p{L}\p{M}\p{N}_]+/gu,Ne=new WeakSet;function _e({isCaseSensitive:e=!1,ignoreDiacritics:s=!1,tokenize:t}={}){const i=function Ct(e){if("function"==typeof e){let s=!1;return t=>{const i=e(t);if(!s&&(s=!0,!Array.isArray(i)||i.some(r=>"string"!=typeof r)))throw new Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(i)?"array containing non-strings":typeof i}.`);return i}}return e instanceof RegExp?(e.global||function vt(e){Ne.has(e)||(Ne.add(e),console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`))}(e),s=>s.match(e)||[]):s=>s.match(yt)||[]}(t);return{tokenize:r=>(e||(r=r.toLowerCase()),s&&(r=Y(r)),i(r))}}function ye(e,s,t,i){const r=i.tokenize(s);if(!r.length)return;e.fieldCount++,e.docFieldCount.set(t,(e.docFieldCount.get(t)||0)+1);const o=new Set(r);let a=e.docTermFieldHits.get(t);a||(a=new Map,e.docTermFieldHits.set(t,a));for(const c of o)a.set(c,(a.get(c)||0)+1),e.df.set(c,(e.df.get(c)||0)+1)}function Pe(e,s,t,i){const{i:r,v:o,$:a}=s;if(void 0===o){if(a)for(let c=0;c<t;c++){const l=a[c];if(l)if(Array.isArray(l))for(const f of l)ye(e,f.v,r,i);else ye(e,l.v,r,i)}}else ye(e,o,r,i)}function Rt(e,s){const t=e.docFieldCount.get(s);if(void 0===t)return;e.fieldCount-=t,e.docFieldCount.delete(s);const i=e.docTermFieldHits.get(s);if(i){for(const[r,o]of i){const a=(e.df.get(r)||0)-o;a<=0?e.df.delete(r):e.df.set(r,a)}e.docTermFieldHits.delete(s)}}function Ve(e,s){if(0===s.length)return;const t=Array.from(new Set(s)).sort((c,l)=>c-l);for(const c of t)Rt(e,c);const i=c=>{let l=0,f=t.length;for(;l<f;){const h=l+f>>>1;t[h]<c?l=h+1:f=h}return c-l},r=t[0],o=new Map;for(const[c,l]of e.docFieldCount)o.set(c>r?i(c):c,l);e.docFieldCount=o;const a=new Map;for(const[c,l]of e.docTermFieldHits)a.set(c>r?i(c):c,l);e.docTermFieldHits=a}var je=(()=>{let e=class{constructor(s,t,i){this.options={...b,...t},this._keyStore=new Ye(this.options.keys),this._docs=s,this._myIndex=null,this._invertedIndex=null,this.setCollection(s,i),this._lastQuery=null,this._lastSearcher=null}_getSearcher(s){if(this._lastQuery===s)return this._lastSearcher;const t=te(s,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=s,this._lastSearcher=t,t}setCollection(s,t){if(this._docs=s,t&&!(t instanceof ce))throw new Error("Incorrect 'index' type");if(this._myIndex=t||Fe(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){const i=_e({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=function Mt(e,s,t){const i={fieldCount:0,df:new Map,docFieldCount:new Map,docTermFieldHits:new Map};for(const r of e)Pe(i,r,s,t);return i}(this._myIndex.records,this._myIndex.keys.length,i)}this._invalidateSearcherCache()}add(s){if(!L(s))return;this._docs.push(s);const t=this._myIndex.add(s,this._docs.length-1);if(this._invertedIndex&&t){const i=_e({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});!function Dt(e,s,t,i){Pe(e,s,t,i)}(this._invertedIndex,t,this._myIndex.keys.length,i)}this._invalidateSearcherCache()}remove(s=()=>!1){const t=[],i=[];for(let r=0,o=this._docs.length;r<o;r+=1)s(this._docs[r],r)&&(t.push(this._docs[r]),i.push(r));if(i.length){this._invertedIndex&&Ve(this._invertedIndex,i);const r=new Set(i);this._docs=this._docs.filter((o,a)=>!r.has(a)),this._myIndex.removeAll(i),this._invalidateSearcherCache()}return t}removeAt(s){if(!Number.isInteger(s)||s<0||s>=this._docs.length)throw new Error(ae);this._invertedIndex&&Ve(this._invertedIndex,[s]);const t=this._docs.splice(s,1)[0];return this._myIndex.removeAt(s),this._invalidateSearcherCache(),t}_invalidateSearcherCache(){this._lastQuery=null,this._lastSearcher=null}getIndex(){return this._myIndex}search(s,t){const{limit:i=-1}=t||{},{includeMatches:r,includeScore:o,shouldSort:a,sortFn:c,ignoreFieldNorm:l}=this.options;if(M(s)&&!s.trim()){let _=this._docs.map((C,x)=>({item:C,refIndex:x}));return S(i)&&i>-1&&(_=_.slice(0,i)),_}let h;if(S(i)&&i>0&&M(s)){const _=new mt(i);M(this._docs[0])?this._searchStringList(s,{heap:_,ignoreFieldNorm:l}):this._searchObjectList(s,{heap:_,ignoreFieldNorm:l}),h=_.extractSorted(c)}else h=M(s)?M(this._docs[0])?this._searchStringList(s):this._searchObjectList(s):this._searchLogical(s),function gt(e,{ignoreFieldNorm:s=b.ignoreFieldNorm}){e.forEach(t=>{t.score=pe(t.matches,{ignoreFieldNorm:s})})}(h,{ignoreFieldNorm:l}),a&&h.sort(c),S(i)&&i>-1&&(h=h.slice(0,i));return function _t(e,s,{includeMatches:t=b.includeMatches,includeScore:i=b.includeScore}={}){return e.map(r=>{const{idx:o}=r,a={item:s[o],refIndex:o};return t&&(a.matches=function pt(e){const s=[];return e.matches.forEach(t=>{if(!L(t.indices)||!t.indices.length)return;const i={indices:t.indices,value:t.value};t.key&&(i.key=t.key.id),t.idx>-1&&(i.refIndex=t.idx),s.push(i)}),s}(r)),i&&(a.score=r.score),a})}(h,this._docs,{includeMatches:r,includeScore:o})}_searchStringList(s,{heap:t,ignoreFieldNorm:i}={}){const r=this._getSearcher(s),o=this.options.useTokenSearch&&"all"===this.options.tokenMatch,{records:a}=this._myIndex,c=t?null:[];return a.forEach(({v:l,i:f,n:h})=>{if(!L(l))return;const _=r.searchIn(l);if(_.isMatch){const C={score:_.score,value:l,norm:h,indices:_.indices};o&&(C.matchedMask=_.matchedMask,C.matchedTerms=_.matchedTerms,C.termCount=_.termCount);const x=[C];if(!o||this._coversAllTokens(x)){const R={item:l,idx:f,matches:x};t?(R.score=pe(R.matches,{ignoreFieldNorm:i}),t.shouldInsert(R.score)&&t.insert(R)):c.push(R)}}}),c}_searchLogical(s){const t=Be(s,this.options),i=(c,l,f)=>{if(!("children"in c)){const{keyId:x,searcher:R}=c;let k;return null===x?(k=[],this._myIndex.keys.forEach((w,$)=>{k.push(...this._findMatches({key:w,value:l[$],searcher:R}))})):k=this._findMatches({key:this._keyStore.get(x),value:this._myIndex.getValueForItemAtKeyId(l,x),searcher:R}),k&&k.length?[{idx:f,item:l,matches:k}]:[]}const{children:h,operator:_}=c,C=[];for(let x=0,R=h.length;x<R;x+=1){const w=i(h[x],l,f);if(w.length)C.push(...w);else if("$and"===_)return[]}return C},r=this._myIndex.records,o=new Map,a=[];return r.forEach(({$:c,i:l})=>{if(L(c)){const f=i(t,c,l);f.length&&(o.has(l)||(o.set(l,{idx:l,item:c,matches:[]}),a.push(o.get(l))),f.forEach(({matches:h})=>{o.get(l).matches.push(...h)}))}}),a}_searchObjectList(s,{heap:t,ignoreFieldNorm:i}={}){const r=this._getSearcher(s),o=this.options.useTokenSearch&&"all"===this.options.tokenMatch,{keys:a,records:c}=this._myIndex,l=t?null:[];return c.forEach(({$:f,i:h})=>{if(!L(f))return;const _=[];let C=!1,x=!1;if(a.forEach((R,k)=>{const w=this._findMatches({key:R,value:f[k],searcher:r});w.length?(_.push(...w),w[0].hasInverse&&(x=!0)):C=!0}),(!x||!C)&&_.length&&(!o||this._coversAllTokens(_))){const R={idx:h,item:f,matches:_};t?(R.score=pe(R.matches,{ignoreFieldNorm:i}),t.shouldInsert(R.score)&&t.insert(R)):l.push(R)}}),l}_findMatches({key:s,value:t,searcher:i}){if(!L(t))return[];const r=[];if(A(t))t.forEach(({v:o,i:a,n:c})=>{if(!L(o))return;const l=i.searchIn(o);if(l.isMatch){const f={score:l.score,key:s,value:o,idx:a,norm:c,indices:l.indices,hasInverse:l.hasInverse};void 0!==l.termCount&&(f.matchedMask=l.matchedMask,f.matchedTerms=l.matchedTerms,f.termCount=l.termCount),r.push(f)}});else{const{v:o,n:a}=t,c=i.searchIn(o);if(c.isMatch){const l={score:c.score,key:s,value:o,norm:a,indices:c.indices,hasInverse:c.hasInverse};void 0!==c.termCount&&(l.matchedMask=c.matchedMask,l.matchedTerms=c.matchedTerms,l.termCount=c.termCount),r.push(l)}}return r}_coversAllTokens(s){const t=s.length?s[0].termCount:void 0;if(void 0===t)return!0;if(t<=31){let r=0;for(let o=0;o<s.length;o++)r|=s[o].matchedMask||0;return r===2**t-1}const i=new Set;for(let r=0;r<s.length;r++){const o=s[r].matchedTerms;if(o)for(const a of o)i.add(a)}return i.size===t}};return e.version="7.4.2",e.createIndex=Fe,e.parseIndex=et,e.config=b,e.match=function(s,t,i){if(i&&i.useTokenSearch)throw new Error("Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.");return te(s,{...b,...i}).searchIn(t)},e.parseQuery=Be,e})();fe(class{constructor(e,{isCaseSensitive:s=b.isCaseSensitive,ignoreDiacritics:t=b.ignoreDiacritics,includeMatches:i=b.includeMatches,minMatchCharLength:r=b.minMatchCharLength,ignoreLocation:o=b.ignoreLocation,findAllMatches:a=b.findAllMatches,location:c=b.location,threshold:l=b.threshold,distance:f=b.distance}={}){this.query=null,this.options={isCaseSensitive:s,ignoreDiacritics:t,includeMatches:i,minMatchCharLength:r,findAllMatches:a,ignoreLocation:o,location:c,threshold:l,distance:f},e=s?e:e.toLowerCase(),e=t?Y(e):e,this.pattern=e,this.query=function ut(e,s={}){return e.replace(/\\\|/g,"\0").split("|").map(t=>{const i=function lt(e){const s=[],t=e.length;let i=0;for(;i<t;){for(;i<t&&" "===e[i];)i++;if(i>=t)break;let r=i;for(;r<t&&" "!==e[r]&&'"'!==e[r];)r++;if(r<t&&'"'===e[r]){for(r++;r<t;){if('"'===e[r]){const o=r+1;if(o>=t||" "===e[o]){r++;break}if("$"===e[o]&&(o+1>=t||" "===e[o+1])){r+=2;break}}r++}s.push(e.substring(i,r)),i=r}else{for(;r<t&&" "!==e[r];)r++;s.push(e.substring(i,r)),i=r}}return s}(t.replace(/\u0000/g,"|").trim()).filter(o=>o&&!!o.trim()),r=[];for(let o=0,a=i.length;o<a;o+=1){const c=i[o];let l=!1,f=-1;for(;!l&&++f<Se;){const h=de[f],_=Ie(c,h.multiRegex);_&&(r.push(h.create(_,s)),l=!0)}if(!l)for(f=-1;++f<Se;){const h=de[f],_=Ie(c,h.singleRegex);if(_){r.push(h.create(_,s));break}}}return r})}(this.pattern,this.options)}static condition(e,s){return s.useExtendedSearch}searchIn(e){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:t,isCaseSensitive:i,ignoreDiacritics:r}=this.options;e=i?e:e.toLowerCase(),e=r?Y(e):e;let o=0;const a=[];let c=0,l=!1;for(let f=0,h=s.length;f<h;f+=1){const _=s[f];a.length=0,o=0,l=!1;for(let C=0,x=_.length;C<x;C+=1){const R=_[C],{isMatch:k,indices:w,score:$}=R.search(e);if(!k){c=0,o=0,a.length=0,l=!1;break}o+=1,c+=$,ot(R.type)&&(l=!0),t&&(rt.has(R.type)?a.push(...w):a.push(w))}if(o){const C={isMatch:!0,score:c/o};return l&&(C.hasInverse=!0),t&&(C.indices=le(a)),C}}return{isMatch:!1,score:1}}}),fe(class{static condition(e,s){return s.useTokenSearch}constructor(e,s){this.options=s,this.analyzer=_e({isCaseSensitive:s.isCaseSensitive,ignoreDiacritics:s.ignoreDiacritics,tokenize:s.tokenize});const t=this.analyzer.tokenize(e),{df:i,fieldCount:r}=s._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(const o of t){this.termSearchers.push(new ue(o,{location:s.location,threshold:s.threshold,distance:s.distance,includeMatches:s.includeMatches,findAllMatches:s.findAllMatches,minMatchCharLength:s.minMatchCharLength,isCaseSensitive:s.isCaseSensitive,ignoreDiacritics:s.ignoreDiacritics,ignoreLocation:!0}));const a=i.get(o)||0,c=Math.log(1+(r-a+.5)/(a+.5));this.idfWeights.push(c)}this.combineAll="all"===s.tokenMatch,this.numTerms=this.termSearchers.length,this.useMask=this.numTerms<=31}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};const s=[];let t=0,i=0,r=0,o=0;const a=this.combineAll&&!this.useMask?new Set:null;for(let f=0;f<this.termSearchers.length;f++){const h=this.termSearchers[f].searchIn(e),_=this.idfWeights[f];i+=_,h.isMatch&&(r++,t+=_*(1-h.score),h.indices&&s.push(...h.indices),this.combineAll&&(this.useMask?o|=1<<f:a.add(f)))}if(0===r)return{isMatch:!1,score:1};const l={isMatch:!0,score:Math.max(.001,i>0?1-t/i:0)};return this.options.includeMatches&&s.length&&(l.indices=le(s)),this.combineAll&&(this.useMask?l.matchedMask=o:l.matchedTerms=a,l.termCount=this.numTerms),l}}),je.use=function(...e){e.forEach(s=>fe(s))};var At=je,xt=g(2065),Tt=g(7284),Ft=g.n(Tt);let St=(()=>{class e{filterOptions=(0,p.uu)(()=>({isCaseSensitive:!!this.filterExactMatch(),includeScore:!1,ignoreDiacritics:!1,shouldSort:!0,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:this.filterExactMatch()?0:.3,distance:100,useExtendedSearch:!1,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1,keys:this.filterKeys()}));fuse=(0,p.EW)(()=>new At(this.sorted(),this.filterOptions()));columnDefs=(0,u.vPA)([]);data=(0,u.vPA)([]);sortCol=(0,u.vPA)(void 0);sortOrder=(0,u.vPA)("ASC");filterValue=(0,u.vPA)(void 0);filterOnlyVisible=(0,u.vPA)(!0);paginatorStartIndex=(0,u.vPA)(1);paginatorEndIndex=(0,u.vPA)(5);showColumnSettings=(0,u.vPA)(!1);totalRows=(0,p.EW)(()=>this.sortedAndFiltered().length);sorted=(0,p.EW)(()=>function Et(e,s,t){if(void 0===e)return[...s];const i=e.split(",").map(o=>o.trim()),r=t.split(",").map(o=>o.trim());return[...s].sort((o,a)=>{for(let c=0;c<i.length;c++){const l=i[c],f=r[c]||r[0];if(!(l in o))continue;let h=o[l],_=a[l];if("object"==typeof h&&(h=o[l].value,_=a[l].value),null==h)return 1;if(null==_)return-1;let C=0;if(C="string"==typeof h&&"string"==typeof _?h.localeCompare(_):h>_?1:h<_?-1:0,"DESC"===f&&(C*=-1),0!==C)return C}return 0})}(this.sortCol(),this.data(),this.sortOrder()));filterCol=(0,u.vPA)(void 0);filterExactMatch=(0,u.vPA)(!1);filterKeys=(0,p.EW)(()=>{const t=this.filterCol();return void 0!==t?[t]:this.filterOnlyVisible()?this.columnDefs().map(i=>i.key):Object.keys(this.sorted()[0]||{})});sortedAndFiltered=(0,p.EW)(()=>{const t=this.filterValue()??"";return""===t?this.sorted():this.fuse().search(t).map(r=>r.item)});sortedFilteredAndPaginated=(0,p.EW)(()=>this.sortedAndFiltered().slice(this.paginatorStartIndex(),this.paginatorEndIndex()));downloadCSV(){!function kt(e,s,t="table.csv"){const i=s.map(a=>a.label),r=e.map(a=>s.map(c=>c.formatter?c.formatter(a[c.key]):a[c.key])),o=Ft().unparse({fields:i,data:r});(0,xt.YN)(o,t,"text/csv")}(this.sortedFilteredAndPaginated(),this.columnDefs())}static \u0275fac=function(i){return new(i||e)};static \u0275prov=u.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),It=(()=>{class e{value=(0,u.vPA)("");agInit(t){const i=t.colDef?.cellRendererParams?.prefixes??{};this.value.set(this._prefixIRI(t?.value||"",i))}refresh(t){return this.value.set(t?.value||""),!0}_prefixIRI(t,i){if("http://www.w3.org/1999/02/22-rdf-syntax-ns#type"===t)return"a";if(void 0===i)return t;const r=Object.keys(i).find(o=>t.includes(i[o]));return void 0!==r?`${r}:${t.split(i[r])[1]}`:t}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=n.VBU({type:e,selectors:[["cue-iri-cell-renderer"]],decls:1,vars:1,template:function(i,r){1&i&&n.EFF(0),2&i&&n.JRh(r.value())},encapsulation:2,changeDetection:0})}return e})();var se=g(2245),wt=g(2530),ie=g(5381),ve=g(5971),Le=g(5448),Bt=g(2014),Nt=g(2611),Oe=g(3319),Qe=g(29),Pt=g(9695);const Vt=(e,s)=>s.label;function jt(e,s){if(1&e){const t=n.RV6();n.j41(0,"cue-flexcontainer",10)(1,"cue-input-switch",11),n.mxI("checkedChange",function(r){u.eBV(t);const o=n.XpG();return n.DH7(o.collapseClasses,r)||(o.collapseClasses=r),u.Njj(r)}),n.k0s(),n.j41(2,"cue-typography",12),n.EFF(3,"Collapse classes"),n.k0s()(),n.j41(4,"cue-flexcontainer",10)(5,"cue-input-switch",11),n.mxI("checkedChange",function(r){u.eBV(t);const o=n.XpG();return n.DH7(o.collapseAttributes,r)||(o.collapseAttributes=r),u.Njj(r)}),n.k0s(),n.j41(6,"cue-typography",12),n.EFF(7,"Collapse properties"),n.k0s()()}if(2&e){const t=n.XpG();n.R7$(),n.R50("checked",t.collapseClasses),n.R7$(4),n.R50("checked",t.collapseAttributes)}}function Lt(e,s){if(1&e&&n.nrm(0,"cue-svg-icon",17),2&e){const t=n.XpG().$implicit;n.Y8G("name",t.icon)}}function Ot(e,s){if(1&e){const t=n.RV6();n.j41(0,"cue-menu-item",16),n.bIt("click",function(){const r=u.eBV(t).$implicit;return u.Njj(r.action())}),n.nVh(1,Lt,1,1,"cue-svg-icon",17),n.EFF(2),n.k0s()}if(2&e){const t=s.$implicit;n.R7$(),n.vxM(t.icon?1:-1),n.R7$(),n.SpI(" ",t.label)}}function Qt(e,s){if(1&e&&(n.j41(0,"cue-menu",5)(1,"cue-button",13,0),n.nrm(3,"cue-button-icon",14),n.k0s(),n.j41(4,"cue-menu-wrap",15),n.Z7z(5,Ot,3,2,"cue-menu-item",null,Vt),n.k0s()()),2&e){const t=n.XpG();n.R7$(5),n.Dyx(t.moreMenuContent())}}function $t(e,s){if(1&e){const t=n.RV6();n.j41(0,"cue-button",18),n.bIt("click",function(){u.eBV(t);const r=n.XpG();return u.Njj(r.showColumnSettings.set(!1))}),n.nrm(1,"cue-button-icon",19),n.k0s()}}function Gt(e,s){if(1&e&&(n.j41(0,"cue-typography"),n.EFF(1),n.k0s()),2&e){const t=n.XpG(2);n.R7$(),n.SpI("Result: ",t.askQueryResults().boolean)}}function Wt(e,s){if(1&e&&n.nrm(0,"cue-code-editor",20),2&e){const t=n.XpG(2);n.Y8G("content",t.askQueryResults())("variant",t.variant())}}function qt(e,s){if(1&e&&(n.nVh(0,Gt,2,1,"cue-typography"),n.nVh(1,Wt,1,2,"cue-code-editor",20)),2&e){const t=n.XpG();n.vxM("formatted"===t.selectedView()?0:-1),n.R7$(),n.vxM("raw"===t.selectedView()?1:-1)}}function Ut(e,s){if(1&e&&n.nrm(0,"cue-ag-grid",21),2&e){const t=n.XpG(3);n.Y8G("rowData",t.tableData())("columnDefs",t.columnDefs())}}function zt(e,s){if(1&e){const t=n.RV6();n.j41(0,"cue-ag-grid-column-select",23),n.mxI("columnDefsChange",function(r){u.eBV(t);const o=n.XpG(3);return n.DH7(o.columnDefs,r)||(o.columnDefs=r),u.Njj(r)}),n.k0s()}if(2&e){const t=n.XpG(3);n.R50("columnDefs",t.columnDefs),n.Y8G("columnDefsGross",t.columnDefsGross())("settings",t.columnSelectSettings())}}function Ht(e,s){if(1&e&&n.nVh(0,Ut,1,2,"cue-ag-grid",21)(1,zt,1,3,"cue-ag-grid-column-select",22),2&e){const t=n.XpG(2);n.vxM(t.showColumnSettings()?1:0)}}function Xt(e,s){if(1&e&&n.nrm(0,"cue-code-editor",20),2&e){const t=n.XpG(2);n.Y8G("content",t.selectQueryResults())("variant",t.variant())}}function Kt(e,s){if(1&e&&(n.nVh(0,Ht,2,1),n.nVh(1,Xt,1,2,"cue-code-editor",20)),2&e){const t=n.XpG();n.vxM("formatted"===t.selectedView()?0:-1),n.R7$(),n.vxM("raw"===t.selectedView()?1:-1)}}function Yt(e,s){if(1&e&&n.nrm(0,"cue-rdf-graph",25),2&e){const t=n.XpG(2);n.xc7("min-height",t.minGraphHeight()),n.Y8G("doc",t.rdfResult())("collapseAttributes",t.collapseAttributes())("collapseClasses",t.collapseClasses())}}function Jt(e,s){}function Zt(e,s){if(1&e&&n.nrm(0,"cue-code-editor",26),2&e){const t=n.XpG(3);n.Y8G("content",t.rdfResult())("variant",t.variant())}}function en(e,s){if(1&e&&n.nVh(0,Jt,0,0)(1,Zt,1,2,"cue-code-editor",26),2&e){const t=n.XpG(2);n.vxM(t.isJSON()?0:1)}}function tn(e,s){if(1&e&&(n.nVh(0,Yt,1,5,"cue-rdf-graph",24),n.nVh(1,en,2,1)),2&e){const t=n.XpG();n.vxM("formatted"===t.selectedView()&&t.isJSON()?0:-1),n.R7$(),n.vxM("raw"===t.selectedView()?1:-1)}}let nn=(()=>{class e{_tableService=(0,u.WQX)(St);queryResults=(0,v.hFB)();queryDetails=(0,v.hFB)(void 0);variant=(0,v.hFB)("accent");minGraphHeight=(0,v.hFB)("300px");responseMimeType=(0,v.hFB)(void 0);clickedClose=(0,v.CGW)();totalHeight=(0,u.vPA)(0);selectedView=(0,p.uu)(()=>this.isJSON()?"formatted":"raw");isJSON=(0,p.EW)(()=>{const t=this.responseMimeType();return void 0===t||t.includes("json")});collapseClasses=(0,u.vPA)(!0);collapseAttributes=(0,u.vPA)(!0);moreMenuContent=(0,p.EW)(()=>this.selectQueryResults()&&!this.showColumnSettings()?[{label:"Show column settings",icon:"settings",action:()=>this.showColumnSettings.set(!0)},{label:"Download CSV",icon:"download",action:()=>this._downloadCSV()}]:[]);showContextMenu=(0,u.vPA)(!1);showColumnSettings=(0,u.vPA)(!1);askQueryResults=(0,p.EW)(()=>{if("ASK"===this.queryDetails()?.queryType)return this.queryResults()});selectQueryResults=(0,p.EW)(()=>{const t=this.queryDetails();if(console.log(t),"SELECT"===t?.queryType)return this.queryResults()});rdfResult=(0,p.EW)(()=>{const t=this.queryDetails();if("CONSTRUCT"===t?.queryType||"DESCRIBE"===t?.queryType)return this.queryResults()});columnDefs=(0,p.uu)(()=>this._buildAgGridColumnDefs());columnDefsGross=(0,p.EW)(()=>this._buildAgGridColumnDefs());queryVariables=(0,p.EW)(()=>{const t=this._getQueryVariables();return console.log(t),t.includes("*")?this.selectQueryResults()?.head.vars??[]:t});tableData=(0,p.EW)(()=>{const t=this.selectQueryResults();if(void 0===t)return[];const i=this.queryVariables();return t?.results.bindings.map(r=>{const o={};return i.forEach(a=>{o[a]=r[a]?.value??"-"}),o})});columnSelectSettings=(0,p.EW)(()=>{const t=new P.e;return t.allowToggleEditable=!1,t});_buildAgGridColumnDefs(){return this.queryVariables().map(i=>{const r={field:i,headerName:i,sortable:!0,filter:!0,flex:1};return this._isIRICol(i)&&(r.cellRenderer=It,r.cellRendererParams={prefixes:this.queryDetails()?.prefixes}),r})}_isIRICol(t){const i=this.selectQueryResults()?.results.bindings.find(r=>void 0!==r[t]);return void 0!==i&&"uri"===i[t].type}_downloadCSV(){this._tableService.downloadCSV()}_getQueryVariables(){const t=new Set;return this.queryDetails()?.variables.map(i=>{const r=i;t.add(void 0!==r?.value?r.value:void 0!==r?.variable?r.variable.value:"*")}),Array.from(t)}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=n.VBU({type:e,selectors:[["cue-query-results"]],inputs:{queryResults:[1,"queryResults"],queryDetails:[1,"queryDetails"],variant:[1,"variant"],minGraphHeight:[1,"minGraphHeight"],responseMimeType:[1,"responseMimeType"]},outputs:{clickedClose:"clickedClose"},decls:20,vars:10,consts:[["trigger",""],["direction","column","gap","m",2,"height","100%"],["direction","row","gap","s"],["size","s",3,"click","disabled","variant"],[2,"flex","1"],["positioning","bottomright"],["variant","tertiary","size","s"],["size","s","cueTooltip","Back to query",3,"click"],["icon","arrow-back"],["direction","column",1,"result-container",2,"flex","1 1 0%","min-height","0","width","100%"],["align","center","gap","s"],["size","s",3,"checkedChange","checked"],["size","s"],["trigger","","variant","tertiary","size","s"],["icon","more-vert"],["menu",""],[3,"click"],["before","",3,"name"],["variant","tertiary","size","s",3,"click"],["icon","save"],["type","json",1,"result",3,"content","variant"],[1,"result",2,"flex","1 1 0%","min-height","0","overflow","auto",3,"rowData","columnDefs"],[2,"width","100%",3,"columnDefs","columnDefsGross","settings"],[2,"width","100%",3,"columnDefsChange","columnDefs","columnDefsGross","settings"],[1,"result",3,"doc","collapseAttributes","collapseClasses","min-height"],[1,"result",3,"doc","collapseAttributes","collapseClasses"],["type","ttl",1,"result",3,"content","variant"]],template:function(i,r){1&i&&(n.j41(0,"cue-flexcontainer",1)(1,"cue-flexcontainer",2)(2,"cue-button",3),n.bIt("click",function(){return r.selectedView.set("raw")}),n.j41(3,"cue-button-padder")(4,"cue-button-label"),n.EFF(5,"Raw"),n.k0s()()(),n.j41(6,"cue-button",3),n.bIt("click",function(){return r.selectedView.set("formatted")}),n.j41(7,"cue-button-padder")(8,"cue-button-label"),n.EFF(9,"Formatted"),n.k0s()()(),n.nVh(10,jt,8,2),n.nrm(11,"cue-flexcontainer",4),n.nVh(12,Qt,7,0,"cue-menu",5),n.nVh(13,$t,2,0,"cue-button",6),n.j41(14,"cue-button",7),n.bIt("click",function(){return r.clickedClose.emit()}),n.nrm(15,"cue-button-icon",8),n.k0s()(),n.j41(16,"cue-flexcontainer",9),n.nVh(17,qt,2,2),n.nVh(18,Kt,2,2),n.nVh(19,tn,2,2),n.k0s()()),2&i&&(n.R7$(2),n.Y8G("disabled","raw"===r.selectedView())("variant","raw"===r.selectedView()?"primary":"secondary"),n.R7$(4),n.Y8G("disabled","formatted"===r.selectedView())("variant","formatted"===r.selectedView()?"primary":"secondary"),n.R7$(4),n.vxM(r.rdfResult()&&"formatted"===r.selectedView()?10:-1),n.R7$(2),n.vxM(r.moreMenuContent().length?12:-1),n.R7$(),n.vxM(r.showColumnSettings()?13:-1),n.R7$(4),n.vxM(r.askQueryResults()?17:-1),n.R7$(),n.vxM(r.selectQueryResults()?18:-1),n.R7$(),n.vxM(r.rdfResult()?19:-1))},dependencies:[se.Typography,wt.B,ie.n,ve.$,Le.L,Bt.z,Nt.R,W.t,Oe.a,j.W,Q.M,F.D,T.pL,Qe.A,Pt.Switch],styles:["[_nghost-%COMP%]{display:block;height:100%}.result-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1 1 0%;min-height:0;width:100%}.result[_ngcontent-%COMP%]{flex:1 1 0%;width:100%;box-sizing:border-box;overflow:auto;min-height:0}"],changeDetection:0})}return e})(),sn=(()=>{class e{vcr;componentRef=null;setViewContainerRef(t){this.componentRef&&(this.componentRef.destroy(),this.componentRef=null),void 0!==this.vcr&&this.vcr?.clear(),this.vcr=t}static \u0275fac=function(i){return new(i||e)};static \u0275prov=u.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var rn=g(5745),on=g(8957);const an=["*"];function cn(e,s){if(1&e&&(n.j41(0,"cue-typography"),n.EFF(1),n.k0s()),2&e){const t=n.XpG(2);n.R7$(),n.JRh(t.message())}}function ln(e,s){if(1&e){const t=n.RV6();n.j41(0,"cue-modal",1),n.bIt("close",function(){u.eBV(t);const r=n.XpG();return u.Njj(r.onClose())}),n.j41(1,"cue-flexcontainer",2),n.SdG(2),n.nVh(3,cn,2,1,"cue-typography"),n.j41(4,"cue-input",3),n.mxI("valueChange",function(r){u.eBV(t);const o=n.XpG();return n.DH7(o.inputValue,r)||(o.inputValue=r),u.Njj(r)}),n.k0s(),n.j41(5,"cue-typography")(6,"cue-flexcontainer",4)(7,"cue-button",5),n.bIt("click",function(){u.eBV(t);const r=n.XpG();return u.Njj(r.onConfirmed())}),n.EFF(8),n.k0s(),n.j41(9,"cue-button",6),n.bIt("click",function(){u.eBV(t);const r=n.XpG();return u.Njj(r.onClose())}),n.EFF(10),n.k0s()()()()()}if(2&e){const t=n.XpG();n.Y8G("displayCloseBtn",!1)("closeOnBackgroundClick",!1),n.R7$(3),n.vxM(t.message()?3:-1),n.R7$(),n.R50("value",t.inputValue),n.Y8G("label",t.inputLabel()),n.R7$(4),n.JRh(t.confirmText()),n.R7$(2),n.JRh(t.rejectText())}}let un=(()=>{class e{visible=(0,v.geq)(!0);message=(0,v.hFB)("");inputLabel=(0,v.hFB)("");inputValue=(0,v.geq)("");confirmText=(0,v.hFB)("Update");rejectText=(0,v.hFB)("Cancel");valueChange=(0,v.CGW)();onConfirmed(){this.visible.set(!1),this.valueChange.emit(this.inputValue())}onClose(){this.visible.set(!1)}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=n.VBU({type:e,selectors:[["cue-modal-input"]],inputs:{visible:[1,"visible"],message:[1,"message"],inputLabel:[1,"inputLabel"],inputValue:[1,"inputValue"],confirmText:[1,"confirmText"],rejectText:[1,"rejectText"]},outputs:{visible:"visibleChange",inputValue:"inputValueChange",valueChange:"valueChange"},ngContentSelectors:an,decls:1,vars:1,consts:[[2,"font-family","var(--cue-font-family)",3,"displayCloseBtn","closeOnBackgroundClick"],[2,"font-family","var(--cue-font-family)",3,"close","displayCloseBtn","closeOnBackgroundClick"],["direction","column"],[3,"valueChange","value","label"],["direction","row"],["variant","secondary",3,"click"],[3,"click"]],template:function(i,r){1&i&&(n.NAR(),n.nVh(0,ln,11,7,"cue-modal",0)),2&i&&n.vxM(r.visible()?0:-1)},dependencies:[rn.a,ie.n,ve.$,se.Typography,on.Input],encapsulation:2})}return e})(),dn=(()=>{class e extends sn{requestInput(t){if(!this.vcr)throw new Error("No ViewContainerRef!");const i=this.vcr.createComponent(un);return this.componentRef=i,t.message&&i.setInput("message",t.message),t.inputLabel&&i.setInput("inputLabel",t.inputLabel),t.inputValue&&i.setInput("inputValue",t.inputValue),t.confirmText&&i.setInput("confirmText",t.confirmText),t.rejectText&&i.setInput("rejectText",t.rejectText),new Promise(r=>{const o=i.instance.valueChange.subscribe(a=>{r(a),o.unsubscribe(),i.destroy()})})}static \u0275fac=(()=>{let t;return function(r){return(t||(t=n.xGo(e)))(r||e)}})();static \u0275prov=u.jDH({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var $e=g(9352),hn=g(5187),fn=g(4906);const gn=["panel"];let mn=(()=>{class e{content=(0,v.geq)("");variant=(0,v.hFB)("default");contextPatterns=(0,v.hFB)([]);contentChanged=(0,v.CGW)();invalid=(0,v.CGW)();error=(0,v.CGW)();panel;_editor;_editorValue=(0,u.vPA)("");onVariantChange=(0,u.QZP)(()=>{const t=this.variant();this._editor&&(this._editor.theme=t)});onContentChange=(0,u.QZP)(()=>{const t=this.content();t!==this._editorValue()&&this._editor&&(this._editor.content=t)});onContextPatternsChange=(0,u.QZP)(()=>{const t=this.contextPatterns();this._editor&&(this._editor.contextPatterns=t)});ngAfterViewInit(){this._editor=new fn.j(this.panel.nativeElement,this.variant()),this._editor.contextPatterns=this.contextPatterns();const t=this.content();t&&(this._editor.content=t),this._editor.events.addListener("contentChanged",i=>{this._editorValue.set(i),this.content()!==i&&this.content.set(i),this.contentChanged.emit(i)}),this._editor.events.addListener("contentValid",i=>{this.invalid.emit(!i)}),this._editor.events.addListener("error",i=>{this.error.emit(i)})}ngOnDestroy(){this._editor?.dispose()}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=n.VBU({type:e,selectors:[["cue-sparql-editor"]],viewQuery:function(i,r){if(1&i&&n.GBs(gn,5),2&i){let o;n.mGM(o=n.lsd())&&(r.panel=o.first)}},inputs:{content:[1,"content"],variant:[1,"variant"],contextPatterns:[1,"contextPatterns"]},outputs:{content:"contentChange",contentChanged:"contentChanged",invalid:"invalid",error:"error"},decls:2,vars:0,consts:[["panel",""],[1,"panel"]],template:function(i,r){1&i&&n.Hgh(0,"div",1,0)},styles:["[_nghost-%COMP%]{display:contents}.panel[_ngcontent-%COMP%]{overflow-y:auto;height:100%;width:100%;border:1px solid var(--borderColor-default)}"]})}return e})();var U=g(7573),pn=g(4284);const _n=["modalContainer"],yn=(e,s)=>s.label;function vn(e,s){if(1&e){const t=n.RV6();n.j41(0,"cue-flexcontainer",7)(1,"cue-button",19),n.nI1(2,"transloco"),n.bIt("click",function(){u.eBV(t);const r=n.XpG();return u.Njj(r.showResults.set(!0))}),n.nrm(3,"cue-button-icon",20),n.k0s()()}2&e&&(n.R7$(),n.Y8G("cueTooltip",n.bMT(2,1,"components.sparqlClient.tooltipViewResults")))}function Cn(e,s){if(1&e&&(n.j41(0,"div",10),n.EFF(1),n.k0s()),2&e){const t=n.XpG();n.R7$(),n.JRh(t.queryError())}}function bn(e,s){1&e&&(n.j41(0,"cue-typography"),n.EFF(1),n.nI1(2,"transloco"),n.k0s()),2&e&&(n.R7$(),n.JRh(n.bMT(2,1,"components.sparqlClient.infoQueryInProgress")))}function Mn(e,s){if(1&e&&n.nrm(0,"cue-svg-icon",21),2&e){const t=n.XpG().$implicit;n.Y8G("name",t.icon)}}function Dn(e,s){if(1&e){const t=n.RV6();n.j41(0,"cue-menu-item",16),n.bIt("click",function(){const r=u.eBV(t).$implicit;return u.Njj(null==r?null:r.action())}),n.nVh(1,Mn,1,1,"cue-svg-icon",21),n.EFF(2),n.k0s()}if(2&e){const t=s.$implicit;n.R7$(),n.vxM(t.icon?1:-1),n.R7$(),n.SpI(" ",t.label)}}function Rn(e,s){if(1&e){const t=n.RV6();n.j41(0,"cue-button",22),n.bIt("click",function(){u.eBV(t);const r=n.XpG();return u.Njj(r.resetQuery())}),n.j41(1,"cue-button-label"),n.EFF(2),n.nI1(3,"transloco"),n.k0s()()}2&e&&(n.R7$(2),n.JRh(n.bMT(3,1,"components.sparqlClient.buttonReset")))}function An(e,s){1&e&&(n.j41(0,"cue-typography"),n.EFF(1),n.nI1(2,"transloco"),n.k0s()),2&e&&(n.R7$(),n.JRh(n.bMT(2,1,"components.sparqlClient.infoQueryInProgress")))}function En(e,s){if(1&e){const t=n.RV6();n.j41(0,"cue-query-results",23),n.bIt("clickedClose",function(){u.eBV(t);const r=n.XpG();return u.Njj(r.showResults.set(!1))}),n.k0s()}if(2&e){const t=n.XpG();n.Y8G("queryDetails",t.queryDetails())("queryResults",t.resultsRaw())("responseMimeType",t.responseMimeType())("variant",t.cardVariantBack())("minGraphHeight",t.minCardHeight())}}const xn=[{label:"File Content",iri:`${U.E.qcy}FileContent`},{label:"File Location",iri:`${U.E.qcy}Location`},{label:"Entity Mention",iri:`${U.E.qcy}EntityMention`},{label:"Canonical Entity",iri:`${U.E.qcy}CanonicalEntity`},{label:"Selector",iri:`${U.E.qcy}Selector`}].sort((e,s)=>e.label.localeCompare(s.label)),Tn=[{label:"has entity category",iri:`${U.E.qcy}hasEntityCategory`},{label:"has content category",iri:`${U.E.qcy}hasContentCategory`},{label:"value",iri:`${U.E.qcy}value`},{label:"a",iri:`${pn.B.rdf}type`}].sort((e,s)=>e.label.localeCompare(s.label));let Ce=(()=>{class e{_inputModal=(0,u.WQX)(dn);modalContainer;handlers=(0,v.hFB)();query=v.geq.required();cardVariant=(0,v.hFB)("default");cardVariantBack=(0,v.hFB)("accent");showResultsImmidiately=(0,v.hFB)(!0);showResults=(0,v.geq)(!1);flipForResults=(0,v.hFB)(!0);minCardHeight=(0,v.hFB)("300px");availableEntityCategories=(0,v.hFB)([]);availableContentCategories=(0,v.hFB)([]);availableTypes=(0,v.hFB)(xn);availablePredicates=(0,v.hFB)(Tn);contextPatterns=(0,p.EW)(()=>{const t=[],i=this.availableEntityCategories();i?.length>0&&t.push({predicate:"qcy:hasEntityCategory",options:i});const r=this.availableContentCategories();r?.length>0&&t.push({predicate:"qcy:hasContentCategory",options:r});const o=this.availableTypes();o?.length>0&&t.push({predicate:"a",options:o});const a=this.availablePredicates();return a?.length>0&&t.push({options:a}),t});editorQuery=(0,p.uu)(()=>this.query());userQuery=(0,u.vPA)(void 0);userHasDefinedQuery=(0,p.EW)(()=>void 0!==this.userQuery()&&this.userQuery()!==this.query());currentQuery=(0,p.EW)(()=>this.userQuery()??this.query());queryInProgress=(0,u.vPA)(!1);responseMimeType=(0,u.vPA)(void 0);queryDetails=(0,p.EW)(()=>{const t=this.userQuery()??this.query();try{return(0,m.t)(t)}catch{return}});resultsRaw=(0,u.vPA)(void 0);queryError=(0,u.vPA)(void 0);executedQuery=(0,u.vPA)(void 0);resultsStillValid=(0,p.EW)(()=>this.executedQuery()===JSON.stringify(this.queryDetails()));labelSetResponseMime=(0,$e.Xx)("components.sparqlClient.buttonSetResponseMime");menuItems=(0,p.EW)(()=>{var i,t=this;return[{label:this.labelSetResponseMime(),action:(i=(0,I.A)(function*(){t._inputModal.setViewContainerRef(t.modalContainer);const r=yield t._inputModal.requestInput({inputLabel:"Response Mime Type",inputValue:"",confirmText:"Set",rejectText:"Cancel"});t.responseMimeType.set(r??void 0)}),function(){return i.apply(this,arguments)})}]});onQuery=(0,u.QZP)(()=>{this.query(),this.showResults.set(!1),this.queryError.set(void 0),this.userQuery.set(void 0)});executeQuery(){var t=this;return(0,I.A)(function*(){t.queryInProgress.set(!0),t.queryError.set(void 0),t._reset();try{const i=t.userQuery()??t.query(),r=yield t.handlers()?.queryHandler(i,t.queryDetails(),t.responseMimeType());t.resultsRaw.set(r),t.executedQuery.set(JSON.stringify(t.queryDetails())),t.showResultsImmidiately()&&t.showResults.set(!0)}catch(i){t.queryError.set(i?.message??i?.error??String(i))}finally{t.queryInProgress.set(!1)}})()}resetQuery(){this.editorQuery.update(()=>this.query()+" "),setTimeout(()=>{this.editorQuery.update(()=>this.query()),this.userQuery.set(void 0)})}_reset(){this.resultsRaw.set(void 0),this.executedQuery.set(void 0)}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=n.VBU({type:e,selectors:[["cue-sparql-client"]],viewQuery:function(i,r){if(1&i&&n.GBs(_n,7,n.c1b),2&i){let o;n.mGM(o=n.lsd())&&(r.modalContainer=o.first)}},inputs:{handlers:[1,"handlers"],query:[1,"query"],cardVariant:[1,"cardVariant"],cardVariantBack:[1,"cardVariantBack"],showResultsImmidiately:[1,"showResultsImmidiately"],showResults:[1,"showResults"],flipForResults:[1,"flipForResults"],minCardHeight:[1,"minCardHeight"],availableEntityCategories:[1,"availableEntityCategories"],availableContentCategories:[1,"availableContentCategories"],availableTypes:[1,"availableTypes"],availablePredicates:[1,"availablePredicates"]},outputs:{query:"queryChange",showResults:"showResultsChange"},decls:29,vars:17,consts:[["modalContainer",""],["trigger",""],[2,"height","100%","width","100%","flex","1 1"],[1,"flip-card",3,"cueFlipChange","cueFlip"],[1,"flip-content"],[1,"card-face","front",2,"height","100%","flex","1 1",3,"variant","scrollable"],["direction","column",2,"height","calc(100% - 4px)","margin","2px"],["direction","row","justify","end","align","center","gap","m"],[2,"overflow-y","auto",3,"contentChanged","content","variant","contextPatterns"],[2,"flex","1"],[2,"background","#fef2f2","border","1px solid #fecaca","border-radius","6px","padding","8px 12px","font-size","12px","color","#b91c1c","word-break","break-word","white-space","pre-wrap","max-height","120px","overflow-y","auto","margin","4px 0"],["positioning","topright"],["trigger","","variant","tertiary"],["icon","more-vert"],["menu",""],["variant","secondary"],[3,"click"],[1,"card-face","back",2,"height","100%",3,"variant"],[2,"height","100%",3,"queryDetails","queryResults","responseMimeType","variant","minGraphHeight"],["size","s",3,"click","cueTooltip"],["icon","view-active"],["before","",3,"name"],["variant","secondary",3,"click"],[2,"height","100%",3,"clickedClose","queryDetails","queryResults","responseMimeType","variant","minGraphHeight"]],template:function(i,r){if(1&i){const o=n.RV6();n.eu8(0,null,0),n.j41(2,"cue-flexcontainer",2)(3,"div",3),n.mxI("cueFlipChange",function(c){return u.eBV(o),n.DH7(r.showResults,c)||(r.showResults=c),u.Njj(c)}),n.j41(4,"div",4)(5,"cue-card",5)(6,"cue-flexcontainer",6),n.nVh(7,vn,4,3,"cue-flexcontainer",7),n.j41(8,"cue-sparql-editor",8),n.bIt("contentChanged",function(c){return r.userQuery.set(c)}),n.k0s(),n.nrm(9,"cue-flexcontainer",9),n.nVh(10,Cn,2,1,"div",10),n.j41(11,"cue-flexcontainer",7),n.nVh(12,bn,3,3,"cue-typography"),n.j41(13,"cue-menu",11)(14,"cue-button",12,1),n.nrm(16,"cue-button-icon",13),n.k0s(),n.j41(17,"cue-menu-wrap",14),n.Z7z(18,Dn,3,2,"cue-menu-item",null,yn),n.k0s()(),n.nVh(20,Rn,4,3,"cue-button",15),n.j41(21,"cue-button",16),n.bIt("click",function(){return r.executeQuery()}),n.j41(22,"cue-button-label"),n.EFF(23),n.nI1(24,"transloco"),n.k0s()()()()(),n.j41(25,"cue-card",17),n.nrm(26,"cue-flexcontainer",7),n.nVh(27,An,3,3,"cue-typography")(28,En,1,5,"cue-query-results",18),n.k0s()()()()}2&i&&(n.R7$(3),n.R50("cueFlip",r.showResults),n.R7$(2),n.Y8G("variant",r.cardVariant())("scrollable",!0),n.R7$(2),n.vxM(r.resultsRaw()&&r.resultsStillValid()?7:-1),n.R7$(),n.Y8G("content",r.editorQuery())("variant",r.cardVariant())("contextPatterns",r.contextPatterns()),n.R7$(2),n.vxM(r.queryError()?10:-1),n.R7$(2),n.vxM(r.queryInProgress()?12:-1),n.R7$(6),n.Dyx(r.menuItems()),n.R7$(2),n.vxM(r.userHasDefinedQuery()?20:-1),n.R7$(3),n.JRh(n.bMT(24,15,"components.sparqlClient.buttonExecute")),n.R7$(2),n.xc7("min-height",r.minCardHeight()),n.Y8G("variant",r.cardVariantBack()),n.R7$(2),n.vxM(r.queryInProgress()?27:28))},dependencies:[hn.Card,ie.n,ve.$,Le.L,mn,se.Typography,Oe.a,d.d,nn,y.R,j.W,Q.M,F.D,Qe.A,$e.Kj],styles:["[_nghost-%COMP%]{display:contents}.wrapper[_ngcontent-%COMP%]{display:flex;width:100%}.flip-content[_ngcontent-%COMP%]{height:100%}.flip-card[_ngcontent-%COMP%]{height:100%;width:100%;flex:1 1}"],changeDetection:0})}return e})();function Fn(e,s){if(1&e){const t=n.RV6();n.j41(0,"cue-sparql-client",2),n.mxI("queryChange",function(r){u.eBV(t);const o=n.XpG();return n.DH7(o.query,r)||(o.query=r),u.Njj(r)}),n.k0s()}if(2&e){const t=n.XpG();n.R50("query",t.query),n.Y8G("handlers",s)("showResultsImmidiately",!0)}}function kn(e,s){1&e&&(n.j41(0,"cue-flexcontainer",1)(1,"cue-typography",3),n.EFF(2," No project connected. Pass a sdkState with cue and projectId. "),n.k0s()())}const Sn=`PREFIX qcy: <${U.E.qcy}>\n\nSELECT DISTINCT ?doc ?contentCat\nWHERE {\n ?doc a qcy:FileContent .\n FILTER NOT EXISTS { ?_alt qcy:alternativeRepresentation ?doc }\n OPTIONAL { ?doc qcy:hasContentCategory ?contentCat }\n}\nLIMIT 20`;let In=(()=>{class e{sdkState=(0,v.hFB)(void 0);query=(0,v.geq)(Sn);currentQueryChange=(0,v.CGW)();_client=(0,v.ebz)(Ce);_handlers=(0,p.EW)(()=>{const t=this.sdkState();if(!t)return;const{cue:i,projectId:r,graphType:o}=t;return{queryHandler:a=>i.api.sparql(a,r,o)}});_onCurrentQueryChange=(0,u.QZP)(()=>{const t=this._client();t&&this.currentQueryChange.emit(t.currentQuery())});static \u0275fac=function(i){return new(i||e)};static \u0275cmp=n.VBU({type:e,selectors:[["cue-sparql-client-sdk"]],viewQuery:function(i,r){1&i&&n.wEZ(r._client,Ce,5),2&i&&n.NyB()},inputs:{sdkState:[1,"sdkState"],query:[1,"query"]},outputs:{query:"queryChange",currentQueryChange:"currentQueryChange"},decls:2,vars:1,consts:[["cardVariant","primary","cardVariantBack","default",2,"height","100%","display","block",3,"query","handlers","showResultsImmidiately"],["direction","column","align","center","justify","center",2,"height","100%","width","100%","padding","8px"],["cardVariant","primary","cardVariantBack","default",2,"height","100%","display","block",3,"queryChange","query","handlers","showResultsImmidiately"],[2,"color","#9ca3af","font-size","13px"]],template:function(i,r){if(1&i&&n.nVh(0,Fn,1,3,"cue-sparql-client",0)(1,kn,3,0,"cue-flexcontainer",1),2&i){let o;n.vxM((o=r._handlers())?0:1,o)}},dependencies:[Ce,ie.n,se.Typography],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}"],changeDetection:0})}return e})()},2065(z,N,g){function u(m,d,y="text/plain"){return function v(m,d="data.zip"){const y=document.createElement("a"),T=URL.createObjectURL(m);y.href=T,y.download=d,document.body.appendChild(y),y.click(),document.body.removeChild(y),URL.revokeObjectURL(T)}(new Blob([m],{type:y}),d)}function I(m,d){const y=document.createElement("a");y.style.display="hidden",y.setAttribute("href",window.URL.createObjectURL(m)),y.setAttribute("download",d),document.body.appendChild(y),y.click(),y.remove()}g.d(N,{KE:()=>I,YN:()=>u})},5332(z,N,g){g.d(N,{k:()=>I});for(var p=[],u=0;u<256;++u)p.push((u+256).toString(16).slice(1));function I(d,y=0){return(p[d[y+0]]+p[d[y+1]]+p[d[y+2]]+p[d[y+3]]+"-"+p[d[y+4]]+p[d[y+5]]+"-"+p[d[y+6]]+p[d[y+7]]+"-"+p[d[y+8]]+p[d[y+9]]+"-"+p[d[y+10]]+p[d[y+11]]+p[d[y+12]]+p[d[y+13]]+p[d[y+14]]+p[d[y+15]]).toLowerCase()}},8402(z,N,g){g.d(N,{A:()=>y});const p={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var u,I=new Uint8Array(16);function n(){if(!u&&!(u=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return u(I)}var m=g(5332);const y=function d(T,P,W){if(p.randomUUID&&!P&&!T)return p.randomUUID();var j=(T=T||{}).random||(T.rng||n)();if(j[6]=15&j[6]|64,j[8]=63&j[8]|128,P){W=W||0;for(var Q=0;Q<16;++Q)P[W+Q]=j[Q];return P}return(0,m.k)(j)}}}]);
package/4687.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[4687],{3798(E,l,t){t.d(l,{Z:()=>g});var a=t(3236),d=t(9974),c=t(8750),o=t(4360),n=t(1584);function g(i,r=a.E){return function e(i){return(0,d.N)((r,s)=>{let f=!1,h=null,u=null,v=!1;const p=()=>{if(u?.unsubscribe(),u=null,f){f=!1;const _=h;h=null,s.next(_)}v&&s.complete()},D=()=>{u=null,v&&s.complete()};r.subscribe((0,o._)(s,_=>{f=!0,h=_,u||(0,c.Tg)(i(_)).subscribe(u=(0,o._)(s,p,D))},()=>{v=!0,(!f||!u||u.closed)&&s.complete()}))})}(()=>(0,n.O)(i,r))}},7384(E,l,t){t.d(l,{OE:()=>d,i8:()=>o});var a=t(5547);function d(e,n=0){return function c(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):2===arguments.length?n:0}function o(e){return e instanceof a.aKT?e.nativeElement:e}},7421(E,l,t){t.d(l,{O:()=>e});var a=t(5802),d=t(5547),c=t(177);let o;try{o=typeof Intl<"u"&&Intl.v8BreakIterator}catch{o=!1}let e=(()=>{class n{_platformId=(0,a.WQX)(d.Agw);isBrowser=this._platformId?(0,c.UE)(this._platformId):"object"==typeof document&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!(!window.chrome&&!o)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(r){return new(r||n)};static \u0275prov=a.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})()},3293(E,l,t){t.d(l,{l:()=>e});var a=t(5802),d=t(7705),c=t(5547);const o=new WeakMap;let e=(()=>{class n{_appRef;_injector=(0,a.WQX)(a.zZn);_environmentInjector=(0,a.WQX)(a.uvJ);load(i){const r=this._appRef=this._appRef||this._injector.get(c.o8S);let s=o.get(r);s||(s={loaders:new Set,refs:[]},o.set(r,s),r.onDestroy(()=>{o.get(r)?.refs.forEach(f=>f.destroy()),o.delete(r)})),s.loaders.has(i)||(s.loaders.add(i),s.refs.push((0,d.a0P)(i,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(r){return new(r||n)};static \u0275prov=a.jDH({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})()}}]);
package/4879.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[4879],{4879(O,M,d){d.d(M,{g:()=>Oe});var y=d(467),a=d(7705),h=d(2271),l=d(5802),I=d(2065),w=d(7284),_=d.n(w);var t=d(5547);let E=(()=>{class o{get calculatedWidth(){let e=this.localConfig().width||this.width()||1;return this.el.nativeElement.parentNode.offsetWidth>0&&e<=1&&e>0&&(e*=this.el.nativeElement.parentNode.offsetWidth),e}get calculatedHeight(){let e=this.localConfig().height||this.height()||400;return this.el.nativeElement.parentNode.offsetHeight>0&&e<=1&&e>0&&(e*=this.el.nativeElement.parentNode.offsetHeight),e}onResize(e){this.logMessage("debug","rezisze triggered"),window.clearTimeout(this.timeoutId),this.timeoutId=window.setTimeout(()=>{this.options.realignOnResize&&this.reDraw()},200)}constructor(){this.data=(0,a.hFB)([]),this.width=(0,a.hFB)(),this.height=(0,a.hFB)(),this.step=(0,a.hFB)(),this.overflow=(0,a.hFB)(),this.strict=(0,a.hFB)(),this.zoomOnHover=(0,a.hFB)(),this.realignOnResize=(0,a.hFB)(),this.randomizeAngle=(0,a.hFB)(),this.background=(0,a.hFB)(),this.font=(0,a.hFB)(),this.delay=(0,a.hFB)(),this.config=(0,a.hFB)({}),this.log=(0,a.hFB)(),this.clicked=(0,a.CGW)(),this.afterInit=(0,a.CGW)(),this.afterChecked=(0,a.CGW)(),this.localConfig=(0,h.EW)(()=>{const n=this.config();return{...n,width:this.width()||n.width||500,height:this.height()||n.height||300,overflow:this.overflow()??(n.overflow||!0),strict:this.strict()??(n.strict||!1),zoomOnHover:this.zoomOnHover()||n.zoomOnHover||{transitionTime:0,scale:1,delay:0},realignOnResize:this.realignOnResize()??(n.realignOnResize||!1),randomizeAngle:this.randomizeAngle()??(n.randomizeAngle||!1),step:this.step()||n.step||2,log:this.log()||n.log||!1,delay:this.delay()||n.delay,background:this.background()||n.background,font:this.font()||n.font}}),this.cloudDataHtmlElements=[],this.dataArr=[],this.el=(0,l.WQX)(t.aKT),this.r2=(0,l.WQX)(t.sFG);const e=this.el.nativeElement;(0,l.QZP)(()=>{const n=this.localConfig();this.logMessage("warn","cloud configuration",n),n.font&&this.r2.setStyle(e,"font",n.font),n.background&&this.r2.setStyle(e,"background",n.background),this.reDraw()})}reDraw(){this.afterChecked?.emit(),this.logMessage("debug","dataChanges emitted"),this.cloudDataHtmlElements=[],this.data()?(this.el.nativeElement.innerHTML="",this.data()&&(this.dataArr=this.data()),this.options={...this.localConfig(),aspectRatio:this.calculatedWidth/this.calculatedHeight,width:this.calculatedWidth,height:this.calculatedHeight,center:{x:this.calculatedWidth/2,y:this.calculatedHeight/2}},this.r2.setStyle(this.el.nativeElement,"width",this.options.width+"px"),this.r2.setStyle(this.el.nativeElement,"height",this.options.height+"px"),this.drawWordCloud(),this.logMessage("debug","reDraw finished")):console.error("angular-tag-cloud: No data passed. Please pass an Array of CloudData")}descriptiveEntry(e){let n=e.text;return n+=e.color?`-${e.color}`:"",n+=e.external?`-${e.external}`:"",n+=e.link?`-${e.link}`:"",n+=e.rotate?`-${e.rotate}`:"",n}drawWordCloud(){this.dataArr.sort((i,s)=>this.descriptiveEntry(i).localeCompare(this.descriptiveEntry(s))),this.dataArr.sort((i,s)=>s.weight-i.weight);const e=this.dataArr.filter(i=>i.position),n=this.dataArr.filter(i=>!i.position);e.forEach((i,s)=>{this.drawWord(s,i)}),n.forEach((i,s)=>{this.drawWord(s,i)})}hitTest(e){for(const n of this.cloudDataHtmlElements)if(this.overlapping(e,n))return!0;return!1}overlapping(e,n){const{offsetLeft:i,offsetTop:s,offsetWidth:c,offsetHeight:u}=n;return!(e.right<i||e.left>i+c||e.bottom<s||e.top>s+u)}getWeightForWord(e){let n=5;return this.dataArr[0].weight>this.dataArr[this.dataArr.length-1].weight&&(this.options.strict?e.weight>10?(n=10,this.logMessage("warn",`[TagCloud strict] Weight property ${e.weight} > 10. Fallback to 10 as you are using strict mode`,e)):e.weight<1?(n=1,this.logMessage("warn",`[TagCloud strict] Given weight property ${e.weight} < 1. Fallback to 1 as you are using strict mode`,e)):e.weight%1!=0?(n=Math.round(e.weight),this.logMessage("warn",`[TagCloud strict] Given weight property ${e.weight} is not an integer. Rounded value to ${n}`,e)):n=e.weight:n=Math.round((e.weight-this.dataArr[this.dataArr.length-1].weight)/(this.dataArr[0].weight-this.dataArr[this.dataArr.length-1].weight)*9)+1),n}setWordColor(e,n){this.r2.setStyle(e,"color",n)}setTooltip(e,n){this.r2.addClass(e,"tooltip");const i=this.r2.createElement("span");i.className="tooltiptext";const s=this.r2.createText(n);i.appendChild(s),e.appendChild(i)}setWordRotation(e,n){const i=n?`rotate(${n}deg)`:"";return this.r2.setStyle(e,"transform",i),i}wrapNodeIntoAnchorElement(e,n){const i=this.r2.createElement("a");return i.href=n.link||"",void 0!==n.external&&n.external&&(i.target="_blank"),i.appendChild(e),i}applyZoomStyle(e,n,i,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?e:n,"color",this.options.zoomOnHover.color)},n.onmouseout=()=>{this.r2.setStyle(n,"transform",`none ${s}`),this.options.zoomOnHover?.color&&this.r2.removeStyle(i?e:n,"color")})}setPosition(e,n,i){let s=this.options.randomizeAngle?6.28*Math.random():0,c=0;const u=e.style;u.position="absolute";const m=!!(n.position&&n.position.left&&n.position.top),r=e.offsetWidth,f=e.offsetHeight;let b=m&&n.position?.left?n.position.left:this.options.center.x-r/2,C=m&&n.position?.top?n.position.top:this.options.center.y-f/2;if(u.left=b+"px",u.top=C+"px",this.options.delay&&(e.classList.add("tag-animation-delay"),u.setProperty("--tag-animation-delay",this.options.delay*i+"ms")),!m)if(0===i)u.left=b+2*(Math.random()-.5)*(this.calculatedWidth/5)+"px",u.top=C+2*(Math.random()-.5)*(this.calculatedHeight/5)+"30px";else{for(;this.options.width&&this.options.height&&e.offsetHeight&&e.offsetWidth&&this.hitTest(new DOMRect(b,C,e.offsetWidth,e.offsetHeight));)c+=this.options.step||1,s+=(i%2==0?1:-1)*(this.options.step||1),b=this.options.center.x-r/2+c*Math.cos(s)*this.options.aspectRatio,C=this.options.center.y+c*Math.sin(s)-f/2;u.left=b+"px",u.top=C+"px"}if(!this.options.overflow&&(b<0||C<0||b+r>this.calculatedWidth||C+f>this.calculatedHeight))return this.logMessage("warn","Word did not fit into the cloud and overflow is set to 'false'. The element will be removed",e),void e.remove()}drawWord(e,n){let i;const 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 u=this.setWordRotation(i,n.rotate);n.link&&(c=this.wrapNodeIntoAnchorElement(c,n)),this.options.zoomOnHover&&1!==this.options.zoomOnHover.scale&&this.applyZoomStyle(c,i,n.link,u),i.appendChild(c),this.r2.appendChild(this.el.nativeElement,i),n.tooltip&&this.setTooltip(i,n.tooltip),i.id=`angular-tag-cloud-item-${e}`,this.setPosition(i,n,e),this.logMessage("debug","Adds new word <span>",i),this.cloudDataHtmlElements.push(i),this.logMessage("debug","Placed words",this.cloudDataHtmlElements)}logMessage(e,...n){this.localConfig()&&("debug"===this.localConfig().log?console.log(`[AngularTagCloudModule ${e}]`,...n):"warn"===this.localConfig().log&&"warn"===e&&console.warn(`[AngularTagCloudModule ${e}]`,...n))}static{this.\u0275fac=function(n){return new(n||o)}}static{this.\u0275cmp=t.VBU({type:o,selectors:[["angular-tag-cloud"],["ng-tag-cloud"],["ngtc"]],hostBindings:function(n,i){1&n&&t.bIt("resize",function(c){return i.onResize(c)},t.tSv)},inputs:{data:[1,"data"],width:[1,"width"],height:[1,"height"],step:[1,"step"],overflow:[1,"overflow"],strict:[1,"strict"],zoomOnHover:[1,"zoomOnHover"],realignOnResize:[1,"realignOnResize"],randomizeAngle:[1,"randomizeAngle"],background:[1,"background"],font:[1,"font"],delay:[1,"delay"],config:[1,"config"],log:[1,"log"]},outputs:{clicked:"clicked",afterInit:"afterInit",afterChecked:"afterChecked"},decls:0,vars:0,template:function(n,i){},styles:['[_nghost-%COMP%]{font-family:Helvetica,Arial,sans-serif;font-size:10px;line-height:normal;color:#09f;overflow:hidden;position:relative;display:block}.tag-animation-delay[_ngcontent-%COMP%]{--tag-animation-delay: .5s;animation:_ngcontent-%COMP%_fadeIn .5s;opacity:0;animation-fill-mode:forwards;animation-delay:var(--tag-animation-delay)}span[_ngcontent-%COMP%]{padding:0}span.w10[_ngcontent-%COMP%]{font-size:550%}span.w9[_ngcontent-%COMP%]{font-size:500%}span.w8[_ngcontent-%COMP%]{font-size:450%}span.w7[_ngcontent-%COMP%]{font-size:400%}span.w6[_ngcontent-%COMP%]{font-size:350%}span.w5[_ngcontent-%COMP%]{font-size:300%}span.w4[_ngcontent-%COMP%]{font-size:250%}span.w3[_ngcontent-%COMP%]{font-size:200%}span.w2[_ngcontent-%COMP%]{font-size:150%}span.w1[_ngcontent-%COMP%]{font-size:100%}a[_ngcontent-%COMP%]:hover{color:#0df}a[_ngcontent-%COMP%]:hover, span.w10[_ngcontent-%COMP%], span.w9[_ngcontent-%COMP%], span.w8[_ngcontent-%COMP%]{color:#0cf}span.w7[_ngcontent-%COMP%]{color:#39d}span.w6[_ngcontent-%COMP%]{color:#90c5f0}span.w5[_ngcontent-%COMP%]{color:#90a0dd}span.w4[_ngcontent-%COMP%]{color:#90c5f0}span.w3[_ngcontent-%COMP%]{color:#a0ddff}span.w2[_ngcontent-%COMP%]{color:#9ce}span.w1[_ngcontent-%COMP%]{color:#aab5f0}.tooltip[_ngcontent-%COMP%] .tooltiptext[_ngcontent-%COMP%]{visibility:hidden;width:inherit;background-color:#555;color:#fff;text-align:center;border-radius:6px;padding:5px 10px;position:absolute;bottom:100%;left:0;opacity:0;transition:opacity .3s}.tooltip[_ngcontent-%COMP%] .tooltiptext[_ngcontent-%COMP%]:after{content:"";position:absolute;top:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:#555 transparent transparent transparent}.tooltip[_ngcontent-%COMP%]:hover .tooltiptext[_ngcontent-%COMP%]{visibility:visible;opacity:1}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0}to{opacity:1}}'],changeDetection:0})}}return o})();var W=d(5970);const j=["wordCloudContainer"];function H(o,g){if(1&o){const e=t.RV6();t.j41(0,"angular-tag-cloud",3),t.bIt("clicked",function(i){l.eBV(e);const s=t.XpG();return l.Njj(s.handleClicked(i))}),t.k0s()}if(2&o){const e=t.XpG();t.Y8G("data",e.data())("zoomOnHover",e.zoomOnHoverOptions())("width",e.containerSize().width)("height",e.containerSize().height)("overflow",e.overflow())("realignOnResize",!0)}}let L=(()=>{class o{words=(0,a.hFB)();entries=(0,a.hFB)();caseSensitive=(0,a.hFB)(!1);clickable=(0,a.hFB)(!1);multiSelect=(0,a.hFB)(!1);highlightSelection=(0,a.hFB)(!1);minWeight=(0,a.hFB)(1);maxWeight=(0,a.hFB)(5);maxWords=(0,a.hFB)(50);colorScheme=(0,a.hFB)(["var(--cue-chart-text-color)","var(--cue-chart-text-color-select)"]);overflow=(0,a.hFB)(!1);clickedWord=(0,a.CGW)();selectionChanged=(0,a.CGW)();wordCloudContainer;containerSize=(0,l.vPA)({width:0,height:0});selection=(0,l.vPA)([]);data=(0,h.EW)(()=>{const e=this.words(),n=this.entries();return n?.length||e?.length?n?.length?n:e?.length?this._buildEntriesFromWords(e):[]:[]});ngAfterViewInit(){const e=new MutationObserver(()=>{this._applySelectionStyles()});this.wordCloudContainer?.nativeElement&&e.observe(this.wordCloudContainer.nativeElement,{childList:!0,subtree:!0})}handleResize(e){0!==e.newRect.height&&this.containerSize.set({width:e.newRect.width,height:e.newRect.height})}styleSelection=(0,l.QZP)(()=>{this.selection(),this._applySelectionStyles()});zoomOnHoverOptions=(0,h.EW)(()=>({scale:1.1,transitionTime:this.clickable()?1.2:0,delay:.05}));_buildEntriesFromWords(e){const n=new Map;for(const r of e){const f=this.caseSensitive()?r:r.toLowerCase();n.set(f,(n.get(f)||0)+1)}const i=Array.from(n.entries());if(0===i.length)return[];const s=i.map(([,r])=>r),c=Math.min(...s),u=Math.max(...s);return u===c?i.map(([r])=>({text:r,weight:this.maxWeight()})):i.sort(([,r],[,f])=>f-r).slice(0,this.maxWords()).map(([r,f])=>({text:r,weight:this.minWeight()+(f-c)*(this.maxWeight()-this.minWeight())/(u-c),color:this.colorScheme()[Math.floor(Math.random()*this.colorScheme().length)]}))}_applySelectionStyles(){if(!this.highlightSelection())return;const e=this.wordCloudContainer?.nativeElement;void 0!==e&&e.querySelectorAll("span").forEach(i=>{i.textContent&&(this.selection().includes(i.textContent.trim())?i.classList.add("selected"):i.classList.remove("selected"))})}handleClicked(e){this.clickable()&&(this.clickedWord.emit(e.text),this.highlightSelection()&&(this.selection().includes(e.text)?this.selection.update(n=>n.filter(i=>i!==e.text)):this.multiSelect()?this.selection.update(n=>[...n,e.text]):this.selection.update(()=>[e.text])),this.selectionChanged.emit(this.selection()))}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=t.VBU({type:o,selectors:[["cue-word-cloud"]],viewQuery:function(n,i){if(1&n&&t.GBs(j,5),2&n){let s;t.mGM(s=t.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&&(t.j41(0,"div",1,0),t.bIt("resized",function(c){return i.handleResize(c)}),t.nVh(2,H,1,6,"angular-tag-cloud",2),t.k0s()),2&n&&(t.xc7("display",i.data().length?"block":"none"),t.AVh("clickable",i.clickable()),t.R7$(2),t.vxM(i.data().length?2:-1))},dependencies:[E,W.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 G=d(5971),V=d(5448),$=d(3319),F=d(4372),U=d(2611),Y=d(5661),Q=d(1096),R=d(5764),T=d(2245);function Z(o,g){if(1&o&&(l.qSk(),t.j41(0,"svg",0),t.nrm(1,"path",3)(2,"path",4),t.k0s()),2&o){const e=t.XpG();t.R7$(),t.BMQ("fill",e.colorDark()),t.R7$(),t.BMQ("fill",e.color())}}function K(o,g){if(1&o&&(l.qSk(),t.j41(0,"svg",1),t.nrm(1,"path",5)(2,"path",6)(3,"path",7),t.k0s()),2&o){const e=t.XpG();t.R7$(2),t.BMQ("fill",e.color())}}const x_blue="#175EBB",J={".dwg":x_blue,".dxf":x_blue,".doc":x_blue,".docx":x_blue,".ifc":"#9F388D",".pdf":"#E03833",".ppt":x_blue,".pptx":x_blue,".csv":"#0b7741",".xls":"#0b7741",".xlsx":"#0b7741",folder:"#9D9998"};let q=(()=>{class o{suffix=a.hFB.required();size=(0,a.hFB)("m");color=(0,h.EW)(()=>J[this.suffix()]??"#9D9998");label=(0,h.EW)(()=>this.suffix().startsWith(".")?this.suffix().toUpperCase().replace(/^\./,""):"");className=(0,h.EW)(()=>`size-${this.size()}`);colorDark=(0,h.EW)(()=>{const e=this.color(),n=parseInt(e.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=t.VBU({type:o,selectors:[["cue-file-icon"]],hostVars:2,hostBindings:function(n,i){2&n&&t.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&&(t.nVh(0,Z,3,2,":svg:svg",0)(1,K,4,1,":svg:svg",1),t.j41(2,"cue-typography",2),t.EFF(3),t.k0s()),2&n&&(t.vxM("folder"===i.suffix()?0:1),t.R7$(3),t.JRh(i.label()))},dependencies:[T.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})(),ee=(()=>{class o{suffix=(0,l.vPA)("");iconSize=(0,l.vPA)("xs");agInit(e){this._apply(e)}refresh(e){return this._apply(e),!0}_apply(e){this.suffix.set(e.value||"folder"),this.iconSize.set({xs:"xs",s:"xs",m:"xs",l:"s",xl:"m"}[e.colDef?.cellRendererParams?.iconSize??e.iconSize??"xs"]??"xs")}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=t.VBU({type:o,selectors:[["cue-file-icon-cell-renderer"]],decls:1,vars:2,consts:[[3,"suffix","size"]],template:function(n,i){1&n&&t.nrm(0,"cue-file-icon",0),2&n&&t.Y8G("suffix",i.suffix())("size",i.iconSize())},dependencies:[q],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:center;width:100%;height:100%}"],changeDetection:0})}return o})();var te=d(6117),ne=d(29),ie=d(1951),oe=d(1493),D=d(9352),se=d(5381),ae=d(9769),le=d(5187),ce=d(356),re=d(6279),de=d(7717),ue=d(7089);const he=(o,g)=>g.id;function ge(o,g){if(1&o){const e=t.RV6();t.j41(0,"li",9),t.bIt("click",function(){const i=l.eBV(e).$implicit,s=t.XpG(3);return l.Njj(s.handleSimpleRowClick(i))}),t.j41(1,"cue-typography",10),t.EFF(2),t.k0s(),t.j41(3,"cue-typography",11),t.EFF(4),t.k0s()()}if(2&o){const e=g.$implicit,n=t.XpG(3);t.AVh("active",n.selectedSimpleDocumentId()===e.id),t.R7$(),t.Y8G("noWrap",!0)("title",e.name),t.R7$(),t.SpI(" ",e.name," "),t.R7$(2),t.SpI(" ",(e.suffix||"").replace(".","").toUpperCase()," ")}}function me(o,g){if(1&o&&(t.j41(0,"ul",5),t.Z7z(1,ge,5,6,"li",8,he),t.k0s()),2&o){const e=t.XpG(2);t.R7$(),t.Dyx(e.simpleDocumentsInt())}}function pe(o,g){if(1&o&&(t.j41(0,"cue-flexcontainer",6)(1,"cue-typography",12),t.EFF(2),t.k0s()()),2&o){const e=t.XpG(2);t.R7$(2),t.SpI(" ",0===e.documentRefs().length&&0===e.documents().length&&e.handlers()?"No documents":e.infoLoading()," ")}}function fe(o,g){if(1&o){const e=t.RV6();t.j41(0,"cue-flexcontainer",7)(1,"cue-typography",13),t.EFF(2),t.k0s(),t.j41(3,"cue-flexcontainer",14)(4,"cue-button",15),t.bIt("click",function(){l.eBV(e);const i=t.XpG(2);return l.Njj(i.previousSimplePage())}),t.nrm(5,"cue-button-icon",16),t.k0s(),t.j41(6,"cue-button",15),t.bIt("click",function(){l.eBV(e);const i=t.XpG(2);return l.Njj(i.nextSimplePage())}),t.nrm(7,"cue-button-icon",17),t.k0s()()()}if(2&o){const e=t.XpG(2);t.R7$(2),t.E5c(" ",e.simpleDisplayStart(),"-",e.simpleDisplayEnd()," / ",e.documentsInt().length," "),t.R7$(2),t.Y8G("disabled",!e.simpleHasPreviousPage()),t.R7$(2),t.Y8G("disabled",!e.simpleHasNextPage())}}function ve(o,g){if(1&o&&(t.j41(0,"div",3),t.nVh(1,me,3,0,"ul",5)(2,pe,3,1,"cue-flexcontainer",6),t.nVh(3,fe,8,5,"cue-flexcontainer",7),t.k0s()),2&o){const e=t.XpG();t.R7$(),t.vxM(e.simpleDocumentsInt().length>0?1:2),t.R7$(2),t.vxM(e.documentsInt().length>0?3:-1)}}function _e(o,g){if(1&o&&t.nrm(0,"cue-svg-icon",34),2&o){const e=t.XpG().$implicit;t.Y8G("name",e.icon)}}function Ce(o,g){if(1&o){const e=t.RV6();t.j41(0,"cue-menu-item",33),t.bIt("click",function(){const i=l.eBV(e).$implicit;return l.Njj(null==i?null:i.action())}),t.nVh(1,_e,1,1,"cue-svg-icon",34),t.EFF(2),t.k0s()}if(2&o){const e=g.$implicit;t.R7$(),t.vxM(e.icon?1:-1),t.R7$(),t.SpI(" ",e.label)}}function be(o,g){if(1&o){const e=t.RV6();t.j41(0,"cue-flexcontainer",24)(1,"cue-menu",25)(2,"cue-button",26,2),t.nrm(4,"cue-button-icon",27),t.k0s(),t.j41(5,"cue-menu-wrap",28),t.Z7z(6,Ce,3,2,"cue-menu-item",null,t.Vm6),t.k0s()(),t.j41(8,"cue-button",29),t.nI1(9,"transloco"),t.bIt("click",function(){l.eBV(e);const i=t.XpG(2);return l.Njj(i.flipped.set(!0))}),t.nrm(10,"cue-button-icon",30),t.k0s()(),t.j41(11,"div",31)(12,"cue-ag-grid",32),t.bIt("gridApiReady",function(i){l.eBV(e);const s=t.XpG(2);return l.Njj(s.onGridReady(i))})("selectedRows",function(i){l.eBV(e);const s=t.XpG(2);return l.Njj(s.clickedDocument.emit(i[0]))}),t.k0s()()}if(2&o){const e=t.XpG(2);t.R7$(6),t.Dyx(e.tableMenu()),t.R7$(2),t.Y8G("cueTooltip",t.bMT(9,10,"components.documentList.tooltipColumnSettings")),t.R7$(4),t.AVh("hidden",e.tableHidden()),t.Y8G("paginationPageSize",e.pageSize())("size",e.size())("rowSelection",e.rowSelection)("rowData",e.documentsInt())("columnDefs",e.columnDefs())("overlaySettings",e.overlaySettings())("overlayActions",e.overlayActions())}}function De(o,g){if(1&o){const e=t.RV6();t.j41(0,"cue-flexcontainer",41),t.bIt("click",function(){l.eBV(e);const i=t.XpG(3);return l.Njj(i.applyTagFilter())}),t.j41(1,"cue-button",42)(2,"cue-button-label"),t.EFF(3,"Apply"),t.k0s()()()}}function we(o,g){if(1&o){const e=t.RV6();t.j41(0,"cue-flexcontainer",24)(1,"cue-button",35),t.bIt("click",function(){l.eBV(e);const i=t.XpG(2);return l.Njj(i.showFront())}),t.nrm(2,"cue-button-icon",36),t.k0s()(),t.j41(3,"cue-flexcontainer",37)(4,"cue-word-cloud",38),t.bIt("selectionChanged",function(i){l.eBV(e);const s=t.XpG(2);return l.Njj(s.tagSelection.set(i))}),t.k0s(),t.nVh(5,De,4,0,"cue-flexcontainer",39),t.k0s(),t.j41(6,"cue-ag-grid-column-select",40),t.mxI("columnDefsChange",function(i){l.eBV(e);const s=t.XpG(2);return t.DH7(s.columnDefs,i)||(s.columnDefs=i),l.Njj(i)}),t.k0s()}if(2&o){const e=t.XpG(2);t.R7$(3),t.AVh("hidden",!e.showTagFilterCloud()),t.R7$(),t.Y8G("words",e.tags())("clickable",!0)("overflow",!0)("multiSelect",!0)("highlightSelection",!0),t.R7$(),t.vxM(e.filterToBeApplied()?5:-1),t.R7$(),t.AVh("hidden",e.showTagFilterCloud()),t.Y8G("settings",e.columnSelectSettings),t.R50("columnDefs",e.columnDefs),t.Y8G("columnDefsGross",e.columnDefsGross())}}function xe(o,g){if(1&o&&(t.j41(0,"cue-card",20),t.eu8(1,43),t.k0s()),2&o){t.XpG();const e=t.sdS(3),n=t.XpG();t.Y8G("variant",n._cardVariant()),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function Me(o,g){if(1&o&&(t.j41(0,"div",21),t.eu8(1,43),t.k0s()),2&o){t.XpG();const e=t.sdS(3);t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function ye(o,g){if(1&o&&(t.j41(0,"cue-card",22),t.eu8(1,43),t.k0s()),2&o){t.XpG();const e=t.sdS(5),n=t.XpG();t.Y8G("variant",n._cardVariant()),t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function Se(o,g){if(1&o&&(t.j41(0,"div",23),t.eu8(1,43),t.k0s()),2&o){t.XpG();const e=t.sdS(5);t.R7$(),t.Y8G("ngTemplateOutlet",e)}}function Ie(o,g){if(1&o){const e=t.RV6();t.j41(0,"div",18),t.mxI("cueFlipChange",function(i){l.eBV(e);const s=t.XpG();return t.DH7(s.flipped,i)||(s.flipped=i),l.Njj(i)}),t.j41(1,"div",19),t.DNE(2,be,13,12,"ng-template",null,0,t.C5r)(4,we,7,13,"ng-template",null,1,t.C5r),t.nVh(6,xe,2,2,"cue-card",20)(7,Me,2,1,"div",21),t.nVh(8,ye,2,2,"cue-card",22)(9,Se,2,1,"div",23),t.k0s()()}if(2&o){const e=t.XpG();t.R50("cueFlip",e.flipped),t.R7$(6),t.vxM("none"!==e.variant()?6:7),t.R7$(2),t.vxM("none"!==e.variant()?8:9)}}let Oe=(()=>{class o{documents=(0,a.hFB)([]);availableContentCategories=(0,a.hFB)(void 0);detailedView=(0,a.hFB)(!1);simple=(0,a.hFB)(!1);pageSize=(0,a.hFB)(10);size=(0,a.hFB)("m");prefetchPages=(0,a.hFB)(3);privileges=(0,a.hFB)();showOpenInDocumentViewerAction=(0,a.hFB)(!0);showOpenInFileManagerAction=(0,a.hFB)(!0);customOverlayActions=(0,a.hFB)([]);variant=(0,a.hFB)("default");_cardVariant=(0,h.EW)(()=>this.variant());documentRefs=(0,a.hFB)([]);handlers=(0,a.hFB)(void 0);documentData=(0,a.hFB)({});clickedDocument=(0,a.CGW)();clickedDownloadDocument=(0,a.CGW)();clickedOpenInDir=(0,a.CGW)();clickedOpen=(0,a.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,h.EW)(()=>this.documentRefs().length>0);_leafContentCategoryIris=(0,h.EW)(()=>{const e=this.availableContentCategories();if(!e)return null;const n=new Set(e.map(i=>i.parent).filter(i=>!!i));return new Set(e.filter(i=>!n.has(i.iri)).map(i=>i.iri))});labelDownload=(0,D.Xx)("components.documentList.labelDownload");labelName=(0,D.Xx)("components.documentList.labelName");labelOpenInFileManager=(0,D.Xx)("components.documentList.labelOpenInFileManager");labelOpenInDocumentViewer=(0,D.Xx)("components.documentList.labelOpenInDocumentViewer");labelSubject=(0,D.Xx)("components.documentList.labelSubject");labelSummary=(0,D.Xx)("components.documentList.labelSummary");labelPages=(0,D.Xx)("components.documentList.labelPages");labelSize=(0,D.Xx)("components.documentList.labelSize");labelCategories=(0,D.Xx)("components.documentList.labelCategories");labelType=(0,D.Xx)("components.documentList.labelType");buttonShowCloudFilter=(0,D.Xx)("components.documentList.buttonShowCloudFilter");buttonHideCloudFilter=(0,D.Xx)("components.documentList.buttonHideCloudFilter");buttonDownloadCSV=(0,D.Xx)("components.documentList.buttonDownloadCSV");infoLoading=(0,D.Xx)("components.documentList.infoLoading");overlaySettings=(0,h.EW)(()=>({...new ie.K,mode:"row",buttonVariant:"accent"===this.variant()?"primary":"accent"}));overlayActions=(0,h.EW)(()=>{const e=[{label:this.labelDownload(),icon:"download",action:n=>{this.handlers()?.requestDownload?.(n.rowData),this.clickedDownloadDocument.emit(n.rowData)}}];return this.showOpenInDocumentViewerAction()&&e.push({label:this.labelOpenInDocumentViewer(),icon:"document",action:n=>{const i=n.rowData.contentIRI.split("/").pop()??n.rowData.contentIRI;this.handlers()?.requestOpen?.(i,n.rowData),this.clickedOpen.emit(n.rowData)}}),this.showOpenInFileManagerAction()&&e.push({label:this.labelOpenInFileManager(),icon:"folder",action:n=>{const i=n.rowData.contentIRI.split("/").pop()??n.rowData.contentIRI;this.handlers()?.requestOpenInDir?.(i,n.rowData),this.clickedOpenInDir.emit(n.rowData)}}),[...e,...this.customOverlayActions()||[]]});documentsInt=(0,h.EW)(()=>{let e;if(this._lazyMode()){const n=this.documentRefs(),i=this.documentData()||{};e=n.map(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,F.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 e=(this.documents()||[]).map(n=>({...n,name:(0,F.M)(n.path),loading:!1}));return this.tagFilter().length?e.filter(n=>n.tags?.some(i=>this.tagFilter().some(s=>s.toLowerCase()===i.toLowerCase()))):e});simplePageCount=(0,h.EW)(()=>Math.max(1,Math.ceil(this.documentsInt().length/Math.max(1,this.pageSize()))));simpleStartIndex=(0,h.EW)(()=>this.simplePageIndex()*Math.max(1,this.pageSize()));simpleEndIndex=(0,h.EW)(()=>this.simpleStartIndex()+Math.max(1,this.pageSize()));simpleDocumentsInt=(0,h.EW)(()=>this.documentsInt().slice(this.simpleStartIndex(),this.simpleEndIndex()));simpleHasPreviousPage=(0,h.EW)(()=>this.simplePageIndex()>0);simpleHasNextPage=(0,h.EW)(()=>this.simplePageIndex()<this.simplePageCount()-1);simpleDisplayStart=(0,h.EW)(()=>this.documentsInt().length?this.simpleStartIndex()+1:0);simpleDisplayEnd=(0,h.EW)(()=>Math.min(this.simpleEndIndex(),this.documentsInt().length));tags=(0,h.EW)(()=>{const e=this.documentsInt(),n=[];return e.forEach(i=>{i.tags?.forEach(s=>n.push(s))}),n});showPageColumn=(0,h.EW)(()=>this.documentsInt().some(e=>void 0!==e.pages));hasSubjects=(0,h.EW)(()=>this.documentsInt().some(e=>void 0!==e.subject&&""!==e.subject));columnSelectSettings=new Q.e;columnDefs=(0,l.vPA)([]);columnDefsGross=(0,l.vPA)([]);tagSelection=(0,l.vPA)([]);tagFilter=(0,l.vPA)([]);showTagFilterCloud=(0,l.vPA)(!1);filterToBeApplied=(0,h.EW)(()=>{const e=this.tagSelection(),n=this.tagFilter();return JSON.stringify(e.sort())!==JSON.stringify(n.sort())});tableMenu=(0,h.EW)(()=>{const e=[];return this.showTagFilterCloud()?e.push({icon:"cloud-funnel",label:this.buttonHideCloudFilter(),variant:"accent",action:()=>{this.flipped.set(!1),this.showTagFilterCloud.set(!1)}}):e.push({icon:"cloud-funnel",label:this.buttonShowCloudFilter(),variant:"accent",action:()=>{this.flipped.set(!0),this.showTagFilterCloud.set(!0)}}),e.push({icon:"download",label:this.buttonDownloadCSV(),action:()=>function z(o,g,e="table.csv"){const n=function S(o,g){const e=function p(o,g){return o.map(e=>{const n={};return"id"in e&&(n.id=e.id),"key"in e&&(n.key=e.key),g.forEach(i=>{let s;"function"==typeof i.valueGetter?s=i.valueGetter({data:e,colDef:i,getValue:u=>e[u],node:void 0,column:void 0,api:void 0,context:void 0}):i.field&&(s=e[i.field]),"function"==typeof i.valueFormatter&&(s=i.valueFormatter({value:s,data:e,colDef:i,node:void 0,column:void 0,api:void 0,context:void 0}));const c=i.headerName||i.colId||i.field;void 0!==c&&(n[c]=s)}),n})}(o,g);if(0===e.length)return"";const n=e.some(c=>"id"in c),i=[];n&&i.push("id"),g.forEach(c=>{const u=c.headerName||c.colId||c.field;u&&"id"!==u&&!i.includes(u)&&i.push(u)});const s=e.map(c=>{const u={};return i.forEach(m=>{u[m]=c[m]}),u});return _().unparse(s,{columns:i})}(o,g);(0,I.YN)(n,e,"text/csv")}(this.documentsInt(),this.columnDefs())}),e});hideCloud(){this.flipped.set(!0),this.showTagFilterCloud.set(!0)}tableHidden=(0,h.EW)(()=>this.showTagFilterCloud()||this.flipped());rowSelection={mode:"singleRow",checkboxes:!1,enableClickSelection:!0};whenTableDataKnown=(0,l.QZP)(()=>{this.simple()||this._buildInitialColumnDefs(this.detailedView())});whenSimpleDataChanges=(0,l.QZP)(()=>{const e=this.documentsInt().length,n=Math.max(1,this.pageSize()),i=Math.max(0,Math.ceil(e/n)-1);this.simplePageIndex()>i&&this.simplePageIndex.set(i)});whenRefsChange=(0,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 e=this.documentRefs();if(!e.length)return;const n=Math.max(1,this.pageSize()),s=n*Math.max(1,this.prefetchPages()),c=e.length,u=this.simpleStartIndex(),m=Math.min(c,u+n),r=this._simpleBufferedUntilIndex();let f=null;if(0===r?f=0:(u>=Math.max(0,r-n)||m>r)&&(f=r),null===f||f>=c)return;const b=Math.min(c,f+s),C=e.slice(f,b).map(v=>v.id).filter(v=>!this._requestedIds.has(v));this._simpleBufferedUntilIndex.set(Math.max(r,b)),C.length&&(C.forEach(v=>this._requestedIds.add(v)),setTimeout(()=>this.handlers()?.requestData(C)))});previousSimplePage(){this.simpleHasPreviousPage()&&this.simplePageIndex.update(e=>Math.max(0,e-1))}nextSimplePage(){this.simpleHasNextPage()&&this.simplePageIndex.update(e=>Math.min(this.simplePageCount()-1,e+1))}handleSimpleRowClick(e){this.selectedSimpleDocumentId.set(e.id),this.handleRowClick(e)}handleRowClick(e){var n=this;return(0,y.A)(function*(){n.clickedDocument.emit(e),window.cueDetachCellOverlay&&window.cueDetachCellOverlay(),n.overlayVisible&&"function"==typeof n.overlayVisible.set&&n.overlayVisible.set(!1)})()}showFront(){this.flipped.set(!1),this.showTagFilterCloud.set(!1)}applyTagFilter(){this.tagFilter.set(this.tagSelection()),this.flipped.set(!1),this.showTagFilterCloud.set(!1)}ngOnDestroy(){null!==this._viewportCheckTimerId&&(clearTimeout(this._viewportCheckTimerId),this._viewportCheckTimerId=null),this._gridApi=null}onGridReady(e){this._gridApi=e,e.addEventListener("viewportChanged",()=>this._checkViewport()),e.addEventListener("modelUpdated",()=>this._checkViewport()),e.addEventListener("paginationChanged",()=>this._checkViewport()),e.addEventListener("sortChanged",()=>{const n=e.getColumnState();this._isSorted=n.some(i=>null!=i.sort),this._isSorted&&this._requestAllUnloaded()}),this._viewportCheckTimerId=setTimeout(()=>{this._viewportCheckTimerId=null,this._checkViewport()},100)}_checkViewport(){if(!this._gridApi||this._gridApi.isDestroyed()||!this._lazyMode())return;if(this._isSorted)return void this._requestAllUnloaded();const e=this.documentRefs(),n=e.length;if(!n)return;const i=Math.max(1,this._gridApi.paginationGetPageSize?.()??10),c=Math.max(0,this._gridApi.paginationGetCurrentPage?.()??0)*i,u=Math.min(n,c+i),m=this._tableBufferedUntilIndex();let r=null;if(0===m?r=0:(c>=Math.max(0,m-i)||u>m)&&(r=m),null===r||r>=n)return;const f=i*Math.max(1,this.prefetchPages()),b=Math.min(n,r+f),C=e.slice(r,b).map(v=>v.id).filter(v=>!this._requestedIds.has(v));this._tableBufferedUntilIndex.set(Math.max(m,b)),C.length&&(C.forEach(v=>this._requestedIds.add(v)),setTimeout(()=>this.handlers()?.requestData(C)))}_requestAllUnloaded(){if(!this._gridApi||this._gridApi.isDestroyed()||!this._lazyMode())return;const e=[];if(this._gridApi.forEachNode(n=>{const i=n.data;i?.loading&&!this._requestedIds.has(i.contentIRI)&&e.push(i.contentIRI)}),e.length>0){const n=Array.from(new Set(e));n.forEach(i=>this._requestedIds.add(i)),setTimeout(()=>this.handlers()?.requestData(n))}}_buildInitialColumnDefs(e){const n=[],i=[];n.push({field:"name",headerName:this.labelName(),width:e?250:120,filter:!0,valueGetter:m=>!m.data?.name&&m.data?.loading?"Loading...":m.data?.name||m.data?.contentIRI}),this.hasSubjects()&&n.push({field:"subject",headerName:this.labelSubject(),flex:1,filter:!0,cellRenderer:R.l,cellRendererParams:{lineHeight:"1.8"},autoHeight:!0});const s={field:"summary",headerName:this.labelSummary(),flex:1,filter:!0,cellRenderer:R.l,cellRendererParams:{lineHeight:"1.8"},autoHeight:!0};this.detailedView()||(s.tooltipField="summary"),e?n.push(s):i.push(s),this.showPageColumn()&&n.push({field:"pages",headerName:this.labelPages(),width:100,filter:!0,valueGetter:m=>Array.isArray(m.data?.pages)?m.data.pages.map(r=>r.page).join(", "):""});const c={field:"size",headerName:this.labelSize(),width:100,filter:!0,valueGetter:m=>(0,oe.b)(m.data?.size||0)};e?n.push(c):i.push(c);const u={field:"categories",headerName:this.labelCategories(),width:120,filter:!0,valueGetter:m=>{const r=m.data?.categories||[],f=this._leafContentCategoryIris(),b=f?r.filter(v=>f.has(v)):r,C=b.slice(0,3).map(v=>this._getContentCategoryLabel(v)).join(", ");return b.length>3?`${C}...`:C}};e?n.push(u):i.push(u),n.push({field:"suffix",headerName:this.labelType(),width:80,filter:!0,headerClass:"header-align-right",cellStyle:{display:"flex",justifyContent:"flex-end"},cellRenderer:ee}),this.columnDefs.update(()=>[...n]),this.columnDefsGross.update(()=>[...n,...i])}_getContentCategoryLabel(e){const n=this.availableContentCategories();if(void 0!==n){const i=n.find(s=>s.iri===e);if(i)return i.label;console.warn(`No label found for content category IRI: ${e}`)}else console.warn("No availableContentCategories provided to DocumentList component");return(o=>{const g=o.split("#").pop()??o,e={AgreementDocument:"Agreement",ArchitecturalDesignDocument:"Architectural Design",AsBuiltDocument:"As-Built",BudgetEstimateDocument:"Budget Estimate",CertificationDocument:"Certification",ComplianceDocument:"Compliance",CorrespondenceDocument:"Correspondence",ConstructionContract:"Construction Contract",ConstructionProcessDocument:"Construction Process",ContractCondition:"Contract Condition",ContractRole:"Contract Role",ContractualDocument:"Contract",CostControlDocument:"Cost Control",DesignDocument:"Design Document",EmailAddress:"Email Address",EngineeringDesignDocument:"Engineering Design",FinancialAdministrativeDocument:"Financial/Administrative",FunctionalRequirementsDocument:"Functional Requirements",InspectionDocument:"Inspection",InsuranceBondDocument:"Insurance/Bond",InteriorDesignDocument:"Interior Design",MarketingCloseoutDocument:"Marketing Closeout",MiscDocument:"Miscellaneous",OperationManual:"Operation Manual",OperationsMaintenanceDocument:"Operations & Maintenance",OperationsManualDocument:"Operations Manual",OtherDocument:"Other",OtherContent:"Other Content",ProgressStatusReport:"Progress Status Report",QualityAssuranceDocument:"Quality Assurance",QualityControlDocument:"Quality Control",RegulatoryComplianceDocument:"Regulatory Compliance",SafetyDocument:"Safety",ScheduleDocument:"Schedule",SiteAssessmentDocument:"Site Assessment",TechnicalRequirementsDocument:"Technical Requirements",TechnicalSpecificationDocument:"Technical Specification",TenderingDocument:"Tendering Document",TermsAndConditionsDocument:"Terms & Conditions"};return void 0===e[g]&&console.log(`No pretty label for category: ${g}`),e[g]??g})(e)}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=t.VBU({type:o,selectors:[["cue-doc-list"]],inputs:{documents:[1,"documents"],availableContentCategories:[1,"availableContentCategories"],detailedView:[1,"detailedView"],simple:[1,"simple"],pageSize:[1,"pageSize"],size:[1,"size"],prefetchPages:[1,"prefetchPages"],privileges:[1,"privileges"],showOpenInDocumentViewerAction:[1,"showOpenInDocumentViewerAction"],showOpenInFileManagerAction:[1,"showOpenInFileManagerAction"],customOverlayActions:[1,"customOverlayActions"],variant:[1,"variant"],documentRefs:[1,"documentRefs"],handlers:[1,"handlers"],documentData:[1,"documentData"]},outputs:{clickedDocument:"clickedDocument",clickedDownloadDocument:"clickedDownloadDocument",clickedOpenInDir:"clickedOpenInDir",clickedOpen:"clickedOpen"},decls:2,vars:1,consts:[["frontContent",""],["backContent",""],["trigger",""],[1,"simple-container",2,"width","100%","height","auto"],[1,"flip-card",2,"width","100%","height","auto","overflow","hidden",3,"cueFlip"],[1,"simple-list"],["justify","center",1,"simple-empty"],["direction","row","justify","space-between","align","center",2,"padding","4px 8px"],[1,"simple-item",3,"active"],[1,"simple-item",3,"click"],["size","s",1,"simple-item-name",3,"noWrap","title"],["size","xs",1,"simple-item-meta"],["size","s"],["size","xs"],["direction","row","gap","s"],["size","xs","variant","tertiary",3,"click","disabled"],["icon","paginator-back"],["icon","paginator-next"],[1,"flip-card",2,"width","100%","height","auto","overflow","hidden",3,"cueFlipChange","cueFlip"],[1,"flip-content"],[1,"card-face","front",2,"width","100%","height","auto",3,"variant"],[1,"card-face","front",2,"width","100%","height","auto"],[1,"card-face","back",2,"width","100%","height","auto",3,"variant"],[1,"card-face","back",2,"width","100%","height","auto"],["direction","row","justify","end",2,"padding","2px"],["positioning","bottomleft"],["trigger","","variant","tertiary","size","s"],["icon","more-vert"],["menu",""],["variant","accent","size","s",3,"click","cueTooltip"],["icon","settings"],[2,"position","relative"],[3,"gridApiReady","selectedRows","paginationPageSize","size","rowSelection","rowData","columnDefs","overlaySettings","overlayActions"],[3,"click"],["before","",3,"name"],["variant","accent","size","s","cueTooltip","Back to table",3,"click"],["icon","arrow-back"],["justify","center",2,"height","350px"],[2,"height","100%","width","100%",3,"selectionChanged","words","clickable","overflow","multiSelect","highlightSelection"],["justify","center",1,"word-cloud-actions"],[3,"columnDefsChange","settings","columnDefs","columnDefsGross"],["justify","center",1,"word-cloud-actions",3,"click"],["variant","primary"],[3,"ngTemplateOutlet"]],template:function(n,i){1&n&&t.nVh(0,ve,4,2,"div",3)(1,Ie,10,3,"div",4),2&n&&t.vxM(i.simple()?0:1)},dependencies:[se.n,L,G.$,V.L,de.R,le.Card,ae.T3,$.a,U.R,Y.pL,ce.M,re.D,te.W,ne.A,ue.d,T.Typography,D.Kj],styles:[".hidden[_ngcontent-%COMP%]{display:none}.word-cloud-actions[_ngcontent-%COMP%]{position:absolute;z-index:10;right:0;left:0;bottom:10px;pointer-events:none}.word-cloud-actions[_ngcontent-%COMP%] cue-button[_ngcontent-%COMP%]{pointer-events:auto}.simple-container[_ngcontent-%COMP%]{width:100%}.simple-list[_ngcontent-%COMP%]{list-style:none;margin:0;padding:4px;max-height:420px;overflow-y:auto}.simple-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px;padding:9px 10px;border-radius:6px;cursor:pointer;transition:background .1s}.simple-item[_ngcontent-%COMP%]:hover{background:var(--cue-color-ultralightgray)}.simple-item.active[_ngcontent-%COMP%]{background:var(--cue-color-lightgray)}.simple-item-name[_ngcontent-%COMP%]{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.simple-item-meta[_ngcontent-%COMP%]{font-size:11px;color:var(--cue-color-midgray)}.simple-empty[_ngcontent-%COMP%]{padding:12px}"],changeDetection:0})}return o})()},4372(O,M,d){d.d(M,{M:()=>y});const y=a=>{const h=a.split("/");return h[h.length-1]}},2065(O,M,d){function h(w,_,p="text/plain"){return function y(w,_="data.zip"){const p=document.createElement("a"),S=URL.createObjectURL(w);p.href=S,p.download=_,document.body.appendChild(p),p.click(),document.body.removeChild(p),URL.revokeObjectURL(S)}(new Blob([w],{type:p}),_)}function l(w,_){const p=document.createElement("a");p.style.display="hidden",p.setAttribute("href",window.URL.createObjectURL(w)),p.setAttribute("download",_),document.body.appendChild(p),p.click(),p.remove()}d.d(M,{KE:()=>l,YN:()=>h})},1493(O,M,d){function y(a,h=!1,l=1){const I=h?1e3:1024;if(Math.abs(a)<I)return a+" B";const w=h?["kB","MB","GB","TB","PB","EB","ZB","YB"]:["KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"];let _=-1;const p=10**l;do{a/=I,++_}while(Math.round(Math.abs(a)*p)/p>=I&&_<w.length-1);return a.toFixed(l)+" "+w[_]}d.d(M,{b:()=>y})}}]);
package/5041.js DELETED
@@ -1 +0,0 @@
1
- (self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[5041,9695],{5448(A,B,g){"use strict";g.d(B,{L:()=>D});var h=g(7705),O=g(2245),a=g(5547);const e=["*"];let D=(()=>{class b{fontSize=(0,h.hFB)("m");italic=(0,h.hFB)(!1);noWrap=(0,h.hFB)(!0);static \u0275fac=function($){return new($||b)};static \u0275cmp=a.VBU({type:b,selectors:[["cue-button-label"]],inputs:{fontSize:[1,"fontSize"],italic:[1,"italic"],noWrap:[1,"noWrap"]},ngContentSelectors:e,decls:3,vars:3,consts:[[3,"size","italic","noWrap"]],template:function($,f){1&$&&(a.NAR(),a.j41(0,"div")(1,"cue-typography",0),a.SdG(2),a.k0s()()),2&$&&(a.R7$(),a.Y8G("size",f.fontSize())("italic",f.italic())("noWrap",f.noWrap()))},dependencies:[O.Typography],styles:["div[_ngcontent-%COMP%]{transform:translateY(.05em)}"]})}return b})()},9695(A,B,g){"use strict";g.d(B,{Switch:()=>b});var h=g(7705),O=g(29),a=g(5547);function e(w,C){if(1&w&&a.nrm(0,"cue-svg-icon",2),2&w){const $=a.XpG();a.Y8G("name",$.iconChecked())}}function D(w,C){if(1&w&&a.nrm(0,"cue-svg-icon",2),2&w){const $=a.XpG();a.Y8G("name",$.icon())}}let b=(()=>{class w{size=(0,h.hFB)("m");icon=(0,h.hFB)(void 0);iconChecked=(0,h.hFB)(void 0);disabled=(0,h.hFB)(!1);checked=(0,h.geq)(!1);toggleChange=(0,h.CGW)();toggle(){this.checked.set(!this.checked()),this.toggleChange.emit(this.checked())}static \u0275fac=function(f){return new(f||w)};static \u0275cmp=a.VBU({type:w,selectors:[["cue-input-switch"]],hostVars:5,hostBindings:function(f,v){2&f&&(a.BMQ("size",v.size()),a.AVh("checked",v.checked())("disabled",v.disabled()))},inputs:{size:[1,"size"],icon:[1,"icon"],iconChecked:[1,"iconChecked"],disabled:[1,"disabled"],checked:[1,"checked"]},outputs:{checked:"checkedChange",toggleChange:"toggleChange"},decls:4,vars:3,consts:[["type","checkbox",3,"click","checked","disabled"],[1,"indicator"],[3,"name"]],template:function(f,v){1&f&&(a.j41(0,"input",0),a.bIt("click",function(){return v.toggle()}),a.k0s(),a.j41(1,"div",1),a.nVh(2,e,1,1,"cue-svg-icon",2)(3,D,1,1,"cue-svg-icon",2),a.k0s()),2&f&&(a.Y8G("checked",v.checked())("disabled",v.disabled()),a.R7$(2),a.vxM(v.checked()&&v.iconChecked()?2:v.icon()?3:-1))},dependencies:[O.A],styles:["[_nghost-%COMP%]{--cue-input-switch-height: 18px;--cue-input-switch-width: calc(var(--cue-input-switch-height) * 1.7);--cue-input-switch-inset: 2px;--cue-input-switch-indicator-width: calc( var(--cue-input-switch-height) - (2 * var(--cue-input-switch-inset)) );--cue-input-switch-icon-width: calc( var(--cue-input-switch-indicator-width) - (2 * var(--cue-input-switch-inset)) );display:block;flex-shrink:0;position:relative;height:var(--cue-input-switch-height);width:var(--cue-input-switch-width);border-radius:var(--cue-input-switch-height);--cue-icon-width: var(--cue-input-switch-icon-width);background:var(--cue-input-switch-background);transition:background-color .4s ease}[size=xs][_nghost-%COMP%]{--cue-input-switch-height: 12px;--cue-input-switch-inset: 1px}[size=s][_nghost-%COMP%]{--cue-input-switch-height: 14px;--cue-input-switch-inset: 1px}[size=m][_nghost-%COMP%]{--cue-input-switch-height: 18px;--cue-input-switch-inset: 2px}[size=l][_nghost-%COMP%]{--cue-input-switch-height: 22px;--cue-input-switch-inset: 3px}[size=xl][_nghost-%COMP%]{--cue-input-switch-height: 28px;--cue-input-switch-inset: 3px}@container cue-container (width < 20em){[_nghost-%COMP%]{--cue-input-switch-height: 16px}[size=xs][_nghost-%COMP%]{--cue-input-switch-height: 10px}[size=s][_nghost-%COMP%]{--cue-input-switch-height: 12px}[size=m][_nghost-%COMP%]{--cue-input-switch-height: 16px}[size=l][_nghost-%COMP%]{--cue-input-switch-height: 18px}[size=xl][_nghost-%COMP%]{--cue-input-switch-height: 20px}}.checked[_nghost-%COMP%]{background:var(--cue-input-switch-checked-background)}.disabled[_nghost-%COMP%]{background:var(--cue-input-switch-disabled-background);cursor:default}[_nghost-%COMP%] .indicator[_ngcontent-%COMP%]{pointer-events:none;position:absolute;left:var(--cue-input-switch-inset);top:var(--cue-input-switch-inset);width:var(--cue-input-switch-indicator-width);aspect-ratio:1;border-radius:50%;display:flex;align-items:center;justify-content:center;background-color:var(--cue-input-switch-indicator-background);color:var(--cue-input-switch-indicator-foreground);transition:left .4s ease,background-color .4s ease,color .4s ease}.checked[_nghost-%COMP%] .indicator[_ngcontent-%COMP%]{left:calc(var(--cue-input-switch-width) - var(--cue-input-switch-inset) - var( --cue-input-switch-indicator-width ));background:var(--cue-input-switch-checked-indicator-background);color:var(--cue-input-switch-checked-indicator-foreground)}.disabled[_nghost-%COMP%] .indicator[_ngcontent-%COMP%]{background:var(--cue-input-switch-disabled-indicator-background);color:var(--cue-input-switch-disabled-indicator-foreground)}input[_ngcontent-%COMP%]{all:unset;position:absolute;inset:0;cursor:pointer;border-radius:var(--cue-input-switch-height)}input[_ngcontent-%COMP%]:focus-visible:not(:disabled) + .indicator[_ngcontent-%COMP%]{outline:1px solid var(--cue-input-switch-focus-color);outline-offset:2px}"]})}return w})()},5745(A,B,g){"use strict";g.d(B,{a:()=>I});var h=g(7705),O=g(5802),a=g(2271),e=g(5547);const D=["dialog"],b=["*",[["","modal-footer",""]]],w=["*","[modal-footer]"];function C(_,L){if(1&_&&(e.rj2(0,"h2",7),e.EFF(1),e.eux()),2&_){const u=e.XpG(3);e.R7$(),e.JRh(u.effectiveTitle())}}function $(_,L){if(1&_&&(e.rj2(0,"p",8),e.EFF(1),e.eux()),2&_){const u=e.XpG(3);e.R7$(),e.JRh(u.subtitle())}}function f(_,L){if(1&_){const u=e.RV6();e.rj2(0,"button",10),e.VwU("click",function(){O.eBV(u);const y=e.XpG(3);return O.Njj(y.onClose())}),O.qSk(),e.rj2(1,"svg",11),e.Hgh(2,"path",12),e.eux()()}}function v(_,L){if(1&_&&(e.rj2(0,"div",4)(1,"div",6),e.nVh(2,C,2,1,"h2",7),e.nVh(3,$,2,1,"p",8),e.eux(),e.nVh(4,f,3,0,"button",9),e.eux()),2&_){const u=e.XpG(2);e.R7$(2),e.vxM(u.effectiveTitle()?2:-1),e.R7$(),e.vxM(u.subtitle()?3:-1),e.R7$(),e.vxM(u.displayCloseBtn()?4:-1)}}function N(_,L){if(1&_&&(e.rj2(0,"div",3),e.VwU("click",function(P){return P.stopPropagation()}),e.nVh(1,v,5,3,"div",4),e.rj2(2,"div",5),e.SdG(3),e.eux(),e.SdG(4,1),e.eux()),2&_){const u=e.XpG();e.xc7("min-width",u.minWidth()),e.AVh("has-header",u.effectiveTitle()||u.displayCloseBtn()),e.R7$(),e.vxM(u.effectiveTitle()||u.displayCloseBtn()?1:-1)}}let I=(()=>{class _{visible=(0,h.geq)(!0);closeOnBackgroundClick=(0,h.hFB)(!0);displayCloseBtn=(0,h.hFB)(!0);label=(0,h.hFB)("");title=(0,h.hFB)("");subtitle=(0,h.hFB)("");minWidth=(0,h.hFB)();close=(0,h.CGW)();dialogRef=h.ebz.required("dialog");effectiveTitle=(0,a.EW)(()=>this.title()||this.label());constructor(){(0,O.QZP)(()=>{const u=this.dialogRef().nativeElement;this.visible()?u.open||u.showModal():u.open&&u.close()})}onBackdropClick(){this.closeOnBackgroundClick()&&this.onClose()}onClose(){this.visible.set(!1),this.close.emit()}static \u0275fac=function(P){return new(P||_)};static \u0275cmp=e.VBU({type:_,selectors:[["cue-modal"]],viewQuery:function(P,y){1&P&&e.wEZ(y.dialogRef,D,5),2&P&&e.NyB()},inputs:{visible:[1,"visible"],closeOnBackgroundClick:[1,"closeOnBackgroundClick"],displayCloseBtn:[1,"displayCloseBtn"],label:[1,"label"],title:[1,"title"],subtitle:[1,"subtitle"],minWidth:[1,"minWidth"]},outputs:{visible:"visibleChange",close:"close"},ngContentSelectors:w,decls:3,vars:1,consts:[["dialog",""],[1,"modal-dialog",3,"cancel","click"],[1,"panel",3,"has-header","minWidth"],[1,"panel",3,"click"],[1,"header"],[1,"body"],[1,"header-text"],[1,"modal-title"],[1,"modal-subtitle"],["type","button","aria-label","Close",1,"close-btn"],["type","button","aria-label","Close",1,"close-btn",3,"click"],["viewBox","0 0 256 256","xmlns","http://www.w3.org/2000/svg"],["fill","currentColor","d","M205.66 194.34a8 8 0 0 1-11.32 11.32L128 139.31l-66.34 66.35a8 8 0 0 1-11.32-11.32L116.69 128L61.34 72.66a8 8 0 0 1 11.32-11.32L128 116.69l66.34-66.35a8 8 0 0 1 11.32 11.32L139.31 128Z"]],template:function(P,y){1&P&&(e.NAR(b),e.rj2(0,"dialog",1,0),e.VwU("cancel",function(){return y.onClose()})("click",function(){return y.onBackdropClick()}),e.nVh(2,N,5,5,"div",2),e.eux()),2&P&&(e.R7$(2),e.vxM(y.visible()?2:-1))},styles:[".modal-dialog[_ngcontent-%COMP%]{padding:0;border:none;background:transparent;overflow:visible;margin:auto;outline:none;max-width:min(calc(100vw - 32px),80vw)}.modal-dialog[_ngcontent-%COMP%]::backdrop{background-color:var(--cue-modal-overlay-color, rgba(14, 24, 39, .55));-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.panel[_ngcontent-%COMP%]{background:var(--cue-default);color:var(--cue-defaultContrast);border-radius:24px;border:1px solid var(--cue-border-color);box-shadow:0 12px 48px #00000047;max-height:88vh;overflow-y:auto;overflow-x:hidden;box-sizing:border-box;scrollbar-width:thin}.header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:12px;padding:26px 26px 0;margin-bottom:20px}.header-text[_ngcontent-%COMP%]{flex:1}.modal-title[_ngcontent-%COMP%]{margin:0;font-size:20px;font-weight:700;letter-spacing:-.01em;font-family:var(--cue-font-family);color:var(--cue-defaultContrast)}.modal-subtitle[_ngcontent-%COMP%]{margin:5px 0 0;font-size:13px;color:var(--cue-color-midgray);letter-spacing:.02em;line-height:1.5}.close-btn[_ngcontent-%COMP%]{flex:none;width:34px;height:34px;border-radius:50%;border:none;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--cue-color-midgray);padding:0;margin-top:-4px;transition:background .15s,color .15s}.close-btn[_ngcontent-%COMP%]:hover{background:var(--cue-main-background);color:var(--cue-main-foreground)}.close-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:18px;height:18px;display:block}.body[_ngcontent-%COMP%]{padding:26px}.has-header[_ngcontent-%COMP%] .body[_ngcontent-%COMP%]{padding-top:0}"]})}return _})()},7374(A){A.exports=function(){"use strict";var g=6e4,h=36e5,O="millisecond",a="second",e="minute",D="hour",b="day",w="week",C="month",$="quarter",f="year",v="date",N="Invalid Date",I=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,L={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(c){var i=["th","st","nd","rd"],t=c%100;return"["+c+(i[(t-20)%10]||i[t]||i[0])+"]"}},u=function(c,i,t){var o=String(c);return!o||o.length>=i?c:""+Array(i+1-o.length).join(t)+c},P={s:u,z:function(c){var i=-c.utcOffset(),t=Math.abs(i),o=Math.floor(t/60),n=t%60;return(i<=0?"+":"-")+u(o,2,"0")+":"+u(n,2,"0")},m:function c(i,t){if(i.date()<t.date())return-c(t,i);var o=12*(t.year()-i.year())+(t.month()-i.month()),n=i.clone().add(o,C),s=t-n<0,r=i.clone().add(o+(s?-1:1),C);return+(-(o+(t-n)/(s?n-r:r-n))||0)},a:function(c){return c<0?Math.ceil(c)||0:Math.floor(c)},p:function(c){return{M:C,y:f,w,d:b,D:v,h:D,m:e,s:a,ms:O,Q:$}[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(c){return void 0===c}},y="en",T={};T[y]=L;var H="$isDayjsObject",G=function(c){return c instanceof j||!(!c||!c[H])},U=function c(i,t,o){var n;if(!i)return y;if("string"==typeof i){var s=i.toLowerCase();T[s]&&(n=s),t&&(T[s]=t,n=s);var r=i.split("-");if(!n&&r.length>1)return c(r[0])}else{var d=i.name;T[d]=i,n=d}return!o&&n&&(y=n),n||!o&&y},M=function(c,i){if(G(c))return c.clone();var t="object"==typeof i?i:{};return t.date=c,t.args=arguments,new j(t)},l=P;l.l=U,l.i=G,l.w=function(c,i){return M(c,{locale:i.$L,utc:i.$u,x:i.$x,$offset:i.$offset})};var j=function(){function c(t){this.$L=U(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[H]=!0}var i=c.prototype;return i.parse=function(t){this.$d=function(o){var n=o.date,s=o.utc;if(null===n)return new Date(NaN);if(l.u(n))return new Date;if(n instanceof Date)return new Date(n);if("string"==typeof n&&!/Z$/i.test(n)){var r=n.match(I);if(r){var d=r[2]-1||0,p=(r[7]||"0").substring(0,3);return s?new Date(Date.UTC(r[1],d,r[3]||1,r[4]||0,r[5]||0,r[6]||0,p)):new Date(r[1],d,r[3]||1,r[4]||0,r[5]||0,r[6]||0,p)}}return new Date(n)}(t),this.init()},i.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},i.$utils=function(){return l},i.isValid=function(){return this.$d.toString()!==N},i.isSame=function(t,o){var n=M(t);return this.startOf(o)<=n&&n<=this.endOf(o)},i.isAfter=function(t,o){return M(t)<this.startOf(o)},i.isBefore=function(t,o){return this.endOf(o)<M(t)},i.$g=function(t,o,n){return l.u(t)?this[o]:this.set(n,t)},i.unix=function(){return Math.floor(this.valueOf()/1e3)},i.valueOf=function(){return this.$d.getTime()},i.startOf=function(t,o){var n=this,s=!!l.u(o)||o,r=l.p(t),d=function(z,x){var E=l.w(n.$u?Date.UTC(n.$y,x,z):new Date(n.$y,x,z),n);return s?E:E.endOf(b)},p=function(z,x){return l.w(n.toDate()[z].apply(n.toDate("s"),(s?[0,0,0,0]:[23,59,59,999]).slice(x)),n)},m=this.$W,k=this.$M,S=this.$D,R="set"+(this.$u?"UTC":"");switch(r){case f:return s?d(1,0):d(31,11);case C:return s?d(1,k):d(0,k+1);case w:var W=this.$locale().weekStart||0,F=(m<W?m+7:m)-W;return d(s?S-F:S+(6-F),k);case b:case v:return p(R+"Hours",0);case D:return p(R+"Minutes",1);case e:return p(R+"Seconds",2);case a:return p(R+"Milliseconds",3);default:return this.clone()}},i.endOf=function(t){return this.startOf(t,!1)},i.$set=function(t,o){var n,s=l.p(t),r="set"+(this.$u?"UTC":""),d=(n={},n[b]=r+"Date",n[v]=r+"Date",n[C]=r+"Month",n[f]=r+"FullYear",n[D]=r+"Hours",n[e]=r+"Minutes",n[a]=r+"Seconds",n[O]=r+"Milliseconds",n)[s],p=s===b?this.$D+(o-this.$W):o;if(s===C||s===f){var m=this.clone().set(v,1);m.$d[d](p),m.init(),this.$d=m.set(v,Math.min(this.$D,m.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},i.set=function(t,o){return this.clone().$set(t,o)},i.get=function(t){return this[l.p(t)]()},i.add=function(t,o){var n,s=this;t=Number(t);var r=l.p(o),d=function(k){var S=M(s);return l.w(S.date(S.date()+Math.round(k*t)),s)};if(r===C)return this.set(C,this.$M+t);if(r===f)return this.set(f,this.$y+t);if(r===b)return d(1);if(r===w)return d(7);var p=(n={},n[e]=g,n[D]=h,n[a]=1e3,n)[r]||1,m=this.$d.getTime()+t*p;return l.w(m,this)},i.subtract=function(t,o){return this.add(-1*t,o)},i.format=function(t){var o=this,n=this.$locale();if(!this.isValid())return n.invalidDate||N;var s=t||"YYYY-MM-DDTHH:mm:ssZ",r=l.z(this),d=this.$H,p=this.$m,m=this.$M,k=n.weekdays,S=n.months,W=function(x,E,Y,V){return x&&(x[E]||x(o,s))||Y[E].slice(0,V)},F=function(x){return l.s(d%12||12,x,"0")},z=n.meridiem||function(x,E,Y){var V=x<12?"AM":"PM";return Y?V.toLowerCase():V};return s.replace(_,function(x,E){return E||function(Y){switch(Y){case"YY":return String(o.$y).slice(-2);case"YYYY":return l.s(o.$y,4,"0");case"M":return m+1;case"MM":return l.s(m+1,2,"0");case"MMM":return W(n.monthsShort,m,S,3);case"MMMM":return W(S,m);case"D":return o.$D;case"DD":return l.s(o.$D,2,"0");case"d":return String(o.$W);case"dd":return W(n.weekdaysMin,o.$W,k,2);case"ddd":return W(n.weekdaysShort,o.$W,k,3);case"dddd":return k[o.$W];case"H":return String(d);case"HH":return l.s(d,2,"0");case"h":return F(1);case"hh":return F(2);case"a":return z(d,p,!0);case"A":return z(d,p,!1);case"m":return String(p);case"mm":return l.s(p,2,"0");case"s":return String(o.$s);case"ss":return l.s(o.$s,2,"0");case"SSS":return l.s(o.$ms,3,"0");case"Z":return r}return null}(x)||r.replace(":","")})},i.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},i.diff=function(t,o,n){var s,r=this,d=l.p(o),p=M(t),m=(p.utcOffset()-this.utcOffset())*g,k=this-p,S=function(){return l.m(r,p)};switch(d){case f:s=S()/12;break;case C:s=S();break;case $:s=S()/3;break;case w:s=(k-m)/6048e5;break;case b:s=(k-m)/864e5;break;case D:s=k/h;break;case e:s=k/g;break;case a:s=k/1e3;break;default:s=k}return n?s:l.a(s)},i.daysInMonth=function(){return this.endOf(C).$D},i.$locale=function(){return T[this.$L]},i.locale=function(t,o){if(!t)return this.$L;var n=this.clone(),s=U(t,o,!0);return s&&(n.$L=s),n},i.clone=function(){return l.w(this.$d,this)},i.toDate=function(){return new Date(this.valueOf())},i.toJSON=function(){return this.isValid()?this.toISOString():null},i.toISOString=function(){return this.$d.toISOString()},i.toString=function(){return this.$d.toUTCString()},c}(),K=j.prototype;return M.prototype=K,[["$ms",O],["$s",a],["$m",e],["$H",D],["$W",b],["$M",C],["$y",f],["$D",v]].forEach(function(c){K[c[1]]=function(i){return this.$g(i,c[0],c[1])}}),M.extend=function(c,i){return c.$i||(c(i,j,M),c.$i=!0),M},M.locale=U,M.isDayjs=G,M.unix=function(c){return M(1e3*c)},M.en=T[y],M.Ls=T,M.p={},M}()}}]);