@qaecy/cue-ui 0.0.45 → 0.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/149.js +1 -1
- package/153.js +1 -1
- package/2.js +1 -0
- package/245.js +1 -1
- package/311.js +1 -1
- package/36.js +1 -1
- package/399.js +1 -1
- package/4.js +1 -1
- package/41.js +1 -1
- package/418.js +1 -1
- package/419.js +1 -1
- package/423.js +1 -1
- package/560.js +1 -1
- package/598.js +1 -1
- package/613.js +1 -1
- package/673.js +1 -1
- package/7.js +1 -1
- package/724.js +1 -1
- package/799.js +1 -1
- package/836.js +1 -1
- package/872.js +1 -1
- package/911.js +1 -1
- package/931.js +1 -0
- package/index.js +1 -1
- package/main.js +1 -1
- package/package.json +1 -1
- package/styles.css +1 -1
- package/629.js +0 -1
- package/981.js +0 -1
package/36.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[36],{3036(J,M,p){p.r(M),p.d(M,{DocumentViewer:()=>G});var f=p(467),e=p(9769),d=p(5802),t=p(7705),N=p(2271),u=p(5547),g=p(3418),c=p(6114);const R={bim:()=>Promise.all([p.e(598),p.e(76),p.e(419)]).then(p.bind(p,6419)).then(r=>r.BIMFragmentsViewer),cad:()=>Promise.all([p.e(598),p.e(560),p.e(76),p.e(629)]).then(p.bind(p,5873)).then(r=>r.DXFViewer),image:()=>p.e(560).then(p.bind(p,8560)).then(r=>r.ImageViewer),markdown:()=>Promise.all([p.e(222),p.e(586)]).then(p.bind(p,6586)).then(r=>r.MarkdownViewer),pdf:()=>Promise.all([p.e(560),p.e(311)]).then(p.bind(p,4311)).then(r=>r.PDFViewer),text:()=>p.e(523).then(p.bind(p,3523)).then(r=>r.TextViewer),spreadsheet:()=>Promise.all([p.e(903),p.e(336)]).then(p.bind(p,8336)).then(r=>r.Spreadsheet),code:()=>Promise.all([p.e(284),p.e(836),p.e(329)]).then(p.bind(p,329)).then(r=>r.CodeViewer),email:()=>p.e(740).then(p.bind(p,5740)).then(r=>r.EmailViewer)},D=new Map([[c.N.DXF,"cad"],[c.N.FRAG,"bim"],[c.N.PDF,"pdf"],[c.N.PNG,"image"],[c.N.JPG,"image"],[c.N.JPEG,"image"],[c.N.SVG,"image"],[c.N.GIF,"image"],[c.N.WEBP,"image"],[c.N.BMP,"image"],[c.N.AVIF,"image"],[c.N.APNG,"image"],[c.N.CSV,"spreadsheet"],[c.N.XLSX,"spreadsheet"],[c.N.XLS,"spreadsheet"],[c.N.JSON,"code"],[c.N.JSONLD,"code"],[c.N.XML,"code"],[c.N.CSS,"code"],[c.N.JS,"code"],[c.N.HTML,"code"],[c.N.HTM,"code"],[c.N.SH,"code"],[c.N.TXT,"text"],[c.N.RST,"text"],[c.N.MD,"markdown"]]);var T=p(8807),V=p(2065);const C=["*"];let H=(()=>{class r{width=(0,t.hFB)("auto");height=(0,t.hFB)("auto");style=(0,t.hFB)("");getStyles=(0,N.EW)(()=>this.style());static \u0275fac=function(s){return new(s||r)};static \u0275cmp=u.VBU({type:r,selectors:[["cue-container"]],hostVars:6,hostBindings:function(s,a){2&s&&(u.Aen(a.getStyles()),u.xc7("max-width",a.width())("max-height",a.height()))},inputs:{width:[1,"width"],height:[1,"height"],style:[1,"style"]},ngContentSelectors:C,decls:1,vars:0,template:function(s,a){1&s&&(u.NAR(),u.SdG(0))},styles:["[_nghost-%COMP%]{display:flex;align-items:stretch;container-name:cue-container;container-type:inline-size}[_nghost-%COMP%] > *[_ngcontent-%COMP%]{flex:1;max-width:100%}"]})}return r})();var w=p(2245),E=p(5381),z=p(5971),X=p(3319),L=p(5448),l=p(2014),U=p(7851),I=p(3191);let y=(()=>{class r{searchService=(0,d.WQX)(I.g);entityBeingPlaced=(0,d.vPA)(void 0);confirmedPlacement=(0,d.vPA)(void 0);rdfBaseURL=(0,d.vPA)("");contentUUID=(0,d.vPA)("");activePdfDoc=(0,d.vPA)(null);currentPage=(0,d.vPA)(1);requestedPage=(0,d.vPA)(null);navigateToPage(n){this.currentPage.set(n),this.requestedPage.set(n)}entityTextSearchResults=(0,d.vPA)([]);entityTextSearchResultsOnCurrentPage=(0,N.EW)(()=>this.entityTextSearchResults().filter(n=>n.page===this.currentPage()));currentPlacementBbox=(0,d.vPA)(null);categoryPreviewBoxes=(0,d.vPA)([]);_lastMatchIndex=(0,d.vPA)(null);matchCycleDisplay=(0,N.EW)(()=>{const n=this._lastMatchIndex(),s=this.entityTextSearchResultsOnCurrentPage().length;return null===n||0===s?"":`${n+1}/${s}`});cycleTextMatch(){const n=this.entityTextSearchResultsOnCurrentPage();if(!n.length)return;const s=this._lastMatchIndex(),a=null===s?0:(s+1)%n.length;this._lastMatchIndex.set(a);const o=n[a].xywhStr.replace("percent:",""),[A,P,i,m]=o.split(",").map(Number),W=Math.max(0,A-.5),b=Math.max(0,P-.5),S=Math.min(100-W,i+1),x=Math.min(100-b,m+1);this.currentPlacementBbox.set({xywhStr:`percent:${W.toFixed(2)},${b.toFixed(2)},${S.toFixed(2)},${x.toFixed(2)}`,color:"rgba(255, 160, 0, 0.9)",allowRemove:!1})}setManualBbox(n){this._lastMatchIndex.set(null),this.currentPlacementBbox.set({...n,allowRemove:!1})}clearPlacement(){this.currentPlacementBbox.set(null),this._lastMatchIndex.set(null)}constructor(){(0,d.QZP)(()=>{const n=this.entityBeingPlaced(),s=this.activePdfDoc();n?.value&&s?this.searchService.searchAll(s,n.value).then(a=>{this.entityTextSearchResults.set(a)}):this.entityTextSearchResults.set([])}),(0,d.QZP)(()=>{this.currentPage(),this._lastMatchIndex.set(null),this.currentPlacementBbox.set(null)}),(0,d.QZP)(()=>{const n=this.entityBeingPlaced();this._lastMatchIndex.set(null),void 0===n&&this.currentPlacementBbox.set(null)})}static \u0275fac=function(s){return new(s||r)};static \u0275prov=d.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var v=p(9352);const O=["viewerTarget"];function B(r,$){if(1&r){const n=u.RV6();u.j41(0,"cue-flexcontainer",2)(1,"cue-typography"),u.EFF(2),u.nI1(3,"transloco"),u.k0s(),u.j41(4,"cue-button",3),u.bIt("click",function(){d.eBV(n);const a=u.XpG();return d.Njj(a.downloadFile())}),u.j41(5,"cue-button-padder"),u.nrm(6,"cue-button-icon",4),u.k0s(),u.j41(7,"cue-button-label"),u.EFF(8),u.nI1(9,"transloco"),u.k0s()()()}2&r&&(u.R7$(2),u.JRh(u.bMT(3,2,"components.documentViewer.infoNoViewer")),u.R7$(6),u.JRh(u.bMT(9,4,"common.buttons.download")))}let G=(()=>{class r{_eps=(0,d.WQX)(y);_destroyed=!1;url=t.hFB.required();suffix=(0,t.hFB)();settings=(0,t.hFB)(new g.DocumentViewerSettings);viewerTypeOverride=(0,t.hFB)(void 0);interactions=(0,t.CGW)();viewerType=(0,N.EW)(()=>{const n=this.viewerTypeOverride();if(n)return n;const s=this.url(),a=void 0!==this.suffix()?this.suffix()?.trim():`.${s.split(".").pop()?.trim()}`,o=a?D.get(a):void 0;return console.log("[DocumentViewer] viewerType resolved",{url:s?.substring(0,80),suffix:a,viewerType:o}),void 0!==a?o:void 0});currentComponent=(0,d.vPA)(null);noViewer=(0,N.EW)(()=>null===this.currentComponent());isLoading=(0,d.vPA)(!1);viewerTarget;currentRef;_interactionsState=(0,d.vPA)(new g.DocumentViewerInteractions);constructor(){(0,d.QZP)(()=>{const n=this.viewerType(),s=this.url();console.log("[DocumentViewer] url/viewerType effect \u2014",{viewerType:n,url:s?.substring(0,80),destroyed:this._destroyed}),n?("pdf"!==n&&this._eps.activePdfDoc.set(null),this.isLoading.set(!0),this.loadViewerComponent(n,s,this.settings())):(this.viewerTarget.clear(),this.currentRef?.destroy(),this.currentRef=void 0,console.info("No viewer available for this file type"),this.currentComponent.set(null),this.isLoading.set(!1),this._eps.activePdfDoc.set(null))}),(0,d.QZP)(()=>{this.interactions.emit(this._interactionsState())}),(0,d.QZP)(()=>{const n=this.settings().pdf,s=this.currentRef;s&&s.setInput("settings",n)})}ngOnDestroy(){this._destroyed=!0,this.viewerTarget.clear(),this.currentRef?.destroy(),this.currentRef=void 0}loadViewerComponent(n,s,a){var o=this;return(0,f.A)(function*(){console.log("[DocumentViewer] loadViewerComponent",{viewerType:n,url:s?.substring(0,100)});try{const A=R[n],P=yield A();if(o._destroyed)return;if(o.currentComponent.set(P),o.isLoading.set(!1),o.viewerTarget.clear(),o.currentRef?.destroy(),o.currentRef=o.viewerTarget.createComponent(P),"pdf"===n)o.currentRef.setInput("src",s),void 0!==a?.pdf&&o.currentRef.setInput("settings",a.pdf),o.currentRef.instance.pdfLoaded&&o.currentRef.instance.pdfLoaded.subscribe(i=>{o._eps.currentPage.set(1),o._eps.activePdfDoc.set(i)}),o.currentRef.instance.settingsChange&&o.currentRef.instance.settingsChange.subscribe(i=>{const m=parseInt(i?.page,10);!isNaN(m)&&m>0&&o._eps.currentPage.set(m)}),o.currentRef.instance.artefactDrawn&&o.currentRef.instance.artefactDrawn.subscribe(i=>{"xywh"===i.type&&o._eps.setManualBbox(i.def)}),o.currentRef.instance.artefactEdited&&o.currentRef.instance.artefactEdited.subscribe(i=>{"bbox"===i.type&&o._eps.setManualBbox(i.after)});else if("bim"===n){const i=new T.di("model","Model",s);i.visible=!0,o.currentRef.setInput("data",{models:[i]}),void 0!==a?.bim&&o.currentRef.setInput("settings",a.bim),o.currentRef.instance.selectedElements&&o.currentRef.instance.selectedElements.subscribe(m=>{o._interactionsState.update(h=>(h.bim.selectedElements=m,Object.assign({},h)))}),o.currentRef.instance.clickedElement&&o.currentRef.instance.clickedElement.subscribe(m=>{o._interactionsState.update(h=>(h.bim.clickedElement=m,Object.assign({},h)))})}else if("cad"===n)o.currentRef.setInput("fileURL",s),void 0!==a?.cad&&o.currentRef.setInput("settings",a.cad);else if("image"===n)o.currentRef.setInput("src",s);else if("markdown"===n)o.currentRef.setInput("fileURL",s);else if("text"===n)o.currentRef.setInput("fileURL",s);else if("spreadsheet"===n){const i=o.suffix()?.split(".").pop()||s.split(".").pop()||"csv";o.currentRef.setInput("data",{url:s,format:i})}else if("code"===n){const h={".json":"json",".jsonld":"jsonld",".xml":"xml",".html":"xml",".htm":"xml",".css":"text",".js":"text",".sh":"text"}[o.suffix()??`.${s.split(".").pop()??""}`]??"text";o.currentRef.setInput("fileURL",s),o.currentRef.setInput("codeType",h)}else"email"===n&&o.currentRef.setInput("fileURL",s)}catch(A){console.error("Failed to load viewer component:",A),o.currentComponent.set(null)}})()}downloadFile(){var n=this;return(0,f.A)(function*(){const a=yield(yield fetch(n.url())).blob();(0,V.KE)(a,`document${n.suffix()??""}`)})()}static \u0275fac=function(s){return new(s||r)};static \u0275cmp=u.VBU({type:r,selectors:[["cue-doc-viewer"]],viewQuery:function(s,a){if(1&s&&u.GBs(O,7,u.c1b),2&s){let o;u.mGM(o=u.lsd())&&(a.viewerTarget=o.first)}},inputs:{url:[1,"url"],suffix:[1,"suffix"],settings:[1,"settings"],viewerTypeOverride:[1,"viewerTypeOverride"]},outputs:{interactions:"interactions"},decls:4,vars:2,consts:[["viewerTarget",""],[2,"height","100%","width","100%",3,"cueLogoLoader"],["direction","column","align","center","justify","center",2,"height","100%","width","100%"],[3,"click"],["icon","download"]],template:function(s,a){1&s&&(u.j41(0,"cue-container",1),u.eu8(1,null,0),u.nVh(3,B,10,6,"cue-flexcontainer",2),u.k0s()),2&s&&(u.Y8G("cueLogoLoader",a.isLoading()),u.R7$(3),u.vxM(!a.isLoading()&&a.noViewer()?3:-1))},dependencies:[e.MD,H,w.Typography,E.n,z.$,X.a,L.L,l.z,U.k,v.Kj],styles:["[_nghost-%COMP%]{display:contents}"],changeDetection:0})}return r})()},3191(J,M,p){p.d(M,{g:()=>d});var f=p(467),e=p(5802);let d=(()=>{class t{searchPage(u,g,c){return(0,f.A)(function*(){if(!c||!c.trim())return[];const R=c.toLowerCase(),D=yield u.getPage(g),T=D.getViewport({scale:1}),C=(yield D.getTextContent()).items,H=[];let w="";const E=[],z=[];for(let l=0;l<C.length;l++){const I=C[l].str??"";for(let y=0;y<I.length;y++)w+=I[y],E.push(l),z.push(y)}const X=w.toLowerCase();let L=0;for(;L<X.length;){const l=X.indexOf(R,L);if(-1===l)break;const U=l+R.length-1;L=l+1;const I=new Set;for(let P=l;P<=U;P++)I.add(E[P]);let y=1/0,v=1/0,O=-1/0,B=-1/0;for(const P of I){const i=C[P],[m,h,W,b,S,x]=i.transform,j=i.width??0,K=i.height??Math.abs(m||b||12),Z=Math.sqrt(m*m+h*h)||1,Q=m/Z,Y=h/Z,k=W/Z,q=b/Z,fe=[[S,x],[S+Q*j,x+Y*j],[S+Q*j+k*K,x+Y*j+q*K],[S+k*K,x+q*K]];for(const[pe,ne]of fe){const[F,_]=T.convertToViewportPoint(pe,ne);y=Math.min(y,F),v=Math.min(v,_),O=Math.max(O,F),B=Math.max(B,_)}}const G=T.width,r=T.height,$=.005*G,n=.005*r,a=(v-n)/r*100,o=(O-y+2*$)/G*100,A=(B-v+2*n)/r*100;o>0&&A>0&&H.push({page:g,xywhStr:`percent:${((y-$)/G*100).toFixed(2)},${a.toFixed(2)},${o.toFixed(2)},${A.toFixed(2)}`})}return H})()}searchAll(u,g){var c=this;return(0,f.A)(function*(){if(!g||!g.trim())return[];const R=u.numPages,D=[];for(let T=1;T<=R;T++){const V=yield c.searchPage(u,T,g);D.push(...V)}return D})()}static \u0275fac=function(g){return new(g||t)};static \u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},6114(J,M,p){p.d(M,{N:()=>e,V:()=>d});var f=p(4820),e=function(t){return t.AAC=".aac",t.ABW=".abw",t.ARC=".arc",t.AVIF=".avif",t.AVI=".avi",t.APNG=".apng",t.BAK=".bak",t.BIN=".bin",t.BMC=".bmc",t.BMP=".bmp",t.BZ=".bz",t.BZ2=".bz2",t.C3D=".c3d",t.CPG=".cpg",t.CSS=".css",t.CSV=".csv",t.DAT=".dat",t.DOC=".doc",t.DOCX=".docx",t.E57=".e57",t.EPUB=".epub",t.EXE=".exe",t.FFS=".ffs",t.FME=".fme",t.FMW=".fmw",t.FRAG=".fragments",t.GH=".gh",t.GZ=".gz",t.GIF=".gif",t.HTML=".html",t.HTM=".htm",t.ICO=".ico",t.ICS=".ics",t.JAR=".jar",t.JPG=".jpg",t.JPEG=".jpeg",t.JSON=".json",t.JSONLD=".jsonld",t.JS=".js",t.MOV=".mov",t.MP3=".mp3",t.MP4=".mp4",t.MPEG=".mpeg",t.MSI=".msi",t.MTL=".mtl",t.ODP=".odp",t.ODS=".ods",t.ODT=".odt",t.OGA=".oga",t.OGG=".ogg",t.OGV=".ogv",t.OGX=".ogx",t.OTF=".otf",t.PNG=".png",t.PDF=".pdf",t.PHP=".php",t.PKG=".pkg",t.PPT=".ppt",t.PPTX=".pptx",t.PS=".ps",t.RAR=".rar",t.RCP=".rcp",t.RTF=".rtf",t.SH=".sh",t.SLK=".slk",t.SVG=".svg",t.TAR=".tar",t.TIFF=".tiff",t.TIF=".tif",t.TTF=".ttf",t.TXT=".txt",t.VGL=".vgl",t.VWX=".vwx",t.WAV=".wav",t.WEBM=".webm",t.WEBP=".webp",t.WMV=".wmv",t.WOFF=".woff",t.WOFF2=".woff2",t.XLS=".xls",t.XLSX=".xlsx",t.XHTML=".xhtml",t.XML=".xml",t.XYZ=".xyz",t.ZIP=".zip",t.SEVEN_Z=".7z",t.DBF=".dbf",t.EML=".eml",t.EMLX=".emlx",t.MBX=".mbx",t.MD=".md",t.MSG=".msg",t.RST=".rst",t.HEIC=".heic",t.MPP=".mpp",t.TSV=".tsv",t.B3DM=".b3dm",t.I3DM=".i3dm",t.PNTS=".pnts",t.CMPT=".cmpt",t.GLTF=".gltf",t.GLB=".glb",t.IFC=".ifc",t.IFCZIP=".ifczip",t.IFXML=".ifcxml",t.THREEDM=".3dm",t.THREEDS=".3ds",t.GHP=".ghp",t.RVT=".rvt",t.RFA=".rfa",t.RFT=".rft",t.RTE=".rte",t.PLA=".pla",t.PLN=".pln",t.GSM=".gsm",t.SMC=".smc",t.BCF=".bcf",t.DWG=".dwg",t.DWL=".dwl",t.DXF=".dxf",t.DGN=".dgn",t.NWD=".nwd",t.OBJ=".obj",t.C4D=".c4d",t.TEKLASTRUCTURES=".teklastructures",t.PTS=".pts",t.LAS=".las",t.LAZ=".laz",t.USDZ=".usdz",t.USDA=".usda",t.USDC=".usdc",t.USD=".usd",t.PSD=".psd",t.PSP=".psp",t.AI=".ai",t.SBN=".sbn",t.SBX=".sbx",t.SHX=".shx",t.SKP=".skp",t.STL=".stl",t.FBX=".fbx",t.KML=".kml",t.SHP=".shp",t}(e||{});const d={[e.AAC]:{type:f.p.AUDIO,open:!0,suffix:".aac"},[e.ABW]:{type:f.p.TEXT,open:!0,suffix:".abw"},[e.ARC]:{type:f.p.ARCHIVE,open:!1,suffix:".arc"},[e.AVIF]:{type:f.p.IMAGE,open:!0,suffix:".avif"},[e.AVI]:{type:f.p.VIDEO,open:!0,suffix:".avi"},[e.APNG]:{type:f.p.IMAGE,open:!0,suffix:".apng"},[e.BAK]:{type:f.p.BACKUP,open:!1,suffix:".bak"},[e.BIN]:{type:f.p.BINARY,open:!1,suffix:".bin"},[e.BMC]:{type:f.p.BIM,open:!1,suffix:".bmc"},[e.BMP]:{type:f.p.IMAGE,open:!0,suffix:".bmp"},[e.BZ]:{type:f.p.ARCHIVE,open:!0,suffix:".bz"},[e.BZ2]:{type:f.p.ARCHIVE,open:!0,suffix:".bz2"},[e.C3D]:{type:f.p.THREE_D,open:!0,suffix:".c3d"},[e.CPG]:{type:f.p.GEOSPATIAL,open:!0,suffix:".cpg"},[e.CSS]:{type:f.p.MARKUP,open:!0,suffix:".css"},[e.CSV]:{type:f.p.DATA,open:!0,suffix:".csv"},[e.DAT]:{type:f.p.DATA,open:!1,suffix:".dat"},[e.DBF]:{type:f.p.DATA,open:!0,suffix:".dbf"},[e.DOC]:{type:f.p.TEXT,open:!1,suffix:".doc"},[e.DOCX]:{type:f.p.TEXT,open:!0,suffix:".docx"},[e.E57]:{type:f.p.THREE_D,open:!0,suffix:".e57"},[e.EPUB]:{type:f.p.TEXT,open:!0,suffix:".epub"},[e.EXE]:{type:f.p.INSTALLER,open:!1,suffix:".exe"},[e.FFS]:{type:f.p.AUTOMATION,open:!1,suffix:".ffs"},[e.FME]:{type:f.p.AUTOMATION,open:!1,suffix:".fme"},[e.FMW]:{type:f.p.AUTOMATION,open:!1,suffix:".fmw"},[e.FRAG]:{type:f.p.BIM,open:!0,suffix:".fragments"},[e.GH]:{type:f.p.THREE_D,open:!1,suffix:".gh"},[e.GZ]:{type:f.p.ARCHIVE,open:!0,suffix:".gz"},[e.GIF]:{type:f.p.IMAGE,open:!0,suffix:".gif"},[e.HTML]:{type:f.p.MARKUP,open:!0,suffix:".html"},[e.HTM]:{type:f.p.MARKUP,open:!0,suffix:".htm"},[e.ICO]:{type:f.p.IMAGE,open:!1,suffix:".ico"},[e.ICS]:{type:f.p.DATA,open:!0,suffix:".ics"},[e.JAR]:{type:f.p.ARCHIVE,open:!0,suffix:".jar"},[e.JPG]:{type:f.p.IMAGE,open:!0,suffix:".jpg"},[e.JPEG]:{type:f.p.IMAGE,open:!0,suffix:".jpeg"},[e.JSON]:{type:f.p.DATA,open:!0,suffix:".json"},[e.JSONLD]:{type:f.p.DATA,open:!0,suffix:".jsonld"},[e.JS]:{type:f.p.SCRIPT,open:!0,suffix:".js"},[e.MSI]:{type:f.p.INSTALLER,open:!1,suffix:".msi"},[e.MOV]:{type:f.p.VIDEO,open:!0,suffix:".mov"},[e.MP3]:{type:f.p.AUDIO,open:!0,suffix:".mp3"},[e.MP4]:{type:f.p.VIDEO,open:!0,suffix:".mp4"},[e.MPEG]:{type:f.p.VIDEO,open:!0,suffix:".mpeg"},[e.MTL]:{type:f.p.THREE_D,open:!0,suffix:".mtl"},[e.ODP]:{type:f.p.PRESENTATION,open:!0,suffix:".odp"},[e.ODS]:{type:f.p.SPREADSHEET,open:!0,suffix:".ods"},[e.ODT]:{type:f.p.TEXT,open:!0,suffix:".odt"},[e.OGA]:{type:f.p.AUDIO,open:!0,suffix:".oga"},[e.OGG]:{type:f.p.AUDIO,open:!0,suffix:".ogg"},[e.OGV]:{type:f.p.VIDEO,open:!0,suffix:".ogv"},[e.OGX]:{type:f.p.VIDEO,open:!0,suffix:".ogx"},[e.OTF]:{type:f.p.FONT,open:!0,suffix:".otf"},[e.PNG]:{type:f.p.IMAGE,open:!0,suffix:".png"},[e.PDF]:{type:f.p.TEXT,open:!0,suffix:".pdf"},[e.PHP]:{type:f.p.SCRIPT,open:!0,suffix:".php"},[e.PKG]:{type:f.p.INSTALLER,open:!1,suffix:".pkg"},[e.PPT]:{type:f.p.PRESENTATION,open:!1,suffix:".ppt"},[e.PPTX]:{type:f.p.PRESENTATION,open:!0,suffix:".pptx"},[e.PS]:{type:f.p.IMAGE,open:!1,suffix:".ps"},[e.RAR]:{type:f.p.ARCHIVE,open:!1,suffix:".rar"},[e.RCP]:{type:f.p.THREE_D,open:!1,suffix:".rcp"},[e.RTF]:{type:f.p.TEXT,open:!0,suffix:".rtf"},[e.SBN]:{type:f.p.GEOSPATIAL,open:!1,suffix:".sbn"},[e.SBX]:{type:f.p.GEOSPATIAL,open:!1,suffix:".sbx"},[e.SHX]:{type:f.p.GEOSPATIAL,open:!0,suffix:".shx"},[e.SH]:{type:f.p.SCRIPT,open:!0,suffix:".sh"},[e.SLK]:{type:f.p.DATA,open:!0,suffix:".slk"},[e.SVG]:{type:f.p.IMAGE,open:!0,suffix:".svg"},[e.TAR]:{type:f.p.ARCHIVE,open:!0,suffix:".tar"},[e.TIFF]:{type:f.p.IMAGE,open:!0,suffix:".tiff"},[e.TIF]:{type:f.p.IMAGE,open:!0,suffix:".tif"},[e.TTF]:{type:f.p.FONT,open:!0,suffix:".ttf"},[e.TXT]:{type:f.p.TEXT,open:!0,suffix:".txt"},[e.VGL]:{type:f.p.THREE_D,open:!1,suffix:".vgl"},[e.VWX]:{type:f.p.CAD,open:!1,suffix:".vwx"},[e.WAV]:{type:f.p.AUDIO,open:!0,suffix:".wav"},[e.WEBM]:{type:f.p.VIDEO,open:!0,suffix:".webm"},[e.WEBP]:{type:f.p.IMAGE,open:!0,suffix:".webp"},[e.WMV]:{type:f.p.VIDEO,open:!0,suffix:".wmv"},[e.WOFF]:{type:f.p.FONT,open:!0,suffix:".woff"},[e.WOFF2]:{type:f.p.FONT,open:!0,suffix:".woff2"},[e.XLS]:{type:f.p.SPREADSHEET,open:!1,suffix:".xls"},[e.XLSX]:{type:f.p.SPREADSHEET,open:!0,suffix:".xlsx"},[e.XHTML]:{type:f.p.MARKUP,open:!0,suffix:".xhtml"},[e.XML]:{type:f.p.DATA,open:!0,suffix:".xml"},[e.XYZ]:{type:f.p.THREE_D,open:!0,suffix:".xyz"},[e.ZIP]:{type:f.p.ARCHIVE,open:!0,suffix:".zip"},[e.SEVEN_Z]:{type:f.p.ARCHIVE,open:!0,suffix:".7z"},[e.EML]:{type:f.p.EMAIL,open:!0,suffix:".eml"},[e.EMLX]:{type:f.p.EMAIL,open:!0,suffix:".emlx"},[e.MBX]:{type:f.p.EMAIL,open:!0,suffix:".mbx"},[e.MD]:{type:f.p.TEXT,open:!0,suffix:".md"},[e.MSG]:{type:f.p.EMAIL,open:!1,suffix:".msg"},[e.RST]:{type:f.p.TEXT,open:!0,suffix:".rst"},[e.HEIC]:{type:f.p.IMAGE,open:!1,suffix:".heic"},[e.MPP]:{type:f.p.PLANNING,open:!1,suffix:".mpp"},[e.TSV]:{type:f.p.DATA,open:!0,suffix:".tsv"},[e.B3DM]:{type:f.p.THREE_D,open:!0,suffix:".b3dm"},[e.I3DM]:{type:f.p.THREE_D,open:!0,suffix:".i3dm"},[e.PNTS]:{type:f.p.THREE_D,open:!1,suffix:".pnts"},[e.CMPT]:{type:f.p.THREE_D,open:!1,suffix:".cmpt"},[e.GLTF]:{type:f.p.THREE_D,open:!0,suffix:".gltf"},[e.GLB]:{type:f.p.THREE_D,open:!0,suffix:".glb"},[e.IFC]:{type:f.p.BIM,open:!0,suffix:".ifc"},[e.IFCZIP]:{type:f.p.BIM,open:!0,suffix:".ifczip"},[e.IFXML]:{type:f.p.BIM,open:!0,suffix:".ifcxml"},[e.THREEDM]:{type:f.p.CAD,open:!1,suffix:".3dm"},[e.THREEDS]:{type:f.p.THREE_D,open:!1,suffix:".3ds"},[e.GHP]:{type:f.p.CAD,open:!1,suffix:".ghp"},[e.RVT]:{type:f.p.BIM,open:!1,suffix:".rvt"},[e.RFA]:{type:f.p.BIM,open:!1,suffix:".rfa"},[e.RFT]:{type:f.p.BIM,open:!1,suffix:".rft"},[e.RTE]:{type:f.p.BIM,open:!1,suffix:".rte"},[e.PLA]:{type:f.p.BIM,open:!1,suffix:".pla"},[e.PLN]:{type:f.p.BIM,open:!1,suffix:".pln"},[e.GSM]:{type:f.p.BIM,open:!1,suffix:".gsm"},[e.SMC]:{type:f.p.BIM,open:!1,suffix:".smc"},[e.STL]:{type:f.p.THREE_D,open:!0,suffix:".stl"},[e.BCF]:{type:f.p.BIM,open:!0,suffix:".bcf"},[e.DWG]:{type:f.p.CAD,open:!1,suffix:".dwg"},[e.DWL]:{type:f.p.CAD,open:!1,suffix:".dwl"},[e.DXF]:{type:f.p.CAD,open:!0,suffix:".dxf"},[e.DGN]:{type:f.p.CAD,open:!1,suffix:".dgn"},[e.NWD]:{type:f.p.BIM,open:!1,suffix:".nwd"},[e.OBJ]:{type:f.p.THREE_D,open:!0,suffix:".obj"},[e.C4D]:{type:f.p.THREE_D,open:!1,suffix:".c4d"},[e.TEKLASTRUCTURES]:{type:f.p.BIM,open:!1,suffix:".teklastructures"},[e.PTS]:{type:f.p.THREE_D,open:!1,suffix:".pts"},[e.LAS]:{type:f.p.THREE_D,open:!0,suffix:".las"},[e.LAZ]:{type:f.p.THREE_D,open:!0,suffix:".laz"},[e.USDZ]:{type:f.p.THREE_D,open:!0,suffix:".usdz"},[e.USDA]:{type:f.p.THREE_D,open:!0,suffix:".usda"},[e.USDC]:{type:f.p.THREE_D,open:!0,suffix:".usdc"},[e.USD]:{type:f.p.THREE_D,open:!0,suffix:".usd"},[e.PSD]:{type:f.p.IMAGE,open:!1,suffix:".psd"},[e.PSP]:{type:f.p.IMAGE,open:!1,suffix:".psp"},[e.AI]:{type:f.p.IMAGE,open:!1,suffix:".ai"},[e.SKP]:{type:f.p.THREE_D,open:!1,suffix:".skp"},[e.FBX]:{type:f.p.THREE_D,open:!0,suffix:".fbx"},[e.KML]:{type:f.p.GEOSPATIAL,open:!0,suffix:".kml"},[e.SHP]:{type:f.p.GEOSPATIAL,open:!0,suffix:".shp"}}},4820(J,M,p){p.d(M,{p:()=>f});var f=function(e){return e.AUTOMATION="automation",e.ARCHIVE="archive",e.AUDIO="audio",e.BACKUP="backup",e.BINARY="binary",e.BIM="bim",e.CAD="cad",e.DATA="data",e.EMAIL="email",e.FONT="font",e.GEOSPATIAL="geospatial",e.IMAGE="image",e.INSTALLER="installer",e.MARKUP="markup",e.MULTIMEDIA="multimedia",e.PLANNING="planning",e.PRESENTATION="presentation",e.SCRIPT="script",e.SPREADSHEET="spreadsheet",e.TEXT="text",e.THREE_D="3d",e.UNKNOWN="unknown",e.VIDEO="video",e}(f||{})}}]);
|
|
1
|
+
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[36],{3036(J,M,p){p.r(M),p.d(M,{DocumentViewer:()=>G});var f=p(467),e=p(9769),d=p(5802),t=p(7705),N=p(2271),u=p(5547),g=p(3418),c=p(6114);const R={bim:()=>Promise.all([p.e(598),p.e(76),p.e(419)]).then(p.bind(p,6419)).then(r=>r.BIMFragmentsViewer),cad:()=>Promise.all([p.e(598),p.e(560),p.e(76),p.e(931)]).then(p.bind(p,1051)).then(r=>r.DXFViewer),image:()=>p.e(560).then(p.bind(p,8560)).then(r=>r.ImageViewer),markdown:()=>Promise.all([p.e(222),p.e(586)]).then(p.bind(p,6586)).then(r=>r.MarkdownViewer),pdf:()=>Promise.all([p.e(560),p.e(311)]).then(p.bind(p,4311)).then(r=>r.PDFViewer),text:()=>p.e(523).then(p.bind(p,3523)).then(r=>r.TextViewer),spreadsheet:()=>Promise.all([p.e(903),p.e(336)]).then(p.bind(p,8336)).then(r=>r.Spreadsheet),code:()=>Promise.all([p.e(284),p.e(836),p.e(329)]).then(p.bind(p,329)).then(r=>r.CodeViewer),email:()=>p.e(740).then(p.bind(p,5740)).then(r=>r.EmailViewer)},D=new Map([[c.N.DXF,"cad"],[c.N.FRAG,"bim"],[c.N.PDF,"pdf"],[c.N.PNG,"image"],[c.N.JPG,"image"],[c.N.JPEG,"image"],[c.N.SVG,"image"],[c.N.GIF,"image"],[c.N.WEBP,"image"],[c.N.BMP,"image"],[c.N.AVIF,"image"],[c.N.APNG,"image"],[c.N.CSV,"spreadsheet"],[c.N.XLSX,"spreadsheet"],[c.N.XLS,"spreadsheet"],[c.N.JSON,"code"],[c.N.JSONLD,"code"],[c.N.XML,"code"],[c.N.CSS,"code"],[c.N.JS,"code"],[c.N.HTML,"code"],[c.N.HTM,"code"],[c.N.SH,"code"],[c.N.TXT,"text"],[c.N.RST,"text"],[c.N.MD,"markdown"]]);var T=p(8807),V=p(2065);const C=["*"];let H=(()=>{class r{width=(0,t.hFB)("auto");height=(0,t.hFB)("auto");style=(0,t.hFB)("");getStyles=(0,N.EW)(()=>this.style());static \u0275fac=function(s){return new(s||r)};static \u0275cmp=u.VBU({type:r,selectors:[["cue-container"]],hostVars:6,hostBindings:function(s,a){2&s&&(u.Aen(a.getStyles()),u.xc7("max-width",a.width())("max-height",a.height()))},inputs:{width:[1,"width"],height:[1,"height"],style:[1,"style"]},ngContentSelectors:C,decls:1,vars:0,template:function(s,a){1&s&&(u.NAR(),u.SdG(0))},styles:["[_nghost-%COMP%]{display:flex;align-items:stretch;container-name:cue-container;container-type:inline-size}[_nghost-%COMP%] > *[_ngcontent-%COMP%]{flex:1;max-width:100%}"]})}return r})();var w=p(2245),E=p(5381),z=p(5971),X=p(3319),L=p(5448),l=p(2014),U=p(7851),I=p(3191);let y=(()=>{class r{searchService=(0,d.WQX)(I.g);entityBeingPlaced=(0,d.vPA)(void 0);confirmedPlacement=(0,d.vPA)(void 0);rdfBaseURL=(0,d.vPA)("");contentUUID=(0,d.vPA)("");activePdfDoc=(0,d.vPA)(null);currentPage=(0,d.vPA)(1);requestedPage=(0,d.vPA)(null);navigateToPage(n){this.currentPage.set(n),this.requestedPage.set(n)}entityTextSearchResults=(0,d.vPA)([]);entityTextSearchResultsOnCurrentPage=(0,N.EW)(()=>this.entityTextSearchResults().filter(n=>n.page===this.currentPage()));currentPlacementBbox=(0,d.vPA)(null);categoryPreviewBoxes=(0,d.vPA)([]);_lastMatchIndex=(0,d.vPA)(null);matchCycleDisplay=(0,N.EW)(()=>{const n=this._lastMatchIndex(),s=this.entityTextSearchResultsOnCurrentPage().length;return null===n||0===s?"":`${n+1}/${s}`});cycleTextMatch(){const n=this.entityTextSearchResultsOnCurrentPage();if(!n.length)return;const s=this._lastMatchIndex(),a=null===s?0:(s+1)%n.length;this._lastMatchIndex.set(a);const o=n[a].xywhStr.replace("percent:",""),[A,P,i,m]=o.split(",").map(Number),W=Math.max(0,A-.5),b=Math.max(0,P-.5),S=Math.min(100-W,i+1),x=Math.min(100-b,m+1);this.currentPlacementBbox.set({xywhStr:`percent:${W.toFixed(2)},${b.toFixed(2)},${S.toFixed(2)},${x.toFixed(2)}`,color:"rgba(255, 160, 0, 0.9)",allowRemove:!1})}setManualBbox(n){this._lastMatchIndex.set(null),this.currentPlacementBbox.set({...n,allowRemove:!1})}clearPlacement(){this.currentPlacementBbox.set(null),this._lastMatchIndex.set(null)}constructor(){(0,d.QZP)(()=>{const n=this.entityBeingPlaced(),s=this.activePdfDoc();n?.value&&s?this.searchService.searchAll(s,n.value).then(a=>{this.entityTextSearchResults.set(a)}):this.entityTextSearchResults.set([])}),(0,d.QZP)(()=>{this.currentPage(),this._lastMatchIndex.set(null),this.currentPlacementBbox.set(null)}),(0,d.QZP)(()=>{const n=this.entityBeingPlaced();this._lastMatchIndex.set(null),void 0===n&&this.currentPlacementBbox.set(null)})}static \u0275fac=function(s){return new(s||r)};static \u0275prov=d.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var v=p(9352);const O=["viewerTarget"];function B(r,$){if(1&r){const n=u.RV6();u.j41(0,"cue-flexcontainer",2)(1,"cue-typography"),u.EFF(2),u.nI1(3,"transloco"),u.k0s(),u.j41(4,"cue-button",3),u.bIt("click",function(){d.eBV(n);const a=u.XpG();return d.Njj(a.downloadFile())}),u.j41(5,"cue-button-padder"),u.nrm(6,"cue-button-icon",4),u.k0s(),u.j41(7,"cue-button-label"),u.EFF(8),u.nI1(9,"transloco"),u.k0s()()()}2&r&&(u.R7$(2),u.JRh(u.bMT(3,2,"components.documentViewer.infoNoViewer")),u.R7$(6),u.JRh(u.bMT(9,4,"common.buttons.download")))}let G=(()=>{class r{_eps=(0,d.WQX)(y);_destroyed=!1;url=t.hFB.required();suffix=(0,t.hFB)();settings=(0,t.hFB)(new g.DocumentViewerSettings);viewerTypeOverride=(0,t.hFB)(void 0);interactions=(0,t.CGW)();viewerType=(0,N.EW)(()=>{const n=this.viewerTypeOverride();if(n)return n;const s=this.url(),a=void 0!==this.suffix()?this.suffix()?.trim():`.${s.split(".").pop()?.trim()}`,o=a?D.get(a):void 0;return console.log("[DocumentViewer] viewerType resolved",{url:s?.substring(0,80),suffix:a,viewerType:o}),void 0!==a?o:void 0});currentComponent=(0,d.vPA)(null);noViewer=(0,N.EW)(()=>null===this.currentComponent());isLoading=(0,d.vPA)(!1);viewerTarget;currentRef;_interactionsState=(0,d.vPA)(new g.DocumentViewerInteractions);constructor(){(0,d.QZP)(()=>{const n=this.viewerType(),s=this.url();console.log("[DocumentViewer] url/viewerType effect \u2014",{viewerType:n,url:s?.substring(0,80),destroyed:this._destroyed}),n?("pdf"!==n&&this._eps.activePdfDoc.set(null),this.isLoading.set(!0),this.loadViewerComponent(n,s,this.settings())):(this.viewerTarget.clear(),this.currentRef?.destroy(),this.currentRef=void 0,console.info("No viewer available for this file type"),this.currentComponent.set(null),this.isLoading.set(!1),this._eps.activePdfDoc.set(null))}),(0,d.QZP)(()=>{this.interactions.emit(this._interactionsState())}),(0,d.QZP)(()=>{const n=this.settings().pdf,s=this.currentRef;s&&s.setInput("settings",n)})}ngOnDestroy(){this._destroyed=!0,this.viewerTarget.clear(),this.currentRef?.destroy(),this.currentRef=void 0}loadViewerComponent(n,s,a){var o=this;return(0,f.A)(function*(){console.log("[DocumentViewer] loadViewerComponent",{viewerType:n,url:s?.substring(0,100)});try{const A=R[n],P=yield A();if(o._destroyed)return;if(o.currentComponent.set(P),o.isLoading.set(!1),o.viewerTarget.clear(),o.currentRef?.destroy(),o.currentRef=o.viewerTarget.createComponent(P),"pdf"===n)o.currentRef.setInput("src",s),void 0!==a?.pdf&&o.currentRef.setInput("settings",a.pdf),o.currentRef.instance.pdfLoaded&&o.currentRef.instance.pdfLoaded.subscribe(i=>{o._eps.currentPage.set(1),o._eps.activePdfDoc.set(i)}),o.currentRef.instance.settingsChange&&o.currentRef.instance.settingsChange.subscribe(i=>{const m=parseInt(i?.page,10);!isNaN(m)&&m>0&&o._eps.currentPage.set(m)}),o.currentRef.instance.artefactDrawn&&o.currentRef.instance.artefactDrawn.subscribe(i=>{"xywh"===i.type&&o._eps.setManualBbox(i.def)}),o.currentRef.instance.artefactEdited&&o.currentRef.instance.artefactEdited.subscribe(i=>{"bbox"===i.type&&o._eps.setManualBbox(i.after)});else if("bim"===n){const i=new T.di("model","Model",s);i.visible=!0,o.currentRef.setInput("data",{models:[i]}),void 0!==a?.bim&&o.currentRef.setInput("settings",a.bim),o.currentRef.instance.selectedElements&&o.currentRef.instance.selectedElements.subscribe(m=>{o._interactionsState.update(h=>(h.bim.selectedElements=m,Object.assign({},h)))}),o.currentRef.instance.clickedElement&&o.currentRef.instance.clickedElement.subscribe(m=>{o._interactionsState.update(h=>(h.bim.clickedElement=m,Object.assign({},h)))})}else if("cad"===n)o.currentRef.setInput("fileURL",s),void 0!==a?.cad&&o.currentRef.setInput("settings",a.cad);else if("image"===n)o.currentRef.setInput("src",s);else if("markdown"===n)o.currentRef.setInput("fileURL",s);else if("text"===n)o.currentRef.setInput("fileURL",s);else if("spreadsheet"===n){const i=o.suffix()?.split(".").pop()||s.split(".").pop()||"csv";o.currentRef.setInput("data",{url:s,format:i})}else if("code"===n){const h={".json":"json",".jsonld":"jsonld",".xml":"xml",".html":"xml",".htm":"xml",".css":"text",".js":"text",".sh":"text"}[o.suffix()??`.${s.split(".").pop()??""}`]??"text";o.currentRef.setInput("fileURL",s),o.currentRef.setInput("codeType",h)}else"email"===n&&o.currentRef.setInput("fileURL",s)}catch(A){console.error("Failed to load viewer component:",A),o.currentComponent.set(null)}})()}downloadFile(){var n=this;return(0,f.A)(function*(){const a=yield(yield fetch(n.url())).blob();(0,V.KE)(a,`document${n.suffix()??""}`)})()}static \u0275fac=function(s){return new(s||r)};static \u0275cmp=u.VBU({type:r,selectors:[["cue-doc-viewer"]],viewQuery:function(s,a){if(1&s&&u.GBs(O,7,u.c1b),2&s){let o;u.mGM(o=u.lsd())&&(a.viewerTarget=o.first)}},inputs:{url:[1,"url"],suffix:[1,"suffix"],settings:[1,"settings"],viewerTypeOverride:[1,"viewerTypeOverride"]},outputs:{interactions:"interactions"},decls:4,vars:2,consts:[["viewerTarget",""],[2,"height","100%","width","100%",3,"cueLogoLoader"],["direction","column","align","center","justify","center",2,"height","100%","width","100%"],[3,"click"],["icon","download"]],template:function(s,a){1&s&&(u.j41(0,"cue-container",1),u.eu8(1,null,0),u.nVh(3,B,10,6,"cue-flexcontainer",2),u.k0s()),2&s&&(u.Y8G("cueLogoLoader",a.isLoading()),u.R7$(3),u.vxM(!a.isLoading()&&a.noViewer()?3:-1))},dependencies:[e.MD,H,w.Typography,E.n,z.$,X.a,L.L,l.z,U.k,v.Kj],styles:["[_nghost-%COMP%]{display:contents}"],changeDetection:0})}return r})()},3191(J,M,p){p.d(M,{g:()=>d});var f=p(467),e=p(5802);let d=(()=>{class t{searchPage(u,g,c){return(0,f.A)(function*(){if(!c||!c.trim())return[];const R=c.toLowerCase(),D=yield u.getPage(g),T=D.getViewport({scale:1}),C=(yield D.getTextContent()).items,H=[];let w="";const E=[],z=[];for(let l=0;l<C.length;l++){const I=C[l].str??"";for(let y=0;y<I.length;y++)w+=I[y],E.push(l),z.push(y)}const X=w.toLowerCase();let L=0;for(;L<X.length;){const l=X.indexOf(R,L);if(-1===l)break;const U=l+R.length-1;L=l+1;const I=new Set;for(let P=l;P<=U;P++)I.add(E[P]);let y=1/0,v=1/0,O=-1/0,B=-1/0;for(const P of I){const i=C[P],[m,h,W,b,S,x]=i.transform,j=i.width??0,K=i.height??Math.abs(m||b||12),Z=Math.sqrt(m*m+h*h)||1,Q=m/Z,Y=h/Z,k=W/Z,q=b/Z,fe=[[S,x],[S+Q*j,x+Y*j],[S+Q*j+k*K,x+Y*j+q*K],[S+k*K,x+q*K]];for(const[pe,ne]of fe){const[F,_]=T.convertToViewportPoint(pe,ne);y=Math.min(y,F),v=Math.min(v,_),O=Math.max(O,F),B=Math.max(B,_)}}const G=T.width,r=T.height,$=.005*G,n=.005*r,a=(v-n)/r*100,o=(O-y+2*$)/G*100,A=(B-v+2*n)/r*100;o>0&&A>0&&H.push({page:g,xywhStr:`percent:${((y-$)/G*100).toFixed(2)},${a.toFixed(2)},${o.toFixed(2)},${A.toFixed(2)}`})}return H})()}searchAll(u,g){var c=this;return(0,f.A)(function*(){if(!g||!g.trim())return[];const R=u.numPages,D=[];for(let T=1;T<=R;T++){const V=yield c.searchPage(u,T,g);D.push(...V)}return D})()}static \u0275fac=function(g){return new(g||t)};static \u0275prov=e.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()},6114(J,M,p){p.d(M,{N:()=>e,V:()=>d});var f=p(4820),e=function(t){return t.AAC=".aac",t.ABW=".abw",t.ARC=".arc",t.AVIF=".avif",t.AVI=".avi",t.APNG=".apng",t.BAK=".bak",t.BIN=".bin",t.BMC=".bmc",t.BMP=".bmp",t.BZ=".bz",t.BZ2=".bz2",t.C3D=".c3d",t.CPG=".cpg",t.CSS=".css",t.CSV=".csv",t.DAT=".dat",t.DOC=".doc",t.DOCX=".docx",t.E57=".e57",t.EPUB=".epub",t.EXE=".exe",t.FFS=".ffs",t.FME=".fme",t.FMW=".fmw",t.FRAG=".fragments",t.GH=".gh",t.GZ=".gz",t.GIF=".gif",t.HTML=".html",t.HTM=".htm",t.ICO=".ico",t.ICS=".ics",t.JAR=".jar",t.JPG=".jpg",t.JPEG=".jpeg",t.JSON=".json",t.JSONLD=".jsonld",t.JS=".js",t.MOV=".mov",t.MP3=".mp3",t.MP4=".mp4",t.MPEG=".mpeg",t.MSI=".msi",t.MTL=".mtl",t.ODP=".odp",t.ODS=".ods",t.ODT=".odt",t.OGA=".oga",t.OGG=".ogg",t.OGV=".ogv",t.OGX=".ogx",t.OTF=".otf",t.PNG=".png",t.PDF=".pdf",t.PHP=".php",t.PKG=".pkg",t.PPT=".ppt",t.PPTX=".pptx",t.PS=".ps",t.RAR=".rar",t.RCP=".rcp",t.RTF=".rtf",t.SH=".sh",t.SLK=".slk",t.SVG=".svg",t.TAR=".tar",t.TIFF=".tiff",t.TIF=".tif",t.TTF=".ttf",t.TXT=".txt",t.VGL=".vgl",t.VWX=".vwx",t.WAV=".wav",t.WEBM=".webm",t.WEBP=".webp",t.WMV=".wmv",t.WOFF=".woff",t.WOFF2=".woff2",t.XLS=".xls",t.XLSX=".xlsx",t.XHTML=".xhtml",t.XML=".xml",t.XYZ=".xyz",t.ZIP=".zip",t.SEVEN_Z=".7z",t.DBF=".dbf",t.EML=".eml",t.EMLX=".emlx",t.MBX=".mbx",t.MD=".md",t.MSG=".msg",t.RST=".rst",t.HEIC=".heic",t.MPP=".mpp",t.TSV=".tsv",t.B3DM=".b3dm",t.I3DM=".i3dm",t.PNTS=".pnts",t.CMPT=".cmpt",t.GLTF=".gltf",t.GLB=".glb",t.IFC=".ifc",t.IFCZIP=".ifczip",t.IFXML=".ifcxml",t.THREEDM=".3dm",t.THREEDS=".3ds",t.GHP=".ghp",t.RVT=".rvt",t.RFA=".rfa",t.RFT=".rft",t.RTE=".rte",t.PLA=".pla",t.PLN=".pln",t.GSM=".gsm",t.SMC=".smc",t.BCF=".bcf",t.DWG=".dwg",t.DWL=".dwl",t.DXF=".dxf",t.DGN=".dgn",t.NWD=".nwd",t.OBJ=".obj",t.C4D=".c4d",t.TEKLASTRUCTURES=".teklastructures",t.PTS=".pts",t.LAS=".las",t.LAZ=".laz",t.USDZ=".usdz",t.USDA=".usda",t.USDC=".usdc",t.USD=".usd",t.PSD=".psd",t.PSP=".psp",t.AI=".ai",t.SBN=".sbn",t.SBX=".sbx",t.SHX=".shx",t.SKP=".skp",t.STL=".stl",t.FBX=".fbx",t.KML=".kml",t.SHP=".shp",t}(e||{});const d={[e.AAC]:{type:f.p.AUDIO,open:!0,suffix:".aac"},[e.ABW]:{type:f.p.TEXT,open:!0,suffix:".abw"},[e.ARC]:{type:f.p.ARCHIVE,open:!1,suffix:".arc"},[e.AVIF]:{type:f.p.IMAGE,open:!0,suffix:".avif"},[e.AVI]:{type:f.p.VIDEO,open:!0,suffix:".avi"},[e.APNG]:{type:f.p.IMAGE,open:!0,suffix:".apng"},[e.BAK]:{type:f.p.BACKUP,open:!1,suffix:".bak"},[e.BIN]:{type:f.p.BINARY,open:!1,suffix:".bin"},[e.BMC]:{type:f.p.BIM,open:!1,suffix:".bmc"},[e.BMP]:{type:f.p.IMAGE,open:!0,suffix:".bmp"},[e.BZ]:{type:f.p.ARCHIVE,open:!0,suffix:".bz"},[e.BZ2]:{type:f.p.ARCHIVE,open:!0,suffix:".bz2"},[e.C3D]:{type:f.p.THREE_D,open:!0,suffix:".c3d"},[e.CPG]:{type:f.p.GEOSPATIAL,open:!0,suffix:".cpg"},[e.CSS]:{type:f.p.MARKUP,open:!0,suffix:".css"},[e.CSV]:{type:f.p.DATA,open:!0,suffix:".csv"},[e.DAT]:{type:f.p.DATA,open:!1,suffix:".dat"},[e.DBF]:{type:f.p.DATA,open:!0,suffix:".dbf"},[e.DOC]:{type:f.p.TEXT,open:!1,suffix:".doc"},[e.DOCX]:{type:f.p.TEXT,open:!0,suffix:".docx"},[e.E57]:{type:f.p.THREE_D,open:!0,suffix:".e57"},[e.EPUB]:{type:f.p.TEXT,open:!0,suffix:".epub"},[e.EXE]:{type:f.p.INSTALLER,open:!1,suffix:".exe"},[e.FFS]:{type:f.p.AUTOMATION,open:!1,suffix:".ffs"},[e.FME]:{type:f.p.AUTOMATION,open:!1,suffix:".fme"},[e.FMW]:{type:f.p.AUTOMATION,open:!1,suffix:".fmw"},[e.FRAG]:{type:f.p.BIM,open:!0,suffix:".fragments"},[e.GH]:{type:f.p.THREE_D,open:!1,suffix:".gh"},[e.GZ]:{type:f.p.ARCHIVE,open:!0,suffix:".gz"},[e.GIF]:{type:f.p.IMAGE,open:!0,suffix:".gif"},[e.HTML]:{type:f.p.MARKUP,open:!0,suffix:".html"},[e.HTM]:{type:f.p.MARKUP,open:!0,suffix:".htm"},[e.ICO]:{type:f.p.IMAGE,open:!1,suffix:".ico"},[e.ICS]:{type:f.p.DATA,open:!0,suffix:".ics"},[e.JAR]:{type:f.p.ARCHIVE,open:!0,suffix:".jar"},[e.JPG]:{type:f.p.IMAGE,open:!0,suffix:".jpg"},[e.JPEG]:{type:f.p.IMAGE,open:!0,suffix:".jpeg"},[e.JSON]:{type:f.p.DATA,open:!0,suffix:".json"},[e.JSONLD]:{type:f.p.DATA,open:!0,suffix:".jsonld"},[e.JS]:{type:f.p.SCRIPT,open:!0,suffix:".js"},[e.MSI]:{type:f.p.INSTALLER,open:!1,suffix:".msi"},[e.MOV]:{type:f.p.VIDEO,open:!0,suffix:".mov"},[e.MP3]:{type:f.p.AUDIO,open:!0,suffix:".mp3"},[e.MP4]:{type:f.p.VIDEO,open:!0,suffix:".mp4"},[e.MPEG]:{type:f.p.VIDEO,open:!0,suffix:".mpeg"},[e.MTL]:{type:f.p.THREE_D,open:!0,suffix:".mtl"},[e.ODP]:{type:f.p.PRESENTATION,open:!0,suffix:".odp"},[e.ODS]:{type:f.p.SPREADSHEET,open:!0,suffix:".ods"},[e.ODT]:{type:f.p.TEXT,open:!0,suffix:".odt"},[e.OGA]:{type:f.p.AUDIO,open:!0,suffix:".oga"},[e.OGG]:{type:f.p.AUDIO,open:!0,suffix:".ogg"},[e.OGV]:{type:f.p.VIDEO,open:!0,suffix:".ogv"},[e.OGX]:{type:f.p.VIDEO,open:!0,suffix:".ogx"},[e.OTF]:{type:f.p.FONT,open:!0,suffix:".otf"},[e.PNG]:{type:f.p.IMAGE,open:!0,suffix:".png"},[e.PDF]:{type:f.p.TEXT,open:!0,suffix:".pdf"},[e.PHP]:{type:f.p.SCRIPT,open:!0,suffix:".php"},[e.PKG]:{type:f.p.INSTALLER,open:!1,suffix:".pkg"},[e.PPT]:{type:f.p.PRESENTATION,open:!1,suffix:".ppt"},[e.PPTX]:{type:f.p.PRESENTATION,open:!0,suffix:".pptx"},[e.PS]:{type:f.p.IMAGE,open:!1,suffix:".ps"},[e.RAR]:{type:f.p.ARCHIVE,open:!1,suffix:".rar"},[e.RCP]:{type:f.p.THREE_D,open:!1,suffix:".rcp"},[e.RTF]:{type:f.p.TEXT,open:!0,suffix:".rtf"},[e.SBN]:{type:f.p.GEOSPATIAL,open:!1,suffix:".sbn"},[e.SBX]:{type:f.p.GEOSPATIAL,open:!1,suffix:".sbx"},[e.SHX]:{type:f.p.GEOSPATIAL,open:!0,suffix:".shx"},[e.SH]:{type:f.p.SCRIPT,open:!0,suffix:".sh"},[e.SLK]:{type:f.p.DATA,open:!0,suffix:".slk"},[e.SVG]:{type:f.p.IMAGE,open:!0,suffix:".svg"},[e.TAR]:{type:f.p.ARCHIVE,open:!0,suffix:".tar"},[e.TIFF]:{type:f.p.IMAGE,open:!0,suffix:".tiff"},[e.TIF]:{type:f.p.IMAGE,open:!0,suffix:".tif"},[e.TTF]:{type:f.p.FONT,open:!0,suffix:".ttf"},[e.TXT]:{type:f.p.TEXT,open:!0,suffix:".txt"},[e.VGL]:{type:f.p.THREE_D,open:!1,suffix:".vgl"},[e.VWX]:{type:f.p.CAD,open:!1,suffix:".vwx"},[e.WAV]:{type:f.p.AUDIO,open:!0,suffix:".wav"},[e.WEBM]:{type:f.p.VIDEO,open:!0,suffix:".webm"},[e.WEBP]:{type:f.p.IMAGE,open:!0,suffix:".webp"},[e.WMV]:{type:f.p.VIDEO,open:!0,suffix:".wmv"},[e.WOFF]:{type:f.p.FONT,open:!0,suffix:".woff"},[e.WOFF2]:{type:f.p.FONT,open:!0,suffix:".woff2"},[e.XLS]:{type:f.p.SPREADSHEET,open:!1,suffix:".xls"},[e.XLSX]:{type:f.p.SPREADSHEET,open:!0,suffix:".xlsx"},[e.XHTML]:{type:f.p.MARKUP,open:!0,suffix:".xhtml"},[e.XML]:{type:f.p.DATA,open:!0,suffix:".xml"},[e.XYZ]:{type:f.p.THREE_D,open:!0,suffix:".xyz"},[e.ZIP]:{type:f.p.ARCHIVE,open:!0,suffix:".zip"},[e.SEVEN_Z]:{type:f.p.ARCHIVE,open:!0,suffix:".7z"},[e.EML]:{type:f.p.EMAIL,open:!0,suffix:".eml"},[e.EMLX]:{type:f.p.EMAIL,open:!0,suffix:".emlx"},[e.MBX]:{type:f.p.EMAIL,open:!0,suffix:".mbx"},[e.MD]:{type:f.p.TEXT,open:!0,suffix:".md"},[e.MSG]:{type:f.p.EMAIL,open:!1,suffix:".msg"},[e.RST]:{type:f.p.TEXT,open:!0,suffix:".rst"},[e.HEIC]:{type:f.p.IMAGE,open:!1,suffix:".heic"},[e.MPP]:{type:f.p.PLANNING,open:!1,suffix:".mpp"},[e.TSV]:{type:f.p.DATA,open:!0,suffix:".tsv"},[e.B3DM]:{type:f.p.THREE_D,open:!0,suffix:".b3dm"},[e.I3DM]:{type:f.p.THREE_D,open:!0,suffix:".i3dm"},[e.PNTS]:{type:f.p.THREE_D,open:!1,suffix:".pnts"},[e.CMPT]:{type:f.p.THREE_D,open:!1,suffix:".cmpt"},[e.GLTF]:{type:f.p.THREE_D,open:!0,suffix:".gltf"},[e.GLB]:{type:f.p.THREE_D,open:!0,suffix:".glb"},[e.IFC]:{type:f.p.BIM,open:!0,suffix:".ifc"},[e.IFCZIP]:{type:f.p.BIM,open:!0,suffix:".ifczip"},[e.IFXML]:{type:f.p.BIM,open:!0,suffix:".ifcxml"},[e.THREEDM]:{type:f.p.CAD,open:!1,suffix:".3dm"},[e.THREEDS]:{type:f.p.THREE_D,open:!1,suffix:".3ds"},[e.GHP]:{type:f.p.CAD,open:!1,suffix:".ghp"},[e.RVT]:{type:f.p.BIM,open:!1,suffix:".rvt"},[e.RFA]:{type:f.p.BIM,open:!1,suffix:".rfa"},[e.RFT]:{type:f.p.BIM,open:!1,suffix:".rft"},[e.RTE]:{type:f.p.BIM,open:!1,suffix:".rte"},[e.PLA]:{type:f.p.BIM,open:!1,suffix:".pla"},[e.PLN]:{type:f.p.BIM,open:!1,suffix:".pln"},[e.GSM]:{type:f.p.BIM,open:!1,suffix:".gsm"},[e.SMC]:{type:f.p.BIM,open:!1,suffix:".smc"},[e.STL]:{type:f.p.THREE_D,open:!0,suffix:".stl"},[e.BCF]:{type:f.p.BIM,open:!0,suffix:".bcf"},[e.DWG]:{type:f.p.CAD,open:!1,suffix:".dwg"},[e.DWL]:{type:f.p.CAD,open:!1,suffix:".dwl"},[e.DXF]:{type:f.p.CAD,open:!0,suffix:".dxf"},[e.DGN]:{type:f.p.CAD,open:!1,suffix:".dgn"},[e.NWD]:{type:f.p.BIM,open:!1,suffix:".nwd"},[e.OBJ]:{type:f.p.THREE_D,open:!0,suffix:".obj"},[e.C4D]:{type:f.p.THREE_D,open:!1,suffix:".c4d"},[e.TEKLASTRUCTURES]:{type:f.p.BIM,open:!1,suffix:".teklastructures"},[e.PTS]:{type:f.p.THREE_D,open:!1,suffix:".pts"},[e.LAS]:{type:f.p.THREE_D,open:!0,suffix:".las"},[e.LAZ]:{type:f.p.THREE_D,open:!0,suffix:".laz"},[e.USDZ]:{type:f.p.THREE_D,open:!0,suffix:".usdz"},[e.USDA]:{type:f.p.THREE_D,open:!0,suffix:".usda"},[e.USDC]:{type:f.p.THREE_D,open:!0,suffix:".usdc"},[e.USD]:{type:f.p.THREE_D,open:!0,suffix:".usd"},[e.PSD]:{type:f.p.IMAGE,open:!1,suffix:".psd"},[e.PSP]:{type:f.p.IMAGE,open:!1,suffix:".psp"},[e.AI]:{type:f.p.IMAGE,open:!1,suffix:".ai"},[e.SKP]:{type:f.p.THREE_D,open:!1,suffix:".skp"},[e.FBX]:{type:f.p.THREE_D,open:!0,suffix:".fbx"},[e.KML]:{type:f.p.GEOSPATIAL,open:!0,suffix:".kml"},[e.SHP]:{type:f.p.GEOSPATIAL,open:!0,suffix:".shp"}}},4820(J,M,p){p.d(M,{p:()=>f});var f=function(e){return e.AUTOMATION="automation",e.ARCHIVE="archive",e.AUDIO="audio",e.BACKUP="backup",e.BINARY="binary",e.BIM="bim",e.CAD="cad",e.DATA="data",e.EMAIL="email",e.FONT="font",e.GEOSPATIAL="geospatial",e.IMAGE="image",e.INSTALLER="installer",e.MARKUP="markup",e.MULTIMEDIA="multimedia",e.PLANNING="planning",e.PRESENTATION="presentation",e.SCRIPT="script",e.SPREADSHEET="spreadsheet",e.TEXT="text",e.THREE_D="3d",e.UNKNOWN="unknown",e.VIDEO="video",e}(f||{})}}]);
|
package/399.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[399],{4853(O,P,l){l.d(P,{H:()=>j});var h=l(7705),r=l(5802),m=l(7089),u=l(7023),e=l(5381),f=l(5971),M=l(3319),x=l(356),R=l(6279),c=l(5547);const y=()=>({position:"bottomleft"}),p=(C,T)=>T.label||C;function D(C,T){if(1&C){const v=c.RV6();c.j41(0,"cue-menu-item",4),c.bIt("click",function(){const E=r.eBV(v).$implicit;return r.Njj(E.action())}),c.EFF(1),c.k0s()}if(2&C){const v=T.$implicit;c.Y8G("selected",v.selected),c.R7$(),c.JRh(v.label)}}function w(C,T){if(1&C&&(c.j41(0,"cue-menu-wrap"),c.Z7z(1,D,2,2,"cue-menu-item",3,p),c.k0s()),2&C){const v=c.XpG();c.R7$(),c.Dyx(v.contextMenuItems())}}function L(C,T){if(1&C){const v=c.RV6();c.j41(0,"cue-button",5),c.bIt("click",function(E){const N=r.eBV(v).$implicit,k=c.XpG();return r.Njj(k.handleClick(E,N))}),c.nrm(1,"cue-button-icon",6),c.k0s()}if(2&C){const v=T.$implicit,b=c.XpG(),E=c.sdS(1);c.Y8G("cueTooltip",v.label)("variant",v.variant?v.variant:b.variant())("size",b.size())("cueContextMenu",E)("contextMenuData",c.lJ4(7,y))("cueContextEnabled",void 0!==v.contextMenuItems&&v.contextMenuItems.length>0),c.R7$(),c.Y8G("icon",v.icon)}}let j=(()=>{class C{items=h.hFB.required();noGap=(0,h.hFB)(!0);direction=(0,h.hFB)("row");size=(0,h.hFB)("xs");variant=(0,h.hFB)("tertiary");mouseEnter=(0,h.CGW)();mouseLeave=(0,h.CGW)();contextMenuItems=(0,r.vPA)([]);handleClick(v,b){v.stopPropagation(),b.contextMenuItems&&b.contextMenuItems.length>0?this.contextMenuItems.set(b.contextMenuItems):b.action&&(this.contextMenuItems.set([]),b.action())}static \u0275fac=function(b){return new(b||C)};static \u0275cmp=c.VBU({type:C,selectors:[["cue-entity-menu"]],inputs:{items:[1,"items"],noGap:[1,"noGap"],direction:[1,"direction"],size:[1,"size"],variant:[1,"variant"]},outputs:{mouseEnter:"mouseEnter",mouseLeave:"mouseLeave"},decls:5,vars:2,consts:[["contextMenu",""],["gap","s","justify","end",2,"width","100%",3,"mouseenter","mouseleave","direction","noGap"],["trigger","leftclick",3,"cueTooltip","variant","size","cueContextMenu","contextMenuData","cueContextEnabled"],[3,"selected"],[3,"click","selected"],["trigger","leftclick",3,"click","cueTooltip","variant","size","cueContextMenu","contextMenuData","cueContextEnabled"],[3,"icon"]],template:function(b,E){1&b&&(c.DNE(0,w,3,0,"ng-template",null,0,c.C5r),c.j41(2,"cue-flexcontainer",1),c.bIt("mouseenter",function(){return E.mouseEnter.emit()})("mouseleave",function(){return E.mouseLeave.emit()}),c.Z7z(3,L,2,8,"cue-button",2,p),c.k0s()),2&b&&(c.R7$(2),c.Y8G("direction",E.direction())("noGap",E.noGap()),c.R7$(),c.Dyx(E.items()))},dependencies:[e.n,f.$,m.d,M.a,u.Q,x.M,R.D],encapsulation:2,changeDetection:0})}return C})()},1024(O,P,l){l.d(P,{p:()=>m});var h=l(5547);const r=["*"];let m=(()=>{class u{static \u0275fac=function(M){return new(M||u)};static \u0275cmp=h.VBU({type:u,selectors:[["cue-key-val-list"]],ngContentSelectors:r,decls:2,vars:0,consts:[[1,"key-val-list"]],template:function(M,x){1&M&&(h.NAR(),h.rj2(0,"div",0),h.SdG(1),h.eux())},styles:[".key-val-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--cue-grid-gap-s)}"]})}return u})()},9421(O,P,l){l.d(P,{F:()=>M});var h=l(7705),r=l(5802),m=l(2271),u=l(7335),e=l(2245),f=l(5547);let M=(()=>{class x{entityMenuDirective;size=(0,h.hFB)("m");key=h.hFB.required();val=h.geq.required();options=(0,h.hFB)([]);suffix=(0,h.hFB)("");valueChange=(0,h.CGW)();editModeEnabled=(0,r.vPA)(!1);valueChanged=(0,m.EW)(()=>this.val()!==this.newValue());newValue=(0,m.uu)(()=>this.val());labelSize=(0,m.EW)(()=>{switch(this.size()){case"s":return"xs";case"m":return"s";case"l":return"m";case"xl":return"l"}});onKeyPress(c){this.editModeEnabled()&&("Escape"===c.key?(this._reset(),c.stopPropagation()):"Enter"===c.key&&this._emitChange())}saveCancelMenu=(0,m.EW)(()=>{const c=[{icon:"close",label:"Cancel",action:()=>this._reset()}];return this.valueChanged()&&c.push({icon:"save",label:"Save",action:()=>this._emitChange()}),c});selectionChange(c){this.newValue.set(c?.toString()??"")}inputChange(c){this.newValue.set(c)}_emitChange(){this.valueChange.emit(this.newValue()),this.val.set(this.newValue()),this.editModeEnabled.set(!1)}_reset(){this.newValue.set(this.val()),this.editModeEnabled.set(!1)}static \u0275fac=function(y){return new(y||x)};static \u0275cmp=f.VBU({type:x,selectors:[["cue-key-val"]],viewQuery:function(y,p){if(1&y&&f.GBs(u.e,5),2&y){let D;f.mGM(D=f.lsd())&&(p.entityMenuDirective=D.first)}},hostBindings:function(y,p){1&y&&f.bIt("keydown",function(w){return p.onKeyPress(w)},f.EBC)},inputs:{size:[1,"size"],key:[1,"key"],val:[1,"val"],options:[1,"options"],suffix:[1,"suffix"]},outputs:{val:"valChange",valueChange:"valueChange"},decls:8,vars:5,consts:[[1,"key-val-container"],[3,"size"],[1,"value-content"]],template:function(y,p){1&y&&(f.j41(0,"dl",0)(1,"dt")(2,"cue-typography",1),f.EFF(3),f.k0s()(),f.j41(4,"dd")(5,"cue-typography",1)(6,"span",2),f.EFF(7),f.k0s()()()()),2&y&&(f.R7$(2),f.Y8G("size",p.labelSize()),f.R7$(),f.JRh(p.key()),f.R7$(2),f.Y8G("size",p.size()),f.R7$(2),f.Lme("",p.val()," ",p.suffix()))},dependencies:[e.Typography],styles:[".key-val-container[_ngcontent-%COMP%]{margin:0;display:flex;flex-direction:column;gap:var(--cue-grid-gap-s, 8px)}dt[_ngcontent-%COMP%], dd[_ngcontent-%COMP%]{margin:0}.read-mode-container[_ngcontent-%COMP%]{display:inline-flex;align-items:center;width:100%;position:relative}.read-mode-container.interactive[_ngcontent-%COMP%]:hover{cursor:pointer}.value-content[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%]{color:var(--cue-typography-text-color, inherit)}dt[_ngcontent-%COMP%] cue-typography[_ngcontent-%COMP%], dd[_ngcontent-%COMP%] cue-typography[_ngcontent-%COMP%], .value-content[_ngcontent-%COMP%]{color:var(--cue-typography-text-color, inherit)!important}dt[_ngcontent-%COMP%] cue-typography[_ngcontent-%COMP%] div[_ngcontent-%COMP%], dd[_ngcontent-%COMP%] cue-typography[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{color:var(--cue-typography-text-color, inherit)!important}[_ngcontent-%COMP%]:deep(cue-svg-icon), [_ngcontent-%COMP%]:deep(cue-entity-menu cue-svg-icon){color:var(--cue-icon-color, inherit)!important}.dirty-indicator[_ngcontent-%COMP%]{opacity:.8;margin-left:4px;color:var(--cue-typography-text-color, inherit)!important;font-weight:700;font-size:.4em;transform:translateY(-1em)}"]})}return x})()},7335(O,P,l){l.d(P,{e:()=>x});var h=l(7705),r=l(5802),m=l(5547),u=l(8359),e=l(6939),f=l(63),M=l(4853);let x=(()=>{class R{_targetEl=(0,r.WQX)(m.aKT);_overlay=(0,r.WQX)(f.hJ);_overlayRef;_isOverlayHovered=!1;_subscriptions;display=(0,h.hFB)("on-hover");menuItems=h.hFB.required();menuEnabled=(0,h.hFB)(!0);onMouseEnter(){if("on-hover"===this.display()){if(!this.menuItems().length)return void this.removeOverlayMenu();this.appendOverlayMenu()}}onMouseLeave(){this._checkShouldRemoveOverlay()}appendOverlayMenu(){if(!this.menuItems().length||this._overlayRef)return;const y=this._overlay.create({positionStrategy:this._overlay.position().flexibleConnectedTo(this._targetEl).withPositions([{originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:2,offsetY:0}])});this._overlayRef=y;const p=window.getComputedStyle(this._targetEl.nativeElement).color;y.overlayElement.style.color=p;const D=new e.A8(M.H),w=y.attach(D);w.instance.items=this.menuItems,this._subscriptions&&this._subscriptions.unsubscribe(),this._subscriptions=new u.yU,this._subscriptions.add(w.instance.mouseEnter.subscribe(()=>{this._isOverlayHovered=!0})),this._subscriptions.add(w.instance.mouseLeave.subscribe(()=>{this._isOverlayHovered=!1,this._checkShouldRemoveOverlay()}))}removeOverlayMenu(){this._overlayRef&&(this._subscriptions&&(this._subscriptions.unsubscribe(),this._subscriptions=void 0),this._overlayRef.detach(),this._overlayRef.dispose(),this._overlayRef=void 0)}_checkShouldRemoveOverlay(){setTimeout(()=>{this._isOverlayHovered||this.removeOverlayMenu()},300)}static \u0275fac=function(p){return new(p||R)};static \u0275dir=m.FsC({type:R,selectors:[["","cueEntityMenu",""]],hostBindings:function(p,D){1&p&&m.bIt("mouseenter",function(){return D.onMouseEnter()})("mouseleave",function(){return D.onMouseLeave()})},inputs:{display:[1,"display"],menuItems:[1,"menuItems"],menuEnabled:[1,"menuEnabled"]}})}return R})()},2399(O,P,l){l.d(P,{CueDocumentViewer:()=>Oe});var h=l(467),r=l(7705),m=l(2271),u=l(5802),e=l(5547),f=l(9769),M=l(5381),x=l(2245),R=l(1024),c=l(9421),y=l(5903),p=l(9352),D=l(6117),w=l(8547),L=l(3319),j=l(5971),C=l(7573);const T=(o,g)=>t=>t.isHighlight;function v(o,g){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 b(o,g){if(1&o){const t=e.RV6();e.j41(0,"cue-button",5),e.bIt("click",function(i){u.eBV(t);const a=e.XpG(2).$implicit,s=e.XpG();return u.Njj(s.onDeleteHighlight(i,a.highlight))}),e.nrm(1,"cue-button-icon",6),e.k0s()}}function E(o,g){if(1&o){const t=e.RV6();e.j41(0,"span",2),e.bIt("click",function(){u.eBV(t);const i=e.XpG().$implicit,a=e.XpG();return u.Njj(a.onHighlightClick(i.highlight))}),e.nVh(1,v,2,1,"span",3),e.EFF(2),e.nVh(3,b,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 N(o,g){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 k(o,g){if(1&o&&e.nVh(0,E,4,4,"span",1)(1,N,2,2,"span"),2&o){const t=g.$implicit;e.vxM(t.isHighlight&&t.highlight?0:1)}}let U=(()=>{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,m.EW)(()=>this.parseSegments(this.path(),this.highlights()));parseSegments(t,n){const i=n.filter(_=>_.path===t);if(0===i.length)return[{text:t,isHighlight:!1,segmentStart:0}];const a=[...i].sort((_,I)=>_.start-I.start),s=[];let d=0;for(const _ of a)_.start>d&&s.push({text:t.substring(d,_.start),isHighlight:!1,segmentStart:d}),s.push({text:t.substring(_.start,_.end),isHighlight:!0,highlight:_,segmentStart:_.start}),d=_.end;return d<t.length&&s.push({text:t.substring(d),isHighlight:!1,segmentStart:d}),s}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),s=t.currentTarget,d=this.getAbsoluteOffset(s,a.startContainer,a.startOffset),_=this.getAbsoluteOffset(s,a.endContainer,a.endOffset);n.removeAllRanges(),_>d&&this.textSelected.emit({path:this.path(),start:d,end:_,text:this.path().substring(d,_)})}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 I=parseInt(a.getAttribute("data-segment-start"),10);let F=0;const A=document.createTreeWalker(a,NodeFilter.SHOW_TEXT);let V=A.nextNode();for(;V&&V!==n;)F+=V.textContent?.length??0,V=A.nextNode();return I+F+i}a=a.parentElement}const s=document.createTreeWalker(t,NodeFilter.SHOW_TEXT);let d=0,_=s.nextNode();for(;_&&_!==n;)d+=_.textContent?.length??0,_=s.nextNode();return d+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(s){return i.onMouseUp(s)}),e.Z7z(1,k,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,T,i))),e.R7$(),e.Dyx(i.segments()))},dependencies:[f.MD,j.$,L.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 z=l(5745),X=l(2444),H=l(9695),K=l(5448),Y=l(2611);const G=o=>({count:o}),J=(o,g)=>t=>t.iri;function Q(o,g){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 Z(o,g){if(1&o){const t=e.RV6();e.j41(0,"cue-ag-grid",16),e.bIt("selectedRows",function(i){u.eBV(t);const a=e.XpG(4);return u.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 q(o,g){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",12)(1,"cue-button",13),e.bIt("click",function(){u.eBV(t);const i=e.XpG(3);return u.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,Z,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,G,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,G,t._selectedPaths().length)))}}function ee(o,g){if(1&o&&e.nVh(0,Q,3,3,"cue-typography",11)(1,q,10,14),2&o){const t=e.XpG(2);e.vxM(t._fileLocationsLoading()?0:null!==t._fileLocations()?1:-1)}}function te(o,g){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",9)(1,"cue-input-switch",10),e.bIt("toggleChange",function(i){u.eBV(t);const a=e.XpG();return u.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,g){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,u.vPA)("");_applyToAllFiles=(0,u.vPA)(!1);_fileLocations=(0,u.vPA)(null);_fileLocationsLoading=(0,u.vPA)(!1);_matchTableExpanded=(0,u.vPA)(!1);_selectedPaths=(0,u.vPA)([]);_saving=(0,u.vPA)(!1);_saveError=(0,u.vPA)(null);_dirPrefix=(0,m.EW)(()=>{const t=this.selection();return t.path.substring(0,t.end)});_matchedLocations=(0,m.EW)(()=>{const t=this._fileLocations();if(!t)return[];const n=this._dirPrefix();return t.filter(i=>i.path.startsWith(n))});_matchCount=(0,m.EW)(()=>this._matchedLocations().length);_matchTableRowData=(0,m.EW)(()=>this._matchedLocations().map(t=>({iri:t.iri,path:t.path,providerId:t.providerId})));_entityCategoryLabelMap=(0,m.EW)(()=>this.availableEntityCategories().reduce((t,n)=>(t[n.iri]=n.label,t),{}));_matchTableRowSelection={mode:"multiRow",selectAll:"filtered"};_filePathLabel=(0,p.Xx)("components.contentBlocks.documentViewer.labelFilePath");_matchTableColDefs=(0,m.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,h.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 s=n._dirPrefix();n._selectedPaths.set(a.filter(d=>d.path.startsWith(s)))}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,h.A)(function*(){const n=t._selectedEntityCategory();if(!n)return;const i=t.selection().path,a=t._fileLocations()?.find(_=>_.path===i)??t.fileLocations().find(_=>_.path===i)??{iri:"",path:i},s=t._applyToAllFiles()&&t._selectedPaths().length>0?t._selectedPaths():[a],d=t.requestFilePathEntityAdd();if(d){t._saving.set(!0),t._saveError.set(null);try{yield d(n,s)}catch(_){return console.error("[EntityMentionModal] Failed to save entity mention:",_),t._saveError.set(_ instanceof Error?_.message:String(_)),void t._saving.set(!1)}t._saving.set(!1)}t.confirm.emit({entityCategory:n,paths:s})})()}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(s){return i.onEntityCategoryChange(s)}),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,c.F,L.a,j.$,K.L,x.Typography,z.a,X.l,H.d,Y.R,p.Kj],styles:[".modal-content[_ngcontent-%COMP%]{width:640px;max-width:calc(100vw - 32px)}"],changeDetection:0})}return o})();const oe=()=>[];function ae(o,g){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 se(o,g){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 le(o,g){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,g){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,g){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 ue(o,g){if(1&o){const t=e.RV6();e.j41(0,"cue-button",19),e.bIt("click",function(){u.eBV(t);const i=e.XpG(3);return u.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 de(o,g){if(1&o){const t=e.RV6();e.j41(0,"cue-button",19),e.bIt("click",function(){u.eBV(t);const i=e.XpG(3);return u.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 ge(o,g){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,ue,2,1,"cue-button",17),e.j41(8,"cue-file-path-viewer",18),e.bIt("textSelected",function(i){u.eBV(t);const a=e.XpG(2);return u.Njj(a.onTextSelected(i))}),e.k0s(),e.nVh(9,de,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 he(o,g){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,ge,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 _e(o,g){if(1&o){const t=e.RV6();e.j41(0,"cue-entity-mention-modal",22),e.bIt("confirm",function(i){u.eBV(t);const a=e.XpG();return u.Njj(a.onEntityMentionConfirm(i))})("cancel",function(){u.eBV(t);const i=e.XpG();return u.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,m.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,m.EW)(()=>{const t=""!==this.subject(),n=this.fileLocations().length>0;return t||n});currentFilePathIndex=(0,u.vPA)(0);_entityCategoryModalVisible=(0,u.vPA)(!1);_pendingSelection=(0,u.vPA)(null);_requestFilePathEntityAdd=(0,m.EW)(()=>{var t=this;const n=this.handlers().requestFilePathEntityAdd;if(n)return function(){var i=(0,h.A)(function*(a,s){const d=t._pendingSelection();d&&(yield n({paths:s,start:d.start,end:d.end,text:d.text,entityCategory:a,folderPath:d.path.substring(0,d.end)}))});return function(a,s){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,m.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,m.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,m.uu)(()=>this.contentCategories());contentCategoriesString=(0,m.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,p.Xx)("components.documentInfo.infoChangeContentCategory");rdfEditConfig=(0,m.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,h.A)(function*(a){console.log(a);const s={subject:t.subject(),predicate:`${C.E.qcy}contentCategory`,objects:t._contentCategories(),newObjects:a.newValue,type:"contentCategory",comment:a.comment};yield n(s),t._contentCategories.set(a.newValue),t.dataChanged.emit({contentCategories:a.newValue})}),function(s){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,se,2,1,"cue-key-val-list"),e.k0s(),e.nVh(4,le,6,1,"cue-flexcontainer",4),e.k0s(),e.nVh(5,he,4,2,"cue-key-val-list"),e.k0s(),e.nVh(6,_e,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,R.p,c.F,y.L,D.W,w.T,L.a,j.$,U,x.Typography,ie,p.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 fe{requestRDFChange;requestFileLocations;requestFilePathEntityAdd}var pe=l(2065),ve=l(5187),ye=l(7293);const Ce=["viewerHost"];function be(o,g){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 Me(o,g){1&o&&(e.j41(0,"cue-flexcontainer",5)(1,"cue-typography"),e.EFF(2,"Loading\u2026"),e.k0s()())}function xe(o,g){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 Ee(o,g){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 De(o,g){if(1&o&&(e.j41(0,"div",3),e.nVh(1,be,1,3,"cue-document-info",4),e.nVh(2,Me,3,0,"cue-flexcontainer",5)(3,xe,3,1,"cue-flexcontainer",5),e.j41(4,"div",6),e.eu8(5,null,1),e.k0s(),e.nVh(7,Ee,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 Pe(o,g){1&o&&e.eu8(0)}function we(o,g){if(1&o&&(e.j41(0,"cue-card",2),e.DNE(1,Pe,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 Ie(o,g){1&o&&e.eu8(0)}function Fe(o,g){if(1&o&&e.DNE(0,Ie,1,0,"ng-container",9),2&o){e.XpG();const t=e.sdS(1);e.Y8G("ngTemplateOutlet",t)}}const Re=[".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 Oe=(()=>{class o{set _viewerHostRef(t){if(this._viewerHost=t,t&&this._lastRenderArgs){const{url:n,suffix:i,page:a,viewerTypeOverride:s}=this._lastRenderArgs;this._renderViewer(n,i,a,s)}}_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,m.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,m.EW)(()=>this.variant());state=(0,u.vPA)("idle");errorMessage=(0,u.vPA)(null);resolvedUrl=(0,u.vPA)(null);resolvedSuffix=(0,u.vPA)(null);_docSubject=(0,u.vPA)("");_alternatives=(0,u.vPA)([]);_originalUuid=(0,u.vPA)(null);_originalDocSuffix=(0,u.vPA)(null);_cueSnapshot=null;_projectIdSnapshot=null;_inputWarningTimer;_docInfoHandlers=new fe;_menuItems=(0,m.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 s=this.resolvedSuffix();t.push({icon:"document",label:"Alternative representation",children:a.map(d=>({label:d.original?`Original (${d.suffix.replace(".","").toUpperCase()})`:d.suffix.replace(".","").toUpperCase(),tooltip:s===d.suffix?"Currently shown":void 0,action:()=>this._switchToAlternative(d)}))})}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,u.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)}_load(t,n,i){var a=this;return(0,h.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:s,page:d}=function Te(o){const[g,t]=o.split("?"),n=g.trim();let i=null;if(t){const s=new URLSearchParams(t).get("page");if(null!==s){const d=parseInt(s,10);!isNaN(d)&&d>0&&(i=d)}}return{uuid:n,page:i}}(n),_=t.createProjectDocuments(i),F=(yield _.fetchDocumentData([s]))[s];if(!F)throw new Error(`Document '${s}' not found in project '${i}'.`);a._docSubject.set(F.subject??""),a._originalUuid.set(s),a._originalDocSuffix.set(F.suffix);const A=yield _.fetchAlternativeRepresentations(s);a._alternatives.set([{uuid:s,suffix:F.suffix,original:!0},...A.filter(B=>B.id!==s).map(B=>({uuid:B.id,suffix:B.suffix,original:!1,remoteRelativePath:B.remoteRelativePath}))]);const{uuid:V,suffix:S,remoteRelativePath:$}=function Ve(o,g){const t=[o,...g];let n,i=1/0;for(const a of t){const s=Re.indexOf(a.suffix);-1!==s&&s<i&&(i=s,n=a)}return n?{uuid:n.id,suffix:n.suffix,remoteRelativePath:n.remoteRelativePath}:{uuid:o.id,suffix:o.suffix}}(F,A),W=$?yield t.storage.getAltRepDownloadUrl($):yield t.storage.getDownloadUrl(i,V,S);a.resolvedUrl.set(W),a.resolvedSuffix.set(S);const Le=[".eml",".msg",".emlx",".mbx"].includes(F.suffix)&&".json"===S?"email":void 0;yield a._renderViewer(W,S,d,Le),a.state.set("ready")}catch(s){const d=s instanceof Error?s.message:String(s);console.error("[CueDocumentViewerWC] Failed to load document:",d),a.errorMessage.set(d),a.state.set("error")}}else a.state.set("idle")})()}_renderViewer(t,n,i,a){var s=this;return(0,h.A)(function*(){try{const{DocumentViewer:d}=yield Promise.all([l.e(418),l.e(76),l.e(36)]).then(l.bind(l,3036)),{DocumentViewerSettings:_}=yield l.e(418).then(l.bind(l,3418));s._viewerHost?.clear(),s.currentViewerRef?.destroy();const I=new _;if(null!==i&&(I.pdf.page=String(i)),!s._viewerHost)throw new Error("viewerHost is not yet available \u2014 view has not been initialized.");s._lastRenderArgs={url:t,suffix:n,page:i,viewerTypeOverride:a},s.currentViewerRef=s._viewerHost.createComponent(d),s.currentViewerRef.setInput("url",t),s.currentViewerRef.setInput("suffix",n),s.currentViewerRef.setInput("settings",I),a&&s.currentViewerRef.setInput("viewerTypeOverride",a)}catch(d){throw new Error(`Failed to load viewer component: ${d instanceof Error?d.message:String(d)}`)}})()}_switchToAlternative(t){var n=this;return(0,h.A)(function*(){const i=n._cueSnapshot,a=n._projectIdSnapshot;if(i&&a)try{const s=t.remoteRelativePath?yield i.storage.getAltRepDownloadUrl(t.remoteRelativePath):yield i.storage.getDownloadUrl(a,t.uuid,t.suffix);n.resolvedUrl.set(s),n.resolvedSuffix.set(t.suffix),yield n._renderViewer(s,t.suffix,null)}catch(s){console.error("[CueDocumentViewerWC] Failed to switch to alternative:",s)}})()}_downloadOriginal(){var t=this;return(0,h.A)(function*(){const n=t._cueSnapshot,i=t._projectIdSnapshot,a=t._originalUuid(),s=t._originalDocSuffix();if(n&&i&&a&&s)try{const d=yield n.storage.getDownloadUrl(i,a,s),I=yield(yield fetch(d)).blob();(0,pe.KE)(I,`${a}${s}`)}catch(d){console.error("[CueDocumentViewerWC] Failed to download original:",d)}})()}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(Ce,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,De,8,3,"ng-template",null,0,e.C5r),e.nVh(2,we,2,3,"cue-card",2)(3,Fe,1,1,"ng-container")),2&n&&(e.R7$(2),e.vxM("none"!==i.variant()?2:3))},dependencies:[f.MD,f.T3,M.n,x.Typography,me,ve.Z,ye.x],styles:["[_nghost-%COMP%]{display:contents}"],changeDetection:0})}return o})()},7573(O,P,l){l.d(P,{E:()=>h});const h={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#"}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[399],{4853(O,P,l){l.d(P,{H:()=>j});var h=l(7705),r=l(5802),m=l(7089),u=l(7023),e=l(5381),f=l(5971),M=l(3319),x=l(356),R=l(6279),c=l(5547);const y=()=>({position:"bottomleft"}),p=(C,T)=>T.label||C;function D(C,T){if(1&C){const v=c.RV6();c.j41(0,"cue-menu-item",4),c.bIt("click",function(){const E=r.eBV(v).$implicit;return r.Njj(E.action())}),c.EFF(1),c.k0s()}if(2&C){const v=T.$implicit;c.Y8G("selected",v.selected),c.R7$(),c.JRh(v.label)}}function w(C,T){if(1&C&&(c.j41(0,"cue-menu-wrap"),c.Z7z(1,D,2,2,"cue-menu-item",3,p),c.k0s()),2&C){const v=c.XpG();c.R7$(),c.Dyx(v.contextMenuItems())}}function L(C,T){if(1&C){const v=c.RV6();c.j41(0,"cue-button",5),c.bIt("click",function(E){const N=r.eBV(v).$implicit,k=c.XpG();return r.Njj(k.handleClick(E,N))}),c.nrm(1,"cue-button-icon",6),c.k0s()}if(2&C){const v=T.$implicit,b=c.XpG(),E=c.sdS(1);c.Y8G("cueTooltip",v.label)("variant",v.variant?v.variant:b.variant())("size",b.size())("cueContextMenu",E)("contextMenuData",c.lJ4(7,y))("cueContextEnabled",void 0!==v.contextMenuItems&&v.contextMenuItems.length>0),c.R7$(),c.Y8G("icon",v.icon)}}let j=(()=>{class C{items=h.hFB.required();noGap=(0,h.hFB)(!0);direction=(0,h.hFB)("row");size=(0,h.hFB)("xs");variant=(0,h.hFB)("tertiary");mouseEnter=(0,h.CGW)();mouseLeave=(0,h.CGW)();contextMenuItems=(0,r.vPA)([]);handleClick(v,b){v.stopPropagation(),b.contextMenuItems&&b.contextMenuItems.length>0?this.contextMenuItems.set(b.contextMenuItems):b.action&&(this.contextMenuItems.set([]),b.action())}static \u0275fac=function(b){return new(b||C)};static \u0275cmp=c.VBU({type:C,selectors:[["cue-entity-menu"]],inputs:{items:[1,"items"],noGap:[1,"noGap"],direction:[1,"direction"],size:[1,"size"],variant:[1,"variant"]},outputs:{mouseEnter:"mouseEnter",mouseLeave:"mouseLeave"},decls:5,vars:2,consts:[["contextMenu",""],["gap","s","justify","end",2,"width","100%",3,"mouseenter","mouseleave","direction","noGap"],["trigger","leftclick",3,"cueTooltip","variant","size","cueContextMenu","contextMenuData","cueContextEnabled"],[3,"selected"],[3,"click","selected"],["trigger","leftclick",3,"click","cueTooltip","variant","size","cueContextMenu","contextMenuData","cueContextEnabled"],[3,"icon"]],template:function(b,E){1&b&&(c.DNE(0,w,3,0,"ng-template",null,0,c.C5r),c.j41(2,"cue-flexcontainer",1),c.bIt("mouseenter",function(){return E.mouseEnter.emit()})("mouseleave",function(){return E.mouseLeave.emit()}),c.Z7z(3,L,2,8,"cue-button",2,p),c.k0s()),2&b&&(c.R7$(2),c.Y8G("direction",E.direction())("noGap",E.noGap()),c.R7$(),c.Dyx(E.items()))},dependencies:[e.n,f.$,m.d,M.a,u.Q,x.M,R.D],encapsulation:2,changeDetection:0})}return C})()},1024(O,P,l){l.d(P,{p:()=>m});var h=l(5547);const r=["*"];let m=(()=>{class u{static \u0275fac=function(M){return new(M||u)};static \u0275cmp=h.VBU({type:u,selectors:[["cue-key-val-list"]],ngContentSelectors:r,decls:2,vars:0,consts:[[1,"key-val-list"]],template:function(M,x){1&M&&(h.NAR(),h.rj2(0,"div",0),h.SdG(1),h.eux())},styles:[".key-val-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--cue-grid-gap-s)}"]})}return u})()},9421(O,P,l){l.d(P,{F:()=>M});var h=l(7705),r=l(5802),m=l(2271),u=l(7335),e=l(2245),f=l(5547);let M=(()=>{class x{entityMenuDirective;size=(0,h.hFB)("m");key=h.hFB.required();val=h.geq.required();options=(0,h.hFB)([]);suffix=(0,h.hFB)("");valueChange=(0,h.CGW)();editModeEnabled=(0,r.vPA)(!1);valueChanged=(0,m.EW)(()=>this.val()!==this.newValue());newValue=(0,m.uu)(()=>this.val());labelSize=(0,m.EW)(()=>{switch(this.size()){case"s":return"xs";case"m":return"s";case"l":return"m";case"xl":return"l"}});onKeyPress(c){this.editModeEnabled()&&("Escape"===c.key?(this._reset(),c.stopPropagation()):"Enter"===c.key&&this._emitChange())}saveCancelMenu=(0,m.EW)(()=>{const c=[{icon:"close",label:"Cancel",action:()=>this._reset()}];return this.valueChanged()&&c.push({icon:"save",label:"Save",action:()=>this._emitChange()}),c});selectionChange(c){this.newValue.set(c?.toString()??"")}inputChange(c){this.newValue.set(c)}_emitChange(){this.valueChange.emit(this.newValue()),this.val.set(this.newValue()),this.editModeEnabled.set(!1)}_reset(){this.newValue.set(this.val()),this.editModeEnabled.set(!1)}static \u0275fac=function(y){return new(y||x)};static \u0275cmp=f.VBU({type:x,selectors:[["cue-key-val"]],viewQuery:function(y,p){if(1&y&&f.GBs(u.e,5),2&y){let D;f.mGM(D=f.lsd())&&(p.entityMenuDirective=D.first)}},hostBindings:function(y,p){1&y&&f.bIt("keydown",function(w){return p.onKeyPress(w)},f.EBC)},inputs:{size:[1,"size"],key:[1,"key"],val:[1,"val"],options:[1,"options"],suffix:[1,"suffix"]},outputs:{val:"valChange",valueChange:"valueChange"},decls:8,vars:5,consts:[[1,"key-val-container"],[3,"size"],[1,"value-content"]],template:function(y,p){1&y&&(f.j41(0,"dl",0)(1,"dt")(2,"cue-typography",1),f.EFF(3),f.k0s()(),f.j41(4,"dd")(5,"cue-typography",1)(6,"span",2),f.EFF(7),f.k0s()()()()),2&y&&(f.R7$(2),f.Y8G("size",p.labelSize()),f.R7$(),f.JRh(p.key()),f.R7$(2),f.Y8G("size",p.size()),f.R7$(2),f.Lme("",p.val()," ",p.suffix()))},dependencies:[e.Typography],styles:[".key-val-container[_ngcontent-%COMP%]{margin:0;display:flex;flex-direction:column;gap:var(--cue-grid-gap-s, 8px)}dt[_ngcontent-%COMP%], dd[_ngcontent-%COMP%]{margin:0}.read-mode-container[_ngcontent-%COMP%]{display:inline-flex;align-items:center;width:100%;position:relative}.read-mode-container.interactive[_ngcontent-%COMP%]:hover{cursor:pointer}.value-content[_ngcontent-%COMP%]{flex:1}[_nghost-%COMP%]{color:var(--cue-typography-text-color, inherit)}dt[_ngcontent-%COMP%] cue-typography[_ngcontent-%COMP%], dd[_ngcontent-%COMP%] cue-typography[_ngcontent-%COMP%], .value-content[_ngcontent-%COMP%]{color:var(--cue-typography-text-color, inherit)!important}dt[_ngcontent-%COMP%] cue-typography[_ngcontent-%COMP%] div[_ngcontent-%COMP%], dd[_ngcontent-%COMP%] cue-typography[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{color:var(--cue-typography-text-color, inherit)!important}[_ngcontent-%COMP%]:deep(cue-svg-icon), [_ngcontent-%COMP%]:deep(cue-entity-menu cue-svg-icon){color:var(--cue-icon-color, inherit)!important}.dirty-indicator[_ngcontent-%COMP%]{opacity:.8;margin-left:4px;color:var(--cue-typography-text-color, inherit)!important;font-weight:700;font-size:.4em;transform:translateY(-1em)}"]})}return x})()},7335(O,P,l){l.d(P,{e:()=>x});var h=l(7705),r=l(5547),m=l(5802),u=l(8359),e=l(6939),f=l(63),M=l(4853);let x=(()=>{class R{_targetEl=(0,m.WQX)(r.aKT);_overlay=(0,m.WQX)(f.hJ);_overlayRef;_isOverlayHovered=!1;_subscriptions;display=(0,h.hFB)("on-hover");menuItems=h.hFB.required();menuEnabled=(0,h.hFB)(!0);onMouseEnter(){if("on-hover"===this.display()){if(!this.menuItems().length)return void this.removeOverlayMenu();this.appendOverlayMenu()}}onMouseLeave(){this._checkShouldRemoveOverlay()}appendOverlayMenu(){if(!this.menuItems().length||this._overlayRef)return;const y=this._overlay.create({positionStrategy:this._overlay.position().flexibleConnectedTo(this._targetEl).withPositions([{originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:2,offsetY:0}])});this._overlayRef=y;const p=window.getComputedStyle(this._targetEl.nativeElement).color;y.overlayElement.style.color=p;const D=new e.A8(M.H),w=y.attach(D);w.instance.items=this.menuItems,this._subscriptions&&this._subscriptions.unsubscribe(),this._subscriptions=new u.yU,this._subscriptions.add(w.instance.mouseEnter.subscribe(()=>{this._isOverlayHovered=!0})),this._subscriptions.add(w.instance.mouseLeave.subscribe(()=>{this._isOverlayHovered=!1,this._checkShouldRemoveOverlay()}))}removeOverlayMenu(){this._overlayRef&&(this._subscriptions&&(this._subscriptions.unsubscribe(),this._subscriptions=void 0),this._overlayRef.detach(),this._overlayRef.dispose(),this._overlayRef=void 0)}_checkShouldRemoveOverlay(){setTimeout(()=>{this._isOverlayHovered||this.removeOverlayMenu()},300)}static \u0275fac=function(p){return new(p||R)};static \u0275dir=r.FsC({type:R,selectors:[["","cueEntityMenu",""]],hostBindings:function(p,D){1&p&&r.bIt("mouseenter",function(){return D.onMouseEnter()})("mouseleave",function(){return D.onMouseLeave()})},inputs:{display:[1,"display"],menuItems:[1,"menuItems"],menuEnabled:[1,"menuEnabled"]}})}return R})()},2399(O,P,l){l.d(P,{CueDocumentViewer:()=>Oe});var h=l(467),r=l(7705),m=l(2271),u=l(5802),e=l(5547),f=l(9769),M=l(5381),x=l(2245),R=l(1024),c=l(9421),y=l(5903),p=l(9352),D=l(6117),w=l(8547),L=l(3319),j=l(5971),C=l(7573);const T=(o,g)=>t=>t.isHighlight;function v(o,g){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 b(o,g){if(1&o){const t=e.RV6();e.j41(0,"cue-button",5),e.bIt("click",function(i){u.eBV(t);const a=e.XpG(2).$implicit,s=e.XpG();return u.Njj(s.onDeleteHighlight(i,a.highlight))}),e.nrm(1,"cue-button-icon",6),e.k0s()}}function E(o,g){if(1&o){const t=e.RV6();e.j41(0,"span",2),e.bIt("click",function(){u.eBV(t);const i=e.XpG().$implicit,a=e.XpG();return u.Njj(a.onHighlightClick(i.highlight))}),e.nVh(1,v,2,1,"span",3),e.EFF(2),e.nVh(3,b,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 N(o,g){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 k(o,g){if(1&o&&e.nVh(0,E,4,4,"span",1)(1,N,2,2,"span"),2&o){const t=g.$implicit;e.vxM(t.isHighlight&&t.highlight?0:1)}}let U=(()=>{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,m.EW)(()=>this.parseSegments(this.path(),this.highlights()));parseSegments(t,n){const i=n.filter(_=>_.path===t);if(0===i.length)return[{text:t,isHighlight:!1,segmentStart:0}];const a=[...i].sort((_,I)=>_.start-I.start),s=[];let d=0;for(const _ of a)_.start>d&&s.push({text:t.substring(d,_.start),isHighlight:!1,segmentStart:d}),s.push({text:t.substring(_.start,_.end),isHighlight:!0,highlight:_,segmentStart:_.start}),d=_.end;return d<t.length&&s.push({text:t.substring(d),isHighlight:!1,segmentStart:d}),s}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),s=t.currentTarget,d=this.getAbsoluteOffset(s,a.startContainer,a.startOffset),_=this.getAbsoluteOffset(s,a.endContainer,a.endOffset);n.removeAllRanges(),_>d&&this.textSelected.emit({path:this.path(),start:d,end:_,text:this.path().substring(d,_)})}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 I=parseInt(a.getAttribute("data-segment-start"),10);let F=0;const A=document.createTreeWalker(a,NodeFilter.SHOW_TEXT);let V=A.nextNode();for(;V&&V!==n;)F+=V.textContent?.length??0,V=A.nextNode();return I+F+i}a=a.parentElement}const s=document.createTreeWalker(t,NodeFilter.SHOW_TEXT);let d=0,_=s.nextNode();for(;_&&_!==n;)d+=_.textContent?.length??0,_=s.nextNode();return d+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(s){return i.onMouseUp(s)}),e.Z7z(1,k,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,T,i))),e.R7$(),e.Dyx(i.segments()))},dependencies:[f.MD,j.$,L.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 z=l(5745),X=l(2444),H=l(9695),K=l(5448),Y=l(2611);const G=o=>({count:o}),J=(o,g)=>t=>t.iri;function Q(o,g){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 Z(o,g){if(1&o){const t=e.RV6();e.j41(0,"cue-ag-grid",16),e.bIt("selectedRows",function(i){u.eBV(t);const a=e.XpG(4);return u.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 q(o,g){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",12)(1,"cue-button",13),e.bIt("click",function(){u.eBV(t);const i=e.XpG(3);return u.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,Z,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,G,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,G,t._selectedPaths().length)))}}function ee(o,g){if(1&o&&e.nVh(0,Q,3,3,"cue-typography",11)(1,q,10,14),2&o){const t=e.XpG(2);e.vxM(t._fileLocationsLoading()?0:null!==t._fileLocations()?1:-1)}}function te(o,g){if(1&o){const t=e.RV6();e.j41(0,"cue-flexcontainer",9)(1,"cue-input-switch",10),e.bIt("toggleChange",function(i){u.eBV(t);const a=e.XpG();return u.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,g){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,u.vPA)("");_applyToAllFiles=(0,u.vPA)(!1);_fileLocations=(0,u.vPA)(null);_fileLocationsLoading=(0,u.vPA)(!1);_matchTableExpanded=(0,u.vPA)(!1);_selectedPaths=(0,u.vPA)([]);_saving=(0,u.vPA)(!1);_saveError=(0,u.vPA)(null);_dirPrefix=(0,m.EW)(()=>{const t=this.selection();return t.path.substring(0,t.end)});_matchedLocations=(0,m.EW)(()=>{const t=this._fileLocations();if(!t)return[];const n=this._dirPrefix();return t.filter(i=>i.path.startsWith(n))});_matchCount=(0,m.EW)(()=>this._matchedLocations().length);_matchTableRowData=(0,m.EW)(()=>this._matchedLocations().map(t=>({iri:t.iri,path:t.path,providerId:t.providerId})));_entityCategoryLabelMap=(0,m.EW)(()=>this.availableEntityCategories().reduce((t,n)=>(t[n.iri]=n.label,t),{}));_matchTableRowSelection={mode:"multiRow",selectAll:"filtered"};_filePathLabel=(0,p.Xx)("components.contentBlocks.documentViewer.labelFilePath");_matchTableColDefs=(0,m.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,h.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 s=n._dirPrefix();n._selectedPaths.set(a.filter(d=>d.path.startsWith(s)))}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,h.A)(function*(){const n=t._selectedEntityCategory();if(!n)return;const i=t.selection().path,a=t._fileLocations()?.find(_=>_.path===i)??t.fileLocations().find(_=>_.path===i)??{iri:"",path:i},s=t._applyToAllFiles()&&t._selectedPaths().length>0?t._selectedPaths():[a],d=t.requestFilePathEntityAdd();if(d){t._saving.set(!0),t._saveError.set(null);try{yield d(n,s)}catch(_){return console.error("[EntityMentionModal] Failed to save entity mention:",_),t._saveError.set(_ instanceof Error?_.message:String(_)),void t._saving.set(!1)}t._saving.set(!1)}t.confirm.emit({entityCategory:n,paths:s})})()}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(s){return i.onEntityCategoryChange(s)}),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,c.F,L.a,j.$,K.L,x.Typography,z.a,X.l,H.d,Y.R,p.Kj],styles:[".modal-content[_ngcontent-%COMP%]{width:640px;max-width:calc(100vw - 32px)}"],changeDetection:0})}return o})();const oe=()=>[];function ae(o,g){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 se(o,g){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 le(o,g){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,g){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,g){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 ue(o,g){if(1&o){const t=e.RV6();e.j41(0,"cue-button",19),e.bIt("click",function(){u.eBV(t);const i=e.XpG(3);return u.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 de(o,g){if(1&o){const t=e.RV6();e.j41(0,"cue-button",19),e.bIt("click",function(){u.eBV(t);const i=e.XpG(3);return u.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 ge(o,g){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,ue,2,1,"cue-button",17),e.j41(8,"cue-file-path-viewer",18),e.bIt("textSelected",function(i){u.eBV(t);const a=e.XpG(2);return u.Njj(a.onTextSelected(i))}),e.k0s(),e.nVh(9,de,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 he(o,g){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,ge,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 _e(o,g){if(1&o){const t=e.RV6();e.j41(0,"cue-entity-mention-modal",22),e.bIt("confirm",function(i){u.eBV(t);const a=e.XpG();return u.Njj(a.onEntityMentionConfirm(i))})("cancel",function(){u.eBV(t);const i=e.XpG();return u.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,m.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,m.EW)(()=>{const t=""!==this.subject(),n=this.fileLocations().length>0;return t||n});currentFilePathIndex=(0,u.vPA)(0);_entityCategoryModalVisible=(0,u.vPA)(!1);_pendingSelection=(0,u.vPA)(null);_requestFilePathEntityAdd=(0,m.EW)(()=>{var t=this;const n=this.handlers().requestFilePathEntityAdd;if(n)return function(){var i=(0,h.A)(function*(a,s){const d=t._pendingSelection();d&&(yield n({paths:s,start:d.start,end:d.end,text:d.text,entityCategory:a,folderPath:d.path.substring(0,d.end)}))});return function(a,s){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,m.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,m.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,m.uu)(()=>this.contentCategories());contentCategoriesString=(0,m.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,p.Xx)("components.documentInfo.infoChangeContentCategory");rdfEditConfig=(0,m.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,h.A)(function*(a){console.log(a);const s={subject:t.subject(),predicate:`${C.E.qcy}contentCategory`,objects:t._contentCategories(),newObjects:a.newValue,type:"contentCategory",comment:a.comment};yield n(s),t._contentCategories.set(a.newValue),t.dataChanged.emit({contentCategories:a.newValue})}),function(s){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,se,2,1,"cue-key-val-list"),e.k0s(),e.nVh(4,le,6,1,"cue-flexcontainer",4),e.k0s(),e.nVh(5,he,4,2,"cue-key-val-list"),e.k0s(),e.nVh(6,_e,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,R.p,c.F,y.L,D.W,w.T,L.a,j.$,U,x.Typography,ie,p.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 fe{requestRDFChange;requestFileLocations;requestFilePathEntityAdd}var pe=l(2065),ve=l(5187),ye=l(7293);const Ce=["viewerHost"];function be(o,g){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 Me(o,g){1&o&&(e.j41(0,"cue-flexcontainer",5)(1,"cue-typography"),e.EFF(2,"Loading\u2026"),e.k0s()())}function xe(o,g){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 Ee(o,g){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 De(o,g){if(1&o&&(e.j41(0,"div",3),e.nVh(1,be,1,3,"cue-document-info",4),e.nVh(2,Me,3,0,"cue-flexcontainer",5)(3,xe,3,1,"cue-flexcontainer",5),e.j41(4,"div",6),e.eu8(5,null,1),e.k0s(),e.nVh(7,Ee,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 Pe(o,g){1&o&&e.eu8(0)}function we(o,g){if(1&o&&(e.j41(0,"cue-card",2),e.DNE(1,Pe,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 Ie(o,g){1&o&&e.eu8(0)}function Fe(o,g){if(1&o&&e.DNE(0,Ie,1,0,"ng-container",9),2&o){e.XpG();const t=e.sdS(1);e.Y8G("ngTemplateOutlet",t)}}const Re=[".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 Oe=(()=>{class o{set _viewerHostRef(t){if(this._viewerHost=t,t&&this._lastRenderArgs){const{url:n,suffix:i,page:a,viewerTypeOverride:s}=this._lastRenderArgs;this._renderViewer(n,i,a,s)}}_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,m.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,m.EW)(()=>this.variant());state=(0,u.vPA)("idle");errorMessage=(0,u.vPA)(null);resolvedUrl=(0,u.vPA)(null);resolvedSuffix=(0,u.vPA)(null);_docSubject=(0,u.vPA)("");_alternatives=(0,u.vPA)([]);_originalUuid=(0,u.vPA)(null);_originalDocSuffix=(0,u.vPA)(null);_cueSnapshot=null;_projectIdSnapshot=null;_inputWarningTimer;_docInfoHandlers=new fe;_menuItems=(0,m.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 s=this.resolvedSuffix();t.push({icon:"document",label:"Alternative representation",children:a.map(d=>({label:d.original?`Original (${d.suffix.replace(".","").toUpperCase()})`:d.suffix.replace(".","").toUpperCase(),tooltip:s===d.suffix?"Currently shown":void 0,action:()=>this._switchToAlternative(d)}))})}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,u.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)}_load(t,n,i){var a=this;return(0,h.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:s,page:d}=function Te(o){const[g,t]=o.split("?"),n=g.trim();let i=null;if(t){const s=new URLSearchParams(t).get("page");if(null!==s){const d=parseInt(s,10);!isNaN(d)&&d>0&&(i=d)}}return{uuid:n,page:i}}(n),_=t.createProjectDocuments(i),F=(yield _.fetchDocumentData([s]))[s];if(!F)throw new Error(`Document '${s}' not found in project '${i}'.`);a._docSubject.set(F.subject??""),a._originalUuid.set(s),a._originalDocSuffix.set(F.suffix);const A=yield _.fetchAlternativeRepresentations(s);a._alternatives.set([{uuid:s,suffix:F.suffix,original:!0},...A.filter(B=>B.id!==s).map(B=>({uuid:B.id,suffix:B.suffix,original:!1,remoteRelativePath:B.remoteRelativePath}))]);const{uuid:V,suffix:S,remoteRelativePath:$}=function Ve(o,g){const t=[o,...g];let n,i=1/0;for(const a of t){const s=Re.indexOf(a.suffix);-1!==s&&s<i&&(i=s,n=a)}return n?{uuid:n.id,suffix:n.suffix,remoteRelativePath:n.remoteRelativePath}:{uuid:o.id,suffix:o.suffix}}(F,A),W=$?yield t.storage.getAltRepDownloadUrl($):yield t.storage.getDownloadUrl(i,V,S);a.resolvedUrl.set(W),a.resolvedSuffix.set(S);const Le=[".eml",".msg",".emlx",".mbx"].includes(F.suffix)&&".json"===S?"email":void 0;yield a._renderViewer(W,S,d,Le),a.state.set("ready")}catch(s){const d=s instanceof Error?s.message:String(s);console.error("[CueDocumentViewerWC] Failed to load document:",d),a.errorMessage.set(d),a.state.set("error")}}else a.state.set("idle")})()}_renderViewer(t,n,i,a){var s=this;return(0,h.A)(function*(){try{const{DocumentViewer:d}=yield Promise.all([l.e(418),l.e(76),l.e(36)]).then(l.bind(l,3036)),{DocumentViewerSettings:_}=yield l.e(418).then(l.bind(l,3418));s._viewerHost?.clear(),s.currentViewerRef?.destroy();const I=new _;if(null!==i&&(I.pdf.page=String(i)),!s._viewerHost)throw new Error("viewerHost is not yet available \u2014 view has not been initialized.");s._lastRenderArgs={url:t,suffix:n,page:i,viewerTypeOverride:a},s.currentViewerRef=s._viewerHost.createComponent(d),s.currentViewerRef.setInput("url",t),s.currentViewerRef.setInput("suffix",n),s.currentViewerRef.setInput("settings",I),a&&s.currentViewerRef.setInput("viewerTypeOverride",a)}catch(d){throw new Error(`Failed to load viewer component: ${d instanceof Error?d.message:String(d)}`)}})()}_switchToAlternative(t){var n=this;return(0,h.A)(function*(){const i=n._cueSnapshot,a=n._projectIdSnapshot;if(i&&a)try{const s=t.remoteRelativePath?yield i.storage.getAltRepDownloadUrl(t.remoteRelativePath):yield i.storage.getDownloadUrl(a,t.uuid,t.suffix);n.resolvedUrl.set(s),n.resolvedSuffix.set(t.suffix),yield n._renderViewer(s,t.suffix,null)}catch(s){console.error("[CueDocumentViewerWC] Failed to switch to alternative:",s)}})()}_downloadOriginal(){var t=this;return(0,h.A)(function*(){const n=t._cueSnapshot,i=t._projectIdSnapshot,a=t._originalUuid(),s=t._originalDocSuffix();if(n&&i&&a&&s)try{const d=yield n.storage.getDownloadUrl(i,a,s),I=yield(yield fetch(d)).blob();(0,pe.KE)(I,`${a}${s}`)}catch(d){console.error("[CueDocumentViewerWC] Failed to download original:",d)}})()}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(Ce,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,De,8,3,"ng-template",null,0,e.C5r),e.nVh(2,we,2,3,"cue-card",2)(3,Fe,1,1,"ng-container")),2&n&&(e.R7$(2),e.vxM("none"!==i.variant()?2:3))},dependencies:[f.MD,f.T3,M.n,x.Typography,me,ve.Z,ye.x],styles:["[_nghost-%COMP%]{display:contents}"],changeDetection:0})}return o})()},7573(O,P,l){l.d(P,{E:()=>h});const h={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#"}}}]);
|